]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoTweak bug ID prompting in gnus-group--read-bug-ids
Lars Ingebrigtsen [Sun, 14 Jul 2019 16:27:50 +0000 (18:27 +0200)]
Tweak bug ID prompting in gnus-group--read-bug-ids

* lisp/gnus/gnus-group.el (gnus-group--read-bug-ids): Default to
current bug id on RET.

5 years agoMake describe-face also output the version information
Lars Ingebrigtsen [Sun, 14 Jul 2019 15:01:58 +0000 (17:01 +0200)]
Make describe-face also output the version information

* lisp/help-fns.el (describe-variable-custom-version-info): Allow
taking a type as an optional input, so this can be used for faces,
too (bug#30527).

* lisp/faces.el (describe-face): Use this to output the version
information.

5 years ago; Add comment to hash_table_rehash (Bug#36447)
Stefan Monnier [Fri, 5 Jul 2019 18:00:22 +0000 (14:00 -0400)]
; Add comment to hash_table_rehash (Bug#36447)

* src/fns.c (hash_table_rehash): Add a comment to explain that
hash_table_rehash is not used in "normal" rehashing, but only in the
rare case of rehashing on the first access to a preloaded hash-table.

5 years agoUse ngettext in vc-dir-clean-files
Noam Postavsky [Sun, 14 Jul 2019 12:42:32 +0000 (08:42 -0400)]
Use ngettext in vc-dir-clean-files

* lisp/vc/vc-dir.el (vc-dir-clean-files): Use ngettext to separate
pluralization from format string.

5 years agoTweak background colour handling in shr
Lars Ingebrigtsen [Sun, 14 Jul 2019 12:45:21 +0000 (14:45 +0200)]
Tweak background colour handling in shr

* lisp/net/shr.el (shr-fill-line): Keep the background colour on
the newline and the indentation.

5 years agoRename vc-dir-delete-files-no-vc to vc-dir-clean-files
Lars Ingebrigtsen [Sun, 14 Jul 2019 12:25:44 +0000 (14:25 +0200)]
Rename vc-dir-delete-files-no-vc to vc-dir-clean-files

* doc/emacs/maintaining.texi (VC Directory Commands): Adjust
command name.

* lisp/vc/vc-dir.el (vc-dir-clean-files): Rename from
vc-dir-delete-files-no-vc, and work on unregistered files only
(bug#31732).
(vc-dir-menu-map): Adjust command name.

5 years agoAllow bad tags in Scheme
Eric Ludlam [Sun, 14 Jul 2019 11:51:20 +0000 (13:51 +0200)]
Allow bad tags in Scheme

* admin/grammars/scheme.by (scheme-in-list): Allow bad tags in
Scheme (bug#36521).

5 years ago* etc/NEWS: Announce new Georgian inputs. (Bug#36639)
Nick Drozd [Sat, 13 Jul 2019 17:04:21 +0000 (12:04 -0500)]
* etc/NEWS: Announce new Georgian inputs.  (Bug#36639)

5 years ago* etc/HELLO: Fix name of Georgian language
Nick Drozd [Sat, 13 Jul 2019 17:04:12 +0000 (12:04 -0500)]
* etc/HELLO: Fix name of Georgian language

5 years ago* lisp/leim/quail/georgian.el: Add georgian-nuskhuri input method
Nick Drozd [Sat, 13 Jul 2019 17:04:05 +0000 (12:04 -0500)]
* lisp/leim/quail/georgian.el: Add georgian-nuskhuri input method

5 years ago* lisp/leim/quail/georgian.el: Add missing characters to georgian input
Nick Drozd [Sat, 13 Jul 2019 17:03:54 +0000 (12:03 -0500)]
* lisp/leim/quail/georgian.el: Add missing characters to georgian input

5 years ago* lisp/leim/quail/georgian.el: Add georgian-qwerty input method
Nick Drozd [Sat, 13 Jul 2019 17:03:36 +0000 (12:03 -0500)]
* lisp/leim/quail/georgian.el: Add georgian-qwerty input method

5 years agoRestore focus to Bookmark List after editing annotation
Stefan Kangas [Tue, 2 Jul 2019 01:06:37 +0000 (03:06 +0200)]
Restore focus to Bookmark List after editing annotation

There are two entry points to bookmark-edit-annotation-mode: the first
when we add a bookmark and bookmark-use-annotations is non-nil; the
second when bookmark-bmenu-edit-annotation is run from the bookmark
list.  When editing is concluded, in the first case, we should just
quit window.  In the second case, we should instead return to the
bookmark list.

* lisp/bookmark.el (text-property-search): Require.
(bookmark-annotation-name): Make buffer-local and improve doc string.
(bookmark--annotation-from-bookmark-list): New buffer-local variable.
(bookmark-edit-annotation): New argument from-bookmark-list sets
bookmark--annotation-from-bookmark-list.
(bookmark-bmenu-edit-annotation): Call bookmark-edit-annotation with
argument from-bookmark-list set to t.
(bookmark-send-edited-annotation): When editing originated in the
bookmark list, restore focus to bookmark list and move point back to
edited bookmark. (Bug#20150)

(bookmark-edit-annotation-mode): Fix typo.
(bookmark-bmenu-buffer): New variable.
(bookmark-bmenu-surreptitiously-rebuild-list)
(bookmark-bmenu-list): Use it.

* test/lisp/bookmark-tests.el (with-bookmark-bmenu-test): New macro.
(bookmark-tests-set/bookmark-use-annotations-t)
(bookmark-bmenu-edit-annotation/show-annotation)
(bookmark-bmenu-send-edited-annotation)
(bookmark-bmenu-send-edited-annotation/restore-focus): New test cases.

5 years agoNew function for scroll-lock-mode to almost always scroll
Marco Wahl [Thu, 4 Jul 2019 20:32:44 +0000 (22:32 +0200)]
New function for scroll-lock-mode to almost always scroll

* lisp/scroll-lock.el (scroll-lock-next-line-always-scroll): New
function.  Opposed to scroll-lock-next-line it does not switch to
forward-line at eob.  S-down is the default key binding for this
function.  (Bug#36494)
* test/lisp/scroll-lock-tests.el: A few tests for
scroll-lock-next-line-always-scroll.
* etc/NEWS: Announce the new command.

5 years agoFix recent changes
Eli Zaretskii [Sun, 14 Jul 2019 05:59:49 +0000 (08:59 +0300)]
Fix recent changes

* src/sysstdio.h: Include stdarg.h, for va_list.

5 years agoAvoid returning negative numbers from `hash-table-count'
Pip Cet [Sun, 14 Jul 2019 04:44:27 +0000 (21:44 -0700)]
Avoid returning negative numbers from `hash-table-count'

* src/fns.c (Fhash_table_count): Rehash argument if necessary.

5 years ago* src/lisp.h (struct Lisp_Hash_Table.count): Improve comment.
Paul Eggert [Sun, 14 Jul 2019 04:43:46 +0000 (21:43 -0700)]
* src/lisp.h (struct Lisp_Hash_Table.count): Improve comment.

5 years ago; Add comment about sh-assignment-regexp value
Noam Postavsky [Sun, 14 Jul 2019 01:30:43 +0000 (21:30 -0400)]
; Add comment about sh-assignment-regexp value

* lisp/progmodes/sh-script.el (sh-assignment-regexp): Explain what the
the "\\[.+\\]" is for, to make clear it is not a typo for "[.+]".

5 years agoRemove incorrect commentary about #$ in autoloads
Noam Postavsky [Fri, 12 Jul 2019 00:15:27 +0000 (20:15 -0400)]
Remove incorrect commentary about #$ in autoloads

* lisp/emacs-lisp/autoload.el (autoload-rubric):
`package-quickstart-refresh' does in fact support load-file-name as
well.

5 years agoUse syntax-ppss-toplevel-pos for defvar search (Bug#34233)
Noam Postavsky [Thu, 11 Jul 2019 22:38:02 +0000 (18:38 -0400)]
Use syntax-ppss-toplevel-pos for defvar search (Bug#34233)

* lisp/progmodes/elisp-mode.el (eval-sexp-add-defvars): Use
syntax-ppss-toplevel-pos instead of a raw check of syntax components.

5 years agoAvoid interleaving stderr lines when shutting down
Paul Eggert [Sat, 13 Jul 2019 23:42:18 +0000 (16:42 -0700)]
Avoid interleaving stderr lines when shutting down

* src/emacs.c (shut_down_emacs) [!DOS_NT]: Avoid interleaving
to stderr in the usual case, by using a single write and by
appending a newline.
* src/sysdep.c (emacs_backtrace) [HAVE_BACKTRACE_SYMBOLS_FD]:
Omit newline since shut_down_emacs now does that.

5 years agoUse a better buffer size in emacs_perror
Paul Eggert [Sat, 13 Jul 2019 19:31:41 +0000 (12:31 -0700)]
Use a better buffer size in emacs_perror

* src/sysdep.c (emacs_perror): Since the buffer is for avoiding
interleaving, size it via PIPE_BUF not BUFSIZ.
* src/sysstdio.h (PIPE_BUF): Provide a default.

5 years agoAvoid interleaving stderr in dump_fingerprint
Paul Eggert [Sat, 13 Jul 2019 17:41:46 +0000 (10:41 -0700)]
Avoid interleaving stderr in dump_fingerprint

* src/fns.c (hexbuf_digest): New function, containing most of
the old make_digest_string.
(make_digest_string): Use it.
* src/pdumper.c (dump_fingerprint): Rewrite to use a single
fprintf call, to avoid interleaving on GNU/Linux.

5 years agoAvoid interleaving stderr in a few cases
Paul Eggert [Sat, 13 Jul 2019 16:39:09 +0000 (09:39 -0700)]
Avoid interleaving stderr in a few cases

* src/sysdep.c (buferr): New static var.
(init_standard_fds) [_PC_PIPE_BUF]: Initialize it.
(errstream, errputc, verrprintf, errwrite): New functions.
(close_output_streams): Check buferr status too.
* src/xdisp.c: Include sysstdio.h instead of stdio.h.
(message_to_stderr, vmessage): Use the new functions
to avoid interleaving stderr.

5 years agoRevert "Fix typo in sh-assignment-regexp"
Andreas Schwab [Sat, 13 Jul 2019 21:59:31 +0000 (23:59 +0200)]
Revert "Fix typo in sh-assignment-regexp"

This reverts commit 194f370a3da72d560975adc2835254ce251881a7.

5 years agoAdd edebug specs for inline.el
Lars Ingebrigtsen [Sat, 13 Jul 2019 16:07:11 +0000 (18:07 +0200)]
Add edebug specs for inline.el

* lisp/emacs-lisp/inline.el (inline-quote)
(inline-letevals): Add edebug specs (bug#31051).

5 years agoTweak output of doc in advice--make-docstring
Lars Ingebrigtsen [Sat, 13 Jul 2019 15:48:53 +0000 (17:48 +0200)]
Tweak output of doc in advice--make-docstring

* lisp/emacs-lisp/nadvice.el (advice--make-docstring): Make the
bit about the function/macro having an advice into a complete
sentence (bug#31063) and make it less dramatic.

5 years agoAdd a :format to `text' widgets
Lars Ingebrigtsen [Sat, 13 Jul 2019 15:22:50 +0000 (17:22 +0200)]
Add a :format to `text' widgets

* lisp/wid-edit.el (text): Add a :format so that the 'text fields
work (bug#31309).  Suggested by Phil Sainty.

5 years agoDoc fix for Finteractive (only %s is allowed)
Lars Ingebrigtsen [Sat, 13 Jul 2019 15:18:11 +0000 (17:18 +0200)]
Doc fix for Finteractive (only %s is allowed)

* src/callint.c (Finteractive): Any other format spec than %s will
bug out with "Format specifier doesn’t match argument type", so
say explicitly that only %s is supported (bug#31314).

5 years agoDon't have savehist-save bug out on non-existing directory
Lars Ingebrigtsen [Sat, 13 Jul 2019 15:13:12 +0000 (17:13 +0200)]
Don't have savehist-save bug out on non-existing directory

* lisp/savehist.el (savehist-save): Ensure that the directory
exists before saving (bug#31348).

5 years agoFix display-fill-column-indicator custom spec typo
Lars Ingebrigtsen [Sat, 13 Jul 2019 15:00:29 +0000 (17:00 +0200)]
Fix display-fill-column-indicator custom spec typo

* lisp/cus-start.el (standard): Fix typo in
display-fill-column-indicator custom spec.

Debugger entered--Lisp error: (wrong-type-argument stringp integer)
  string-match("\\([0-9]+\\)\\(\\.\\([0-9]+\\)\\)?" integer)
  customize-version-lessp("25.3" integer)
 [...]
  customize-changed-options("")

5 years agoMake check-declare understand cl-defun
Lars Ingebrigtsen [Sat, 13 Jul 2019 14:49:23 +0000 (16:49 +0200)]
Make check-declare understand cl-defun

* lisp/emacs-lisp/check-declare.el (check-declare-verify): Add
cl-defun to the defun-ish regexp (bug#31396).

5 years agoplist-get/lax-plist-get doc fix
Lars Ingebrigtsen [Sat, 13 Jul 2019 14:44:03 +0000 (16:44 +0200)]
plist-get/lax-plist-get doc fix

* src/fns.c (Fplist_get): Mention that comparison is done with eq
(bug#31441).
(Flax_plist_get): Refer to plist-get for details.

5 years agociteasnoun in reftex can take an optional parameter
Lars Ingebrigtsen [Sat, 13 Jul 2019 14:34:55 +0000 (16:34 +0200)]
citeasnoun in reftex can take an optional parameter

* lisp/textmodes/reftex-vars.el (reftex-cite-format-builtin):
citeasnoun can take an optional parameter (bug#31476).  Suggested
by Konrad Podczeck.

5 years agoFix typo in sh-assignment-regexp
Lars Ingebrigtsen [Sat, 13 Jul 2019 14:20:53 +0000 (16:20 +0200)]
Fix typo in sh-assignment-regexp

* lisp/progmodes/sh-script.el (sh-assignment-regexp): Fix typo in
bash regexp that inhibited fontification of stuff like foo.=bar
(bug#31710).

5 years agoMark ediff-before-session-group-setup-hooks as obsolete
Lars Ingebrigtsen [Sat, 13 Jul 2019 14:03:24 +0000 (16:03 +0200)]
Mark ediff-before-session-group-setup-hooks as obsolete

* lisp/vc/ediff-mult.el (ediff-before-session-group-setup-hooks):
Mark this apparently unused variable as obsolete (bug#36618).

5 years agoAdd a way to more conveniently log/debug nnmail splitting
Lars Ingebrigtsen [Sat, 13 Jul 2019 13:23:38 +0000 (15:23 +0200)]
Add a way to more conveniently log/debug nnmail splitting

* doc/misc/gnus.texi (Fancy Mail Splitting): Mention it.

* lisp/gnus/nnmail.el (nnmail-debug-splitting): New variable.

* lisp/gnus/nnmail.el (nnmail-log-split): New function.
(nnmail-split-it): Use it.

5 years agoFix cl-defstruct doc string fix
Lars Ingebrigtsen [Sat, 13 Jul 2019 12:27:36 +0000 (14:27 +0200)]
Fix cl-defstruct doc string fix

* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Remove sentence from
doc string that was left in by mistake when fixing the arglist
documentation.

5 years ago* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a docstring typo
Phil Sainty [Sat, 13 Jul 2019 11:58:14 +0000 (23:58 +1200)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a docstring typo

5 years ago* lisp/so-long.el (so-long-variable-overrides): Improve doc
Phil Sainty [Sat, 13 Jul 2019 11:43:26 +0000 (23:43 +1200)]
* lisp/so-long.el (so-long-variable-overrides): Improve doc

Explain the 'line-move-visual' and 'truncate-lines' values.

5 years ago* lisp/so-long.el (so-long-variable-overrides): Use correct bidi option
Phil Sainty [Sat, 13 Jul 2019 11:20:40 +0000 (23:20 +1200)]
* lisp/so-long.el (so-long-variable-overrides): Use correct bidi option

Set 'bidi-paragraph-direction' to 'left-to-right', rather than setting
'bidi-display-reordering' to nil, as the latter is only intended for
use when debugging the display code.

5 years ago; Fix formatting issue of last commit
Michael Albinus [Sat, 13 Jul 2019 11:34:33 +0000 (13:34 +0200)]
; Fix formatting issue of last commit

5 years agoMake check for compression programs more robust in Tramp
Michael Albinus [Sat, 13 Jul 2019 11:33:10 +0000 (13:33 +0200)]
Make check for compression programs more robust in Tramp

* lisp/net/tramp-sh.el (tramp-inline-compress-start-size):
Revert change of init value.  We fix this differently.
(tramp-find-inline-compress): Check also the output of the
processes, not only the return code.

5 years ago* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Adapt docstring.
Michael Albinus [Sat, 13 Jul 2019 11:30:35 +0000 (13:30 +0200)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Adapt docstring.

5 years ago; Some precisements in test/README
Michael Albinus [Sat, 13 Jul 2019 11:30:28 +0000 (13:30 +0200)]
; Some precisements in test/README

5 years agoFix TTY menus in GUD and GDB-MI modes
Eli Zaretskii [Sat, 13 Jul 2019 09:47:02 +0000 (12:47 +0300)]
Fix TTY menus in GUD and GDB-MI modes

* lisp/menu-bar.el (menu-bar-open): Accept a numerical
argument interactively, and drop down menu at that X
coordinate.
(popup-menu): Detect when MENU is not a list.  (Bug#36613)

5 years agoAvoid loading mule-util at startup
Eli Zaretskii [Sat, 13 Jul 2019 08:32:18 +0000 (11:32 +0300)]
Avoid loading mule-util at startup

* lisp/international/mule-util.el (char-displayable-p): Move
from here...
* lisp/international/mule.el (char-displayable-p): ...to
here.  This avoids always loading mule-util at startup due
to a call to 'char-displayable-p' in
'startup--setup-quote-display'.

5 years agoImprove documentation of So Long mode
Eli Zaretskii [Sat, 13 Jul 2019 08:06:14 +0000 (11:06 +0300)]
Improve documentation of So Long mode

* doc/emacs/trouble.texi (Long Lines): Improve wording, add
indexing, mention the mode name and its main customization
options.

5 years agoFix looking up functions like "-e" in cperl-mode
Stefan Kangas [Fri, 5 Jul 2019 18:53:53 +0000 (20:53 +0200)]
Fix looking up functions like "-e" in cperl-mode

* lisp/progmodes/cperl-mode.el (cperl-perldoc): Handle functions with
leading dash (e.g. "-f"). (Bug#6013)

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 13 Jul 2019 07:21:38 +0000 (10:21 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoFix last commit
Eli Zaretskii [Sat, 13 Jul 2019 07:20:48 +0000 (10:20 +0300)]
Fix last commit

* etc/NEWS: Fix formatting and punctuation of last change.

* lisp/isearch.el (isearch-highlight-regexp)
(isearch-highlight-lines-matching-regexp): Doc fix.

5 years agoAdd ability to highlight-lines-matching-regexp directly from Isearch
Dima Kogan [Sun, 30 Jun 2019 17:37:53 +0000 (10:37 -0700)]
Add ability to highlight-lines-matching-regexp directly from Isearch

* lisp/isearch.el: Implement the new functionality.
(isearch-highlight-lines-matching-regexp): New function bound
to 'M-s h l' in isearch.
(isearch--highlight-regexp-or-lines): New internal function.

* etc/NEWS (Search and Replace): Mention this change.

* doc/emacs/search.texi (Special Isearch): Document 'M-s h l'.
(Bug#18241)

5 years agoMerge branch 'scratch/so-long'
Phil Sainty [Sat, 13 Jul 2019 06:57:37 +0000 (18:57 +1200)]
Merge branch 'scratch/so-long'

5 years agoAdd tests for so-long.el
Phil Sainty [Fri, 14 Jun 2019 04:51:26 +0000 (16:51 +1200)]
Add tests for so-long.el

5 years agoAdd so-long library
Phil Sainty [Fri, 2 Nov 2018 01:51:21 +0000 (14:51 +1300)]
Add so-long library

* lisp/so-long.el: New library.
* doc/emacs/trouble.texi (Long Lines): New node covering so-long.el.
* doc/emacs/emacs.texi (Top): Add menu entry for the Long Lines node.
* etc/NEWS: Include under "New Modes and Packages in Emacs 27.1"

5 years agoReplace Vdead with tagged pointer
Paul Eggert [Sat, 13 Jul 2019 05:29:02 +0000 (22:29 -0700)]
Replace Vdead with tagged pointer

This speeds up ‘make compile-always’ by 0.1% on my platform.
Suggested by Pip Cet in:
https://lists.gnu.org/r/emacs-devel/2019-07/msg00257.html
* src/.gdbinit (pwinx, pgx, xbuffer, xprintstr):
Output dead_object () as "DEAD".
* src/alloc.c (Vdead, DEADP): Remove.
All uses replaced by dead_object () / deadp.
(deadp): New function.
(init_alloc_once_for_pdumper): Remove no-longer-needed
initialization.
* src/lisp.h (dead_object): New function.

5 years agoMention columns width variables in the buffer-menu doc string
Lars Ingebrigtsen [Sat, 13 Jul 2019 04:32:34 +0000 (06:32 +0200)]
Mention columns width variables in the buffer-menu doc string

* lisp/buff-menu.el (buffer-menu): Mention the variables that can
be used to change the columns widths (bug#36587).

5 years agoMention `M-n' for VALUE in the `set-variable' command
Lars Ingebrigtsen [Sat, 13 Jul 2019 04:26:55 +0000 (06:26 +0200)]
Mention `M-n' for VALUE in the `set-variable' command

* lisp/simple.el (set-variable): Mention that the current variable
is accessible in `M-n' (bug#36586).

5 years agoMark the new vc-dir-delete command as documented
Lars Ingebrigtsen [Sat, 13 Jul 2019 04:12:42 +0000 (06:12 +0200)]
Mark the new vc-dir-delete command as documented

5 years agoAdd a new command in vc-dir mode to delete files
Lars Ingebrigtsen [Sat, 13 Jul 2019 04:10:29 +0000 (06:10 +0200)]
Add a new command in vc-dir mode to delete files

* doc/emacs/maintaining.texi (VC Directory Commands): Document it.

* lisp/vc/vc-dir.el (vc-dir-delete-files-no-vc): New command and
keystroke (bug#31732).

5 years agoAdd more spook.lines
Lars Ingebrigtsen [Sat, 13 Jul 2019 03:09:45 +0000 (05:09 +0200)]
Add more spook.lines

* etc/spook.lines: Add Black Cube (bug#32309)
(https://en.wikipedia.org/wiki/Black_Cube).

5 years agoDocument fix for cl-defstruct
Lars Ingebrigtsen [Sat, 13 Jul 2019 03:05:03 +0000 (05:05 +0200)]
Document fix for cl-defstruct

* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Document that we can
have a doc string (bug#32340).

5 years agoAllow using wdired in all dired-derived modes
Lars Ingebrigtsen [Sat, 13 Jul 2019 02:58:27 +0000 (04:58 +0200)]
Allow using wdired in all dired-derived modes

* lisp/wdired.el (wdired-change-to-wdired-mode): Allow using in
dired derived modes (bug#32392).  Suggested by James Nguyen.

5 years agoAdd some indices for regexp character classes
Lars Ingebrigtsen [Sat, 13 Jul 2019 02:55:52 +0000 (04:55 +0200)]
Add some indices for regexp character classes

* doc/lispref/searching.texi (Char Classes): Add some concept
index entries for a handful of character classes (bug#32430).

5 years agoEnd predicate `dired-in-this-tree' with '-p'
Tino Calancha [Sat, 13 Jul 2019 02:03:50 +0000 (04:03 +0200)]
End predicate `dired-in-this-tree' with '-p'

* lisp/dired.el(dired-in-this-tree-p): Rename from `dired-in-this-tree'.
Add docstring.

(dired-in-this-tree): Define an alias to `dired-in-this-tree-p'.

(dired-buffers-for-dir)
* lisp/dired-aux.el (dired-tree-down, dired-kill-tree)
(dired-insert-subdir, dired-rename-subdir): Update all callers (bug#32892).

5 years agoDocument format-spec and expand the modifiers it supports
Lars Ingebrigtsen [Sat, 13 Jul 2019 01:50:43 +0000 (03:50 +0200)]
Document format-spec and expand the modifiers it supports

* doc/lispref/text.texi (Interpolated Strings): New section.
* lisp/format-spec.el (format-spec--parse-modifiers)
(format-spec--pad): New functions.
(format-spec): Support more format modifiers (bug#32931).

5 years agoUse the gpg --sender option
Teemu Likonen [Sat, 13 Jul 2019 00:12:58 +0000 (02:12 +0200)]
Use the gpg --sender option

* lisp/epg.el (epg-start-encrypt)
* lisp/gnus/mml-sec.el (mml-secure-epg-encrypt): When
'mml-secure-openpgp-sign-with-sender' is non-nil message sender's
email address (in addition to its old behaviour) will also be used
to set gpg's "--sender email@domain" option.

5 years ago* lib-src/make-docfile.c: Fix comment typo.
Paul Eggert [Fri, 12 Jul 2019 23:58:25 +0000 (16:58 -0700)]
* lib-src/make-docfile.c: Fix comment typo.

5 years agoAlways include the number of unexpected ert tests
Lars Ingebrigtsen [Fri, 12 Jul 2019 23:55:25 +0000 (01:55 +0200)]
Always include the number of unexpected ert tests

* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
Always include the number of failed tests, because absence of the
text is not reassuring (bug#36616).

5 years agoFix long credentials when using auth in nnimap.el
Lars Ingebrigtsen [Fri, 12 Jul 2019 23:31:12 +0000 (01:31 +0200)]
Fix long credentials when using auth in nnimap.el

* lisp/gnus/nnimap.el (nnimap-login): When base64-ing
credentials, don't let bsae64-encode-string split the result into
several lines, because servers do not understand that (bug#34458).

5 years agoFix long credentials when using auth in url.el
Lars Ingebrigtsen [Fri, 12 Jul 2019 23:27:32 +0000 (01:27 +0200)]
Fix long credentials when using auth in url.el

* lisp/url/url-auth.el (url-basic-auth): When base64-ing
credentials, don't let bsae64-encode-string split the result into
several lines, because servers do not understand that (bug#36619).

5 years agoFold rfc2047 headers correctly when narrowed to header value
Lars Ingebrigtsen [Fri, 12 Jul 2019 23:09:19 +0000 (01:09 +0200)]
Fold rfc2047 headers correctly when narrowed to header value

* lisp/mail/rfc2047.el (rfc2047-fold-region): Fold headers
correctly if narrowed to the header value.

5 years ago* test/lisp/replace-tests.el (replace-tests-with-undo): Override
Juri Linkov [Fri, 12 Jul 2019 19:00:56 +0000 (22:00 +0300)]
* test/lisp/replace-tests.el (replace-tests-with-undo): Override

replace-highlight to emulate clobbering match-data (bug#36328).

5 years ago* lisp/progmodes/compile.el (compilation-filter): `compilation--ensure-parse'
Juri Linkov [Fri, 12 Jul 2019 18:57:18 +0000 (21:57 +0300)]
* lisp/progmodes/compile.el (compilation-filter): `compilation--ensure-parse'

is used instead of `font-lock-ensure' (bug#36564).

* test/lisp/progmodes/compile-tests.el (compile-test-error-regexps)
(compile-test-grep-regexps): Check the number of errors.

5 years agoRemove initial and trailing whitespace in message-fetch-field
Lars Ingebrigtsen [Fri, 12 Jul 2019 14:07:43 +0000 (16:07 +0200)]
Remove initial and trailing whitespace in message-fetch-field

* lisp/gnus/message.el (message-fetch-field): Remove initial and
trailing whitespace.

5 years agoFix breaking of rfc2047 headers with long words
Lars Ingebrigtsen [Fri, 12 Jul 2019 13:59:27 +0000 (15:59 +0200)]
Fix breaking of rfc2047 headers with long words

* lisp/mail/rfc2047.el (rfc2047-fold-region): Don't break lines
right after the Header: field, but wait until the next
whitespace.  (This only makes a difference for words that are very
long (i.e., longer than, say, 60 characters, depending on the
header name length.)

5 years agoRefactor rfc2047-fold-region slightly and add a couple of tests
Lars Ingebrigtsen [Fri, 12 Jul 2019 13:48:34 +0000 (15:48 +0200)]
Refactor rfc2047-fold-region slightly and add a couple of tests

* lisp/mail/rfc2047.el (rfc2047--break-line): Refactor out to
avoid code repetition...
(rfc2047-fold-region): ... from this function.

5 years agoAdd comments to rfc2047
Lars Ingebrigtsen [Fri, 12 Jul 2019 13:38:34 +0000 (15:38 +0200)]
Add comments to rfc2047

* lisp/mail/rfc2047.el (rfc2047-fold-region): Add comments to the
function.

5 years agoMerge from origin/emacs-26
Michael Albinus [Fri, 12 Jul 2019 13:13:20 +0000 (15:13 +0200)]
Merge from origin/emacs-26

305abae50e Raise required librsvg version so as to match the current use
c6775bc9ca * lisp/net/tramp-sh.el (tramp-inline-compress-start-size):...

5 years agoCheck directory in Tramp's {copy,rename}-file
Michael Albinus [Fri, 12 Jul 2019 13:10:57 +0000 (15:10 +0200)]
Check directory in Tramp's {copy,rename}-file

* lisp/net/tramp-adb.el (tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
(tramp-smb-handle-rename-file):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Check, that NEWNAME is not a directory given as file name.

* test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
(tramp-test12-rename-file): Extend tests.

5 years agoRe-add tramp-autoload cookie for all defcustoms
Michael Albinus [Fri, 12 Jul 2019 13:05:55 +0000 (15:05 +0200)]
Re-add tramp-autoload cookie for all defcustoms

* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-zeroconf-domain):
* lisp/net/tramp-rclone.el (tramp-rclone-program):
* lisp/net/tramp-sh.el (tramp-copy-size-limit, tramp-histfile-override)
(tramp-use-ssh-controlmaster-options):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Re-add tramp-autoload
cookie for all defcustoms.

* lisp/net/tramp-adb.el (tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
(tramp-smb-handle-rename-file):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Check, that NEWNAME is not a directory given as file name.

5 years ago* doc/misc/tramp.texi (Inline methods): Precise about used external programs.
Michael Albinus [Fri, 12 Jul 2019 13:05:11 +0000 (15:05 +0200)]
* doc/misc/tramp.texi (Inline methods): Precise about used external programs.

5 years agoChange Tramp version to 2.4.3-pre
Michael Albinus [Fri, 12 Jul 2019 13:04:55 +0000 (15:04 +0200)]
Change Tramp version to 2.4.3-pre

* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.4.3-pre".

* lisp/net/tramp.el: Bump version to 2.4.3-pre.

5 years agoTweak builtin symbol order for speed
Paul Eggert [Fri, 12 Jul 2019 06:06:22 +0000 (23:06 -0700)]
Tweak builtin symbol order for speed

* lib-src/make-docfile.c (compare_globals):
Make symbols 1 through 4 be t, unbound, error, lambda.
This is in addition to symbol 0 being nil.
This change improved ‘make compile-always’ performance by 0.6%
on my platform.

5 years agoAvoid duplicate comparison in describe_map_compare
Paul Eggert [Fri, 12 Jul 2019 00:01:20 +0000 (17:01 -0700)]
Avoid duplicate comparison in describe_map_compare

* src/fns.c (string_version_cmp): New function.
This has most of the old Fstring_version_lessp,
with an assertion to make things a bit clearer.
* src/fns.c (Fstring_version_lessp):
* src/keymap.c (describe_map_compare): Use it (Bug#33237).

5 years agoRaise required librsvg version so as to match the current use
YAMAMOTO Mitsuharu [Fri, 12 Jul 2019 00:03:39 +0000 (09:03 +0900)]
Raise required librsvg version so as to match the current use

* configure.ac: Set RSVG_REQUIRED to 2.14.0 as rsvg_handle_get_dimensions
needs it.

5 years ago* lisp/progmodes/compile.el (compilation-filter): Use font-lock-ensure
Juri Linkov [Thu, 11 Jul 2019 21:46:12 +0000 (00:46 +0300)]
* lisp/progmodes/compile.el (compilation-filter): Use font-lock-ensure

to update the number of errors in compilation-mode-line-errors
displayed in the mode-line.  (Bug#36564)

5 years agoBetter match-data handling in perform-replace
Juri Linkov [Thu, 11 Jul 2019 21:35:21 +0000 (00:35 +0300)]
Better match-data handling in perform-replace

* lisp/replace.el (perform-replace): Don't wrap replace-highlight
in save-match-data.  Use `(nth 0 real-match-data)' instead of
`(match-beginning 0)' after replace-highlight.  (Bug#36328)

5 years agoRemove lisp/obsolete/xesam.el
Michael Albinus [Thu, 11 Jul 2019 18:22:40 +0000 (20:22 +0200)]
Remove lisp/obsolete/xesam.el

5 years ago* test/lisp/format-spec-tests.el (test-format-unknown): Use `should-error'.
Michael Albinus [Thu, 11 Jul 2019 18:01:57 +0000 (20:01 +0200)]
* test/lisp/format-spec-tests.el (test-format-unknown): Use `should-error'.

5 years agoAllow passing unknown specs to format-spec
Lars Ingebrigtsen [Thu, 11 Jul 2019 16:44:30 +0000 (18:44 +0200)]
Allow passing unknown specs to format-spec

* lisp/format-spec.el (format-spec): Allow passing through format
strings that have no specs (to be able to act as a filter).  Also
add an example.
* test/lisp/format-spec-tests.el (test-format-spec): Add tests for
the new functionality.

5 years agoAdd tests for format-spec
Lars Ingebrigtsen [Thu, 11 Jul 2019 16:37:55 +0000 (18:37 +0200)]
Add tests for format-spec

5 years agoAdd test to time-stamp.el
Lars Ingebrigtsen [Thu, 11 Jul 2019 16:27:06 +0000 (18:27 +0200)]
Add test to time-stamp.el

5 years agoSupport program switches in 'comint-run' command
Phil Sainty [Thu, 11 Jul 2019 15:33:12 +0000 (17:33 +0200)]
Support program switches in 'comint-run' command

* etc/NEWS:
* doc/emacs/misc.texi: Describe new behaviour (bug#33037).
* lisp/comint.el (comint-run): Add optional SWITCHES argument.
With prefix argument C-u, prompt for SWITCHES.

5 years agoClarify the expand-file-name doc string
Lars Ingebrigtsen [Thu, 11 Jul 2019 15:10:52 +0000 (17:10 +0200)]
Clarify the expand-file-name doc string

* src/fileio.c (Fexpand_file_name): Clarify that "~" in NAME is
expanded, and not just "~/".  Also clarify that ~USER is not
expanded if USER doesn't exist (bug#36490).

5 years agoTweak the order keystrokes are sorted in keymap listings
Lars Ingebrigtsen [Thu, 11 Jul 2019 14:53:43 +0000 (16:53 +0200)]
Tweak the order keystrokes are sorted in keymap listings

* src/keymap.c (describe_map_compare): Change the sorting order of
keystrokes, so that we get the order <f1> <f2> <f11> instead of
<f1> <f11> <f2> (bug#33237).

5 years agoTweak misterioso header line background color
Lars Ingebrigtsen [Thu, 11 Jul 2019 14:42:16 +0000 (16:42 +0200)]
Tweak misterioso header line background color

* etc/themes/misterioso-theme.el (class): Make the header line
background darker so that cedet function names and parameters are
legible (bug#33061).

5 years agoRemove misleading message in customize
Stefan Kangas [Thu, 11 Jul 2019 14:06:03 +0000 (16:06 +0200)]
Remove misleading message in customize

* lisp/cus-edit.el (custom-buffer-create-internal): Remove misleading
message about "Resetting customization items" (bug#22451).

5 years agoFix C-x C-e with defvars in comments preceding
Lars Ingebrigtsen [Thu, 11 Jul 2019 13:42:13 +0000 (15:42 +0200)]
Fix C-x C-e with defvars in comments preceding

* lisp/progmodes/elisp-mode.el (eval-sexp-add-defvars): When
collecting defvars in the current buffer, ignore the ones that are
in comments or strings (bug#34233).

5 years agoResurrect SVG support on MS-Windows
Eli Zaretskii [Thu, 11 Jul 2019 13:28:41 +0000 (16:28 +0300)]
Resurrect SVG support on MS-Windows

* src/image.c (syms_of_image) <Qgio> [HAVE_NTGUI]: New DEFSYM.
(init_svg_functions) [LIBRSVG_CHECK_VERSION >= 2.32.0]: Load
g_file_new_for_path and g_memory_input_stream_new_from_data
from libgio, not from libglib.  (Bug#35548)

* lisp/term/w32-win.el (dynamic-library-alist): Add the libgio
DLL.