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.
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.
Andreas Schwab [Sat, 13 Jul 2019 21:59:31 +0000 (23:59 +0200)]
Revert "Fix typo in sh-assignment-regexp"
This reverts commit
194f370a3da72d560975adc2835254ce251881a7.
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).
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.
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.
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).
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).
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("")
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).
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.
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.
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).
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).
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.
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.
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
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.
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.
Michael Albinus [Sat, 13 Jul 2019 11:34:33 +0000 (13:34 +0200)]
; Fix formatting issue of last commit
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.
Michael Albinus [Sat, 13 Jul 2019 11:30:35 +0000 (13:30 +0200)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Adapt docstring.
Michael Albinus [Sat, 13 Jul 2019 11:30:28 +0000 (13:30 +0200)]
; Some precisements in test/README
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)
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'.
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.
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)
Eli Zaretskii [Sat, 13 Jul 2019 07:21:38 +0000 (10:21 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
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.
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)
Phil Sainty [Sat, 13 Jul 2019 06:57:37 +0000 (18:57 +1200)]
Merge branch 'scratch/so-long'
Phil Sainty [Fri, 14 Jun 2019 04:51:26 +0000 (16:51 +1200)]
Add tests for so-long.el
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"
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.
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).
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).
Lars Ingebrigtsen [Sat, 13 Jul 2019 04:12:42 +0000 (06:12 +0200)]
Mark the new vc-dir-delete command as documented
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).
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).
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).
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.
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).
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).
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).
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.
Paul Eggert [Fri, 12 Jul 2019 23:58:25 +0000 (16:58 -0700)]
* lib-src/make-docfile.c: Fix comment typo.
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).
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).
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).
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.
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).
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.
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.
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.)
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.
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.
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):...
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.
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.
Michael Albinus [Fri, 12 Jul 2019 13:05:11 +0000 (15:05 +0200)]
* doc/misc/tramp.texi (Inline methods): Precise about used external programs.
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.
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.
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).
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.
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)
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)
Michael Albinus [Thu, 11 Jul 2019 18:22:40 +0000 (20:22 +0200)]
Remove lisp/obsolete/xesam.el
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'.
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.
Lars Ingebrigtsen [Thu, 11 Jul 2019 16:37:55 +0000 (18:37 +0200)]
Add tests for format-spec
Lars Ingebrigtsen [Thu, 11 Jul 2019 16:27:06 +0000 (18:27 +0200)]
Add test to time-stamp.el
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.
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).
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).
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).
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).
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).
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.
Eli Zaretskii [Thu, 11 Jul 2019 13:03:33 +0000 (16:03 +0300)]
Avoid assertion violations when resize-mini-windows is nil
* src/xdisp.c (resize_mini_window): Always reset the
mini-window's start point to the beginning of the buffer, even
if resizing is not needed. This avoids assertion violations
when resize-mini-windows is nil. (Bug#36595)
Paul Eggert [Wed, 10 Jul 2019 19:37:55 +0000 (12:37 -0700)]
Avoid functions deprecated in librsvg 2.45.1
* src/image.c (init_svg_functions) [WINDOWSNT]:
Load the pre-2.32 or 2.32 functions,
depending on LIBRSVG_CHECK_VERSION.
(svg_load_image): In librsvg 2.32 or later, use
g_memory_input_stream_new_from_data, g_file_new_for_path and
rsvg_handle_new_from_stream_sync rather than the
deprecated-in-2.45 rsvg_handle_write and rsvg_handle_close.
From a patch by YAMAMOTO Mitsuharu (Bug#35548#11).
Mattias Engdegård [Wed, 10 Jul 2019 17:24:58 +0000 (19:24 +0200)]
Fix trig simplification crash (bug#33052)
* lisp/calc/calc-alg.el (calcFunc-sec, calcFunc-csc, calcFunc-cot):
Check that `math-known-sin' and `math-known-tan' succeeded before
using their value in arithmetic.
* test/lisp/calc/calc-tests.el (calc-test-trig): Add regression tests.
Basil L. Contovounesios [Wed, 10 Jul 2019 13:58:32 +0000 (14:58 +0100)]
; Update asm-mode docstring after last change
* lisp/progmodes/asm-mode.el (asm-mode): Display binding for
newline-and-indent instead of its obsolete alias
asm-newline (bug#36540).
Stefan Kangas [Sun, 7 Jul 2019 14:27:26 +0000 (16:27 +0200)]
Small cleanups in asm-mode.el (Bug#36540)
* lisp/progmodes/asm-mode.el: Remove "tools" from "Keywords" header.
Doc fixes.
(asm-comment-char, asm-comment): Doc fixes.
(asm-newline): Redefine as an obsolete function alias for
'newline-and-indent' instead of using a defalias.
Lars Ingebrigtsen [Wed, 10 Jul 2019 13:23:27 +0000 (15:23 +0200)]
Add recursion check for comint password prompting
* lisp/comint.el (comint--prompt-recursion-depth): New variable
(bug#33252).
(comint-watch-for-password-prompt): Use it to avoid bugging out
and making Emacs unusable when a shell script is prompting for
passwords in an infloop.
Lars Ingebrigtsen [Wed, 10 Jul 2019 13:03:12 +0000 (15:03 +0200)]
Fold too-long headers in Message automatically
* lisp/gnus/message.el (message--fold-long-headers): Header lines
should be no longer than 79 characters before folding
(bug#33313). Previous comment about 998 octets is about maximum
allowed header field length.
Lars Ingebrigtsen [Wed, 10 Jul 2019 12:46:05 +0000 (14:46 +0200)]
Doc clarification in abbrev-prefix-mark
* lisp/abbrev.el (abbrev-prefix-mark): Clarify when the hyphen is
removed (bug#33382).
Lars Ingebrigtsen [Wed, 10 Jul 2019 12:03:55 +0000 (14:03 +0200)]
Fix problem with files like "~" in `directory-files-recursively'
* lisp/files.el (directory-files-recursively): Don't bug out on
files like "~" that have special meaning to `expand-file-name'
(bug#36490).
Stefan Kangas [Wed, 10 Jul 2019 11:45:12 +0000 (13:45 +0200)]
Add new section on reading a bug to admin/notes/bugtracker
* admin/notes/bugtracker: New section "How do I read a bug?" in
"Quickstart" (Bug#36560).
Lars Ingebrigtsen [Wed, 10 Jul 2019 11:23:43 +0000 (13:23 +0200)]
Fix pretty-printing of {}
* lisp/json.el (json-pretty-print): Fix reading {}, which returns nil.
Stefan Kangas [Wed, 10 Jul 2019 01:45:15 +0000 (03:45 +0200)]
Fix warnings in todo-mode-tests.el (Bug#36569)
* test/lisp/calendar/todo-mode-tests.el (todo-test--insert-item):
Fix "Unused lexical argument" warnings.
Stefan Kangas [Wed, 10 Jul 2019 01:50:48 +0000 (03:50 +0200)]
Fix warning in electric-tests.el (Bug#36570)
* test/lisp/electric-tests.el (plainer-c-mode): Remove duplicate
definition.
Michael Albinus [Wed, 10 Jul 2019 08:34:02 +0000 (10:34 +0200)]
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size): Set nil on w32.
Paul Eggert [Wed, 10 Jul 2019 06:18:13 +0000 (23:18 -0700)]
Simplify math-get-calendar-tzinfo
* lisp/calc/calc-forms.el (calendar-current-time-zone-cache):
Remove defvar.
(math-get-calendar-tzinfo): Simplify and do not reach
into caldst’s cache.
Lars Ingebrigtsen [Tue, 9 Jul 2019 23:39:33 +0000 (01:39 +0200)]
Fix documentation of cl-member
* doc/misc/cl.texi (Lists as Sets): cl-member with no :test is not
equal to memq (because it uses eql) (bug#33655).
Lars Ingebrigtsen [Tue, 9 Jul 2019 23:18:39 +0000 (01:18 +0200)]
auth-source does not support "host" in .netrc files
* doc/misc/auth.texi (Help for users): Remove mention of "host" in
.netrc files, because it's not supported (bug#33826).
Lars Ingebrigtsen [Tue, 9 Jul 2019 22:53:39 +0000 (00:53 +0200)]
White-space fix in fortune-compile
* lisp/play/fortune.el (fortune-compile): Reindent function.
Benjamin Ragheb [Tue, 9 Jul 2019 22:31:10 +0000 (00:31 +0200)]
Search exec-path for fortune strfile program
* lisp/play/fortune.el (fortune-compile): Search exec-path for
strfile program (bug#33984).
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Tue, 9 Jul 2019 22:09:24 +0000 (00:09 +0200)]
Remove json-pretty-print-max-secs introduced earlier this year
* lisp/json.el (json-pretty-print-max-secs): Remove the variable
as it's no longer used.
Lars Ingebrigtsen [Tue, 9 Jul 2019 22:04:55 +0000 (00:04 +0200)]
Fix timezone east of GMT in Calv
* lisp/calc/calc-forms.el (math-calendar-tzinfo): Make timezone
calculation work east of Greenwich. Fix proposed by David O'Shea
(bug#34075).
Stefan Monnier [Tue, 9 Jul 2019 21:04:07 +0000 (17:04 -0400)]
* src/fileio.c: Fix bug#36431
(decide_coding_unwind): Re-introduce. Move text back to the gap.
Return the new `inserted` via the unwind_data.
(Finsert_file_contents): Use it.
Make sure `inserted` is always 0 when we jump straight to `notfound`.
Don't insert the text in the buffer until we know it's properly decoded
for the byteness of the buffer.
* test/src/fileio-tests.el (fileio-tests--insert-file-interrupt):
Allow insert-file-contents to return an empty buffer in case of
non-local exit in set-auto-coding-function.