2021-03-25 Eli Zaretskii * Version 27.2 released. 2021-03-18 Basil L. Contovounesios Fix 'frame-inner-height' in non-GUI builds Include tab bar in frame's inner height in non-GUI builds that don't define 'tab-bar-height'. This is consistent with the inclusion of the menu bar in the calculated height. It is also consistent with TTY frames of GUI builds, for which 'tab-bar-height' is always zero anyway (bug#47234). Fix suggested by Eli Zaretskii . * lisp/frame.el (frame-inner-height): Don't assume 'tab-bar-height' is defined in builds --without-x. 2021-03-18 Eli Zaretskii * etc/HISTORY: Update for Emacs 27.2. * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Set version to 27.2 2021-03-18 Lars Ingebrigtsen Document that `buffer-string' retains text properties * doc/lispref/text.texi (Buffer Contents): Mention text properties in the `buffer-string' documentation. * src/editfns.c (Fbuffer_string): Mention text properties in the doc string (bug#47220). (cherry picked from commit 60af754170f22f5d25510af069ed0ebfec95f992) 2021-03-17 Fabrice Bauzac Remove duplicate @table item from ELisp manual * doc/lispref/objects.texi (Special Read Syntax): Remove duplicate item "#@N" from the table of Special Read Syntax. (Bug#47200) 2021-03-14 Daniel Martín Fix reference to 'diff-font-lock-syntax' in diff-mode documentation * doc/emacs/files.texi (Diff Mode): Add the omitted name of the variable. (Bug#47129) 2021-03-14 Alan Third Fix buffer overflow in xbm_scan (bug#47094) * src/image.c (xbm_scan): Ensure reading a string doesn't overflow the buffer. (cherry picked from commit ebc3b25409dd614c1814a0643960452683e37aa3) 2021-03-13 Matt Armstrong Fix typos and omissions for (elisp)Button Buffer Commands * doc/lispref/display.texi (Button Buffer Commands): Minor typo and omission fixes `backward-button' and `forward-button'. (Bug#47051) 2021-03-13 Eli Zaretskii Teach Rmail about NBSP in "Re:" * lisp/mail/rmail.el (rmail-simplified-subject) (rmail-reply-regexp): Allow NBSP in "RE:" prefixes. 2021-03-12 Stefan Monnier Revert "* lisp/mouse.el: Fix mouse-1-clock-follows-mouse = double" This reverts commit 02a5cfce471613f671722b35536d2a78f17b0429. That commit breaks because of a missing patch to `parse_modifiers_uncached` in `src/keyboard.c`. IOW, too risky for `emacs-27`. Don't merge to `master`. 2021-03-11 Stefan Monnier * lisp/mouse.el: Fix mouse-1-clock-follows-mouse = double This functionality was broken by commit 3d5e31eceb9dc1fb62b2b2, the problem being that we end up considering as distinct the events `down-double-mouse-1` and `double-down-mouse-1`. Reported by Eyal Soha (mouse--click-1-maybe-follows-link): Make sure the last element of the list passed to `event-convert-list` is indeed a "basic" event. 2021-03-05 Stefan Monnier * lisp/emacs-lisp/gv.el (edebug-after): Don't run the getter in the setter This fixes bug#46573 which was introduced by commit d79cf638f278e50c22feb53d6ba556f5ce9d7853. The new code is a middle ground, which makes sure the instrumentation point is used (so the coverage checker won't have ghost unreachable instrumentation points) yet without artificially running the getter when we only need to run the setter. 2021-03-05 Masahiro Nakamura * doc/misc/tramp.texi (Remote shell setup): Fix reference. (Do not merge) 2021-03-05 Eli Zaretskii Fix initialization of 'while-no-input-ignore-events' * src/keyboard.c (syms_of_keyboard_for_pdumper): Don't reset 'while-no-input-ignore-events' after loading the dump file. (Bug#46940) 2021-03-04 Eli Zaretskii Update documentation of reading passwords * doc/emacs/mini.texi (Passwords): Update to match the modified implementation. (Bug#46902) Add indexing. 2021-03-02 Lars Ingebrigtsen Improve the 'dired-do-kill-lines' doc string * lisp/dired-aux.el (dired-do-kill-lines): Document the FMT parameter (bug#46867). (cherry picked from commit b9cb3b904008a80c69ab433f4851377967b100db) 2021-02-27 Eli Zaretskii Avoid crashes in Mew due to corrupted tool-bar label * src/gtkutil.c (update_frame_tool_bar): Don't keep around a 'char *' pointer to a Lisp string's contents when calling Lisp, because that could relocate string data; keep the Lisp string itself instead. This avoids crashes in Mew. (Bug#46791) 2021-02-25 Stefan Kangas * lisp/tooltip.el (tooltip): Doc fix for GTK. 2021-02-20 Stefan Kangas * lisp/help.el (help-for-help-internal): Doc fix; use imperative. 2021-02-19 Eli Zaretskii More accurate documentation of the "r" interactive spec * doc/lispref/commands.texi (Interactive Codes): Describe the effect of 'mark-even-if-inactive'. 2021-02-19 Stefan Kangas Mention the GNU Kind Communications Guidelines in the FAQ * doc/misc/efaq.texi (Guidelines for newsgroup postings): Mention the GNU Kind Communications Guidelines. 2021-02-18 Ryan Prior (tiny change) Allow newlines in password prompts again in comint * lisp/comint.el (comint-password-prompt-regexp): Match all whitespace (including newline) at the end of the passphrase, not just space and \t (bug#46609). (comint-watch-for-password-prompt): Remove trailing newlines from the prompt (bug#46609). 2021-02-16 Eli Zaretskii Avoid point movement when visiting image files * lisp/image-mode.el (image-toggle-display-image): Preserve point around the call to exif-parse-buffer, to prevent it from moving into the image data. (Bug#46552) 2021-02-10 Eli Zaretskii Avoid assertion violation in callproc.c * src/callproc.c (call_process): Avoid assertion violation when DESTINATION is a cons cell '(:file . "FOO")'. (Bug#46426) 2021-02-08 Lars Ingebrigtsen Clarify "changes" in CONTRIBUTE * CONTRIBUTE: Clarify that "changes" doesn't include removing code (bug#44834). (cherry picked from commit 33c9556c9db9b8c62dcd80dd3cc665e669ea66d4) 2021-02-07 Lars Ingebrigtsen Clarify when activate-mark-hook is run * doc/lispref/markers.texi (The Mark): * lisp/simple.el (activate-mark-hook): Clarify when the hook is run (bug#23444). 2021-02-07 Eli Zaretskii Fix language-environment and font selection on MS-Windows These changes improve setting the language-environment and font selection when MS-Windows returns useless "ZZZ" as the "language name", which then disrupts all the setup of the locale-dependent stuff, and in particular font selection. * lisp/w32-fns.el (w32-charset-info-alist): Add an element for "iso8859-5", in case LANG is set to something unusable, like "ZZZ". This allows fonts capable of displaying Cyrillic characters to be used even when language preferences are screwed. * src/w32.c (init_environment): If GetLocaleInfo returns "ZZZ" as the "language name" for LOCALE_USER_DEFAULT, try again with locale ID based on what GetUserDefaultUILanguage returns. (Bug#39286) 2021-02-07 Petteri Hintsanen Fix example in Sequence Functions node in the manual * doc/lispref/sequences.texi (Sequence Functions): Fix the result from the example. 2021-02-06 Eli Zaretskii Improve doc string of 'text-scale-adjust' * lisp/face-remap.el (text-scale-adjust): Clarify that "default face height" refers to the 'default' face. (Bug#25168) 2021-02-06 Lars Ingebrigtsen Clarify the indent-rigidly doc string * lisp/indent.el (indent-rigidly): Clarify exiting the transient mode (bug#46296). 2021-02-06 Martin Rudalics Fix two small tab bar issues * lisp/cus-start.el (frame-inhibit-implied-resize): Update version tag. * lisp/frame.el (frame-inner-height): Do not count in tab bar. 2021-02-05 Eli Zaretskii Fix last change in syntax.texi * doc/lispref/syntax.texi (Syntax Properties): Fix wording in last change. (Bug#46274) 2021-02-05 Lars Ingebrigtsen Correct the lispref manual about flushing ppss info * doc/lispref/syntax.texi (Syntax Properties): Correct the information about flushing the state by copying the text from the doc string (bug#46274). (cherry picked from commit ff701ce2b261acce1dfcd1fe137268d87d5eab35) 2021-02-05 Lars Ingebrigtsen Clarify how transient indentation modes are exited in the manual * doc/emacs/indent.texi (Indentation Commands): Clarify that the other keys don't just exit the transient mode, but are also handled as normally (bug#46296). 2021-02-04 Dmitry Gutov Fix the previous change * lisp/progmodes/project.el (project-find-regexp): Fix the previous change (project-root is not defined in this version). (project-or-external-find-regexp): Same. 2021-02-04 Dmitry Gutov Bind default-directory to the project root * lisp/progmodes/project.el (project-find-regexp): Bind default-directory to the project root, to save this value in the resulting buffer (esp. if the project selector was used, (https://lists.gnu.org/archive/html/emacs-devel/2021-02/msg00140.html). (project-or-external-find-regexp): Same. (cherry picked from commit c07ebfcbe084e8219d8c2588f23f77ba4ef39087) 2021-02-04 Dmitry Gutov Make sure default-directory relates to the originating buffer * lisp/progmodes/xref.el (xref--show-xref-buffer): Pick up default-directory value from the caller (https://lists.gnu.org/archive/html/emacs-devel/2021-01/msg00551.html). (xref-show-definitions-buffer-at-bottom): Same. (cherry picked from commit 6e73e07a6f5cbdd1c5ae6e0f3fbd0f8f56813f1a) 2021-02-04 Eli Zaretskii Initialize signal descriptions after pdumping * src/sysdep.c (init_signals) [!HAVE_DECL_SYS_SIGLIST]: Reinit sys_siglist also after pdumping. (Bug#46284) 2021-02-04 Lars Ingebrigtsen Clarify the "Sentinels" node in the lispref manual * doc/lispref/processes.texi (Sentinels): Mention "run" and that the strings can be anything (bug#30461). (cherry picked from commit 859a4cb6b22f75a3456e29d08fcfe9b8940fbe8b) 2021-02-04 Alexandre Duret-Lutz (tiny change) Fix problem with non-ASCII characters in nnmaildir * lisp/gnus/nnmaildir.el (nnmaildir-request-article): Enable multipart 8bit-content-transfer-encoded files to be displayed correctly by reading as `raw-text' instead of having Emacs (incorrectly) decode the files (bug#44307). 2021-02-02 Eli Zaretskii * lisp/window.el (recenter-top-bottom): Clarify doc string. 2021-01-31 Thomas Fitzsimmons url-http.el: Special-case NTLM authentication * lisp/url/url-http.el (url-http-handle-authentication): Do not signal an error on NTLM authorization strings. (Bug#43566) 2021-01-31 Juri Linkov * lisp/isearch.el (isearch-lazy-highlight): Fix defcustom type (bug#46208) 2021-01-30 Stefan Kangas Sync latest SKK-JISYO.L * leim/SKK-DIC/SKK-JISYO.L: Sync to current upstream version. 2021-01-30 Alan Third Fix build failure on macOS 10.7 (bug#46036) * src/nsfns.m (ns_set_represented_filename): Define the NSNumber in a more compatible manner. 2021-01-30 Eli Zaretskii Improve documentation of auto-resize-tool/tab-bars * src/xdisp.c (syms_of_xdisp) : Doc fix. (Bug#46178) 2021-01-29 Dmitry Gutov (xref-revert-buffer): Also 'erase-buffer' when handling a user-error * lisp/progmodes/xref.el (xref-revert-buffer): Also 'erase-buffer' when handling a user-error (bug#46042). (cherry picked from commit e86b30d6fd04070b86560774ec82392dbe24ca1e) 2021-01-29 Eli Zaretskii Update files for 27.1.91 pretest * ChangeLog.3: * etc/AUTHORS * lisp/ldefs-boot.el: Update. 2021-01-29 Eli Zaretskii Bump Emacs version to 27.1.91 * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Bump Emacs version to 27.1.91. 2021-01-27 Eli Zaretskii Improve documentation of 'read-regexp' and friends * doc/emacs/glossary.texi (Glossary): Add "Tag" to the Glossary. * doc/emacs/maintaining.texi (Xref): Mention that identifiers are also known as "tags". * lisp/replace.el (read-regexp, read-regexp-suggestions): Improve wording of doc strings. (Bug#46088) (Bug#46089) (cherry picked from commit 49eb03d6c8a181fd46adbbcf1f0a976d0a9efa87) 2021-01-27 Lars Ingebrigtsen read-regexp-suggestions doc string improvement * lisp/replace.el (read-regexp-suggestions): Add a link to the manual to explain what a tag is (bug#46089). (cherry picked from commit f9cc2d48246fe8370e9286866e6115ba8e2acf44) 2021-01-27 Lars Ingebrigtsen Try to improve the read-regexp doc string * lisp/replace.el (read-regexp): Attempt to clarify the semantics (bug#46088). (cherry picked from commit eded2a7ad7d456a417354a2797c18e9a578414d7) 2021-01-23 Dmitry Gutov Erase the buffer only after fetching the new contents * lisp/progmodes/xref.el (xref-revert-buffer): Erase the buffer only after fetching the new contents (bug#46042). (cherry picked from commit 5821dee0949b2913c07970d6e4b8bb8e8a35f036) 2021-01-23 Eli Zaretskii Fix last change * doc/lispref/text.texi (Undo): Add a cross-reference to the description of 'undo-amalgamate-change-group'. (Atomic Changes): Expand and improve the description of 'undo-amalgamate-change-group'. (Bug#42303) 2021-01-23 Lars Ingebrigtsen Mention undo-amalgamate-change-group in the lispref manual * doc/lispref/text.texi (Atomic Changes): Mention undo-amalgamate-change-group (bug#42303). (cherry picked from commit ba25a82855a2c03c25fec83f3056c166b692e94f) 2021-01-22 Eli Zaretskii Avoid sending systemd shutdown notifications if non-daemon * src/emacs.c (Fkill_emacs): Send the shutdown notification only in daemon mode. (Bug#46022) 2021-01-22 Eli Zaretskii * src/cmds.c (Fforward_line): Doc fix. (Bug#46027) 2021-01-22 Eli Zaretskii Improve documentation of sendmail.el defcustom's * lisp/mail/sendmail.el (mail-archive-file-name) (mail-default-reply-to, mail-self-blind, mail-default-headers): Say in the doc string that 'message-default-mail-headers' shall be customized when using 'message-mode' for email composition. (Bug#46029) 2021-01-20 Stefan Monnier Don't let `maybe_quit` prevent resetting `consing_until_gc` (bug#43389) * src/alloc.c (garbage_collect): Postpone `unblock_input` a bit. * src/window.c (window_parameter): Avoid `maybe_quit`. cherry picked from commit 420661af07448857f0a17e15dc27bceeb6aff541 2021-01-13 Juri Linkov Remove one of recently added warnings abound binding keys in Isearch maps * lisp/isearch.el (minibuffer-local-isearch-map): Remove comments which warn against wantonly rebinding unbound keys from irrelevant keymap. https://lists.gnu.org/archive/html/emacs-devel/2021-01/msg00259.html 2021-01-10 Martin Rudalics Fix assertion failure in window_box_height (Bug#45737) * lisp/window.el (window-sizable): Don't try to grow a mini window when the root window's minimum height is already larger than its actual height (Bug#45737). 2021-01-09 Eli Zaretskii Fix cl-concatenate inlining * lisp/emacs-lisp/seq.el (seq-concatenate): Auto-load it. Do not merge to master. (Bug#45610) 2021-01-09 Tak Kunihiro Fix infloop in 'pixel-scroll-mode' * lisp/pixel-scroll.el (pixel-scroll-up, pixel-scroll-down): Avoid inflooping when 'vertical-motion' doesn't move. (Bug#45628) 2021-01-08 Eli Zaretskii Fix inhibiting the default.el loading in user init file * lisp/startup.el (startup--load-user-init-file): Test the value of 'inhibit-default-init', not just the LOAD-DEFAULTS argument, because loading the user's init file could have set the value of the former. (command-line): Call 'startup--load-user-init-file' with last arg t: there's no longer any need to test the value of 'inhibit-default-init' here, as it will be tested by the called function. (Bug#45708) 2021-01-07 Lars Ingebrigtsen Fix problem with 8bit content-transfer-encoding in nndoc mbox files * lisp/gnus/nndoc.el (nndoc-possibly-change-buffer): If we're reading an mbox file, it may contain messages that use content-transfer-encoding 8bit, which means that we have to treat the file as a sequence of byte (bug#42951). This avoids double-decoding -- once by Emacs when inserting the mbox into the buffer, and once by Gnus when displaying the articles. 2021-01-05 Michael Albinus * doc/misc/tramp.texi (Quick Start Guide): Fix thinko. 2021-01-05 Robert Pluim Tell people how to remove fontconfig customizations 2021-01-04 Simen Heggestøyl Remove extraneous closing paren * doc/lispref/modes.texi (SMIE Indentation Example): Remove extraneous closing paren. 2021-01-04 Mauro Aranda Update two user option names in the Widget manual * doc/misc/widget.texi (Basic Types): The user options widget-glyph-directory and widget-glyph-enable were renamed long ago to widget-image-directory and widget-image-enable, but the manual kept calling them by their old names. Update the names. 2021-01-03 Paul Eggert Mention -lcurses problem on AIX * etc/PROBLEMS: Describe problem with Emacs 27 and -lcurses. Do not merge to master. 2021-01-03 Paul Eggert Revert previous patch which was installed into wrong branch. 2021-01-03 Paul Eggert Fix broken build on AIX 7.2 Without this fix, the build on AIX 7.2 with xlc fails in the ‘CCLD temacs’ step with the diagnostic ‘ld: 0711-317 ERROR: Undefined symbol: BC’. This is because -lcurses does not define BC etc. * configure.ac: When building terminfo.o, define TERMINFO_DEFINES_BC if the library defines BC etc. * src/terminfo.c (UP, BC, PC): Define depending on TERMINFO_DEFINES_BC, not on TERMINFO. 2021-01-02 Eli Zaretskii Fix last change * doc/lispref/strings.texi (Creating Strings): Improve wording of last change. (Bug#45516) 2021-01-02 Lars Ingebrigtsen Add a reference between the Strings node and Search/Replace * doc/lispref/strings.texi (Creating Strings): Mention string-replace/replace-regexp-in-string (bug#45516). (cherry picked from commit b9359d4183a1a6923122d3aa12b922ab89693354) 2021-01-01 Eli Zaretskii Add warning comments abound binding keys in Isearch maps * lisp/isearch.el (isearch-mode-map) (minibuffer-local-isearch-map): Add comments which warn against wantonly rebinding unbound keys. 2021-01-01 Alan Third Fix crash in ns_mouse_position (bug#45541) * src/nsterm.m (ns_mouse_position): Explicitly initialize f to NULL. 2021-01-01 Paul Eggert Fix copyright years by hand These are dates that admin/update-copyright did not update. 2021-01-01 Paul Eggert Update copyright year to 2021 Run "TZ=UTC0 admin/update-copyright $(git ls-files)". 2020-12-31 Eli Zaretskii Improve documentation of 'network-lookup-address-info' * src/process.c (Fnetwork_lookup_address_info): * doc/lispref/processes.texi (Misc Network): Document the error message emitted by 'network-lookup-address-info' when it fails. 2020-12-28 Amin Bandali Display messages sent using ERC's /say * lisp/erc/erc.el (erc-cmd-SAY): Call `erc-display-msg' to display the user's message in the buffer, just like other [non-command] messages. https://lists.gnu.org/r/help-gnu-emacs/2020-12/msg00066.html 2020-12-26 Eli Zaretskii Fix Rmail summary display when From: header is malformed * lisp/mail/rmailsum.el (rmail-header-summary): Remove newlines from the "From:" value, to avoid producing corrupted summary display. 2020-12-25 Eli Zaretskii Add more details to the "word processor" section * etc/TODO (Emacs as word processor): Add more details based on recent discussions. 2020-12-23 Philipp Stephani * src/Makefile.in (DO_CODESIGN): Fix expected architecture name. 2020-12-23 Itai Seggev (tiny change) Codesign the executable on recene MacOS systems * src/Makefile.in (temacs$(EXEEXT)): Codesign the executable on recent (ARM) MacOS systems (bug#43878). Without this, building Emacs fails. 2020-12-23 Lars Ingebrigtsen Support build of Emacs on ARM Macos machines * configure.ac: Add support for aarch64-* on Macos (i.e., 64-bit ARM) (bug#43369). 2020-12-22 Bastien Guerry Update to Org 9.4.4 2020-12-21 Stefan Kangas * lisp/so-long.el: Decrease use of passive voice. Suggested by Richard Stallman . 2020-12-21 Stefan Kangas * doc/misc/efaq.texi (New in Emacs 27): Add section. * doc/misc/efaq.texi (Latest version of Emacs): Bump version. 2020-12-19 Eli Zaretskii * lisp/face-remap.el (face-remap-set-base): Doc fix. (Bug#45264) 2020-12-19 Vasilij Schneidermann Correct argument order in comment * etc/ETAGS.EBNF (position): Correct comment. 2020-12-18 Eli Zaretskii Update files for the 27.1.90 pretest * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Bump Emacs version to 27.1.90. * lisp/ldefs-boot.el: Update from loaddefs.el 2020-12-18 Eli Zaretskii * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Bump Emacs version to 27.1.90. 2020-12-18 Eli Zaretskii Minor fixes in authors.el and in tarball-making instructions * admin/authors.el (authors): Make the error message more helpful. (authors-ignored-files, authors-renamed-files-alist): Update. 2020-12-16 Eli Zaretskii Improve documentation of 'query-replace' * doc/emacs/search.texi (Query Replace): Add 'E' to the list of characters one can type at 'query-replace' prompt. (Bug#45273) 2020-12-16 Bastien Guerry Update to Org 9.4.3 Fix #45259 2020-12-14 Alan Third Fix error with fn key in NS port (bug#44533) * src/nsterm.m ([EmacsView keyDown:]): Move the correction for fn key handling to before the modifiers are calculated. (cherry picked from commit 7970610d48701a949ce443c94c71eac47d044197) 2020-12-14 Eli Zaretskii Fix point location when completing in gdb-mi.el * lisp/progmodes/gdb-mi.el (def-gdb-auto-update-handler): Don't force window-start position, so that redisplay doesn't move point when popping completion window below the GUD one. (Bug#45052) 2020-12-13 Bastien Guerry Update to Org 9.4.2 Mostly fixing compiler warnings. 2020-12-13 Bastien Guerry Update to Org 9.4.1 2020-12-12 Alan Third Fix crash in ns_mouse_position (bug#44313) * src/nsterm.m (ns_destroy_window): Close the window before freeing the frame resources so we don't end up accessing the frame struct after it's been freed. (cherry picked from commit 18a7267c32a909bb26bd93d24543155aeb10e042) 2020-12-12 Alan Third Fix crash when using XRender and restoring image from X (bug#44930) * src/dispextern.h (struct image): Add original dimension elements. * src/image.c (image_set_transform): Store the original dimensions. (image_get_x_image): If we're using transforms use the original dimensions with XGetImage. 2020-12-11 Tassilo Horn Bind k to image-kill-buffer in doc-view-mode-map. * lisp/doc-view.el (doc-view-mode-map): Bind k to image-kill-buffer. The binding k -> doc-view-kill-proc-and-buffer has been removed in 2015 and the function been made an obsolete function alias to image-kill-buffer (bug#45157). 2020-12-09 Serge Tupchii (tiny change) Fix crash (segfault) in etags on generating tags for Erlang files * lib-src/etags.c: Set allocated and lastlen to zero, after freeing last ptr in Erlang_functions to prevent dereferencing NULL pointer (bug#45122). (cherry picked from commit 2d8f0364fcd1d5dad2b82dd3a9af870b03854547) 2020-12-09 Stefan Kangas Update publicsuffix.txt from upstream * etc/publicsuffix.txt: Update from https://publicsuffix.org/list/public_suffix_list.dat dated 2020-11-30 21:57:25 UTC. 2020-12-06 Juri Linkov * lisp/vc/vc.el: Update args of backend API calls in the header comments https://lists.gnu.org/archive/html/emacs-devel/2020-12/msg00283.html 2020-12-06 Juri Linkov Backport Handle read-char-from-minibuffer and y-or-n-p from pre-command-hook * lisp/subr.el (read-char-from-minibuffer-insert-char) (read-char-from-minibuffer-insert-other, y-or-n-p-insert-y) (y-or-n-p-insert-n, y-or-n-p-insert-other): Check for 'minibufferp' before executing the body. (read-char-from-minibuffer, y-or-n-p): Let-bind this-command before calling read-from-minibuffer. (Bug#45029) 2020-12-06 Eli Zaretskii Improve documentation of streams in batch mode * doc/lispref/os.texi (Batch Mode): * doc/lispref/streams.texi (Input Streams, Output Streams): Better documentation of I/O streams in batch mode, with more cross-references. 2020-12-06 Eli Zaretskii Support ks_c_5601-1987 encoding * lisp/language/korean.el (ks_c_5601-1987): Define as an alias for 'korean-iso-8bit. (It is sometimes used in email messages.) 2020-12-06 YAMAMOTO Mitsuharu Fix Xaw widget text disappearing when built with cairo (bug#43418) * lwlib/lwlib-utils.c (crxft_font_open_name): Use FcFontMatch to get a pattern to pass to cairo_ft_font_face_create_for_pattern. 2020-12-05 Eli Zaretskii Improve documentation of 'ps-print-color-p' * doc/emacs/misc.texi (PostScript Variables): Improve and clarify the description of 'ps-print-color-p'. (Bug#44962) 2020-11-30 Dmitry Gutov Reset xref-show-xrefs-function temporarily * lisp/dired-aux.el (dired-do-find-regexp-and-replace): Make sure xref-show-xrefs-function has the necessary value (bug#44905). 2020-11-30 Eli Zaretskii Don't show in 'view-lossage' responses to xterm feature queries * lisp/term/xterm.el (xterm--read-event-for-query): Prevent recording the characters read as the xterm response to a query, so as not to show them in 'view-lossage'. (Bug#44908) 2020-11-30 Michael Albinus Adapt Tramp versions. Do not merge * doc/misc/tramp.texi (Obtaining @value{tramp}) (Remote shell setup, Remote processes, Archive file names): * doc/misc/trampver.texi: * lisp/net/tramp.el: * lisp/net/trampver.el (tramp-version) (customize-package-emacs-version-alist): Adapt Tramp versions. 2020-11-29 Akira Kyle Return the correct suffix in eww-make-unique-file-name * lisp/net/eww.el (eww-make-unique-file-name): Return the correct suffix (bug#44936). 2020-11-28 Karl Fogel Save bookmarks by using `write-file' (bug#12507) Go back to using `write-file' to save bookmarks, instead of using `write-region'. This means numbered backups of the bookmark file may get made again, depending on the value of `bookmark-version-control'. Thanks especially to Drew Adams and Eli Zaretskii for their persistence in tracking down information relevant to this change. 2020-11-28 Eli Zaretskii Fix filing messages when 'rmail-output-reset-deleted-flag' is non-nil * lisp/mail/rmailout.el (rmail-output): Fix off-by-one error in deciding when to advance to the next message under non-nil 'rmail-output-reset-deleted-flag'. (Bug#44839) 2020-11-28 Michael Albinus Make file copying in tramp-gvfs more robust * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file): Do not skip for tramp-gvfs.el. * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): Add sanity checks. 2020-11-28 Eli Zaretskii Revert "Fix incorrect handling of module runtime and environment pointers." This reverts commit cdc632fbe6e149318147a98cccf1b7af191f2ce8. Those changes are too significant and non-trivial to be suitable for a release branch at this time. 2020-11-27 Philipp Stephani Fix incorrect handling of module runtime and environment pointers. We used to store module runtime and environment pointers in the static lists Vmodule_runtimes and Vmodule_environments. However, this is incorrect because these objects have to be kept per-thread. With this naive approach, interleaving module function calls in separate threads leads to environments being removed in the wrong order, which in turn can cause local module values to be incorrectly garbage-collected. Instead, turn Vmodule_runtimes and Vmodule_environments into hashtables keyed by the thread objects. The fix is relatively localized and should therefore be safe enough for the release branch. Module assertions now have to walk the pointer list for the current thread, which is more correct since they now only find environments for the current thread. Also add a unit test that exemplifies the problem. It interleaves two module calls in two threads so that the first call ends while the second one is still active. Without this change, this test triggers an assertion failure. * src/emacs-module.c (Fmodule_load, initialize_environment) (finalize_environment, finalize_runtime_unwind): Store runtime and environment pointers in per-thread lists. (syms_of_module): Initialize runtimes and environments hashtables. (module_assert_runtime, module_assert_env, value_to_lisp): Consider only objects for the current thread. (module_gc_hash_table_size, module_hash_push, module_hash_pop): New generic hashtable helper functions. (module_objects, module_push_pointer, module_pop_pointer): New helper functions to main thread-specific lists of runtime and environment pointers. (mark_modules): Mark all environments in all threads. * test/data/emacs-module/mod-test.c (Fmod_test_funcall): New test function. (emacs_module_init): Bind it. * test/src/emacs-module-tests.el (emacs-module-tests--variable): New helper type to guard access to state in a thread-safe way. (emacs-module-tests--wait-for-variable) (emacs-module-tests--change-variable): New helper functions. (emacs-module-tests/interleaved-threads): New unit test. 2020-11-26 Alan Mackenzie CC Mode: Fix error in cache handling. This fixes bug #43481 * lisp/progmodes/cc-engine.el (c-full-pp-to-literal): Handle correctly END being before HERE by using parse-partial-sexp to get the end of the literal containing HERE. 2020-11-25 Martin Rudalics Revert extra focus redirection in do_switch_frame (Bug#24803) * src/frame.c (do_switch_frame): Do not also redirect frame focus when FRAME has its minibuffer window on the selected frame which was intended to fix Bug#24500. It may cause Bug#24803 and lead to a nasty state where no active cursor is shown on any frame, see https://lists.gnu.org/archive/html/emacs-devel/2020-11/msg01137.html. 2020-11-25 Michael Albinus Minor cleanup of tramp-tests.el on MS Windows * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process): Do not test remote pty on MS Windows. 2020-11-24 Basil L. Contovounesios Fix handling of defcustom :local tag For discussion, see the following emacs-devel thread: https://lists.gnu.org/r/emacs-devel/2020-11/msg00734.html * lisp/custom.el (custom-declare-variable): Delay call to make-variable-buffer-local until after user option has been initialized with a value. Otherwise the user option may be initialized to nil. * test/lisp/custom-tests.el (custom--test-local-option) (custom--test-permanent-option): New :local user options. (custom-test-local-option): New test for defcustom :local keyword. 2020-11-24 Alan Mackenzie CC Mode. Fix an off by one error. Fixes bug #41809 * lisp/progmodes/cc-engine.el (c-full-pp-to-literal): Change > to >= (twice). 2020-11-24 Eli Zaretskii Fix display artifacts when 'display' properties cover newlines * src/xdisp.c (pos_visible_p): Set glyph_row of scratch iterators to NULL, to avoid producing glyphs while we figure out the layout. (Bug#44826) 2020-11-23 Stefan Kangas Sync latest SKK-JISYO.L * leim/SKK-DIC/SKK-JISYO.L: Sync to current upstream version. (cherry picked from commit 6a5f9700846551a7f3795e257356dbab865116f4) 2020-11-23 Stefan Kangas Update publicsuffix.txt from upstream * etc/publicsuffix.txt: Update from https://publicsuffix.org/list/public_suffix_list.dat dated 2020-10-09 08:23:34 UTC. (cherry picked from commit 5b13afab0a903ead8363482529019d4fb80ec4b4) 2020-11-21 Michael Albinus Fix Bug#44481 * lisp/net/tramp.el (tramp-system-name): New defconst. (tramp-default-host, tramp-restricted-shell-hosts-alist) (tramp-local-host-regexp): * lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use it. (Bug#44481) 2020-11-21 Lars Ingebrigtsen Minor Edebug manual keystroke clarifications * doc/lispref/edebug.texi (Edebug Misc): Also mention the `a' binding to abort (bug#44697). Also fix `d' function reference, and add `P' reference. (cherry picked from commit b613f25f97abf756101eaa2af90689a19c0b3350) 2020-11-21 Eli Zaretskii Make ignoring modifiers on IME input optional By default, ignore modifier keys on IME input, but add a variable to get back old behavior. * src/w32fns.c (syms_of_w32fns): New variable w32-ignore-modifiers-on-IME-input. (w32_wnd_proc): Use it to ignore modifier keys when IME input is used. (Bug#44641) * etc/NEWS: Announce the change and the new variable. 2020-11-21 Masahiro Nakamura Ignore modifiers when processing WM_IME_CHAR messages * src/w32fns.c (w32_wnd_proc): Ignore modifiers when processing WM_IME_CHAR messages. 2020-11-19 Eli Zaretskii Improve documentation of 'font-spec' * doc/lispref/display.texi (Low-Level Font): * src/font.c (Ffont_spec): Document 'font-spec' keys that are supported, but were undocumented. 2020-11-18 Lars Ingebrigtsen Further doc fixes for dotimes about RESULT * lisp/subr.el (dotimes): Be even more explicit about RESULT (bug#16206). (cherry picked from commit 5b0d8d0f288fd505ca90bd30df709a5e7ab540d6) 2020-11-15 Eli Zaretskii Reformat argument commentary in etags.c * lib-src/etags.c (pfnote, consider_token, C_entries): Resurrect original format of comments to function arguments. 2020-11-15 Alan Mackenzie Make the invocation of combine-change-calls in comment-region valid This fixes bug #44581. The problem was that whitespace outside of the (BEG END) region was being deleted, and this made the invocation of combine-change-calls with (BEG END) invalid. * lisp/newcomment.el (comment-region-default): Amend the second argument to combine-change-calls. 2020-11-15 Alan Mackenzie * lisp/progmodes/cc-langs.el (c-<>-notable-chars-re): Fix wrong '-' in regexp 2020-11-14 Eli Zaretskii Update the various INSTALL files * nt/INSTALL.W64: * nt/INSTALL: * INSTALL: Update the installation information, in particular the fact that HarfBuzz is now preferred as the shaping library. 2020-11-14 Eli Zaretskii Don't leave lock files after 'replace-buffer-contents' * src/editfns.c (Freplace_buffer_contents): Unlock the buffer's file if no changes have been made. (Bug#44303) (cherry picked from commit a5867ddfbd721568005175bf6c725f7834b21ea4) 2020-11-14 Eli Zaretskii Fix input method translation near read-only text * lisp/international/quail.el (quail-input-method): Don't disable input method when the character after point has the read-only property. Suggested by Evgeny Zajcev (Bug#44466) * doc/emacs/mule.texi (Input Methods): Document that input methods are inhibited in read-only text. 2020-11-14 Eli Zaretskii Fix display of truncated R2L lines on TTY frames * src/xdisp.c (extend_face_to_end_of_line): Use a while-loop, not a do-while loop, to avoid appending an extra glyph at the end of a line that is one character shorter than the window-width. This is needed to fix display of reversed glyph rows that are almost as wide as the window, because append_space_for_newline already added one space glyph. 2020-11-14 Eli Zaretskii Avoid crashes when a reversed glyph row starts with a composition * src/dispnew.c (build_frame_matrix_from_leaf_window): Add an assertion to prevent us from overwriting non-char glyphs with the vertical border glyph. * src/xdisp.c (extend_face_to_end_of_line): Account for one glyph possibly inserted by append_space_for_newline. (Bug#44506) Remove a kludgey correction for an off-by-one error in column counting, which is no longer needed. 2020-11-13 Eli Zaretskii Update information about refcards * admin/release-process (refcards): * admin/make-tarball.txt (refcards): Update information about generating refcards and required TeX/LaTeX packages. 2020-11-11 Eli Zaretskii Avoid crashes in the daemon due to user interaction * src/minibuf.c (read_minibuf): Avoid crashes in the daemon if the init file invokes some kind of minibuffer interaction, by not updating the selected frame if it's the initial frame. (Bug#44583) 2020-11-11 Michael Albinus Some minor changes to Tramp, do not merge with master * lisp/net/tramp.el (tramp-handle-directory-files) (tramp-handle-directory-files-and-attributes): * lisp/net/tramp-adb.el (tramp-adb-handle-directory-files-and-attributes): * lisp/net/tramp-rclone.el (tramp-rclone-handle-directory-files): * lisp/net/tramp-sh.el (tramp-sh-handle-directory-files-and-attributes): * lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Add _COUNT. Make the functions forward compatible. * lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Increase `max-specpdl-size' temporarily. * test/lisp/net/tramp-tests.el (tramp--test-share-p): New defun. (tramp-test05-expand-file-name-relative): Use it. 2020-11-10 Lars Ingebrigtsen Add more doc-view requirements * lisp/doc-view.el: Add more requirements. 2020-11-09 Philipp Stephani Fix undefined behavior when fetching glyphs from the display vector. You can trigger this rather obscure bug by enabling selective display if the second glyph in its display vector has an invalid face. For example, evaluate (set-display-table-slot standard-display-table 'selective-display [?A (?B . invalid)]) and then enable selective display. * src/xdisp.c (next_element_from_display_vector): Check whether next glyph code is valid before accessing it. 2020-11-09 Mattias Engdegård Fix pcase rx form snag with '?' and '??' (bug#44532) This is a regression from Emacs 26. Reported by Phillip Stephani. * lisp/emacs-lisp/rx.el (rx--pcase-transform): Process ? and ?? correctly. * test/lisp/emacs-lisp/rx-tests.el (rx-pcase): Add test case. (cherry picked from commit 575b0681d926463960fc00d1e33decaa71d5c956) 2020-11-09 Lars Ingebrigtsen Update the doc-view header line 2020-11-09 Eli Zaretskii Avoid breaking Arabic shaping in 'window-text-pixel-size' * src/xdisp.c (CHAR_COMPOSED_P): If the bidi_p flag is not set, pass -1 to composition_reseat_it, so that the shaping engine will figure out the directionality of the text. This is important, e.g., when using move_it_* functions in some context that is not redisplay, such as 'window-text-pixel-size'. (Bug#44521) 2020-11-09 Lars Ingebrigtsen doc-view.el comment clarification * lisp/doc-view.el: Make the commentary mention that it's not limited to a narrow range of file formats (bug#44504). 2020-11-09 Daniel Martín Update erc documentation about C-c C-b * doc/misc/erc.texi (Keystroke Summary): C-c C-b runs erc-switch-to-buffer, which is implemented in terms of read-buffer (bug#44498). 2020-11-07 Kazuhiro Ito (tiny change) Fix 'uudecode-decode-region-internal' in multibyte buffers * lisp/mail/uudecode.el (uudecode-decode-region-internal): Fix inserting the decoded string into a multibyte buffer. Optimize by working with characters, not strings. (Bug#44411) 2020-11-07 Eli Zaretskii Fix 'send-string-to-terminal' writing very long strings * src/dispnew.c (Fsend_string_to_terminal): Prevent partial writes by blocking SIGIO while 'fwrite' runs. (Bug#44320) 2020-11-07 Eli Zaretskii * lisp/subr.el (read-char-from-minibuffer): Doc fix. (Bug#44451) 2020-11-07 Earl Hyatt Fix documentation of 'windmove-swap-states-default-keybindings' * doc/emacs/windows.texi (Window Convenience): Fix description of 'windmove-swap-states-default-keybindings' and related index entry. (Bug#44441) 2020-11-07 Martin Rudalics Split windows evenly when 'min-margins' parameter was set (Bug#44483) * lisp/window.el (split-window): Make new window inherit any 'min-margins' parameter from WINDOW so that horizontal splits reliably produce windows of same width (Bug#44483). 2020-11-07 Pip Cet Handle Cairo errors in ftcrfont_open * src/ftcrfont.c (ftcrfont_open): Handle Cairo errors (bug#41627). (cherry picked from commit 954a4decfcc8e41084789516773b22d0adc11d91) 2020-11-06 Stefan Kangas Backport: Fix exiting the finder-commentary buffer Do not merge to master. * lisp/finder.el (finder-exit): Fix exiting the finder-commentary buffer. (Bug#44384) (finder-buffer): New defconst. (finder-list-keywords): Use above new defconst. 2020-11-05 Eli Zaretskii * src/w32fns.c (Fw32_register_hot_key): Doc fix. (Bug#44456) 2020-11-04 Eli Zaretskii Prevent redisplay from moving point behind user's back * src/bidi.c (bidi_at_paragraph_end, bidi_find_paragraph_start): Bind inhibit-quit to a non-nil value around calls to fast_looking_at, to prevent breaking out of redisplay_window, which temporarily moves point in buffers shown in non-selected windows. (Bug#44448) 2020-11-02 Mauro Aranda Document that the :match function for a widget takes an external value * doc/misc/widget.texi (Basic Types): Document what an external value is. Document that a :match function expects the value to be in the external format. (Bug#8717) 2020-11-02 Stephen Berman Don't render XML declaration of an HTML document (bug#44348) * lisp/net/eww.el (eww--preprocess-html): Prevent converting the left angle bracket in the sequence " (tiny change) Recover the contents of the schemas.xml file * etc/schema/schemas.xml: Recover the file, which was apparently (mostly) removed by mistake by commit 165f738382 (bug#42851). 2020-11-01 Stefan Kangas Improve indexing of check-declare * doc/lispref/functions.texi (Declaring Functions): Improve indexing. 2020-10-31 Eli Zaretskii * doc/lispref/commands.texi (Key Sequence Input): Fix indexing. (cherry picked from commit 41c4f337c8f798d4700dcd13b73ad4ccdb3257eb) 2020-10-31 Jared Finder Updating docs with all special window prefix keys. * doc/lispref/commands.texi (Key Sequence Input): Add documentation for missing special window areas. Explicitly call out window or frame. (cherry picked from commit a105db13e11fd15cc72804bf33672122d1c3f2e1) 2020-10-30 Glenn Morris Improve reproducibility of generated -pkg.el files * lisp/emacs-lisp/package.el (package-generate-description-file): Don't include the full name of the source file in the header, since that varies non-reproducibly according to the build directory. https://bugs.debian.org/972861 Note that elpa.gnu.org's admin/archive-contents.el does this by hand and already only includes the nondirectory part. 2020-10-29 Noah Friedman Make sure pixel sizes are zero when setting window size for ptys. * sysdep.c (set_window_size): Initialize data to zero to avoid passing any garbage from the stack to ioctl. 2020-10-29 Ken Brown Fix failure of 'emacs --daemon' on Cygwin * src/emacs.c (DAEMON_MUST_EXEC): Define unconditionally on Cygwin, not just if HAVE_NTGUI is defined. This fixes the failure of 'emacs --daemon' to start on the non-w32 Cygwin builds. (Bug#44285) 2020-10-28 Alan Mackenzie CC Mode: Only recognize foo (*bar) as a function pointer when followed by ( * lisp/progmodes/cc-engine.el (c-forward-over-decl-or-cast-1): (after CASE 2) test variables got-suffix-after-parens and at-decl-end before invoking c-fdoc-shift-type-backward. 2020-10-27 Clemens Radermacher Fix NEWS entry for fix of Bug#44080 2020-10-27 Eli Zaretskii * src/buffer.c (syms_of_buffer) : Improve doc string. 2020-10-27 Clemens Radermacher Don't skip empty lines when fitting mini frame to buffer (Bug#44080) * lisp/window.el (fit-mini-frame-to-buffer, window--resize-mini-frame, fit-frame-to-buffer, fit-frame-to-buffer-1): By default, fit a mini frame without skipping its buffer's leading or trailing empty lines. * src/frame.c (resize-mini-frames): Update doc-string. * lisp/cus-start.el (resize-mini-frames): Update for customize. * doc/lispref/minibuf.texi (resize-mini-frames): Update description. 2020-10-26 Eli Zaretskii Improve documentation of display-fill-column-indicator * lisp/display-fill-column-indicator.el (display-fill-column-indicator-mode): Mention the globalized version in the doc string. * doc/emacs/display.texi (Displaying Boundaries): Improve and clarify the documentation of display-fill-column-indicator. Suggest using the minor mode as the primary means for turning the feature on. * src/xdisp.c (syms_of_xdisp) : Doc fix. (Bug#44226) 2020-10-25 Michael Albinus * INSTALL: Mention efaq.texi for installation of intlfonts. 2020-10-24 Paul Eggert (tiny change) Qiantan Hong Use WebKit sandboxing * src/xwidget.c (Fmake_xwidget): Enable sandboxing if WebKit 2.26 or later. Do this early, as required for sandboxing (Bug#43071). 2020-10-24 Michael Albinus Fix tramp-sh-handle-make-process; don't merge with master * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Accept nil COMMAND. (Bug#44151) * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process): Extend test. 2020-10-23 Michael Albinus Fix an error in tramp-sh-handle-make-process. Dont' merge with master * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't use heredoc script whent the argument contains a string. 2020-10-22 Stefan Kangas Recommend lexical-binding in Coding Conventions * doc/lispref/tips.texi (Coding Conventions, Library Headers): Recommend using lexical-binding. 2020-10-21 Eli Zaretskii Avoid rare crashes while producing line numbers * src/xdisp.c (maybe_produce_line_number): Prevent freeing of realized faces for as long as we are using lnum_face_id and current_lnum_face_id for producing glyphs. (Bug#44111) 2020-10-17 Eli Zaretskii Improve documentation of 'Info-hide-note-references' in info.texi * doc/misc/info.texi (Help-Xref): Improve the wording. (Emacs Info Variables): Update the documentation of 'Info-hide-note-references'. (Bug#44043) 2020-10-17 Stefan Kangas * admin/release-process: Add note to update files from upstream. (cherry picked from commit 86dd9d12aa5a273da2efd4ce8c6e35ae343f1494) 2020-10-17 Eli Zaretskii * lisp/info.el (Info-hide-note-references): Doc fix. (Bug#44043) 2020-10-16 Alan Mackenzie Make lisp/progmodes/js.el dependent on CC Mode in the Makefile. This will prevent version mismatches between compile time and runtime versions. This fixes bug #43037. * lisp/Makefile.in: Make js.el dependent on cc-{defs,engine,mode}.elc. 2020-10-16 Eli Zaretskii Yet another fix for 'set-minibuffer-message' * lisp/minibuffer.el (set-minibuffer-message): Handle the case of separate minibuffer-only frame. Suggested by Gregory Heytings . 2020-10-16 Eli Zaretskii Fix posn-at-x-y in builds --without-x * src/keyboard.c (make_lispy_position): Don't exclude the window_or_frame = frame case from TTY-only builds. Reported by Jared Finder . * doc/lispref/commands.texi (Click Events): Document the format of POSITION in click events on the frame's internal border. 2020-10-15 Lars Ingebrigtsen Clarify the seq-reduce documentation * doc/lispref/sequences.texi (Sequence Functions): Ditto. * lisp/emacs-lisp/seq.el (seq-reduce): Clarify the order of the arguments (bug#43995). 2020-10-12 Michael Albinus Make tramp-completion-reread-directory-timeout obsolete (Bug#43932) * doc/misc/tramp.texi (File name completion, Frequently Asked Questions): Remove `tramp-completion-reread-directory-timeout'. (Bug#43932) * etc/NEWS: Mention tramp-completion-reread-directory-timeout as obsolete. * lisp/net/tramp.el (tramp-completion-reread-directory-timeout): Make it obsolete. 2020-10-11 Gregory Heytings (tiny change) Fix 'message' when there's active minibuffer on another frame * lisp/minibuffer.el (set-minibuffer-message): Don't reuse the active minibuffer for displaying messages unless the active minibuffer is on the same frame as the selected window. 2020-10-10 Stefan Monnier * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc tweak Try and clarify the meaning of `init-value`. (cherry picked from commit 46c0f28c0e4e212687e90ec0ecb239d994105a19) 2020-10-10 Eli Zaretskii A better fix for bug#43886 * src/xfaces.c (load_color2, Fcolor_distance): Revert last change. * src/term.c (clear_tty_hooks): Don't clear defined_color_hook. 2020-10-09 Eli Zaretskii Avoid crashes when a theme is loaded with one frame suspended * src/xfaces.c (load_color2, Fcolor_distance): Don't try to call the frame's defined_color_hook if the frame is suspended. (Bug#43886) 2020-10-09 Pankaj Jangid (tiny change) Removed an incorrectly placed extra word in the semantic docs * doc/misc/semantic.texi (Parser code): Copy edit (bug#43861). 2020-10-08 Eli Zaretskii Fix current-line hscrolling when overlays change * src/xdisp.c (redisplay_internal): Disable "optimization 1" when auto-hscrolling current line and we're redisplaying the selected window. (Bug#43835) 2020-10-08 Michael Albinus Extend tests for shell-command-dont-erase-buffer * test/lisp/simple-tests.el (simple-tests-shell-command-dont-erase-buffer): Extend test. * test/lisp/net/tramp-tests.el (tramp-test32-shell-command-dont-erase-buffer): Adapt test. Tag it :unstable. 2020-10-07 Hong Xu Clarify what ``chrooted environment means'' for TRAMP * doc/misc/tramp.texi (Frequently Asked Questions): Clarify what ``chrooted environment means'' for TRAMP (bug#43839). 2020-10-05 Daniel Martín Add missing full stop in MS-DOS processes documentation * doc/emacs/msdos-xtra.texi (MS-DOS Processes): Minor copy edig (bug#43820). 2020-10-05 Eli Zaretskii Fix merging of region face for non-ASCII characters * src/xdisp.c (extend_face_to_end_of_line): Restore the correct original face used by the iterator on this line, not the ASCII face. (Bug#43363) 2020-10-03 Alan Third Daniel Martín Make drag and drop on NS open all URLs (bug#43470) * lisp/term/ns-win.el (ns-drag-n-drop): Merge generic and copy actions. 2020-10-02 Lars Ingebrigtsen Fix electric-buffer-list buffer selection * lisp/ebuff-menu.el (electric-buffer-list): Ensure that point is restored, which isn't always the case if global-display-line-numbers-mode (bug#43755). This enables selecting buffers again. 2020-10-02 Eli Zaretskii * doc/misc/flymake.texi (Using Flymake): Fix a typo. (Bug#43758) 2020-10-02 Robert Pluim Don't error if no GPG signing key configured * lisp/gnus/mml-sec.el (mml-secure-epg-sign): Partially revert "Make mml-secure-epg-sign bug out if we can't find an identity". It causes signing to fail for people who have not set up mml-secure-{smime,openpgp}-sign-with-sender, which is a regression from Emacs-26 (Bug#40118). In such a situation gpg will use its default key. Do not merge to master. On master Emacs will query the user. 2020-10-01 Michael R. Mauger 2020-03-29 Michael R. Mauger * lisp/progmodes/sql.el (sql-add-product): Re-correct argument spec. Previous change was due to my mistake; I have resolved back to the prior behavior (Bug#39960). * test/lisp/progmodes/sql-tests.el (sql-test-add-product): Added test to insure I don't make the same mistake again. 2020-10-01 Lars Ingebrigtsen Make aliases introduced in previous patch obsolete * lisp/emacs-lisp/debug.el (debugger-toggle-locals): (debug-help-follow): Make reinstated aliases obsolete. 2020-10-01 Gemini Lasswell Restore some public debugging functions removed in Emacs 27 * lisp/emacs-lisp/backtrace.el (backtrace--to-string): New function. (backtrace-to-string): Use it. Fix whitespace (bug#40728). * lisp/emacs-lisp/debug.el (debugger-insert-backtrace): New function. Mark it as obsolete. (debugger-toggle-locals, debug-help-follow): New aliases. 2020-10-01 Michael Albinus Clarification in Tramp manual * doc/misc/tramp.texi: Harmonize "Git" spelling. (Frequently Asked Questions): Describe Emacs version mismatch. 2020-10-01 Michael Albinus Check Emacs version used for Tramp compilation * lisp/net/tramp-compat.el (tramp-compat-emacs-compiled-version): New defconst. Raise a warning, when it is not equal to the Emacs version. 2020-09-29 Eli Zaretskii Don't signal an error when saving files on WdebDAV volumes * src/w32.c (acl_get_file): If get_file_security raises the ERROR_ACCESS_DENIED error, treat that like unsupported ACLs. 2020-09-28 Eli Zaretskii * lisp/hi-lock.el (hi-lock-find-patterns): Autoload it. (Bug#43670) 2020-09-27 Eli Zaretskii Minor copyedits in the Emacs user manual * doc/emacs/emacs.texi (Top): Remove "real-time" from the Emacs description; add "advanced", to be consistent with what we say in the Introduction section. (Bug#43633) 2020-09-26 Eli Zaretskii Followup to a recent change in menu-bar.el * lisp/fileloop.el (fileloop--operate-function): Mention in a comment that menu-bar.el relies on the default value. 2020-09-26 Eli Zaretskii Enable "Continue Tags Search" menu item only when it can be used * lisp/menu-bar.el (menu-bar-search-menu) : Enable only when there was a previous tags search. (Bug#43569) (menu-bar-replace-menu) : Enable only when there was a previous tags-replace. 2020-09-26 Paul Eggert Fix soap-client URL * lisp/net/soap-client.el (soap-create-envelope): Fix URL that I broke in 2019-09-23T06:53:30Z!eggert@cs.ucla.edu. Problem reported by Thomas Fitzsimmons. 2020-09-25 Paul Eggert Fix out-of-source ‘make check’ emacs-module-tests Problem reported by Koki Fukuda in: https://lists.gnu.org/r/emacs-devel/2020-07/msg00169.html * test/Makefile.in (MODULE_CFLAGS): Include from the same directories included from in ../src. * test/src/emacs-module-tests.el (module/describe-function-1): Strip path to source directory. (cherry picked from commit c86f3fe0d023cdd25edbbce91c5b32654f2b734e) 2020-09-25 Eli Zaretskii Fix support for Zip64 zip files * lisp/arc-mode.el (archive-zip-summarize): Fix detection of Zip64 central directory. Support 64-bit file size field used by Zip64. (Bug#43597) 2020-09-25 Eli Zaretskii * lisp/hi-lock.el (hi-lock-auto-select-face): Doc fix. (Bug#43600) 2020-09-25 Eli Zaretskii Avoid infinite recursion with 'relative' line numbers display * src/xdisp.c (display_count_lines_visually): Bind 'display-line-numbers' to 'relative' around 'start_display' as well, since that can invoke 'move_it_to' internally, thus causing infinite recursion. (Bug#43589) 2020-09-20 Eli Zaretskii Minor improvement in the ELisp manual's Introduction * doc/lispref/intro.texi (Printing Notation): Clarify what "execute code" means in this context. (Bug#43463) 2020-09-20 Eli Zaretskii Mention in PROBLEMS the problems with fonts and Uniscribe * etc/PROBLEMS: Mention font-related problems with Uniscribe on MS-Windows. (Bug#39340) 2020-09-19 Eli Zaretskii Minor copyedits in 'line-height' documentation * doc/lispref/display.texi (Line Height): Describe the possible values of the 'line-height' property in a more consistent format. 2020-09-19 Gregor Zattler * doc/misc/eww.texi: Document the `w' key's double function * doc/misc/eww.texi (Basics): Describe what the `w' command does in eww (bug#43517). 2020-09-19 Eli Zaretskii Fix a rare segfault in syntax.c * src/syntax.c (Fforward_comment): Prevent the loop for COUNT < 0 from going outside the valid range of character/byte positions. (Bug#43499) * doc/lispref/syntax.texi (Syntax Class Table): Mention the "comment-fence" and "string-fence" as alternative names of 2 syntax classes. 2020-09-19 Alan Mackenzie Add doc to syntax-propertize-function saying it must do a 100% job and cannot be combined with other ways of applying syntax-table text properties. * lisp/emacs-lisp/syntax.el (syntax-propertize-function): Amend doc string. * doc/lispref/syntax.texi (Syntax Properties): Amend the description of the variable. 2020-09-19 Eli Zaretskii Minor copyedits of doc of 'with-silent-modifications' * doc/lispref/text.texi (Changing Properties): * doc/lispref/buffers.texi (Buffer Modification): Improve documentation and indexing of 'with-silent-modifications'. 2020-09-18 Eli Zaretskii Improve documentation of 'max-mini-window-height' * src/xdisp.c (syms_of_xdisp): * doc/lispref/minibuf.texi (Minibuffer Windows): More accurate wording in the documentation of 'max-mini-window-height', to clarify the meaning of an integer value. 2020-09-18 Daniel Martín Use modern constant names for the NS pasteboard Use the same pasteboard constant names defined in ns_drag_types. (Bug#43470). * src/nsterm.m: Rename NSURLPboardType to NSPasteboardTypeURL, NSStringPboardType to NSPasteboardTypeString, and NSTabularTextPboardType to NSPasteboardTypeTabularText 2020-09-16 Eli Zaretskii Fix doc string of 'toggle-menu-bar-mode-from-frame' * lisp/menu-bar.el (toggle-menu-bar-mode-from-frame): Improve the wording of the doc string. (Bug#43383) 2020-09-12 Glenn Morris Make vc-bzr tests work with brz 3.1 (bug#43314) * test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-bug9726) (vc-bzr-test-bug9781, vc-bzr-test-faulty-bzr-autoloads): Make them work with brz 3.1. 2020-09-12 Lars Ingebrigtsen diff-no-select doc string clarification * lisp/vc/diff.el (diff-no-select): Update doc string from the trunk, don't merge. 2020-09-12 Eli Zaretskii Fix compilation on TERMINFO platforms with GCC 10 * src/terminfo.c [TERMINFO]: Don't redefine UP, BC, and CP, as that could cause linking errors due to multiple definitions. (Bug#43195) 2020-09-10 Lars Ingebrigtsen Fix the font-lock-debug-fontify NEWS entry * etc/NEWS: Fix the name of `font-lock-debug-fontify' (bug#43319). 2020-09-08 Eli Zaretskii Avoid crashes when trying to load bad GIF files * src/image.c (gif_load): Handle the case when GifErrorString returns NULL. (Bug#43281) 2020-09-04 Alan Mackenzie C++ Mode: handle comma separated brace initializers. This includes both indentation and fontification. * lisp/progmodes/cc-engine.el (c-do-declarators): Handle brace initializers without = correctly. (c-looking-at-or-maybe-in-bracelist): Use c-do-declarators with a simple inline function to check that after-type-id-pos points to the start of a declarator. * lisp/progmodes/cc-langs.el (c-recognize-bare-brace-inits): New lang const/variable. 2020-09-04 Stefan Monnier * lisp/display-fill-column-indicator.el: Fix bug#41145 (global-display-fill-column-indicator-mode): Specify the implicit defustom's group explicitly. * lisp/cus-dep.el (custom-make-dependencies): Also look at define(-globalized)-minor-mode since it can also define custom vars. 2020-09-04 Michael Albinus Backport recent change in tramp-tests.el from master, don't merge * test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name): No need to expect different results in Emacs 28 and later. 2020-09-03 Michael Albinus Fix bug in dbus.el; do not merge with master * lisp/net/dbus.el (dbus-register-property) (dbus-property-handler): Handle properties of the same interface at different object paths properly. (Bug#43146) 2020-09-01 Stefan Kangas Fix help message with help-window-select * lisp/help.el (help-print-return-message): (help-window-display-message): Recommend 'scroll-up-command' instead of 'scroll-up' when 'help-window-select' is non-nil. (Bug#43122) 2020-08-31 Eric Abrahamsen Remove obsolete "Wide Characters" section of Gnus manual * doc/misc/gnus.texi: This hasn't been valid since 2016. 2020-08-31 Stefan Kangas Fix typo in Introduction to Emacs Lisp * doc/lispintro/emacs-lisp-intro.texi (type-of-animal in detail): Remove extraneous parenthesis. 2020-08-30 Stefan Kangas Update Elisp Manual reference to which-function-mode * doc/lispref/modes.texi (Mode Line Top, Mode Line Variables) Don't refer to obsolete alias for 'which-function-mode'. (Bug#13716) 2020-08-30 Michael Albinus Some precisions to bug handling * admin/admin.el (reminder-for-release-blocking-bugs): Add date to subject. * admin/notes/bug-triage: * admin/notes/bugtracker: Minor precisions. 2020-08-29 Alan Mackenzie CC Mode: Fix processing for when c-multiline-string-start-char is a character * lisp/progmodes/cc-mode.el (c-pps-to-string-delim) (c-multiline-string-check-final-quote): Replace c-clear-char-property by c-clear-syn-tab. (c-multiline-string-check-final-quote): Replace c-put-char-property by c-put-syn-tab. 2020-08-29 Eli Zaretskii Fix description of %-constructs in 'mode-line-format' * doc/lispref/modes.texi (%-Constructs): Document %@ and remove %M, which is no longer supported. (Bug#43092) 2020-08-27 Michael Albinus Adapt tramp-tests.el, don't merge with master * test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name) (tramp-test05-expand-file-name-relative): Adapt tests. (tramp--test-emacs28-p): New defun. 2020-08-27 Michael Albinus Adapt reminder-for-release-blocking-bugs * admin/admin.el (reminder-for-release-blocking-bugs): Require `debbugs-gnu' also in `interactive' form. * admin/release-process: Rename RELEASE-CRITICAL to RELEASE-BLOCKING. Adapt Emacs version. Describe `reminder-for-release-blocking-bugs'. 2020-08-25 Paul Eggert Fix replace-region-contents performance bug Backport from master. * src/editfns.c (rbc_quitcounter): Remove; the quitcounter is now part of the context. (EXTRA_CONTEXT_FIELDS): Remove unused member early_abort_tests. Add jmp, quitcounter. (Freplace_buffer_contents): Use setjmp/longjmp to recover from a compareseq that runs too long. Omit unnecessary rarely_quit call. (buffer_chars_equal): Occasionally check for early abort and longjmp out if so (Bug#43016). 2020-08-25 Michael Albinus * admin/admin.el (reminder-for-release-blocking-bugs): New command. 2020-08-25 Michael Albinus Sync with Tramp 2.4.5-pre * doc/misc/tramp.texi: Adapt Tramp and Emacs version numbers. (Remote processes): Describe `process-file-return-signal-string' and $INSIDE_EMACS. (Frequently Asked Questions): Mention Emacs 28. Describe `tramp-smb-options'. * doc/misc/trampver.texi: Change version to "2.4.5-pre". * lisp/net/tramp-adb.el (process-file-return-signal-string): Declare. (tramp-adb-handle-write-region): Flush the cache after the file has been written. (tramp-adb-handle-set-file-modes, tramp-adb-handle-set-file-times): Add optional _FLAG. (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file) (tramp-adb-handle-process-file): Use `tramp-file-local-name'. (tramp-adb-get-signal-strings): New defun. (tramp-adb-handle-process-file): Use it. (tramp-adb-handle-make-process): Implement `stderr'. Use `insert-file-contents-literally'. (tramp-adb-send-command-and-check): Add optional argument EXIT-STATUS. (tramp-adb-handle-process-file): Use it. * lisp/net/tramp-archive.el (tramp-archive-file-name-handler): Increase `max-specpdl-size' temporarily. * lisp/net/tramp-cache.el (top): Use `insert-file-contents-literally'. * lisp/net/tramp-cmds.el (tramp-rename-files): Use `tramp-file-local-name'. * lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Prevent crash for older Emacsen. (top): Adapt `tramp-gvfs-unload-hook'. (tramp-gvfs-handle-file-system-info): Fix error. (tramp-gvfs-handle-set-file-modes, tramp-gvfs-handle-set-file-times): Add optional _FLAG. * lisp/net/tramp-rclone.el (tramp-rclone-flush-directory-cache): Fix a problem with older Emacsen. * lisp/net/tramp-sh.el (process-file-return-signal-string): Declare. (tramp-sh-extra-args): Add "-noediting" as bash arg. (tramp-hexdump-encode, tramp-hexdump-awk-encode) (tramp-od-encode, tramp-od-awk-encode): New defconst. (tramp-awk-encode, tramp-awk-decode): Adapt. (tramp-awk-coding-test): Remove. (tramp-remote-coding-commands): Add hexdump/awk encoding. (Bug#35639) (tramp-find-inline-encoding): Adapt handling of awk, hexdump and od. (tramp-get-remote-busybox, tramp-get-remote-awk) (tramp-get-remote-hexdump, tramp-get-remote-od): New defuns. (tramp-sh-handle-make-symbolic-link): (tramp-do-copy-or-rename-file-directly) (tramp-sh-handle-process-file, tramp-set-remote-path) (tramp-find-inline-encoding, tramp-get-remote-touch): Use `tramp-file-local-name'. (tramp-do-file-attributes-with-stat): Simplify shell command. Suppress errors (interpret as nil). (tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times): Add optional _FLAG. (tramp-sh-handle-make-process): Do not visit with `insert-file-contents'. Delete tmp file only if exists. Support `stderr' as file name. Delete temporary stderr file. Flush connection properties in time. (tramp-sh-get-signal-strings): New defun. (tramp-sh-handle-process-file): Use it. (tramp-sh-handle-write-region): Copy to temp file only if FILENAME exists. (Bug#40156) (tramp-set-remote-path): Send the command in several chunks if it is too large. (Bug#42538) (tramp-open-connection-setup-interactive-shell): Move up "set +o vi +o emacs" command. (Bug#39399) (tramp-send-command-and-read): Suppress `signal-hook-function' when reading expression. (tramp-send-command-and-check): Add optional argument EXIT-STATUS. (tramp-sh-handle-process-file): Use it. (Bug#41099) * lisp/net/tramp-smb.el (tramp-smb-conf): Fix docstring. (tramp-smb-options): New defcustom. (tramp-smb-handle-copy-directory, tramp-smb-handle-file-acl) (tramp-smb-handle-set-file-acl, tramp-smb-maybe-open-connection): Use it. (tramp-smb-errors): Add "NT_STATUS_INVALID_PARAMETER". (tramp-smb-handle-make-symbolic-link) (tramp-smb-handle-process-file): Use `tramp-file-local-name'. * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file): (tramp-sudoedit-handle-set-file-uid-gid): Use `tramp-unquote-file-local-name'. (tramp-sudoedit-handle-make-symbolic-link): Use `tramp-file-local-name'. (tramp-sudoedit-handle-file-system-info): Fix a scoping error. (tramp-sudoedit-handle-set-file-modes): (tramp-sudoedit-handle-set-file-times): Add optional _FLAG. * lisp/net/tramp.el: Bump version to 2.4.5-pre. (tramp-file-local-name, tramp-unquote-file-local-name): New defuns. (tramp-set-connection-local-variables-for-buffer) (tramp-equal-remote, tramp-handle-make-auto-save-file-name): Use `tramp-tramp-file-p'. (tramp-parse-file): Use `insert-file-contents-literally'. (tramp-handle-file-modes, tramp-handle-file-times): Add optional _FLAG. (tramp-handle-shell-command): Fix `window-start' in output buffer. (Bug#39171) Handle `shell-command-dont-erase-buffer'. (Bug#39067) Reorganize error-buffer handling. Set `default-directory'. (Bug#39253) (tramp-handle-shell-command, tramp-handle-start-file-process): Implement asynchronous `error-buffer'. (tramp-action-process-alive): Read pending output. (tramp-read-passwd): Use `tramp-compat-temporary-file-directory'. (Bug#39389, Bug#39489) (tramp-interrupt-process): Improve command. * lisp/net/trampver.el: Change version to "2.4.5-pre". (tramp-repository-branch, tramp-repository-version): Bind `debug-on-error' to nil. * test/lisp/net/tramp-tests.el (tramp-get-remote-gid) (process-file-return-signal-string) (shell-command-dont-erase-buffer): Declare. (tramp-test10-write-region, tramp-test28-process-file) (tramp-test29-start-file-process, tramp-test30-make-process) (tramp-test31-interrupt-process, tramp-test32-shell-command): Extend test. (tramp-test10-write-region, tramp-test21-file-links): Use function symbols. (tramp-test18-file-attributes): Check `file-ownership-preserved-p' only if possible. (tramp--test-async-shell-command): New defun. (tramp--test-shell-command-to-string-asynchronously): Use it. (tramp-test32-shell-command-dont-erase-buffer): New test. 2020-08-24 Phillip Lord Fix error in GMP test * etc/w32-feature.el: Update to use system-configuration-features for GMP test. 2020-08-24 Phillip Lord Add Feature testing for Windows binaries * etc/w32-feature.el: New file 2020-08-20 Stefan Kangas Revert "; * etc/NEWS: Remove temporary note on documentation. (Bug#42917)" This reverts commit 121be3e1181e609734fc4cc9d2d54cf7eec18ab2. 2020-08-19 Glenn Morris * admin/admin.el (set-version): Trap yet another NEWS error. 2020-08-19 Mattias Engdegård Fix cond jump table compilation (bug#42919) This bug affected compilation of (cond ((member '(some list) variable) ...) ...) While equal is symmetric, member is not; in the latter case the arguments must be a variable and a constant list, in that order. Reported by Ikumi Keita. * lisp/emacs-lisp/bytecomp.el (byte-compile--cond-switch-prefix): Don't treat equality and member predicates in the same way; only the former are symmetric in their arguments. * test/lisp/emacs-lisp/bytecomp-tests.el (byte-opt-testsuite-arith-data): Add test cases. 2020-08-17 Paul Eggert Let Emacs start even if curdir is inaccessible * lisp/startup.el (normal-top-level): Also delete PWD if file-attributes fails for either $PWD or default-directory, instead of failing out of the top level. This fixes a regression from Emacs 26 (Bug#42903). 2020-08-17 Paul Eggert * etc/NEWS: Mention GnuPG 2.0 through 2.1.5 issue (Bug#42845). 2020-08-17 Robert Pluim Fix bug with ~/Emacs file not being read at init * src/xrdb.c (get_user_app): Put "/" between homedir and %L or %N (Bug#42827). 2020-08-15 Tino Calancha Prevent from frozen frame after `C-z' in Lucid builds Some WMs (e.g. mutter in Gnome Shell) don't unmap iconized windows, thus we won't get a MapNotify when deconifying them. Check if we are deconifying a window elsewhere (Bug#42655). - src/xterm.c (handle_one_xevent): Check for window deconify when receiving a FocusIn signal. 2020-08-15 Eli Zaretskii Document the 'flex' completion style * doc/emacs/mini.texi (Completion Styles): Document the 'flex' completion style. (Bug#42763) 2020-08-14 Lars Ingebrigtsen Note that Emacs needs systemd support if systemd is used to stop/start * etc/NEWS: Note that Emacs needs to be built with systemd support systemd is used to stop/start Emacs (bug#42242). Change suggested by Bhavin Gandhi 2020-08-14 Mattias Engdegård Regexps cannot infloop; fix manual * doc/lispref/searching.texi (Regexp Special): Edit erroneous statements about infinite looping in regexps. (cherry picked from commit 63268253d21c57d991cba3f3b083d74f154a26fe) 2020-08-13 Paul Eggert Fix startup working dir bug on NeXTSTEP * src/emacs.c (main) [NS_IMPL_COCOA]: Update emacs_wd after a NS GUI chdirs successfully (Bug#42836). 2020-08-13 Eli Zaretskii Improve documentation of function argument lists * doc/lispref/functions.texi (Lambda Components) (Defining Functions): Add a cross-reference to "Argument List". (Argument List): Improve the section name. (Bug#42750) 2020-08-13 Eli Zaretskii Improve documentation of special events * doc/lispref/commands.texi (Misc Events): Explain how to bind special events to commands. 2020-08-13 Eli Zaretskii Fix face merging at EOL when inherited face specifies :extend * src/xfaces.c (merge_face_ref): Handle correctly faces that inherit from another, and in addition specify :extend. (Bug#42552) (cherry picked from commit 39c90f8dfabe158ad7ac9243aa9b9dedb9409e19) 2020-08-13 Eli Zaretskii Fix face extension past EOL in overlay strings * src/xdisp.c (face_at_pos): Pass ATTR_FILTER to face_for_overlay_string. * src/xfaces.c (face_for_overlay_string): Accept an additional argument ATTR_INDEX and pass it to merge_face_ref for merging the face at POS. This ensures a face from buffer text will not be merged unless it specifies the :extend attribute. (Bug#42552) * src/dispextern.h (face_for_overlay_string): Adjust prototype. (cherry picked from commit 35564bea4d73bc266743216599d01d644aed6fd8) 2020-08-12 Phil Sainty Fix comint-redirect-results-list regexp usage (Bug#42662) * lisp/comint.el (comint-redirect-results-list-from-process): Don't treat the literal string argument COMMAND as a regexp. 2020-08-04 Nicolas Petton * etc/HISTORY: Update the Emacs 27.1 release date. 2020-08-03 Phil Sainty lisp/so-long.el: Improve support for major mode hooks * lisp/so-long.el (so-long-remember-all, so-long-disable-minor-modes) (so-long-override-variables): Store and use the `so-long-minor-modes' and `so-long-variable-overrides' values seen by the original major mode, so that buffer-local changes made in the major mode hook will be respected. Add documentation of this and other major mode hook usage. 2020-08-02 Grégory Mounié (tiny change) Avoid segfaults if XIM is set but not xim_styles Emacs segfaults at the X11 initialization if XIM is set and xim_styles is NULL. This patch avoids the crash. * src/xfns.c: Check also if FRAME_X_XIM_STYLES(f) is NULL. (Bug#42676) (Bug#42673) (Bug#42677) 2020-07-31 Philipp Stephani Backport: Make checking for liveness of global values more precise. We can't just use a hash lookup because a global and a local reference might refer to the same Lisp object. * src/emacs-module.c (module_free_global_ref): More precise check for global liveness. (cherry picked from commit 9f01ce6327af886f26399924a9aadf16cdd4fd9f) 2020-07-31 Philipp Stephani Backport: Fix subtle bug when checking liveness of module values. We can't simply look up the Lisp object in the global reference table because an invalid local and a valid global reference might refer to the same object. Instead, we have to test the address of the global reference against the stored references. * src/emacs-module.c (module_global_reference_p): New helper function. (value_to_lisp): Use it. (cherry picked from commit 6355a3ec62f43c9b99d483982ff851d32dd78891) 2020-07-31 Philipp Stephani Backport: Fix memory leak for global module objects (Bug#42482). Instead of storing the global values in a global 'emacs_value_storage' object, store them as hash values alongside the reference counts. That way the garbage collector takes care of cleaning them up. * src/emacs-module.c (global_storage): Remove. (struct module_global_reference): New pseudovector type. (XMODULE_GLOBAL_REFERENCE): New helper function. (module_make_global_ref, module_free_global_ref): Use 'module_global_reference' struct for global reference values. (value_to_lisp, module_handle_nonlocal_exit): Adapt to deletion of 'global_storage'. (cherry picked from commit 5c5eb9790898e4ab10bcbbdb6871947ed3018569) 2020-07-30 Nicolas Petton * admin/authors.el (authors-aliases): Remove a faulty regexp. 2020-07-29 Stefan Kangas * doc/lispref/symbols.texi (Definitions): Fix typo. 2020-07-28 Nicolas Petton * etc/HISTORY: Add Emacs 27.1 release date. 2020-07-28 Nicolas Petton Bump Emacs version to 27.1 * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version. 2020-07-28 Nicolas Petton * etc/AUTHORS: Update. 2020-07-28 Nicolas Petton Update authors.el * admin/authors.el (authors-aliases): Add author aliases. 2020-07-28 Nicolas Petton * etc/NEWS: Remove temporary markup. 2020-07-26 Philipp Stephani Add another test for global module references * test/src/emacs-module-tests.el (mod-test-globref-reordered): New unit test. * test/data/emacs-module/mod-test.c (Fmod_test_globref_reordered): New test module function. (emacs_module_init): Export it. 2020-07-26 Philipp Stephani Backport: add another test case for module assertions. This backports commit 9f01ce6327 from master. Since the bug isn’t present on emacs-27, just backport the new test case. * test/data/emacs-module/mod-test.c (Fmod_test_globref_invalid_free): New test module function. (emacs_module_init): Export it. * test/src/emacs-module-tests.el (module--test-assertions--globref-invalid-free): New unit test. 2020-07-26 Philipp Stephani Backport: Add module test for edge case. This backports commit 6355a3ec62 from master. Since the bug isn’t present in emacs-27, just backport the test case. * test/data/emacs-module/mod-test.c (Fmod_test_invalid_store_copy): New test module function. (emacs_module_init): Export it. * test/src/emacs-module-tests.el (module--test-assertions--load-non-live-object-with-global-copy): New unit test. 2020-07-25 Eli Zaretskii Fix last change * src/composite.c (composition_reseat_it): Fix of the commentary, and a minor change of the last fix. 2020-07-25 Pip Cet Fix Arabic shaping when column-number-mode is in effect * src/indent.c (scan_for_column, compute_motion): Pass -1, instead of NEUTRAL_DIR, to 'composition_reseat_it'. * src/composite.c (composition_reseat_it): Interpret negative value of BIDI_LEVEL to mean the caller doesn't know what is the bidi direction of the text. (Bug#41005) 2020-07-24 Eli Zaretskii Fix description of kmacro-* commands in the user manual * doc/emacs/kmacro.texi (Basic Keyboard Macro): Separate old-style macro definition commands from the new style in the summary table. (Bug#42492) 2020-07-24 Lars Ingebrigtsen Fix viewing of encrypted S/MIME messages * lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Don't add a content-type header if there already is one (bug#41659). 2020-07-21 Ken Manheimer Revert "Rectify allout-widgets region undecoration so item at start is not missed." This reverts commit 33d85cb768b40794bffcd9ab22fbdec1211a74e5. Backporting it to emacs-27 was not appropriate. 2020-07-21 Ken Manheimer Revert "Resolve missing button-region keymap bindings." This reverts commit dd7c191291c8eb1afeac0f1512745491c5c7a317. Backporting it to emacs-27 was not appropriate. 2020-07-21 Ken Manheimer Revert "Provide missing let definition to prevent background void-variable error." This reverts commit 3c410b6b4753e02269bb36914e7534eb124150dd. Backporting it to emacs-27 was not appropriate. 2020-07-21 Ken Manheimer Revert "Don't let item decoration be disrupted by too-shallow items." This reverts commit 8684216542889fa57daa32072104afc69785907f. Backporting it to emacs-27 was not appropriate. 2020-07-21 Ken Manheimer Revert "Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)" This reverts commit 8e13d332481551e4c8c1c66dd0c69dd09256dffc. Backporting it to emacs-27 was not appropriate. 2020-07-21 Robert Pluim Run custom-magic-reset in the customize buffer If the user has navigated away from the customize buffer, then clicking on a widget in the customize buffer applies changes in the selected buffer rather than in the customize buffer. Pass the customize buffer to 'custom-magic-reset' to avoid this. * lisp/cus-edit.el (custom-magic-reset): Add optional buffer argument, apply changes in that buffer. (custom-notify): Pass the buffer containing the widget to 'custom-magic-reset'. (Bug#40788) 2020-07-20 Ken Manheimer Backport: Rectify allout-widgets region undecoration so item at start is not missed. * lisp/allout-widgets.el (allout-widgets-undecorate-region): Reorganize the loop so an item at the start is not skipped. (cherry picked from commit 33d85cb768b40794bffcd9ab22fbdec1211a74e5) 2020-07-20 Ken Manheimer Backport: Resolve missing button-region keymap bindings. * lisp/allout-widgets.el (allout-item-icon-keymap, allout-item-body-keymap, allout-cue-span-keymap, allout-widgets-mode): Inherit from both (current-local-map) and (current-global-map). This provides for missing global bindings when inheriting from just (current-local-map), eg Esc-<. (cherry picked from commit dd7c191291c8eb1afeac0f1512745491c5c7a317) 2020-07-20 Ken Manheimer Backport: Provide missing let definition to prevent background void-variable error. * lisp/allout-widgets.el (allout-widgets-exposure-change-processor) Let-declare handled-conceal, for reference through `(symbol-value)' within the let body. (Because the error happens in an after-change-functions hook, so it is caught and reported as a message by allout-widgets-hook-error-handler.) (cherry picked from commit 3c410b6b4753e02269bb36914e7534eb124150dd) 2020-07-20 Ken Manheimer Backport: Don't let item decoration be disrupted by too-shallow items. * lisp/allout-widgets.el (allout-decorate-item-and-context): Check for parent-position having value before using it. Also, shift local emacs vars topic deeper so it doesn't constitute an instance of that particular aberrant case. (cherry picked from commit 8684216542889fa57daa32072104afc69785907f) 2020-07-20 Ken Manheimer Backport: Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312) * lisp/allout-widgets.el (allout-decorate-item-cue): Properly decorate item cue span. (allout-setup-text-properties): use allout-graphics-modification-handler as allout-cue-span-category modification hook. (cherry picked from commit 8e13d332481551e4c8c1c66dd0c69dd09256dffc) 2020-07-20 Robert Pluim Document prefix arg effects for 'epa-mail-{sign,encrypt}' * doc/misc/epa.texi (Mail-mode integration): Describe effect of prefix arg to 'epa-mail-encrypt' and 'epa-mail-sign'. * lisp/epa-mail.el (epa-mail-sign): Describe effect of prefix arg. 2020-07-20 Robert Pluim * etc/NEWS: Correct description of :client-certificate change 2020-07-18 Eli Zaretskii Revert "Fix filename completion in shell mode buffers" This reverts commit e4d17d8cb479ffeeb7dfb7320a1432722ac8df75. Per bug#42383 discussions, the fix for bug#34330 probably just works around the real issue, which is in pcomplete.el. 2020-07-18 Eli Zaretskii Improve documentation of 'bookmark-bmenu-mode' * lisp/bookmark.el (bookmark-bmenu-mode): Add `bookmark-bmenu-search' to the doc string. (Bug#42325) 2020-07-18 Eli Zaretskii Update systems using GnuTLS certificate files * lisp/net/gnutls.el (gnutls-trustfiles): Update the names of the systems in the comments. Reported by Richard Stallman in https://lists.gnu.org/archive/html/emacs-devel/2020-07/msg00455.html. 2020-07-17 Eli Zaretskii Improve documentation of 'kill-emacs' * doc/lispref/os.texi (Killing Emacs): * src/emacs.c (Fkill_emacs): Document what non-integer, non-string argument to 'kill-emacs' means. (Bug#42400) 2020-07-17 Eli Zaretskii Improve documentation of 'display-raw-bytes-as-hex' * doc/emacs/display.texi (Text Display): Mention 'display-raw-bytes-as-hex'. (Bug#42384) 2020-07-17 Robert Pluim Correct descriptions of init file These still referred to XDG as being preferred. * doc/emacs/custom.texi (Init File): Correct description of init file preference order (Bug#42388). * doc/emacs/custom.texi (Find Init): Correct description of default init-file. 2020-07-16 Eli Zaretskii Fix interrupt-process on MS-Windows * src/w32proc.c (sys_kill): Test the status of the left Ctrl key for the purpose of restoring it after simulating Ctrl-C. This avoids leaving the left Ctrl key status in depressed state when the user actually pressed the right Ctrl key. (Bug#42350) 2020-07-11 Andrea Corallo Revert "* doc/misc/flymake.texi (An annotated example backend): Typo fix." This reverts commit b1ad0380d2372b8df35ff603b8918d22c27ad964. 2020-07-11 Mattias Engdegård Correct 'concat' manual entry (bug#42296) * doc/lispref/strings.texi (Creating Strings): 'concat' does not necessarily return a newly allocated string. This has been the case at least since 1997 (Emacs 20.3). 2020-07-11 Andrea Corallo * doc/misc/flymake.texi (An annotated example backend): Typo fix. 2020-07-11 Eli Zaretskii Add commentary in gtkutil.c * src/gtkutil.c: Add a comment regarding the incompatibilities vis-a-vis GTK. Suggested by Richard Stallman . 2020-07-10 Basil L. Contovounesios Consistently stylize eldoc as ElDoc in prose * doc/emacs/custom.texi (Specifying File Variables): * doc/emacs/modes.texi (Major Modes): * doc/emacs/programs.texi (Lisp Doc): * etc/NEWS.22: * etc/NEWS.23: * lisp/progmodes/python.el: (python-eldoc-function): * test/lisp/progmodes/python-tests.el: Consistently capitalize eldoc as ElDoc rather than Eldoc. 2020-07-09 Eli Zaretskii Improve documentation of "C-u C-x =" * doc/emacs/mule.texi (International Chars): Mention the composition information displayed by "C-u C-x =". (Bug#42256) 2020-07-09 Paul Eggert Mention floating rounding issues * doc/lispref/numbers.texi (Float Basics): Mention floating-point rounding issues uncovered by the discussion in Bug#42417. 2020-07-09 Mattias Engdegård Repair global-auto-revert-ignore-modes (bug#42271) Reported by Gustavo Tavares Cabral. * lisp/autorevert.el (auto-revert--global-add-current-buffer): Fix typo. 2020-07-08 Eli Zaretskii One more improvement of left/right-fringe display spec docs * doc/lispref/display.texi (Fringe Bitmaps): Yet another clarification of how to use FACE in left/right-fringe display spec. 2020-07-07 Eli Zaretskii Another clarification of left/right-fringe display spec * doc/lispref/display.texi (Fringe Bitmaps): More accurate description of what FACE means in the left/right-fringe display spec. 2020-07-07 Eli Zaretskii Avoid infloop in 'format-mode-line' * src/xdisp.c (decode_mode_spec): Don't use W->start if it is outside of the buffer's accessible region. (Bug#42220) 2020-07-05 Eli Zaretskii Clarify the documentation of 'left/right-fringe' display spec * doc/lispref/display.texi (Other Display Specs, Fringe Bitmaps): Clarify how the optional FACE parameter of the left-fringe and right-fringe display spec is used. Reported by Gregory Heytings . 2020-07-04 Eli Zaretskii Minor improvement in ELisp manual * doc/lispref/frames.texi (Position Parameters): Clarify the description of the 'above' frame parameter. (Bug#42154) 2020-07-02 Michael Albinus * doc/misc/tramp.texi (Customizing Methods): Fix typo. 2020-06-29 Philipp Stephani Fix undefined behavior in json.c (Bug#42113) * src/json.c (lisp_to_json_toplevel_1, Fjson_parse_string): Check whether input strings are actually strings. * test/src/json-tests.el (json-parse-string/wrong-type) (json-serialize/wrong-hash-key-type): New regression tests. 2020-06-28 Richard Kim Fix ACTION argument of 'display-buffer' call in gud.el * lisp/progmodes/gud.el (gud-common-init): The ACTION argument of 'display-buffer' should be a list of list of functions. (Bug#41888) 2020-06-27 Eli Zaretskii * src/keyboard.c (Fclear_this_command_keys): Doc fix. 2020-06-27 Eli Zaretskii Improve do string of 'man' * lisp/man.el (man): Mention the need to use C-q for quoting the SPC character in the man-page input. (Bug#41859) 2020-06-26 Eli Zaretskii Fix posn-at-point at beginning of a display string * src/xdisp.c (pos_visible_p): Account for the line-number width when the display string at CHARPOS ends in a newline. (Bug#42039) 2020-06-26 Eli Zaretskii Improve documentation of Info node movement commands * lisp/info.el (Info-next, Info-prev, Info-forward-node) (Info-backward-node): More detailed descriptions of what each commands does with respect to child and parent nodes. (Bug#42050) 2020-06-22 Phillip Lord Add Jansson dependency to Windows Build * admin/nt/dist-build/build-dep-zips.py: Add dependency 2020-06-22 Richard Copley (tiny change) Unbreak 'reverse-region' * lisp/sort.el (reverse-region): Unbreak the function. It was broken by a fix for bug#39376. 2020-06-22 Basil L. Contovounesios Fix typos and markup in fill column indicator docs * doc/emacs/display.texi (Displaying Boundaries): Fix typos and Texinfo markup. 2020-06-20 Stephen Berman Avoid crashes in 'defconst' * src/eval.c (Fdefconst): Verify that SYMBOL is a known symbol. (Bug#41817) 2020-06-20 Richard Stallman Fix text about Lisp archives in the Emacs FQ * doc/misc/efaq.texi (Packages that do not come with Emacs): Warn about using Lisp archives other than GNU ELPA. 2020-06-20 Eli Zaretskii Don't use 'cl' functions in ELisp manual's examples * doc/lispref/control.texi (pcase Macro): Use 'cl-evenp' instead of 'evenp'. (Bug#41947) 2020-06-17 Basil L. Contovounesios Fix some Texinfo markup * doc/misc/gnus-faq.texi (FAQ 3-11): * doc/emacs/frames.texi (Tab Bars): Consistently use @var with lower-case metasyntactic variables and @minus instead of a dash. (Text-Only Mouse): * doc/emacs/files.texi (Auto Revert): * doc/emacs/misc.texi (emacsclient Options) (Embedded WebKit Widgets): * doc/lispref/control.texi (pcase Macro): * doc/lispref/debugging.texi (Backtraces): * doc/lispref/files.texi (Truenames): * doc/lispref/frames.texi (Management Parameters): * doc/lispref/os.texi (Time Calculations): * doc/lispref/text.texi (Parsing JSON): * doc/misc/efaq-w32.texi (Other versions of Emacs, Debugging) (Swap Caps NT, Printing, Bash, Developing with Emacs): * doc/misc/efaq.texi (New in Emacs 25): * doc/misc/emacs-gnutls.texi (Help For Users): * doc/misc/message.texi (Using S/MIME, Passphrase caching): * test/manual/etags/tex-src/gzip.texi (Overview): Use @. when a sentence in the middle of a paragraph ends with an upper-case letter as per "(texinfo) Ending a Sentence". 2020-06-17 Basil L. Contovounesios Fix recentf typo in Emacs manual * doc/emacs/files.texi (File Conveniences): Fix misspelling of recentf-list. 2020-06-17 Juri Linkov Rename default function to next-error-buffer-unnavigated-current (bug#40919) * lisp/simple.el (next-error-find-buffer-function): Rename default function from next-error-no-navigation-try-current to next-error-buffer-unnavigated-current. 2020-06-17 Juri Linkov * lisp/image-mode.el (image-toggle-display-image): Fix fit of rotated images. When fitting rotated image to width and height, swap width and height when changing orientation between portrait and landscape (bug#41886). 2020-06-16 Michael Albinus * doc/misc/tramp.texi (Predefined connection information): Add "tmpdir". 2020-06-13 João Távora Delete, don't kill, dir dir fragments in icomplete-fido-backward-updir Reported by: Andrew Schwartzmeyer * lisp/icomplete.el (icomplete-fido-backward-updir): Don't save dir fragments to kill ring. 2020-06-13 Basil L. Contovounesios Revert markup change in with-coding-priority docs This partially reverts commit fc759eb9b3 "Fix with-coding-priority markup in Elisp manual" of 2019-10-13T15:36:02Z!contovob@tcd.ie. For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00550.html https://lists.gnu.org/archive/html/emacs-devel/2020-06/msg00473.html * doc/lispref/nonascii.texi (Specifying Coding Systems): Use more specific cross-reference to progn even if info.el displays it suboptimally. 2020-06-10 Juri Linkov * lisp/emulation/cua-rect.el (cua--rectangle-region-insert): New function. Add cua--insert-rectangle around region-insert-function (bug#41440). 2020-06-09 Juri Linkov * lisp/simple.el (shell-command-on-region): Fix docstring. * lisp/simple.el (shell-command-on-region): Mention REGION-NONCONTIGUOUS-P in docstring (bug#41440) * etc/NEWS: Better example for 'windmove-display-default-keybindings'. 2020-06-08 Basil L. Contovounesios Clean up D-Bus documentation (bug#41744) * doc/lispref/errors.texi (Standard Errors): The error symbol dbus-error is defined even when Emacs is built without D-Bus. * doc/misc/dbus.texi (Bus Names, Introspection) (Nodes and Interfaces, Methods and Signal) (Properties and Annotations, Arguments and Signatures) (Synchronous Methods, Receiving Method Calls, Signals) (Alternative Buses, Errors and Events): Clarify wording. Fix indentation of and simplify examples where possible. Improve Texinfo markup and cross-referencing where possible. (Type Conversion): Ditto. Remove mentions of Emacs' fixnum range now that we have bignums. * lisp/net/dbus.el (dbus-return-values-table) (dbus-call-method-asynchronously, dbus-send-signal) (dbus-register-signal, dbus-register-method) (dbus-string-to-byte-array, dbus-byte-array-to-string) (dbus-escape-as-identifier, dbus-check-event, dbus-event-bus-name) (dbus-event-message-type, dbus-event-serial-number) (dbus-event-service-name, dbus-event-path-name) (dbus-event-interface-name, dbus-event-member-name) (dbus-list-activatable-names, dbus-list-queued-owners, dbus-ping) (dbus-introspect-get-interface-names, dbus-introspect-get-interface) (dbus-introspect-get-method, dbus-introspect-get-signal) (dbus-introspect-get-property, dbus-introspect-get-annotation-names) (dbus-introspect-get-annotation, dbus-introspect-get-argument-names) (dbus-introspect-get-argument, dbus-introspect-get-signature) (dbus-set-property, dbus-register-property) (dbus-get-all-managed-objects, dbus-init-bus): Clarify docstring and improve formatting where possible. (dbus-call-method): Ditto. Remove mentions of Emacs' fixnum range now that we have bignums. 2020-06-08 Juri Linkov * lisp/image-mode.el (image-transform-original): New command (bug#41222). (image-mode-map): Bind it to "so" and add to menu. 2020-06-08 Juri Linkov Move tab-bar and tab-line faces to faces.el (part of bug#41200) These are basic faces, so they need to be defined in faces.el, otherwise (get 'tab-line 'face) returns 0. * lisp/faces.el (tab-bar, tab-line): Move faces here from tab-bar.el and tab-line.el. * lisp/tab-bar.el (tab-bar): Move face to faces.el. (tab-bar-faces): Add '((tab-bar custom-face)) to the second arg MEMBERS of 'defgroup'. * lisp/tab-line.el (tab-line): Move face to faces.el. (tab-line-faces): Add '((tab-line custom-face)) to the second arg MEMBERS of 'defgroup'. 2020-06-07 Basil L. Contovounesios Fix typo in "(elisp) Type Keywords" * doc/lispref/customize.texi (Type Keywords): Fix typo of 'choice' composite type. (Bug#41749) 2020-06-07 Tassilo Horn Gnus nnir-summary-line-format has no effect * lisp/gnus/nnir.el (nnir-mode): Update summary format specs if nnir-summary-line-format is set and different from gnus-summary-line-format. (nnir-open-server): Run nnir-mode in gnus-summary-generate-hook instead of gnus-summary-prepared-hook. 2020-06-06 Eli Zaretskii Improve documentation of 'window-text-pixel-size' * doc/lispref/display.texi (Size of Displayed Text): Clarify the description of 'window-text-pixel-size'. 2020-06-06 Eli Zaretskii * src/xdisp.c (Fwindow_text_pixel_size): Doc fix. (Bug#41737) 2020-06-06 Basil L. Contovounesios Minor improvements to EDE and EIEIO manuals For discussion, see the following threads: https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg00630.html https://lists.gnu.org/archive/html/emacs-devel/2020-06/msg00099.html * doc/misc/ede.texi (ede-generic-project): Clean up example. * doc/misc/eieio.texi (Accessing Slots): Document slot-value as a generalized variable and set-slot-value as obsolete. (Predicates): Fix typo. (Introspection): Document eieio-class-slots in place of the obsolete object-slots. 2020-06-06 João Távora Have Fido mode also imitate Ido mode in ignore-case options Suggested by Sean Whitton . * lisp/icomplete.el (icomplete--fido-mode-setup): Set ignore-case options. 2020-06-05 Basil L. Contovounesios Update package-menu-quick-help * lisp/emacs-lisp/package.el (package--quick-help-keys): Filtering is now bound to the prefix '/', not the key 'f' (bug#41721). Advertise only the standard 'g' binding now that both it and 'r' are bound to revert-buffer (bug#35504). (package--prettify-quick-help-key): Avoid modifying string literals. (package-menu-filter): Reintroduce as obsolete alias of package-menu-filter-by-keyword for backward compatibility (bug#36981). 2020-06-05 Eli Zaretskii Improve documentation of 'sort-subr' * doc/lispref/text.texi (Sorting): Clarify the meaning and use of PREDICATE argument to 'sort-subr'. (Bug#41706) 2020-06-05 Andrii Kolomoiets Update Ukrainian transliteration * lisp/language/cyril-util.el (standard-display-cyrillic-translit): Add missing letter "ґ"; tweak letter "г". (Bug#41683) 2020-06-05 Eli Zaretskii Fix Arabic shaping when eww/shr fill the text to be rendered * src/hbfont.c (hbfont_shape): Don't use DIRECTION if the current buffer has bidi reordering disabled. (Bug#41005) 2020-06-03 Basil L. Contovounesios Silence some byte-compiler warnings in tests * test/lisp/emacs-lisp/cl-generic-tests.el: * test/lisp/progmodes/elisp-mode-tests.el: Declare functions referred to within macroexpansions. (xref-elisp-overloadable-no-default) (xref-elisp-overloadable-co-located-default) (xref-elisp-overloadable-separate-default): Prefix unused arguments with underscore. * test/lisp/international/ccl-tests.el: * test/lisp/wdired-tests.el: * test/lisp/emacs-lisp/package-tests.el: Declare functions used. (package-test-update-archives, package-test-signed): Use revert-buffer in place of its obsolete alias package-menu-refresh. * test/lisp/eshell/eshell-tests.el: * test/lisp/mail/footnote-tests.el: * test/src/buffer-tests.el: Require dependencies used. * test/lisp/image/exif-tests.el: Remove unneeded (require 'seq). (test-exit-direct-ascii-value): Actually perform the test. * test/lisp/progmodes/sql-tests.el (sql-test-add-existing-product): Fix typo. * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): * test/src/data-tests.el (test-bool-vector-bv-from-hex-string) (test-bool-vector-apply-mock-op): Remove unused local variables. 2020-06-03 Basil L. Contovounesios * test/lisp/battery-tests.el: New file. 2020-06-02 Basil L. Contovounesios Improve format-spec documentation (bug#41571) * doc/lispref/text.texi (Interpolated Strings): Move from here... * doc/lispref/strings.texi (Custom Format Strings): ...to here, renaming the node and clarifying the documentation. (Formatting Strings): End node with sentence referring to the next one. * lisp/format-spec.el (format-spec): Clarify docstring. 2020-06-01 Eli Zaretskii Don't call 'mbrtowc' on WINDOWSNT * src/emacs.c (using_utf8): Don't call 'mbrtowc' on WINDOWSNT systems, as it's not available on Windows 9X. 2020-06-01 João Távora * doc/emacs/buffers.texi (Icomplete): Mention icomplete-minibuffer-setup-hook. 2020-06-01 Paul Eggert Be more aggressive in marking objects during GC Simplified version of a patch from Pip Cet (Bug#41321#299). * src/alloc.c (maybe_lisp_pointer): Remove. All uses removed. (mark_memory): Also look at the pointer offset by ‘lispsym’, for symbols. 2020-05-31 Alan Mackenzie Fix bug #41618 "(byte-compile 'foo) errors when foo is a macro." * lisp/emacs-lisp/bytecomp.el (byte-compile): Disentangle the eval of the final form from the pushing of 'macro onto it, doing the former first. 2020-05-31 Eli Zaretskii Avoid crashes due to bidi cache being reset during redisplay If automatic character composition triggers GC, and 'garbage-collection-messages' are turned on, we could have the bidi cache reset while processing RTL text, which would then consistently crash. * src/xdisp.c (display_echo_area_1): Protect the bidi cache against changes inside 'try_window'. 2020-05-31 Juri Linkov * lisp/tab-bar.el (switch-to-buffer-other-tab): Normalize buffer. * lisp/tab-bar.el (switch-to-buffer-other-tab): Use 'window-normalize-buffer-to-switch-to' on 'buffer-or-name', like does 'pop-to-buffer' used by 'switch-to-buffer-other-frame', instead of raising the error "Invalid buffer" on a non-existent buffer name. 2020-05-30 Eli Zaretskii Fix mingw.org's MinGW GCC 9 warning about 'execve' * nt/inc/ms-w32.h (execve) [__GNUC__ > 9]: Provide a different prototype for mingw.org's MinGW as well, to match the GCC builtin. 2020-05-28 Glenn Morris Tiny texinfo markup fixes * doc/lispref/edebug.texi (Edebug Views): * doc/lispref/loading.texi (Library Search): * doc/lispref/os.texi (User Identification): Markup fixes. 2020-05-27 Dmitry Gutov Make next-error behavior a bit more flexible * lisp/simple.el (next-error-no-navigation-try-current): Extract from the case #2 in next-error-find-buffer (bug#40919). (next-error-find-buffer-function): Use it as the default. 2020-05-27 Noam Postavsky * etc/NEWS.25: Belatedly announce upcase-dwim and downcase-dwim. 2020-05-25 Eli Zaretskii Fix access to single-byte characters in buffer text * src/xdisp.c (get_visually_first_element) (Fbidi_find_overridden_directionality): * src/cmds.c (Fend_of_line): Use FETCH_BYTE instead of FETCH_CHAR, and byte position instead of character position, to access individual bytes of buffer text. This avoids producing invalid characters and accessing wrong buffer positions. (Bug#41520) 2020-05-25 Noam Postavsky Revert "Fix eshell-mode-map initialization" It makes eshell-return-exits-minibuffer permanently affect the eshell-mode-map (Bug#41370). Do not merge to master, we will fix it properly there. 2020-05-25 Matthias Meulien Fix tab-bar-tab-name-ellipsis initialization * lisp/tab-bar.el (tab-bar-tab-name-truncated): Evaluate displayable character when generating tab name. 2020-05-24 Basil L. Contovounesios Fix Elisp manual entry for format-spec * doc/lispref/text.texi (Interpolated Strings): Fix typos. Don't document modifier for default space padding as it's redundant and inconsistent with the docstring and implementation of format-spec. 2020-05-24 Eli Zaretskii Fix rare assertion violations in 'etags' * lib-src/etags.c (pfnote): Instead of raising an assertion when we get an empty tag name, return immediately. (Bug#41465) * test/manual/etags/ETAGS.good_1: * test/manual/etags/ETAGS.good_2: * test/manual/etags/ETAGS.good_3: * test/manual/etags/ETAGS.good_4: * test/manual/etags/ETAGS.good_5: * test/manual/etags/ETAGS.good_6: Adapt to latest changes in etags. 2020-05-23 Stefan Monnier * lisp/subr.el (save-match-data): Clarify use in docstring 2020-05-23 Eli Zaretskii Improve the documentation of setting up fontsets * doc/lispref/display.texi (Fontsets): Improve the accuracy of a cross-reference to "Character Properties". * doc/emacs/mule.texi (Fontsets, Modifying Fontsets): Improve the documentation of fontsets and how to modify them. 2020-05-23 Eli Zaretskii * doc/emacs/killing.texi (Rectangles): Improve indexing. 2020-05-23 Eli Zaretskii Fix accessing files on networked drives on MS-Windows * src/w32.c (acl_get_file): Set errno to ENOTSUP if get_file_security returns ERROR_NOT_SUPPORTED. (Bug#41463) 2020-05-22 Alan Mackenzie CC Mode: Fix bug #39972, by fixing c-display-defun-name for nested defuns * lisp/progmodes/cc-mode.el (c-common-init): Build add-log-current-defun-function out of c-defun-name-and-limits instead of the former c-defun-name. 2020-05-21 Paul Eggert Redo RCS Id for pdumper * lisp/version.el: Don’t put an RCS Id style string into the executable via purecopy, as this does not work with the pdumper. * src/emacs.c (RCS_Id): New constant, for 'ident'. (cherry picked from commit 3d1bcfba5e21b29be8669aa2a8f27b344c9e02fd) 2020-05-21 Stefan Kangas Second attempt at improving indexing in control.texi * doc/lispref/control.texi (Processing of Errors): Improve indexing by adding the word form "handle" in addition to "handling". With thanks to Eli Zaretskii. 2020-05-19 Stefan Kangas * doc/lispref/control.texi (Processing of Errors): Improve indexing. 2020-05-17 Paul Eggert Minor fixups for mutability doc * doc/lispref/objects.texi (Mutability): Minor fixups in response to a comment by Dmitry Gutov (Bug#40671#477). 2020-05-17 Paul Eggert Don’t use “constant” for values you shouldn’t change Inspired by patch proposed by Dmitry Gutov (Bug#40671#393) and by further comments by him and by Michael Heerdegen in the same bug report. * doc/lispintro/emacs-lisp-intro.texi (setcar): Don’t push mutability here. * doc/lispref/eval.texi (Self-Evaluating Forms, Quoting) (Backquote): * doc/lispref/lists.texi (Modifying Lists): * doc/lispref/objects.texi (Lisp Data Types, Mutability): * doc/lispref/sequences.texi (Array Functions, Vectors): * doc/lispref/strings.texi (String Basics, Modifying Strings): Don’t use the word “constant” to describe all values that a program should not change. * doc/lispref/objects.texi (Mutability): Rename from “Constants and Mutability”. All uses changed. In a footnote, contrast the Emacs behavior with that of Common Lisp, Python, etc. for clarity, and say the goal is to be nicer. 2020-05-16 Eli Zaretskii Improve documentation of manually installing Lisp packages * doc/emacs/building.texi (Lisp Libraries): Describe how to manually load packages in the init file. Mention the 'site-lisp' subdirectory of the default 'load-path'. * doc/emacs/package.texi (Packages): Describe manual installation of ELisp packages. Suggested by Jean-Christophe Helary . 2020-05-16 Eli Zaretskii Reflect the emacs-devel ELPA/MELPA dispute in FAQ * doc/misc/efaq.texi (Packages that do not come with Emacs): Warn that some MELPA packages may require non-free software. 2020-05-15 Tassilo Horn Consider face inheritance when checking region face background. Some themes (like dracula) make the region face inherit from some other face. If the background color of the region was inherited, `indicate-copied-region' did the switch-point-and-mark-twice dance which is not visible in case the region is highlighted. It just looked like Emacs would hang for a second after M-w. * lisp/simple.el (indicate-copied-region): Consider face inheritance when checking region face background. 2020-05-15 Leo Vivier Fix dired default file operation (bug#41261) * lisp/dired-aux.el (dired-dwim-target-directories): Restore pre-emacs-27 behavior of 'dired-dwim-target'. 2020-05-14 Philipp Stephani Fix documentation related to 'command-switch-alist'. While there, add a unit test to verify the behavior. * doc/lispref/os.texi (Command-Line Arguments): Fix documentation: the option string in 'command-switch-alist' does include leading hyphens. Also mention that 'command-switch-alist' parsing ignores equals signs in options. * test/lisp/startup-tests.el (startup-tests/command-switch-alist): New unit test. 2020-05-13 Simon Lang (tiny change) Improve ediff readability in misterioso theme (Bug#41221) * etc/themes/misterioso-theme.el: Add ediff faces. 2020-05-13 Clément Pit-Claudel Fix a crash in handle_display_spec * src/xdisp.c (handle_display_spec): Check that the cdr of the disable-eval spec is a cons before taking its car. (Bug#41232) 2020-05-13 Martin Rudalics In x_hide_tip reset tip_last_frame for GTK+ tooltips only (Bug#41200) * src/xfns.c (x_hide_tip): Reset tip_last_frame only when using GTK+ system tooltips (Bug#41200). 2020-05-12 João Távora Fix docstring of flymake-make-diagnostic (bug#40351) * lisp/progmodes/flymake.el (flymake-make-diagnostic): Fix docstring 2020-05-10 Paul Eggert Go back to “Bahá’í” * doc/emacs/calendar.texi (Holidays): Revert previous change, as bahai.org spells it “Bahá’í” (with U+2019 RIGHT SINGLE QUOTATION MARK) and that’s good enough for us. 2020-05-10 Eli Zaretskii * lisp/dired.el (dired-toggle-marks): Doc fix. (Bug#41097) 2020-05-09 Philipp Stephani Small fix for type of 'display-fill-column-indicator-character' * lisp/cus-start.el (standard): Don't mark t as safe file-local value for 'display-fill-column-indicator-character', as that value isn't allowed. 2020-05-09 Eli Zaretskii Fix customization of 'display-fill-column-indicator-character' * lisp/cus-start.el (display-fill-column-indicator-character): Fix the customization form. (Bug#41145) 2020-05-09 Philipp Stephani Refer to fill column indicator Info node in some places. * src/xdisp.c (syms_of_xdisp): Add reference to manual in documentation strings for variables related to fill column indicators. * lisp/display-fill-column-indicator.el (display-fill-column-indicator) (display-fill-column-indicator-mode): Add reference to manual. 2020-05-09 Martin Rudalics Fix GTK's Tool Bar menu radio buttons * lisp/menu-bar.el (menu-bar-showhide-tool-bar-menu): Fix typo that makes the radio buttons pretend that the tool bar is always shown on the left side of the frame. 2020-05-09 Eli Zaretskii Minor clarifications in NEWS * etc/NEWS: Tell how to revert to previous behaviors regarding displaying messages when the minibuffer is active. (Bug#41087) 2020-05-08 Philipp Stephani Improve documentation of 'with-suppressed-warnings'. * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Refer to 'byte-compile-warnings' instead of 'byte-compile-warning-types', as only the former variable documents the available warning types. 2020-05-08 Eli Zaretskii Fix a typo in a comment * lisp/display-fill-column-indicator.el: Fix a typo in a comment. Suggested by david s . 2020-05-08 Eli Zaretskii Improve documentation of Hi Lock mode * lisp/hi-lock.el (hi-lock-mode, hi-lock-face-buffer) (hi-lock-face-phrase-buffer, hi-lock-face-symbol-at-point): Clarify when 'hi-lock-mode' will use Font Lock and when it will use overlays. (Bug#41124) 2020-05-08 Eli Zaretskii Fix typos in the Emacs user manual * doc/emacs/calendar.texi (Holidays): Fix usage of non-ASCII accents. * doc/emacs/custom.texi (Init Rebinding): Fix a cross-reference. * doc/emacs/dired.texi (Operating on Files): Make the cross-reference to "VC Delete/Rename" be to a different manual in the printed version. (Bug#41100) 2020-05-08 Björn Holby (tiny change) Fix references to Speedbar in VHDL mode * lisp/progmodes/vhdl-mode.el (vhdl-speedbar-initialize): Update references to Speedbar variables. (Bug#41084) 2020-05-08 Eli Zaretskii Fix handling of FROM = t and TO = t by 'window-text-pixel-size' * src/xdisp.c (Fwindow_text_pixel_size): Use byte position for accessing buffer text, not character positions. (Bug#41125) 2020-05-06 Eli Zaretskii * doc/emacs/modes.texi (Major Modes): Fix quoting. (Bug#41110) 2020-05-06 Noam Postavsky Fix docstring quoting * lisp/gnus/message.el (message-sendmail-extra-arguments): Fix escaping of quotes in docstring. 2020-05-06 Noam Postavsky Revert "cl-loop: Calculate the array length just once" Don't merge to master. This is a safe-for-release fix for Bug#40727. 2020-05-06 Noam Postavsky Revert "cl-loop: Add missing guard condition" Don't merge to master. This is a safe-for-release fix for Bug#40727. 2020-05-06 Noam Postavsky Revert "Refix conditional step clauses in cl-loop" Don't merge to master. This is a safe-for-release fix for Bug#40727. 2020-05-05 Eli Zaretskii Improve "Help Summary" section in user manual * doc/emacs/help.texi (Help Summary): Add cross-references to sections with details of each Help command. 2020-05-05 Stefan Kangas Clarify message-sendmail-extra-arguments docstring * lisp/gnus/message.el (message-sendmail-extra-arguments): Clarify docstring. 2020-05-05 Philipp Stephani * src/editfns.c (Fformat): Small documentation fix. 2020-05-04 Alan Mackenzie Remove calls to non-existent functions from edebug.el. Do not merge to master. *lisp/emacs-lisp/edebug.el (edebug--display-1) (edebug-toggle-disable-breakpoint): Remove calls to edebug--overlay-breakpoints and edebug--overlay-breakpoints-removed which had been overlooked in a recent changed to edebug. 2020-05-04 Dmitry Gutov Honor search-upper-case * lisp/fileloop.el (fileloop--case-fold): Extract from existing code. Honor search-upper-case (bug#40940). (fileloop-initialize-replace, fileloop-initialize-search): Use it. Update the docstring. 2020-05-04 Basil L. Contovounesios Fix eww-follow-link on URLs with #target * lisp/net/eww.el (eww-display-html): Ensure shr-target-id is set as callers depend on this (bug#28441, bug#40532). 2020-05-04 Juri Linkov Revert part of recent commit 85544f8ef5 (bug#40808) * lisp/isearch.el (isearch-lazy-highlight-search): Remove recent fix of lazy-highlighting of hidden matches. In emacs-27 leave only the fix for lazy-counting of hidden matches when isearch-lazy-count is non-nil. 2020-05-03 Stefan Kangas Improve doc strings of makunbound and fmakunbound * src/data.c (Fmakunbound, Ffmakunbound): Improve doc strings. (Bug#41026) 2020-05-03 Alan Mackenzie Revert "Mark breakpoints in edebug with highlights". This fixes bug #40992 Do not merge to master. This reverts commit e8b3a15cb6ff187ce08afcb43bd9a0b7907268ca. 2020-05-02 Paul Eggert Make memq etc. examples more like they were Problem reported by Štěpán Němec in: https://lists.gnu.org/r/emacs-devel/2020-05/msg00130.html * doc/lispref/lists.texi (Sets And Lists, Association Lists): Revert examples to be more like the way they were, using self-evaluating expressions. Be more consistent about listing unspecified results. 2020-05-02 Eli Zaretskii Document effect of 'search-upper-case' on replacement commands * doc/emacs/search.texi (Replacement and Lax Matches): Document the role of 'search-upper-case' in replacement commands. (Lax Search): Document the value 'not-yanks' of 'search-upper-case' where the variable itself is documented. * lisp/replace.el (query-replace-regexp, query-replace): Mention 'search-upper-case' and its effect in doc strings. (Bug#40940) 2020-05-01 Eli Zaretskii * lisp/desktop.el (desktop-save): Doc fix. (Bug#41007) 2020-04-30 Stefan Kangas Recommend to avoid unnecessary abbreviations in doc * doc/lispref/tips.texi (Documentation Tips): Recommend to avoid unnecessary abbreviations. (Bug#40011) 2020-04-30 Eli Zaretskii Revert "Fix calculator division truncation (bug#40892)" This reverts commit 82140c510c4d27e639b4bca1e9bf158f0f66c375. (Bug#40892) 2020-04-30 Mattias Engdegård Fix calculator division truncation (bug#40892) * lisp/calculator.el (calculator-string-to-number): Convert decimal numbers input to float, fixing a regression introduced in f248292ede. Reported by Aitor Soroa. 2020-04-29 Dmitry Gutov Expand file name for remote dirs as well * lisp/progmodes/project.el (project--files-in-directory): Expand file name for remote dirs as well (bug#40940). 2020-04-29 Eli Zaretskii Fix project.el commands in "transient" projects * lisp/progmodes/project.el (project--files-in-directory): Run local DIR directory names through 'expand-file-name', so that "~/" is expanded, in case the shell doesn't or the shell's notion of the home directory is different from that of Emacs. (Bug#40940) 2020-04-29 Eli Zaretskii Make sure alist-related functions say so in their doc * src/fns.c (Fassq, assq_no_quit, Fassoc, assoc_no_quit, Frassq) (Frassoc): Rename argument LIST to ALIST. Doc strings updated. 2020-04-29 Eli Zaretskii * lisp/env.el (substitute-env-vars): Doc fix. (Bug#40948) 2020-04-29 Juri Linkov * lisp/isearch.el: Fix lazy-highlighting and lazy-counting of hidden matches * lisp/isearch.el (isearch-lazy-highlight-search): Let-bind search-invisible to t when search-invisible is 'open' or when both isearch-lazy-count and search-invisible are non-nil. (Bug#40808) 2020-04-28 Eli Zaretskii Fix error in ERC when 'erc-server-coding-system' is customized * lisp/erc/erc-backend.el (erc-split-line): Handle the case where 'erc-coding-system-for-target' returns a coding-system's symbol. (Bug#40914) 2020-04-28 Eli Zaretskii Avoid crashes on TTY frames with over-long compositions * src/term.c (encode_terminal_code): Each character from an automatic composition is a multibyte character, so its multibyte representation can take up to MAX_MULTIBYTE_LENGTH bytes. Account for that when allocating storage for characters to be encoded. (Bug#40913) 2020-04-27 Stefan Kangas Fix typo in custom.texi * doc/emacs/custom.texi (Variables): Fix typo. Pointed out by ej32u@protonmail.com. (Bug#40890) 2020-04-27 Michael Albinus * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Use `shell-quote-argument' instead of quoting 'like this'. 2020-04-27 Juri Linkov * lisp/image-mode.el (image-mode-map): Update menu items. * lisp/image-mode.el (image-mode-map): Move "Fit Image to Window (Best Fit)" higher. Add "Zoom In" (image-increase-size), "Zoom Out" (image-decrease-size) and "Rotate Clockwise" (image-rotate). Use name "Set Rotation..." for image-transform-set-rotation. Swap "Next Image" and "Previous Image". Swap "Next Frame" and "Previous Frame". 2020-04-27 Juri Linkov Fix bugs in tab-bar and tab-line and mention remaining features in manual. * doc/emacs/frames.texi (Tab Bars): Mention tab-bar-new-tab-to, tab-bar-close-last-tab-choice, tab-bar-close-tab-select, tab-undo, tab-select, tab-bar-history-mode. * doc/emacs/windows.texi (Tab Line): Mention tab-line-tabs-function. * lisp/tab-bar.el (tab-bar-select-tab-modifiers): Mention tab-bar-tab-hints in docstring. (tab-bar-tab-hints): Mention tab-bar-select-tab-modifiers in docstring. (tab-bar-select-tab): Mention tab-bar-select-tab-modifiers in docstring. (tab-bar-switch-to-tab): Expand the docstring. (tab-bar-new-tab-to): Fix bug in handling 'left' value. (tab-bar-close-tab): Fix bug in handling 'left' value. (tab-bar-undo-close-tab): Use funcall tab-bar-tabs-function instead of direct call to tab-bar-tabs. (tab-bar-history-back, tab-bar-history-forward): Add docstrings. (tab-bar-history-mode): Expand docstring. * lisp/tab-line.el (tab-line-format): Fix bug for handling window switching that should set face 'tab-line-tab-current'. 2020-04-26 Michael Albinus Make shell-command tests fit for tcsh. * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Fix debug spec. Format command to run also under tcsh. (simple-tests-shell-command-39067) (simple-tests-shell-command-dont-erase-buffer): Quote newline in string. 2020-04-25 Paul Eggert Remove doc duplication * doc/lispref/objects.texi (Constants and Mutability): Remove duplication. From a suggestion by Andreas Schwab (Bug#40671#150). 2020-04-25 Michael Albinus * etc/NEWS: Fix inconsistencies. 2020-04-25 Noam Postavsky Clarify semantics of trace-function CONTEXT argument * lisp/emacs-lisp/trace.el (trace-function-foreground): Explain that CONTEXT should be a function, when called from Lisp. 2020-04-25 Noam Postavsky Don't let a code literal get modified in mml parsing (Bug#39884) * lisp/gnus/mml.el (mml-parse-1): Make a fresh cons for the tag type, because 'mml-generate-mime' destructively modifies it. 2020-04-25 Eli Zaretskii * lisp/simple.el (kill-ring-save): Doc fix. (Bug#40797) 2020-04-25 Clément Pit-Claudel Minor doc clarification regarding fringe bitmaps * doc/lispref/display.texi (Customizing Bitmaps): Add a note regarding the order of bits being the opposite of that in XBM images. (Bug#40784) 2020-04-25 Eli Zaretskii Fix documentation of fringe bitmaps * doc/lispref/display.texi (Fringe Bitmaps): The 'empty-line' fringe indicator _is_ used. (Bug#40799) 2020-04-25 Paul Eggert Tweak mutability doc a bit more Inspired by a comment from Michael Heerdegen (Bug#40671#114). * doc/lispref/objects.texi (Constants and Mutability): Tweak further. 2020-04-24 Mattias Engdegård Calc: fix autoload errors (bug#40800) Reported by Hugo Daschbach. * lisp/calc/calc-ext.el (calc-init-extensions): Remove calc-kbd-report key binding and autoload; it was removed in 2005. calc-keypad-x-{left,right,middle}-click were renamed to calc-keypad-{left,right,middle}-click in 2001; fix the autoloads. calc-twos-complement-mode is a variable, not a function; remove the autoload. * lisp/calc/calc-prog.el: Remove commented-out calc-kbd-report. 2020-04-24 Stefan Kangas Improve indexing of ELisp manual * doc/lispref/tips.texi (Tips): Add index entry 'best practices'. 2020-04-24 Juri Linkov * lisp/image-mode.el (image-transform-resize): Remove FIXME comment. The user customizable variable 'image-auto-resize' is documented now in the manual. 2020-04-23 Tassilo Horn Improve the default value of 'doc-view-ghostscript-program'. * lisp/doc-view.el (doc-view-ghostscript-program): Use plain command name instead of qualified name returned by executable-find (as suggested by Stefan Monnier). (Bug#36357) 2020-04-23 Juri Linkov Change doc-view-mode-map prefix key 's' to 'c'. * doc/emacs/misc.texi (DocView Slicing): Change prefix key 's' to 'c'. * lisp/doc-view.el (doc-view-mode-map): Change prefix key 's' to 'c'. * lisp/image-mode.el (image-mode-map): Add image-transform-set-scale to menu. * doc/emacs/files.texi (Image Mode): Describe commands image-transform-fit-both, image-transform-set-scale, image-transform-reset. * etc/NEWS: Rearrange image sections. https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg01315.html 2020-04-22 Paul Eggert Improve wording about constants Thanks to Štěpán Němec and Drew Adams for reviews of recent changes. * doc/lispref/eval.texi (Quoting): Give an example. * doc/lispref/lists.texi (Association Lists): Simplify example code. * doc/lispref/objects.texi (Lisp Data Types) (Constants and Mutability): Clarify wording. 2020-04-22 Tassilo Horn Improve the default value of 'doc-view-ghostscript-program'. * lisp/doc-view.el (doc-view-ghostscript-program): On Windows, try gswin64c, gswin32c, rungs, and mgs. (Bug#36357) 2020-04-21 Eli Zaretskii Minor improvements in documentation of the last change * etc/NEWS: * doc/emacs/files.texi (Image Mode): Minor copyedits of last change. 2020-04-21 Juri Linkov Add image-auto-resize defcustoms to image-mode.el * lisp/image-mode.el (image-auto-resize) (image-auto-resize-on-window-resize): New defcustoms. (image-mode-map): Bind "sb" to image-transform-fit-both. (image-mode): Set image-transform-resize to image-auto-resize initially. (image-mode--setup-mode): Add hook on image-auto-resize-on-window-resize. (image-toggle-display-image): Check if image-transform-resize is t. (image-transform-properties): Check image-transform-resize for nil and t. (image-transform-fit-both): New command. (image-transform-reset): Reset image-transform-resize to image-auto-resize. * doc/emacs/files.texi (Image Mode): Mention image-auto-resize and image-auto-resize-on-window-resize. https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg01160.html 2020-04-21 Juri Linkov Improve the documentation of tab-bar and tab-line * doc/emacs/frames.texi (Tab Bars): Add xref to "Tab Line". Document more commands. * doc/emacs/windows.texi (Windows): * doc/emacs/emacs.texi (Top): Add "Tab Line" menu. * doc/emacs/windows.texi (Window Convenience): Move tab-line documentation to new node "Tab Line". (Tab Line): New node. * doc/emacs/glossary.texi (Glossary): * doc/emacs/modes.texi (Minor Modes): * doc/emacs/display.texi (Standard Faces): Add xref to "Tab Line". 2020-04-20 Paul Eggert Tweak wording re constant variables * doc/lispref/objects.texi (Constants and Mutability): Tweak. Problem reported by Michael Heerdegen (Bug#40693#44). 2020-04-20 Paul Eggert Tweak setcar-related wording * doc/lispref/eval.texi (Self-Evaluating Forms): Change “primitives” to “operations”. Problem reported by Štěpán Němec in: https://lists.gnu.org/r/emacs-devel/2020-04/msg01146.html 2020-04-20 Juri Linkov * lisp/image-mode.el: Add prefix key 's' and reduce dependency on ImageMagick. * lisp/image-mode.el (image-mode-map): Regroup existing keybindings and add new ones with the prefix key 's'. Remove condition ":visible (eq image-type 'imagemagick)" from menu. (image-toggle-display-image): Don't rotate again after user rotated manually. (image-transform-check-size): Remove check for imagemagick. (image-transform-properties, image-transform-set-scale) (image-transform-fit-to-height, image-transform-fit-to-width) (image-transform-set-rotation, image-transform-reset): Remove mentions of ImageMagick from docstrings since these commands now work without ImageMagick. 2020-04-20 Juri Linkov * doc/emacs/windows.texi (Window Convenience): Decribe more windmove features. * doc/emacs/windows.texi (Window Convenience): Add descriptions of windmove-display-default-keybindings, windmove-delete-default-keybindings, windmove-swap-states-in-direction. * etc/NEWS: Regroup to move some parts closer to related sections. 2020-04-20 Paul Eggert Fix mutability glitches reported by Drew Adams See Bug#40693#32. * doc/lispref/eval.texi (Self-Evaluating Forms, Backquote): Say that these yield constant conses, vectors and strings, not constant symbols. * doc/lispref/objects.texi (Constants and Mutability): Say that an attempt to modify a constant variable signals an error, instead of saying that it has undefined behavior. 2020-04-19 Paul Eggert Improve mutability doc See Eli Zaretskii’s suggestions (Bug#40671#33). * doc/lispref/lists.texi (Setcar, Setcdr, Rearrangement): * doc/lispref/sequences.texi (Sequence Functions) (Array Functions): Add commentary to examples. * doc/lispref/lists.texi (Sets And Lists): Revert change to delq example. 2020-04-19 Paul Eggert Improve mutability documentation This change was inspired by comments from Štěpán Němec in: https://lists.gnu.org/r/emacs-devel/2020-04/msg01063.html * doc/lispref/objects.texi (Lisp Data Types): Mention mutability. (Constants and mutability): New section. * doc/lispintro/emacs-lisp-intro.texi (Lists diagrammed) (Indent Tabs Mode): Improve wording. * doc/lispref/eval.texi (Self-Evaluating Forms): Say that they return constants. * doc/lispref/lists.texi (Sets And Lists): Fix memql mistake/confusion that I recently introduced. 2020-04-19 Paul Eggert Document that quoting yields constants * doc/lispref/eval.texi (Quoting, Backquote): Mention that quoted expressions yield a constant (Bug#40693). 2020-04-19 Stefan Monnier * doc/lispref/keymaps.texi (Extended Menu Items, Easy Menu) <:key-sequence>: Clarify the documentation further 2020-04-19 Mattias Engdegård Remove #' and function quoting from lambda forms in manual * doc/lispref/abbrevs.texi (Abbrev Expansion): * doc/lispref/backups.texi (Reverting): * doc/lispref/functions.texi (Mapping Functions): * doc/lispref/help.texi (Accessing Documentation): * doc/lispref/sequences.texi (Char-Tables): * doc/lispref/syntax.texi (Categories): * doc/lispref/text.texi (Sorting): Remove function quoting from lambda in examples where it still occurs, since examples should follow our best style and be consistent. 2020-04-19 Stefan Monnier * src/regex-emacs.c (re_match_2_internal): Rework comment in last change Explain why we don't need to worry about Lisp modifying the buffer. * src/syntax.c (parse_sexp_propertize): Fix name in error message. 2020-04-19 Juri Linkov Add new node "Image Mode" to Emacs Manual. * doc/emacs/dired.texi (Image-Dired): Add xref to "Image Mode". * doc/emacs/emacs.texi (Top): Add new node "Image Mode" to menu. * doc/emacs/files.texi (Files): Add new node "Image Mode" to menu. (File Conveniences): Split part of node to new node "Image Mode". * doc/emacs/frames.texi (Mouse Commands): Add xref to "Image Mode". * doc/emacs/misc.texi (Embedded WebKit Widgets): Rename xref from "File Conveniences" to "Image Mode". 2020-04-18 Paul Eggert * doc/lispref/display.texi (Customizing Bitmaps): Fix typo. 2020-04-18 Paul Eggert Document constant vs mutable objects better This patch builds on a suggested patch by Mattias Engdegård and on further comments by Eli Zaretskii. Original bug report by Kevin Vigouroux (Bug#40671). * doc/lispintro/emacs-lisp-intro.texi (set & setq, Review) (setcar, Lists diagrammed, Mail Aliases, Indent Tabs Mode): setq is a special form, not a function or command. * doc/lispintro/emacs-lisp-intro.texi (setcar): * doc/lispref/lists.texi (Modifying Lists, Rearrangement): * doc/lispref/sequences.texi (Sequence Functions) (Array Functions, Vectors): * doc/lispref/strings.texi (String Basics, Modifying Strings): Mention mutable vs constant objects. * doc/lispintro/emacs-lisp-intro.texi (setcar, setcdr) (kill-new function, cons & search-fwd Review): * doc/lispref/edebug.texi (Printing in Edebug): * doc/lispref/keymaps.texi (Changing Key Bindings): * doc/lispref/lists.texi (Setcar, Setcdr, Rearrangement) (Sets And Lists, Association Lists, Plist Access): * doc/lispref/sequences.texi (Sequence Functions) (Array Functions): * doc/lispref/strings.texi (Text Comparison): Fix examples so that they do not try to change constants. 2020-04-18 Eli Zaretskii Improve documentation of 'sort-lines' * lisp/sort.el (sort-lines): Clarify the interactive invocation. (Bug#40697) 2020-04-18 Štěpán Němec Mention 'spam-stat-process-directory-age' in the documentation I was at a loss as to why my attempt to set up spam-stat seemed to have no effect, only to find (digging in the code) that it was ignoring most of the sample files due to this undocumented variable. * doc/misc/gnus.texi (Creating a spam-stat dictionary): Document the variable 'spam-stat-process-directory-age'. (bug#39780) 2020-04-18 Eli Zaretskii Avoid crashes in regex-emacs.c due to GC * src/regex-emacs.c (re_match_2_internal): Prevent GC from invalidating C pointers to buffer text. (Bug#40661) 2020-04-18 Eli Zaretskii Fix "C-u M-!" when 'shell-command-dont-erase-buffer' is non-nil * lisp/simple.el (shell-command-dont-erase-buffer): Clarify the effect of the various values in the doc string. (shell-command-save-pos-or-erase, shell-command): Don't move or push point if the output will go to the current buffer. (Bug#40690) (shell-command): Mention 'shell-command-dont-erase-buffer' in the doc string. * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Don't is shell quoting 'like this', as it doesn't work on MS-Windows; quote "like this" instead. (simple-tests-shell-command-dont-erase-buffer): Adapt the test to the new modus operandi. * doc/emacs/misc.texi (Single Shell): Document the effect of the various values of 'shell-command-dont-erase-buffer'. * etc/NEWS: Expand and reword the entry regarding changes in 'shell-command-dont-erase-buffer'. 2020-04-17 Paul Eggert Fix cl-most-positive-float doc typo * doc/misc/cl.texi (Implementation Parameters): Fix typo in documentation of cl-most-positive-float. 2020-04-16 jakub-w (tiny change) Fix a typo in calculator.el * lisp/calculator.el (calculator-expt): Overflowing exponentiation caused the function to return -1.0e+INF if the base was an odd, negative number, no matter what the exponent was. 2020-04-16 Amin Bandali * lisp/erc/erc.el: Add URL to the new ERC page on the Emacs site 2020-04-16 Nicolas Petton Bump Emacs version to 27.0.91 * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version. 2020-04-16 João Távora Correct Fido-mode's backspacing of directories with spaces (Bug#40625) * lisp/icomplete.el (icomplete-fido-backward-updir): Use zap-up-to-char. 2020-04-15 João Távora Default completion-flex-nospace to nil By default, the flex completion style _does_ match spaces. (Bug#40625) * lisp/icomplete.el (icomplete--fido-mode-setup): Force completion-flex-nospace to nil. * lisp/minibuffer.el (completion-flex-nospace): Default to nil. 2020-04-15 Eli Zaretskii Improve an example in w32 FAQ * doc/misc/efaq-w32.texi (Font names): Modify the expression to insert a lits of all installed fonts so as to avoid producing too long lines. Suggested by ndame . 2020-04-15 Stefan Monnier * lisp/htmlfontify.el (hfy-force-fontification): Fix bug#40642 Don't presume that `jit-lock-mode` is enabled. Do not merge to `master`. 2020-04-15 Nicolas Petton * admin/authors.el: Add an author alias. 2020-04-15 YAMAMOTO Mitsuharu Limit RLIMIT_NOFILE to FD_SETSIZE on macOS * src/nsterm.m ([EmacsApp applicationDidFinishLaunching:]): Call CoreFoundation functions that increase RLIMIT_NOFILE behind our back during startup, and then set RLIMIT_NOFILE back to FD_SETSIZE to avoid crashes in setup_process_coding_system (Bug#39164). 2020-04-15 Martin Rudalics Fix Elisp manual entry on 'set-window-configuration' * doc/lispref/windows.texi (Window Configurations): Fix description of 'set-window-configuration'. 2020-04-14 Nicolas Petton * admin/authors.el: Add missing author aliases. 2020-04-14 Mattias Engdegård Fix edge case errors in filename-matching regexps These changes fix actual or latent bugs in regexps that match file names, such as PATTERN arguments to 'directory-files'. See https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg00265.html * admin/authors.el (authors-obsolete-files-regexps) (authors-renamed-files-regexps): * lisp/auth-source-pass.el (auth-source-pass-entries): * lisp/calendar/todo-mode.el (todo-show, todo-find-filtered-items-file) (todo-filter-items, todo-reset-nondiary-marker, todo-reset-done-string) (todo-reset-comment-string, todo-reset-highlight-item): * lisp/cedet/semantic/db-ebrowse.el (semanticdb-load-ebrowse-caches): * lisp/cedet/semantic/texi.el (semantic-texi-associated-files): * lisp/cedet/srecode/map.el (srecode-map-update-map): * lisp/dired.el (dired-re-no-dot): * lisp/emacs-lisp/autoload.el (update-directory-autoloads): * lisp/emacs-lisp/shadow.el (load-path-shadows-find): * lisp/files.el (auto-mode-alist, directory-files-no-dot-files-regexp): * lisp/finder.el (finder-compile-keywords): * lisp/generic-x.el (inetd-conf-generic-mode, named-boot-generic-mode) (resolve-conf-generic-mode, etc-modules-conf-generic-mode): * lisp/gnus/gnus-agent.el (gnus-agent-read-agentview) (gnus-agent-regenerate-group, gnus-agent-update-files-total-fetched-for): * lisp/gnus/gnus-cache.el (gnus-cache-articles-in-group): * lisp/gnus/gnus-score.el (gnus-score-search-global-directories): * lisp/gnus/gnus-util.el (gnus-delete-directory): * lisp/gnus/gnus-uu.el (gnus-uu-dir-files): * lisp/gnus/nndraft.el (nndraft-request-group): * lisp/gnus/nnmh.el (nnmh-request-group, nnmh-request-create-group): (nnmh-request-delete-group, nnmh-active-number, nnmh-update-gnus-unreads): * lisp/gnus/nnspool.el (nnspool-request-group): * lisp/gnus/spam-stat.el (spam-stat-process-directory) (spam-stat-test-directory): * lisp/help-fns.el (help-fns--first-release): * lisp/help.el (view-emacs-news): * lisp/international/quail.el (quail-update-leim-list-file): * lisp/international/titdic-cnv.el (batch-titdic-convert): * lisp/mail/mspools.el (mspools-set-vm-spool-files) (mspools-get-spool-files): * lisp/mail/rmail.el (rmail-secondary-file-regexp) (rmail-speedbar-match-folder-regexp): * lisp/net/ange-ftp.el (ange-ftp-delete-directory): * lisp/net/tramp.el (tramp-use-absolute-autoload-file-names): * lisp/obsolete/gulp.el (gulp-send-requests): * lisp/obsolete/vc-arch.el (vc-arch-trim-revlib): * lisp/org/ob-core.el (org-babel-remove-temporary-directory): * lisp/progmodes/ebnf2ps.el (ebnf-file-suffix-regexp, ebnf-style-database): * lisp/progmodes/executable.el (executable-command-find-posix-p): * lisp/startup.el (command-line): * lisp/textmodes/refer.el (refer-get-bib-files): * lisp/url/url-about.el (url-probe-protocols): * lisp/vc/vc-rcs.el (vc-rcs-register, vc-rcs-unregister): * test/lisp/net/tramp-archive-tests.el (tramp-archive-test19-directory-files-and-attributes): * test/lisp/net/tramp-tests.el (tramp-test19-directory-files-and-attributes): Replace ^ and $ with \` and \', respectively. Use (rx (or (not ".") "...")), translated into "[^.]\\|\\.\\.\\.", to match anything but "." and "..", instead of several incorrect regexps. 2020-04-14 Eli Zaretskii Clarify the doc string of 'yank' * lisp/simple.el (yank): Mention 'current-kill' in the doc string, so that people could find all the gory details of what is "the most recent kill" for this purpose. (Bug#40375) 2020-04-14 Amin Bandali New function erc-track-switch-buffer-other-window * lisp/erc/erc-track.el (erc-track-switch-buffer): Factor out the implementation from here ... (erc-track--switch-buffer): ... to here. (erc-track-switch-buffer-other-window): New function, like `erc-track-switch-buffer', but uses `switch-to-buffer-other-window' instead, to open the buffer in another window. 2020-04-14 Amin Bandali New function erc-switch-to-buffer-other-window * lisp/erc/erc.el (erc-switch-to-buffer): Factor out the buffer choice implementation from here ... (erc--switch-to-buffer): ... to here. (erc-switch-to-buffer-other-window): New function, like `erc-switch-to-buffer', but uses `switch-to-buffer-other-window' instead, to open the buffer in another window. 2020-04-13 Štěpán Němec Clarify documentation on inhibit-modification-hooks intended usage Cf. bug#40332 and the discussion at https://lists.gnu.org/archive/html/emacs-devel/2020-03/msg00921.html * doc/lispref/text.texi (Change Hooks): * src/insdel.c (syms_of_insdel): Clarify the intended usage of 'inhibit-modification-hooks'. 2020-04-13 Štěpán Němec gnus-shorten-url: Improve and avoid args-out-of-range error 'gnus-shorten-url' (used by 'gnus-summary-browse-url') ignored fragment identifiers and didn't check substring bounds, in some cases leading to runtime errors, e.g.: (gnus-shorten-url "https://some.url.with/path/and#also_a_long_target" 40) ;; => Lisp error: (args-out-of-range "/path/and" -18 nil) This commit makes it account for #fragments and fixes faulty string computation. (bug#39980) Do not merge to master, where the helper is put to subr-x.el. * lisp/gnus/gnus-sum.el (gnus--string-truncate-left): New helper function (copied from 'ediff-truncate-string-left'). (gnus-shorten-url): Use it and don't drop #fragments. 2020-04-13 Eli Zaretskii Minor wording change in Introduction to Programming in Emacs Lisp * doc/lispintro/emacs-lisp-intro.texi (Prevent confusion): Mention that dynamic scoping is only the default in Emacs Lisp, not the only scoping rule. (Bug#40594) 2020-04-13 Eli Zaretskii Fix 'flymake-show-diagnostics-buffer' when line numbers are displayed * lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries): Do nothing if 'flymake--diagnostics-buffer-source' is not a buffer. (Bug#40529) 2020-04-12 Eli Zaretskii Fix last changes describing mail commands * doc/emacs/sending.texi (Sending Mail): Fix the description of the behavior of 'C-x m' without prefix argument. (Bug#40561) 2020-04-12 João Távora Do setup Flymake in file-less Elisp buffers (Bug#40573) * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Change condition for setting flymake-diagnostic-functions. 2020-04-12 Philipp Stephani Fix error message for ‘cl-struct-unknown-slot’ (bug#39995) * lisp/emacs-lisp/cl-macs.el (cl-struct-unknown-slot): Remove spurious format specifiers. 2020-04-12 Eli Zaretskii Fix and improve documentation of mail-related features * lisp/simple.el (compose-mail): Clarify the effect of the CONTINUE argument. * lisp/mail/sendmail.el (mail-from-style): Update the RFC value in the obsolescence warning text. * doc/emacs/sending.texi (Sending Mail): Fix the description of the behavior of 'C-x m' wrt prefix argument. (Mail Headers): Remove the description of 'mail-from-style'. * etc/NEWS: Mention that 'mail-from-style' is obsolete. (Bug#40561) 2020-04-12 Martin Rudalics Fix build failure with Fx_gtk_debug * src/xfns.c (Fx_gtk_debug, Sx_gtk_debug): Define only for GTK versions >= 3.14.0 so gtk_window_set_interactive_debugging is defined. Reported by Andreas Schwab . 2020-04-11 Alan Mackenzie Mention jit-lock deferred as an alternative to fast-but-imprecise-scrolling * doc/emacs/display.texi (Scrolling): Add a paragraph on using jit-lock deferred fontification as a way of obviating Emacs hanging after auto-repeated scrolling. 2020-04-10 Stefan Monnier * doc/lispref/keymaps.texi (Extended Menu Items): Tweak :key-sequence Don't make it sound like `:key-sequence nil` is any different than the absence of `:key-sequence`. And the performance advantage of `:key-sequence` disappeared long ago. 2020-04-10 Eli Zaretskii Fix redisplay when scrolling under redisplay-dont-pause * src/dispnew.c (update_window): Reset the window's 'must_be_updated_p' flag if the window's update was completed without interruption. This fixes redisplay glitches when 'redisplay-dont-pause' is nil, at least on MS-Windows, because 'expose_window' doesn't redraw the exposed rectangle when the window's 'must_be_updated_p' flag is set. 2020-04-09 Eli Zaretskii Fix face extension in pulse.el * lisp/cedet/pulse.el (pulse-reset-face): Propagate the :extend attribute of FACE to the face used for displaying the pulse. Reported by Adam Porter . 2020-04-09 Michael Albinus * doc/misc/tramp.texi (Bug Reports): Avoid line breaks in traces. 2020-04-09 Eli Zaretskii Avoid assertion violation in intervals.c * src/intervals.c (delete_interval): Allow negative values of LENGTH (i). This happens when delete_interval is called from set_intervals_multibyte_1, because the caller zeroes out the total_length field of the interval to be deleted. See https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg00131.html for more details. See also a related old discussion at https://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00399.html. 2020-04-08 Eli Zaretskii Improve documentation of 'jit-lock-contextually' * lisp/jit-lock.el (jit-lock-contextually): Clarify the jit-lock operation when 'jit-lock-contextually' is non-nil and non-t. * doc/lispref/modes.texi (Syntactic Font Lock) (Other Font Lock Variables): Document the relation between 'jit-lock-register', 'font-lock-keywords-only', and syntactic refontification. 2020-04-08 Dmitry Gutov Speed up 'resize-mode' child frames a little * src/gtkutil.c (xg_frame_set_char_size): Skip resizing if the target dimensions are unchanged for child frames with 'resize-mode' resize policy as well. 2020-04-06 Martin Rudalics Fix some problems with moving and resizing child frames (1) Provide new option 'x-gtk-resize-child-frames' which allows to either hide a child frame during resizing or asks GTK to resize it "immediately". This is needed because desktops like GNOME shell otherwise won't allow resizing child frames at all. (2) Do not try to synchronize the position of a child frame after moving it. Needed because the present implementation introduces a 0.5 secs delay which makes dragging child frames virtually impossible with Lucid and Motif toolkits on desktops like GNOME shell that use invisible outer frame borders. For further information see the thread starting with https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00343.html * src/frame.c (syms_of_frame): New symbol Qxg_frame_set_char_size_4. * src/gtkutil.c (xg_frame_set_char_size): Hide child frame during resizing when 'x-gtk-resize-child-frames' equals 'hide'. * src/xfns.c (x_set_parent_frame, Fx_create_frame): Set gtk_container_resize_mode to GTK_RESIZE_IMMEDIATE for child frames when'x-gtk-resize-child-frames' equals 'resize-mode'. (Fx_gtk_debug): New function to toggle interactive GTK debugging from within Emacs. (syms_of_xfns): New symbols Qhide and Qresize_mode. (x-gtk-resize-child-frames): New option that allows to resize child frames on desktops like GNOME shell (with the mutter WM) that otherwise refuse to resize them. * src/xterm.c (x_set_offset): Don't x_sync_with_move for child frames, it makes moving child frames virtually impossible with the Lucid and Motif toolkits. 2020-04-05 Philipp Stephani Fix syntax error in man page. * doc/man/emacs.1.in: Fix syntax of --script argument. The Info manual states that --script has to be followed by a space, and the syntax with the equals sign doesn't actually work. 2020-04-05 Noam Postavsky Handle filling of indented ChangeLog function entries * lisp/vc/log-edit.el (log-edit-fill-entry): Relax regexp a bit to recognize function entries with leading blanks. * test/lisp/vc/log-edit-tests.el: New test. 2020-04-05 Noam Postavsky Fix void-variable n-reb in re-builder (Bug#40409) * lisp/emacs-lisp/re-builder.el (reb-while): Take the current value of the counter instead of its name. (reb-mark-non-matching-parenthesis): Bind n-reb to 0 at the start and don't wrongly treat it as dynamicly bound. 2020-04-03 Philipp Stephani Fix small bug in copy_string_contents. * src/emacs-module.c (module_copy_string_contents): Fix incorrect variable use. In this branch 'lisp_str_utf8' is always nil, so it makes little sense to add it as error data. 2020-04-03 Eli Zaretskii Fix invocations of gpg from Gnus * lisp/epg-config.el (epg-config--make-gpg-configuration): Bind coding-system-for-read/write to 'undecided', to countermand possible values of 'no-conversion' or somesuch by the callers. (Bug#40248) 2020-04-03 Martin Rudalics Don't draw GTK's internal border and tab bar on top of each other * src/xterm.c (x_clear_under_internal_border): For GTK builds have 'margin' count in the height of the tab bar to avoid that tab bar and internal border are drawn on top of each other. 2020-04-03 Amin Bandali Tweak htmlfontify's generated output * lisp/htmlfontify.el (hfy-default-header): declare the character encoding for the generated HTML file. This helps browsers display UTF-8 characters like the copyright symbol correctly. (hfy-sprintf-stylesheet): apply the default style to all of the text consistently, so that unstyled bits (which are not wrapped in span tags and are directly part of the surrounding pre tag's "innerHTML") have a look consistent with the rest of the document. 2020-03-30 Dmitry Gutov Handle project--files-in-directory finding no files better * lisp/progmodes/project.el (project--find-regexp-in-files): Signal user-error when passed an empty list of files. * lisp/progmodes/xref.el (xref-matches-in-files): Make sure FILES is not empty. 2020-03-30 Alan Mackenzie Let imenu to work on the menu bar when its list is a single non-nested member. * lisp/imenu.el (imenu-update-menubar): No longer accept a list of length 1 as being sufficient evidence for a nested list structure. Instead, additionally check whether or not certain elements are atoms. 2020-03-30 Juri Linkov * lisp/image/image-converter.el: Fix customization of image-converter. * lisp/image/image-converter.el (image-convert-p): Update image-converter-regexp when image-converter was customized (bug#39994). 2020-03-29 Andreas Schwab Fix url-cookie.el for lexical binding * lisp/url/url-cookie.el (url-cookie-handle-set-cookie): Use setq instead of set to modify lexical binding. 2020-03-29 Noam Postavsky Don't suggest setting face-remapping-alist to a literal (Bug#39812) * src/xfaces.c (syms_of_xfaces) : Use copy-tree in the costring example code, and note why. 2020-03-27 Mattias Engdegård Calc: don't treat nil as an integer (bug#40155) Make Math-num-integerp return false for nil, following Math-integerp which was changed in the bignum reform. This fixes a crash in calc-graph-fast. Reported by Narendra Joshi. * lisp/calc/calc-macs.el (Math-num-integerp): Not true for nil. * test/lisp/calc/calc-tests.el (calc-Math-integerp): New tests. 2020-03-25 Eli Zaretskii * lisp/files.el (directory-files-recursively): Doc fix. (Bug#40202) 2020-03-25 Michael Albinus Document how to disable Tramp file archives * doc/misc/tramp.texi (Archive file names): Explain how to disable file archives. 2020-03-24 Lars Ingebrigtsen Don't add repeated xlmns:xlink declarations in svg-create * lisp/svg.el (svg-create): Fix previous unconditional addition of the xmlns:xlink declaration -- callers may already add one, and having it twice is something most svg libraries doesn't like. 2020-03-23 Mattias Engdegård Calc: Declare dynamic variable bound in lexbind code (bug#40185) * lisp/calc/calc.el: Declare math-comp-selected as dynamic. 2020-03-23 Eli Zaretskii Don't build the Gnulib 'utimens' module on MinGW * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_utimens): Omit the 'utimens' module in the MinGW build: 'utimens' is not used by Emacs, and 'fdutimens' is implemented in w32.c. 2020-03-23 Phillip Lord Add Harfbuzz dependency * admin/nt/dist-build/build-dep-zips.py: Add harfbuzz as a dependency. 2020-03-23 Noam Postavsky Don't signal during backtrace unrewind (Bug#40088) backtrace_eval_unrewind is used to temporarily reverse let-bindings (it's called with a positive argument to reverse bindings, and then a negative argument to re-apply them) by backtrace--locals and backtrace-eval. For the SPECPDL_LET_DEFAULT and SPECPDL_LET_LOCAL cases (which occur for let-bindings on buffer-local variables), the code calls Fdefault_value and Fbuffer_local_value on the symbol. For symbols which are unbound at top-level, the first (with positive argument) call to backtrace_eval_unrewind will set the symbol's value to unbound (putting the current value in the specpdl's "old value" slot). On the second (with negative argument) call, backtrace_eval_unrewind attempts to retrieve the symbol's value with Fdefault_value or Fbuffer_local_value, but that raises a void-variable signal. This interrupts the restoration of the let-bindings, so any other variables more recent on the stack will now have the wrong value. * src/data.c (default_value): Make non-static. * src/lisp.h: Declare it. * src/eval.c (backtrace_eval_unrewind): Replace the calls to Fdefault_value and Fbuffer_local_value with default_value and buffer_local_value, respectively. The latter do exactly the same as the former, except if the symbol's value is Qunbound they just return it instead of signaling void-variable. 2020-03-23 Noam Postavsky Fix a couple of problems in changelog generating functions * lisp/vc/diff-mode.el (diff-add-log-current-defuns): If there is a scan-error when calling end-of-defun, go to end of hunk. This can easily happen since we are calling end-of-defun on a partial code fragment from a diff. * lisp/vc/log-edit.el (log-edit-generate-changelog-from-diff): Bind display-buffer-overriding-action around the log-edit-show-diff call only. Otherwise, it can affect, for example, debugger windows triggered by the diff-add-log-current-defuns call. 2020-03-23 Noam Postavsky Fix cl-concatenate (Bug#40180) * lisp/emacs-lisp/cl-extra.el (cl-concatenate): Use apply, to avoid adding extra nesting of args. * test/lisp/emacs-lisp/cl-extra-tests.el (cl-concatenate): New test. 2020-03-21 Eli Zaretskii Improve documentation of project.el commands * lisp/progmodes/project.el (project-find-regexp): Require 'grep' to be able to call 'grep-read-files'. (project-search, project-query-replace-regexp): Doc fixes. * doc/emacs/maintaining.texi (Projects): New section. * doc/emacs/emacs.texi (Top): Add "Projects" to the detailed menu. 2020-03-20 Zhu Zihao (tiny change) Make svg images with links valid * lisp/svg.el (svg-create): Specify xlink namespace for svg images (bug#40010). 2020-03-20 Juri Linkov * lisp/tab-line.el (tab-line-new-button-show): New defcustom. * lisp/tab-line.el (tab-line-format-template): Use tab-line-new-button-show. (tab-line-new-tab-choice): Remove choice 'nil' with "No button". (tab-line-separator): Add docstring. 2020-03-19 Lars Ingebrigtsen Don't have exif bugging out on short strings * lisp/image/exif.el (exif--direct-ascii-value): New function (bug#40127). (exif--parse-directory): Use it to get the correct values for in-directory (i.e., shorter than 4 octets) strings. 2020-03-19 Robert Pluim Use correct registry name for windows-1251 charset * src/ftfont.c (fc_charset_table): The registry to use to lookup windows-1251 charset is microsoft-cp1251, not windows-1251. (Bug#40097) 2020-03-19 Amin Bandali ERC: Update maintainer address 2020-03-18 Philipp Stephani Remove raw carriage return characters from test file. This protects against tools that mangle newline characters in text files. * test/lisp/electric-tests.el (electric-pair-mode-newline-between-parens) (electric-layout-mode-newline-between-parens-without-e-p-m) (electric-layout-mode-newline-between-parens-without-e-p-m-2): Escape carriage return characters. 2020-03-17 Robert Pluim Recalculate default font when switching font backend This is an updated version of the patch by Dmitry Antipov in . Fixes Bug#23386 * src/dispextern.h (struct redisplay_interface): New member default_font_parameter. * src/xterm.h: Add prototype for x_default_font_parameter. * src/xterm.c (x_redisplay_interface): Initialize default_font_parameter member. * src/xfns.c (x_default_font_parameter): Make non-static. * src/w32term.h: Add prototype for w32_default_font_parameter * src/w32fns.c (w32_default_font_parameter): Make non-static. * src/w32term.c (w32_redisplay_interface): Initialize default_font_parameter member. * src/nsterm.m (ns_redisplay_interface): Add dummy ns_default_font_parameter (there is currently only one possible font backend on macOS). Initialize default_font_parameter member. * src/frame.c (gui_set_font_backend): Recalculate default font using RIF default_font_parameter to avoid crash when changing font backend. 2020-03-17 Juri Linkov * lisp/tab-line.el: Fix tab-line-format and tab-line-format-template. * lisp/tab-line.el (tab-line-format): Use buffer-name in the cache key instead of just buffer object to invalidate the cache on buffer renaming. (tab-line-format-template): Always leave the separator after the last tab like tab-bar.el already does. 2020-03-16 Stefan Monnier * etc/NEWS: Make the `--eval` example slightly more precise 2020-03-15 Juri Linkov * lisp/image/image-converter.el: Support more ImageMagick versions (bug#39994) * lisp/image/image-converter.el (image-converter--probe): Match a possible additional second column in some ImageMagick versions of "convert -list format". 2020-03-14 Eli Zaretskii Support Unicode 13.0 * admin/unidata/BidiBrackets.txt: * admin/unidata/BidiMirroring.txt: * admin/unidata/Blocks.txt: * admin/unidata/NormalizationTest.txt: * admin/unidata/SpecialCasing.txt: * admin/unidata/UnicodeData.txt: * admin/unidata/copyright.html: * test/manual/BidiCharacterTest.txt: Updated files imported from Unicode v13.0. * admin/unidata/blocks.awk: Add "Symbols for Legacy Computing" to known aliases. * lisp/international/fontset.el (script-representative-chars) (setup-default-fontset): Add new scripts. * lisp/international/characters.el: Set syntax for Symbols for Legacy Computing characters. Update setting of char-width-table. * lisp/international/mule-cmds.el (ucs-names): Update ranges of characters for which we want names in 'ucs-names'. * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-tests--failing-lines-part1) (ucs-normalize-tests--failing-lines-part2): Update according to 'ucs-normalize-check-failing-lines'. 2020-03-14 Lars Ingebrigtsen Fix regression in wisent-total-conflicts * lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): There may not be a current source file. In that case, don't try to keep track of the number of expected conflicts (bug#39911). 2020-03-14 Alan Mackenzie * lisp/progmodes/cc-defs.el (c-version): update to 5.34.1 for Emacs 27.1 Don't merge to master. 2020-03-14 Philipp Stephani * lisp/textmodes/fill.el (fill-nobreak-predicate): Fix documentation. 2020-03-14 Stefan Kangas Improve Package Menu hiding docstrings * lisp/emacs-lisp/package.el (package-menu-toggle-hiding): Add reference to 'package-menu-hidden-regexps'. * lisp/emacs-lisp/package.el (package-menu-hide-package): Improve docstring to say that hiding is saved in a user option. Fix a typo. (Bug#39436) 2020-03-14 Eli Zaretskii Fix display of Big5 characters when using Fontconfig * src/ftfont.c (fc_charset_table): Fix the value of the big-5 representative codepoint. Reported by Brian Schack . (Bug#40057) * src/macfont.m (cf_charset_table): Adjust the comment. 2020-03-13 Eli Zaretskii Fix a recent documentation change * doc/emacs/frames.texi (Mouse Commands): More detailed description of how tilting the mouse-wheel works. * lisp/mwheel.el (mouse-wheel-tilt-scroll) (mouse-wheel-flip-direction): Fix the wording of doc strings. (Bug#39979) 2020-03-13 Eli Zaretskii Fix last change * lisp/tab-bar.el (tab-bar-new-button-show): Fix wording of the doc string. 2020-03-13 Juri Linkov * lisp/tab-bar.el: Last-minute changes. * lisp/tab-bar.el (tab-bar-mode): Check for non-nil tab-bar-new-button and tab-bar-close-button. (tab-bar-new-button-show): New defcustom. (tab-bar-make-keymap-1): Check for tab-bar-new-button-show. (tab-bar-separator): Add docstring. 2020-03-12 Stefan Monnier * lisp/subr.el (cancel-change-group): Fix bug#39680 Don't re-use an existing `pending-undo-list` even if (eq last-command 'undo) since there might have been changes to the buffer since that `undo` command and the `pending-undo-list` can hence be invalid for the current buffer contents. 2020-03-12 İ. Göktuğ Kayaalp Improve docs for horizontal scrolling with mouse and touchpad (Bug#39979) * lisp/mwheel.el (mouse-wheel-tilt-scroll, mouse-wheel-flip-direction): Improve docstrings. * doc/emacs/frames.texi (Mouse Commands): Mention touchpads. 2020-03-10 Juri Linkov * lisp/emacs-lisp/package.el (package-install): Fix typo in docstring. 2020-03-09 Paul Eggert Port .gdbinit to clang with -gdwarf-4 * src/.gdbinit (xgetsym): Port to clang with -gdwarf-4, which doesn’t output the type of lispsym anywhere other than emacs.o (Bug#39962). 2020-03-09 Mattias Engdegård Simplify rx example in manual * doc/lispref/searching.texi (Rx Notation): Use the 'not' shorthand introduced in Emacs 27. 2020-03-09 Paul Eggert * src/timefns.c: Add comments. 2020-03-08 Paul Eggert * src/timefns.c: Add comments. 2020-03-08 Andrew Eggenberger (tiny change) Eliminate use of cl-concatenate in 'seq' package Fixes (Bug#39761) by making cl-extra dependent on seq rather than vice versa. * lisp/emacs-lisp/seq.el (seq-concatenate): Move cl-concatenate's code here instead of calling it. * lisp/emacs-lisp/cl-extra.el (cl-concatenate): Use cl-concatenate. 2020-03-07 Paul Eggert Fix bug with JIT stealth timers * lisp/emacs-lisp/timer.el (run-at-time): Don’t assume that Lisp time values must be conses (Bug#39944). 2020-03-07 Paul Eggert * doc/lispref/os.texi (time-subtract): Doc fix. 2020-03-07 Alan Third NS port documentation updates * doc/emacs/macos.texi (Mac / GNUstep Customization): Document some more of the ns- variables and remove incorrect font back-end information. * etc/NEWS: Update the documentation status of macOS news entries. 2020-03-07 João Távora Let fido-mode users force a minibuffer-exit * lisp/icomplete.el (icomplete-fido-exit): Add FORCE arg. Rewrite docstring. (bug#38992) 2020-03-07 Dmitry Gutov icomplete-fido-exit: New command for the M-j binding * lisp/icomplete.el (icomplete-fido-exit): New command. (icomplete-fido-mode-map): Use it (bug#38992). 2020-03-07 Dmitry Gutov minibuffer-force-complete-and-exit: Allow input with no matches * lisp/minibuffer.el (minibuffer--require-match): New variable. (completing-read-default): Bind it to the REQUIRE-MATCH value. (minibuffer-force-complete-and-exit): Consult it to allow input with no matches when a match is not required (bug#38992). * lisp/icomplete.el (icomplete-exhibit): Use it to render the correct parens around matches. 2020-03-07 Eli Zaretskii Document that 'byte-compile-dynamic' is obsolete * doc/lispref/compile.texi (Dynamic Loading): Document that this is deprecated. * etc/NEWS: mark the 'byte-compile-dynamic' entry as documented. 2020-03-07 Eli Zaretskii Document the changes in 'read-answer' * doc/lispref/minibuf.texi (Multiple Queries): Document the fact that 'read-answer' can now accept non-character input events. 2020-03-07 Eli Zaretskii Document changes in lexical-binding * doc/lispref/variables.texi (Using Lexical Binding): Document that lexical-binding is now turned on by default in more cases. * etc/NEWS: Fix wording of the NEWS entry about the above, and mark it as fully documented. 2020-03-06 Amin Bandali Update ERC mailing list address * lisp/erc/erc.el (erc-official-location): As part of bringing ERC under the Emacs umbrella, erc-discuss has been renamed to emacs-erc, and will be *the* mailing list for discussions and announcements about ERC going forward. The other two lists, erc-announce and erc-commit, are now retired. For more details, see the announcement at . 2020-03-06 Roland Winkler Use regexp-opt to define bibtex-autokey-transcriptions. (Bug#39686) 2020-03-06 Eli Zaretskii Improve documentation of 'table-generate-source' * lisp/textmodes/table.el (table-generate-source): Doc fix. (Bug#39935) * etc/NEWS: Fix wording of the 'table-generate-source' entry and mark it as documented. 2020-03-06 Eli Zaretskii Attempt to avoid rare segfaults in show_mouse_face * src/xdisp.c (show_mouse_face): Don't display the active region if called on a frame different from the one recorded in HLINFO. (Bug#37671) 2020-03-05 Eli Zaretskii Avoid crashes when a fontset has strange entries * src/fontset.c (reorder_font_vector): Skip nil entries in the loop that assigns scores to rfont_def's. (fontset_compare_rfontdef): Cope with nil. This has the effect of moving any nil entries to the end of the font-group, and avoids crashing if an element other than the last in the font-group is nil. (Bug#39892) 2020-03-05 Mattias Engdegård Fix rx error with ? and ?? The ? and ?? rx operators are special in that they can be written as characters (space and '?' respectively). This confused the definition look-up mechanism in rare cases. * lisp/emacs-lisp/rx.el (rx--expand-def): Don't look up non-symbols. * test/lisp/emacs-lisp/rx-tests.el (rx-charset-or): Test. 2020-03-05 Mattias Engdegård * lisp/emacs-lisp/rx.el (rx--string-to-intervals): Fix error string. 2020-03-05 Justin Burkett (tiny change) Fix args in 'window-text-pixel-size' call in 'fit-window-to-buffer' * lisp/window.el (fit-window-to-buffer): Fix arguments in 'window-text-pixel-size' call. 2020-03-04 João Távora Have pulse.el preserve existing overlay priorities (Bug#39821) * lisp/cedet/pulse.el (pulse-momentary-highlight-overlay): Save overlay priority. (pulse-momentary-unhighlight): Restore. 2020-03-04 Alan Mackenzie CC Mode: Fix the handling of two adjacent after-change-functionses. The bug involved failing to set c-new-END correctly, which lead to an args-out-of-range error when after-change-functions was invoked twice without an intervening invocation of before-change-functions. * lisp/progmodes/cc-mode.el (c-after-change): Correct a coding error in the handling of c-just-done-before-change. 2020-03-04 Alan Mackenzie Fix combine-change-calls-1 for when buffer-undo-list is t * lisp/subr.el (combine-change-calls-1): Bind before/after-change-functions to nil also when buffer-undo-list is t. 2020-03-04 Mattias Engdegård Don't misinterpret doc string as initial value * lisp/loadhist.el (loadhist--restore-autoload): * lisp/progmodes/vhdl-mode.el (vhdl-font-lock-keywords-0): Prevent the doc string from being used as initial value. 2020-03-04 Stefan Kangas Bump checkdoc-version to match library header * lisp/emacs-lisp/checkdoc.el (checkdoc-version): Bump version. 2020-03-04 Noam Postavsky Explain how to unset mode bindings (Bug#39802) * doc/emacs/custom.texi (Init Rebinding): Explain that passing nil to define-key will unbind keys, and extend the example accordingly. 2020-03-04 Noam Postavsky Fix describe-variable on values with circular syntax (Bug#39805) * lisp/help-fns.el (describe-variable): Set syntax tables before calling pp-buffer. 2020-03-04 Juri Linkov Improve documentation of next-error-highlight-no-select (bug#38778) * doc/emacs/building.texi (Compilation Mode): Mention next-error-highlight-no-select. * lisp/simple.el (next-error-highlight): Add reference to next-error-highlight-no-select. (next-error-highlight-no-select): Add reference to next-error-highlight. 2020-03-03 Andreas Schwab Fix implicit declaration of getenv and atol * src/gtkutil.c: Include . 2020-03-03 Eli Zaretskii Fix handling MS-Windows keyboard input above the BMP * src/w32term.c (w32_read_socket): If we get a WM_UNICHAR message with a surrogate codepoint, assemble the corresponding character code above the BMP from its UTF-16 encoding, communicated in two consecutive WM_UNICHAR messages. 2020-03-03 Mattias Engdegård * etc/NEWS: More complete description of rx 'not' changes. 2020-03-02 Juri Linkov * doc/emacs/mini.texi (Yes or No Prompts): 'y-or-n-p' now uses the minibuffer. 2020-03-02 Robert Pluim Don't attempt to cache glyph metrics for FONT_INVALID_CODE This was causing massive slowdown in redisplay when eg #xfe0f (VARIATION SELECTOR-16) was present, as the cache ended up very large, unused, and being recreated on every call to font_fill_lglyph_metrics (Bug#39133). * src/composite.c (fill_gstring_body): Hoist FONT_OBJECT_P check out of loop. Calculate glyph code and check for FONT_INVALID_CODE before calling font_fill_lglyph_metrics. Pass glyph code to it. * src/font.c (font_fill_lglyph_metrics): Add code parameter, move glyph code calculation up the call stack into fill_gstring_body. * src/font.h: Adjust font_fill_lglyph_metrics prototype. 2020-03-01 Sergey Trofimov (tiny change) Fix fit-frame-to-buffer for multi-monitor setup * lisp/window.el (fit-frame-to-buffer): Call 'frame-monitor-attributes' instead of 'display-monitor-attributes-list'. Fix geometry calculations for multiple monitors. 2020-03-01 Mattias Engdegård rx: Improve 'or' compositionality (bug#37659) Perform 'regexp-opt' on nested 'or' forms, and after expansion of user-defined and 'eval' forms. Characters are now turned into strings for wider 'regexp-opt' scope. This preserves the longest-match semantics for string in 'or' forms over composition. * doc/lispref/searching.texi (Rx Constructs): Document. * lisp/emacs-lisp/rx.el (rx--normalise-or-arg) (rx--all-string-or-args): New. (rx--translate-or): Normalize arguments first, and check for strings in subforms. (rx--expand-eval): Extracted from rx--translate-eval. (rx--translate-eval): Call rx--expand-eval. * test/lisp/emacs-lisp/rx-tests.el (rx-or, rx-def-in-or): Add tests. * etc/NEWS: Announce. 2020-02-29 Juri Linkov * lisp/tab-line.el: Fix auto-hscrolling (bug#39649) Distinguish offsets between manual-vs-automatic scrolling as integers-vs-floats instead of positive-vs-negative integers. * lisp/tab-line.el (tab-line-format-template): Use 'numberp' instead of 'integerp', and 'truncate' instead of 'abs'. (tab-line-format): When the window-buffer was updated, set window-parameter to float to enable auto-hscroll after it was disabled on manual scrolling. (tab-line-auto-hscroll-buffer): New variable with internal buffer. (tab-line-auto-hscroll): Erase in tab-line-auto-hscroll-buffer. Use 'numberp' instead of 'integerp', 'truncate' instead of 'abs', and 'float' instead of '-'. (tab-line-hscroll): Use 'numberp' instead of 'integerp', and 'truncate' instead of 'abs'. 2020-02-29 Mattias Engdegård Fix rx charset generation * lisp/emacs-lisp/rx.el (rx--charset-p): Don't overquote. (rx--generate-alt): Generate '.' for negated newline. * test/lisp/emacs-lisp/rx-tests.el (rx-any, rx-charset-or): Test. 2020-02-28 Mattias Engdegård Fix overquoting in mule.el * lisp/international/mule.el (sgml-xml-auto-coding-function): Remove accidental quote. 2020-02-28 Paul Eggert * src/timefns.c (time_arith): Omit incorrect comment. 2020-02-28 Mattias Engdegård * lisp/vc/vc-cvs.el (vc-cvs-ignore): Copy-edit doc string 2020-02-28 Štěpán Němec checkdoc: Don't mistake "cf." for sentence end * lisp/emacs-lisp/checkdoc.el (checkdoc-sentencespace-region-engine): Recognize "cf." as an abbreviation, not a sentence end. 2020-02-27 Nicolas Petton Bump Emacs version to 27.0.90 * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version. 2020-02-27 Nicolas Petton * etc/AUTHORS: Update. 2020-02-27 Nicolas Petton * admin/authors.el (authors-ignored-files): Fix entries. 2020-02-26 Eric Abrahamsen Fix documented slot name of eieio-instance-tracker class * doc/misc/eieio.texi (eieio-instance-tracker): The code has the slot name as `tracking-symbol', not `tracker-symbol'. 2020-02-26 Robert Pluim Range-check width passed to define-fringe-bitmap This prevents a crash when attempting to create a zero-width bitmap. * src/fringe.c (Fdefine_fringe_bitmap): Check value of width, signal an error if outside documented range (Bug#39662). 2020-02-26 Nicolas Petton * admin/authors.el: Add missing entries 2020-02-26 Noam Postavsky Define libgnutls-version properly * src/gnutls.c (syms_of_gnutls) : Define with DEFVAR_LISP and add docstring, so that this variable will accessible by help facilities. 2020-02-25 Dmitry Gutov vc-dir-ignore: More accurately choose base directory * lisp/vc/vc-dir.el: (vc-dir-ignore): Use it (bug#37189). * lisp/vc/vc.el: (vc--ignore-base-dir): Extract from vc-ignore. 2020-02-24 Stefan Monnier * lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Change last fix Make sure we always work in the selected-window's buffer. 2020-02-23 Alan Mackenzie CC Mode: Protect against consecutive calls to before-change-functions ... without an intervening call to after-change-functions. This would have been a workaround to bug #38691 had the causes of that bug not been removed. * lisp/progmodes/cc-mode.el (c-just-done-before-change): Add an extra value to this variable, 'whole-buffer, this being set by c-before-change as a signal to c-after-change that although c-before-change has run, it has assumed the entire buffer as the change region. (c-before-change, c-after-change): Adapt to the new meaning of the above. 2020-02-23 Noam Postavsky Shorten some ppss struct field names * lisp/emacs-lisp/syntax.el (ppss): Capitalize docstrings. (ppss-comment-depth): Renamed from ppss-comment-nesting. (ppss-quoted-p): Renamed from ppss-after-quote-p. (ppss-min-depth): Renamed from ppss-minimum-paren-depth. (ppss-open-parens): Renamed from ppss-open-paren-positions. * etc/NEWS: Announce the ppss-* accessors. 2020-02-23 Alan Mackenzie Java Mode: Fix fontification of variable decl inside `for' * lisp/progmodes/cc-engine.el (c-forward-declarator): In place of a test for C++ Mode, test for either C++ Mode or Java Mode. 2020-02-23 Alan Mackenzie CC Mode: Fontify foo in "const auto foo :" correctly * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): While attempting to find a declaration's identifier, recast the latest found id. as that identifier when there is no other type identifier and the result of the most recent c-forward-type call is 'maybe or 'found. In the latter case, remove the id. from the found types list, too. 2020-02-23 Juri Linkov * lisp/replace.el (occur-engine-line): Revert part of fb16313025 (bug#39597) 2020-02-23 Dmitry Gutov Move more logic to vc-ignore from vc-default-ignore * lisp/vc/vc-dir.el (vc-dir-ignore): Pass relative file names to vc-ignore. * lisp/vc/vc.el (vc-ignore): Move the responsibility of constructing the ignore pattern (right now, most often a relative file name) using a file name received from the user, here. (vc-default-ignore): ...from here (bug#37189, see discussion). Also clarify the docstring. 2020-02-22 Eli Zaretskii Warn about the likes of "[:alnum:]" in regexps * doc/lispref/searching.texi (Char Classes): Warn about erroneous usage of named character classes. Suggested by Stephen Leake . 2020-02-22 Wolfgang Scherer Don't write absolute filenames and duplicate strings to CVS ignore files * lisp/vc/vc-cvs.el (vc-cvs-ignore): Expand filename correctly and pass on only the basename as the pattern. (vc-cvs-append-to-ignore) Do not write duplicate strings to .cvsignore. New optional parameter SORT to more explicitly control sorting of the ignore entries. (Bug#37215) * lisp/vc/pcvs.el (cvs-mode-ignore): Call 'vc-cvs-append-to-ignore' with SORT argument. 2020-02-21 Federico Tedin Fix cursor-sensor--detect when current buf != selected window's buf * lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Avoid trying to read text properties from position taken from another buffer. (Bug#38740) 2020-02-21 Eli Zaretskii * doc/emacs/sending.texi (Mail Sending): Fix index entries. 2020-02-21 Allen Li Document 'message-send-mail-function' in the Emacs manual Most of the manual here addresses Message mode, yet talks about 'send-mail-function' which is used for Mail mode. Fixing this completely requires more involved work, but for now at least document the difference here. * doc/emacs/sending.texi (Mail Sending): Mention 'message-send-mail-function'. (Bug#39639) 2020-02-21 Allen Li Fix reference to 'message-send-and-exit' in Emacs manual Most of the manual here addresses Message mode, and C-c C-c directly above cites the Message mode command, not the Mail mode command. * doc/emacs/sending.texi (Mail Sending): Fix reference. (Bug#39639) 2020-02-21 Steven Allen Skip shell prompt on current line in Eshell even if it's protected When the eshell prompt is protected (e.g., with rear non-sticky, inhibited movements, etc.), 'beginning-of-line' won't move to the actual beginning of the line and therefore won't skip over the prompt. * lisp/eshell/em-prompt.el (eshell-previous-prompt): Use 'forward-line' to go to the beginning of the line, even if it's protected. (Bug#39627) 2020-02-20 Mattias Engdegård Fix broken regexps Incorrect escaping prevented these from working as intended. Found by relint. * lisp/progmodes/cc-defs.el (c-search-backward-char-property): Add missing backslash. * lisp/progmodes/simula.el (simula-mode): Remove one backslash too many. 2020-02-19 Paul Eggert * Makefile.in (PREFERRED_BRANCH): Now emacs-27. 2020-02-19 Paul Eggert Fix bug when visiting euc-jp-encoded directories Problem reported by Kan Sasaki (Bug#39672). * src/fileio.c (Ffile_directory_p): Encode filename before giving it to file_directory_p. This fixes a typo introduced in 2019-09-18T02:18:14Z!eggert@cs.ucla.edu. 2020-02-17 Paul Eggert Clarify when fixnums are used. * doc/lispref/numbers.texi (Integer Basics): Clarify. Based on a suggestion by Noam Postavsky (Bug#39557#32). 2020-02-17 Paul Eggert Reorder discussion of integer basics * doc/lispref/numbers.texi (Integer Basics): Put the fixnum/bignum discussion at the end of the section, not at the start (Bug#39557). 2020-02-17 Mattias Engdegård Make OMake support slightly less expensive (bug#39595) When run with -p or -P, OMake regurgitates error messages that prevented further progress, indented by 6 spaces. Use that fact to ameliorate the modification done to other error message regexps. * lisp/progmodes/compile.el (compilation-parse-errors): When 'omake' is enabled, allow error messages to be indented by 0 or 6 spaces instead of any number of spaces, to avoid pathological behaviour. (compilation-error-regexp-alist-alist): Anchor the 'omake' pattern to bol for performance. Repair the 'ruby-Test::Unit' pattern, which relied on the previously over-generous 'omake' hack. * etc/compilation.txt (OMake): Add examples. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data) (compile-test-error-regexps): Add test for OMake (indented error). 2020-02-17 Mattias Engdegård Speed up 'msft' and 'watcom' compilation error regexps They have similar structure, and both suffer from being able to match leading spaces in multiple ways which leads to bad performance when backtracking (bug#39595). * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Improved 'msft' and 'watcom' regexps. 2020-02-17 Mattias Engdegård Speed up 'maven' compilation error message regexp Anchor the regexp at line-start to prevent quadratic behaviour when it doesn't match (bug#39595). It's unclear whether the type tag, like [ERROR], is always present; we keep it optional just in case. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Rewrite 'maven' regexp, using rx for clarity. * etc/compilation.txt (maven): More examples. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): No leading spaces; they seems to stem from a misunderstanding in bug#11517. 2020-02-16 Alan Mackenzie Amend c-backward-sws better to handle multiline block comments In particular, multiline comments lacking escaped newlines. * lisp/progmodes/cc-engine.el (c-backward-sws): Whilst searching backward for a putative beginning of macro, move back over block comments whose innards lack escaped newlines. 2020-02-16 Alan Mackenzie Reformulate c-end-of-macro, handling multiline block comments better * lisp/progmodes/cc-langs.el (c-last-open-c-comment-start-on-line-re): Comment out. (c-open-c-comment-on-logical-line-re): Remove. * lisp/progmodes/cc-engine.el (c-end-of-macro): Handle multiline block comments lacking escaped newlines using parse-partial-sexp rather than the former variables removed from cc-langs.el. 2020-02-15 YAMAMOTO Mitsuharu Fix unexec failure on macOS 10.15.4 * src/unexmacosx.c (unexec_regions_merge): Align region start addresses to page boundaries and then merge regions. 2020-02-15 Eli Zaretskii Fix 'reverse-region' when less than one line is in region * lisp/sort.el (reverse-region): Signal a user-error if the region includes less than one full line, thus avoiding an inadvertent deletion of text following the current line. Fix the doc string. Fix comments to start with a capital letter. (Bug#39376) 2020-02-15 Pieter van Oostrum Correct default regexp in 'package-menu-hide-package' * lisp/emacs-lisp/package.el (package-menu-mode-menu): Correct default regexp, so it only selects the package at point. (Bug#39436) 2020-02-15 Pieter van Oostrum Remove obsolete menu entry "Redisplay buffer" * lisp/emacs-lisp/package.el (package-menu-mode-menu): Remove obsolete menu entry "Redisplay buffer". (package-menu-mode-menu): Menu entry "Refresh Package List": make the doc string more accurate. (Bug#39436) 2020-02-14 Mattias Engdegård Remove redundant 'msft' compilation error rule (bug#39595) When the 'msft' rule was moved and modified, the old copy was left in place by mistake. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Remove old rule. 2020-02-13 Stefan Monnier * doc/lispref/variables.texi (special-variable-p): Clarify limits 2020-02-13 Mattias Engdegård Remove the optional KEEP-ORDER argument to regexp-opt This argument was added for the 'or' clause in rx, but it turned out to be a bad idea (bug#37659), and there seems to be little other use for it. * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Remove KEEP-ORDER. * doc/lispref/searching.texi (Regexp Functions): * etc/NEWS: Remove it from the documentation. * test/lisp/emacs-lisp/regexp-opt-tests.el (regexp-opt-test--match-all) (regexp-opt-test--check-perm, regexp-opt-test--explain-perm) (regexp-opt-keep-order, regexp-opt-longest-match): Simplify test. 2020-02-13 Alan Mackenzie Make after-change-functions called from call-process get the correct BEG This fixes bug #39585. * src/callproc.c (call_process): Supply the correct CHARPOS to signal_after_change (twice). 2020-02-13 Bastien doc/misc/org.texi: Fix @dircategory * doc/misc/org.texi: Fix @dircategory. 2020-02-12 Eli Zaretskii Fix display of minibuffer prompt in ido.el * lisp/minibuffer.el (minibuffer--message-overlay-pos): New function. (set-minibuffer-message): Use it to determine where to show the overlay with the temporary message. * lisp/ido.el (ido-exhibit): Revert "Render Ido suggestions using an overlay"; this restores the original code which inserted the match-status information into the minibuffer, instead of displaying it in an overlay with an after-string. Put the special 'minibuffer-message' text property at the beginning of the inserted text. (Bug#39379) * etc/NEWS: * doc/lispref/display.texi (Displaying Messages): * doc/lispref/text.texi (Special Properties): Document the 'minibuffer-message' text property and its effect. 2020-02-12 Mattias Engdegård rx: Use longest match for all-string 'or' forms (bug#37659) Revert to the Emacs 26 semantics that always gave the longest match for rx 'or' forms with only string arguments. This guarantee was never well documented, but it is useful and people likely have come to rely on it. For example, prior to this change, (rx (or ">" ">=")) matched ">" even if the text contained ">=". * lisp/emacs-lisp/rx.el (rx--translate-or): Don't tell regexp-opt to preserve the matching order. * doc/lispref/searching.texi (Rx Constructs): Document the longest-match guarantee for all-string 'or' forms. * test/lisp/emacs-lisp/rx-tests.el (rx-or): Update test. 2020-02-11 Wolfgang Scherer Make sure not to mark directories * lisp/vc/vc-dir.el (vc-dir-mark-all-files): Make sure not to mark directories (bug#37182). 2020-02-11 Dmitry Gutov vc-hg-dir-status-files: Fix when DIR is not repository root * lisp/vc/vc-hg.el (vc-hg-dir-status-files): Make sure it works correctly in a subdirectory of the repo root. Bind default-directory to DIR and add 're: -I .' to the arguments (bug#39380). 2020-02-11 Alan Third Revert "Fix display of working text on NS (Bug#23412, Bug#1453)" This reverts commit ba042176d8931cdf9441b3b4919ec74b75019494. Do not merge to master (bug#38851) 2020-02-10 Alan Mackenzie c-end-of-macro: Handle block coment lines with unescaped NLs correctly * lisp/progmodes/cc-langs.el (c-last-open-c-comment-start-on-line-re): Make obsolete, and supersede by ... (c-open-c-comment-on-logical-line-re): New language variable. * lisp/progmodes/cc-engine.el (c-end-of-macro): Inside macros, handle multiline block comments whose line ends are not escaped correctly. 2020-02-09 Eli Zaretskii Fix set-fontset-font with ADD arg non-nil * src/fontset.c (fontset_add): Fix off-by-one error at TO. (Bug#39482) 2020-02-09 Alan Mackenzie Correct "different than" to "different from" where appropriate (doc/emacs/screen.texi) (doc/lispintro/emacs-lisp-intro.texi) (doc/misc/calc.texi) (doc/misc/gnus.texi) (doc/misc/sc.texi) (lisp/align.el) (lisp/allout-widgets.el) (lisp/allout.el) (lisp/emacs-lisp/gv.el) (lisp/font-lock.el) (lisp/gnus/mm-util.el) (lisp/mail/feedmail.el) (lisp/mail/sendmail.el) (lisp/mail/supercite.el) (lisp/org/org-attach.el) (lisp/progmodes/cc-langs.el) (lisp/progmodes/idlw-shell.el) (lisp/ps-print.el) (lisp/simple.el) (src/cmds.c) (src/editfns.c) (src/frame.h) (src/regex-emacs.c) (src/xfaces.c): Replace "different than" by "different from". 2020-02-08 Eli Zaretskii More accurate documentation of 'package-menu-hide-package' * doc/emacs/package.texi (Package Menu): Improve the description of the 'H' command. * lisp/emacs-lisp/package.el (package-menu-mode-menu): More accurate wording of the help-echo string. (package-menu-hide-package): Make the doc string more accurate. (Bug#39436) 2020-02-06 Stefan Kangas Revert "Signal user-error on duplicate package refresh" That commit caused errors when the connection was dropped in the middle of a package refresh. To avoid any further issues this close to the pretest, we simply remove this feature. (Bug#39187) Don't merge to master, where we will instead try to fix the bug. 2020-02-05 Juri Linkov Wrap some set-auto-mode calls with delay-mode-hooks (bug#39190) * lisp/gnus/mm-view.el (mm-display-inline-fontify): * lisp/vc/diff-mode.el (diff-syntax-fontify-props): * lisp/vc/vc.el (vc-find-revision-no-save): Add delay-mode-hooks around set-auto-mode calls to not run hooks that might assume buffer-file-name really associates buffer with a file. 2020-02-04 Dmitry Gutov Support ido-vertical-mode better * lisp/ido.el (ido-exhibit): Prepend a space to INF if it starts with a newline (bug#39379). 2020-02-04 Juri Linkov Fix faces tab-bar and tab-line. * lisp/tab-bar.el (tab-bar) : * lisp/tab-line.el (tab-line) : Check for min-colors 88 instead of type x. 2020-02-03 Robert Pluim Cater for 3-argument version of pthread_setname_np Fixes Bug#39363. * configure.ac: Add check for 3-argument version of pthread_setname_np. * src/systhread.c (sys_thread_set_name) [HAVE_PTHREAD_SETNAME_NP_3ARG]: Call pthread_setname_np with 3 arguments. 2020-02-02 Mattias Engdegård Clarify lexvar restrictions for add-to-ordered-list, add-to-history * lisp/subr.el (add-to-ordered-list, add-to-history): * doc/lispref/lists.texi (List Variables): * doc/lispref/minibuf.texi (Minibuffer History): Note in the doc string and manual that the variable arguments to add-to-ordered-list and add-to-history cannot refer to a lexical variable (bug#39373). 2020-02-01 Mattias Engdegård Replace add-to-list to lexical variable with push (bug#39373) Since 'add-to-list', being a plain function, cannot access lexical variables, such use must be rewritten for correctness. (Some instances actually do work thanks to a compiler macro, but it's not something code should rely on.) * lisp/autoinsert.el (auto-insert-alist): * lisp/cedet/mode-local.el (mode-local-print-bindings): * lisp/net/tramp-cache.el (tramp-flush-connection-properties) (tramp-list-connections): * lisp/net/zeroconf.el (zeroconf-list-service-names) (zeroconf-list-service-types, zeroconf-list-services): * lisp/org/org.el (org-reload): * lisp/whitespace.el (whitespace-report-region): * test/lisp/emacs-lisp/map-tests.el (test-map-do): Replace add-to-list with push. 2020-02-01 Mattias Engdegård Clarify add-to-list documentation (bug#39373) While add-to-list often works with lexical variables, this is a hack that isn't always effective; better tell the user not to try. * doc/lispref/lists.texi (List Variables): Add a note about lexical variables to the add-to-list description. Fix the equivalent code. * lisp/subr.el (add-to-list): Amend doc string. 2020-02-01 Stephen Gildea MH-E: alter content in mh-display-msg, not mh-show-mode * lisp/mh-e/mh-show.el (mh-display-msg, mh-show-mode): buffer-altering code formerly in mh-show-mode is moved to the location in mh-display-msg where mh-show-mode used to be called before the fix to MH-E bug #470 moved the call earlier. 2020-02-01 Stephen Gildea Update documentation for mh-show-mode-hook * lisp/mh-e/mh-e.el, doc/misc/mh-e.texi (mh-show-mode-hook): Now that the fix for MH-E bug #470 calls mh-show-mode-hook earlier, update the documentation to no longer say that the message contents are available. 2020-02-01 Stephen Gildea Example goto-addr hook: MH-E already uses goto-address * lisp/net/goto-addr.el, doc/emacs/misc.texi: Do not use MH-E as the example of how to add a hook to goto-address, because MH-E calls goto-address internally. 2020-01-31 Ken Brown Extend workaround for Cygwin O_PATH bug * configure.ac (HAVE_CYGWIN_O_PATH_BUG): Extend to Cygwin versions 3.1.0 through 3.1.2. (Bug#39371) 2020-01-31 Paul Pogonyshev * lisp/emacs-lisp/debug.el (debug): Merge the non-interactive cases bug#38927 (cherry picked from commit 502059433ce0e9699eb73d21656ce6e9e127d63b) 2020-01-31 Ansgar Burchardt Add more blackboard bold characters to TeX input method This patch adds all capital blackboard bold letters and those for "1" and "2". Most characters are in common use in mathematics, but it does not seem useful to exclude the few not widely used. Reference: https://en.wikipedia.org/wiki/Blackboard_bold * lisp/leim/quail/latin-ltx.el (latin-ltx--define-rules): Add all the blackboard bold commands from AMSTeX. (Bug#21103) 2020-01-31 Yuan Fu Protect against errors in gdb-mi.el handlers * lisp/progmodes/gdb-mi.el (gdb-handle-reply): Handle errors in 'handler-function' so the cleanup code after it runs safely. (Bug#39178) 2020-01-31 Eli Zaretskii Allow exiting the Python interpreter of a GDB session * lisp/progmodes/gdb-mi.el (gdb-delchar-or-quit): Send EOF to GDB if we are in an embedded interpreter. This allows to exit from "pi" cleanly. (Bug#39140) 2020-01-31 Federico Tedin Ensure minibuffer input is added to history in read_minibuf * src/minibuf.c (read_minibuf): Parse input string after saving the string to the history list instead of before, in case parsing signals an error or is interrupted by C-g. (Bug#39291) 2020-01-29 Juri Linkov Tab-bar related fixes. * lisp/cus-start.el (tab-bar-mode): Use dedicated group 'tab-bar'. * lisp/tab-bar.el (tab-bar-history-mode): Add :group 'tab-bar'. (tab-bar-get-buffer-tab): Add optional arg 'ignore-current-tab'. * lisp/desktop.el (desktop-buffers-not-to-save-function): Add docstring. 2020-01-29 Nicolas Petton * admin/authors.el: Add missing entries. 2020-01-27 Stephen Gildea dns-mode-soa-auto-increment-serial: safe if symbolp * lisp/textmodes/dns-mode.el (dns-mode-soa-auto-increment-serial): Mark variable as safe as a file local variable when symbolp. 2020-01-27 Juri Linkov * lisp/wdired.el: Clean out isearch-filter-predicate (bug#37496) * lisp/wdired.el (wdired-change-to-dired-mode): Use remove-function to remove wdired-isearch-filter-read-only (whose value was added in wdired-change-to-wdired-mode) from local value of isearch-filter-predicate. 2020-01-27 Alan Mackenzie Finish the documentation for c-noise-macro-{,with-parens-}names. The doc strings and pertinent CC Mode manual page failed to mention that these variables could also be regular expressions. Amend them. * lisp/progmodes/cc-vars.el (c-noise-macro-names) (c-noise-macro-with-parens-names): Amend the doc strings. * doc/misc/cc-mode.texi (Noise Macros): Amend the descriptions of the two variables. 2020-01-26 Mattias Engdegård Correct regexp for flags in `format' doc string * src/editfns.c (Fformat): Use the correct regexp for describing the flags in a %-sequence (place the hyphen last). 2020-01-26 Mattias Engdegård Moderate recommendation to escape '(' in doc strings Thanks to 57e2ca5c50 and related changes, opening brackets at the leftmost column inside doc strings are no longer mistaken for the start of a defun. * doc/lispref/tips.texi (Documentation Tips): Clarify recommendation and move it down the list. * etc/NEWS: Announce. 2020-01-26 Alan Mackenzie Objective C Mode: Make c-forward-type work with "unsigned long", etc. This allows the correct fontification of and correct functioning of C-c C-z (c-display-defun-name) in ns_get_pixel in Emacs's src/nsimage.m. * lisp/progmodes/cc-langs.el (c-primitive-type-prefix-kwds): For objc, use the same value as for c and c++ rather than the default nil. 2020-01-26 Marco Wahl Fix help text about configure module support 2020-01-25 Stefan Kangas * doc/lispref/streams.texi (Output Functions): Improve indexing. 2020-01-25 Stefan Kangas Improve doc string of 'newline' * lisp/simple.el (newline): Doc fix. Move 'use-hard-newlines' down, since it's less important than the meaning of the prefix argument, and is less frequently used than 'electric-indent-mode' and 'auto-fill-mode'. Change the wording to no longer call it an option. 2020-01-24 Paul Eggert Improve doc of eq on bignums etc. * doc/lispref/numbers.texi (Integer Basics): * doc/lispref/objects.texi (Integer Type, Equality Predicates): Be clearer about eq vs eql vs = on bignums, floats, and strings. 2020-01-24 Mario Lang Do not refer to obsolete alias 2020-01-24 Alan Third Remove EmacsOpenPanel and EmacsSavePanel (bug#38031) 2020-01-24 Eli Zaretskii * doc/emacs/files.texi (Auto Save Files): Improve indexing (bug#39259). 2020-01-24 Eli Zaretskii Fix inaccurate wording in the Emacs manual * doc/emacs/custom.texi (Modifier Keys): * doc/emacs/basic.texi (Inserting Text): Fix minor inaccuracies in describing the 'Alt' modifier. (Bug#39254) 2020-01-23 Amin Bandali Update ERC module URLs * lisp/erc/erc-autoaway.el, lisp/erc/erc-button.el, lisp/erc/erc-compat.el, lisp/erc/erc-fill.el, lisp/erc/erc-imenu.el, lisp/erc/erc-join.el, lisp/erc/erc-lang.el, lisp/erc/erc-match.el, lisp/erc/erc-pcomplete.el, lisp/erc/erc-ring.el, lisp/erc/erc-spelling.el, lisp/erc/erc-stamp.el, lisp/erc/erc-track.el: Update URL to friendlier form, over https. * lisp/erc/erc-ibuffer.el: Remove URL to nonexistent page. * lisp/erc/erc-list.el, lisp/erc/erc-log.el, lisp/erc/erc-notify.el, lisp/erc/erc-replace.el, lisp/erc/erc-services.el, lisp/erc/erc-sound.el, lisp/erc/erc-speedbar.el, lisp/erc/erc-truncate.el: Add URL to corresponding EmacsWiki page. 2020-01-23 Lars Ingebrigtsen Minor doc string clarification in use-hard-newlines * lisp/textmodes/paragraphs.el (use-hard-newlines): Clarify that this minor mode isn't global (bug#20461). 2020-01-23 Tino Calancha Backport: Fix bug 39218 * lisp/simple.el (shell-command): Ensure a shell command ending with `&' is run asynchronously. 2020-01-22 Stefan Kangas Prefer saying "Info manual" to "info page" in docs Pointed out by Eli Zaretskii in: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39215#14 * doc/emacs/Makefile.in: * doc/lispintro/Makefile.in: * doc/lispref/Makefile.in: * doc/misc/Makefile.in: * lisp/dired-x.el (top-level): * lisp/gnus/gnus-sum.el (gnus-summary-mode): * lisp/progmodes/cperl-mode.el (cperl-info-page): Doc fix; prefer saying "Info manual" over "info page". 2020-01-22 Juri Linkov Tab-bar related finishing touches. * lisp/tab-bar.el (tab-bar-tab-name-ellipsis): Use shorter name instead of tab-bar-tab-name-truncated-ellipsis. (tab-bar-new-tab-to) : Add 'function' option. (tab-bar-new-tab-to) : Use it. * lisp/tab-line.el (tab-line-close-tab): Add missing arg 'tab' to tab-line-close-tab-function funcall. 2020-01-22 Alan Mackenzie Make call_process call signal_after_change. This fixes bug #38691. Now, functions such as call-proess-region invoke after-change-functions correctly. * src/callproc.c (call_process): Call prepare_to_modify_buffer in a single place, no longer delegating the task to insert_1_both, etc. Call signal_after_change in each of two code branches, such that before-change-functions and after-change-functions are always called in balanced pairs. 2020-01-22 Paul Eggert * lisp/simple.el: Minor fixes to commentary. 2020-01-22 Eli Zaretskii Fix a few typos * etc/NEWS: Fix a typo. * src/xdisp.c (try_window_reusing_current_matrix, try_window_id): * src/dispnew.c (scrolling_window): Fix typos in comments. 2020-01-22 Christophe Deleuze Fix doc strings for image-dired rotation commands * lisp/image-dired.el (image-dired-rotate-thumbnail-left) (image-dired-rotate-thumbnail-right) (image-dired-rotate-original-left) (image-dired-rotate-original-right): Move the text in the doc strings about rotating the originals to the correct commands (bug#38928). 2020-01-22 Dmitry Gutov Render Ido suggestions using an overlay * lisp/ido.el (ido--overlay): New variable. (ido-exhibit): Render with 'after-string' on an overlay (bug#38457). 2020-01-22 Michael Albinus * doc/misc/tramp.texi (Bug Reports): Encourage use of "emacs -Q". 2020-01-21 Stefan Monnier * lisp/vc/smerge-mode.el (smerge-match-conflict): Fix bug#38456 This situation is not an internal error, but a perfectly normal occurrence, so a `cl-assert` is not right 2020-01-21 Robert Pluim Correct statement about ftcr and recommend HarfBuzz * doc/lispref/frames.texi (Font and Color Parameters): Correct statement about availability of ftcr in the presence of HarfBuzz. Recommend HarfBuzz. 2020-01-21 Eli Zaretskii Avoid leaving artifacts when the system caret is used on w32 * src/xdisp.c (try_window_reusing_current_matrix, try_window_id): * src/dispnew.c (scrolling_window) [HAVE_NTGUI]: If w32-use-visible-system-caret is non-nil, disallow scrolling the display are in scroll_run_hook. This avoids copying traces of the caret, about which Emacs knows nothing, and thus considers those pixels show the default background. (Bug#39188) (gui_update_window_end): Block input only around part of the code, as we did before this code was extracted from backend-specific implementations. * src/w32term.c (w32_update_window_begin, w32_update_window_end): Only hide/show the caret when redisplaying the window where the caret is shown. 2020-01-21 Eli Zaretskii Improve display of temporary echo messages * lisp/minibuffer.el (set-minibuffer-message): Fix cursor position for the temporary display of an echo-area message when minibuffer is active. Ensure the message is visible even if the end of the completion candidates presented by the likes of Icomplete mode is not visible due to its length, under resize-mini-windows = nil. (Bug#38457) 2020-01-20 Juri Linkov * lisp/menu-bar.el: Remove desktop-save-mode from release branch (bug#37594) 2020-01-20 Juri Linkov Allow optional truncation of tab names in tab-bar and tab-line (bug#38693) * lisp/tab-line.el (tab-line-tab-name-truncated-max): New defcustom. (tab-line-tab-name-truncated-buffer): Use tab-line-tab-name-truncated-max consistently with similar options in tab-bar.el. (tab-line-tabs-limit): Remove variable. (tab-line-tabs-window-buffers): Remove use of tab-line-tabs-limit that was an experimental feature before horizontal scrolling was implemented. (tab-line-close-tab-function): Rename from tab-line-close-tab-action and allow a customizaed function as option. (tab-line-close-tab): Call function if tab-line-close-tab-function is customized to a function. * lisp/tab-bar.el (tab-bar-tab-name-function): Add option tab-bar-tab-name-truncated. (tab-bar-tab-name-truncated-max): New defcustom. (tab-bar-tab-name-truncated-ellipsis): New variable. (tab-bar-tab-name-truncated): New function. 2020-01-20 Juri Linkov Small fixes in documentation. * doc/emacs/dired.texi (Operating on Files): Fix name of dired-vc-rename-file. * doc/emacs/fixit.texi (Undo): Update new values of undo limits doubled in bug#31104. 2020-01-20 Robert Pluim Improve explanation of available font backends under X * doc/emacs/frames.texi (Font and Color Parameters): Clarify that you can't have HarfBuzz and non-HarfBuzz at the same time for xft and cairo font backends. 2020-01-20 Pip Cet Clear output data pointer on NS * src/nsterm.m (ns_free_frame_resources): Clear the output data pointer to prevent attempting to reuse freed resources (Bug#38748). 2020-01-20 Michael Albinus * admin/release-process: Adapt bug numbers for release critical bugs. Mention debbugs-gnu-emacs-release-blocking-reports. 2020-01-20 Mattias Engdegård Fix shell-tests failures * test/lisp/shell-tests.el (shell-tests-completion-before-semi): Go back to actually testing completion before semicolon. (shell-tests-completion-after-semi): Test completion after semicolon, correctly (bug#39075). 2020-01-20 Mattias Engdegård * test/lisp/simple-tests.el: Full path to Emacs binary (bug#39067). 2020-01-19 Juri Linkov * lisp/tab-line.el (tab-line-auto-hscroll): Fix for long tab names. Check for nil value returned by previous-single-property-change that happens when tab name is longer than window width. 2020-01-19 Juri Linkov * lisp/menu-bar.el (menu-bar-options-menu): Add desktop-save-mode (bug#37594) 2020-01-19 Tino Calancha Fix shell-command-dont-erase-buffer feature * lisp/simple.el (shell-command-dont-erase-buffer): The default, nil, is backward compatible, i.e. it erases the buffer only if the output buffer is not the current one; the new value 'erase always erases the output buffer. Update docstring. (shell-command-save-pos-or-erase): Add optional arg output-to-current-buffer. Rename it so that it's not internal. All callers updated. (shell-command-set-point-after-cmd): Rename it so that it's not internal. All callers updated. Adjust it to cover a side case. (shell-command): Adjust logic to match the specification (Bug#39067). Enable the feature when the output buffer is the current one. (shell-command-on-region): Little tweak to follow `shell-command-dont-erase-buffer' specification. * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Add helper macro. (simple-tests-shell-command-39067) (simple-tests-shell-command-dont-erase-buffer): Add tests. * doc/emacs/misc.texi (Single Shell): Update manual. * etc/NEWS (Single shell commands): Announce the change. 2020-01-18 Stefan Kangas Remove reference to Emacs 19 from FAQ * doc/misc/efaq.texi (Emacs ignores X resources): Remove reference to Emacs 19. 2020-01-18 Stefan Kangas Doc fixes in package.el * lisp/emacs-lisp/package.el (package-process-define-package) (package-generate-description-file): Doc fixes. (package-generate-autoloads, package--write-file-no-coding) (package--archive-file-exists-p, package-desc-status): Add doc strings. 2020-01-18 Eric Abrahamsen Ensure that gnus-summary-attach-article finds the right articles * lisp/gnus/gnus-msg.el (gnus-summary-attach-article): Before iterating over the articles to attach, first close any open article. Using `set-buffer' required `gnus-summary-select-article' to re-set the buffer every time, meaning we never got off the original article. (cherry picked from commit 447bb1313a6abc07776d93ee78cd976ab43856e5) 2020-01-18 Stefan Kangas Remove some doc references to old Emacs versions * doc/misc/efaq.texi (Horizontal scrolling): Remove section only relevant to Emacs 21 or older. (Repeating commands, Editing MS-DOS files): * lisp/progmodes/gdb-mi.el: * lisp/woman.el: Doc fix - remove some references to Emacs 20 and older. 2020-01-18 Pieter van Oostrum (tiny change) Fix infloop in shell.el * test/lisp/shell-tests.el (shell-tests-completion-before-semi): Amend the shell.el tests to catch errors such as bug#39057. * lisp/shell.el (shell--parse-pcomplete-arguments): Skip the semi-colon as well. This avoids inflooping when a semi-colon is typed by the user. (Bug#39057) 2020-01-17 Amin Bandali Fix erc-notifications-notify for non-PRIVMSGs, broken in last commit * lisp/erc/erc-desktop-notifications.el (erc-notifications-notify): Take optional argument `privp', to be non-nil when notifying for a PRIVMSG. This is to work around bug introduced in last commit, as `erc-get-buffer' may return nil for non-PRIVMSG cases. (erc-notifications-PRIVMSG): Call erc-notifications-notify with non-nil `privp', as described above. 2020-01-17 Amin Bandali Fix the notification action for PRIVMSG in erc-notifications-notify * lisp/erc/erc-desktop-notifications.el (erc-notifications-notify): explicitly request the buffer for `nick', rather than relying on (current-buffer) returning it. That works fine for the very first PRIVMSG sent by `nick', but ERC seems to handle subsequent PRIVMSGs differently, where (current-buffer) would return the server buffer rather than the existing buffer for PRIVMSGs from `nick'. 2020-01-17 Amin Bandali ERC: New maintainer. * admin/MAINTAINERS: Add entries for Amin Bandali, new maintainer for ERC, and interested in maintaining Eshell. * lisp/erc/*: New maintainer. 2020-01-17 Dmitry Gutov Honor tags-case-fold-search during xref identifer completion * etc/NEWS: New entry. * lisp/progmodes/etags.el (tags-case-fold-search): Mark as safe-local. (find-tag--completion-ignore-case): Extract from tags-completion-at-point-function, find-tag-tag and etags--xref-find-definitions. (xref-backend-identifier-completion-ignore-case): New method. Use it here as well. * lisp/progmodes/xref.el (xref-backend-identifier-completion-ignore-case): New generic. (xref--read-identifier): Use it here. 2020-01-17 Eli Zaretskii Fix wording and punctuation of a recent commit * lisp/textmodes/ispell.el (ispell-correct-p): Doc fix. * lisp/emacs-lisp/checkdoc.el (checkdoc-ispell-init): Fix capitalization and punctuation of comments. 2020-01-17 Damien Cassou Add unattended spell-checking to checkdoc This commit makes checkdoc capable of spell-checking even when the user isn't using it interactively. When TAKE-NOTES is non-nil, checkdoc will run spell-checking (with ispell) and report spelling mistakes. Fixes: (bug#38583). * lisp/textmodes/ispell.el (ispell-word): Extract part of it to `ispell--run-on-word`. (ispell--run-on-word): New function, extracted from `ispell-word`. (ispell-error-checking-word): New function. (ispell-correct-p): New function. Use `ispell--run-on-word` and `ispell-error-checking-word`. * lisp/emacs-lisp/checkdoc.el (checkdoc-current-buffer): Pass TAKE-NOTES to `checkdoc-start`. (checkdoc-continue): Pass TAKE-NOTES to `checkdoc-this-string-valid`. (checkdoc-this-string-valid): Add optional argument TAKE-NOTES and pass it to `checkdoc-this-string-valid-engine`. (checkdoc-this-string-valid-engine): Add optional argument TAKE-NOTES and pass it to `checkdoc-ispell-docstring-engine`. (checkdoc-ispell-init): Call `ispell-set-spellchecker-params` and `ispell-accept-buffer-local-defs`. These calls are required to properly use ispell. The problem went unnoticed until now because checkdoc was only using ispell through the high-level command `ispell-word` which takes care of all the initialization for the user. (checkdoc-ispell-docstring-engine): Add optional argument TAKE-NOTES to force reporting of spell-checking errors. Throw error when (checkdoc-ispell-init) fails configuring ispell. Replace a few (if cond nil body) with (unless cond body). Replace (let ((var nil))) with (let (var)). Replace (if (not (eq checkdoc-autofix-flag 'never)) body) with just body because `checkdoc-autofix-flag` is checked at the beginning of the function. (cherry picked from commit 25adbc4a5ecc3e16625c0171607e3153bbdf7ab1) 2020-01-17 Lin Sun Fix the error message from makefile-move-to-macro * lisp/cedet/ede/makefile-edit.el (makefile-macro-file-list): regexp-quote the param in makefile-move-to-macro (Bug#39094). (cherry picked from commit a36495da1ec1419998c17fd64fb7439eaf940f36) 2020-01-16 Stefan Kangas Document feature requests in the Emacs manual * doc/emacs/trouble.texi (Contributing): Document how to send feature requests. (Bug20697) 2020-01-16 Stefan Monnier * lisp/minibuffer.el (read-file-name-default): Fix bug#39057 2020-01-16 Robert Pluim Make emacs prefer an existing ~/.emacs.d to an existing XDG location * doc/emacs/custom.texi (Find Init): Update description of how Emacs finds its init file directory and the interaction with $XDG_CONFIG_HOME (Early Init File): Correct XDG location of early-init.el * etc/NEWS: Update description to make it clear the ~/.emacs.d is preferred, even if the XDG location exists. * lisp/startup.el: Prefer ~/.emacs.d even if the XDG location exists. * lib-src/emacsclient.c (open_config): Prefer home directory the XDG location. 2020-01-16 Robert Pluim Describe --with-cairo non-support for bitmapped fonts. * etc/NEWS: Mention Pango's removal of support for bitmapped fonts. 2020-01-16 Robert Pluim Mention GTK font chooser changes in NEWS * etc/NEWS: Mention GTK font chooser changes. 2020-01-15 Glenn Morris f90: handle F2008 module function * lisp/progmodes/f90.el (f90-font-lock-keywords-1) (f90-looking-at-program-block-start): Handle F2008 "module function" and subroutine. (Bug#38415) * test/lisp/progmodes/f90-tests.el (f90-test-bug38415): New test. 2020-01-15 Juri Linkov Move shell-related menu items to "Shell Commands" submenu (bug#37594) * lisp/menu-bar.el (menu-bar-shell-commands-menu): New variable. (menu-bar-tools-menu): Move shell-related menu items to 'menu-bar-shell-commands-menu' and add menu items for 'async-shell-command' and 'shell'. 2020-01-15 Stefan Kangas * admin/notes/font-backend: Remove outdated file. (Bug#34663) 2020-01-15 Stefan Kangas Declare the ftx font backend driver obsolete * etc/NEWS: Document that the ftx font driver is now obsolete and will be removed in Emacs 28. (Bug#34663) 2020-01-15 YAMAMOTO Mitsuharu Fix build failure with --with-cairo --without-png * src/image.c: Don't enable PNG section only by USE_CAIRO. 2020-01-14 Stefan Kangas Add new node "Package Statuses" to manual * doc/emacs/emacs.texi (Top): * doc/emacs/package.texi (Package Menu): New node "Package Statuses". (Bug#29420) 2020-01-14 Juri Linkov * lisp/isearch.el: Fix corner cases of isearch-lazy-count. * lisp/isearch.el (isearch-mode): Reset isearch-lazy-count-current and isearch-lazy-count-total to nil, so when isearch-mode is started, there should be no counts from previous Isearch. (isearch-lazy-highlight-new-loop): Call isearch-message after resetting lazy-count variables only when isearch-mode is started. This avoids the problem of inappropriate calls of isearch-message-function when query-replace in the minibuffer performs lazy-highlighting that used to call minibuffer-history-isearch-message unnecessarily. 2020-01-14 Robert Pluim Document spacing issues with Xft for some fonts * etc/PROBLEMS: Document issues with Xft and some recent fonts (Bug#39082). 2020-01-13 Mattias Engdegård Always use lexical-binding in lisp-interaction-mode (bug#38835) * lisp/progmodes/elisp-mode.el (lisp-interaction-mode): Set lexical-binding. * lisp/startup.el (command-line, startup--get-buffer-create-scratch): Don't set lexical-binding here. * doc/lispref/variables.texi: * etc/NEWS: Make it clear that lisp-interaction-mode uses lexical-binding. 2020-01-13 Robert Pluim vc-dir: ensure we don't use a pager with git * lisp/vc/vc-git.el (vc-git--call): Call git with '--no-pager' to avoid hangs caused by remote pager settings (Bug#38688). 2020-01-12 Amin Bandali Improve ERC's matching of nicks and URLs (bug#38257) * lisp/erc/erc-{button,match}.el (erc-{button,match}-syntax-table): Omit (, ), and '; as they're not valid nick characters, per RFC 2812 section 2.3.1. This enables correct matching/highlighting of nicks when they're surrounded by parens, like (nick), and when adjacent to an apostrophe, like nick's. * lisp/erc/erc-button.el (erc-button-url-regexp): Use the regexp from browse-url-button-regexp, which among other things, seems to handle surrounding pair of parens better. 2020-01-12 Juri Linkov Handle tab-bar clicks on a GPM-capable console. * src/term.c (handle_one_term_event): Call tty_handle_tab_bar_click. * src/xdisp.c (tty_handle_tab_bar_click): Force reset of up_modifier bit from the event modifiers. * lisp/tab-line.el (tab-line-tab-current): No need to use inverse-video on console/xterm because the selected tab already uses inverse-video. 2020-01-12 Alan Third ;* etc/TODO: Update. 2020-01-11 Eli Zaretskii Update Acknowledgments sections * doc/emacs/ack.texi (Acknowledgments): * doc/emacs/emacs.texi (Acknowledgments): Update for Emacs 27. 2020-01-11 Eli Zaretskii Update Antinews in ELisp manual * doc/lispref/anti.texi (Antinews): Rewrite for Emacs 27. * doc/lispref/elisp.texi (Top): Update the top-level menu item for Antinews. 2020-01-11 Richard Stallman Improve wording in the ELisp manual * doc/lispref/modes.texi (Setting Hooks): Improve and clarify wording. (Bug#38818) 2020-01-11 Mauro Aranda Reset to the standard value when reverting session's customizations * lisp/cus-edit.el (custom-variable-reset-saved): When there is no previous saved value, reset to the standard value. (Bug#15214) 2020-01-11 Mauro Aranda Fix saving multiple themes * lisp/custom.el (enable-theme): Be side-effect free when modifying custom-enabled-themes. (Bug#19999) 2020-01-10 Mattias Engdegård Calc: fix interval entry (bug#39040) * lisp/calc/calc.el (calcDigit-start): Initialise calc-prev-char to something more reasonable, so that non-algebraic entry of intervals whose start is a single digit, like (1..10), works properly. Reported by Michel Schinz. 2020-01-10 Eli Zaretskii Fix horizontal line display in Custom buffers * lisp/cus-edit.el (custom-group-value-create): Insert a newline before calling 'custom-group--draw-horizontal-line'. (Bug#39074) 2020-01-10 Mattias Engdegård flymake: fix typo in variable binding (bug#38752) This mistake was found by an experimental elisp optimiser. * lisp/progmodes/flymake-proc.el (flymake-proc-stop-all-syntax-checks): Add missing brackets. 2020-01-10 Eli Zaretskii Update Antinews in the Emacs manual * doc/emacs/anti.texi (Antinews): Rewrite for Emacs 27. * doc/emacs/emacs.texi (Top): Update the "Antiniews" item of the top-level menu. 2020-01-09 Väinö Järvelä (tiny change) Use NSNumber instead of BOOL (bug#39047) * src/nsfns.m (ns_set_represented_filename): Use correct type. 2020-01-09 João Távora Add comment on fido-mode's file-sorting semantics * lisp/icomplete.el (icomplete--sorted-completions): Add comment. 2020-01-09 João Távora Consider non-string minibuffer-default in icomplete (Bug#38992) * lisp/icomplete.el (icomplete--sorted-completions): Consider non-string minibuffer-default. 2020-01-08 Eli Zaretskii Fix another compilation problem in a build without threads * src/systhread.c (sys_thread_set_name) [!THREADS_ENABLED]: Add a trivial implementation. 2020-01-08 Eli Zaretskii Fix build without threads * src/systhread.c (sys_thread_create) [!THREADS_ENABLED]: Update the function's signature to match prototype. Reported by Glenn Morris . (Bug#38632) 2020-01-08 Eli Zaretskii Fix compression of directories in Dired This fixes comporession and uncompression of directories on MS-Windows, but also on other systems. The original code used ":" as the REGEXP of the directory entry in dired-compress-file-suffixes, which on Windows always matched any absolute file name, and can also match unusual file names on Posix hosts. This false match would cause dired-compress-file to act as if we are decompressing a directory, but use a command suitable for compression, which would fail in interesting ways. We now use a REGEXP that can never match any valid file name. * lisp/dired-aux.el (dired-compress-file-suffixes): Make the "compress directory" entry's REGEXP really fail to match any valid file name. (dired-compress-file): Adapt to the change in dired-compress-file-suffixes. (Bug#39024) (dired-compress): If the current file is a directory, or if the uncompressed file is a directory, don't remove the original from the listing, since it is left in the filesystem. 2020-01-08 Michael Albinus Further enhancement on `tramp-file-local-name' * lisp/net/tramp.el (tramp-file-local-name): Call `file-local-name' if NAME is not a Tramp file name. 2020-01-07 Alan Mackenzie Objective C Mode imenu: cease recognizing "functions" within comments, etc. This fixes bug #38749. * lisp/progmodes/cc-menus.el (cc-imenu-objc-function): Put a c-literal-limits test around the innards of the main re-search-backward loop. 2020-01-07 Mattias Engdegård Fix BSD and macOS builds w.r.t. pthread_setname_np (bug#38632) pthread_setname_np takes only a single argument on BSD and macOS, and affects the current thread only. * configure.ac: Add check for single-argument pthread_setname_np * src/systhread.c (sys_thread_set_name): New (w32 and pthread versions). (sys_thread_create): Remove name argument and name-setting. (w32_beginthread_wrapper): Remove name-setting. * src/systhread.h (sys_thread_create, sys_thread_set_name): Update prototypes. * src/thread.c (run_thread): Call sys_thread_set_name. (Fmake_thread): Adapt call to sys_thread_create. * src/thread.h (struct thread_state): Adjust comment. 2020-01-07 Robert Pluim Scale top-left coordinates in display-monitor-attributes-list When using multiple monitors, and HiDPI, the top-left coordinates of the monitors need to be adjusted, not just the width and height (Bug#31223). * src/xfns.c (Fx_display_monitor_attributes_list): Scale top-left coordinates. 2020-01-07 Dmitry Gutov xref-matches-in-files: Big Tramp speed-up * lisp/progmodes/xref.el (xref-matches-in-files): Greatly improve performance with remote files using Tramp (bug#34343). 2020-01-07 Michael Albinus * lisp/net/tramp.el (tramp-file-local-name): Remove `save-match-data'. 2020-01-06 YAMAMOTO Mitsuharu Fix rendering bug due to unsynchronized cairo surface size (Bug#38497) * src/xterm.c (handle_one_xevent) [USE_CAIRO && !USE_GTK]: Call x_cr_update_surface_desired_size for a related frame as a fallback. 2020-01-06 YAMAMOTO Mitsuharu Avoid crash by access to cleared img->pixmap->data/img->mask->data (Bug#38774) * src/image.c (prepare_image_for_display) [USE_CAIRO]: Call IMAGE_BACKGROUND and IMAGE_BACKGROUND_TRANSPARENT. 2020-01-06 Eli Zaretskii Avoid assertion violations in very small-height windows * src/xdisp.c (try_cursor_movement, redisplay_window) (row_containing_pos): Skip tab-line glyph rows in addition to header-line rows, when working on the top-most glyph row of a window. This avoids assertion violations in set_cursor_from_row. (Bug#38966) 2020-01-06 Robert Pluim Use pthread_setname_np to set thread name * configure.ac: Remove check for sys/prctl.h and prctl, check for pthread_setname_np instead. * src/systhread.c: Remove sys/prctl.h include. (sys_thread_create) [HAVE_PTHREAD_SETNAME_NP]: Use pthread_setname_np to set the name of the newly created thread (Bug#38632). * src/thread.c (Fmake_thread): Use ENCODE_SYSTEM instead of ENCODE_UTF_8 on the thread name. 2020-01-05 Paul Eggert Move “Fix some broken conditional forms” to master Revert 2020-01-04T19:17:12Z!eggert@cs.ucla.edu which recently I installed into the emacs-27 branch by mistake. These patches are now on master instead (via merging). Do not merge to master. 2020-01-05 Martin Rudalics Improve doc-strings of 'quit-window' and 'quit-restore-window' (Bug#38819) * lisp/window.el (quit-restore-window, quit-window): Make doc-strings more consistent; add references to corresponding section of the Elisp manual (Bug#38819). 2020-01-04 Stephen Gildea Fix MH-E bug #470: Show buffer discards text properties * lisp/mh-e/mh-show.el (mh-display-msg): reset font lock and set major mode *before* formatting message content. This changes lets fonts work when the Show buffer is reused for a new message. (mh-show-mode): no longer set buffer-read-only; that is better done by mh-display-msg after setting all content. 2020-01-04 Paul Eggert Fix some broken conditional forms Problem reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2020-01/msg00088.html * lisp/cedet/ede/cpp-root.el (ede-create-lots-of-projects-under-dir): Remove this quick hack, which didn’t do anything anyway. * lisp/cedet/ede/pconf.el (ede-proj-configure-test-required-file): * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-col): * lisp/net/nsm.el (nsm-check-tls-connection): Use ‘when’ rather than bypassing it. This doesn’t affect behavior and is better style. * lisp/cedet/srecode/semantic.el (srecode-semantic-handle-:tag): Fix typo that suppressed an error. * lisp/filesets.el (filesets-run-cmd): Fix typo that mishandled spacing. * lisp/gnus/gnus-cloud.el (gnus-cloud-update-newsrc-data): Fix typo that caused “GROUP has older different info in the cloud as of DATE, update it here?” prompt result to always be treated as “yes”. * lisp/gnus/mml-smime.el (mml-smime-openssl-encrypt): Simplify, since smime-encrypt-buffer signals error on failure. * lisp/international/titdic-cnv.el (tsang-quick-converter): Simplify. The conversion of this file to utf-8-emacs in 2019-01-08T02:18:40Z!monnier@iro.umontreal.ca removed the distinction between Big5 and CNS fulltitles in the generated docstring. * lisp/org/org-agenda.el (org-agenda-show-and-scroll-up): * lisp/textmodes/table.el (table--generate-source-cell-contents): Simplify by removing useless code. * lisp/org/ox-odt.el (org-odt--format-timestamp): Fix typo that always output time-of-day even when the timestamp lacked it. 2020-01-04 Michael Albinus Fix a scoping error in tramp-sudoedit.el * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-system-info): Fix a scoping error. 2020-01-04 Mattias Engdegård * lisp/autorevert.el (auto-revert-notify-handler): Fix bracketing. 2020-01-04 Martin Rudalics Fix typo in 'window_box_height' * src/xdisp.c (window_box_height): Add missing 'else'. 2020-01-03 Mattias Engdegård Install g++ for CEDET tests * .gitlab-ci.yml (before_script): Add g++. Backport from master. 2020-01-03 Michael Albinus * lisp/net/tramp.el: Fix typos. * lisp/net/tramp.el (tramp-file-local-name): New defun. (Bug#34343) 2020-01-03 Michael Albinus Adapt commentary in Tramp persistency file * lisp/net/tramp-cache.el (tramp-dump-connection-properties): Adapt commentary in `tramp-persistency-file-name'. 2020-01-03 Michael Albinus Change Tramp version to 2.4.3.27.1 * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.4.3.27.1". (customize-package-emacs-version-alist): Add Tramp version integrated in Emacs 27.1. 2020-01-02 Eli Zaretskii Fix redisplay when mode-line-format changes mode-line's height * lisp/frame.el (top-level): Add mode-line-format, tab-line-format, and header-line-format to the list of variables that should trigger an immediate redisplay of the buffer's window. This fixes redisplay of windows when the mode line changes its height. * src/xdisp.c (window_box_height): Use the window's mode_line_height, tab_line_height, and header_line_height fields in preference to CURRENT_MODE_LINE_HEIGHT, CURRENT_TAB_LINE_HEIGHT, and CURRENT_HEADER_LINE_HEIGHT, respectively. This fixes display of vertical scroll bar when the height of the window's mode line changes. * src/dispnew.c (adjust_glyph_matrix): When resizing a window's matrix, reset the mode_line_p flag of the previous mode-line row, so that the window_box_height, CURRENT_MODE_LINE_HEIGHT, and their ilk won't use stale info. (Bug#38828) 2020-01-02 Eli Zaretskii * src/fileio.c (Fwrite_region): Improve the doc string. 2020-01-02 Martin Rudalics Fix removal of frame decorations on Windows (Bug#38705) * src/w32fns.c (w32_set_undecorated): Actualize f->output_data.w32->dwStyle for subsequent calls of AdjustWindowRect (Bug#38705). * src/w32term.h (struct w32_output): Add comment for dwstyle slot. 2020-01-01 Eli Zaretskii Fix compilation with GTK versions older than 3 * src/xfns.c (x_get_net_workarea): Change a recently moved #ifndef so that GTK builds which need this function will compile it. Reported by John . (cherry picked from commit d36adb544d984b91c70f6194da01344e4b2b6fc9) 2020-01-01 Eli Zaretskii Fix reverting customizations * lisp/custom.el (custom-push-theme): Don't use setcar to modify the recorded value of PROP; instead, cons a new property list by deleting the old value and adding the new one. (Bug#38812) 2020-01-01 Mattias Engdegård * lisp/loadup.el: Set max-specpdl-size to 1800 when loading cl-generic.el. 2020-01-01 Mattias Engdegård Revert "Raise default max-specpdl-size value" This reverts commit bb9402e6e9c12938aee31b81e25511eb1f6335d2. 2020-01-01 Mattias Engdegård Raise default max-specpdl-size value Occasionally, loading cl-generic.el from source requires max_specpdl_size > 1600 when bootstrapping, and thus fails. In any case we are very close to the limit. * src/eval.c (init_eval_once): Raise max_specpdl_size to 1800. * doc/lispref/variables.texi (Local Variables): Update docs. 2020-01-01 Phillip Lord Update distribution documentation * admin/nt/README-ftp-server: Remove as obsolete * admin/nt/dist-build/README-windows-binaries: Add information about installer 2019-12-31 Paul Eggert Pacify gcc -Wunused-function on Ubuntu 18.04.3 This improves on 2019-12-25T20:01:07Z!eggert@cs.ucla.edu, by fixing a GCC warning on Ubuntu 18.04.3 “‘x_get_net_workarea’ defined but not used”. * src/xfns.c (x_get_net_workarea) [!USE_GTK]: Do not define. 2019-12-31 Paul Eggert Fix copyright years by hand These are dates that admin/update-copyright did not update. 2019-12-31 Paul Eggert Update copyright year to 2020 Run "TZ=UTC0 admin/update-copyright $(git ls-files)". 2019-12-31 João Távora Don't always resort in recently introduced icomplete--sorted-completions Doing so breaks icomplete-forward-completions and icomplete-backward-completions. * lisp/icomplete.el (icomplete--sorted-completions): Don't always resort. (cherry picked from commit 639fb50ed4c622f99dfbde32fbdbca42ce36d385) 2019-12-31 João Távora Don't force completion recalculation in icomplete-fido-ret Besides the adverse effect of delaying completions, it tripped up the useful logic of icomplete-force-complete-and-exit in the case where a default was available, but no completions calculated yet. * lisp/icomplete.el (icomplete-fido-ret): Don't force calculation of completions. (cherry picked from commit 13778aa5be7bf028893672d84c2a291f491d8216) 2019-12-31 João Távora Correctly cache sorted completions in icomplete--sorted-completions * lisp/icomplete.el (icomplete--sorted-completions): Use completion--cache-all-sorted-completions. (cherry picked from commit 83587bb68830bd91124f99ddf8590d1d5f63869f) 2019-12-31 João Távora Move flex style's minibuffer-default-aware sorting to lisp/icomplete.el This moves the logic from the series of commits starting in the commit named: Improve sorting of flex completion style with non-nil minibuffer-default to lisp/icomplete.el, so far the only confirmed beneficiary of that functionality. * lisp/icomplete.el (icomplete--sorted-completions): Consider minibuffer-default here. * lisp/minibuffer.el (completion--flex-adjust-metadata): Simplify. (cherry picked from commit 0d2a711dc9a65dc8eb6e995369e70cddbcd7d9a4) 2019-12-31 João Távora Make fido-mode behave more like ido-mode when finding directories Notably C-x d (M-x dired) and C-x v d (M-x vc-dir) behaved quite differently, having regular files as the default instead of ido's usual "./". * lisp/icomplete.el (icomplete--sorted-completions): New helper. (icomplete-completions): Use it. (cherry picked from commit ee914051fbb4fbff9073a23b5ea7668bf48b5c6a) 2019-12-31 João Távora Slightly simplify lisp/icomplete.el with new icomplete--category helper * lisp/icomplete.el (icomplete-fido-kill) (icomplete-fido-delete-char, icomplete-fido-ret) (icomplete-fido-backward-updir, icomplete-exhibit): Use icomplete--category. (icomplete--category): New helper. (cherry picked from commit 24a1f520f91c278cb8cc57325ea80285a3b252cf) 2019-12-31 João Távora Another adjustment to flex completion style's sorting function * lisp/minibuffer.el (completion--flex-adjust-metadata): Adjust case when minibuffer-default is non-nil. (cherry picked from commit 9c912049927cfb18b9c8b37039b38ddf51f2fe81) 2019-12-30 Mattias Engdegård Make minibuffer-tests work in out-of-tree builds (bug#38816) * test/lisp/minibuffer-tests.el (completion-table-test-quoting): Set default-directory. 2019-12-30 Mattias Engdegård Make comint-tests more robust (bug#38813) * test/lisp/comint-tests.el (comint-test-no-password-function) (comint-test-password-function-with-value) (comint-test-password-function-with-nil): Call accept-process-output as many times as needed, with a slightly more generous timeout (100 ms), after sending the Password: prompt to the process, since there must be time for some back-and-forth communication. Also clear the process-query-on-exit flag, since it doesn't go well with noninteractive tests. 2019-12-30 Eli Zaretskii Fix tar-mode reading the oldgnu Tar format This makes sure an entry for a long file name will not accidentally appear as a directory, and thus its size will be disregarded, causing corrupted file headers for all the subsequent entries. The original problem happened because the long file name truncated to 99 bytes happened to end in a slash, which tar-mode takes to be the indication of a directory. * lisp/tar-mode.el (tar-header-block-tokenize): Accept an additional argument DISABLE-SLASH; if non-nil, don't set the link-type field of the descriptor to 5 (meaning a directory) just because the name ends in a slash. Use this argument when calling itself recursively, to read the entry of the file with a long name. Set the link-type to 5 if the long name ends in a slash. (Bug#38777) 2019-12-30 Eli Zaretskii Ensure mini-window is resized to show active minibuffer contents * src/keyboard.c (read_char, command_loop_1): Resize the mini-window after clearing the echo area while minibuffer is active. (Bug#38645) 2019-12-30 Eli Zaretskii Fix mini-window resizing under resize-mini-windows = t * src/window.c (grow_mini_window): Fix resizing of mini-window when the echo area is cleared, and the caller asks for the mini-window to have zero lines. (Bug#38791) 2019-12-29 Glenn Morris Fixes for makeinfo 4.13 * doc/lispref/customize.texi (Variable Definitions): Fix xref. * doc/lispref/internals.texi (Writing Emacs Primitives) (Module Values): Follow xref with comma. 2019-12-29 Robert Pluim Fix crash under -nw on macOS properly this time * src/dispextern.h (FACE_COLOR_TO_PIXEL): Only use ns_color_index_to_rgba when we're running under the NS gui (Bug#38564). 2019-12-29 Robert Pluim Revert "Check for GUI frame in ns_color_index_to_rgba" This reverts commit ea84a95bd8d43612b4a424fb93de25a68ac31d05. 2019-12-29 Robert Pluim Ignore all color fonts when using XFT * etc/NEWS: Announce change to matching color fonts when using XFT. * src/ftfont.c (ftfont_list) [HAVE_XFT && FC_COLOR]: Query for the color attribute of the matched font, and skip it if it is not FcFalse (Bug#37786). 2019-12-29 Mattias Engdegård Avoid unbounded growth of cl-random-state components (bug#38753) * lisp/emacs-lisp/cl-extra.el (cl-random): Perform the modulo 2**23 operation before updating the state instead of after. The result is always the same, but it prevents the state from growing into arbitrary large bignums. Patch from Christopher Wellons. 2019-12-29 Michael Albinus Sync with Tramp 2.4.3 * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.4.3". * lisp/net/tramp.el: Bump version. (tramp-handle-shell-command): The temp file for error-buffer is remote. * test/lisp/net/tramp-tests.el (tramp-test30-make-process): Simplify buffer generation. (tramp-test32-shell-command): Extend test. 2019-12-29 Dmitry Gutov Fix up requires * lisp/progmodes/project.el (project-files): Remove (require 'xref). (project--files-in-directory): Add it here instead. (project-find-regexp, project-or-external-find-regexp): And here. For 'xref--show-xrefs'. 2019-12-29 Dmitry Gutov Extract xref-matches-in-files from project--find-regexp-in-files * lisp/progmodes/xref.el (xref-matches-in-files): Extract from project--find-regexp-in-files. * lisp/dired-aux.el (dired-do-find-regexp): Also use it here. 2019-12-29 Dmitry Gutov Rename xref-collect-references and xref-collect-matches * lisp/progmodes/xref.el (xref-references-in-directory): Rename from xref-collect-references. Update the sole caller. (xref-matches-in-directory): Rename from xref-collect-matches. Update all callers (all of them are in the /tests/ dir). * test/lisp/progmodes/xref-tests.el (xref-tests-data-dir): Don't use the EMACS_TEST_DIRECTORY env var. It doesn't work when running interactively. 2019-12-29 Dmitry Gutov Improve docstrings * lisp/progmodes/xref.el (xref-collect-matches) (xref-collect-references): Improve docstrings. 2019-12-29 Alan Third Fix when expose draws partially visible first glyph (bug#38731) * src/xdisp.c (expose_area): When the face extends to the end of the line draw text from the correct x coordinate. 2019-12-28 Dmitry Gutov Don't require semantic/fw * lisp/progmodes/xref.el (xref-collect-matches): Don't require semantic/fw, we haven't been using semantic-find-file-noselect here for a while. 2019-12-28 Dmitry Gutov Do some renames for clarity * lisp/progmodes/xref.el (xref--last-file-buffer): Rename from xref--last-visiting-buffer. Update users. (xref--find-file-buffer): Rename from xref--find-buffer-visiting to match the standard function that gets called inside. Ditto. 2019-12-28 Eli Zaretskii Rearrange NEWS, add missing documentation * etc/NEWS: Rearrange and mark entries whether documented or not. * doc/lispref/streams.texi (Output Variables): Document the new default of 'print-quoted'. * doc/lispref/keymaps.texi (Functions for Key Lookup): Document that KEYMAP arg to 'lookup-key' can also be a list. * doc/lispref/customize.texi (Variable Definitions): Document the :local keyword of 'defcustom'. * doc/lispref/numbers.texi (Float Basics): Document changes in 'logb'. * doc/lispref/hooks.texi (Standard Hooks): Document 'comint-password-function'. * doc/emacs/display.texi (Text Scale): Document text-size adjustment using the mouse wheel. * doc/emacs/frames.texi (Mouse Commands): Document image scaling with the mouse wheel. * doc/emacs/windows.texi (Window Convenience): Document 'global-tab-line-mode'. * doc/emacs/search.texi (Repeat Isearch, Symbol Search) (Isearch Yank): Document the new support for numeric arguments in Isearch commands. (Special Isearch): Document 'M-s M->' and 'M-s M-<'. (Search Customizations): Document 'isearch-lazy-count'. Improve indexing. (Not Exiting Isearch): Document the new value of 'isearch-allow-scroll'. * doc/emacs/maintaining.texi (Xref Commands): Document the new 'g' key binding. * doc/emacs/package.texi (Package Installation): Document changes in 'package-check-signature'. * doc/emacs/maintaining.texi (VC Change Log): Document 'vc-log-search'. * doc/emacs/dired.texi (Operating on Files): Document 'dired-vc-rename'. 2019-12-28 Xu Chunyang Fix interactive spec in netrc-parse * lisp/net/netrc.el (netrc-parse): Fix placement of interactive spec (bug#38773). 2019-12-28 Eli Zaretskii Fix documentation of define-obsolete-* functions * doc/lispref/functions.texi (Obsolete Functions): Make documentation of functions that obsolete symbols match the advertised calling conventions. * lisp/emacs-lisp/byte-run.el (define-obsolete-function-alias) (define-obsolete-variable-alias, define-obsolete-face-alias): State in the doc strings that WHEN is a mandatory argument, to be consistent with the advertised calling convention. (Bug#38675) 2019-12-27 Lars Ingebrigtsen Fix recent gnus-start.el breakage * lisp/gnus/gnus-start.el (gnus-group-change-level): Fix previous patch that made info nil when adding new groups (thereby making gnus-newsrc-alist invalid). 2019-12-27 Dmitry Gutov (xref--find-buffer-visiting): Speed up by using get-file-buffer * lisp/progmodes/xref.el (xref--find-buffer-visiting): Speed up by using get-file-buffer. (xref--collect-matches): Remove the condition on remote-id. (https://lists.gnu.org/archive/html/emacs-devel/2019-12/msg00753.html) 2019-12-27 Dmitry Gutov project--vc-list-files: Recurse into submodules * lisp/progmodes/project.el (project-try-vc): Do not treat a Git submodule as a project root, go up to the parent repo. (project--git-submodules): New function. (project--vc-list-files): Use it. Recurse into submodules. 2019-12-27 Eli Zaretskii Minor improvements of buffer documentation * doc/emacs/buffers.texi (Buffers): Say that buffers are killed when no longer needed. Suggested by Jean-Christophe Helary . 2019-12-27 Dmitry Gutov xref--collect-matches: Speed up on remote * lisp/progmodes/xref.el (xref--collect-matches): Don't call find-buffer-visiting on remote file names, it's pretty slow (bug#34343). 2019-12-26 Phillip Lord Fix installer build * admin/nt/dist-build/build-zips.sh: Ensure that NSIS build always uses the actual build number to locate its files. 2019-12-26 Phillip Lord Update Windows build documentation * admin/nt/dist-build/README-scripts: Update with branch and snapshot information. 2019-12-26 Mattias Engdegård Calc: add missing dynamic variable declarations * lisp/calc/calc-alg.el (math-simplify-only, calc-simplify-mode) (math-expand-formulas, calc-poly-div-remainder) (math-living-dangerously, math-simplifying, calc-angle-mode) (calc-prefer-frac, math-poly-base-variable): Declare dynamic variables. * test/lisp/calc/calc-tests.el (calc-poly-div): Add test for at least one bug caused by missing declarations. 2019-12-26 Eli Zaretskii * doc/emacs/buffers.texi (Kill Buffer): Improve indexing. 2019-12-26 Dmitry Gutov Speed up dired-do-find-regexp * lisp/dired-aux.el (dired-do-find-regexp): Speed up (bug#36857). Previously, 'find' was called for every marked file (for plain files and directories both). Now 'find' is only called for directories. 2019-12-26 Dmitry Gutov project--find-regexp-in-files: Support remote files * lisp/progmodes/project.el (project--find-regexp-in-files): Support remote files (bug#34343). 2019-12-26 Philipp Stephani Document some restrictions for module functions. * doc/lispref/internals.texi (Module Functions): Document some restrictions for module functions. 2019-12-26 Philipp Stephani Don't recommend using 'module-load' for loading modules. 'module-load' most likely doesn't do what users expect. Users should use 'load' and its wrappers, which do the right thing. * doc/lispref/loading.texi (Dynamic Modules): Document disadvantages of 'module-load' and recommend normal 'load' and its wrappers instead. * doc/lispref/internals.texi (Module Functions): Recommend 'load' over 'module-load'. 2019-12-25 Paul Eggert Port x_get_monitor_attributes_fallback to !HAVE_GTK3 * src/xfns.c (x_get_net_workarea) [!HAVE_GTK3]: Define in this case too, since x_get_monitor_attributes_fallback contains a call to it regardless whether HAVE_GTK3 is defined. 2019-12-25 Lars Ingebrigtsen Fix compilation warning in gnus-start.el * lisp/gnus/gnus-start.el (gnus-gnus-to-quick-newsrc-format): Fix compilation warning by not binding XEmacs-only variable. * lisp/gnus/gnus-util.el (gnus-bind-print-variables): Ditto. (gnus-prin1, gnus-prin1-to-string, gnus-pp, gnus-pp-to-string): Adjust doc string. 2019-12-25 Eli Zaretskii Improve doc string of 'files--message' * lisp/files.el (files--message): Improve the wording of doc string. (Bug#38737) 2019-12-24 Wolfgang Scherer Improve vc--add-line, vc--remove-regexp * lisp/vc/vc.el (vc--add-line): Create file if it does not exist. Use existing buffer to avoid discrepancies with filesytem. Make sure that the file ends with a newline. (vc--remove-line): Do not create file if it does not exist. Use existing buffer to avoid discrepancies with filesytem. (bug#37185) 2019-12-24 Dmitry Gutov Apply the 'xref-group' property properly * lisp/progmodes/xref.el (xref--insert-xrefs): Apply the 'xref-group' property properly (bug#36974). 2019-12-24 Philipp Stephani * src/pdumper.c (Fdump_emacs_portable): Reword error message. (cherry picked from commit ac7b2607735a64e657d65c87d8c9f73755ff3efa) 2019-12-24 Philipp Stephani Don’t allow portable dumping in interactive mode (Bug#38453). * src/pdumper.c (Fdump_emacs_portable): Don’t allow dumping in interactive mode. (cherry picked from commit e7edba42c8a525722cbd40f782b0df68e4976a62) 2019-12-24 Lars Ingebrigtsen Don't default to showing X-Faces externally in Gnus * lisp/gnus/gnus-art.el (gnus-article-x-face-command): It's seldom useful to display the face in an external command, so don't ever default to that. This also fixes the problem of Emacs running as a server in mixed graphical/non-graphical environments. 2019-12-24 Lars Ingebrigtsen Fix manual typo in Special Read Syntax * doc/lispref/objects.texi (Special Read Syntax): Fix typo. 2019-12-24 Robert Pluim Fix problem with emacs -nw / eww / svg * lisp/net/shr.el (shr-parse-image-data): Don't bug out on non-visual Emacs versions on SVG images (bug#38507). 2019-12-24 Lars Ingebrigtsen Clarify base64 requirements and say what {en,de}code_coding_region does * src/coding.c (Fencode_coding_region): Clarify what this does. (Fdecode_coding_region): Ditto. * src/fns.c (Fbase64_decode_region): Clarify that this function returns bytes, not text (bug#38587). (Fbase64_encode_region): Clarify that this function takes bytes, not text. 2019-12-24 Philipp Stephani * src/emacs-module.h.in: Add reference to manual. 2019-12-23 Juanma Barranquero Trivial docstring fixes * ChangeLog.3: * lisp/emacs-lisp/cl-macs.el (cl-flet): * lisp/filesets.el (filesets-menu-ensure-use-cached): * lisp/progmodes/compile.el (compilation-context-lines): * lisp/progmodes/prolog.el (prolog-paren-indent): * lisp/progmodes/sql.el (sql-password-search-wallet-function): Fix typos in docstrings. * lisp/cedet/semantic/analyze.el (semantic-analyze-push-error): Doc fix. * lisp/emacs-lisp/map.el (map-put, map-info): Refill docstring. (map-contains-key): Fix typo. (map-every-p): Doc fix. 2019-12-23 Dhruva Krishnamurthy (tiny change) imagemagick-types needs to initialize ImageMagick * src/image.c (imagemagick_initialize): New function, with body taken from imagemagick_load_image. (imagemagick_load_image, Fimagemagick_types): Use it. 2019-12-23 Eli Zaretskii Cut the emacs-27 release branch * lisp/cus-edit.el (customize-changed-options-previous-release): Change the value to 26.3. * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Bump Emacs version to 27.0.60. 2019-12-23 Philipp Stephani Document and verify that emacs_limb_t doesn’t have padding bits. This is a useful property when doing further bit-twiddling with the magnitude array before/after calling extract_big_integer or make_big_integer. For example, constructing an emacs_limb_t object using repeated shift-and-add should work as expected, but relies on the type not having padding bits. Since the C standard already guarantees that unsigned integers use a pure binary representation, not having padding bits is enough to guarantee that the type has unique object representations in the sense of C++’s std::has_unique_object_representations. * doc/lispref/internals.texi (Module Values): Document that emacs_limb_t doesn’t have padding bits. * src/emacs-module.c: Verify that emacs_limb_t doesn’t have padding bits. 2019-12-23 Jimmy Aguilar Mena Fix extension of underline, overline, and strike-through attributes * src/xdisp.c (extend_face_to_end_of_line): Don't return early if face attributes beyond background color and box are set, since that means these attributes need to be extended past the EOL. 2019-12-23 João Távora Comment on limitation of flex completion style's sorting function * lisp/minibuffer.el (completion--flex-adjust-metadata): Add comment. 2019-12-23 João Távora Fix a bug in completion--flex-adjust-metadata If minibuffer-default coincided with the first of completions, the empty list would be returned. * lisp/minibuffer.el (completion--flex-adjust-metadata): Make sure to never return empty list. 2019-12-23 Martin Rudalics Fix documentation of implied frame resizing (Bug#38684) * src/frame.c (frame_inhibit_implied_resize): Fix doc-string. * doc/lispref/frames.texi (Implied Frame Resizing): Update and rewrite section. 2019-12-22 Michael R. Mauger Added `comint-password-function' hook * etc/NEWS: * lisp/comint.el (comint-password-function): New variable. (comint-send-invisible): Use it. * test/lisp/comint-tests.el (comint-test-no-password-function, comint-test-password-function-with-value, comint-test-password-function-with-nil): Test new variable. 2019-12-22 Juri Linkov * lisp/files.el (save-buffers-kill-emacs): Mark "*Process List*" as dedicated. Using the 'dedicated' prop for display-buffer--maybe-at-bottom marks the window of the buffer "*Process List*" as dedicated, so it won't be replaced by another buffer that might be visited following links to process buffers from the buffer "*Process List*". 2019-12-22 Juri Linkov * lisp/tab-bar.el: Use alist-get instead of (cdr (assq ...)) * lisp/tab-bar.el (tab-bar-mode): Bind s-0 to tab-bar-switch-to-recent-tab. 2019-12-22 Juri Linkov * lisp/proced.el (proced-signal-list): Add more POSIX 1003.1-2001 signals. 2019-12-22 João Távora Fix bug in flex completion style's sorting and simplify This previous commit targetting this function introduced a bug whereby the completion table's sorting function wouldn't be called. That is fixed by this commit, which also simplifies the function further: it now skips re-sorting the completions completely if there is no minibuffer input at all (in other words, when flex isn't doing anything useful). * lisp/minibuffer.el (completion--flex-adjust-metadata): Simplify. 2019-12-22 Stefan Monnier * lisp/gnus/gnus-start.el: Use lexical-binding (gnus-group-change-level, gnus-make-hashtable-from-newsrc-alist): Use gnus-info-make. (gnus-make-hashtable-from-newsrc-alist): Prefer `gnus-info-group` to `car` when applied to a `gnus-info` object. (gnus-make-hashtable-from-killed): Remove unused vars `lists` and `list`. (gnus-gnus-to-quick-newsrc-format): Extract common code from if branches. * lisp/gnus/gnus.el (gnus-info-make): New constructor. 2019-12-22 Eli Zaretskii Fix wording of recent documentation changes * src/xdisp.c (syms_of_xdisp): * lisp/minibuffer.el (minibuffer-message-clear-timeout): * etc/NEWS: * doc/lispref/display.texi (Displaying Messages): Minor changes of wording of a recent commit. (Bug#38457) 2019-12-22 Michael Albinus Extend tramp-tests.el for other host name syntax and file name syntax * test/lisp/net/tramp-tests.el (inhibit-message) (connection-local-criteria-alist) (connection-local-profile-alist, async-shell-command-width): Declare. (tramp-test01-file-name-syntax) (tramp-test02-file-name-dissect): Set syntax to `default'. (tramp-test03-file-name-defaults) (tramp-test03-file-name-host-rules) (tramp-test03-file-name-method-rules) (tramp-test04-substitute-in-file-name) (tramp-test05-expand-file-name) (tramp-test06-directory-file-name, tramp-test44-auto-load): Skip unless syntax is `default'. (tramp-test06-directory-file-name, tramp-test10-write-region) (tramp-test17-dired-with-wildcards) (tramp-test26-file-name-completion): Handle IPv6 host names. (tramp-test21-file-links): Support all syntaxes. (tramp-test30-make-process, tramp-test45-unload): Suppress compiler warnings. (tramp-test37-make-auto-save-file-name): Skip for `separate' syntax. 2019-12-22 Michael Albinus * lisp/net/trampver.el (inhibit-message): Declare. 2019-12-22 Michael Albinus Add item to Frequently Asked Questions of Tramp manual * doc/misc/tramp.texi (Frequently Asked Questions): Add item for ControlMaster option on proxy hosts. Explain changing syntax to Ange FTP. 2019-12-22 Alan Third * lisp/term/ns-win.el (ns-insert-working-text): Comment is obsolete. 2019-12-22 João Távora Improve sorting of flex completion style with non-nil minibuffer-default This affects the behaviour of flex completion when there is a default completion and the user hasn't entered any input pattern to flex-match against. It is most visible when icomplete-mode or fido-mode are being used in conjunctio. When using M-x man, for instance, the default completion is picked from text around point. Say it is "emacs" (for Emacs's man page). It will not match the intended completion, "emacs(1)", exactly. If the user hasn't yet given any input to the completion prompt, that completion should bubble to top so that icomplete-force-complete-and-exit will select it, but it didn't. This new approach uses 'string-prefix-p' instead of 'equal' to find the default to bubble to the top. This strategy could eventually be improved, most naturally by flex-matching the default string to all the candidates and picking the highest scoring one. Additionally, the new strategy only considers minibuffer-default if there is no input in the minibuffer, which seems sensible and produces a small but noticeable speedup. * lisp/minibuffer.el (completion--flex-adjust-metadata): Reformulate sorting strategy. 2019-12-22 Masahiro Nakamura (tiny change) Fix display of working text on NS (Bug#23412, Bug#1453) * lisp/term/ns-win.el (ns-insert-working-text): (ns-delete-working-text): Change how working text is deleted to handle changed order of operations. * src/nsterm.m ([EmacsView insertText:]): Move deletion of working text until after insertion of new text. 2019-12-22 Alan Third Check if file is in iCloud drive (bug#38618) * src/nsfns.m (ns_set_represented_filename): Check whether the file is a `ubiquitous item', and if so don't display a proxy icon. 2019-12-21 Juri Linkov * lisp/tab-bar.el: Rename tab-bar-list to tab-switcher (bug#38624) 2019-12-21 Juri Linkov New variable set-message-function to show message at the end of the minibuffer * doc/lispref/display.texi (Displaying Messages): Document set-message-function and clear-message-function. * lisp/minibuffer.el (minibuffer-message-clear-timeout): New defcustom. (minibuffer-message-timer, minibuffer-message-overlay): New variables. (set-minibuffer-message, clear-minibuffer-message): New functions. (set-message-function, clear-message-function): Set variables to set-minibuffer-message and clear-minibuffer-message respectively. * src/keyboard.c (read_char): Call clear_message when Vclear_message_function is a function. * src/xdisp.c (set_message): Call Vset_message_function when it's a function. (clear_message): Call Vclear_message_function when it's a function. (syms_of_xdisp): New variables set-message-function and clear-message-function (bug#38457). 2019-12-21 Stephen Gildea backup-by-copying-when-privileged-mismatch applies to file gid, too. * lisp/files.el (backup-by-copying-when-privileged-mismatch): In addition to checking the file uid, a second test is added: if the file gid is not greater than backup-by-copying-when-privileged-mismatch, backup-by-copying-when-mismatch will also be forced on. * doc/emacs/files.texi, doc/lispref/backups.texi: Updated documentation. Also fixed a typo in the Emacs reference manual, changing "higher" to "no greater" so that the limit is no longer documented reversed. 2019-12-21 Eli Zaretskii ;* src/process.c (read_process_output): Fix last change. 2019-12-21 lin.sun Add new function `python-shell-send-statement' * lisp/progmodes/python.el (python-shell-send-statement): New function. (python-mode-map): Bind it to key "C-c C-e", and define a python-menu item for it. (Bug#38426) 2019-12-21 Eli Zaretskii Allow control of data amount read from subprocess in one chunk * src/process.c (syms_of_process) : New variable. (read_process_output): Use it instead of the hard-coded constant 4096. (Bug#38561) Use SAFE_ALLOCA to support large buffers for reading process output. * etc/NEWS: Mention 'read-process-output-max'. 2019-12-20 Stefan Monnier * lisp/international/mule-cmds.el: Fix bug#38642 (universal-coding-system-argument): Adjust the code to the way `universal-argument` works nowadays. Handle `prefix-arg` a bit more like `command_loop` does. * test/lisp/international/mule-tests.el (mule-cmds--test-universal-coding-system-argument): New test. 2019-12-20 Dmitry Gutov Speed up vc-dir-update * lisp/vc/vc-dir.el (vc-dir-update): Speed up. (https://lists.gnu.org/archive/html/emacs-devel/2019-12/msg00568.html) 2019-12-20 Alan Mackenzie Elisp manual: mention parse-partial-sexp as the source of a parser state, etc * doc/lispref/syntax.texi (Parser State): mention parse-partial-sexp as a function returning a parser state, and the function to which one supplies a parser state as an argument for continued parsing. Refine the documentation of syntax-ppss-context, and correct the text introducing it and another function. 2019-12-20 Eli Zaretskii Support setting OS names of threads on MS-Windows * src/w32fns.c (setup_w32_kbdhook): Don't initialize is_debugger_present here... (globals_of_w32fns): ...initialize it here. Also initialize the new global variable set_thread_description. * src/systhread.c: [WINDOWSNT] Include mbctype.h (w32_set_thread_name): New function. (MS_VC_EXCEPTION): New macro. (THREADNAME_INFO, IsDebuggerPresent_Proc) (SetThreadDescription_Proc): New typedefs. (w32_beginthread_wrapper): Call w32_set_thread_name to set the name of the new thread. * src/thread.h (struct thread_state): New member thread_name. * src/thread.c (Fmake_thread): Set the thread_name field of the new thread object. (run_thread): Free the thread_name member after the thread exits. 2019-12-20 Michael Albinus Fix error in tramp-process-sentinel * lisp/net/tramp.el (tramp-process-sentinel): Check, that process buffer is alive. 2019-12-19 Juri Linkov * lisp/tab-bar.el: Sort tab names by recency for tab switching (bug#38624) * lisp/tab-bar.el (tab-bar--tabs-recent): New function with code extracted from tab-bar--tab-index-recent. (tab-bar-switch-to-tab): Use tab-bar--tabs-recent in interactive spec to sort names of tabs by recency for default values of completing-read. (tab-prefix-map): Bind RET to tab-bar-select-tab-by-name, and 'm' to tab-move. 2019-12-18 Mattias Engdegård More precise 'regexp-opt' documentation * lisp/emacs-lisp/regexp-opt.el (regexp-opt): * doc/lispref/searching.texi (Regexp Functions): Be more specific about how the KEEP-ORDER argument actually works. If nil, the regexp guarantees a longest match; this is the behaviour that many callers implicitly rely on. 2019-12-18 Michael Albinus Fix an error with remote file name in compile.el * lisp/progmodes/compile.el (compilation-get-file-structure): Compute proper remote file name. (Bug#38648) 2019-12-17 Wilson Snyder Verilog-Mode collected updates. * lisp/progmodes/verilog-mode.el (verilog-compiler-directives): Support indenting `uselib. (verilog-read-decls): Fix AUTO* to ignore `protected regions. (verilog-read-auto-template-middle): Fix AUTO_TEMPLATEs with multiple module templates and at-REGEXPs, msg3183. Reported by Berk Akinci. 2019-12-17 Michael Albinus Improve Tramp's file-name-completion * lisp/net/tramp.el (tramp-handle-file-name-completion): Filter out "./" and "../", if there's only one other result. 2019-12-17 Mattias Engdegård Adjust cursor column when auto-scrolling during rectangle selection * lisp/mouse.el (mouse-drag-region-rectangle): Move cursor to the correct column during auto-scrolling both when crutches are used and not (bug#38641). Reported by Konrad Podczeck. 2019-12-16 Andrii Kolomoiets Make ls-files-unknown only return proper files, not directories * lisp/vc/vc-git.el (vc-git-dir-status-goto-stage): Make ls-files-unknown only return proper files, not directories (bug#38615). 2019-12-16 Dmitry Gutov vc-git-after-dir-status-stage: Avoid erroneous up-to-date status * lisp/vc/vc-git.el (vc-git-after-dir-status-stage): Don't set `up-to-date' status if the previous stage (`diff-index') has assigned some other status to the file (bug#38615). 2019-12-16 Eli Zaretskii Fix face merging for display strings broken by a recent commit * src/xfaces.c (face_at_string_position): Revert the last change, as it cannot possibly solve bug#38563. * src/xdisp.c (face_at_pos): Fix a typo made during last change here, which broke face merging for display strings. (Bug#38633) 2019-12-15 Juri Linkov * lisp/isearch.el (isearch-xterm-paste): Use code like in 'xterm-paste'. Add arg 'event' and use it to get pasted text. This allows pasting text on terminals to the search string (bug#18727, bug#36950). 2019-12-15 Juri Linkov Revert aa89c84e00d8dc85100e6fedab7631c415e6364d (bug#38457) * src/editfns.c (Fmessage): Don't use minibuffer-message. (Fmessage_in_echo_area): Remove function message-in-echo-area. (syms_of_editfns): Remove variable message-in-echo-area. * lisp/isearch.el (isearch--momentary-message): Remove message-in-echo-area. * lisp/minibuffer.el (minibuffer-message): Don't record message in the *Messages* buffer. (minibuffer-completion-help): Remove message-in-echo-area. * lisp/subr.el (do-after-load-evaluation): Remove discard-input (bug#38560) 2019-12-15 Juri Linkov * lisp/tab-line.el (tab-line-auto-hscroll): Improve. Better handling of tabs scrolled to the left. Don't scroll tabs that are already visible. Remove setq of buffer-undo-list because undo is disabled anyway in internal buffers with name " *temp*". 2019-12-15 Juri Linkov * lisp/tab-bar.el (tab-bar-handle-mouse): Handle close button. * lisp/tab-bar.el (tab-bar-select-tab): Message about selected tab (bug#38624) 2019-12-15 Robert Cochran * lisp/tab-bar.el (tab-bar-close-other-tabs): Use tab close customs 2019-12-15 Robert Cochran Document variables that affect tabs in function docstrings * lisp/tab-bar.el (tab-bar-new-tab-to): Mention tab-bar-post-open-functions in docstring. (tab-bar-close-tab): Mention tab-bar-prevent-tab-functions, tab-bar-tab-pre-close-functions, and tab-bar-close-last-tab-choice. 2019-12-15 Phil Sainty New command 'diff-buffers' * lisp/vc/diff.el (diff-buffers): New command. (diff, diff-no-select, diff-file-local-copy): Improve docstrings. * doc/emacs/files.texi: * etc/NEWS: Document new command, and the previously-undocumented ability for 'diff' to compare buffers. 2019-12-14 Paul Eggert Adjust intptr_t advice * doc/lispref/internals.texi (C Integer Types): Say to prefer uintptr_t when pointer arithmetic might overflow intptr_t. 2019-12-14 Paul Eggert Remove nothing from union output_data * src/frame.h (union output_data): Remove ‘nothing’ member. It has had no effect for quite some time. All uses removed. 2019-12-14 Eli Zaretskii Update documentation of pure-space overflow * doc/lispref/internals.texi (Garbage Collection) (Pure Storage): * src/alloc.c (Fgarbage_collect): Update the documentation of pure-space overflow for when pdumper is used. (Bug#38492) 2019-12-14 Stefan Monnier * lisp/minibuffer.el (completion-pcm--find-all-completions): Simplify a bit 2019-12-14 Michael Albinus * lisp/net/tramp.el (tramp-initial-file-name-regexp): Make it more precise. 2019-12-14 Eli Zaretskii Fix cross-references in ELisp manual * doc/lispref/commands.texi (Misc Events, Special Events): Fix cross-references. (Bug#38520) 2019-12-14 Eli Zaretskii Don't warn about pure-space overflow * lisp/startup.el (command-line-1): Don't warn about pure-space overflow if we were dumped with pdumper. (Bug#38492) 2019-12-13 Paul Eggert Fix typo that broke GNU/Linux unexec build * src/emacs.c (Fdump_emacs): Remove stray closing brace that breaks the build when configured with --with-dumping=unexec on GNU/Linux. (Apparently everybody is using pdumper now.) I introduced the bug in 2019-07-09T00:50:39Z!eggert@cs.ucla.edu. 2019-12-13 Juanma Barranquero xfaces.c: Silence spurious maybe-uninitialized compiler warning * src/xfaces.c (face_inherited_attr): Initialize 'ok' to false. 2019-12-13 João Távora Disable undo in the process buffers of a JSONRPC connection * lisp/jsonrpc.el (initialize-instance jsonrpc-process-connection): Use buffer-disable-undo in stdout and stderr buffers. * lisp/jsonrpc.el (Version): Bump to 1.0.9 2019-12-13 Michael Albinus * lisp/net/tramp.el (tramp-unload-tramp): Autoload function body. 2019-12-13 Andrii Kolomoiets python-shell-completion-at-point: respect simple-operator (Bug#37808) * lisp/progmodes/python.el (python-shell-completion-at-point): Also stop on simple-operator while parsing input. 2019-12-13 Mattias Engdegård Allow characters and single-char strings in rx charsets The `not' and `intersection' forms, and `or' inside these forms, now accept characters and single-character strings as arguments. Previously, they had to be wrapped in `any' forms. This does not add expressive power but is a convenience and is easily understood. * doc/lispref/searching.texi (Rx Constructs): Amend the documentation. * etc/NEWS: Announce the change. * lisp/emacs-lisp/rx.el (rx--charset-p, rx--translate-not) (rx--charset-intervals, rx): Accept characters and 1-char strings in more places. * test/lisp/emacs-lisp/rx-tests.el (rx-not, rx-charset-or) (rx-def-in-charset-or, rx-intersection): Test the change. 2019-12-13 Noam Postavsky Add prefix to help.el uni-confusable* vars * lisp/help.el (help-uni-confusables, help-uni-confusables-regexp): Rename from uni-confusable and uni-confusables-regexp, respectively. (help-uni-confusable-suggestions): Use ngettext. Use new variable name. * lisp/emacs-lisp/lisp-mode.el (lisp--match-confusable-symbol-character): Use new variable name. 2019-12-13 Eli Zaretskii A better fix for extension of overlay string's faces * src/xdisp.c (face_at_pos): Revert previous change that rejected the underlying face if it failed the filtering criteria. * src/xfaces.c (face_at_string_position): Reset the base face's attribute used for filtering faces if the attribute is t. (Bug#38563) 2019-12-12 Juri Linkov * lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): Use 'user-error'. * lisp/wid-edit.el (widget-field): Add ':extend t' to defface (bug#37774) 2019-12-12 Mattias Engdegård Use `or' instead of `union' for charset union in rx Design change suggested by Stefan Monnier. * doc/lispref/searching.texi (Rx Constructs): * etc/NEWS: Document. * lisp/emacs-lisp/rx.el (rx--translate-or): Detect charset arguments. (rx--charset-p): New. (rx--translate-not, rx--charset-intervals, rx--translate-union): Change from `union' to `or'. (rx--translate-form, rx--builtin-forms, rx): Remove `union'. * test/lisp/emacs-lisp/rx-tests.el (rx-union, rx-def-in-union) (rx-intersection): Rename tests and change `union' to `or' and `|'. 2019-12-12 Michael Albinus Optimize prompt search in Tramp * lisp/net/tramp.el (tramp-search-regexp): New defun. (tramp-check-for-regexp, tramp-process-sentinel): * lisp/net/tramp-adb.el (tramp-adb-send-command-and-check) (tramp-adb-wait-for-output): * lisp/net/tramp-sh.el (tramp-wait-for-output) (tramp-send-command-and-check): * lisp/net/tramp-smb.el (tramp-smb-handle-set-file-acl): Bind search length. 2019-12-12 Juanma Barranquero Avoid spurious warning about maybe-uninitialized variable * src/xdisp.c (face_at_pos): Initialize base_face_id to 0 to silence the compiler. 2019-12-12 Eli Zaretskii Fix face extension of overlay strings on buffer text with faces * src/xdisp.c (face_at_pos): Reject the face returned by 'underlying_face_id' when we are filtering by face attribute, and that attribute's value fails the filter test. (Bug#38563) 2019-12-11 Robert Pluim Treat passed strings as raw-text when percent-escaping in epg The strings contained in gpg keys can contain UTF-8 data, but can also use percent-escapes to encode non-ASCII chars. When converting those escapes, use 'raw-text' coding system rather than 'string-to-unibyte', since the latter signals an error for non-ASCII characters. * lisp/epg.el (epg--decode-percent-escape): Convert the passed string to raw-text before treating percent escapes (Bug#38512). 2019-12-11 Stefan Monnier * lisp/emacs-lisp/debug.el (debug-on-entry): Allow undefined functions Allow placing debug-on-entry on a function not-yet-defined, which is convenient when the problem you're investigating happens while the relevant files are loaded. 2019-12-11 Stefan Monnier * lisp/font-lock.el (font-lock-fontify-region): Widen here (bug#38049) (font-lock-default-fontify-region): Instead of here. 2019-12-11 Stefan Monnier * lisp/calculator.el (cl-lib): Require at run-time as well. Needed since we pass the `cl-flet` macro to `eval` in `calculator-funcall`. 2019-12-11 Stefan Monnier * lisp/gnus/message.el (message-expand-name-standard-ui): New option (message--old-style-completion-functions): New var. (message-completion-function): Allow functions on `message-completion-alist` to follow the capf protocol. (message-completion-alist): Adjust docstring accordingly. Simplify regexps and make them apply more liberally. (message-expand-group): Use the capf protocol. (completion-category-defaults): Use 'substring' completion style by default for email addresses. (message--bbdb-query-with-words, message--name-table): New functions. (message-expand-name): Use them to obey `message-expand-name-standard-ui`. 2019-12-11 Stefan Monnier * lisp/net/eudc.el (eudc-query-with-words): New function Extracted from eudc-expand-inline. (eudc-expand-inline): Use it. 2019-12-11 Eli Zaretskii Avoid infloop in face merging due to bad face spec * src/xfaces.c (face_inherited_attr): Don't infloop if get_lface_attributes fails in the inner loop. Reported by Yuri D'Elia . 2019-12-11 Paul Eggert * src/xterm.c: Remove long-obsolete comments. 2019-12-11 Robert Pluim Check for GUI frame in ns_color_index_to_rgba * src/nsterm.m (ns_color_index_to_rgba): Check that we're using a GUI frame before converting color (Bug#38564). 2019-12-11 Michael Albinus Don't spam the echo area and the *Messages* buffer in Tramp * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered): When called during `revert-buffer', don't spam the echo area and the *Messages* buffer. 2019-12-10 Paul Eggert Improve tv_nsec doc * doc/lispref/internals.texi (Module Values): Document tv_nsec more accurately. 2019-12-10 Paul Eggert Just use size_t for emacs_limb_t * src/emacs-module.h.in: Do not include limits.h; no longer needed. (emacs_limb_t, EMACS_LIMB_MAX): Now size_t and SIZE_MAX. 2019-12-10 Mattias Engdegård Add `union' and `intersection' to rx (bug#37849) These character set operations, together with `not' for set complement, improve the compositionality of rx, and reduce duplication in complicated cases. Named character classes are not permitted in set operations. * lisp/emacs-lisp/rx.el (rx--translate-any): Split into multiple functions. (rx--foldl, rx--parse-any, rx--generate-alt, rx--intervals-to-alt) (rx--complement-intervals, rx--intersect-intervals) (rx--union-intervals, rx--charset-intervals, rx--charset-union) (rx--charset-all, rx--charset-intersection, rx--translate-union) (rx--translate-intersection): New. (rx--translate-not, rx--translate-form, rx--builtin-forms, rx): Add `union' and `intersection'. * test/lisp/emacs-lisp/rx-tests.el (rx-union ,rx-def-in-union) (rx-intersection, rx-def-in-intersection): New tests. * doc/lispref/searching.texi (Rx Constructs): * etc/NEWS: Document `union' and `intersection'. 2019-12-10 Alan Third Fix XBM files on NS (bug#26133) Reinstate some of the functionality removed in commit 67a878f78f879ce534232408c34dd11f42dd802b. * src/nsimage.m (ns_image_from_XBM): Use new reverseBytes argument. ([EmacsImage initFromXBM:width:height:fg:bg:reverseBytes:]): Add ability to reverse the contents of each byte for use with XBMs, while still working with fringe bitmaps. * src/nsterm.h ([EmacsImage initFromXBM:width:height:fg:bg:reverseBytes:]): Modified function definition. * src/nsterm.m (ns_draw_fringe_bitmap): Use new reverseBytes argument. 2019-12-10 Alan Third Fix dabbrev-completion (bug#17899) * lisp/dabbrev.el (dabbrev--check-all-buffers): Add new variable. (dabbrev-completion): Lexical scoping means we can't use let to override global variables, so use setq. (dabbrev--reset-global-variables): Reset new variable. (dabbrev--make-friend-buffer-list): Use new variable. * test/lisp/dabbrev-tests.el (dabbrev-completion-test): (dabbrev-completion-test-with-argument): New tests. 2019-12-10 Alan Third Fix mouse-position on macOS (bug#4892) * src/nsterm.m (ns_mouse_position): Implement a search for the frame under the mouse pointer. 2019-12-10 Federico Tedin Simplify call to add-to-history in read_minibuf * src/minibuf.c (read_minibuf): Avoid restoring the previous buffer, as this is already done at the end of the function; call `add-to-history' after that point. 2019-12-09 Paul Eggert Spelling fixes 2019-12-09 Paul Eggert Prefer static to extern in ebrowse * lib-src/ebrowse.c (info_where, info_cls, info_member) (info_position, options, yyival, yytext, yytext_end, yyout) (yyline, filename, is_ident, is_digit, is_white, f_append) (f_verbose, f_very_verbose, f_structs, f_regexps) (f_nested_classes, min_regexp, max_regexp, inbuffer, in) (inbuffer_size, string_start, class_table, member_table) (namespace_alias_table, global_symbols, current_namespace) (all_namespaces, namespace_stack, namespace_stack_size) (namespace_sp, tk, keyword_table, search_path) (search_path_tail, scope_buffer, scope_buffer_size) (scope_buffer_len): Now static. (options): Now const. 2019-12-09 Paul Eggert * lib-src/etags.c (pot_etags_version): Remove; unused. * lib-src/etags.c (Forth_suffixes): Now static. 2019-12-09 Dmitry Gutov Rename faces used in faces-tests.el * test/data/themes/faces-test-light-theme.el: * test/data/themes/faces-test-dark-theme.el: Update accordingly. * test/lisp/faces-tests.el (faces--test-extend-with-themes): Don't use the diff-mode faces. Rename the definitions. 2019-12-09 Dmitry Gutov Make ':extend' inherited from default spec unless overridden * lisp/faces.el (face-spec-recalc): Handle the :extend attribute specially and always inherit it from the default spec unless overwritten in a theme (bug#37774). * test/lisp/faces-tests.el (faces--test-data-dir): New variable. (faces--test-extend-with-themes): Use test themes instead of ones from etc/themes. Update expected values. * test/data/themes/faces-test-dark-theme.el: New file. * test/data/themes/faces-test-light-theme.el: New file. * doc/lispref/display.texi (Face Attributes): Update the description of ':extend'. * etc/NEWS: Update the entry for ':extend'. * etc/themes/adwaita-theme.el: * etc/themes/deeper-blue-theme.el: * etc/themes/dichromacy-theme.el: * etc/themes/leuven-theme.el: * etc/themes/light-blue-theme.el: * etc/themes/manoj-dark-theme.el: * etc/themes/misterioso-theme.el: * etc/themes/tango-dark-theme.el: * etc/themes/tango-theme.el: * etc/themes/tsdh-dark-theme.el: * etc/themes/tsdh-light-theme.el: * etc/themes/wheatgrass-theme.el: * etc/themes/wombat-theme.el: Remove the now-redundant ':extend' attribute in all the themes. 2019-12-09 Juri Linkov * lisp/emacs-lisp/map-ynp.el (read-answer): Use [remap self-insert-command] This reverts the last change that replaced [remap self-insert-command] with [t]. The user should have freedom of using any command in the minibuffer. (bug#32738) 2019-12-09 Paul Eggert Improve module bignum doc * doc/lispref/internals.texi (Module Values): Tighten up wording and code, and make the long example self-contained. Fit things in margins. 2019-12-09 Dmitry Gutov project-find-regexp: Default to symbol at point * lisp/progmodes/project.el (project--read-regexp): Don't rely on the Xref backend to provide the default value. 2019-12-09 Eli Zaretskii Add more tests for face :extend attribute * test/lisp/faces-tests.el (faces--test-extend-with-themes): New set of tests for verifying the :extend attribute across theme loading and unloading, and also via face inheritance. (Bug#37774) 2019-12-08 Juri Linkov * lisp/emacs-lisp/map-ynp.el (read-answer): Allow more SHORT-ANSWER types. Treat SHORT-ANSWER as a character is characterp returns non-nil. Otherwise, use key-description to print it. Use catch-all [t] in keymap instead of [remap self-insert-command]. (bug#32738) 2019-12-08 Juri Linkov * doc/emacs/mini.texi (Minibuffer Edit): Add minibuffer-depth-indicate-mode. * doc/emacs/search.texi (Regexp Backslash): Change xref from "(elisp) Syntax Tables" to "(elisp) Syntax Class Table". * doc/lispref/display.texi (Other Display Specs): Change xref from "Images" to "Image Descriptors". (bug#38519) 2019-12-08 Juri Linkov * lisp/simple.el (shell-command-on-region): Use set-buffer-major-mode. This enables globalized minor modes explicitly after get-buffer-create creates "*Shell Command Output*" buffer (bug#38111). 2019-12-08 Juri Linkov Move recenter/scroll keybindings from minibuffer-local-map to read-char map * lisp/minibuffer.el (minibuffer-local-map): Move remap of recenter/scroll keybindings to read-char-from-minibuffer-map. * lisp/subr.el (read-char-from-minibuffer-map): Move remap of recenter/scroll keybindings here from minibuffer-local-map. (bug#38502) 2019-12-08 Juri Linkov * lisp/tab-line.el (tab-line-format): Use composite cache key (bug#38522) 2019-12-08 Eric Abrahamsen Continued fixes to gnus registry loading * lisp/gnus/gnus-registry.el (gnus-registry-db): Do not initialize this variable to an empty database, that should only be done for new databases. (gnus-registry-load): Remove "force" argument, don't check if the database is already loaded, as we're only going to load it once. (gnus-registry-initialize): Either load the db directly, or set up a hook to do it later. (gnus-registry-install-hooks): Don't load on gnus-read-newsrc-el-hook. 2019-12-07 Juri Linkov * lisp/man.el (Man-width-max): New defcustom (bug#32536, bug#9385) (Man-columns): New buffer-local variable. (Man-columns): New function. (Man-start-calling): Call Man-columns and set buffer-local Man-columns. (Man--window-state-change-timer): New internal variable. (Man--window-state-change): New internal function. (Man-fit-to-window): New function. (Man-mode): Add Man--window-state-change to local hook window-state-change-functions. * lisp/image-mode.el (image-fit-to-window): Add window arg to window-buffer call. 2019-12-07 Robert Cochran Add hooks for after tab open, before close, and to prevent closing * lisp/tab-bar.el (tab-bar-tab-post-open-functions, tab-bar-tab-prevent-close-functions, tab-bar-tab-pre-close-functions): New defcustoms (tab-bar-new-tab-to, tab-bar-close-tab): Use new defcustoms 2019-12-07 Jackson Ray Hamilton Ignore comments and strings when matching JSX * lisp/progmodes/js.el (js-jsx--matching-close-tag-pos): Ignore comments and strings. * test/manual/indent/jsx-comment-string.jsx: New test. 2019-12-07 Alan Mackenzie CC Mode: Allow most functions on post-self-insert-hook to be called This contrasts with the previous state where no such functions got called. This fixes bug #38406. * lisp/progmodes/cc-cmds.el (c--unsafe-post-self-insert-hook-functions): New variable. (c--call-post-self-insert-hook-more-safely-1): New function. (c--call-post-self-insert-hook-more-safely): New macro. (c-electric-pound, c-electric-brace, c-electric-slash, c-electric-star) (c-electric-semi&comma, c-electric-colon, c-electric-lt-gt, c-electric-paren): Invoke c--call-post-self-insert-hook-more-safely (which calls most of the hook post-self-insert-hook) at the end of each of the commands. 2019-12-07 Michael Albinus Add unload code to tramp-integration.el * lisp/net/tramp-integration.el (info-lookup->mode-cache) (info-lookup->topic-cache, info-lookup-alist): Declare. (ido, ivy, info-look): Adapt `tramp-integration-unload-hook'. 2019-12-07 Eli Zaretskii Corrections in semantic.texi * doc/misc/semantic.texi (Parser code, Tag handling) (Semanticdb Internals, Analyzer Internals, Tools): Fix file names according to what was actually imported from the original CEDET. (Bug#38451) 2019-12-07 Eli Zaretskii Fix documentation of '-position' server command * lisp/server.el (server-process-filter): Fix the description of "-position" command to match the reality. (Bug#38443) 2019-12-07 Andrii Kolomoiets Ensure buffer is alive in python-pdbtrack-unset-tracked-buffer * lisp/progmodes/python.el (python-pdbtrack-unset-tracked-buffer): Check if buffer `python-pdbtrack-tracked-buffer' is alive. (Bug#38413) 2019-12-07 Eli Zaretskii Fix fallout from fixing bug#37782 * src/keyboard.c (read_key_sequence): Modify the fix for bug#37782 so that it applies only to keyboard keys, not to other events, such as a new buffer. (Bug#38132) 2019-12-07 Eli Zaretskii Minor fix in the ELisp manual * doc/lispref/files.texi (Saving Buffers): Remove the reference to the obsolete Fast Lock mode. (Bug#37956) 2019-12-06 Eli Zaretskii Remove duplicate macros from ses.el * lisp/ses.el (1value, noreturn): Macros deleted, as we nowadays have them in subr.el. (Bug#38514) 2019-12-06 Paul Eggert Test format-time-string padding Adapted from tests written by Stephen Gildea. * test/src/timefns-tests.el: (format-time-string-padding-minimal-deletes-unneeded-zeros) (format-time-string-padding-minimal-retains-needed-zeros) (format-time-string-padding-spaces) (format-time-string-padding-zeros-adds-on-insignificant-side): New tests. 2019-12-06 Paul Eggert Update from Gnulib This incorporates: 2019-12-06 nstrftime: better width support for %N, %z 2019-12-03 Avoid hassles caused by [[noreturn]] in C++ 2019-12-02 Fix mistakes in --enable-threads=isoc fixes from 2019-12-01 * admin/merge-gnulib (AVOIDED_MODULES): Avoid pthread-h. * lib/_Noreturn.h, lib/nstrftime.c, m4/gnulib-common.m4: * m4/timer_time.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2019-12-06 Michael Albinus Configure info-look.el to recognize Tramp symbols * lisp/net/tramp-integration.el (info-lookup->cache) (info-lookup->mode-value, info-lookup->other-modes) (info-lookup->topic-value, info-lookup-maybe-add-help) (info-lookup-cache): Declare. (info-look): Configure info-look.el to recognize Tramp symbols. 2019-12-06 Eli Zaretskii Clarify documentation of functions that use the default face * lisp/simple.el (default-font-height, default-font-width) (default-line-height): Say in the doc strings that the default face these functions use is for the currently selected frame. * doc/lispref/display.texi (Attribute Functions) (Low-Level Font): Document more clearly the dependence of the results of 'face-font', 'default-font-width', and 'default-font-height' on the frame's definition of the default face. 2019-12-06 Eli Zaretskii Fix set-marker when the position is larger than the largest buffer * src/marker.c (set_marker_internal): Handle the case where POSITION is beyond PTRDIFF_MAX, which can happen if Emacs was built --with-wide-int. Bug uncovered by the recently added overlay tests. 2019-12-05 Thierry Volpiatto Merge branch 'completion-first-difference_face' 2019-12-05 Thierry Volpiatto Fix setting completions* faces in `completion-pcm--hilit-commonality` so that these faces doesn't override possible already existing faces in other UIs. * lisp/minibuffer.el (completion-pcm--hilit-commonality): Use `add-face-text-property` instead of `put-text-property`. 2019-12-05 Andreas Politz * test/src/buffer-tests.el: Add loads of overlay tests Taken from the `feature/noverlay` branch. Suggested by Vladimir Kazanov . 2019-12-05 Paul Eggert 2019-12-05 regexp lint fixes * lisp/org/org-agenda.el (org-agenda-filter): Fix unescaped literal ‘+’ in regexp. Reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-12/msg00215.html * lisp/org/org.el (org-clone-subtree-with-time-shift): Fix a regexp typo that mishandled strings like ‘\1d’, reported by the same emaikl. * lisp/progmodes/verilog-mode.el (verilog-inject-inst): Omit unnecessary ‘?’ in regexp. Reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-12/msg00217.html 2019-12-05 Eli Zaretskii Another fix for :extend when :inherit is used * src/xfaces.c (face_inherited_attr): Support also values of :inherit which are lists. (Bug#37774) 2019-12-05 Eli Zaretskii Minor copyedits of 'jit-lock-antiblink-grace's docs * lisp/jit-lock.el (jit-lock-antiblink-grace): * etc/NEWS (value): Reword the NEWS entry and the doc string. 2019-12-05 Eli Zaretskii Fix recent modifications in emacs-module-tests * test/data/emacs-module/mod-test.c (extract_big_integer): Fix calculation of size of 'magnitude' when 'emacs_limb_t' is wider than 'unsigned long'. * test/src/emacs-module-tests.el (module--test-assertions--load-non-live-object) (module--test-assertions--call-emacs-from-gc): On MS-Windows, check also mod-test-emacs with ".exe" appended, before skipping the tests. 2019-12-05 Federico Tedin Make HIST arg of read-from-minibuffer work with buffer-local vars * lisp/simple.el (minibuffer-history-values): New function, should be used to access the minibuffer input history variable when the minibuffer might be active. If the variable is buffer-local, the previous buffer's value will be used. (goto-history-element): Use the new function to access the minibuffer history. (minibuffer-history-isearch-wrap): Use the new function to access the minibuffer history. * src/minibuf.c (read_minibuf): Switch to previous buffer temporarily before updating history list (Bug#38317). (read-from-minibuffer): Extend documentation to mention that the result of using the command will be added to the history list by default. * doc/lispref/minibuf.texi (Minibuffer History): Mention the possibility of using a buffer-local variable as history. * etc/NEWS: Announce changes. 2019-12-04 Paul Eggert Pacify GCC 9.2.1 with recent module changes * src/emacs-module.c (module_encode): Remove unused decl. (module_extract_big_integer): Pacify gcc -Wenum-compare. 2019-12-04 Paul Eggert Fix regex repetition of repetitions Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-12/msg00066.html * lisp/gnus/gnus-util.el (gnus-emacs-version): * lisp/mail/rfc2368.el (rfc2368-mailto-regexp): * lisp/net/tramp-sh.el (tramp-sh-inotifywait-process-filter): * lisp/obsolete/terminal.el (te-parse-program-and-args): * lisp/org/org-table.el (org-table-wrap-region): * lisp/progmodes/verilog-mode.el (verilog-inject-inst): Avoid repetition-of-repetition in regexp. 2019-12-04 Philipp Stephani Fix small bugs introduced in commit 096be9c454 * src/module-env-27.h: * src/emacs-module.c (module_make_big_integer): Use 'emacs_limb_t' instead of 'unsigned long' consistently 2019-12-04 Juri Linkov * lisp/tab-line.el: Cache the tab-line-format template. (tab-line-format): Cache the result of tab-line-format-template in window. (tab-line-format-template): New function that returns the value to cache. 2019-12-04 Juri Linkov * lisp/windmove.el (windmove-display-new-tab): New command. (windmove-display-default-keybindings): Bind it to '?t'. (windmove-display-in-direction): Call tab-bar-new-tab when 'dir' is 'new-tab'. 2019-12-04 Juri Linkov * lisp/tab-bar.el (tab-bar-get-buffer-tab): Move code closer to its use. 2019-12-04 Juri Linkov * lisp/tab-bar.el (switch-to-buffer-other-tab): Use display-buffer-in-tab. (tab-bar--tab): Use float-time instead of integer. This improves correct detection of recent tabs switched within 1 sec. (tab-bar--current-tab, tab-bar--current-tab-index) (tab-bar--tab-index, tab-bar--tab-index-by-name) (tab-bar--tab-index-recent): Add optional arg FRAME. (tab-bar-move-tab-to-frame): Add with-selected-frame for tab-bar-close-tab. (tab-bar--reusable-frames): New function. (tab-bar-get-buffer-tab): Add index to the found tab. (display-buffer-in-tab): Use `tab-name' entry instead of `name'. Add `reusable-frames' entry. (bug#38354) 2019-12-04 João Távora New jit-lock-antiblink-grace feature * lisp/jit-lock.el (jit-lock-antiblink-grace): New defcustom. (jit-lock--antiblink-line-beginning-position) (jit-lock--antiblink-string-or-comment): New variables (jit-lock--antiblink-post-command): New helper. (jit-lock-mode): Tweak post-command-hook and jit-lock-context-timer. * etc/NEWS: Mention jit-lock-antiblink-grace 2019-12-04 Philipp Stephani Use new function encode_string_utf_8 for the module API, too * src/emacs-module.c (module_encode): Remove. (module_copy_string_contents): Use encode_string_utf_8. (syms_of_module): Define symbol 'unicode-string-p'. 2019-12-04 Philipp Stephani * src/emacs-module.c: Add a few more restrictions for emacs-module.h 2019-12-04 Philipp Stephani Change module interface to no longer use GMP objects directly. As described in the new comment added to emacs-module.c, using GMP directly in the module interface has significant downsides: it couples the module interface directly to the implementation and requires module authors to link their module against the same GMP library as Emacs itself, which is often difficult and an unnecessary burden. By picking a representation for the magnitude that often matches the one used by GMP, we can avoid overhead when converting from and to GMP in most cases. Loading the test module in test/data/emacs-module and evaluating (dotimes (_ 10000) (mod-test-double (* 2 most-negative-fixnum))) under Callgrind shows that on my (GNU/Linux) machine Emacs only spends 10% of the CPU time of mod-test-double in mpz_import and mpz_export combined, even though that function does little else. (By contrast, 30% is spent in allocate_pseudovector.) * src/emacs-module.h.in: Don't check EMACS_MODULE_GMP. Don't include gmp.h. Remove emacs_mpz structure. Instead, define type alias emacs_limb_t and macro EMACS_LIMB_MAX. * src/module-env-27.h: Change interface of extract_big_integer and make_big_integer to take a sign-magnitude representation instead of mpz_t. * src/emacs-module.c: Don't check EMACS_MODULE_GMP or EMACS_MODULE_HAVE_MPZ_T. Add a comment about the chosen implementation. (module_extract_big_integer, module_make_big_integer): Reimplement without using mpz_t in the interface. * doc/lispref/internals.texi (Module Values): Adapt function documentation and example. Stop mentioning GMP and EMACS_MODULE_GMP. * test/data/emacs-module/mod-test.c: Don't define EMACS_MODULE_GMP or EMACS_MODULE_HAVE_MPZ_T. (memory_full, extract_big_integer, make_big_integer): New helper functions, identical to example in the Info documentation. (Fmod_test_nanoseconds, Fmod_test_double): Adapt to new interface. 2019-12-04 Bastien etc/ORG-NEWS: Fix contents 2019-12-04 Juanma Barranquero * lisp/doc-view.el (doc-view-doc-type): Doc fix. 2019-12-04 Mattias Engdegård Don't use the return value of 'push' Although 'push' returns the modified list, it isn't actually documented to do so, so don't rely on it. * lisp/emacs-lisp/rx.el (rx--translate-any): Add progn. 2019-12-03 Juanma Barranquero Silence warnings in Org 9.3 * lisp/org/ob-eshell.el (eshell-send-input): Declare. (eshell-last-output-start, eshell-last-output-end) (eshell-last-input-end): Defvar. * lisp/org/org-keys.el (cl-lib): Require. (org-CUA-compatible): Move up defvaralias. 2019-12-03 Juri Linkov * lisp/tab-bar.el (tab-bar-move-tab-to-frame): New command (bug#38354) (tab-bar-tabs, tab-bar--tab): Add optional arg FRAME. (tab-bar-get-buffer-tab): Funcall tab-bar-tabs-function with arg FRAME instead of using with-selected-frame. 2019-12-03 Stefan Monnier * lisp/gnus/message.el (message-sendmail-envelope-from): Fix typo Reported by David Edmondson . 2019-12-03 Bastien Update Org to 9.3 2019-12-03 Stefan Monnier (message-sendmail-envelope-from): Obey `mail-envelope-from` even if set later * lisp/gnus/message.el (message-sendmail-envelope-from): Change default. (message--sendmail-envelope-from): New function. (message-sendmail-envelope-from): Use it. * lisp/mail/emacsbug.el (report-emacs-bug): Use it. 2019-12-03 Stefan Monnier * lisp/minibuffer.el (completion-pcm--optimize-pattern): New function This fixes bug#38458 where a final `point` in the pattern prevented the expected normal behavior of point moving after the completion of the final implicit `any`. (completion-pcm--find-all-completions) (completion-substring--all-completions): Use it. (completion-basic--pattern): Don't both removing "" any more. (completion-basic-try-completion): Use it as well as `completion-basic--pattern`. 2019-12-03 Mattias Engdegård Avoid duplicated character classes in rx For example, (any digit digit) should produce "[[:digit:]]", not "[[:digit:][:digit:]]". * lisp/emacs-lisp/rx.el (rx--translate-any): Deduplicate character classes. * test/lisp/emacs-lisp/rx-tests.el (rx-any): Add test case. 2019-12-02 Tobias Bading (tiny change) Fix incorrect GTK menus on HiDPI monitors with scaling factor > 1 This should fix Bug#31223, Bug#28106, Bug#23672 as well as Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/emacs25/+bug/1695228 Also fixes the formerly unscaled Y value returned by frame-monitor-workarea (and display-monitor-attributes-list). For details on why some GTK menus were empty please see thread https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg01061.html * src/gtkutil.c (menubar_map_cb, xg_update_frame_menubar): Scale up req.height so that the menu bar's height is in device pixels as expected. (xg_event_is_for_menubar): Scale down rec.x and rec.y so that gtk_widget_intersect() works as intended. * src/xfns.c (Fx_display_monitor_attributes_list): Scale work.x and work.y up to be in device pixels. 2019-12-02 YAMAMOTO Mitsuharu Fix typo in populating otf_capability method for HarfBuzz * src/ftcrfont.c (syms_of_ftcrfont_for_pdumper) [HAVE_HARFBUZZ]: * src/ftfont.c (syms_of_ftfont_for_pdumper) [HAVE_HARFBUZZ]: * src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper) [HAVE_HARFBUZZ]: * src/xftfont.c (syms_of_xftfont_for_pdumper) [HAVE_HARFBUZZ]: Fix typos. 2019-12-02 Juri Linkov New functions window-state-buffers and tab-bar-get-buffer-tab (bug#38354) * lisp/window.el (window-state-buffers): New function. * lisp/tab-bar.el (tab-bar-get-buffer-tab): New function. * lisp/emacs-lisp/seq.el (seq-some): Add autoload cookie. * lisp/desktop.el (desktop-buffers-not-to-save-function): New variable. (desktop-save-buffer-p): Use it. 2019-12-02 Juanma Barranquero Don't save/restore font-backend in framesets (bug#38442) * lisp/frameset.el (frameset-persistent-filter-alist): Add :never filter for `font-backend'. 2019-12-01 Juanma Barranquero ibuf-ext.el: Fix previous change * lisp/ibuf-ext.el (ibuffer-generate-filter-groups): Use `cl-destructuring-bind' instead of `cl-multiple-value-bind', as we don't want to assume how multiple-values are implemented, and we know a list is being returned anyway. Suggested by Stefan Monnier. 2019-12-01 Dmitry Gutov * lisp/vc/diff-mode.el (diff-context): Set 'extend t' (bug#37774). 2019-12-01 Mattias Engdegård Temporary enable transient-mark-mode for rectangle selection * lisp/mouse.el (mouse-drag-region-rectangle): Enable transient-mark-mode during selection (bug#38431). 2019-12-01 Michael Albinus Suppress superfluous messages in tramp-tests * test/lisp/net/tramp-tests.el (tramp-test10-write-region) (tramp-test10-write-region-file-precious-flag) (tramp-test34-connection-local-variables) (tramp-test36-vc-registered): Let-bind `inhibit-message'. 2019-12-01 Juanma Barranquero ibuffer-mark-by-content-regexp: don't depend on `cl-some' * lisp/ibuf-ext.el (ibuffer-mark-by-content-regexp): Use `cl-dolist' instead of `cl-some' to avoid a run-time dependency on cl-lib that triggers an unreported bug similar to bug#38430. 2019-12-01 Juanma Barranquero ibuffer-do-isearch: don't depend on `cl-values-list' (bug#38430) * lisp/ibuf-ext.el (ibuffer-generate-filter-groups): Don't call `cl-values-list'. Our implementation of that function just checks that its argument is a list, and then returns it. In this specific case, the argument is guaranteed to be a list. 2019-11-30 Mattias Engdegård Improved mouse rectangle selection robustness (bug#38013) Make the rectangular selection work better with display-line-numbers-mode and side-by-side windows. Also make the mouse track the text cursor in a consistent way. * lisp/mouse.el (mouse--rectangle-track-cursor): Added constant. (mouse-drag-region-rectangle): Take the line-number width into account, and use window-relative columns. Track either the cursor or rectangle corner with more care. 2019-11-30 Juri Linkov * lisp/tab-line.el (tab-line-auto-hscroll): Don't let-bind buffer-local values Use setq to set buffer-local values of truncate-lines and buffer-undo-list. This will prevent leaking of let-bound values to buffer-local values of the minibuffer. 2019-11-30 Juri Linkov * lisp/gnus/gnus-win.el (gnus-configure-frame): Check for window-live-p. * doc/misc/gnus.texi (Tabbed Interface): New node. (bug#37998) 2019-11-30 Juri Linkov * lisp/subr.el: Add discard-input to more functions. * lisp/subr.el (read-char-from-minibuffer-insert-other) (y-or-n-p-insert-other): Use discard-input in case of user mistake. (do-after-load-evaluation): Add discard-input before calling 'message', so in case of the active minibuffer, calling minibuffer-message will allow sit-for to wait the complete timeout, because discard-input will discard all initial events that prevent sit-for from waiting during startup. https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00581.html 2019-11-30 Alan Mackenzie CC Mode. Fix fontification bug with unterminated quotes on adjacent lines In particular, with these unterminated quotes on each of two adjacent lines, the following text was spuriously fontified with string face. * lisp/progmodes/cc-defs.el (c-search-backward-char-property-with-value-on-char): New macro. * lisp/progmodes/cc-mode.el (c-clear-string-fences): Check whether there is an unmatched quote at a lower buffer position which should match the current quote, rather than wrongly assuming the latter is unmatched and marking it with a punctuation syntax. (c-font-lock-fontify-region): Ensure all pertinent parts of the buffer have string fence properties applied before performing any syntactic operations on it; in particular, this applies to a quote at an earlier buffer position which "matches" one inside the region about to be fontified. 2019-11-30 Juri Linkov * lisp/image.el: Support image scaling with mouse in other buffer. * lisp/image.el (image-increase-size, image-decrease-size): Add optional arg position. (image-mouse-increase-size, image-mouse-decrease-size): Use '(point-marker)' for arg position. (image--get-image): Use get-char-property from position if non-nil, and its buffer. (image--get-imagemagick-and-warn, image--change-size): Add optional arg position. 2019-11-30 Juri Linkov Use run-with-idle-timer instead of debounce for responsive image scaling. * lisp/emacs-lisp/timer.el (debounce, debounce-reduce): Revert macro addition. https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg01133.html * lisp/image.el (image-increase-size, image-decrease-size): Use run-with-idle-timer. (image--change-size): Rename back from image--change-size-function. * lisp/image-mode.el (image-mode--setup-mode): Remove hooks window-size-change-functions and window-selection-change-functions (bug#32672) (image-fit-to-window): Rename from image--window-change-function. (image--window-state-change): Rename from image--window-change. Use run-with-idle-timer. 2019-11-30 Juanma Barranquero Fix compilation warning in vc-hg.el * lisp/vc/vc-hg.el (vc-read-revision): Declare. 2019-11-30 Eli Zaretskii Minor fixes in last change * doc/emacs/maintaining.texi (Switching Branches) (Pulling / Pushing, Merging): Fix markup of shell commands. 2019-11-30 Andrii Kolomoiets vc-hg: prompt for branch to merge * lisp/vc/vc-hg.el (vc-hg-merge-branch): Prompt for revision to merge. (vc-hg-revision-table): Use branches, tags and bookmarks as competion candidates. * etc/NEWS: Mention changes of vc-hg.el * doc/emacs/maintaining.texi (Switching Branches): Mention 'hg update' command. (Merging): Mention 'hg merge' command. This fixes bug#22860 2019-11-30 Michal Sojka Fix preserving cell boundaries in table.el after * lisp/textmodes/table.el (table-command-remap-alist): Add entry for 'delete-forward-char'. (Bug#38353) 2019-11-30 Eli Zaretskii Add ':extend' attribute to faces and themes * etc/themes/wombat-theme.el: * etc/themes/wheatgrass-theme.el: * etc/themes/tsdh-light-theme.el: * etc/themes/tsdh-dark-theme.el: * etc/themes/tango-theme.el: * etc/themes/tango-dark-theme.el: * etc/themes/misterioso-theme.el: * etc/themes/manoj-dark-theme.el: * etc/themes/light-blue-theme.el: * etc/themes/leuven-theme.el: * etc/themes/dichromacy-theme.el: * etc/themes/deeper-blue-theme.el: * etc/themes/adwaita-theme.el: Add ':extend' attribute to all faces that are by default defined with it. * lisp/vc/smerge-mode.el (smerge-upper, smerge-lower) (smerge-base): * lisp/vc/log-view.el (log-view-file, log-view-message): * lisp/vc/ediff-init.el (ediff-current-diff-A) (ediff-current-diff-B, ediff-current-diff-C) (ediff-current-diff-Ancestor, ediff-even-diff-A) (ediff-even-diff-B, ediff-even-diff-C) (ediff-even-diff-Ancestor, ediff-odd-diff-A) (ediff-odd-diff-B, ediff-odd-diff-C) (ediff-odd-diff-Ancestor): * lisp/vc/diff-mode.el (diff-header, diff-file-header) (diff-removed, diff-added): Make sure all definitions of faces have the same value of the ':extend' property, otherwise customizing background color or underline etc. attributes of these faces on some displays will produce effects different from other displays. 2019-11-30 Juanma Barranquero * src/lread.c (syms_of_lread): Doc fix. 2019-11-29 Alan Third Fix image scaling with masks (bug#38109) * src/image.c (lookup_image): Move call to image_set_transform after postprocess_image. (image_create_x_image_and_pixmap_1): Use new function. (image_set_transform): Apply the transform to the mask too. (x_create_xrender_picture): New function. (Create_Pixmap_From_Bitmap_Data): (xpm_load): Use new function. * src/xterm.c (x_composite_image): Use PictOpOver when there is a mask so the transparency is honoured. (x_draw_image_foreground_1): Use x_composite_image. 2019-11-29 Stefan Monnier * lisp/gnus/gnus.el (gnus-info): Define with `cl-defstruct` This makes the accessors into (inlined) functions (instead of macros), which simplifies some uses, and it makes the gnus-info-set- macros redundant since we can use `setf` instead. Remove them and update all users. (gnus-info-group, gnus-info-rank, gnus-info-read, gnus-info-marks) (gnus-info-method, gnus-info-params): Auto-defined by defstruct. (gnus-info-level, gnus-info-score): Define as a function. Add gv-setter. (gnus-info-set-group, gnus-info-set-rank, gnus-info-set-read): Remove, use `setf` instead. (gnus-info-set-marks, gnus-info-set-method, gnus-info-set-params): Define as a function. (gnus-info-set-entry): Delete function. (gnus-info--grow-entry): New function, extracted from it. (gnus-info--set-level, gnus-info--set-score): New functions, extracted from the `gnus-info-set-level` and `gnus-info-set-score` which they replace. (gnus-get-info): Define as a function. * lisp/gnus/gnus-group.el (gnus-group-edit-group-done): Use the `extend` arg of `gnus-info-set-method`. (gnus-group-sort-selected-flat): eta-reduce. 2019-11-29 Stefan Monnier * lisp/textmodes/mhtml-mode.el: Fix bug#38372 The `sgml-syntax-propertize-rules` rely on the `sgml--syntax-propertize-ppss` setup by `sgml-syntax-propertize` so it is not correct/safe to use them directly like html used to do. Change `sgml-syntax-propertize` so it can be used by mhtml, and then adjust mhtml-mode accordingly. * lisp/textmodes/mhtml-mode.el: Remove redundant `eval-and-compile`. Only require cl-lib at compile-time. (mhtml--syntax-propertize): New const, extracted from mhtml-syntax-propertize. (mhtml-syntax-propertize): Use `sgml-syntax-propertize`. * lisp/textmodes/sgml-mode.el (sgml--syntax-propertize): New const, extracted from sgml-syntax-propertize. (sgml-syntax-propertize): Add optional `rules-function` arg. 2019-11-29 Robert Pluim Add nsm-should-check IPv6 local subnet tests * test/lisp/net/nsm-tests.el (nsm-check-local-subnet-ipv6): Now that IPv6 addresses are returned from network-interface-list, test nsm-should check and nsm-network-same-subnet for IPv6 as well. 2019-11-29 Eli Zaretskii Support showing one revision with Mercurial * lisp/vc/vc-hg.el (vc-hg-print-log): Support 'with-diff' invocation of "C-1 C-x v L". 2019-11-29 Phil Sainty * lisp/so-long.el (so-long-variable-overrides): Set bidi-inhibit-bpa (Bug#38407) 2019-11-29 Eli Zaretskii Document 'zap-up-to-char' * doc/emacs/killing.texi (Other Kill Commands): Document 'zap-up-to-char'. * lisp/simple.el (zap-to-char): Mention 'zap-up-to-char' in the doc string. (Bug#38392) 2019-11-29 Eli Zaretskii Support showing one revision with Subversion * lisp/vc/vc-svn.el (vc-svn-print-log): Support 'with-diff' invocation of "C-1 C-x v L". 2019-11-29 Eli Zaretskii Minor fix in 'vc-print-root-log's prompt for revision ID * lisp/vc/vc.el (vc-print-root-log): Remove text properties from the default revision suggestion. 2019-11-29 Eli Zaretskii Support showing one revision with Bazaar * lisp/vc/vc-bzr.el (vc-bzr-print-log): Support 'with-diff' invocation of "C-1 C-x v L". 2019-11-29 Eli Zaretskii Improve indexing of VC log commands * doc/emacs/maintaining.texi (VC Change Log): Add missing index entries. 2019-11-29 Eli Zaretskii Improve documentation and UI of 'C-x v L' * lisp/vc/vc.el (vc-print-root-log): Improve the wording of the doc string and of the prompt for the root directory. * etc/NEWS: Improve and expand the wording of the changes in 'C-x v L'. * doc/emacs/maintaining.texi (VC Change Log): Improve and clarify wording of the 'C-x v L' description. 2019-11-28 Noam Postavsky Improve errors & warnings due to fancy quoted vars (Bug#32939) Add some hints to the message for byte compiler free & unused variable warnings, and 'void-variable' errors where the variable has confusable quote characters in it. * lisp/help.el (uni-confusables), uni-confusables-regexp): New constants. (help-command-error-confusable-suggestions): New function, added to `command-error-function'. (help-uni-confusable-suggestions): New function. * lisp/emacs-lisp/bytecomp.el (byte-compile-variable-ref): * lisp/emacs-lisp/cconv.el (cconv--analyze-use): Use it. * lisp/emacs-lisp/lisp-mode.el (lisp--match-confusable-symbol-character): New function. (lisp-fdefs): Use it to fontify confusable characters with font-lock-warning-face when they occur in symbol names. * doc/lispref/modes.texi (Faces for Font Lock): * doc/lispref/objects.texi (Basic Char Syntax): Recommend backslash escaping of confusable characters, and mention new fontification. * etc/NEWS: Announce the new fontification behavior. * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-fontify-confusables): New test. 2019-11-28 Noam Postavsky Stop signaling an error when reading "smart quotes" in symbols Revert commits from 2018-01-28 "Fix round tripping of read->print for symbols with strange quotes", and 2017-07-22 "Signal error for symbol names with strange quotes (Bug#2967)". * etc/NEWS: Remove corresponding entries. * src/character.c (confusable_symbol_character_p): * test/src/lread-tests.el (lread-tests--old-style-backquotes): Remove. * src/lread.c (read1): Don't signal error on confusable character. * src/print.c (print_object): Don't escape confusable characters. 2019-11-28 Filipp Gunbin Do not call custom-reevaluate-setting in dired-isearch-filenames-end * lisp/dired-aux.el (dired-isearch-filenames-end) (dired-isearch-filenames, dired-isearch-filenames-regexp): Use temporary local variable for dired-isearch-filenames instead of custom-reevaluate-setting (Bug#30187). Without this fix, the value set in .emacs with plain setq would be lost after one isearch. 2019-11-28 Eli Zaretskii Improve PY-b5 input methods * leim/leim-ext.el ("quail/PY-b5"): Assign key sequence for U+25CB (WHITE CIRCLE). (Bug#3179) 2019-11-28 Eli Zaretskii Allow disabling the BPA part of bidi reordering * src/xdisp.c (syms_of_xdisp): New variable 'bidi-inhibit-bpa'. * src/bidi.c (bidi_paired_bracket_type): If 'bidi-inhibit-bpa' is non-nil, return BIDI_BRACKET_NONE for all characters. * lisp/frame.el: Add 'bidi-inhibit-bpa' to the list of variables whose changes require redisplay. (Bug#38407) 2019-11-28 Robert Pluim Support wlan in network-interface-list on pre-Vista Windows * src/w32.c (network_interface_list): Check for 'Wireless' in adapter description to support pre-Vista Windows. 2019-11-27 Stefan Monnier * lisp/subr.el (do-after-load-evaluation): Fix thinko 2019-11-27 Juri Linkov Menu bar rearrangements, move Print menu items to submenu, etc. (bug#37594) * lisp/menu-bar.el (menu-bar-print-menu): New defvar. (menu-bar-file-menu): Move print entries to submenu. Add menu entries for tab-new, tab-close, make-frame-on-monitor. (menu-bar-showhide-menu): Add menu entry for global-tab-line-mode. Don't add toggle-tab-bar-mode-from-frame on ns where it's unavailable. (menu-bar-tools-menu): Add rgrep. * lisp/bindings.el (next-buffer, previous-buffer): Advertise bindings 'C-x right' and 'C-x left' instead of 'XF86Forward' and 'XF86Back'. 2019-11-27 Juri Linkov 'C-1 C-x v L' asks for revision and shows its log entry with diff (bug#38044) * doc/emacs/maintaining.texi (VC Change Log): Explain the numeric prefix arg of 'C-x v L' (vc-print-root-log). * lisp/vc/vc-git.el (vc-git-print-log): Add command line option "-p" when vc-log-view-type is 'with-diff'. (vc-git-log-view-mode): Use long style when vc-log-view-type is 'with-diff'. * lisp/vc/vc.el (vc-print-log-internal): Add optional arg 'type'. (vc-log-internal-common): Use 'region-history-mode' when type is 'with-diff' and backend supports 'region-history-mode'. (vc-print-root-log): Add optional arg 'revision'. In interactive spec read a revision when current-prefix-arg is 1. Use current-prefix-arg "as is" when it is a number. Show revision in long style with diff when limit is 1 and revision is non-nil. 2019-11-27 Juri Linkov * lisp/image-mode.el: Resize image on window resizing (bug#32672) * lisp/image-mode.el (image--window-change): New function. (image--window-change-function): New variable. (image-mode--setup-mode): Add buffer-local hook image--window-change to window-size-change-functions, window-state-change-functions, window-selection-change-functions. 2019-11-27 Eli Zaretskii Make some anonymous faces extend to EOL * lisp/vc/log-edit.el (log-edit-font-lock-keywords): * lisp/mpc.el (mpc-separator): * lisp/help.el (describe-key): * lisp/help-fns.el (describe-symbol): Make the anonymous faces extend to EOL. 2019-11-27 Mattias Engdegård Mouse rectangular region selection (bug#38013) Make it possible to select a rectangular region using the mouse. The standard binding is C-M-mouse-1. * lisp/mouse.el (mouse-scroll-subr): Add ADJUST argument. (mouse-drag-region-rectangle): New. * lisp/rect.el (rectangle--reset-point-crutches): New. (rectangle--reset-crutches): Use 'rectangle--reset-point-crutches'. * src/xdisp.c (remember_mouse_glyph, syms_of_xdisp): Add 'mouse-fine-grained-tracking'. * doc/lispref/commands.texi (Motion Events): Document 'mouse-fine-grained-tracking'. * doc/emacs/frames.texi (Mouse Commands): * doc/emacs/killing.texi (Rectangles): * etc/NEWS: Document rectangular selection with the mouse. 2019-11-27 Andrii Kolomoiets Call vc-setup-buffer in vc-hg-log-incoming and vc-hg-log-outgoing * lisp/vc/vc-hg.el (vc-hg-log-incoming, vc-hg-log-outgoing): Call vc-setup-buffer. 2019-11-27 Lars Ingebrigtsen Fix documentation of eieio-class-name * doc/misc/eieio.texi (Predicates): Update the documentation of eieio-class-name to say what it really returns (bug#38365). 2019-11-27 Lars Ingebrigtsen Make message-allow-no-recipients 'always work * lisp/gnus/message.el (message-send): Make message-allow-no-recipients 'always work. 2019-11-27 Mattias Engdegård Fine-grained NS modifier key settings (bug#38296) For the ns-KEY-modifier and ns-right-KEY-modifier variables, KEY being 'control', 'command', 'alternate' and 'function', allow values on the form (:ordinary SYMBOL :function :SYMBOL :mouse SYMBOL), so that the key can be used for different modifiers (or none) in different contexts. This is particularly useful for using the macOS Option key for extended character entry while still using it as an Emacs modifier for function keys and mouse clicks. * src/nsterm.m (mod_of_kind, right_mod, nil_or_none): Helper functions. (EV_MODIFIERS2): Add KIND argument. (EV_MODIFIERS): Adapt call to EV_MODIFIERS2. (ns_get_shifted_character): Use correct event kind for modifiers. (ns-alternate-modifier, ns-right-alternate-modifier) (ns-command-modifier, ns-right-command-modifier) (ns-control-modifier, ns-right-control-modifier) (ns-function-modifier): Rewrite doc strings for new data format. (QCordinary, QCfunction, QCmouse): Define symbols. * lisp/cus-start.el: Conform to new data types. * doc/emacs/macos.texi (Mac / GNUstep Basics) (Mac / GNUstep Customization): Improved documentation. * etc/NEWS: Mention the change. 2019-11-26 Juri Linkov message uses minibuffer-message in the active minibuffer (bug#17272 bug#19064) * doc/lispref/display.texi (Displaying Messages): Explain the behavior of using minibuffer-message if the minibuffer is active. * src/editfns.c (Fmessage_in_echo_area): New function with body copied from Fmessage. (Fmessage): Call minibuffer-message in the active minibuffer, otherwise call Fmessage_in_echo_area. (message-in-echo-area): New variable. * lisp/isearch.el (isearch--momentary-message, isearch-message): * lisp/minibuffer.el (minibuffer-message, minibuffer-completion-help): Use 'message-in-echo-area' instead of 'message' where necessary. * lisp/autorevert.el (auto-revert-handler): * lisp/man.el (Man-bgproc-sentinel): * lisp/subr.el (do-after-load-evaluation): Revert recent changes that replaced 'message' with 'minibuffer-message'. This is not needed anymore since 'message' uses 'minibuffer-message' in the active minibuffer. 2019-11-26 Juri Linkov Allow recursive minibuffers for yes-or-no-p and y-or-n-p (bug#17272 bug#19064) * lisp/subr.el (y-or-n-p): Let-bind enable-recursive-minibuffers to t. * src/fns.c (Fyes_or_no_p): Specbind Qenable_recursive_minibuffers to Qt. 2019-11-26 Juri Linkov * lisp/tab-bar.el (display-buffer-in-tab): New function (bug#38354) 2019-11-26 Paul Eggert etags: remove some arbitrary limits etags had undefined behavior if input files, lines, tags, etc., had more than INT_MAX bytes. Clean up the usage of integer types to fix the overflow errors I found. * admin/merge-gnulib (GNULIB_MODULES): Add mempcpy. * lib-src/etags.c: Include inttypes.h, intprops.h. (memcpyz): New function. Use it to simplify several occurrences of memcpy followed by storing a trailing '\0'. (xnew): Use xnmalloc, to catch overflow on integer multiplication. (xrnew): Change last arg to multiplier. The type is not needed. All callers changed. (node, lineno, charno, linecharno, invalidcharno, make_tag): (pfnote, add_node, number_len, C_symtype, lbz, Makefile_targets) (readline): Use intmax_t for line numbers and character positions, instead of int or long. (linebuffer, make_tag, pfnote, total_size_of_entries, put_entry) (in_word_set, C_symtype, token, cstack, pushclass_above): (popclass_above, write_classname, consider_token, C_entries) (Ruby_functions, Makefile_targets, Lua_functions, TeX_commands) (TeX_decode_env, erlang_func, erlang_attribute, erlang_atom) (substitute, regex_tag_multiline, nocase_tail, readline_interval) (readline, savenstr, concat, etags_getcwd, relative_filename) (linebuffer_setlen): Use ptrdiff_t for object sizes, instead of int or long or unsigned or size_t. (write_classname, C_entries): Avoid sprintf, as the result could exceed INT_MAX bytes and then behavior goes haywire. (main): Use int, instead of unsigned, for argv counts. (get_language_from_filename): Use bool for boolean. (Ruby_functions): Prefer strcpy to memcpy when copying "=". (linebuffer_setlen): Use ‘if’ instead of ‘while’. (memory_full, xnmalloc, xnrealloc): New functions. (xmalloc): Use memory_full, and take a ptrdiff_t instead of a size_t. (xrealloc): Remove; no longer needed. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/mempcpy.c, m4/mempcpy.m4: New files, copied from Gnulib. 2019-11-26 Juanma Barranquero Fix previous change to (next|previous)-buffer * lisp/window.el (next-buffer, previous-buffer): If no other buffer is available, signal 'user-error' only when called interactively. 2019-11-26 Paul Eggert Update from Gnulib This incorporates: 2019-11-24 Fix errors in C++ mode on mingw 2019-11-24 time_r: Fix for mingw (regression from 2019-11-16) 2019-11-24 sys_time: Fix errors in C++ mode on mingw 2019-11-22 intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+ 2019-11-21 Disable many _GL_CXXALIASWARN on non-glibc 2019-11-21 Fix various errors in _GL_CXXALIAS_SYS invocations 2019-11-19 intprops: INT_MULTIPLY_WRAPV speedup for GCC 9.3+ 2019-11-18 stdint: Define [u]intptr_t correctly on 64-bit native Windows 2019-11-18 stdint: Fix value of WINT_MAX when we override wint_t 2019-11-18 stdint: Avoid "conflicting types" error on mingw 5.22 2019-11-16 time_r: Fix for mingw 2019-11-06 regex: now back in sync with glibc * lib/intprops.h, lib/regexec.c, lib/signal.in.h: * lib/stdint.in.h, lib/stdio.in.h, lib/stdlib.in.h: * lib/string.in.h, lib/sys_select.in.h, lib/sys_time.in.h: * lib/time.in.h, lib/unistd.in.h, m4/time_r.m4: Copy from Gnulib. 2019-11-26 Stefan Monnier * lisp/subr.el (do-after-load-evaluation): Handle batch mode as well 2019-11-26 Robert Pluim Use 127.0.0.1 in nsm-tests Winsock doesn't like "127.1" * test/lisp/net/nsm-tests.el (nsm-check-local-subnet-ipv4): Spell numeric localhost as "127.0.0.1" instead of "127.1". 2019-11-26 Stefan Monnier * test/lisp/minibuffer-tests.el (completion-table-test-quoting): New test * test/data/minibuffer-test-cttq$tion: New file-name test data. 2019-11-26 Eli Zaretskii Support ':extend' in faces defined by list of key/value pairs * src/xfaces.c: Update and improve commentary at the beginning of the file. (face_attr_sym): New static array. (init_xfaces): Initialize 'face_attr_sym'. (merge_face_ref): Handle the :extend attribute in faces specified as lists of key/value pairs. (Bug#37774) 2019-11-26 Eli Zaretskii Fix MS-Windows build with mingw.org's MinGW mingw.org's MinGW by default targets Windows 9X, so _WIN32_WINNT is set to a value that bypasses declarations in system headers we need to compile network_interface_list. Also, the code needed a workaround for Windows XP, where some functionality is missing from the GetAdaptersAddresses API. * src/w32.c (_WIN32_WINNT): Define to 0x0501, if the value is lower, temporarily while processing iphlpapi.h. (address_prefix_match): New helper function. (network_interface_list): Work around the fact that the OnLinkPrefixLength member of IP_ADAPTER_UNICAST_ADDRESS is not available when _WIN32_WINNT < 0x0600. On Windows XP use special code that calls address_prefix_match to compute the network prefix length. 2019-11-26 Stefan Monnier * lisp/progmodes/asm-mode.el (asm-mode-map): Obey electric-indent-mode 2019-11-26 Juanma Barranquero (next|previous)-buffer no longer fail silently (bug#38384) * lisp/window.el (next-buffer, previous-buffer): Signal 'user-error' if there is no buffer to switch to. * etc/NEWS: Document it. 2019-11-26 Juanma Barranquero lisp/auth-source.el: Depend on cl-lib unconditionally A change in 2016-04-24 introduced a run-time dependency on cl-subseq. 2019-11-26 Juanma Barranquero lisp/auth-source-pass.el: Require cl-lib unconditionally Changes in 2019-05-05 and 2019-05-14 introduced run-time dependencies on cl-maplist and cl-remove-if-not. 2019-11-26 Martin Rudalics 2019-11-26 Martin Rudalics * lisp/window.el (switch-to-visible-buffer): Declare obsolete. (switch-to-prev-buffer-skip): New option. (switch-to-prev-buffer, switch-to-next-buffer): Obey 'switch-to-prev-buffer-skip'. * doc/lispref/windows.texi (Window History): Remove description of 'switch-to-visible-buffer'. Describe new option 'switch-to-prev-buffer-skip' * etc/NEWS: Mention switch from 'switch-to-visible-buffer' to 'switch-to-prev-buffer-skip'. 2019-11-26 Alex Murray (tiny change) Fix auth-source password lookup * lisp/net/network-stream.el (network-stream-certificate): Ensure :port is specified as a string to 'auth-source-search' (Bug#38371). 2019-11-25 Robert Pluim Extend network-interface-list to return IPv6 and network info Bug#38218 * src/process.c (Fnetwork_interface_list): Extend argument list to allow requesting full network info and/or IPv4/IPv6 info. (network_interface_list) [HAVE_GETIFADDRS]: Use getifaddrs to retrieve interface IP addresses. * src/process.h: Update prototype of network_interface_list. * src/w32.c (g_b_init_get_adapters_addresses): New init flag. (globals_of_w32): Initialize it. (GetAdaptersAddresses_Proc): New function typedef. (get_adapters_addresses): New wrapper function. (init_winsock): Load htonl and ntohl. (sys_htonl, sys_ntohl): New wrapper functions. (network_interface_list): Implement in terms of get_adapters_addresses. * nt/inc/sys/socket.h: Add sys_htonl and sys_ntohl prototypes. * etc/NEWS: Announce IPv4/IPv6 changes in network-interface-list. * doc/lispref/processes.texi (Misc Network): Document updated arglist and return values for network-interface-list. 2019-11-25 Lars Ingebrigtsen Fix previous message.el point-restoring fix * lisp/gnus/message.el (message-send-and-exit): Restore window point before burying buffer so we actually bury the buffer. 2019-11-25 Lars Ingebrigtsen Remove outdated documentation * doc/misc/eieio.texi (Predicates): Remove documentation of same-class-fast-p, which was removed some years back (bug#38362). 2019-11-25 João Távora Fix test failures of test/lisp/auth-source-pass-tests.el Failures introduced by recent "Make auth-source-pass-search understand port lists", commit 92fda5a7f92162d610d57df14372bcfcee1f01b6. * lisp/auth-source-pass.el (auth-source-pass--generate-entry-suffixes): Fix test failures. 2019-11-25 Filipp Gunbin Correct small misprint in defcustom's docstring * lisp/custom.el (defcustom): Correct misprint in docstring. 2019-11-25 Eli Zaretskii Fix face merging when some have :extend non-nil and some are inherited * src/xfaces.c (face_inherited_attr): New function. (merge_named_face): Call 'face_inherited_attr' when testing whether a face that inherits from another fits the filtering criteria specified by ATTR_FILTER. (merge_face_vectors): Revert the changes made in this function for filtering by ATTR_FILTER, and remove that argument as well. These tests are now completely done by the caller, see 'merge_named_face'. (Bug#37774) 2019-11-25 Robert Pluim Handle auth-source-search failures in open-network-stream If the user cancels the gpg decryption pop-up, auth-source-search fails *and* epa pops up an error buffer. Fix epa to allow suppressing that, and ignore errors returned from auth-source-search. * lisp/epa.el (epa-suppress-error-buffer): New defvar. Bind non-nil to stop epa popping up an error buffer. * lisp/net/network-stream.el: require epa when byte-compiling. (network-stream-certificate): ignore errors when calling auth-source-search, and suppress the epa error buffer. 2019-11-23 Paul Eggert Add eassert check for bad default face * src/xdisp.c (append_space_for_newline): Add an eassert check that default_face is not null, by calling FACE_FROM_ID instead of FACE_FROM_ID_OR_NULL. Initialize a local only if needed. 2019-11-23 Paul Eggert Port gnutls.c to --enable-gcc-warnings --without-gnutls * src/gnutls.c: Move the "#ifdef HAVE_GNUTLS" earlier, so that "./configure --enable-gcc-warnings --without-gnutls" does not complain about macros being defined but never used. Indent "#" directives more consistently. 2019-11-23 Juanma Barranquero Rework previous fix to bug#38222 * lisp/help.el (help--doc-without-fn): Remove. (describe-mode): Use help-split-fundoc instead. 2019-11-23 Juanma Barranquero Make help-split-fundoc more flexible about what returns * lisp/help.el (help-split-fundoc): New arg SECTION to return only the usage or doc parts of the docstring, or both even if there is no usage. * test/lisp/help-tests.el: New file. 2019-11-23 Juri Linkov Use new macro debounce-reduce to make mouse scaling of images more responsive * lisp/emacs-lisp/timer.el (debounce, debounce-reduce): New macros. * lisp/image.el (image-increase-size, image-decrease-size): Use funcall to call image--change-size-function. (image--change-size-function): Move code from defun of image--change-size to defvar that has the value of lambda returned from debounce-reduce. (Bug#38187) 2019-11-23 Robert Pluim Default network-stream-use-client-certificates to nil * lisp/net/network-stream.el (network-stream-use-client-certificates): Default to nil. (open-network-stream): Adapt description to new default of network-stream-use-client-certificates. * etc/NEWS: network-stream-use-client-certificates defaults to nil now. * doc/lispref/processes.texi (Network): Flip network-stream-use-client-certificates description. * doc/misc/auth.texi (Help for users): Mention network-stream-use-client-certificates. 2019-11-23 Robert Pluim Have what-cursor-position optionally show character name * lisp/simple.el (what-cursor-show-names): New defcustom, default nil. (what-cursor-position): Show character names if what-cursor-show-names is non-nil. * doc/emacs/basic.texi (Position Info): Add what-cursor-show-names description. * etc/NEWS: Announce what-cursor-show-names. 2019-11-23 Christopher Schmidt Always expand "total" in dired * lisp/files.el (insert-directory): Always replace "total" with "total used in directory", even when we don't have free disk space (bug#13191). This makes the display more consistent. 2019-11-23 Michael Heerdegen Fix edebug instrumentation removing from advised functions * lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): Handle advised functions correctly. 2019-11-23 Eli Zaretskii Improve indexing of modifier keys * doc/emacs/commands.texi (User Input): Add index entry for the Alt key serving as Meta. * doc/emacs/custom.texi (Modifier Keys): Add index entries for Alt, Super, and Hyper modifier keys. (Bug#38315) 2019-11-23 Eli Zaretskii Fix cursor display at EOL before extended face * src/xdisp.c (extend_face_to_end_of_line): Make sure the character position of the stretch glyph inserted to extend the face is zero, as various other parts of the display code rely on that. (Bug#38330) 2019-11-23 Eli Zaretskii Fix and speed up en/decoding of UTF-8 strings * src/coding.c (get_char_bytes, encode_string_utf_8) (decode_string_utf_8): Fix commentary. (encode_string_utf_8): Return the original ASCII string only if NOCOPY is non-zero. (decode_string_utf_8): Accept 2 additional arguments STR and STR_LEN, which allow to pass the input text as a C string. (make_string_from_utf8): Delegate the job to decode_string_utf_8. * src/coding.h: Update the prototype of decode_string_utf_8. * src/json.c (json_encode): Call encode_string_utf_8. 2019-11-22 João Távora * lisp/minibuffer.el (completion-flex-nospace): Default to t. 2019-11-22 Juanma Barranquero help-follow-symbol now complains if no symbol found (bug#38248) * lisp/help-mode.el (help-follow-symbol): Signal 'user-error' if there's no symbol at POS. * etc/NEWS: Document it. 2019-11-22 Filipp Gunbin Check gnus-mailing-list-groups in turn-on-gnus-mailing-list-mode * lisp/gnus/gnus-ml.el (turn-on-gnus-mailing-list-mode): Check also gnus-mailing-list-groups variable. 2019-11-22 Filipp Gunbin Make gnus-mailing-list-archive recognize https * lisp/gnus/gnus-ml.el (gnus-mailing-list-archive): Accept https in regexp. 2019-11-22 Filipp Gunbin Unify docstrings of Gnus summary's copy/move/crosspost article functions * lisp/gnus/gnus-sum.el (gnus-summary-copy-article) (gnus-summary-crosspost-article): Make docstrings refer to gnus-summary-move-article. 2019-11-22 dickmao Refix conditional step clauses in cl-loop * lisp/emacs-lisp/cl-macs.el (cl--loop-bindings, cl--loop-symbol-macs, cl-loop): Add cl--loop-conditions, remove cl--loop-guard-cond. (cl--push-clause-loop-body): Apply clause to both cl--loop-conditions and cl--loop-body (cl--parse-loop-clause): Use cl--push-clause-loop-body. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-and-assignment): Use docstring. (cl-macs-loop-for-as-arith): Removed expected failure. (cl-macs-loop-conditional-step-clauses): Add some tests (bug#29799). 2019-11-22 Eli Zaretskii Fix uses of inhibit-message in package.el * lisp/emacs-lisp/package.el (package-generate-autoloads) (package--compile, package--save-selected-packages): Don't use 'inhibit-message' to bind 'noninteractive' and 'save-silently', since 'inhibit-message' already disables all messages. (Bug#38264) 2019-11-22 Hong Xu font-lock special attributes in python-mode * lisp/progmodes/python.el (python-font-lock-keywords-level-2): Add special attributes (bug#38318). 2019-11-22 Lars Ingebrigtsen Give better error messages in image-convert * lisp/image/image-converter.el (image-convert): Make image-convert bug out earlier on a wrong IMAGE-FORMAT value (bug#38310). 2019-11-22 João Távora Make auth-source-pass-search understand port lists For cases such as a typical IMAP Gnus setup, auto-source-pass-search is passed a list of "port aliases" like (993 "imaps" "imap" "993" "143") in hopes of finding a matching ~/.password-store entry. This modification makes this library understand and unroll the port list so that, i.e. "domain:993", "domain:imaps"", "domain:imap", etc. are computed as potential suffixes. Previously a nonsensical string "domain:(993 imaps imap ...)" was returned. * lisp/auth-source-pass.el (auth-source-pass--generate-entry-suffixes): Allow PORT to be a list of ports. 2019-11-21 Stefan Monnier * lisp/emacs-lisp/smie.el (smie-next-sexp): Fix bug#38255 Handle the case where the token is not in `smie-grammar`, either because the caller is making an error, or because it's a paren-like token that's not handled in the grammar but directly via the syntax tables. 2019-11-21 Lars Ingebrigtsen Make `C-c C-w' insert a signature even when overridden * lisp/gnus/message.el (message-insert-signature): When called interactively, look harder for a signature to insert (bug#38289). 2019-11-21 Stefan Monnier * lisp/minibuffer.el (completions-common-part): Make it blue when possible * lisp/files.el (locate-file-completion-table): Fix typo 2019-11-21 Thierry Volpiatto Add new variable to prevent flex completion style matching spaces. This allows flex style working smoothly with other styles like helm using spaces. * lisp/minibuffer.el (completion-flex-nospace): New user var. (completion-flex-try-completion): Use it. (completion-flex-all-completions): Same. 2019-11-21 Wilson Snyder When verilog-auto-ignore-concat is true, also ignore parenthesized signals. * lisp/progmodes/verilog-mode.el (verilog-auto-ignore-concat): When `verilog-auto-ignore-concat' is true, also ignore parenthesized signals. 2019-11-21 Eric Abrahamsen Fix Gnus summary backtab keybindings to use button-based functions * lisp/gnus/gnus-sum.el (gnus-summary-mode-map, gnus-summary-article-map): Backtab should call gnus-summary-button-backward, not gnus-summary-widget-backward. 2019-11-21 Eli Zaretskii Fix file notifications on macOS * src/kqueue.c (Fkqueue_add_watch): Don't use encoded file names in objects and APIs that expect decoded multibyte strings. (Bug#38287) 2019-11-21 Eli Zaretskii Fix a recent change in ELisp manual * doc/lispref/objects.texi (Special Read Syntax): Fix wording of the last change: don't document #' twice. (Bug#38278) 2019-11-21 Eli Zaretskii Support 'vc-region-history' for Mercurial * lisp/vc/vc-hg.el (vc-hg-region-history) (vc-hg-region-history-font-lock, vc-hg-region-history-mode): New functions. (vc-hg-region-history-mode-map) (vc-hg--log-view-long-font-lock-keywords) (vc-hg-region-history-font-lock-keywords): New variables. * lisp/vc/vc-git.el (vc-git-region-history): Update commentary. * doc/emacs/maintaining.texi (VC Change Log): Add 'vc-region-history' to the table at beginning of node. Update the VCSes that support 'vc-region-history'. * etc/NEWS: Mention the new feature of vc-hg.el. 2019-11-21 Lars Ingebrigtsen Fix up previous #' documentation addition * doc/lispref/objects.texi (Special Read Syntax): Add an xref for the #' (bug#38278). 2019-11-21 Lars Ingebrigtsen Document the #' syntax * doc/lispref/objects.texi (Special Read Syntax): Document the #' syntax (bug#38278). 2019-11-21 Lars Ingebrigtsen Restore point after sending a message * lisp/gnus/message.el (message-send-and-exit): Restore point after sending (bug#38303). 2019-11-21 Lars Ingebrigtsen Make pp-buffer into a command * lisp/emacs-lisp/pp.el (pp-buffer): Make into a command (bug#38306). 2019-11-21 Lars Ingebrigtsen Fix loading image-converter in the case where the type is passed in * lisp/image.el (create-image): Load image-converter when converting images (bug#38310). 2019-11-21 Lars Ingebrigtsen Rewrite the image-convert doc string * lisp/image/image-converter.el (image-convert): Clarify the calling convention (bug#38310). 2019-11-21 Dario Gjorgjevski Hide quoted passwords with spaces in Authinfo * lisp/auth-source.el (auth-source-netrc-looking-at-one): New function, extracted from auth-source-netrc-parse-one. (auth-source-netrc-parse-one, authinfo--hide-passwords): Use auth-source-netrc-looking-at-one (bug#38311). 2019-11-21 Michael Albinus * lisp/net/tramp.el (tramp-unload-tramp): Do not enable ange-ftp. (Bug#38025) 2019-11-20 Juri Linkov * lisp/image.el: Mouse-wheel scaling on images (bug#38187) * lisp/image.el (image-mouse-increase-size) (image-mouse-decrease-size): New commands. (image-map): Bind C-wheel-down and C-mouse-5 to image-mouse-decrease-size, C-wheel-up and C-mouse-4 to image-mouse-increase-size. 2019-11-20 Paul Eggert * src/sysdep.c: Improve comment wording. * etc/NEWS: Improve XDG_RUNTIME_DIR doc. 2019-11-20 Michael Albinus Add renaming of remote buffer file names to Tramp * doc/misc/tramp.texi (Default User): Fix typo. (Cleanup remote connections): Adapt arguments of `tramp-cleanup-connection'. (Renaming remote files): New node. (Frequently Asked Questions): New item "How to save files when a remote host isn't reachable anymore?". * etc/NEWS: Add `tramp-rename-files' and `tramp-rename-these-files'. * lisp/net/tramp-cmds.el (tramp-default-rename-alist) (tramp-confirm-rename-file-names): New defcustoms. (tramp-rename-read-file-name-dir) (tramp-rename-read-file-name-init): New defsubsts. (tramp-default-rename-file, tramp-rename-files) (tramp-rename-these-files): New defuns. * lisp/net/tramp-integration.el (ido, ivy): Integrate with them. 2019-11-20 Lars Ingebrigtsen Make with-suppressed-warnings work for macros, too * lisp/emacs-lisp/macroexp.el (macroexp-macroexpand): Pass the macro/alias symbol on to byte-compile-warning-enabled-p so that with-suppressed-warnings works for macros, too. 2019-11-20 Robert Pluim Remove info references to gmane web search * doc/misc/gnus.texi (Foreign Groups, Web Searches, What is nnir?): (Setting up nnir, Associating Engines, The imap Engine): (Customizations): Remove references to gmane web search. 2019-11-19 Stephen Gildea Expand coverage of unit tests for time-stamp * test/lisp/time-stamp-tests.el: Remove redundant word "test" from the names of all the tests. (time-stamp-custom-time-zone, time-stamp-custom-pattern, time-stamp-custom-inserts-lines, time-stamp-custom-count, time-stamp-helper-safe-locals): New tests 2019-11-19 Paul Eggert Make .pdmp file more reproducible Problem reported by Ulrich Müller and diagnosed by Andreas Schwab . * src/sysdep.c (maybe_disable_address_randomization): Disable ASLR if any kind of dumping, instead of merely if unexec dumping. Omit first arg for simplicity; all uses changed. 2019-11-19 João Távora * lisp/icomplete.el (icomplete-fido-kill): Unbreak yes-or-no-p usage Discussed in the context of bug#19064, bug#17272. 2019-11-19 Eli Zaretskii Ensure Rmail summary is updated after editing a message * lisp/mail/rmailedit.el (rmail-cease-edit): If this mbox file has a summary, update the summary after editing. (Bug#38193) 2019-11-19 Eli Zaretskii Fix updating members of zip archives * lisp/arc-mode.el (archive-zip-case-fiddle): Change the default to nil except on MS-DOS. Update the doc string to make clear that a non-nil value also affects updating the archive. (Bug#38260) 2019-11-19 Robert Pluim Remember the full GTK font description Remember the full font description instead of just the family so that size/style/weight settings are preserved. * src/gtkutil.c (xg_get_font) [HAVE_GTK3]: Use the pango font description to set/get the current font (Bug#28901). 2019-11-19 Robert Pluim Don't error when comparing IPv4 and IPv6 addresses * lisp/net/nsm.el (nsm-network-same-subnet): Compare lengths of local-ip and ip; different lengths can never match. (nsm-should-check): Chop port off end of address. 2019-11-19 Lars Ingebrigtsen Allow eww to display exotic images like webp * lisp/image.el (image-type): Allow passing in the image type. (create-image): Make conversion work with data in addition to files. * lisp/image/image-converter.el (image-convert-p): Allow taking working on data in addition to files (bug#38036). (image-convert): Ditto. (image-converter--convert): Extend signature to say whether we're getting a file or data. (image-converter--convert-magick): Convert data. (image-converter--convert): Ditto. 2019-11-19 Juanma Barranquero Strip "(fn...)" from output of `describe-mode' (bug#38222) * lisp/help.el (help--doc-without-fn): New function. (describe-mode): Use it. 2019-11-18 Stefan Monnier * lisp/org/org.el (org-mode): Add pcomplete-completions-at-point to capf. This lets the normal `completion-at-point` and `complete-symbol` use `pcomplete` for completion. (org-mode-map): Leave M-TAB bound to the global default since `pcomplete` is now obsolete. 2019-11-18 Juri Linkov * lisp/tab-line.el (tab-line-auto-hscroll): New defcustom (bug#37667) (tab-line-auto-hscroll): Use this option in the function. 2019-11-18 Juri Linkov * lisp/vc/ediff-util.el: Set this-command to ediff-quit (bug#38219) * lisp/vc/ediff-util.el (ediff-toggle-read-only, ediff-quit): Set this-command to the same command after using y-or-n-p that doesn't guarantee to keep this-command unchanged to check it later for some contrived logic. 2019-11-18 Robert Pluim Check for HAVE_GTK3 instead of a specific version Our minimum GTK3 version is 3.10, the font filter functions appeared in 3.2. * src/gtkutil.c (xg_font_filter) [HAVE_GTK3]: Just check for HAVE_GTK3. (xg_get_font) [HAVE_GTK3]: Same here. 2019-11-18 Michael Albinus * lisp/net/tramp.el (tramp-handle-file-regular-p): Improve error handling. 2019-11-18 Lars Ingebrigtsen Fix cl-prettyexpand in the non-FULL case * lisp/emacs-lisp/cl-extra.el (cl-prettyexpand): This function has apparently not worked for at least a couple of decades (bug#38206) unless supplied with a FULL parameter. Make the FULL parameter obsolete and make the function always work as it did with a non-nil FULL. 2019-11-18 Phil Sainty Merge branch 'scratch/so-long-updates' 2019-11-18 Phil Sainty lisp/so-long.el: Refactor menu action commands * lisp/so-long.el (so-long-menu): Call `so-long' with an ACTION argument instead of using `so-long-menu-item-replace-action'. (so-long-menu-item-replace-action): Remove the deprecated function. * test/lisp/so-long-tests/so-long-tests.el (so-long-tests-so-long-menu-item-replace-action): Update the test. 2019-11-18 Phil Sainty * lisp/so-long.el (so-long): Firstly revert the existing action, if any This makes `so-long' consistent with the action commands in the menu. If multiple actions were to be layered on top of one another, we would lose the ability to revert to the normal state. Custom actions combining multiple other actions can be defined if necessary. 2019-11-18 Stefan Monnier Phil Sainty lisp/so-long.el: Use (interactive "@") for menu commands * lisp/so-long.el (so-long-menu, so-long-menu-item-replace-action) (so-long-revert): Use interactive code "@", replacing all uses of `so-long-menu-click-window'. This approach leaves the window selected afterwards, whereas the old code did not; but that is not a problem. (so-long-menu-click-window, so-long-menu-item-revert): Remove the deprecated functions. * test/lisp/so-long-tests/so-long-tests.el (so-long-tests-so-long-menu-item-replace-action): Update the test. 2019-11-17 Lars Ingebrigtsen Remove the error-out test for with_harfbuzz * configure.ac (HAVE_HARFBUZZ): Remove the check for explicit harfbuzz -- have_harfbuzz defaults to "yes", so we have no way of checking whether the user really asked for it, apparently. 2019-11-17 Paul Eggert * lisp/simple.el (process-file): Clarify doc string. 2019-11-17 Stefan Monnier * lisp/tmm.el (tmm-add-one-shortcut): Use dolist 2019-11-17 Juri Linkov * lisp/subr.el (read-char-from-minibuffer, y-or-n-p): Remove discard-input. (do-after-load-evaluation): Replace run-with-timer with run-with-idle-timer to give a chance for the minibuffer to handle initial events before sit-for. https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00581.html 2019-11-17 Juri Linkov Auto-scrolling in tab-line (bug#37667) * lisp/tab-line.el (tab-line-auto-hscroll): New function. (tab-line-format): Use tab-line-auto-hscroll. 2019-11-17 Lars Ingebrigtsen Error out on --with-harfbuzz without HarfBuzz support * configure.ac: Error out if the user says --with-harfbuzz, but HarfBuzz isn't available. 2019-11-17 Lars Ingebrigtsen Handle FC_CHARCELL in xftfont_open * src/xftfont.c (xftfont_open): FC_CHARCELL is apparently an alias for FC_DUAL used in some east Asian fonts (bug#35079). Modelled after a patch suggested by Kenichi Handa. 2019-11-17 Eli Zaretskii Support more font weight values on MS-Windows * src/w32font.c (w32_to_fc_weight): Support a few more weight values, for compatibility with the GTK font selection widget (see gtkutil.c:XG_WEIGHT_TO_SYMBOL). (Bug#24226) 2019-11-17 Alan Mackenzie Compilation Mode: Fix arrow handling when compilation-context-lines is t In particular, fix some exception occurrences, fix handling of a Compilation Mode buffer being displayed in several windows, and fix the margin when temporarily displaying a different buffer in a window, then returning to the compilation mode buffer. The fix is relevant for frames without fringes, e.g. tty frames. * lisp/progmodes/compile.el: (compilation-set-window): Always set point to (parameter) MK. (compilation--set-up-margin, compilation--tear-down-margin): New functions. (compilation--set-up-arrow-spec-in-margins) (compilation--tear-down-arrow-spec-in-margins): Renamed by introducing -- and pluralising margin to margins. Handle the margins in _all_ windows displaying the pertinent buffer by using get-buffer-window-list. In ...--set-up-... add compilation--set-up-margin to window-buffer-change-functions. In ...--tear-down-... remove the hook functions added in ...--set-up-.... 2019-11-17 Lars Ingebrigtsen Make ido-read-file-name respect ido-read-file-name-non-ido more * lisp/ido.el (ido-read-file-name): Respect ido-read-file-name-non-ido in the file-directory-p case, too (bug#38231). 2019-11-17 Lars Ingebrigtsen Make tables more resistant to major mode changes * lisp/textmodes/table.el (table--put-cell-face-property) (table--remove-cell-properties): Ensure that we don't lose the table face when switching from buffers with font locking to ones without (or vice versa) (bug#35481). 2019-11-17 Lars Ingebrigtsen Make bibtex-parse-keys more robust * lisp/textmodes/bibtex.el (bibtex-parse-keys): Protect against bugging out just when starting almost-empty bibtex files (bug#30112). 2019-11-16 Juri Linkov * lisp/tab-bar.el: Add missing arg. * lisp/tab-bar.el (tab-bar-list-next-line) (tab-bar-list-prev-line): Add missing interactive spec for prefix arg. * lisp/mouse.el (mouse-buffer-menu-mode-groups): Add "Git" regexp to match "Git-Region-History" mode name for "Version Control" group. 2019-11-16 Juri Linkov * lisp/simple.el (eval-expression-print-maximum-character): Use choice type. https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00433.html 2019-11-16 Juri Linkov * lisp/dired.el (dired-dwim-target): Add choice dired-dwim-target-next-visible * lisp/dired-aux.el (dired-dwim-target-next): Add arg ALL-FRAMES. (dired-dwim-target-next-visible): New function. * doc/emacs/dired.texi (Operating on Files): Describe function value of dired-dwim-target. (Bug#35385) 2019-11-16 Eli Zaretskii Fix display of R2L text * src/xdisp.c (extend_face_to_end_of_line): Fix padding of R2L screen lines with stretch glyph on the left. (Bug#38233) 2019-11-16 Shingo Tanaka Fix moving files with duplicate names to trash-can * lisp/files.el (move-file-to-trash): Fix file name in trash-can when another deleted file under the same name is already stored there. (Bug#37922) 2019-11-16 Martin Rudalics Do not report move frame events for tooltip frames (Bug#38213) * src/w32term.c (w32_read_socket): * src/xterm.c (handle_one_xevent): Do not report move frame events for tooltip frames (Bug#38213). 2019-11-15 Michael Orlitzky (tiny change) tex-mode: paragraph separator groups text and comments * lisp/textmodes/tex-mode.el (latex-mode): Don't wrap text with leading spaces into preceding comments (bug#38152). 2019-11-15 Lars Ingebrigtsen Don't move point on undefined keystrokes in the article buffer * lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): Don't move point on undefined commands (bug#38227). 2019-11-15 Lars Ingebrigtsen Make button-1 work on all Gnus buttons * lisp/gnus/gnus-icalendar.el (gnus-icalendar-insert-button): * lisp/gnus/gnus-art.el (gnus-insert-mime-button) (gnus-mime-display-alternative, gnus-insert-prev-page-button) (gnus-insert-next-page-button) (gnus-insert-mime-security-button): Make button-1 work on all the Gnus buttons (bug#38144). 2019-11-15 Lars Ingebrigtsen Make it clear what edebug-remove-instrumentation offers * doc/lispref/edebug.texi (Instrumenting): Reword the description of the edebug-remove-instrumentation command. 2019-11-15 Paul Eggert Port new float-scaling code to Solaris * src/floatfns.c (double_integer_scale): Simplify, so that the function works when (FP_ILOGBNAN == INT_MAX && FP_ILOGB0 == INT_MIN), as on Solaris. 2019-11-15 João Távora Make icomplete-tidy-shadowed-file-names less aggressive When using this option and editing input, some transient situations may arise that lead to file-name shadowing, but that shouldn't necessarily lead to auto-delete behaviour, which will be suprising. In '/foo/x/bar', if the user deletes the 'x', shadowing occurs, but probably shouldn't. So, somewhat like ido-mode, only auto-tidy shadowed file names if the user is inserting text at end of input. * lisp/icomplete.el (icomplete-exhibit): Check this-command. (icomplete-tidy-shadowed-file-names): Tweak docstring. 2019-11-15 Stefan Monnier * lisp/progmodes/perl-mode.el (perl-calculate-indent): Indent qw(...) Fix initialization of `state`. Special-case `qw(...)` because we do want to indent its contents. 2019-11-15 Robert Pluim Used magic-fallback-mode-alist to detect .doc files (Bug#20891) This avoids running doc-view-mode on files that are actually text files. * lisp/files.el (auto-mode-alist): Don't use doc-view-mode-maybe for .doc (but continue to do so for .docx). (magic-fallback-mode-alist): Add signature for .doc files. 2019-11-15 Eli Zaretskii Improve indexing of function doc string conventions * doc/lispref/functions.texi (Function Documentation): Improve indexing (bug#38158). 2019-11-15 Paul Eggert Port hexdigit init to non-GCC + pdumper The old code assumed that hexdigit initialization (needed by non-GCC) could be done in syms_of_character, but that is no longer true with pdumper. Instead, simplify hexdigit init so that it can be done statically on all C99 platforms. Problem discovered on Solaris 10 sparc + Oracle Solaris Studio 12.6. * src/character.c (hexdigit): Add 1 to every value; all uses changed. This simplifies the initialization so that it can be done statically on any C99 compiler. hexdigit is now always const. (syms_of_character): Omit no-longer-necessary initialization. * src/character.h (HEXDIGIT_CONST, HEXDIGIT_IS_CONST): Remove. All uses removed. 2019-11-15 Eli Zaretskii Improve documentation of 'add-variable-watcher' * doc/lispref/variables.texi (Watching Variables): Clarify the documentation of 'add-variable-watcher' and fix markup. * src/data.c (Fadd_variable_watcher): Clarify the doc string. (Bug#38205) 2019-11-15 Lars Ingebrigtsen Avoid using subr-x function * lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Avoid using subr-x function (bug#38216). 2019-11-15 Martin Rudalics In 'dframe-frame-mode' avoid 'switch-to-buffer' (Bug#37840) * lisp/dframe.el (dframe-frame-mode): Use 'set-window-buffer' instead of 'switch-to-buffer’ to avoid that 'switch-to-buffer-obey-display-actions' butts in (Bug#37840). 2019-11-15 Andrii Kolomoiets lisp/vc/vc-hg.el: Don't pass empty string to hg update * lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Don't pass empty name to `hg update` (bug#38216). 2019-11-15 Lele Gaifax Fix minor formatting issue in isearch-forward documentation * lisp/isearch.el (isearch-forward): Doc string formatting fix (bug#38207). 2019-11-15 Lars Ingebrigtsen Make edebug-remove-instrumentation remove macro instrumentation * lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): Macros can also have edebug instrumentation, so remove that as well (bug#38195). 2019-11-14 Robert Pluim Update nnir-method-default-engines version tag * lisp/gnus/nnir.el (nnir-method-default-engines): Update version tag. 2019-11-14 Eli Zaretskii Fix a recent change in xdisp.c * src/xdisp.c (tty_handle_tab_bar_click): Revert the last change which made this work only in the HAVE_NTGUI build. This function is needed by any build which supports a mouse on TTY frames. 2019-11-14 Paul Eggert Handle weird cases like (ceil 0 0.0) * src/floatfns.c (double_integer_scale): Distinguish Inf from NaN. (rounding_driver): Handle (ceil 0 0.0) and (ceil 0 1.0e+INF). * test/src/floatfns-tests.el (special-round): Add tests for weird cases like this. Avoid crash with (floor 0 0.0) * src/floatfns.c (rounding_driver): Signal an arithmetic error if divisor is 0.0 or -0.0, instead of crashing. 2019-11-14 Stefan Monnier * lisp/cedet/semantic/db.el: Use lexical-binding Also prefer setf over oset. (semanticdb-abstract-table-list): Always define. (semanticdb--inhibit-make-directory): Fix name of declaration to match name of variable actually used. (semanticdb-with-match-any-mode): Use `declare`. Add Edebug spec. (semanticdb-project-roots): Remove redundant :group. 2019-11-14 Paul Eggert Fix byte-counting error in ‘format’ Problem reported by Paul Pogonyshev (Bug#38191). * src/editfns.c (styled_format): When checking for adjacent %-sequences, use byte position rather than character position. * test/src/editfns-tests.el (format-properties): Test for fix. 2019-11-14 Paul Eggert In Cairo builds, omit some unnecessary functions * src/font.c (fset_font_data, font_put_frame_data) (font_get_frame_data): * src/ftfont.c (ftfont_open, ftfont_close) (ftfont_encode_char, ftfont_glyph_metrics) (ftfont_text_extents, ftfont_driver): Define only if USE_CAIRO. * src/xdisp.c (tty_handle_tab_bar_click): Define only if HAVE_NTGUI && !CYGWIN. 2019-11-14 Dmitry Gutov (repos-count-screen-lines): Narrow without changing point-min * lisp/reposition.el (repos-count-screen-lines): Narrow without changing point-min. It wasn't necessary for vertical-motion to work, and it had some adverse effects on how font-lock rules were applied (https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00522.html). This can also be an alternative fix for bug#38049. 2019-11-14 Alan Mackenzie CC Mode: Fix two bugs in the "state cache". This (along with a suggestion to the OP to set open-paren-in-column-0-is-defun-start to nil) fixes bug #37910. It may also have fixed bug #5490 and bug #18072. * lisp/progmodes/cc-engine.el (c-state-cache-non-literal-place): Remove thi non-sensical function, replacing it with .... (c-state-cache-lower-good-pos): New function. (c-renarrow-state-cache, c-append-lower-brace-pair-to-state-cache) (c-remove-stale-state-cache, c-remove-stale-state-cache-backwards): Instead of altering the state-cache list structure with setcar and setcdr, use setq and consing. (c-parse-state-1): Call c-state-cache-lower-good-pos rather than c-state-cache-non-literal-place. 2019-11-14 Robert Pluim Remove unneeded font_is_ignored prototype * src/gtkutil.h: Remove unneeded prototype for font_is_ignored, it's in font.h now. 2019-11-14 Phil Sainty Merge branch 'scratch/so-long-updates' 2019-11-14 Phil Sainty Make so-long disable flymake, flyspell, flycheck * lisp/so-long.el (so-long-minor-modes): Add flymake-mode, flyspell-mode, and flycheck-mode. 2019-11-14 Phil Sainty Support loading so-long.el on top of an earlier version * lisp/so-long.el (so-long-version, so-long--latest-version): New variables. This enables users to safely load version 1.0 of so-long.el on top of an earlier version, as well as making provisions for doing likewise following any incompatible changes arising in future versions. 2019-11-14 Phil Sainty Backwards-compatibility function definitions for so-long.el * lisp/so-long.el (so-long-inhibit-whitespace-mode) (so-long-make-buffer-read-only, so-long-revert-buffer-read-only) (so-long-inhibit-global-hl-line-mode): Restore dummy definitions of now-obsolete hook functions used by earlier versions of so-long.el, to support users who have saved these symbols in their customized values for the hooks in question. 2019-11-14 Phil Sainty * lisp/so-long.el (so-long-unload-function): Improved feature unload 2019-11-14 Phil Sainty Defer triggering `so-long' until the buffer is displayed * lisp/so-long.el (so-long-invisible-buffer-function): New user option. (so-long--set-auto-mode): Use so-long-invisible-buffer-function. (so-long-deferred): New function/value for so-long-invisible-buffer-function. (so-long, so-long--disable): Support for so-long-deferred. * test/lisp/so-long-tests/autoload-longlines-mode-tests.el * test/lisp/so-long-tests/autoload-major-mode-tests.el * test/lisp/so-long-tests/autoload-minor-mode-tests.el * test/lisp/so-long-tests/so-long-tests.el: Support for so-long-deferred. Pre-existing tests have been updated to ensure the buffer is already displayed in cases where a call to `normal-mode' is the (potential) trigger for `so-long'. 2019-11-14 Eli Zaretskii Fix recent documentation changes * doc/lispref/minibuf.texi (Multiple Queries): Move the reference to 'read-char-from-minibuffer' from here... * doc/lispref/commands.texi (Reading One Event): ...to here. Fix the wording of the description of 'read-char-from-minibuffer'. 2019-11-14 Robert Pluim Make GTK font chooser respect face-ignored-fonts * src/font.c (font_delete_unmatched): Move Vface_ignored_fonts matching to... (font_is_ignored): ..Here. New function. * src/gtkutil.c (xg_font_filter): New function, uses font_is_ignored to filter fonts. (xg_get_font): Set GTK font chooser filter to xg_font_filter. * src/gtkutil.h: Add prototype for font_is_ignored. 2019-11-14 Katsumi Yamaoka Obsolete rfc2047-quote-special-characters-in-quoted-strings (bug#38200) * lisp/mail/rfc2047.el (rfc2047-quote-special-characters-in-quoted-strings): Make obsolete instead of removing it. 2019-11-14 Katsumi Yamaoka Remove rfc2047-quote-special-characters-in-quoted-strings (bug#38200) * lisp/mail/rfc2047.el (rfc2047-quote-special-characters-in-quoted-strings): Remove function. (rfc2047-encode-message-header, rfc2047-encode-region): Don't use it. 2019-11-13 Andrii Kolomoiets (vc-default-update-on-retrieve-tag): Accept backend argument * lisp/vc/vc.el (vc-default-update-on-retrieve-tag): Accept backend argument (bug#38156). This fixes a bug introduced in the previous patch. 2019-11-13 Lars Ingebrigtsen Fix mouse-1 on Gnus article buffer buttons * lisp/gnus/gnus-art.el (gnus-article-add-button): Make mouse-1 work as required by mouse-1-click-follows-link (bug#38144). 2019-11-13 Andrii Kolomoiets VC: ability to skip update buffers prompt * lisp/vc/vc.el (vc-default-update-on-retrieve-tag): New function. (vc-retrieve-tag): Call `update-on-retrieve-tag' backend function to determine if prompt for update buffers is needed; Include tag name into the "Retrieving tag" message. * lisp/vc/vc-git.el (vc-git-update-on-retrieve-tag): * lisp/vc/vc-hg.el (vc-hg-update-on-retrieve-tag): * lisp/vc/vc-svn.el (vc-svn-udate-on-retrieve-tag): New functions. Buffers update prompt on `vc-retrieve-tag' is omitted (bug#38156). 2019-11-13 Braun Gábor (tiny change) Make clone-buffer not unbind global variable * lisp/simple.el (clone-buffer): Make clone-buffer not globally unset locally void variable (bug#38179). 2019-11-13 Lars Ingebrigtsen Update signature in etc/DISTRIB * etc/DISTRIB: Update signature (bug#38188). 2019-11-13 Lars Ingebrigtsen Make dired-do-compress-to require format-spec * lisp/dired-aux.el (dired-do-compress-to): Require format-spec runtime (bug#38189). 2019-11-13 Lars Ingebrigtsen Allow using edebug-remove-instrumentation more fine-grained * lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): Prompt the user for what functions to remove instrumentation from a la cancel-edebug-on-entry (bug#38195). 2019-11-13 Stephen Gildea time-stamp: update support for time zone numeric offset * lisp/time-stamp.el (time-stamp-string-preprocess): Change new format for numeric time zone from %:z to %5z to match format-time-string better. (time-stamp-format): Document support for numeric time zone. See discussion in bug#32931. * NEWS: Mention time-stamp-format %5z. 2019-11-13 Katsumi Yamaoka Don't show Attachment(s) header in html article viewed with browse-url * lisp/gnus/gnus-art.el (gnus-article-browse-html-article): Bind gnus-mime-display-attachment-buttons-in-header to nil. 2019-11-13 Juri Linkov * lisp/tab-line.el (tab-line-tabs-buffer-list): Use window-prev-buffers too. * lisp/tab-line.el (tab-line-tabs-buffer-list): Move window-prev-buffers here from tab-line-tabs-buffer-groups. 2019-11-13 Paul Eggert Fix double-rounding bug in ceiling etc. This is doable now that we have bignums. * src/floatfns.c (integer_value): Remove; no longer used. (rescale_for_division): New function. (rounding_driver): Use it to divide properly (by using bignums) even when arguments are float, fixing a double-rounding FIXME. * src/lisp.h (LOG2_FLT_RADIX): Move here ... * src/timefns.c (frac_to_double): ... from here. * test/src/floatfns-tests.el (big-round): Add a test to catch the double-rounding bug. 2019-11-13 Paul Eggert Refactor bignum multiplication, exponentiation This doesn’t alter behavior, and simplifies the next commit. * src/bignum.c (GMP_NLIMBS_MAX, NLIMBS_LIMIT, emacs_mpz_size) (emacs_mpz_mul, emacs_mpz_mul_2exp, emacs_mpz_pow_ui): Move here ... * src/data.c: ... from here. 2019-11-13 Paul Eggert Refactor double integer scaling This doesn’t alter behavior, and simplifies a future commit. * src/floatfns.c (double_integer_scale): New function, with body adapted from the old timefns.c. * src/timefns.c (decode_float_time): Use it. 2019-11-13 Michael Albinus Finish last Tramp patch * lisp/net/tramp.el (outline-regexp): Remove declaration. (tramp-debug-outline-regexp): Add thread regexp. (tramp-debug-font-lock-keywords): New defconst. (tramp-debug-outline-level): Adapt to changed `tramp-debug-outline-regexp'. (tramp-get-debug-buffer): Use `tramp-debug-font-lock-keywords'. 2019-11-13 Robert Pluim Add "Noto Color Emoji" to face-ignored-fonts * src/xfaces.c (syms_of_xfaces) [HAVE_XFT]: Add "Noto Color Emoji" to face-ignored-fonts (Bug#37786). 2019-11-13 Michael Albinus Some refinement in Tramp debug buffer. * lisp/net/tramp.el (outline-regexp): Remove declaration. (tramp-debug-font-lock-keywords): New defconst. (tramp-get-debug-buffer): Use it. 2019-11-13 Michael Albinus Adapt Tramp docstrings according to checkdoc * lisp/net/tramp.el (tramp-backup-directory-alist) (tramp-echoed-echo-mark-regexp, tramp-syntax-values) (tramp-lookup-syntax, tramp-build-prefix-format) (tramp-build-prefix-regexp, tramp-build-method-regexp) (tramp-build-postfix-method-format) (tramp-build-postfix-method-regexp) (tramp-build-prefix-ipv6-format, tramp-build-prefix-ipv6-regexp) (tramp-build-postfix-ipv6-format) (tramp-build-postfix-ipv6-regexp) (tramp-build-postfix-host-format) (tramp-build-postfix-host-regexp, tramp-unknown-id-string) (tramp-unknown-id-integer, tramp-build-file-name-regexp) (tramp-build-completion-file-name-regexp, tramp-chunksize) (tramp-find-method, tramp-find-user, tramp-find-host) (tramp-dissect-file-name, tramp-get-buffer) (tramp-get-connection-buffer, tramp-debug-message, tramp-error) (with-tramp-connection-property, tramp-run-real-handler) (tramp-file-name-for-operation, tramp-file-name-handler) (tramp-completion-file-name-handler) (tramp-completion-handle-file-name-completion) (tramp-completion-dissect-file-name) (tramp-completion-dissect-file-name1) (tramp-handle-file-name-as-directory) (tramp-handle-file-name-directory) (tramp-handle-file-name-nondirectory, tramp-mode-string-to-int) (tramp-file-mode-from-int): * lisp/net/tramp-adb.el (tramp-adb-file-name-p): * lisp/net/tramp-archive.el (tramp-archive-run-real-handler) (tramp-archive-file-name-handler) (tramp-archive-dissect-file-name) (with-parsed-tramp-archive-file-name) (tramp-archive-gvfs-file-name, tramp-archive-handle-access-file): * lisp/net/tramp-cmds.el (tramp-list-remote-buffers): * lisp/net/tramp-compat.el (tramp-unload-file-name-handlers) (tramp-compat-funcall, tramp-compat-tramp-file-name-slots): * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler) (tramp-ftp-file-name-p): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-p) (tramp-gvfs-file-name-handler) (tramp-gvfs-stringify-dbus-message) (tramp-gvfs-monitor-process-filter) (tramp-gvfs-handler-mounted-unmounted): * lisp/net/tramp-integration.el (tramp-rfn-eshadow-update-overlay-regexp): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-p) (tramp-rclone-file-name-handler, tramp-rclone-send-command): * lisp/net/tramp-sh.el (tramp-sh--quoting-style-options) (tramp-sh-gio-monitor-process-filter) (tramp-sh-gvfs-monitor-dir-process-filter) (tramp-sh-inotifywait-process-filter, tramp-find-executable) (tramp-set-remote-path, tramp-open-shell, tramp-find-shell) (tramp-send-command-and-check, tramp-shell-case-fold) (tramp-get-remote-path): * lisp/net/tramp-smb.el (tramp-smb-file-name-p) (tramp-smb-file-name-handler) (tramp-smb-do-file-attributes-with-stat) (tramp-smb-handle-substitute-in-file-name) (tramp-smb-get-stat-capability, tramp-smb-shell-quote-argument): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-p) (tramp-sudoedit-file-name-handler) (tramp-sudoedit-send-command-string): * test/lisp/net/tramp-archive-tests.el (tramp-archive-test-all): * test/lisp/net/tramp-tests.el (tramp--test-gvfs-p) (tramp--test-with-proper-process-name-and-buffer) (tramp-test-all): Adapt docstrings according to `checkdoc'. 2019-11-13 João Távora Avoid fido-mode's setup on non-icomplete minibuffers Otherwise we would lose things like C-r (isearch-backward) when doing simple stuff like non-icomplete pp-eval-expression. * lisp/icomplete.el (icomplete--fido-mode-setup): Restrict setup to when icomplete-mode really kicks in. 2019-11-12 Juri Linkov * lisp/tab-line.el (tab-line-tabs-buffer-list-function): New variable. (tab-line-tabs-buffer-list): New function. (tab-line-tabs-mode-buffers, tab-line-tabs-buffer-groups): Call tab-line-tabs-mode-buffers. (tab-line-tabs-buffer-groups): Add 'close' function that uses kill-buffer instead of bury-buffer that makes no sense here. (tab-line-format): Don't show the close button when a tab has no 'close' function or buffer. (tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab): Support tabs with 'buffer' properties. (tab-line-close-tab): Call 'close' function when defined. 2019-11-12 Juri Linkov * lisp/dired.el (dired-dwim-target): Add new choices (bug#35385) * lisp/dired.el (dired-dwim-target): Add choices dired-dwim-target-next and dired-dwim-target-recent. * lisp/dired-aux.el (dired-dwim-target-next) (dired-dwim-target-recent): New functions. (dired-dwim-target-directories): Call either of them. * doc/emacs/dired.texi (Operating on Files): Mention new preferences in dired-dwim-target. 2019-11-12 Paul Eggert Conditionally omit edition numbers, dates in doc This redoes the 2019-11-02T00:24:02!eggert@cs.ucla.edu patch, updated after consultation with John Sullivan. Omit printed edition numbers in online manuals while keeping them in printed manuals. In online manuals the edition numbers seem to cause more confusion than they cure; e.g., https://shop.fsf.org/books/gnu-emacs-manual-18th-edition-v-261 currently advertises "18th edition" even as it points to https://www.gnu.org/software/emacs/manual/pdf/emacs.pdf which says "Seventeenth Edition". It is simpler and less confusing to stick to one version number like "27.0" in online manuals. For printed manuals people can run, e.g., "texi2any -D 'EDITION Nineteenth'" when generating the 19th printed edition of the Emacs manual. * doc/emacs/emacs.texi (EDITION): * doc/lispintro/emacs-lisp-intro.texi (edition-number, update-date): * doc/lispref/elisp.texi (VERSION, DATE): Remove definitions. Instead, let the person printing the book specify these values, with the default being the online version which does not have printed edition numbers. * doc/lispintro/emacs-lisp-intro.texi (titlepage-edition-number): New flag, for the edition number as it appears on the title page. 2019-11-12 Martin Rudalics Make sure buffer is live before retrieving underline properties (Bug#38038) * src/window.h (WINDOW_BUFFER_LOCAL_VALUE): New macro. * src/nsterm.m (ns_draw_text_decoration): * src/w32term.c (w32_draw_glyph_string): * src/xterm.c (x_draw_glyph_string): Make sure buffer is live before retrieving underline properties from it (Bug#38038). 2019-11-12 Stefan Monnier * lisp/emacs-lisp/easymenu.el (easy-menu-make-symbol): Fix last change 2019-11-11 Paul Eggert Fix a few more minor quoting problems. 2019-11-11 Lars Ingebrigtsen Rename font-log-refontify * lisp/font-lock.el (font-lock-debug-fontify): Rename to make it clearer what the function is for. * doc/lispref/modes.texi (Font Lock Basics): Ditto. 2019-11-11 Stefan Monnier * lisp/startup.el (command-line): Fix last change in package--activated 2019-11-11 Paul Eggert Fix some quoting glitches in doc strings 2019-11-11 Paul Eggert Fix quoting glitch in formatting Gnus messages * lisp/gnus/gnus-util.el (defmacro, gnus-message): Use ‘format-message’, not ‘format’, to be compatible with ‘message’. 2019-11-11 Paul Eggert Fix glitch in generating cxterm doc strings * lisp/international/titdic-cnv.el (tit-process-header): In generated doc strings, escape \, ", ', and ` properly. Currently only ' appears but we might as well future-proof this. 2019-11-11 Wilson Snyder Verilog-Mode collected updates. * lisp/progmodes/verilog-mode.el (verilog-read-decls): Fix to skip over base64-encoded protected data while reading AUTO declarations. Reported by Berend Ozceri. (verilog-auto-inst-port, verilog-auto-inst-vector): Support 'unsigned' in `verilog-auto-inst-vector'. Reported by Jeff Riley. (verilog-read-decls): Fix to ignore `line in AUTOINST, git bug18. Reported by Berend Ozceri. (verilog-library-extensions): Support .va /.vah/.sva/.svah file extensions to load verilog-mode for Verilog-AMS. Reported by Shareef Jalloq. (verilog-read-sub-decls-expr): Fix AUTOOUTPUT etc misparsing Verilog casts, bug1526. Reported by Udi Finkelstein. 2019-11-11 Stefan Kangas Add several configuration files to auto-mode-alist * lisp/files.el (auto-mode-alist): Use conf-mode for .asoundrc, .mairixrc, .mbsyncr, .msmtprc, .nvidia-settings-rc, .offlineimaprc, .reportbugrc, .rtorrent.rc, .screenrc, .mpdconf, .notmuch-config. Use conf-windows-mode for .redshift.conf. (Bug#38065) 2019-11-10 Paul Eggert Document Lisp floats a bit better * doc/lispref/numbers.texi (Float Basics): * doc/misc/cl.texi (Implementation Parameters): * lisp/emacs-lisp/cl-lib.el (cl-most-positive-float) (cl-least-positive-float) (cl-least-positive-normalized-float, cl-float-epsilon) (cl-float-negative-epsilon): Document IEEE floating point better. Don’t suggest that Emacs might use some floating-point format other than IEEE format, as Emacs currently assumes IEEE in several places and there seems little point in removing those assumptions. 2019-11-10 Juri Linkov * lisp/tab-bar.el: Better handling of closed-tabs in tab-bar-list. * lisp/tab-bar.el (tab-bar-list-delete-from-list): Add closed tab to tab-bar-closed-tabs. (tab-bar-list-select): Don't add the closed intermediate tab to tab-bar-closed-tabs. 2019-11-10 Juri Linkov * lisp/autorevert.el: Use 'minibuffer-message' to not obscure the prompt. * lisp/autorevert.el (auto-revert-handler): Use 'minibuffer-message' instead of 'message'. Call it from the original window's buffer that in case of the minibuffer should be current, so minibuffer-message could add a message to it. (Bug#34614) * lisp/emacs-lisp/ert-x.el (ert--make-message-advice): Add nil to the list of values to not use for format-message, because minibuffer-message calls 'message' with nil argument, and tests fail. 2019-11-10 Stefan Kangas Drew Adams Make dired-get-subdir-min obsolete * lisp/dired.el (dired-get-subdir-min): Redefine as obsolete function alias for 'cdr'. (Bug#11571) (dired-get-subdir, dired-get-subdir-max, dired-clear-alist) (dired-next-subdir, dired-current-directory): * lisp/dired-aux.el (dired-rename-subdir-2) (dired-alist-sort, dired-insert-subdir-del) (dired-insert-subdir-doupdate, dired-goto-subdir) (dired-hide-subdir, dired-hide-all): Use 'cdr' instead of the above obsolete function. (dired-subdir-alist): Doc fix. 2019-11-10 Juri Linkov Move read-char-from-minibuffer from simple.el to subr.el and document it. * doc/lispref/minibuf.texi (Multiple Queries): Document read-char-from-minibuffer (bug#10477, bug#38076). * lisp/subr.el (read-char-history) (read-char-from-minibuffer-map) (read-char-from-minibuffer-map-hash) (read-char-from-minibuffer-insert-char) (read-char-from-minibuffer-insert-other, empty-history) (read-char-from-minibuffer): Move from simple.el to subr.el. 2019-11-09 Stefan Monnier * lisp/cedet/semantic/wisent/comp.el (wisent-struct): Remove (core, shifts, reductions, errs): Use cl-defstruct instead. Adjust all users of the set-- setters to use `setf` instead. 2019-11-09 Jimmy Aguilar Mena Add extra bindings to fido-mode. * lisp/icomplete.el (icomplete-fido-mode-map) : Add arrows and other bindings to reproduce ido behaviour. 2019-11-09 Glenn Morris Disable a portion of one doc-test * test/src/doc-tests.el (doc-test-substitute-command-keys): Disable component that fails twice in the past 5 weeks due to changes in the minibuffer map. 2019-11-09 Juri Linkov Don't overwrite y-or-n-p prompt by message from asynchronous man (bug#19064) * lisp/man.el (Man-bgproc-sentinel): Postpone displaying the message and deleting the buffer until exiting the code block with with-current-buffer. Use minibuffer-message to display message to handle possibly active minibuffer. 2019-11-09 Juri Linkov Don't obscure the minibuffer by message (bug#17272) * lisp/subr.el (do-after-load-evaluation): Use minibuffer-message to not obscure a possibly active minibuffer. * lisp/minibuffer.el (minibuffer-message): Record message in the *Messages* buffer. 2019-11-09 Juri Linkov Use the minibuffer to read answer in userlock.el (bug#38076) * lisp/userlock.el: Rename 'fn' to 'filename'. (ask-user-about-supersession-threat): Use read-char-from-minibuffer instead of read-char-choice. 2019-11-09 Stefan Monnier * lisp/startup.el (package--activated): Fix redundant definition 2019-11-09 Stefan Monnier * lisp/ffap.el (ffap-read-file-or-url): Don't use url-file-handler Simplify accordingly (and don't call substitute-in-file-name redundantly). 2019-11-09 Juri Linkov hack-local-variables-confirm uses the minibuffer to read answer (bug#38076) * lisp/files.el (hack-local-variables-confirm): Use read-char-from-minibuffer instead of read-char-choice. Remove special handling of original window scrolling that is now supported in the minibuffer. This fixes https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg01020.html (files--ask-user-about-large-file): Use read-char-from-minibuffer instead of read-char-choice. 2019-11-09 Juri Linkov Add CHARS arg to read-char-from-minibuffer compatible with read-char-choice. * lisp/simple.el (read-char-history): Rename from read-char-from-minibuffer-history. (Bug#38076) (read-char-from-minibuffer-insert-char): Rename from read-char-from-minibuffer-self-insert. (read-char-from-minibuffer-map-hash): New defconst. (read-char-from-minibuffer-insert-other): New command. (read-char-from-minibuffer): Add optional args CHARS and HISTORY. (zap-to-char): Use 'read-char-history as HISTORY arg of read-char-from-minibuffer. * lisp/emacs-lisp/map-ynp.el (read-answer): Use sit-for instead of sleep-for. Replace short answer history yes-or-no-p-history with read-char-history. 2019-11-09 Juri Linkov 'y-or-n-p' now uses the minibuffer to read 'y' or 'n' answer (bug#38076) * doc/lispref/minibuf.texi (Yes-or-No Queries): Update the fact that y-or-n-p uses the minibuffer. * lisp/subr.el (y-or-n-p-history-variable): New variable. (y-or-n-p-map): New keymap. (y-or-n-p-insert-y, y-or-n-p-insert-n, y-or-n-p-insert-other): New commands. (y-or-n-p): Rewrite to use read-from-minibuffer and make-composed-keymap with y-or-n-p-map and query-replace-map. 2019-11-09 Juri Linkov Run scroll/recenter commands from minibuffer in original window (bug#38076) * lisp/minibuffer.el (with-minibuffer-selected-window): New macro. (minibuffer-recenter-top-bottom, minibuffer-scroll-up-command) (minibuffer-scroll-down-command, minibuffer-scroll-other-window): (minibuffer-scroll-other-window-down): New commands. (minibuffer-local-map): Remap recenter/scroll symbols to their minibuffer wrappers: recenter-top-bottom to minibuffer-recenter-top-bottom. * src/window.c (Fother_window_for_scrolling): Use 'lambda' value for MINIBUF arg of Fnext_window, so minibuffer-scroll-other-window and minibuffer-scroll-other-window-down doesn't try to scroll the minibuffer window. 2019-11-09 Karl Fogel Improve an error about the message signer * lisp/gnus/mml-sec.el (mml-secure-epg-sign): Don't suggest setting `mml-secure-smime-sign-with-sender' if it's already non-nil. 2019-11-09 Lars Ingebrigtsen Fix font-lock-keywords slightly * lisp/font-lock.el (font-lock-keywords): Tweak doc string slightly (bug#35005). 2019-11-09 Eli Zaretskii Fix case-insensitive completion of buffer names * test/src/minibuf-tests.el (test-try-completion-ignore-case): New test, suggested by Stefan Monnier . * src/minibuf.c (Ftry_completion): Don't treat strings that are identical but for the case as if they were identical for the purposes of not counting the same string twice. This fixes case-insensitive completion when all the candidates are identical but for the letter-case. (Bug#11339) 2019-11-09 Eli Zaretskii Fix an error in selecting encoding when writing zip files * lisp/international/mule-cmds.el (select-safe-coding-system): Treat no-conversion-multibyte that came from find-auto-coding the same as no-conversion for the purposes of encoding. The same logic that considers no-conversion always safe should do the same with no-conversion-multibyte. (Bug#38155) 2019-11-09 Glenn Morris * lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment): Fix version. 2019-11-09 João Távora Revert "Nudge icomplete-mode a little closer to fido-mode" Fixes bug#38131. This is not the best way to have fido-mdoe emulate that particular bit of ido-mode. This reverts commit 5761a1a3939e23d8e8c725241dd9398a12f191b0. 2019-11-09 João Távora Rename some commands to reflect they are fido-mode specific * lisp/icomplete.el (icomplete-fido-kill) (icomplete-fido-delete-char, icomplete-fido-ret) (icomplete-fido-backward-updir): Rename from icomplete-magic-ido-* versions. (icomplete-fido-mode-map): Use new command names. 2019-11-09 João Távora Protect flex's display-sort-function against 0-length candidates * lisp/minibuffer.el (completion--flex-adjust-metadata): Assume a candidate missing a score has a score of 0. 2019-11-09 Alan Mackenzie Widen around c-font-lock-fontify-region. This fixes bug #38049. * lisp/progmodes/cc-mode.el (c-font-lock-fontify-region): Widen in this function, to ensure that the CC Mode font locking mechanism can examine characters outside the given region. 2019-11-09 Alan Mackenzie CC Mode. Allow fontification of "wrong" style comments with warning face. This fixes bug #4192. * etc/NEWS: Add a new entry. * lisp/progmodes/cc-defs.el (c-font-lock-flush): New macro. * lisp/progmodes/cc-cmds.el (c-toggle-comment-style): On toggling the comment style, invoke c-font-lock-flush when c-mark-wrong-style-of-comment is non-nil, to cause that marking to be done instead on the other style of comment. * lisp/progmodes/cc-fonts.el (c-maybe-font-lock-wrong-style-comments): New function. (c-cpp-matchers): Call c-maybe-font-lock-wrong-style-comments when appropriate. * lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment): New customizable option. * doc/misc/cc-mode.texi (top level, Indentation Commands, Guessing the Style, Custom Macros): For some opening quote marks, correct '' to ``. (Minor Modes): Add an xref to the new page "Wrong Comment Style" in a footnote. (Wrong Comment Style): New page. 2019-11-09 Nick Helm Fix unresponsive Help menu in macOS * src/nsterm.m (ns_check_menu_open): Don't postpone mouse drag and non-user-generated mouse down events (Bug#31371). 2019-11-09 Eli Zaretskii Avoid compiler warnings in addpm.c and ddeclient.c * nt/ddeclient.c (DdeCallback): * nt/addpm.c (DdeCallback): Modify types of the last 2 arguments to avoid compiler warnings in 64-bit builds. (Bug#38040) 2019-11-09 Eli Zaretskii Fix last change * lisp/simple.el (goto-history-element) (next-history-element): Fix quoting of "future history". * doc/lispref/minibuf.texi (Minibuffer Commands) (Text from Minibuffer): Add index entry and cross-reference for "future history". (Bug#38026) 2019-11-09 Hong Xu Mention future history in history-related minibuffer commands * lisp/simple.el (goto-history-element): * doc/lispref/minibuf.texi (Minibuffer Commands): Explain negative NABS. * lisp/simple.el (next-history-element): * doc/lispref/minibuf.texi (Minibuffer Commands): Mention "future history." (Bug#38026) 2019-11-08 Paul Eggert Fix some quoting glitches in doc strings This also fixes a misplaced "only". 2019-11-08 Stefan Monnier * lisp/ffap.el (ffap-read-file-or-url): Fix some URL cases * lisp/ffap.el (ffap-read-file-or-url): Simplify further 2019-11-08 Thierry Volpiatto * lisp/ffap.el (ffap-read-file-or-url): Use `read-file-name` Since we use `url-handler-mode` to deal with URLs, `read-file-name` works just as well, with the added benefit that it interacts correctly with packages that rebind `read-file-name-function`, such as Helm. (ffap-read-url-internal, ffap-read-file-or-url-internal): Remove, unused. 2019-11-08 Eli Zaretskii Fix MS-Windows version reference in FAQ * doc/misc/efaq-w32.texi (Which versions of Windows): Clarify that we support all recent versions of MS-Windows. (Bug#38023) 2019-11-08 João Távora Nudge icomplete-mode a little closer to fido-mode * lisp/icomplete.el (icomplete-completions): Don't use ellipsis when truncating determ in fido-mode. Highlight the center part of determ with icomplete-first-match. 2019-11-08 João Távora Have pcm styles apply faces to face prop, not font-lock-face This is the way the basic completion styles work. This fixes candidate highlighting in icomplete. * lisp/minibuffer.el (completion-pcm--hilit-commonality): Apply faces to 'face property, not font-lock-face. 2019-11-08 Eli Zaretskii Minor copyedits in ELisp manual * doc/lispref/lists.texi (Sets And Lists): Minor rewording of the "Common Lisp note". (Bug#37811) 2019-11-08 Robert Pluim Ensure building and running on non-IPv6 capable hosts works * src/process.c (Fmake_network_process) [AF_INET6]: Only build ::1 localhost when IPv6 is supported. (Fnetwork_lookup_address_info) [AF_INET6]: Move check for Qipv6 inside ifdef, since its definition depends on AF_INET6. Don't return IPv6 addresses when they're not supported. * test/src/process-tests.el (lookup-family-specification, lookup-google): Only do IPv6 lookup if IPv6 is supported. 2019-11-08 Jimmy Aguilar Mena Handle case where a face's :extend attribute is unspecified (Bug#37774) * src/xfaces.c (merge_face_vectors, merge_named_face): Handle case where the :extend attribute's value is 'unspecified' (Bug#37774). 2019-11-07 Stefan Monnier * lisp/emacs-lisp/easymenu.el: Don't quote lambdas (easy-menu-do-define, easy-menu-make-symbol): Replace `(lambda ..) with a closure. 2019-11-07 Michael Albinus Handle different system names of w32 in Tramp (Bug#38079) * lisp/net/tramp.el (tramp-restricted-shell-hosts-alist): Initialize with `system-name' in small and capital chars. 2019-11-07 Robert Pluim Describe IPv6 format in docstring for 'make-network-process' * src/process.c (Fmake_network_process): Add description of IPv6 address format. 2019-11-07 Eli Zaretskii Revert "Don't flash previous buffer when connecting with emacsclient" This reverts commit 49fc040077b33bd1e78ee425575e76329b772a41. It turns out that the fix for a minor aesthetical annoyance caused much more serious bugs: bug#31038, bug#35726, Bug#37097, 2019-11-07 Andrii Kolomoiets python.el: Pdbtracking improvements Allow not to kill buffers when pdbtracking session is finished. Pdbtracking session considered finished judging from the user input. * lisp/progmodes/python.el (python-pdbtrack-kill-buffers): New customizable variable. (python-pdbtrack-set-tracked-buffer): Use it. (python-pdbtrack-unset-tracked-buffer) (python-pdbtrack-tracking-finish): New functions. (python-pdbtrack-continue-command, python-pdbtrack-exit-command): New customizable variables. (python-pdbtrack-process-sentinel): New function. Finish pdbtracking session when process is killed. (python-pdbtrack-prev-command-continue): New variable. (python-pdbtrack-comint-input-filter-function): New function. Finish pdbtracking session based on commands sent to pdb. (python-pdbtrack-comint-output-filter-function): Unset/set tracking buffer if looking at pdb prompt; finish pdbtracking session if filename of current stack frame starts with "<" e.g. "". (python-pdbtrack-comint-output-filter-function): Don't override overlay-arrow-string. (python-pdbtrack-setup-tracking): New function. (inferior-python-mode): Use it. (python-pdbtrack-stacktrace-info-regexp): Default value is changed. Must also match lines with filename like "" and "". * etc/NEWS: Mention python-pdbtrack-kill-buffers 2019-11-07 Michael Albinus Make ange-ftp fit for tramp-tests * lisp/net/ange-ftp.el (ange-ftp-repaint-minibuffer): Use empty message. (ange-ftp-quote-string): Unquote the string. (ange-ftp-substitute-in-file-name, ange-ftp-access-file) (ange-ftp-copy-directory, ange-ftp-make-symbolic-link) (ange-ftp-add-name-to-file): New defuns. Set 'ange-ftp property. (ange-ftp-real-substitute-in-file-name) (ange-ftp-real-copy-directory): New defuns. (ange-ftp-file-name-as-directory): Care about `non-essential'. (ange-ftp-file-attributes): Handle ID-STRING. (ange-ftp-copy-file-internal, ange-ftp-rename-file) (ange-ftp-make-directory): Improve error handling. (ange-ftp-insert-directory): Initialize SWITCHES if they are nil. * test/lisp/net/tramp-tests.el (ange-ftp-make-backup-files): Declare. (tramp-test39-make-nearby-temp-file, tramp--test-ange-ftp-p): New defun. (tramp-test05-expand-file-name-relative) (tramp-test06-directory-file-name, tramp-test10-write-region) (tramp-test11-copy-file, tramp-test12-rename-file) (tramp-test17-insert-directory) (tramp-test26-file-name-completion) (tramp-test37-make-auto-save-file-name) (tramp-test38-find-backup-file-name) (tramp--test-special-characters): Use it. 2019-11-06 Stefan Kangas Clean up major mode check in package-menu-mode * lisp/emacs-lisp/package.el (package--ensure-package-menu-mode): Extract function to warn about incorrect major mode... (package-menu-toggle-hiding, package-menu-refresh) (package-menu-execute): ...from here. (package-menu--mark-upgrades-1): And here, but move call... (package-menu-mark-upgrades): ...here instead. (package-menu-hide-package, package-menu-mark-delete) (package-menu-mark-install, package-menu-mark-unmark) (package-menu-quick-help, package-menu-get-status) (package-menu-filter-by-keyword, package-menu-filter-by-name) (package-menu-clear-filter): Add call to new function. (Bug#37891) 2019-11-06 Stefan Kangas Test that comint-password-prompt-regexp matches "git push" * test/lisp/comint-tests.el (comint-testsuite-password-strings): Test that 'comint-password-prompt-regexp' matches 'git push' output. (Bug#20910) 2019-11-06 Juri Linkov * lisp/dired-aux.el (dired-vc-rename-file): New defcustom. (dired-rename-file): Call vc-rename-file when dired-vc-rename-file is non-nil. * lisp/vc/vc.el (vc-rename-file): Allow renaming added files. Call vc-file-clearprops on new file too for the case when old and new files were renamed to each other back and forth. https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00069.html 2019-11-06 Juri Linkov * lisp/tab-bar.el (tab-bar-history-old): Rename from tab-bar-history-current. (tab-bar-history-old-minibuffer-depth): Rename from tab-bar-history--minibuffer-depth. 2019-11-06 Juri Linkov * lisp/tab-line.el: More configurability for tab buffer groups. * lisp/tab-line.el (tab-line-tabs-buffer-group-function) (tab-line-tabs-buffer-group-sort-function) (tab-line-tabs-buffer-groups-sort-function): New defvars. (tab-line-tabs-buffer-group-name): Rename from tab-line-tabs-buffer-groups--name and use tab-line-tabs-buffer-group-function. (tab-line-tabs-buffer-groups): Use tab-line-tabs-buffer-groups-sort-function and tab-line-tabs-buffer-group-sort-function. (tab-line-new-tab): Let bind tab-line-tabs-buffer-groups to mouse-buffer-menu-mode-groups. 2019-11-06 Paul Eggert Simplify fixnum division slightly * src/data.c (arith_driver): Streamline fixnum division a bit more, and add a comment about why overflow is impossible. This responds to a private comment by Stefan Monnier. 2019-11-06 Alan Mackenzie Add a full set of CC Mode language variables to js.el. This will allow js.el to work after maintenance changes in CC Mode, e.g. the fix to bug #11165. * lisp/progmodes/js.el (top level): Create a CC Mode derived language called js-mode and based on Java Mode. (js-mode): call c-init-language-vars for js-mode. Remove the direct settings of several CC Mode language variables which are now defined through the derived language mechanism. Call c-set-style and set up the needed style variables c-block-comment-prefix and c-comment-prefix-regexp. 2019-11-06 Eli Zaretskii Minor fix in the Emacs manual * doc/emacs/msdos.texi (ls in Lisp): Fix the description of 'ls-lisp-verbosity'. (Bug#38077) 2019-11-06 Stephen Gildea time-stamp: add support for time zone numeric offset * lisp/time-stamp.el: Implement %:z as expanding to the numeric time zone offset, to address the feature request of bug#32931. Do not document it yet, to discourage compatibility problems in mixed Emacs 26 and Emacs 27 environments. Documentation will be added in a subsequent release at least two years later. (We cannot yet use %z for numeric time zone because in Emacs 26 it was documented to do something else.) * test/lisp/time-stamp-tests.el (time-stamp-test-format-time-zone): expand this test and break it into two tests, time-stamp-test-format-time-zone-name and time-stamp-test-format-time-zone-offset. 2019-11-06 Michael Albinus More error checks in Tramp's make-directory * lisp/net/tramp-adb.el (tramp-adb-handle-make-directory): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-make-directory): * lisp/net/tramp-sh.el (tramp-sh-handle-make-directory): * lisp/net/tramp-smb.el (tramp-smb-handle-make-directory): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-make-directory): Signal `file-already-exists' if DIR exists. * test/lisp/net/tramp-tests.el (tramp-test04-substitute-in-file-name): Fix thinko. (tramp-test13-make-directory, tramp-test14-delete-directory) (tramp-test15-copy-directory): Extend tests. 2019-11-06 Stefan Kangas Fix problem with my last commit in package.el * lisp/emacs-lisp/package.el (package-menu--refresh-archives): Rename from duplicated name package-menu--refresh. (Bug#38084) (package-menu-mode, list-packages): Use new name. 2019-11-05 Paul Eggert Update from Gnulib This incorporates: 2019-10-24 timespec-add, timespec-sub: simplify * lib/timespec-add.c, lib/timespec-sub.c: Copy from Gnulib. 2019-11-05 Paul Eggert Remove unneeded overflow check in integer division * src/data.c (arith_driver): Remove unnecessary runtime test, since integer overflow is impossible on division of fixnums, given that the worst case is MOST_NEGATIVE_FIXNUM / -1 which is representable as an EMACS_INT (albeit not as a fixnum). 2019-11-05 Stefan Kangas Avoid changing value of defcustom package-enable-at-startup * lisp/emacs-lisp/package.el (package--activated): New variable to avoid changing value of defcustom 'package-enable-at-startup'. (package-initialize): Don't set 'package-enable-at-startup'. (package-initialize, package-activate-all): Set 'package--activated' instead of 'package-enable-at-startup'. (package--initialized): Add doc string. * lisp/startup.el (command-line): Check if 'package--activated' is non-nil before activating packages. * doc/lispref/package.texi (Packaging Basics): Update docs. 2019-11-05 Stefan Kangas Make 'g' refresh package data in package menu * lisp/emacs-lisp/package.el (package-menu--refresh): Rename from 'package-menu-refresh', make internal and non-interactive. (package-menu-mode-map, package-menu-mode-menu, package-menu-mode) (list-packages): Use the above. (Bug#35504) (package-menu-refresh): Redefine as obsolete fuction alias for 'revert-buffer'. * doc/emacs/package.texi (Package Menu): Document it. * etc/NEWS: Announce it. 2019-11-05 Stefan Kangas Rename *-multiframe-window to *-window-any-frame Suggested by Drew Adams. * lisp/frame.el (next-multiframe-window): Define as obsolete alias for... (next-window-any-frame): ...new function name. (previous-multiframe-window): Define as obsolete alias for... (previous-window-any-frame): ...new function name. (Bug#12436) * lisp/term/ns-win.el (global-map): Use new command name. * doc/emacs/windows.texi (Other Window): Document it. * etc/NEWS: Announce it. 2019-11-05 João Távora Follow JSONRPC spec by not sending :result field on errors Also don't send :error field on non-errors. * lisp/jsonrpc.el (jsonrpc--reply): Don't send :result and :error if none supplied. (Version): Bump to 1.0.8 2019-11-05 Juri Linkov Add prefix arg to more isearch commands (bug#14563) * lisp/isearch.el (isearch--yank-char-or-syntax) (isearch-yank-word-or-char, isearch-yank-symbol-or-char) (isearch-yank-until-char): Add optional prefix arg. 2019-11-05 Juri Linkov * lisp/tab-line.el: New option for tabs where buffers are grouped by mode. * lisp/tab-line.el (tab-line-tabs-function): Add option tab-line-tabs-buffer-groups. (tab-line-tabs-buffer-groups): New defvar defaulted to mouse-buffer-menu-mode-groups. (tab-line-tabs-buffer-groups--name, tab-line-tabs-buffer-groups): New functions. (tab-line-format): Support tabs in the format '(tab (name . "name") ...)'. (tab-line-select-tab): Move part of code to tab-line-select-tab-buffer. (tab-line-select-tab-buffer): New function. (tab-line-tab-current): Rename from tab-line-tab-selected. 2019-11-05 João Távora Document fido-mode * doc/emacs/buffers.texi (Icomplete): Document Fido Mode. * etc/NEWS: Mention Fido Mode. * lisp/icomplete.el (icomplete-mode): Ensure fido-mode is off. (fido-mode): Ensure icomplete-mode is off. (icomplete-magic-ido-ret): Don't force completions if no completions. 2019-11-05 João Távora New fido-mode, emulates ido-mode with icomplete-mode * lisp/icomplete.el (icomplete-fido-mode-map): New variable. (icomplete--fido-mode-setup): New function. (fido-mode): New global minor mode. 2019-11-05 Paul Eggert Pacify byte-compiler in calculator.el * lisp/calculator.el (calculator-expt): Open-code cl-evenp to pacify warning “the function ‘cl-evenp’ might not be defined”. Problem reported by Juanma Barranquero in: https://lists.gnu.org/r/emacs-devel/2019-11/msg00118.html 2019-11-05 Stefan Monnier * admin/unidata/uvs.el: Use lexical-binding * lisp/doc-view.el (doc-view--revert-buffer): Fix last change 2019-11-05 Stefan Kangas Declare unused macro package--push obsolete * lisp/emacs-lisp/package.el (package--push): Declare obsolete. 2019-11-05 Michael Albinus Improve Tramp's copy-directory * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist): Add `copy-directory'. * lisp/net/tramp.el (tramp-handle-copy-directory): New defun. 2019-11-05 Robert Pluim Always check for client-certificates * lisp/net/network-stream.el (network-stream-use-client-certificates): New user option. (open-network-stream): If 'network-stream-use-client-certificates' is t, and the user hasn't specified :client-certificate, do certificate lookups via 'auth-source'. (network-stream-certificate): Only return key and certificate files that exist. * doc/lispref/processes.texi (Network): Document new client-certificate behavior. * etc/NEWS: Document 'network-stream-use-client-certificates'. 2019-11-04 Paul Eggert Simplify calculator-expt * lisp/calculator.el (calculator-expt): Simplify, now that expt does the right thing if the first arg is -1, 0, or 1. 2019-11-04 Paul Eggert Overflow errors are range errors * etc/NEWS: Mention this. * doc/lispref/errors.texi (Standard Errors): Document overflow-error, which was formerly undocumented. It is a range error, not a domain error. * src/data.c (syms_of_data): overflow-error and (undocumented) underflow-error are subtypes range-error, not domain-error. This fixes bugs in timezone-time-from-absolute and in erc-ctcp-reply-PING. 2019-11-04 Paul Eggert Don’t signal overflow for (expt 1 bignum) Similarly for (expt 0 bignum) and (expt -1 bignum). The result is always a -1, 0 or 1, so do not signal overflow. * src/data.c (expt_integer): Do not signal an overflow if -1 <= X <= 1. Be clearer about when overflow is signaled. * test/src/floatfns-tests.el (bignum-expt): Test this. 2019-11-04 Ronnie Schnell Fixes bug where restoring game saved in an endgame question room would show 'nil' as the question. 2019-11-04 Michael Albinus Improve Tramp error handling * lisp/net/tramp.el (tramp-set-syntax): Add missing argument. (tramp-signal-hook-function): Make it more robust. (tramp-handle-directory-files): * lisp/net/tramp-adb.el (tramp-adb-handle-directory-files-and-attributes) (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) (tramp-rclone-handle-directory-files): * lisp/net/tramp-sh.el (tramp-sh-handle-directory-files-and-attributes) (tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-copy-file, tramp-smb-handle-directory-files) (tramp-smb-handle-rename-file): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file): Improve error handling. * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file, tramp-test14-delete-directory) (tramp-test15-copy-directory, tramp-test16-directory-files) (tramp-test19-directory-files-and-attributes): Extend tests. 2019-11-04 Eli Zaretskii Fix last change in dired.c * src/dired.c (file_name_completion): Fix arguments to Fcompare_strings. (Bug#38056) 2019-11-03 Stephen Gildea Fix English grammar in some doc strings and comments (files.el subr.el): Fix some grammar errors in doc strings and comments. (frame.c fringe.c image.c xfns.c xterm.c): Fix some English grammar errors in doc strings. 2019-11-03 Paul Eggert Improve time documentation a bit more * doc/lispref/os.texi (Time of Day, Time Conversion) (Time Parsing, Time Calculations): Improve doc. 2019-11-03 Juri Linkov * lisp/help-fns.el (describe-variable): Add quotes to symbol value of origval. 2019-11-03 Juri Linkov * lisp/tab-bar.el: Better handling of tab-bar-history. * lisp/tab-bar.el (tab-bar-history-limit): Increase to 10 since wc is not saved to the desktop file anymore, so doesn't affect its size. (tab-bar-history--pre-change, tab-bar--history-change): Store wc before possibly entering the minibuffer. 2019-11-03 Juri Linkov * lisp/tab-bar.el: Filter out non-persistent tab parameters from frameset. * lisp/tab-bar.el (frameset-filter-tabs): New function added to 'frameset-filter-alist' for frame parameter 'tabs'. (tab-bar--tab): Remove ws-bl/ws-bbl that are not needed because frameset doesn't save frame buffer-list to desktop anyway. (tab-bar-select-tab): Remove ws-bl/ws-bbl related code. * lisp/emacs-lisp/seq.el (seq-reduce): Add autoload cookie. 2019-11-03 Stefan Kangas Jonas Bernoulli Handle truncate-lines in customize-group * lisp/cus-edit.el (custom-group--draw-horizontal-line): New function to draw horizontal lines which handles a non-nil value of 'truncate-lines'. (Bug#25308) (custom-group-value-create): Use it. 2019-11-03 Lars Ingebrigtsen Fix doc of font-lock-syntactic-face-function * doc/lispref/modes.texi (Syntactic Font Lock): Don't refer to no-longer-existing OTHER-VARS (bug#17730) and include an example. 2019-11-03 Eli Zaretskii Fix file-tests.el on MS-Windows * test/lisp/files-tests.el (files-tests-file-name-non-special-start-file-process): On MS-Windows, wait till the process dies before returning from the files-tests--with-temp-non-special macro, to ensure the temporary directory is successfully deleted. 2019-11-03 Eli Zaretskii Fix case-insensitive completion of non-ASCII file names * src/dired.c (scmp): Comment on (non)applicability to comparisons of non-ASCII strings case-insensitively. (file_name_completion): Decode early the file names read from the directory, and use the decoded names for comparison when letter-case should be ignored. (Bug#11339) 2019-11-03 Lars Ingebrigtsen describe-font/font-info works with unloaded fonts * lisp/international/mule-diag.el (describe-font): This function can be used on unloaded fonts, so remove that restriction from the doc string (bug#16815). Also allow completion over all fonts on the system. * src/font.c (Ffont_info): Ditto for the doc string. 2019-11-03 Lars Ingebrigtsen Add a skeleton to html-mode * lisp/textmodes/sgml-mode.el (html-id-anchor): New skeleton and keystroke (bug#37651). 2019-11-03 Juanma Barranquero * lisp/bs.el (bs-mode): Improve mode docstring. 2019-11-02 Juri Linkov * lisp/tab-line.el (tab-line-tab-selected): New face. (tab-line-format): Use new face tab-line-tab-selected. ([tab-line]): Move tab-switching mouse wheel commands to S-keys. 2019-11-02 Óscar Fuentes Fix data-directory when executing from an out-of-source build Fixes #36828. * src/callproc.c (init_callproc): detect out-of-source build. 2019-11-02 João Távora Allow flymake diagnostic types to have shorter names Eglot, a third-party package which uses Flymake, has its own diagnostic types such as 'eglot-error', 'eglot-warning', etc... While not being too long, they will not fit in the type column of the "list all diagnostics" buffer. This commit allows diagnostic types to have user-defined names and also assigns names to the default categories. * doc/misc/flymake.texi (Flymake error types): Describe flymake-type-name prop. * lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries): Use type names. (flymake-error, flymake-warning, flymake-note): Give these diagnostic categories default type names. 2019-11-02 João Távora Avoid face clashes between Flymake and region highlighting Fix bug#34022. * lisp/progmodes/flymake.el (flymake--highlight-line): Use (PRIMARY . SECONDARY) priority value. 2019-11-02 João Távora Clarify consequences of mismatching Flymake diagnostic buffers Fix bug#34418. * doc/misc/flymake.texi (Flymake utility functions): Add note to flymake-make-diagnostic. * lisp/progmodes/flymake.el (flymake--handle-report): Discard diagnostics from other buffers. 2019-11-02 Lars Ingebrigtsen Further fixup of the previous doc fix in the Faces node * doc/lispref/display.texi (Faces): Improve wording from previous change. 2019-11-02 Lars Ingebrigtsen Revert "Make the debbugs groups also include robot messages" This reverts commit 682eae776efa9d57842345de67becf5c56cafc91. The change made the bug# disappear from the Subject lines. 2019-11-02 Alan Mackenzie CC Mode. Fix slow scrolling by adding a search limit. This fixes bug #10149. * lisp/progmodes/cc-fonts.el (c-font-lock-single-decl) Limit the search by c-go-up-list-backwards to 500 non-literal characters. 2019-11-02 João Távora Correct merge blunder in last icomplete commit * lisp/icomplete.el (icomplete-exhibit): Use while-no-input-ignore-events. 2019-11-02 Eli Zaretskii Document Windows font selection quirks * doc/emacs/msdos.texi (Windows Fonts): Document 'w32-use-w32-font-dialog' and 'w32-fixed-font-alist'. 2019-11-02 Eli Zaretskii Improve documentation of 'set-face-font' * lisp/faces.el (set-face-font): * doc/emacs/frames.texi (Fonts): * doc/lispref/display.texi (Face Attributes) (Attribute Functions): Clarify and correct the documentation of set-face-font and related descriptions of font specifications. (Bug#14647) 2019-11-02 Eli Zaretskii Revert "Omit edition numbers and dates in manuals" This reverts commit 2f42832895942fdeaa0c500511aa19860fa806cd. Editions of Emacs manuals must be coordinated with the FSF publishing staff, as they appear on the printed books. 2019-11-01 Stefan Kangas * .dir-locals.el: Add explanatory header. 2019-11-01 Stefan Kangas Add auto-insert skeleton for ".dir-locals.el" * lisp/autoinsert.el (auto-insert-alist): Add auto-insert skeleton for ".dir-locals.el". 2019-11-01 João Távora New icomplete-tidy-shadowed-file-names variable * lisp/icomplete.el (rfn-eshadow): Require it. (icomplete-tidy-shadowed-file-names): New variable. (icomplete-exhibit): Use icomplete-tidy-shadowed-file-names. 2019-11-01 João Távora Fix icomplete-force-complete-and-exit for no-input situations If there is no minibuffer input, but the user has already cycled some pre-calculated completions, we should be calling minibuffer-force-complete-and-exit instead of minibuffer-complete-and-exit. The former is guaranteed to be fast in this situation and yields the desired "selected" completion, while the latter will just give us the default, ignoring all the cycling of icomplete-{forward|backward}-completions. * lisp/icomplete.el (icomplete-force-complete-and-exit): Add comments and fix for empty input but some completions calculated. 2019-11-01 João Távora Stefan Monnier Improve fix for icomplete's backward-kill-word bug#38024 * lisp/icomplete.el (icomplete-exhibit): Use while-no-input-ignore-events, not redisplay. 2019-11-01 Stefan Kangas * doc/emacs/package.texi (Package Menu): Add index items. 2019-11-01 Stefan Kangas Use PASSWORD_STORE_DIR in auth-source-pass when set * lisp/auth-source-pass.el (auth-source-pass-filename): Initialize to PASSWORD_STORE_DIR environment variable when set. (Bug#29663) 2019-11-01 Stefan Kangas Don't refuse to install packages without a "footer line" * lisp/emacs-lisp/package.el (package-buffer-info): Don't signal an error when the "footer line" is missing. Warn only. (Bug#26490) * etc/NEWS: Announce it. 2019-11-01 Paul Eggert Omit edition numbers and dates in manuals These seem to cause more confusion than they cure; e.g., https://shop.fsf.org/books/gnu-emacs-manual-18th-edition-v-261 currently advertises "18th edition" even as it points to https://www.gnu.org/software/emacs/manual/pdf/emacs.pdf which says "Seventeenth Edition". It is simpler and less confusing to stick to one version number like "26.3". If we need a separate edition number for each printed manual for some reason (marketing?) we can put “@ifset printed-edition” around anything specific to the printed editions. (as opposed to online PDF copies). * doc/emacs/emacs.texi (EDITION): * doc/lispintro/emacs-lisp-intro.texi (edition-number, update-date): * doc/lispref/elisp.texi (VERSION, DATE): Remove, and remove uses. 2019-11-01 Paul Eggert Document limits on some time-conversion functions * doc/lispref/os.texi (Time of Day, Time Zone Rules) (Time Conversion, Time Parsing, Time Calculations): Document functions that limit the range of time values due to OS limits (Bug#37974). 2019-11-01 Lars Ingebrigtsen set-face-font doc string update * lisp/faces.el (set-face-font): Mention what the string formats are (bug#14647). 2019-11-01 Lars Ingebrigtsen Fix documentation of set-face-font in the manual * doc/lispref/display.texi (Attribute Functions): Describe more precisely what set-face-font does (bug#14647). 2019-11-01 Lars Ingebrigtsen Low-Level Font documentation fix * doc/lispref/display.texi (Low-Level Font): Mention what the data types the font attributes are (bug#14634). 2019-11-01 Lars Ingebrigtsen Really enable setting a breakpoint without instrumenting first * lisp/emacs-lisp/edebug.el (edebug-set-breakpoint): Really enable setting a breakpoint without instrumenting first (bug#23469). 2019-11-01 Lars Ingebrigtsen Don't claim that anonymous face can't be used in font-lock * doc/lispref/display.texi (Faces): Anonymous functions can be used when font locking, so adjust the injunction against them (bug#35005). 2019-11-01 Cecilio Pardo (tiny change) Remove an unfunny joke from DEVEL.HUMOR * etc/DEVEL.HUMOR: Remove unfunny joke (bug#38002). 2019-11-01 Filipp Gunbin Make ant regexp in compilation-error-regexp-alist-alist more lax * lisp/progmodes/compile.el: Make ant regexp accept filenames that may occur on Cygwin (like c:/test) and optional additional severity level after task name. * etc/compilation.txt: Add sample. 2019-11-01 Richard Stallman Minor wording change in ELisp manual * doc/lispref/functions.texi (Advising Named Functions): Improve and clarify wording of the advice to avoid advising functions in released code. 2019-10-31 Paul Eggert Fix insert-file-contents file error regression Problem reported for dired-view-file (Bug#37950). * src/fileio.c (Finsert_file_contents): When visiting, signal an error if the file could not be opened for any reason, rather than signaling an error only for nonexistent files, fixing a bug introduced in 2019-09-16T03:17:43!eggert@cs.ucla.edu. 2019-10-31 Eric Ludlam * lisp/cedet/ (semantic-analyze-possible-completions): Add `flags` arg * lisp/cedet/semantic/texi.el (semantic-analyze-possible-completions), lisp/cedet/srecode/srt-mode.el (semantic-analyze-possible-completions), lisp/cedet/semantic/bovine/make.el (semantic-analyze-possible-completions): Add `flags` arg. * lisp/cedet/semantic/grammar.el (semantic-analyze-possible-completions): Add `flags` arg. Reverse the found prefix. (semantic-ctxt-current-class-list): Include token tags as things to appear in non-lisp context. 2019-10-31 Eric Ludlam * test/lisp/cedet/semantic-utest-ia.el: Update from upstream Merge content from CEDET on SF to bring in additional test points and support more types of languages. (semantic-utest-ia-struct.cpp, semantic-utest-ia-templates.cpp) (semantic-utest-ia-using.cpp, semantic-utest-ia-nsp.cpp) (semantic-utest-ia-localvars.cpp, semantic-utest-ia-varnamse.java) (semantic-utest-ia-wisent.wy, semantic-utest-ia-texi) (semantic-utest-ia-make, semantic-utest-ia-srecoder): New test points (semantic-ia-utest-buffer): Use comment-start-skip when looking for test point tokens. Capture errors ignoring debugger to enable test for empty results. Improve output from test diagnostics. (semantic-ia-utest-buffer-refs): Use comment-start-skip to find test point tokens. Author: Eric Ludlam 2019-10-31 Eric Ludlam * test/manual/cedet/tests/test*: More updates from upstream * test/manual/cedet/tests/testjavacomp.java, test/manual/cedet/tests/testnsp.cpp, test/manual/cedet/tests/testsppcomplete.c, test/manual/cedet/tests/testtypedefs.cpp, test/manual/cedet/tests/testvarnames.c: Merge content from CEDET on SF with extended test points for use with test/lisp/cedet/semantic-utest-ia.el Author: Eric Ludlam 2019-10-31 Eric Ludlam * test/manual/cedet/tests/testdoublens.cpp: Update from upstream * test/manual/cedet/tests/testdoublens.hpp: Merge content from CEDET on SF with extended test points for use with test/lisp/cedet/semantic-utest-ia.el Author: Eric Ludlam 2019-10-31 Eric Ludlam * test/manual/cedet/tests/: New files for semantic-utest-ia.el * test/manual/cedet/tests/test.mk, test/manual/cedet/tests/test.srt, test/manual/cedet/tests/test.texi, test/manual/cedet/tests/testlocalvars.cpp, test/manual/cedet/tests/teststruct.cpp, test/manual/cedet/tests/testtemplates.cpp, test/manual/cedet/tests/testusing.cpp, test/manual/cedet/tests/testusing.hh, test/manual/cedet/tests/testvarnames.java. test/manual/cedet/tests/testwisent.wy: New files to be used by test/lisp/cedet/semantic-utest-ia.el. Author: Eric Ludlam 2019-10-31 Alan Third Prevent text flicker with macOS input methods (bug#23412) * src/nsterm.m ([EmacsView setMarkedText:selectedRange:]): Don't always delete the working text as ns-put-working-text does that. 2019-10-31 Mattias Engdegård Inhibit undo-in-region for mouse-drag-region (bug#37700) 'mouse-drag-region' leaves the region active around the dragged text, so a straight undo did not revert the entire operation. To remedy this, inhibit undo-in-region when the last command was mouse-drag-region. (Method suggested by Stefan Monnier.) * lisp/mouse.el (undo-drag-region): Set the undo-inhibit-region property. * lisp/simple.el (undo): Inhibit undo-in-region if the last command had the undo-inhibit-region property set. * doc/lispref/symbols.texi (Standard Properties): * doc/lispref/text.texi (Undo): Document undo-inhibit-region. * etc/NEWS: Announce the property. 2019-10-31 Lars Ingebrigtsen Ensure that font-local variables are buffer-local * lisp/font-lock.el (font-lock-set-defaults): Ensure that the font lock variables are buffer-local even when nil, so that they're copied correctly by mhtml mode when changing sub-modes (bug#33937). 2019-10-31 Lars Ingebrigtsen Clean up font-lock-refontify slightly * lisp/font-lock.el (font-lock-refontify): Use syntax-ppss-flush-cache instead of internal variable. 2019-10-31 Lars Ingebrigtsen Further tweaks to sh-script \ #foo font locking * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Tweak previous \ #foo change to work on all quoted characters, but check that the backslash itself is not backslashed. Regexp from Stefan Monnier. 2019-10-31 Michael Albinus Fix some minor Tramp problems * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): Check, that `tramp-password-save-function' is a function. * lisp/net/tramp-smb.el (tramp-smb-handle-file-system-info): Check, that there is a share. * lisp/net/tramp.el (outline-regexp): Declare. (tramp-get-debug-buffer): Let-bind `signal-hook-function'. * test/lisp/net/tramp-tests.el (tramp-test04-substitute-in-file-name): Skip some tests for Emacs 24 and 25; they let Emacs crash. 2019-10-31 Robert Pluim Rework vc stash bindings This adds create/snapshot bindings to the stash button even when there are no stashes, and extends the stash menu bindings. * etc/NEWS: Announce the bindings. * lisp/vc/vc-git.el (vc-git-stash-shared-map): New keymap. Holds shared bindings between stash button and stash list. (vc-git-stash-map): Inherit from vc-git-stash-shared-map. (vc-git-stash-button-map): New keymap. Holds button bindings, inherit from vc-git-stash-shared-map. (vc-git-stash-shared-help, vc-git-stash-list-help): New defconsts. Abstract out list/button help texts. (vc-git--make-button-text): Set keymap property to vc-git-stash-button-map. (vc-git-make-stash-button): Use vc-git-stash-shared-help. (vc-git-stash-menu-map): Add items for vc-git-stash and vc-git-stash-snapshot. (vc-git-dir-extra-headers): Use vc-git-stash-list-help and vc-git-stash-shared-help. Add vc-git-stash and vc-git-stash-snapshot bindings to text shown when there are no stashes. 2019-10-30 Paul Eggert Fix bug with lock file on nonstandard filesystem * src/filelock.c (create_lock_file): Don’t disable user write access to the lock file (Bug#37884). 2019-10-30 Lars Ingebrigtsen Font-lock symlinks in dired buffers better * lisp/dired.el (dired-font-lock-keywords): Font-lock symlinks differently based on whether they point at a directory or not (bug#17064). Based on code from Michael Heerdegen. 2019-10-30 Juri Linkov * lisp/tab-bar.el (tab-bar-select-tab): Use set-frame-parameter. (tab-bar-list-noselect, tab-bar-list-mode): Rearrange buffer-read-only. 2019-10-30 Paul Eggert Fix print.c infloop on circular lists Fix infinite loops in print.c when a circular list is passed to command-error-default-function or to error-message-string. * src/print.c (print_error_message): Use FOR_EACH_TAIL to avoid infloop on circular lists. (print_object): Use FOR_EACH_TAIL_SAFE, as it uses Brent’s teleporting tortoise-hare algorithm which is asymptotically better than the classic tortoise-hare algorithm that the code wsas using. * test/src/print-tests.el (print-circle-2): When print-circle is nil, do not insist on a particular cycle-detection heuristic. (error-message-string-circular): New test. 2019-10-30 Paul Eggert Fix keyboard.c infloops on circular lists Fix infinite loops in keyboard.c when a circular list is found in a hook, or in help-event-list, or in the argument of event-convert-list, or in a keymap where a Lucid event type list is expected, or in a menu or tab spec. * src/keyboard.c (safe_run_hooks_error, menu_bar_items) (parse_menu_item, parse_tab_bar_item, parse_tool_bar_item): Use FOR_EACH_TAIL to avoid infloop on circular lists. (help_char_p, Fevent_convert_list, lucid_event_type_list_p): Use FOR_EACH_TAIL_SAFE to avoid infloop on circular lists, when the action is idempotent so a circular list can be treated as a noncircular one. 2019-10-30 Paul Eggert Fix fileio.c infloops on circular lists Fix infinite loops in fileio.c when a circular list is the value of after_insert_file_functions, buffer-auto-save-file-format, buffer-file-format, or write-region-annotate-functions. * src/fileio.c (Finsert_file_contents, build_annotations): Use FOR_EACH_TAIL to avoid infloop on circular lists. (build_annotations): Use an EMACS_INT, not an int, to count nesting level. * test/src/fileio-tests.el: (fileio-tests--circular-after-insert-file-functions): New test. 2019-10-30 Kevin Ryde Support \pagebreak[0] for paragraph-separate in latex-mode * lisp/textmodes/tex-mode.el (latex-mode): In 'paragraph-separate' allow optional argument ('[0]', etc.) for '\pagebreak[0]'. (Bug#19039) 2019-10-30 Tom Tromey Send -enable-frame-filters to gdb * lisp/progmodes/gdb-mi.el (gdb-init-1): Send -enable-frame-filters to gdb. 2019-10-30 Lars Ingebrigtsen Fix previous sh-script.el font-lock #comment change * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): We want to match "\ " before a comment; not a space character. 2019-10-30 Lars Ingebrigtsen Revert "Move description of value to syntax-ppss function." This reverts commit 305dbc7e2be05748039aacb1a3d697f6f64bed4c. Both of the functions in question are used a lot in the sources, so move it back to the more basic function. 2019-10-30 Lars Ingebrigtsen Add a new ppss structure for syntax-ppss data * lisp/emacs-lisp/syntax.el (ppss): Add a new structure to provide accessors to the syntax-ppss data. 2019-10-30 Lars Ingebrigtsen Tweak fontification of \url{http://foo.org/bar%zot} in (la)tex-mode * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): \url{http://foo.org/bar%zot} shouldn't be fontified as having a comment, so make the tex-verbatim face overwrite the already-applied syntactical comment bits (bug#37134). 2019-10-30 Lars Ingebrigtsen Bind vc-git-stash to a key * lisp/vc/vc-git.el (vc-git-stash-map): Give `vc-git-stash' a keystroke, because it's a useful command. When there are no stashes, there's no way to use that keystroke (since it's only bound on the stash lines), so perhaps that should also be fixed somehow. 2019-10-30 Lars Ingebrigtsen Clear more data in font-lock-refontify to ensure refontifying * lisp/font-lock.el (font-lock-refontify): Clear out even more data. 2019-10-30 Lars Ingebrigtsen font-lock \ #foo in shell mode more correctly * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): \ #foo isn't a comment -- it's a symbol that starts with a space character (bug#17538). 2019-10-30 Lars Ingebrigtsen Make font-lock-refontify try even harder to refontify * lisp/font-lock.el (font-lock-refontify): Make this command work even after switching global font lock mode on and then off again. 2019-10-30 Lars Ingebrigtsen Fix setgid fontification in dired on some OS-es * lisp/dired.el (dired-font-lock-keywords): Apparently some versions of ls use "S" for setgid and other use "s" (bug#8186). 2019-10-30 Lars Ingebrigtsen Fix "dnl" highlights in m4-mode * lisp/progmodes/m4-mode.el (m4-font-lock-keywords): "dnl" comments should override any previous syntax-based highlighting (37132). This makes "dnl foo#bar" be highlighted correctly. 2019-10-30 Lars Ingebrigtsen Add a convenience function to be used when working on font locking * doc/lispref/modes.texi (Font Lock Basics): Document it. * lisp/font-lock.el (font-lock-refontify): New convenience command. 2019-10-30 Lars Ingebrigtsen Move description of value to syntax-ppss function. * lisp/emacs-lisp/syntax.el (syntax-ppss): Move the description of the return value from... * src/syntax.c (Fparse_partial_sexp): ... here because `syntax-ppss' is what's called over the place, and jumping through an indirection to get to the value description is inconvenient. 2019-10-30 Lars Ingebrigtsen Indent font-lock-fontify-syntactically-region * lisp/font-lock.el (font-lock-fontify-syntactically-region): Indent function. 2019-10-30 Michael Albinus * lisp/net/tramp.el (outline-regexp): Remove declaration. 2019-10-29 Juri Linkov * etc/NEWS: Update renamed function read-char-from-minibuffer. 2019-10-29 Lars Ingebrigtsen Fix image-converter probes * lisp/image/image-converter.el (image-converter--probe): Check that the executable exists before trying to call it. 2019-10-29 Juri Linkov Rename read-char-with-history to read-char-from-minibuffer (bug#10477) * lisp/simple.el (read-char-from-minibuffer-history): Rename from read-char-with-history--history. (read-char-from-minibuffer-map): Rename from read-char-with-history--map. (read-char-from-minibuffer): Rename from read-char-with-history. (read-char-from-minibuffer-self-insert): New command. (zap-to-char): Use read-char-from-minibuffer. 2019-10-29 Lars Ingebrigtsen Make the debbugs groups also include robot messages * lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist): Change the URL to also include robot messages. 2019-10-29 Juri Linkov Reimplement read-char-with-history based on read-from-minibuffer * lisp/simple.el (read-char-with-history): Reimplement based on read-from-minibuffer. * lisp/simple.el (read-char-with-history--map): New variable (bug#10477). 2019-10-29 Juri Linkov * lisp/tab-bar.el: Store point position and frame buffer-lists in tab. * lisp/tab-bar.el (tab-bar--tab): Store additionally point-marker, frame parameters buffer-list and buried-buffer-list, both for wc and ws. Use seq-filter. (tab-bar-select-tab): Restore point-marker after restoring window-configuration. Also restore frame parameters buffer-list and buried-buffer-list both for window-configuration and window-state. (tab-bar-history-limit, tab-bar-history--minibuffer-depth): New variables. (tab-bar-history-current): Rename from tab-bar-history--pre-change. (tab-bar-history--pre-change): Set tab-bar-history-current. (tab-bar--history-change): Use seq-take for tab-bar-history-limit. (tab-bar-history-back, tab-bar-history-forward): Restore point-marker. (tab-bar-list-noselect): Use seq-remove. * lisp/emacs-lisp/seq.el (seq-take, seq-filter): Add autoload cookie. 2019-10-29 Lars Ingebrigtsen Make url-cookie.el be more resistant against bogus data * lisp/url/url-cookie.el (url-cookie-handle-set-cookie): Don't bug out on large max-age values (bug#37974). 2019-10-29 Lars Ingebrigtsen Document run-with-timer * doc/lispref/os.texi (Timers): Mention run-with-timer (bug#37875). 2019-10-29 Lars Ingebrigtsen Default exotic image formats (like .webp) to image-mode * doc/lispref/errors.texi (Standard Errors): Mention the new error. * lisp/files.el (auto-mode-alist): Add a bunch of image suffixes to the list (bug#37972) based on the output from "gm convert -list format" (i.e., graphicsmagick). * lisp/image-mode.el (image-mode): Rewrite to possibly notify the user about image-use-external-converter. (image-mode--setup-mode): Factor out into own function and don't run under `condition-case' as there's nothing here that should error. * lisp/image.el (unknown-image-type): New error. (image-type): Signal that error so that image-mode can offer sensible feedback to the user. 2019-10-29 Lars Ingebrigtsen Fix image-converter probing * lisp/image/image-converter.el (image-converter--find-converter): Stop probing on the first successful probe. 2019-10-29 Stefan Monnier * lisp/minibuffer.el: Tweak and undo parts of recent changes (completion-metadata): Always return a fresh new cons cell. (completion--nth-completion): Don't bother calling adjust-metadata if the result won't be used. (completion-pcm--hilit-commonality): Revert recent change which had removed support for `completions-first-difference` in `substring` and `partial-completion` styles. (completion--flex-adjust-metadata): Treat the arg as immutable. 2019-10-29 Filipp Gunbin Add gradle-kotlin to compilation-error-regexp-alist-alist * lisp/progmodes/compile.el: Add gradle-kotlin to compilation-error-regexp-alist-alist. * etc/compilation.txt: Add samples for it. 2019-10-29 Jimmy Aguilar Mena Optimize conditional recursive merge face. * src/xfaces.c (merge_face_vectors) : Pass ATTR_FILTER to merge_face_ref to stop recursion merging in advance when possible. (merge_named_face) : add more conditions to potentially reduce calls to merge_face_vectors in more unneeded situations. 2019-10-29 Jimmy Aguilar Mena Fix extend face in gui interfaces. * src/xdisp.c (extend_face_to_end_of_line) : Change call to PRODUCE_GLYPHS with append_stretch_glyph to fill until the windows border. 2019-10-29 Jimmy Aguilar Mena Fix inherited :extend attribute in faces. * src/xfaces.c (merge_face_vectors) : Add extra parameter ATTR_FILTER with the same functionality than in merge_named_face. Update all occurrences. (merge_named_face): Remove condition to avoid call `merge_face_vectors`. 2019-10-29 Lars Ingebrigtsen Make shr scale images on all frames * lisp/net/shr.el (shr-rescale-image): Rescale images even if the window isn't on the current frame. 2019-10-28 João Távora Make icomplete-exhibit actually work when navigating up directories Sometimes, when finding files with icomplete-mode, backward-deleting the previous word or sexp (to move up a directory) doesn't actually refresh the file list of the new directory. Forcing redisplay in icomplete-exhibit misteriously fixes the problem. * lisp/icomplete.el (icomplete-exhibit): Add call to redisplay. 2019-10-28 João Távora New commands for making icomplete behave more like ido This tries (not particularly hard) to emulate Ido's magic C-k, C-d, RET and DEL. For now, the new commands have to be explicitly added to an active map by the user, using something like this: (let ((imap icomplete-minibuffer-map)) (define-key imap (kbd "C-k") 'icomplete-magic-ido-kill) (define-key imap (kbd "C-d") 'icomplete-magic-ido-delete-char) (define-key imap (kbd "RET") 'icomplete-magic-ido-ret) (define-key imap (kbd "DEL") 'icomplete-magic-ido-backward-updir)) * lisp/icomplete.el (icomplete-magic-ido-kill) (icomplete-magic-ido-delete-char, icomplete-magic-ido-ret) (icomplete-magic-ido-backward-updir): New commands. 2019-10-28 Juri Linkov * lisp/tab-bar.el: Check for minibuffer-depth in tab-bar-history-mode. * lisp/tab-bar.el (tab-bar-history--pre-change): Store also minibuffer-depth. (tab-bar-history-change): Check stored minibuffer-depth for zero. (tab-bar-history-mode): Use prefix -- for internal functions. 2019-10-28 Mattias Engdegård Use new-style rx extensions in python.el * lisp/progmodes/python.el (python-rx): Use `rx-let' instead of `rx-constituents'. This allows for some slight redundancy reduction, since `rx-let' definitions are expanded inside `not' (bug#37849). Reorder some `or' forms for more efficient matching. 2019-10-28 Hong Xu Add doc for goto-history-element * doc/lispref/minibuf.texi (Minibuffer Commands): Add goto-history-element (bug#37948). * lisp/simple.el (goto-history-element): Clarify NABS. 2019-10-28 Stefan Kangas * lisp/eshell/em-term.el: Remove commented out XEmacs compat code. 2019-10-28 Stefan Kangas Remove more XEmacs compat code from CEDET * lisp/cedet/mode-local.el (mode-local-describe-bindings-1): * lisp/cedet/semantic/idle.el (semantic-idle-summary-out-of-context-faces): * lisp/cedet/semantic/imenu.el (semantic-imenu-rebuild-directory-indexes): * lisp/cedet/semantic/texi.el (semantic-texi-command-completion-list): Remove XEmacs compat code. 2019-10-28 Stefan Kangas Remove obsolete doc references to XEmacs (Bug#37899) * doc/misc/edt.texi (Changes, Goals): * doc/misc/emacs-mime.texi (Charset Translation): * doc/misc/gnus-faq.texi (FAQ 4-15): * doc/misc/pcl-cvs.texi (Bugs): * doc/misc/srecode.texi (SRecode Minor Mode): * lisp/cedet/srecode/insert.el (srecode-insert-ask-variable-method): * lisp/follow.el: * lisp/leim/quail/ipa.el (ipa-x-sampa, ipa-kirshenbaum): * lisp/net/newsticker.el: * lisp/obsolete/iswitchb.el: * lisp/progmodes/hideshow.el: * lisp/savehist.el (savehist-file): * lisp/vc/ediff.el: Remove obsolete references to XEmacs in doc strings and comments. 2019-10-28 Michal Nowak (tiny change) Add cert bundle path for OpenIndiana * lisp/net/gnutls.el (gnutls-trustfiles): Add cert bundle path for OpenIndiana (bug#37960). 2019-10-28 Lars Ingebrigtsen Make ERC respect erc-channel-hide-list * lisp/erc/erc.el (erc-hide-current-message-p): Make erc-channel-hide-list work (bug#37879) by getting matching on the channel name instead of the ERC client name. 2019-10-28 Lars Ingebrigtsen Fix `G c' in Gnus group buffers for non-ASCII text * lisp/gnus/gnus-cus.el (gnus-group-customize): Decoding is superfluous here -- everything is utf-8 already. (gnus-group-customize-done): Don't double-encode the text (bug#37901). 2019-10-28 Lars Ingebrigtsen Be more permissive when interpreting IMAP mail headers * lisp/gnus/nnimap.el (nnimap-transform-headers): Some mail doesn't have space after the colon of the header name. Don't ignore these. 2019-10-28 Lars Ingebrigtsen Make work in read-char-with-history * lisp/simple.el (read-char-with-history): Tweak to make / also traverse the history (bug#10477). 2019-10-28 Koichi Arakawa (tiny change) Reorder command-line switches in Tramp * lisp/net/tramp-sh.el (tramp-maybe-open-connection): `tramp-encoding-command-interactive' must be the last command-line switch, at least for bash. (Bug#37953) 2019-10-27 Juri Linkov * lisp/tab-bar.el: Add tab-bar-history-mode with arrow buttons for navigation. * lisp/tab-bar.el (tab-bar-back-button, tab-bar-forward-button): New variables. (tab-bar-make-keymap-1): Show these buttons in tab-bar-history-mode. (tab-bar--tab): Add history-back and history-forward. (tab-bar-select-tab): Restore history-back and history-forward. (tab-bar-history-omit, tab-bar-history-back) (tab-bar-history-forward, tab-bar-history-pre-change): New variables. (tab-bar-history-pre-change, tab-bar-history-change) (tab-bar-history-back, tab-bar-history-forward) (tab-bar-history-mode): New functions. 2019-10-27 Eric Ludlam * test/lisp/cedet/semantic-utest.el: silence compiler warnings * test/lisp/cedet/semantic-utest-c.el (semantic-test-c-preprocessor-simulation): Use with-current-buffer. * test/lisp/cedet/semantic-utest.el (semantic-utest-makebuffer): Use read-only-mode. (semantic-utest-verify-names-jave, semantic-utest-verify-names-2): Remove functions, unused. 2019-10-27 Stefan Monnier * .gitignore: Don't ignore .rej files Left over rejected hunks that we forgot to merge by hand should not be silently ignored. Better explicitly remove/rename .rej files when done with them. 2019-10-27 Stefan Monnier * lisp/emacs-lisp/seq.el: Don't require cl-lib. (seq-subseq): Move cl-subseq's code here instyead of calling it. * lisp/emacs-lisp/cl-extra.el (cl-subseq): Use seq-subseq. 2019-10-27 Stefan Monnier * lisp/loadup.el: Load minibuffer after cl-generic This is so minibuffer.el can make use of cl-generic * lisp/minibuffer.el (minibuffer-local-completion-map): Move switch-to-completions bindings here from... * lisp/simple.el (minibuffer-local-completion-map): ... here. 2019-10-27 Stephen Gildea time-stamp-time-zone: update customization * lisp/time-stamp.el (time-stamp-time-zone): Support customization with an integer offset (a new possible value of the ZONE argument to format-time-string in Emacs 27). Update the safe-local-variable predicate from string-or-null-p (describing time-stamp-time-zone's domain before 2015) to new predicate time-stamp-zone-type-p (describing the current domain). * test/lisp/time-stamp-tests.el (time-stamp-test-helper-zone-type-p): New test. 2019-10-27 Eli Zaretskii Fix point position after revert-buffer in tabulated-list mode * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Don't use count-screen-lines, as it is unreliable when lines are truncated and the region ends before a newline (the root cause is in vertical-motion, but is very hard to fix there). Instead, use vertical-motion directly, as the problems with counting/not counting the newline that ends the region are not relevant to what we need in this function, which is simply the number of the current window line. (Bug#37941) 2019-10-27 João Távora Optimize lisp/icomplete.el when default completion available Often, when using icomplete with icomplete-show-matches-on-no-input and commands like C-h f, icomplete-exhibit will take a long time (like several seconds) to show all the completions. However, if there is a non-nil default value, like when the C-h f is performed exactly on a function name, the minibuffer prompt will reflect that immediately. If the user immediately presses RE (icomplete-force-complete-and-exit) we take that to mean "use the default" and avoid the long wait. As an extra performance tweak, this commit also removes an unneeded call to icomplete-exhibit in icomplete-minibuffer-setup. * lisp/icomplete.el (icomplete-force-complete-and-exit): Short-circuit possibility of non-nil minibuffer-default. (icomplete-minibuffer-setup): No need to explicitly icomplete-exhibit here since icomplete-post-command-hook will call it unconditionally. 2019-10-27 Mattias Engdegård Expand rx definitions inside (not ...) * lisp/emacs-lisp/rx.el (rx--translate-not): * test/lisp/emacs-lisp/rx-tests.el (rx-not, rx-def-in-not): * doc/lispref/searching.texi (Rx Constructs, Extending Rx): Allow user-defined rx constructs to be expanded inside (not ...) forms, for better composability (bug#37849). 2019-10-27 Michael Albinus Some Tramp trace improvements * lisp/net/tramp.el (tramp-call-process): `result' can also be nil. * test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Improve trace format. 2019-10-26 João Távora Improve scoring algorithm for flex-style completions The previous algorithm had two problems: it considered non-matches in the beginning and end of the string as matching "holes" and failed to penalize larger holes, making flex-score-match-tightness only effective in some corner cases. The new formula, which is described in code and in pseudo-code in the comments, fixes these problems. As a result, by default, C-h f flex now correctly bubbles up "company-search-flex-regexp" to the top, in front of "file-exists-p". With a flex-score-match-tightness smaller than 1.0, the situation is reversed. * lisp/minibuffer.el (flex-score-match-tightness): Adjust default value. Improve docstring example. (completion-pcm--hilit-commonality): Improve example. Remove unused variable. Improve algorithm. 2019-10-26 Juanma Barranquero minibuffer.el: Remove leftover code, unused after recent change * lisp/minibuffer.el (completion-pcm--hilit-commonality): Don't set point-idx. 2019-10-26 Juri Linkov dired-dwim-target uses most recently visited window instead of next window. * doc/emacs/dired.texi (Operating on Files): Document behavior change. * lisp/dired-aux.el (dired-dwim-target-directories): New function. (dired-dwim-target-directory, dired-dwim-target-defaults): Use it to get the most recently used window instead of the next window (bug#35385). * lisp/dired.el (dired-dwim-target): Doc fix. * test/lisp/dired-tests.el: Remove unnecessary require and pacify byte-compiler. 2019-10-26 Juri Linkov Customizable tab-line-tabs-function and new buffer-local tab-line-mode. * lisp/tab-line.el (tab-line-tabs-function): Turn defvar into defcustom with default of tab-line-tabs-window-buffers. (tab-line-tabs-mode-buffers): New function. (tab-line-tabs-window-buffers): Rename from tab-line-tabs. (tab-line-select-tab, tab-line-switch-to-prev-tab) (tab-line-switch-to-next-tab): Handle the value tab-line-tabs-window-buffers of tab-line-tabs-function specially. (tab-line-mode): Rename from global-tab-line-mode and change scope to buffer-local. (global-tab-line-mode): New globalized-minor-mode. (tab-line-mode--turn-on): New function. (tab-line-exclude-modes): New defcustom. (tab-line-exclude): New buffer-local variable. https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00988.html * lisp/dired.el (dired-mark-pop-up): Set tab-line-exclude to nil. Don't set tab-line-format. (Bug#37699) * lisp/speedbar.el (speedbar-mode): Set tab-line-exclude to nil. Don't set tab-line-format. 2019-10-26 Juri Linkov * lisp/tab-bar.el (tab-bar-switch-to-recent-tab): New command. (tab-recent): Alias to tab-bar-switch-to-recent-tab. (tab-bar--tab-index-recent): New internal function. (tab-bar-close-tab-select): Add new default option 'recent'. (tab-bar-close-tab): Handle it. * lisp/emacs-lisp/seq.el (seq-sort-by, seq-remove): Add autoload. 2019-10-26 Juri Linkov * lisp/tab-bar.el (tab-bar-move-tab-to): Add force-mode-line-update. (tab-bar-close-last-tab-choice, tab-bar-close-tab): Adjust option names. 2019-10-26 Robert Cochran Add customization option for what do when the last tab is closed * lisp/tab-bar.el (tab-bar-close-last-tab-choice): New custom variable. (tab-bar-close-tab): Handle closing the last tab specially, referring to tab-bar-close-last-tab-choice. 2019-10-26 Stephen Gildea time-stamp-tests: add name prefix to tests of formatting * test/lisp/time-stamp-tests.el: rename all the time-stamp-string formatting tests to have the word "format" in their name, to make room in the namespace for other, future tests. 2019-10-26 João Távora Restore default value of face completions-common-part The previous commit titled "Rework face hints for partial-string completion styles" contained a potentially controversial backwards-incompatible change to this face's default value. * lisp/minibuffer.el (completions-common-part): Restore empty default value. 2019-10-26 Arash Esbati Improve support for biblatex and cleveref macros * lisp/textmodes/reftex-cite.el (reftex-figure-out-cite-format): Extend regexp to match additional cite commands from biblatex.sty. * lisp/textmodes/reftex-dcr.el (reftex-view-crossref): Extend regexp to match additional cite commands from biblatex.sty and reference commands from cleveref.sty. 2019-10-26 Arash Esbati Avoid infloop's by doing a case-sensitive match * lisp/textmodes/reftex-ref.el (reftex-format-special): Be case-sensitive when checking the actual reference macro against \ref. This avoids infloop when \Ref is chosen. 2019-10-26 Glenn Morris Merge from origin/emacs-26 55dcd32 (origin/emacs-26) Fix rcirc not to interpret nil as nickname ... 2019-10-26 Glenn Morris Merge from origin/emacs-26 73e1727 Fix linear equation system solving in Calc (bug#35374) # Conflicts: # test/lisp/calc/calc-tests.el 2019-10-26 João Távora Rework face hints for partial-string completion styles Don't use completions-first-difference for the 'substring', 'flex' and 'partial-completion' styles, since there can be really no reasonable definition of a "first" difference there. Make completions-common-part inherit from 'underline' so that it is useful by default for all completion styles. * lisp/minibuffer.el (completions-common-part): Adjust description and change default value. (completions-first-difference): Ajust docstring. (completion-pcm--hilit-commonality): Don't use completions-first-difference. 2019-10-26 João Távora Allow completion styles to adjust completion metadata This commit re-does the now-reverted commit with the same title. That version relied on generic functions, which cannot be used yet in files such as lisp/minibuffer.el. This version uses a symbol property completion--adjust-metadata instead. The new facility allows completion styles to have a say in metadata properties such as cycle-sort-function and display-sort-function. This is especially useful for completion styles such as 'flex', which generally produce many matches, including some potentially "obscure" ones. The default sorting strategy would often bubble the latter to the top of the list. The sorting function for 'flex' considers pre-computed matching scores and is thus much better than the default for this particular style. Additionally, it overrides the completion table's cycle-sort-function or display-sort-function properties if they exist, although it still uses them to pre-sort the result, so that they are still relevant for resolving ties. * lisp/minibuffer.el (completion--nth-completion) (completion--flex-adjust-metadata): New helper. (flex): Put completion--adjust-metadata property. 2019-10-26 João Távora Revert "Allow completion styles to adjust completion metadata" Unbreaks the build. This reverts commit 7fc0292f5c49d11fc39853f8bc25586d54221e6a. Unfortunately, cl-defgeneric has some problems when used in lisp/minibuffer.el. 2019-10-26 Stefan Monnier subr.el (run-window-configuration-change-hook): Mark obsolete 2019-10-26 João Távora Allow completion styles to adjust completion metadata The new facility, realized in the completion-adjust-metadata-for-style generic, allows completion styles to have a say in metadata properties such as cycle-sort-function and display-sort-function. This is especially useful for completion styles such as 'flex', which generally produce many matches, including some potentially "obscure" ones. The default sorting strategy would often bubble the latter to the top of the list. The sorting function for 'flex' considers pre-computed matching scores and is thus much better than the default for this particular style. Additionally, it overrides the completion table's cycle-sort-function or display-sort-function properties if they exist, although it still uses them to pre-sort the result, so that they are still relevant for resolving ties. * lisp/minibuffer.el (completion--nth-completion): Call completion-adjust-metadata-for-style. (completion-adjust-metadata-for-style): New generic. (completion-adjust-metadata-for-style 'flex): New method. 2019-10-26 memeplex Replay key if kboard is interrupted while initializing (Bug#37782) The problem with the original fix for bug#5095 is that it drops the current event, which is a valid character event and not -2. Thus, the first ESC character sent by the terminal after turning on focus tracking is lost and we get '[' and 'I' events separately inserted into the buffer afterwards. * src/keyboard.c (read_key_sequence): Add key as mock_input and replay sequence using new keyboard, when the key is not -2. 2019-10-26 memeplex Remove redundant initialization of fringe bitmap (Bug#37756) * src/fringe.c (Fdefine-fringe-bitmap): Remove redundant zeroing of fb.bits that only zeroed half of the array anyway. 2019-10-26 Eli Zaretskii Improve the documentation of 'vc-tor' * lisp/vc/vc-dispatcher.el (vc-tor): Add :version. Enhance the doc string. * etc/NEWS: Announce the new option. 2019-10-26 Richard Stallman New defcustom 'vc-tor' * lisp/vc/vc-dispatcher.el (vc-tor): New user option. (vc-do-command): If vc-tor is non-nil, use 'torsocks'. 2019-10-25 Tassilo Horn Adapt doc-view to latest image-mode changes The functions image-scroll-down, image-scroll-up, image-next-line, and image-previous-line now return pixel values instead of multiples of character height as of commit 9c66b09950. * lisp/doc-view.el (doc-view-scroll-up-or-next-page): (doc-view-scroll-down-or-previous-page): (doc-view-next-line-or-next-page): (doc-view-previous-line-or-previous-page): (doc-view-insert-image): Adapt to image-scroll-up/down and image-next/previous-line now returning pixel values instead of multiples of character heights. Fixes bug#37874. 2019-10-25 Alan Mackenzie CC Mode: Fix positioning of point whilst inserting comments without non-ws * lisp/progmodes/cc-cmds.el (c-guess-fill-prefix): When determining a new block comment prefix (i.e. there isn't one already there to copy), and that prefix is hard up against a comment closer, ensure there are at least two spaces before the closer. (c-indent-new-comment-line): Amend the strategy for ensuring that point isn't left hard up against the comment closer after M-j. 2019-10-25 Stephen Gildea time-stamp-tests: consistently name the time vars * test/lisp/time-stamp-tests.el (with-time-stamp-test-env): rename local variable 'ref-time' to 'ref-time1', for parallelism with ref-time2 and ref-time3. 2019-10-25 Michael Albinus Mention completion styles for Tramp user/host name completion * doc/misc/tramp.texi (File name completion): Emacs must have one of the completion styles `basic', `emacs21', or `emacs22'. 2019-10-25 Juanma Barranquero windmove.el: Suppress warnings for obsolete functions * lisp/windmove.el (windmove-constrain-loc-for-movement) (windmove-wrap-loc-for-movement, windmove-reference-loc) (windmove-other-window-loc): Wrap calls to obsolete functions in `with-suppressed-warnings'. 2019-10-25 Juanma Barranquero windmove.el: Mark unused code as obsolete * lisp/windmove.el (windmove-window-distance-delta) (windmove-coord-add, windmove-constrain-to-range) (windmove-constrain-around-range, windmove-frame-edges) (windmove-constrain-loc-for-movement) (windmove-wrap-loc-for-movement, windmove-reference-loc) (windmove-other-window-loc): Declare obsolete. (windmove-find-other-window, windmove-do-window-select): Doc fixes. * etc/NEWS: Document it. 2019-10-25 Juanma Barranquero * lisp/windmove.el (windmove-frame-edges): Simplify. 2019-10-25 Lars Ingebrigtsen Fix gnus-thread-hide-subtree defcustom * lisp/gnus/gnus-sum.el (gnus-thread-hide-subtree): Make the "Non-nil" predicate do what it's supposed to (i.e., return non-nil on non-nil values (excepting predicates)) (bug#37916). 2019-10-24 Stefan Monnier * lisp/cedet/mode-local.el: Clean up name space Mostly renaming functions by adding `mode-local--` to their name and leaving an obsolete alias behind, just in case. (define-child-mode): Make obsolete. (mode-local--set-parent): Rename from set-mode-local-parent. (mode-local--new-bindings): Rename from new-mode-local-bindings. Use `obarray-make`. (mode-local--activate-bindings): Rename from activate-mode-local-bindings. (mode-local--deactivate-bindings): Rename from deactivate-mode-local-bindings. (make-obsolete-overload): Rename properties with a `mode-local--` prefix. Adjust all users. (mode-local--overload-obsoleted-by): Rename from overload-obsoleted-by. (mode-local--overload-that-obsolete): Rename from overload-that-obsolete. (mode-local--function-overload-p): Rename from function-overload-p. (mode-local-read-function): Mark obsolete. (mode-local--overload-docstring-extension): Rename from overload-docstring-extension. (mode-local--describe-overload): Rename from describe-mode-local-overload. * lisp/cedet/semantic/fw.el (semantic-install-function-overrides): Remove unused `mode` argument. * lisp/cedet/semantic/grammar-wy.el (semantic-grammar-wy--install-parser): * lisp/cedet/semantic/bovine/grammar.el (bovine-grammar-mode): * lisp/cedet/semantic/texi.el (semantic-default-texi-setup): * lisp/cedet/semantic/wisent/grammar.el (wisent-grammar-setupcode-builder) (wisent-grammar-mode): * lisp/cedet/semantic/html.el (semantic-default-html-setup): Make the `semantic-` prefix explicit to ease grep search. (html-helper-mode): Remove obsolete setting. * lisp/cedet/semantic/wisent/javascript.el: Fix js-mode/javascript-mode mixup so we don't need define-child-mode any more. (semantic-get-local-variables, semantic-ctxt-current-symbol) (semantic-tag-protection, semantic-analyze-scope-calculate-access): Use `js-mode` rather than `javascript-mode` as the mode name since that's the real mode's name. * lisp/cedet/semantic/wisent/python.el (python-2-mode, python-3-mode): Remove child declaration for non-existing modes. * lisp/cedet/srecode/map.el (srecode-map-validate-file-for-mode): Simplify. 2019-10-24 Paul Eggert Update from Gnulib This incorporates: 2019-10-23 nstrftime: speed up integer overflow checking 2019-10-23 port better to GCC under macOS 2019-10-15 inttypes: use more-robust test for int range 2019-10-14 update-copyright: use en dashes in .texi ranges * build-aux/update-copyright, lib/intprops.h, lib/inttypes.in.h: * lib/nstrftime.c, lib/verify.h: Copy from Gnulib. 2019-10-24 Juanma Barranquero * doc/lispref/display.texi: Document `delay-warning' 2019-10-24 Mattias Engdegård rx.el: Refactor user-definition expansion * lisp/emacs-lisp/rx.el (rx--translate-not): Simplify structure. * lisp/emacs-lisp/rx.el (rx--expand-def): New. (rx--translate-symbol, rx--translate-form): Use rx--expand-def. 2019-10-23 Stefan Kangas Update FAQ section on large files (Bug#37818) * doc/misc/efaq.texi (Problems with very large files): Extend section and remove information about ancient versions of Emacs. 2019-10-23 Stefan Kangas Update FAQ section on Emacs security (Bug#37818) * doc/misc/efaq.texi (Security risks with Emacs): Remove section on movemail. Add section on third-party packages. 2019-10-23 Stefan Monnier * lisp/cedet/mode-local.el: Use lexical-binding and `declare` (with-mode-local-symbol, with-mode-local, setq-mode-local) (defvar-mode-local, defconst-mode-local) (define-overloadable-function, define-mode-local-override): Use `declare` for indent and edebug specs. (xref-mode-local-find-overloadable-regexp): Simplify regexp. (mode-local-setup-edebug-specs): Delete. (edebug-setup-hook): Don't use any more. 2019-10-23 Juri Linkov * lisp/dired.el (dired-mark-pop-up): Set tab-line-format to nil (bug#37699). 2019-10-23 Juri Linkov * lisp/tab-bar.el: Allow to specify interactively where to add a new tab. * lisp/tab-bar.el (tab-bar-new-tab-to): Rename from tab-bar-new-tab. Add optional arg TO-INDEX. (tab-bar-new-tab): New implementation to use relative ARG. (tab-new-to): Alias to tab-bar-new-tab-to. 2019-10-23 Juri Linkov * lisp/tab-bar.el: Rename tab-bar-swap-tabs to tab-bar-move-tab-to. * lisp/tab-bar.el (tab-bar-move-tab-to): Rename from tab-bar-swap-tabs. Change logic to push the moved tab between existing tabs. (tab-bar-move-tab): Call tab-bar-move-tab-to instead of tab-bar-swap-tabs. (tab-move-to): Rename alias from tab-swap. 2019-10-23 Juri Linkov Implement tab close undo feature for tab-bar. * lisp/tab-bar.el (tab-bar-closed-tabs): New variable. (tab-bar-close-tab): Add closed tab to tab-bar-closed-tabs. Disable tab-bar-mode on closing the last tab. (tab-bar-close-other-tabs): Add all closed tabs to tab-bar-closed-tabs. (tab-bar-undo-close-tab): New command. (tab-undo): Alias to tab-bar-undo-close-tab. 2019-10-23 Stefan Monnier * lisp/cedet/semantic/analyze/complete.el: Fix completion-at-point Completion tables are not supposed to signal errors: emacs -q M-x semantic-mode ; visit a file supported by semantic, such as a C file ; put cursor in a blank space M-x completion-at-point It will error with: "Nothing to complete" (semantic-analyze-possible-completions): Return nil instead of signaling errors. 2019-10-23 Lars Ingebrigtsen Ensure that the prompt is kept on the final line * lisp/erc/erc-goodies.el (erc-possibly-scroll-to-bottom): New function. (scrolltobottom): Add to erc-insert-done-hook. * lisp/erc/erc.el (erc-insert-done-hook): New hook (bug#11697). (erc-display-line-1): Use it. 2019-10-23 Lars Ingebrigtsen Make erc-cmd-CLEAR do what its doc string says * lisp/erc/erc.el (erc-cmd-CLEAR): Delete the buffer contents instead of recentering (bug#31743). 2019-10-23 Lars Ingebrigtsen Make display of S/MIME signatures slightly better * lisp/epg.el (epg-signature-to-string): Decode percent escapes (bug#36101). 2019-10-23 Lars Ingebrigtsen Make Gnus recognise "git am" diffs in all groups * lisp/gnus/mm-uu.el (mm-uu-diff-groups-regexp): Recognise diffs in all groups (bug#32730). 2019-10-22 Stefan Kangas Add version tag to gnutls-min-prime-bits * lisp/net/gnutls.el (gnutls-min-prime-bits): Add version tag. 2019-10-22 memeplex Avoid extra lines in python-shell font lock buffer (Bug#33959) * lisp/progmodes/python.el (python-shell-font-lock-comint-output-filter-function): Avoid writing a newline to the font lock buffer when receiving an empty string. 2019-10-22 Glenn Morris Set expected result for a cedet test * test/lisp/cedet/srecode-utest-template.el (srecode-utest-project): Test fails on hydra.nixos.org, for some reason. 2019-10-22 Juri Linkov Tab-line horizontal scrolling with UI buttons and commands (bug#37667) * etc/images/tabs/left-arrow.xpm: * etc/images/tabs/right-arrow.xpm: New images. * lisp/tab-line.el (tab-line-left-map, tab-line-right-map): New keymaps. (tab-line-left-button, tab-line-right-button): New variables. (tab-line-tab-name-function): Turn defvar into defcustom. (tab-line-tab-name-buffer): New function. (tab-line-tab-name-truncated-buffer): Rename from tab-line-tab-name. (tab-line-tabs-limit): Default to nil. (tab-line-tabs): Behavior depends on tab-line-tabs-limit. (tab-line-format): Use window-parameter tab-line-hscroll. Add left/right buttons. (tab-line-hscroll): New function. (tab-line-hscroll-right, tab-line-hscroll-left): New commands bound to mouse-wheel. Rebind tab-switching commands to mouse-wheel with Ctrl-modifier. 2019-10-22 Lars Ingebrigtsen Fix "make bootstrap" build warning in tab-bar.el * lisp/tab-bar.el (require): Require seq when compiling to avoid a compilation warning. The function it uses is autoloaded, but autoloads aren't loaded when this is built (on "make bootstrap"). 2019-10-22 Eli Zaretskii Fix recent changes in documentation * doc/lispref/edebug.texi (Edebug Eval, Eval List): Reword recently added text to follow conventions. * src/textprop.c (Ftext_properties_at): Don't use passive tense in doc string. 2019-10-22 Stefan Kangas Various doc fixes for auto-insert-mode * doc/misc/autotype.texi (Autoinserting): Various doc fixes. * lisp/autoinsert.el (top-level): Recommend 'auto-insert-mode' over 'add-hook'. 2019-10-22 Lars Ingebrigtsen Make text-properties-at mention describe-text-properties * src/textprop.c (Ftext_properties_at): Mention describe-text-properties in the doc string. 2019-10-22 Lars Ingebrigtsen Add a fringe example * doc/lispref/display.texi (Fringe Bitmaps): Add an example. 2019-10-22 Mattias Engdegård rx doc string tweaks * lisp/emacs-lisp/rx.el (rx--translate-seq, rx--translate-or, rx): Say "zero or more" instead of "one or more" where applicable. 2019-10-22 Lars Ingebrigtsen Make edebug-eval-last-sexp interactively take a zero prefix * lisp/emacs-lisp/edebug.el (edebug-eval-last-sexp): Make the zero prefix work analogously to in eval-last-sexp (bug#28895). (edebug-eval-print-last-sexp): Ditto. 2019-10-22 Robert Pluim Show stash counts in button in vc-dir Based on suggestions from Mattias Engdegård. * lisp/vc/vc-git.el (vc-git--make-button-text): New function to generate text for stash button. (vc-git-make-stash-button): Show stash counts. Delete and recreate button when toggling. (vc-git-dir-extra-headers): Pass counts to vc-git-make-stash-button. Treat stash count <= vc-git-show-stash as equivalent to showing entire list. 2019-10-21 Arash Esbati Move entry for \Ref into LaTeX core * lisp/textmodes/reftex-vars.el (reftex-ref-style-alist): Move entry for \Ref from "Varioref" into "Default" as this macro is part of LaTeX 2019-10-01 kernel. Rearrange entries for "Varioref". 2019-10-21 Stefan Kangas * etc/NEWS: Improve documentation of 'package-initialize'. 2019-10-21 Paul Eggert Portcheck only if --enable-gcc-warnings Problem reported by Richard Copley (Bug#37852). This patch causes the problem to not occur if one uses plain ‘configure’. The problem can still occur if with ‘configure --enable-gcc-warnings’, so a further fix may be needed. * configure.ac (GNULIB_PORTCHECK, _FORTIFY_SOURCE): Define these only with an explicit --enable-gcc-warnings. 2019-10-21 Stefan Kangas Remove XEmacs compat code from speedbar.el * lisp/speedbar.el (speedbar-frame-plist, speedbar-frame-mode) (speedbar-make-overlay, speedbar-overlay-put, speedbar-delete-overlay) (speedbar-mode-line-update, speedbar-frame-reposition-smartly) (speedbar-set-mode-line-format, speedbar-reconfigure-keymaps) (speedbar-add-localized-speedbar-support, speedbar-check-vc) (speedbar-highlight-one-tag-line) (speedbar-unhighlight-one-tag-line): Remove XEmacs compat code. * doc/misc/speedbar.texi (Frames and Faces): Remove documentation for XEmacs. 2019-10-21 Juri Linkov * lisp/vc/vc-annotate.el (vc-annotate-lines): Use set-face-extend (bug#37774) 2019-10-21 Lars Ingebrigtsen Try to not put SMTP passwords in the *Messages* buffer * lisp/mail/smtpmail.el (smtpmail--sanitize-error-message): New function. (smtpmail-send-it): Use it. (smtpmail-send-queued-mail): Ditto. 2019-10-21 Stefan Monnier * lisp/emacs-lisp/cursor-sensor.el: Make it possible to reveal invisible text (cursor-sensor-mode): Hook into post-command-hook as well. (cursor-sensor--detect): Make argument optional. 2019-10-21 Lars Ingebrigtsen Tiny clean-up of previous edebug patch * lisp/emacs-lisp/edebug.el (edebug--overlay-breakpoints): Clean up code slightly. 2019-10-21 Lars Ingebrigtsen Ensure we always remove the breakpoint overlays * lisp/emacs-lisp/edebug.el (edebug--display-1): Remove the overlays here -- this cleans up after exiting no matter how we exited. 2019-10-21 Lars Ingebrigtsen Add fringe markers to edebug breakpoints * lisp/emacs-lisp/edebug.el (edebug--overlay-breakpoints): Set a fringe element to mark the breakpoint. (edebug-breakpoint): Fringe marker. 2019-10-21 Stefan Kangas Clean up previous icalendar.el change * lisp/calendar/icalendar.el (icalendar--rris): Redefine as obsolete function alias. 2019-10-21 Stefan Kangas Remove more XEmacs compat code from viper-*.el * lisp/emulation/viper-cmd.el (viper-submit-report): * lisp/emulation/viper-init.el (viper-set-insert-cursor-type) (viper-restore-cursor-type, viper-use-replace-region-delimiters) (viper-has-face-support-p, viper-window-display-p) (viper-color-display-p, viper-device-type): * lisp/emulation/viper-mous.el (viper-mouse-click-search-word) (viper-mouse-click-insert-word, viper-mouse-click-get-word) (viper-mouse-click-posn, viper-mouse-click-window): * lisp/emulation/viper-util.el (viper-abbreviate-file-name) (viper-set-replace-overlay, viper-maybe-checkout): Remove XEmacs compat code. 2019-10-21 Stefan Kangas Remove XEmacs compat code from icalendar.el (Bug#37816) * lisp/calendar/icalendar.el (icalendar--convert-string-for-export) (icalendar--convert-string-for-import) (icalendar--parse-summary-and-rest) (icalendar--convert-ordinary-to-ical) (icalendar--convert-weekly-to-ical) (icalendar--convert-yearly-to-ical) (icalendar--convert-block-to-ical) (icalendar--convert-cyclic-to-ical) (icalendar--convert-anniversary-to-ical) (icalendar--format-ical-event) (icalendar--convert-recurring-to-diary): Remove XEmacs compat code. (icalendar--rris): Declare obsolete. 2019-10-21 Eli Zaretskii Avoid false indications from Flymake in .dir-locals.el files * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Don't install 'elisp-flymake-checkdoc' and 'elisp-flymake-byte-compile' hooks for .dir-locals.el files. Reported by Clément Pit-Claudel . 2019-10-21 Robert Pluim Add button to vc-dir to toggle visibility of stash list * lisp/vc/vc-git.el: Move cl-lib require outside 'eval-when-compile'. * lisp/vc/vc-git.el (vc-git-show-stash):New user option. (vc-git-make-stash-button): Create button that allows hiding the stash list. (vc-git-dir-extra-headers): Split stash list into hideable and non-hideable parts depending on value of vc-git-show-stash. Add button to toggle visibility of hideable part. * etc/NEWS: Announce it. 2019-10-20 Clément Pit-Claudel Add a way to disable substitution of command keys in help strings * src/keyboard.c (help_echo_substitute_command_keys): New function. (help_echo_echo, parse_menu_item): Use it. (syms_of_keyboard): Define Qhelp_echo_inhibit_substitution. * doc/lispref/text.texi (Special Properties), etc/NEWS: Document the effect of 'help-echo-inhibit-substitution'. 2019-10-20 Paul Eggert Avoid fixnum round trip in prefix-numeric-value * src/callint.c (Fprefix_numeric_value): Simplify. 2019-10-20 Juri Linkov * lisp/tab-line.el: Bind mouse commands to [tab-line]. * lisp/tab-line.el: Bind mouse-4/mouse-5, wheel-up/wheel-down globally to [tab-line]. (tab-line-tab-map): Remove local bindings of mouse-4/mouse-5. (tab-line-new-tab, tab-line-switch-to-prev-tab) (tab-line-switch-to-next-tab, tab-line-close-tab): Turn commands into mouse-free (can be used without mouse). 2019-10-20 Stefan Kangas Don't try to add nil packages on refresh * lisp/emacs-lisp/package.el (package-read-archive-contents): Don't try to add nil entries. Warn instead. (Bug#28502) * test/lisp/emacs-lisp/package-tests.el (package-test-update-archives/ignore-nil-entry): New test. * test/lisp/emacs-lisp/package-resources/with-nil-entry/archive-contents: New file. 2019-10-20 Lars Ingebrigtsen Add a command to toggle an edebug breakpoint * doc/lispref/edebug.texi (Breakpoints): Document this. * lisp/emacs-lisp/edebug.el (edebug-disabled-breakpoint): New face (bug#23472). (edebug-enabled-breakpoint): Rename. (edebug--overlay-breakpoints): Use the new face. (edebug-toggle-disable-breakpoint): New command and keystroke. 2019-10-20 Stefan Kangas Remove XEmacs compat code from decipher.el * lisp/play/decipher.el (decipher-last-command-char) (decipher-keypress): Remove XEmacs compat code. 2019-10-20 Juri Linkov * lisp/tab-bar.el: Use autoloaded seq-position. * lisp/tab-bar.el (tab-bar--current-tab-index) (tab-bar--tab-index, tab-bar--tab-index-by-name): Use seq-position. (tab-bar-select-tab, tab-bar-new-tab, tab-bar-close-tab) (tab-bar-close-other-tabs, tab-bar-rename-tab) (tab-bar-list-execute): Call force-mode-line-update unconditionally independent from tab-bar-mode. (tab-bar-rename-tab, tab-bar-rename-tab-by-name): Use read-from-minibuffer instead of read-string to be able to enter empty string. 2019-10-20 Stefan Kangas Remove XEmacs compat code from meta-mode.el * lisp/progmodes/meta-mode.el (meta-mode-menu): (meta-mode-load-hook): Remove XEmacs compat code. 2019-10-20 Stefan Kangas Remove last XEmacs compat code from tree-widget.el * lisp/tree-widget.el (tree-widget-image-properties-xemacs) (tree-widget-set-theme, tree-widget--cursors) (tree-widget-image-properties, tree-widget-button-keymap) (tree-widget-icon, tree-widget-value-create): Remove XEmacs compat code. 2019-10-20 Stefan Kangas Remove leftover XEmacs compat code from dig.el * lisp/net/dig.el (top-level): Remove leftover XEmacs compat code. 2019-10-20 Mattias Engdegård Add missing rx symbols `bow' and `eow' to documentation * doc/lispref/searching.texi (Rx Constructs): * lisp/emacs-lisp/rx.el (rx): Add missing synonyms. 2019-10-20 Juri Linkov * lisp/tab-bar.el (tab-bar-swap-tabs): Use cl-rotatef instead of rotatef. 2019-10-20 Juri Linkov * lisp/tab-bar.el (tab-bar-swap-tabs, tab-bar-move-tab): New commands. (tab-swap, tab-move): New aliases to new commands. 2019-10-20 Stefan Kangas Disable pause/resume from menu in snake and tetris * lisp/play/tetris.el (tetris--menu-def): * lisp/play/snake.el (snake--menu-def): Disable pause/resume from menu. 2019-10-20 Alan Mackenzie Optimize c-crosses-statement-barrier-p for large blocks of comment. This fixes bug #18134. * lisp/progmodes/cc-engine.el (c-crosses-statement-barrier-p): Give a limit to the c-backward-syntactic-ws which is searching for a virtual semicolon. In the main loop, Use c-forward-syntactic-ws to skip blocks of comments. 2019-10-20 Juri Linkov Provide default value for tab-name/frame-name reading minibuffer * lisp/tab-bar.el (tab-bar-rename-tab, tab-bar-rename-tab-by-name): Provide default value for read-string. (tab-bar-select-tab-by-name): Alias for tab-bar-switch-to-tab. * lisp/frame.el (set-frame-name): Provide default value for read-string in interactive spec. * lisp/cus-start.el (tab-bar-position): Use choice instead of boolean. 2019-10-20 Lars Ingebrigtsen Make edebug-mode-map take precedence * lisp/emacs-lisp/edebug.el (edebug--recursive-edit): Bind minor-mode-overriding-map-alist to avoid other minor modes hiding the edebug commands (bug#11018). 2019-10-20 Jimmy Aguilar Mena Fix internal-lisp-face-attributes to match face. * lisp/face-remap.el (internal-lisp-face-attributes): Updated the vector members to match the real member names. (Bug#37806) (Bug#37824) 2019-10-20 Stephen Leake In xref-location-marker, handle deleted file or outdated xref location nicely * lisp/progmodes/xref.el (xref-location-marker): Add ignore-errors. 2019-10-20 Stefan Kangas Update FAQ entry on XEmacs (Bug#37815) * doc/misc/efaq.texi (Difference between Emacs and XEmacs): Update section to reflect the current state of affairs. XEmacs is not actively developed and is lacking many important features of Emacs. 2019-10-20 Stefan Kangas Improve doc string of eshell and eshell-buffer-name * lisp/eshell/eshell.el (eshell-buffer-name, eshell): Improve doc strings, by clarifying how buffers are named. Also refer users to the Info manual. (Bug#37178) 2019-10-20 Juanma Barranquero * doc/lispref/display.texi (Low-Level Font): Describe max-width. 2019-10-20 Lars Ingebrigtsen Fix edebug--restore-breakpoints re-instrumentinging bug-out * lisp/emacs-lisp/edebug.el (edebug--restore-breakpoints): Don't bug out when instrumenting/de-instrumenting/re-instrumenting. 2019-10-20 Lars Ingebrigtsen Add a new edebug-breakpoint face * doc/lispref/edebug.texi (Breakpoints): Mention it. * lisp/emacs-lisp/edebug.el (edebug-breakpoint): New face. 2019-10-20 Lars Ingebrigtsen while-no-input-ignore-events manual clarification * doc/lispref/commands.texi (Event Input Misc): Be slightly clearer about what while-no-input-ignore-events is. 2019-10-20 Lars Ingebrigtsen New command to clear all breakpoints in a function * doc/lispref/edebug.texi (Breakpoints): Mention it. * lisp/emacs-lisp/edebug.el (edebug-unset-breakpoints): New command and keystroke. 2019-10-20 Lars Ingebrigtsen Preserve breakpoints when Edebug-reinstrumenting functions * lisp/emacs-lisp/edebug.el (edebug--overlay-breakpoints): New function (bug#23470). * lisp/emacs-lisp/seq.el (seq-position): Autoload. 2019-10-20 Michael Albinus Fix docstrings in tramp.el * lisp/net/tramp.el (tramp-antispoof-regexp) (tramp-file-name-handler): Fix docstring. 2019-10-20 Lars Ingebrigtsen Change default to cancel all edebug-on-entry in cancel-edebug-on-entry * lisp/emacs-lisp/edebug.el (cancel-edebug-on-entry): Make the default to cancel all edebug-on-entry. 2019-10-20 Lars Ingebrigtsen Use user-error in cancel-edebug-on-entry * lisp/emacs-lisp/edebug.el (cancel-edebug-on-entry): This is a user-class error, so use user-error. 2019-10-20 Lars Ingebrigtsen Instrument function if it hasn't been already in edebug-set-breakpoint * lisp/emacs-lisp/edebug.el (edebug-set-breakpoint): Instrument form automatically when using this function (bug#23469). 2019-10-20 Lars Ingebrigtsen Fix up previous edebug breakpoint overlay change * lisp/emacs-lisp/edebug.el (edebug--overlay-breakpoints): Only make the overlays in edebug mode, so that we remove them when we exit. 2019-10-20 Lars Ingebrigtsen Mark breakpoints in edebug with highlights * lisp/emacs-lisp/edebug.el (edebug--overlay-breakpoints) (edebug--overlay-breakpoints-remove): New functions (bug#23468). (edebug-modify-breakpoint): Use them to highlight breakpoints. (edebug--display-1): Restore breakpoint highlights. (edebug--recursive-edit): Remove highlights on exit. 2019-10-20 Juanma Barranquero lisp/*.el: Fix typos and improve some docstrings * lisp/auth-source.el (auth-source-backend-parse-parameters) (auth-source-search-collection) (auth-source-secrets-listify-pattern) (auth-source--decode-octal-string, auth-source-plstore-search): * lisp/registry.el (registry-lookup) (registry-lookup-breaks-before-lexbind) (registry-lookup-secondary, registry-lookup-secondary-value) (registry-search, registry-delete, registry-size, registry-full) (registry-insert, registry-reindex, registry-prune) (registry-collect-prune-candidates): * lisp/subr.el (nbutlast, process-live-p): * lisp/tab-bar.el (tab-bar-list): * lisp/cedet/ede/linux.el (ede-linux--get-archs) (ede-linux--include-path, ede-linux-load): * lisp/erc/erc-log.el (erc-log-all-but-server-buffers): * lisp/erc/erc-pcomplete.el (pcomplete-erc-commands) (pcomplete-erc-ops, pcomplete-erc-not-ops, pcomplete-erc-nicks) (pcomplete-erc-all-nicks, pcomplete-erc-channels) (pcomplete-erc-command-name, pcomplete-erc-parse-arguments): * lisp/eshell/em-term.el (eshell-visual-command-p): * lisp/gnus/gnus-cache.el (gnus-cache-fully-p): * lisp/gnus/nnmail.el (nnmail-get-active) (nnmail-fancy-expiry-target): * lisp/mail/mail-utils.el (mail-string-delete): * lisp/mail/supercite.el (sc-hdr, sc-valid-index-p): * lisp/net/ange-ftp.el (ange-ftp-use-smart-gateway-p): * lisp/net/nsm.el (nsm-save-fingerprint-maybe) (nsm-network-same-subnet, nsm-should-check): * lisp/net/rcirc.el (rcirc-looking-at-input): * lisp/net/tramp-cache.el (tramp-get-hash-table): * lisp/net/tramp-compat.el (tramp-compat-process-running-p): * lisp/net/tramp-smb.el (tramp-smb-get-share) (tramp-smb-get-localname, tramp-smb-read-file-entry) (tramp-smb-get-cifs-capabilities, tramp-smb-get-stat-capability): * lisp/net/zeroconf.el (zeroconf-list-service-names) (zeroconf-list-service-types, zeroconf-list-services) (zeroconf-get-host, zeroconf-get-domain) (zeroconf-get-host-domain): * lisp/nxml/rng-xsd.el (rng-xsd-compile) (rng-xsd-make-date-time-regexp, rng-xsd-convert-date-time): * lisp/obsolete/erc-hecomplete.el (erc-hecomplete) (erc-command-list, erc-complete-at-prompt): * lisp/org/ob-scheme.el (org-babel-scheme-get-buffer-impl): * lisp/org/ob-shell.el (org-babel--variable-assignments:sh-generic) (org-babel--variable-assignments:bash_array) (org-babel--variable-assignments:bash_assoc) (org-babel--variable-assignments:bash): * lisp/org/org-clock.el (org-day-of-week): * lisp/progmodes/cperl-mode.el (cperl-char-ends-sub-keyword-p): * lisp/progmodes/gud.el (gud-find-c-expr, gud-innermost-expr) (gud-prev-expr, gud-next-expr): * lisp/textmodes/table.el (table--at-cell-p, table--probe-cell) (table--get-cell-justify-property) (table--get-cell-valign-property) (table--put-cell-justify-property) (table--put-cell-valign-property): Fix typos. * lisp/so-long.el (fboundp): Doc fix. (so-long-mode-line-info, so-long-mode) (so-long--check-header-modes): Fix typos. * lisp/emulation/viper-mous.el (viper-surrounding-word) (viper-mouse-click-get-word): Fix typos. (viper-mouse-click-search-word): Doc fix. * lisp/erc/erc-backend.el (erc-forward-word, erc-word-at-arg-p) (erc-bounds-of-word-at-point): Fix typos. (erc-decode-string-from-target, define-erc-response-handler): Refill docstring. * lisp/erc/erc-dcc.el (pcomplete/erc-mode/DCC): Fix typo. (erc-dcc-get-host, erc-dcc-auto-mask-p, erc-dcc-get-file): Doc fixes. * lisp/erc/erc-networks.el (erc-network-name): Fix typo. (erc-determine-network): Refill docstring. * lisp/net/dbus.el (dbus-list-hash-table) (dbus-string-to-byte-array, dbus-byte-array-to-string) (dbus-check-event): Fix typos. (dbus-introspect-get-property): Doc fix. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler): Rename ARGS to ARGUMENTS. Doc fix. (tramp-adb-sh-fix-ls-output, tramp-adb-execute-adb-command) (tramp-adb-find-test-command): Fix typos. * lisp/net/tramp.el (tramp-set-completion-function) (tramp-get-completion-function) (tramp-completion-dissect-file-name) (tramp-completion-dissect-file-name1) (tramp-get-completion-methods, tramp-get-completion-user-host) (tramp-get-inode, tramp-get-device, tramp-mode-string-to-int) (tramp-call-process, tramp-call-process-region) (tramp-process-lines): Fix typos. (tramp-interrupt-process): Doc fix. * lisp/org/ob-core.el (org-babel-named-src-block-regexp-for-name) (org-babel-named-data-regexp-for-name): Doc fix. (org-babel-src-block-names, org-babel-result-names): Fix typos. * lisp/progmodes/inf-lisp.el (lisp-input-filter): Doc fix. (lisp-fn-called-at-pt): Fix typo. * lisp/progmodes/xref.el (xref-backend-identifier-at-point): Doc fix. (xref-backend-identifier-completion-table): Fix typo. 2019-10-20 Lars Ingebrigtsen New command edebug-remove-instrumentation * doc/lispref/edebug.texi (Instrumenting): Document it. * lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): New command (bug#15843). 2019-10-20 Lars Ingebrigtsen Fix doc string and interactive spec of cancel-edebug-on-entry * lisp/emacs-lisp/edebug.el (cancel-edebug-on-entry): Add doc string and make the interactive spec complete over functions that have the spec (bug#10806). (edebug-cancel-edebug-on-entry): Add alias for discoverability. (edebug-on-entry): Clarify what this command does. 2019-10-20 Lars Ingebrigtsen Revert "Add an edebug-cancel-debug-on-entry alias" This reverts commit cea9577b7d6fcf01599afd48078f8ff1defb1297. cancel-edebug-on-entry and cancel-debug-on-entry are not the same functions. 2019-10-20 Lars Ingebrigtsen Add an edebug-cancel-debug-on-entry alias * lisp/emacs-lisp/debug.el (edebug-cancel-debug-on-entry): Add an alias for easier discoverability (bug#10806). 2019-10-20 Lars Ingebrigtsen Protect against invalid punycode * lisp/net/puny.el (puny-decode-string): Protect against invalid punycode. 2019-10-19 Juri Linkov * lisp/net/eww.el (eww-browse-url-new-window-is-tab): New defcustom. (eww-open-in-new-buffer, eww-browse-url): Use new defcustom (bug#37592). 2019-10-19 Juri Linkov Use 'C-x t' for tab-prefix-map instead of 'C-x 6' still used by 2C-mode-map. * doc/emacs/commands.texi (Keys): Add 'C-x t'. * doc/emacs/frames.texi (Tab Bars): Replace 'C-x 6' with 'C-x t'. * doc/lispref/keymaps.texi (Prefix Keys): Add 'C-x t' (tab-prefix-map). * doc/lispref/maps.texi (Standard Keymaps): Add tab-prefix-map, tab-bar-map. * lisp/dired.el: Rebind 'C-x 6 d' to 'C-x t d'. Use tab-prefix-map. * lisp/subr.el (ctl-x-6-map, ctl-x-6-prefix, ctl-x-t-prefix): Remove. (tab-prefix-map): New keymap bound to 'C-x t'. * lisp/tab-bar.el: Use tab-prefix-map instead of ctl-x-6-map. * lisp/textmodes/two-column.el: Restore autoload global setting of "\C-x6" to 2C-command. * lisp/ldefs-boot.el: Update to add setting "\C-x6" to 2C-command. * doc/emacs/commands.texi (Keys): * doc/emacs/text.texi (Two-Column): * doc/lispref/keymaps.texi (Prefix Keys): * doc/lispref/maps.texi (Standard Keymaps): Restore 'C-x 6' bound to '2C-mode-map'. 2019-10-19 Juri Linkov Add ':extend t' face attribute to diff faces (bug#37774) * lisp/vc/diff-mode.el (diff-header, diff-file-header) (diff-removed, diff-added): Add ':extend t' face attribute. * lisp/vc/ediff-init.el (ediff-current-diff-A) (ediff-current-diff-B, ediff-current-diff-C) (ediff-current-diff-Ancestor, ediff-even-diff-A) (ediff-even-diff-B, ediff-even-diff-C, ediff-even-diff-Ancestor) (ediff-odd-diff-A, ediff-odd-diff-B, ediff-odd-diff-C) (ediff-odd-diff-Ancestor): Add ':extend t' face attribute. * lisp/vc/smerge-mode.el (smerge-upper, smerge-lower) (smerge-base, smerge-markers): Add ':extend t' face attribute. * lisp/vc/log-view.el (log-view-file, log-view-message): Add ':extend t' face attribute. * lisp/faces.el (secondary-selection): Add ':extend t' face attribute. (line-number-major-tick, line-number-minor-tick): Change :foreground to :background. 2019-10-19 Glenn Morris * lisp/net/tramp.el (tramp-antispoof-regexp): Fix version. 2019-10-19 Alan Mackenzie Don't downcase the key binding in global-set-key. This fixes bug #37769. * lisp/subr.el (global-set-key): Provide a non-nil DONT-DOWNCASE argument to read-key-sequence. * etc/NEWS: Add an entry for this change. 2019-10-19 Eli Zaretskii Fix a recent change in Emacs FAQ * doc/misc/efaq.texi (New in Emacs 23, Common requests): Remove references to the removed section "Highlighting a region". 2019-10-19 Michael Albinus * doc/emacs/emacs.texi (Intro): Mention remote file editing. 2019-10-19 Stefan Kangas Don't explain FTP acronym in FAQ * doc/misc/efaq.texi (Common acronyms): Remove explanation of the FTP acronym. Emacs is no longer distributed over FTP, and the FAQ doesn't refer to any other FTP URLs. 2019-10-19 Stefan Kangas Remove FAQ section "Highlighting a region" (Bug#37818) * doc/misc/efaq.texi (Highlighting a region): Remove section. 2019-10-19 Michael Albinus Support PuTTY's antispoof message in Tramp * lisp/net/tramp-sh.el (tramp-actions-before-shell): Add respective entry for PuTTY's antispoof message. * lisp/net/tramp.el (tramp-antispoof-regexp): New defcustom. (tramp-action-confirm-message): New defun. 2019-10-19 Raimon Grau Fix optional parameter passing in calc-fin-* functions * lisp/calc/calc-fin.el (calc-fin-pv, calc-fin-fv, calc-fin-pmt) (calc-fin-pner, calc-fin-rate): Add support for an optional parameter standing for an initial lump. The functions already support it but the extra parameter was not taken into account in stack mode. This commit it takes into consideration when deciding if a function takes 3 or 4 parameters (bug#37649). 2019-10-19 Lars Ingebrigtsen Remove some compat code from cperl-mode.el * lisp/progmodes/cperl-mode.el: Remove old-Emacs compat code. 2019-10-19 Eli Zaretskii Fix display of Info files on TTY frames * lisp/info.el (info-symbols-and-replacements): New variable. (Info-mode): Use 'info-symbols-and-replacements' to set up a buffer-display-table for non-ASCII symbols used by Info files that cannot be displayed on TTY frames. 2019-10-19 Lars Ingebrigtsen Remove some compat code from CEDET * lisp/cedet/semantic.el (pp): * lisp/cedet/semantic/complete.el (initialize-instance): Remove old-Emacs compat code. 2019-10-19 Lars Ingebrigtsen Remove some compat code from mm-url.el * lisp/gnus/mm-url.el (mm-url-use-external): Remove old-Emacs compat code. 2019-10-19 Lars Ingebrigtsen Remove compat code from nnbabyl.el * lisp/gnus/nnbabyl.el (rmail): Remove old-Emacs compat code. 2019-10-19 Lars Ingebrigtsen Remove some compat code in imap.el * lisp/net/imap.el (imap-sasl-auth-p): Remove old-Emacs compat code. 2019-10-19 Hong Xu special-mode doc string clarification * lisp/simple.el (special-mode): Make the doc string explain what special modes are for (bug#37787). 2019-10-19 Lars Ingebrigtsen Don't have shr bug out if svg support isn't available * lisp/net/shr.el (shr-put-image): Don't bug out if SVG support isn't available. 2019-10-19 Cédric Chépied Fix typo in tree-widget-lookup-image * lisp/tree-widget.el (tree-widget-lookup-image): Fix typo introduced by previous cleanup (bug#37809). 2019-10-19 Eli Zaretskii A better fix for tab-line mouse highlight on TTY frames * src/dispnew.c (mode_line_string): * src/xdisp.c (note_mode_line_or_margin_highlight): Remove recently-added workarounds for incorrect TTY mouse highlight: they are no longer needed. (mark_window_display_accurate_1): Set the header_line_p and tab_line_p flags of the window's current_matrix if the window displays these. (display_mode_line): Set the header_line_p and tab_line_p flags of the window's desired_matrix if the window displays these. (Bug#37807) 2019-10-18 Stefan Kangas Remove XEmacs compat code from ezimage.el * lisp/ezimage.el (top-level): Remove XEmacs compat code. 2019-10-18 Paul Eggert Pacify x86 GCC 9 in tab bar code * src/xdisp.c (tty_get_tab_bar_item): Simplify a bit. This pacifies --enable-gcc-warnings with x86 GCC 9.2.1 20190827 (Red Hat 9.2.1-1) when combined with -fsanitize=undefined. 2019-10-18 Stefan Kangas Remove XEmacs compat code from edt-mapper.el * lisp/emulation/edt-mapper.el (edt-mapper, edt-xserver) (edt-map-key): Remove XEmacs compat code. (edt-window-system): Redefine as obsolete variable alias for 'window-system'. 2019-10-18 Stefan Kangas Remove XEmacs compat code from esh-arg.el * lisp/eshell/esh-arg.el (eshell-quote-backslash): Remove XEmacs compat code. 2019-10-18 Paul Eggert Generalize list1i etc. to all signed integer types * src/lisp.h (list1i, list2i, list3i, list4i): Accept intmax_t instead of EMACS_INT, and use make_int instead of make_fixnum. This should help avoid integer-overflow problems akin to the Time bug (Bug#37795). 2019-10-18 Paul Eggert Fix integer-overflow bug in Time conversion Problem reported by Stefan Monnier (Bug#37795). * src/keyboard.c (make_lispy_position) (make_scroll_bar_position, make_lispy_event): * src/xterm.c (x_ewmh_activate_frame): Use INT_TO_INTEGER to convert Time to a Lisp integer, since the value might not be a fixnum. 2019-10-18 Michael Albinus * test/lisp/net/tramp-tests.el (remote-file-name-inhibit-cache): Set to nil. 2019-10-18 Michael Albinus Support old Samba versions in Tramp * doc/misc/tramp.texi (Relevant connection properties to override): New subsection. * lisp/net/tramp-smb.el (tramp-smb-get-cifs-capabilities): Check "posix" connection property. * lisp/net/tramp.el (with-tramp-progress-reporter): Fix docstring. 2019-10-18 Eli Zaretskii Fix mouse highlight with tab-line on TTY frames * src/xdisp.c (note_mode_line_or_margin_highlight): * src/dispnew.c (mode_line_string): Fix mouse highlight on TTY frames when both header line and tab-line are displayed. (Bug#37807) 2019-10-18 Eli Zaretskii Fix handling of mouse events on header line with tab-line * src/window.c (coordinates_in_window): Fix conditions for coordinates being on the window's header line when that window also displays a tab-line. (Bug#37807) 2019-10-18 Mattias Engdegård Use [^z-a] for matching any character (anychar/anything) in rx * lisp/emacs-lisp/rx.el (rx--translate-symbol): * test/lisp/emacs-lisp/rx-tests.el (rx-any, rx-atoms): Use [^z-a] instead of ".\\|\n" for anychar. The new expression is faster (about 2×) and does not allocate regexp stack space. For example, (0+ anychar) now matches strings of any size (bug#37659). 2019-10-18 Mattias Engdegård Add `unmatchable' as alias for (or) in rx (bug#37659) * lisp/emacs-lisp/rx.el (rx--translate-symbol, rx--builtin-symbols, rx): * test/lisp/emacs-lisp/rx-tests.el (rx-atoms): * doc/lispref/searching.texi (Rx Constructs): * etc/NEWS: Add `unmatchable', more descriptive than (or), and corresponding to the variable `regexp-unmatchable'. 2019-10-18 Mattias Engdegård Add `anychar' as alias to `anything' in rx (bug#37659) * lisp/emacs-lisp/rx.el (rx--translate-symbol, rx--builtin-symbols, rx): * test/lisp/emacs-lisp/rx-tests.el (rx-atoms): * doc/lispref/searching.texi (Rx Constructs): * etc/NEWS: Add `anychar', an alias for `anything'. Since `anychar' is more descriptive (and slightly shorter), treat it as the preferred name. 2019-10-17 Michael Heerdegen Extend debug spec of cl-flet (Bug#34481) * lisp/emacs-lisp/cl-macs.el (cl-flet): Extend debug spec to cover definitions of the form (FUNC EXP). 2019-10-17 Stefan Kangas Port snake menu to Emacs * lisp/play/snake.el (snake--menu-def): New constant. (snake-mode-menu, snake-null-menu): Add a menu. (snake-mode): Remove XEmacs compat code. (snake-mode-map, snake-null-map): Add docstring. 2019-10-17 Martin Rudalics In 'bury-buffer' don't try to remove current buffer from minibuffer window * lisp/window.el (bury-buffer): Don't try to remove current buffer from minibuffer window. 2019-10-17 Eli Zaretskii * lisp/recentf.el (recentf-mode): Doc fix. (Bug#37772) * lisp/dired.el (dired-auto-revert-buffer): Doc fix. (Bug#37771) 2019-10-17 Stefan Kangas Port tetris menu to Emacs * lisp/play/tetris.el (tetris--menu-def): New constant. (tetris-mode-menu, tetris-null-menu): Add a menu. (tetris-mode): Remove XEmacs compat code. (tetris-null-map, tetris-mode-map): Add docstring. 2019-10-17 Michael Albinus * lisp/shell.el (shell): Make shell buffer the current buffer. (Bug#37745) 2019-10-17 Stefan Kangas Remove XEmacs compat code from ffap.el * lisp/ffap.el (ffap-what-domain): Remove XEmacs compat code. 2019-10-17 Stefan Kangas Remove XEmacs compat code from imap.el * lisp/net/imap.el (imap-disable-multibyte): Declare obsolete. (imap-log, imap-open): Remove XEmacs compat code. 2019-10-17 Stefan Kangas Remove obsolete XEmacs references from manuals * doc/misc/erc.texi: * doc/misc/eshell.texi: * doc/misc/htmlfontify.texi: * doc/misc/remember.texi: * doc/misc/sieve.texi: * doc/misc/viper.texi: Remove obsolete XEmacs references. 2019-10-17 Stefan Kangas Remove XEmacs reference from viper refcard * etc/refcards/viperCard.tex: Remove reference to XEmacs. 2019-10-17 Stefan Kangas Remove XEmacs compat code from tcl.el * lisp/progmodes/tcl.el (tcl-mode): Remove XEmacs compat code. (tcl-popup-menu): Declare obsolete. 2019-10-17 Stefan Kangas Remove XEmacs reference from erc-button.el todo * lisp/erc/erc-button.el: Remove reference to XEmacs from a todo item. 2019-10-17 Stefan Kangas Remove commented out XEmacs compat code from po.el * lisp/textmodes/po.el: Remove commented out XEmacs compat code. 2019-10-17 Stefan Kangas Improve documentation of shell-command-prompt-show-cwd * doc/emacs/misc.texi (Single Shell): * lisp/simple.el (shell-command): Document 'shell-command-prompt-show-cwd'. (Bug#4987) 2019-10-16 Peter Oliver (tiny change) Allow vc-sccs-diff to work with TRAMP * lisp/vc/vc-sccs.el (vc-sccs-diff): If the diff command is to be run remotely, then the temporary files it's acting on must be remote too (bug#37777). 2019-10-16 Andrii Kolomoiets (tiny change) Add ui.report_untrusted=0 to vc-hg log commands * lisp/vc/vc-hg.el (vc-hg-state-slow, vc-hg-merge-branch) (vc-hg-command): Add "--config" "ui.report_untrusted=0" to the log commands to avoid "Hg-not trusting file " messages in the mode line (bug#31497). 2019-10-16 Juanma Barranquero lisp/*.el, src/*.c: Doc fixes related to returning t vs non-nil * lisp/progmodes/flymake-proc.el (flymake-proc--find-buffer-for-file): Doc fix; return value is a buffer, not t. * lisp/progmodes/ebrowse.el (ebrowse-member-display-p): Doc fix; return value is the MEMBER argument, not nil. * lisp/files.el (hack-one-local-variable-eval-safep): * lisp/play/doctor.el (doctor-nounp, doctor-pronounp): * lisp/progmodes/flymake-proc.el (flymake-proc--check-include): * lisp/progmodes/js.el (js--broken-arrow-terminates-line-p): Doc fix; a non-nil return value is not always t. * lisp/image.el (image-type-available-p): * lisp/simple.el (region-active-p): * lisp/window.el (frame-root-window-p): * src/buffer.c (Fbuffer_live_p): * src/image.c (Finit_image_library): * src/window.c (Fwindow_minibuffer_p): Doc fix; a non-nil return value is always t. * doc/lispref/minibuf.texi (Minibuffer Windows): Doc fix. 2019-10-16 Juanma Barranquero lisp/*.el: Force non-nil result to t, to match docstring * lisp/emacs-lock.el (emacs-lock-live-process-p): * lisp/shadowfile.el (shadow-file-match): * lisp/emacs-lisp/edebug.el (edebug-basic-spec): * lisp/mail/rmail.el (rmail-expunge-confirmed): * lisp/net/soap-client.el (soap-should-encode-value-for-xs-element): * lisp/progmodes/idlwave.el (idlwave-quoted): * lisp/progmodes/idlw-shell.el (idlwave-shell-filename-string): * lisp/textmodes/refbib.el (r2b-isa-proceedings): * lisp/textmodes/texnfo-upd.el (texinfo-find-lower-level-node): Normalize boolean result. 2019-10-16 Juanma Barranquero * lisp/wid-edit.el (widget-default-active): Normalize boolean result. 2019-10-16 Juanma Barranquero Add/fix documentation for widget-apply * doc/misc/widget.texi (Widget Properties): Document `widget-apply'. * src/fns.c (Fwidget_apply): Document return value (used in many places). 2019-10-16 Michael Albinus Adapt Tramp's sudo method for non-default shells (Bug#31924) * lisp/net/tramp-sh.el (tramp-methods) : Change template. (tramp-maybe-open-connection): Remove `tramp-login-env'. (Bug#31924) * lisp/net/tramp.el (tramp-methods): Remove docstring for `tramp-login-env'. 2019-10-16 Juanma Barranquero lisp/speedbar.el: Fix computation of boolean return values * lisp/speedbar.el (speedbar-check-vc-this-line): Normalize boolean result. (speedbar-this-file-in-vc): Use `run-hook-with-args-until-success' to check for files under versin control. Doc fix. 2019-10-16 Michael Albinus * etc/NEWS: Apply "user option" when possible. Fix other oddities. 2019-10-16 Martin Rudalics Handle top margin change in adjust_frame_size * src/frame.c (adjust_frame_size): Handle case where only pseudo windows changed height so the top margin has to be adjusted. * src/window.c (Fset_window_configuration): Call adjust_frame_size with inhibit 4. 2019-10-16 Lars Ingebrigtsen Expand <<- heredocs in sh * lisp/progmodes/sh-script.el (sh--maybe-here-document): Make <<- expansion work, too. 2019-10-15 Robert Pluim Allow event description to be empty The previous fix for this was incomplete. * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event->org-entry): Allow description to be nil. 2019-10-15 Lars Ingebrigtsen Fix some &rest body edebug specs * lisp/ses.el (ses--letref): * lisp/emacs-lisp/crm.el (crm--completion-command): Fix edebug &rest body spec (bug#28747). * lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation): * lisp/emacs-lisp/inline.el (inline--leteval) (inline--letlisteval, inline-letevals): 2019-10-15 Lars Ingebrigtsen Tweak heredoc expansion in shell-script-mode * lisp/progmodes/sh-script.el (sh--maybe-here-document): Allow expanding < Declare tab-bar-tabs the single source of truth in regard to current tab name * lisp/tab-bar.el: Replace all calls of tab-bar-tabs with '(funcall tab-bar-tabs-function)'. (tab-bar-tabs): Update the current tab name here instead of tab-bar-make-keymap-1. (tab-bar-make-keymap-1): Move the current tab name updating to tab-bar-tabs. 2019-10-15 Robert Cochran Allow tabs to have consistent given names * lisp/tab-bar.el (tab-bar--tab): Pull automatic name information from current tab (tab-bar--current-tab): Pull automatic name information from current tab, or from new optional template argument (tab-bar-select-tab): Pass the target tab as a template when setting it as current tab (tab-bar-rename-tab, tab-bar-rename-tab-by-name): New functions * doc/emacs/frames.texi (Tab Bars): Document new tab rename functionality. 2019-10-15 Juri Linkov * lisp/tab-bar.el (tab-bar-select-tab-modifiers): New defcustom. (tab-bar-mode): Use tab-bar-select-tab-modifiers to bind tab-bar-select-tab. Don't override user customized key bindings of C-TAB, C-S-TAB. On disabling tab-bar-mode, unset only keys bound by tab-bar. 2019-10-15 Juri Linkov Don't use expand-file-name to find images for tabs. * lisp/tab-bar.el (tab-bar-mode): * lisp/tab-line.el (tab-line-new-button, tab-line-close-button): Remove expand-file-name with data-directory. 2019-10-15 Juri Linkov New variable tab-bar-position * lisp/cus-start.el: Add customization for tab-bar-position. * src/dispnew.c (syms_of_display): New variable Vtab_bar_position. (adjust_frame_glyphs_for_window_redisplay): Use it. 2019-10-15 Stefan Monnier * lisp/rect.el (string-rectangle): Inherit input method in minibuffer 2019-10-15 Eric Ludlam Fix test data broken by removing trailing whitespace. 2019-10-15 Eric Ludlam Adapt the CEDET SRecoder getset tests to use ERT These tests were copied from CEDET from SourceForge. Author: Eric Ludlam 2019-10-15 Eric Ludlam Adapt the CEDET SRecoder template test to use ERT These tests were copied from CEDET from SourceForge. Author: Eric Ludlam 2019-10-15 Eric Ludlam Copy CEDET/Semantic's tag formatter test suite to be an automated test. These tests were copied from CEDET on Sourceforge and adapted to use ERT. Author: Eric Ludlam 2019-10-15 Eric Ludlam Update CEDET manual tests so that they run. To run visit test/manual/cedet/cedet-utests.el M-x eval-buffer M-x cedet-utest Author: Eric Ludlam 2019-10-15 Eric Ludlam Convert manual CEDET tests from test/manual/cedet to be automated tests in test/lisp/cedet. Author: Eric Ludlam 2019-10-15 Robert Pluim Fix duplicated words in lispref * doc/lispref/text.texi (Base 64): * doc/lispref/internals.texi (Window Internals): Remove duplicated words. 2019-10-15 Robert Pluim Fix duplicated words in comments * src/coding.c (encode_string_utf_8): * src/keyboard.c (syms_of_keyboard): * src/mini-gmp.c (gmp_lucas_mod, mpz_export): * src/pdumper.c (dump_set_referrer, dump_queue_compute_score): * src/timefns.c (Ftime_convert): Remove duplicated words. 2019-10-15 Eli Zaretskii (tiny change) Fix recording keyboard macros in Calc * lisp/calc/calc.el (calc-unread-command): Prevent recording key twice when defining a keyboard macro. Patch by Christoph Arenz . 2019-10-15 Daiki Ueno auth-source: Fix wrong-type-argument when searching plstore `auth-source-search' can be called with an integer port number from `network-stream-certificate`, while the backend implementation doesn't allow non-string attributes. * lisp/auth-source.el (auth-source-plstore-search): Ensure attributes are string. 2019-10-15 Lars Ingebrigtsen Revert "Remove XEmacs code from tetris.el" This reverts commit 68b91333d5a070c84afeadc273fd5c44df70f0a6. This should be ported to Emacs instead. 2019-10-15 Lars Ingebrigtsen Revert "Remove XEmacs-only code from snake.el" This reverts commit 7174a2b59f4cb883beb70bb3d182d59ab425e2f1. This should be ported to Emacs instead. 2019-10-14 Lars Ingebrigtsen Make auth-source work with non-ASCII passwords again * lisp/auth-source.el (auth-source--obfuscate): Convert the string to bytes before obfuscating. (auth-source--deobfuscate): Convert back into a string (bug#37758). 2019-10-14 Lars Ingebrigtsen Add new macro `benchmark-progn' * doc/lispref/debugging.texi (Profiling): Mention it. * lisp/emacs-lisp/benchmark.el (benchmark-progn): New macro. 2019-10-14 Carlos Pita Fix python-shell font-lock cleanup for unclosed quotes (Bug#32390) The problem originating this report was: ------------- In [15]: " File "", line 1 " ^ SyntaxError: EOL while scanning string literal In [16]: string face still here" ------------- This happens because python-shell-font-lock-comint-output-filter-function is called twice, first for the error output and then for the "In [16]: " part. The first time python-shell-comint-end-of-output-p returns nil since we're *not* at the end of an input prompt. The second time it returns 0 since we're at the end of *just* an input prompt. So we don't call python-shell-font-lock-cleanup-buffer either time. The current code is relying in a very weak rule: it considers "just an input prompt" to be a continuation prompt. Another unreliable aspect of the current rule is that sometimes (python-shell-comint-end-of-output-p (ansi-color-filter-apply output)) returns 1 and not 0 for continuation prompts. In short, the rule does a very poor job identifying continuations. * lisp/progmodes/python.el (python-shell-font-lock-cleanup-buffer): Don't check for empty OUTPUT since python-shell-comint-end-of-output-p returns nil for that anyway. Don't check for python-shell-comint-end-of-output-p returning a specific number because it's unreliable, just check for any non-nil. Identify continuation prompts by looking for "...". 2019-10-14 Juri Linkov Add images on tab-bar buttons the first time the tab bar is activated * lisp/tab-bar.el (tab-bar-mode): Set display property with image files on tab-bar-new-button and tab-bar-close-button when tab-bar-mode is enabled the first time. (tab-bar-new-button, tab-bar-close-button): Use default values without display image properties. (Bug#37685) 2019-10-14 Juanma Barranquero lisp/*.el: Force non-nil result to t, to match docstring * lisp/ido.el (ido-ignore-item-p): * lisp/simple.el (use-region-p): * lisp/whitespace.el (whitespace-style-face-p) (whitespace-style-mark-p): * lisp/calendar/cal-islam.el (calendar-islamic-leap-year-p): * lisp/mail/rmail.el (rmail-is-text-p): * lisp/mh-e/mh-alias.el (mh-alias-for-from-p): * lisp/net/imap.el (imap-message-flag-permanent-p): * lisp/progmodes/tcl.el (tcl-real-comment-p): * lisp/textmodes/table.el (table--point-in-cell-p): Normalize boolean result. 2019-10-14 Juri Linkov Set tab-line face height to 0.9. * lisp/tab-line.el (tab-line): Set :height to 0.9. * lisp/tab-bar.el (tab-bar): Remove :height. 2019-10-14 Lars Ingebrigtsen Remove the find-file-visit-truename safe-local-variable * lisp/files.el (find-file-visit-truename): Remove the safe-local-variable put, because the variable is checked too late to actually make a difference (bug#36830). 2019-10-14 Štěpán Němec quail/py-b5: Use U+3007 for ideographic zero (bug#3179) * leim/leim-ext.el ("quail/PY-b5"): Use U+3007 instead of U+25CB for ideographic zero. U+25CB (used previously) is only one of the several lookalikes (bug#3179). 2019-10-14 Lars Ingebrigtsen require-final-newline doc string clarification * lisp/files.el (require-final-newline): Mention that the variable applies to visited files (bug#34986). 2019-10-14 Juri Linkov Use variable-pitch fonts in tab-bar and tab-line faces * lisp/tab-bar.el (tab-bar): * lisp/tab-line.el (tab-line): Inherit face from variable-pitch. 2019-10-14 Stefan Kangas Clarify C void type description in semantic * admin/grammars/c.by: Clarify void type. (Bug#9222) 2019-10-14 Lars Ingebrigtsen dired-do-shell-command doc string fix * lisp/dired-aux.el (dired-do-shell-command): Mention the guesser variables (bug#16562). 2019-10-14 Juri Linkov Fix initial value of frame-inhibit-implied-resize * src/frame.c (syms_of_frame): Update doc string and default value of frame-inhibit-implied-resize in NS to include 'tab-bar-lines. 2019-10-14 Eli Zaretskii Minor fixes in Introduction to Emacs Lisp * doc/lispintro/emacs-lisp-intro.texi (if, save-excursion): 'defun' is a macro, not a special form anymore. (Bug#37747) 2019-10-14 Juri Linkov * lisp/tab-bar.el (tab-bar-tab-name-current): Fix with buffer-name. 2019-10-14 Stefan Kangas Improve documentation of dired-do-chmod * lisp/dired-aux.el (dired-do-chmod): Doc fix. The part about MS-Windows was written by Eli Zaretskii. (Bug#24897) 2019-10-14 Philipp Stephani Enable modules by default. The interface has been stable since Emacs 25, and most bugs are fixed by now. * configure.ac: Enable modules by default. 2019-10-14 Michael Albinus Suppress eager completion on not connected hosts in Tramp * lisp/net/tramp.el (tramp-completion-handle-file-name-completion): Bind `non-essential' to t. 2019-10-14 Jimmy Aguilar Mena Merge branch 'feature/extend_face_id' New face attribute :extend to control the face extension after EOL. necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit. 2019-10-14 Jimmy Aguilar Mena Fix issue calling face_at_pos. *src/xdisp.c (extend_face_to_end_of_line): Add extra condition when producing glyphs from a C string to not call face_at_pos. 2019-10-14 Jimmy Aguilar Mena Modify face_at_pos to not modify change IT. src/xdisp.c (face_at_pos): Removed code to that modified it->start_of_box_run_p and it->face_box_p. This function should not modify it. (handle_face_prop): Added code to update it->start_of_box_run_p and it->face_box_p. (underlying_face_id): Input IT made CONST. 2019-10-14 Jimmy Aguilar Mena *etc/NEWS: Added comment about :extend face attribute in NEWS. 2019-10-14 Jimmy Aguilar Mena Document new :extend face attribute in manuals. Some stylistic corrections in src/xdisp.c and src/xfaces.c. 2019-10-14 Jimmy Aguilar Mena Fixed merge_face_ref recursive calls. * src/xfaces.c (merge_face_ref): Fixed recursive calls to consider filter when CONSP (face_ref). 2019-10-14 Jimmy Aguilar Mena Optimization in extend_face * src/xdisp.c (extend_face_to_end_of_line): Optimization to void calls to face_at_pos. 2019-10-14 Jimmy Aguilar Mena Extend_face simplify. * src/dispextern.h (struct it): Removed extend_face unneeded members. * src/xdisp.c (handle_face_prop_general): renamed to face_at_pos and removed input parameter initial_face_id. Updated all occurrences. 2019-10-14 Jimmy Aguilar Mena Added parameter attr_filter to face_at_string_position. Update all the occurrences in src/xdisp.c and src/xfaces.c 2019-10-14 Jimmy Aguilar Mena Extend face hl-line after end-of-line * lisp/hl-line.el (face hl-line): Added extend attribute to hl-line face. 2019-10-14 Jimmy Aguilar Mena Fix last change in append_space_for_newline. * src/xdisp.c (append_space_for_newline): Code refactor and simplification. 2019-10-14 Jimmy Aguilar Mena Add space for cursor to work also in terminal. * src/xdisp.c (append_space_for_newline): Modified to add the space with the last face also in terminal interface. (fill_column_indicator_column): Modified to group more conditions. (extend_face_to_end_of_line): Simplified code in fill_column_indicator to use the new function. 2019-10-14 Jimmy Aguilar Mena Changed handle_face_prop_general prototype. * src/xdisp.c (handle_face_prop_general): Changed function prototype to receive different arguments. 2019-10-14 Jimmy Aguilar Mena Fixed extend face filtered for prop. * src/xfaces.c (face_at_buffer_position): Pass ATTR_FILTER to merge_face_ref in when !NILP (prop). 2019-10-14 Jimmy Aguilar Mena Call handle_face_prop_general to extend face. * src/xdisp.c (extend_face_to_end_of_line): Added a call to handle_face_prop_general to extend face after EOL according to parameter :extend in the faces. 2019-10-14 Jimmy Aguilar Mena Update dfci code with new extend_face code. * src/xdisp.c (extend_face_to_end_of_line): Updated the column-indicator code to use the new version of the function fill_column_indicator_column. 2019-10-14 Jimmy Aguilar Mena New parameter to control the face extension.. * src/xdisp.c (handle_face_prop_general): New function to specialize handle_face_prop with ATTR_FILTER. * src/dispextern.h (face_at_buffer_position): Added LFACE_ATTRIBUTE_INDEX. * src/xfaces.c (merge_face_ref): Added LFACE_ATTRIBUTE_INDEX to merge conditionally. 2019-10-14 Jimmy Aguilar Mena Added face parameter :extend. This is an initial change to add a parameter :extend that will be used in the display engine later. 2019-10-14 Jimmy Aguilar Mena Simplify struct face to use only underline. * src/dispextern.h (enum face_underline_type): Add FACE_NO_UNDERLINE = 0. (struct face): Merge `underline_type` and `underline_p` into `underline`. Update all the occurrences in src/xdisp.c, src/xfaces.c, and src/xterm.c. 2019-10-14 Robert Pluim Fix directory-files-recursively doc typo * lisp/files.el (directory-files-recursively): Fix doc string. 2019-10-14 Martin Rudalics Fix bug recently introduced in 'fit-window-to-buffer' (Bug#37743) * lisp/window.el (fit-window-to-buffer): Call 'window-combined-p' with right argument (Bug#37743). 2019-10-13 Lars Ingebrigtsen Fix up previous dired change again * lisp/dired.el (dired-set-id): Fix the name of the face after the previous change. 2019-10-13 Lars Ingebrigtsen Fix typo in previous dired change * lisp/dired.el (dired-set-idguid): Remove superfluous ' introduced by previous change (bug#37742). 2019-10-13 Lars Ingebrigtsen (help-fns--var-aliases): Fix compilation warning in previous patch. 2019-10-13 Lars Ingebrigtsen Make `C-h v' list all aliases a variable has * lisp/help-fns.el (help-fns--var-aliases): New function (bug#15179). 2019-10-13 Hong Xu Make url-hexify-string accept a list of allowed chars (bug#26469) * lisp/url/url-util.el (url-hexify-string): Accept a list of allowed chars. * doc/misc/url.texi (URI Encoding): Update url-hexify-string doc and index improvements (bug#24694). 2019-10-13 Lars Ingebrigtsen Tweak ispell-init-process messaging * lisp/textmodes/ispell.el (ispell-init-process): Output a "done" after the "starting" message (bug#12828). 2019-10-13 Lars Ingebrigtsen Add a new tar-copy-preserve-time variable * lisp/tar-mode.el (tar-copy-preserve-time): New variable (bug#11882). (tar-copy): Use it. 2019-10-13 Lars Ingebrigtsen Clarify message about newer source file * src/lread.c (Fload): Mention which file was actually used instead of just saying that the .el is newer than the .elc (bug#10637). 2019-10-13 Lars Ingebrigtsen Allow zap-to-char to use a history * doc/emacs/killing.texi (Other Kill Commands): Document it. * lisp/simple.el (read-char-with-history): New function (bug#10477). (zap-to-char): Use it to have a history. 2019-10-13 Lars Ingebrigtsen Font-lock suid/guid files in Dired * lisp/dired.el (dired-font-lock-keywords): Font-lock suid/guid permissions (bug#8186). (dired-sguid): New face. 2019-10-13 Lars Ingebrigtsen Further changes to ensure that copy-keymap doesn't segfault * src/keymap.c (copy_keymap_1, copy_keymap_set_char_table): Ensure we don't recurse infinitely when using non-sparse keymaps, too. This change makes this form not segfault: (let ((map (make-keymap))) (define-key map " " map) (copy-keymap map)) 2019-10-13 Stefan Kangas Clarify mouse commands section in manual * doc/emacs/frames.texi (Mouse Commands): Clarify section on mouse wheel somewhat. (Bug#28182) 2019-10-13 Juri Linkov Don't display the number of windows in tab name in tab-bar by default. * lisp/tab-bar.el (tab-bar-tab-name-function): Change the default value. (tab-bar-tab-name-current): Rename from tab-bar-tab-name-selected-window. (tab-bar-tab-name-current-with-count): New function. (tab-bar-tab-name-all): Rename from tab-bar-tab-name-all-windows. 2019-10-13 Juri Linkov * lisp/window.el (next-buffer, previous-buffer): Add repeat count arg. * doc/emacs/buffers.texi (Select Buffer): Mention arg as repeat count. (Bug#37514) 2019-10-13 Lars Ingebrigtsen Make list-buffers--refresh preserve marks * lisp/buff-menu.el (list-buffers--refresh): Preserve the marked buffers when refreshing the list (bug#6491). 2019-10-13 Juri Linkov Enable tab-bar-mode from X resources * lisp/startup.el (x-apply-session-resources): Enable tab-bar-mode when X resource "tabBar" class "TabBar" is "on", "yes" or "1". * doc/man/emacs.1.in: * doc/emacs/xresources.texi (Table of Resources): Document X resource "tabBar" (class "TabBar"). 2019-10-13 Juri Linkov Fix initial value of frame-inhibit-implied-resize * src/frame.c (syms_of_frame): Update doc string and default value of frame-inhibit-implied-resize in NS to not include 'tab-bar-lines, and non-toolkit X builds to include 'tab-bar-lines. 2019-10-13 Lars Ingebrigtsen Fix hitting RET on some text in compilation-mode * lisp/progmodes/compile.el (compilation-next-error-function): Don't bug out with an incomprehensible error message on "make[2]:" texts (bug#5316). (compilation-find-file): Protect against there being no file name. 2019-10-13 Paul Eggert * src/xdisp.c (note_tab_bar_highlight): Simplify HAVE_NS ifdefs. 2019-10-13 Lars Ingebrigtsen Add a new action in save-some-buffers to view the buffer * doc/emacs/files.texi (Save Commands): Document it. * lisp/files.el (save-some-buffers-action-alist): Offer to pop to the buffer and then quit (bug#3625). (save-some-buffers): Implement it. (save-some-buffers--switch-window-callback): New variable. 2019-10-13 Mattias Engdegård Correctly explain test failures with mixed uni/multibyte strings * lisp/emacs-lisp/ert.el (ert--explain-equal-rec): * test/lisp/emacs-lisp/ert-tests.el (ert-test-explain-equal): When explaining a difference between a unibyte and a multibyte string, first convert both to multibyte. Otherwise, we might end up comparing unibyte char C to multibyte char C, 127 Mention shifted alphabetical control GUI sequences * doc/emacs/custom.texi (Modifier Keys): Mention that you can bind shifted alphabetical control sequences in GUI frames (bug#23247). 2019-10-13 Philipp Stephani Avoid compiler warnings on macOS. * src/xdisp.c (note_tab_bar_highlight): Define variables 'dpyinfo' and 'mouse_down_p' only if needed. 2019-10-13 Basil L. Contovounesios Fix with-coding-priority markup in Elisp manual * doc/lispref/nonascii.texi (Specifying Coding Systems): Don't use '&rest' in conjunction with 'body...' in arglist of with-coding-priority. Fix typo and cross-referencing (2-arg @pxref adds a trailing period). 2019-10-13 Stephen Gildea Minor tweaks to time-stamp documentation strings * lisp/time-stamp.el (time-stamp): Reformat the explanation of the variables that affect time-stamp, for easier reading. In particular, wrap the documentation to 75 characters, so that it displays neatly as a before-save-hook customization option. * test/lisp/time-stamp-tests.el (with-time-stamp-test-env): Use imperative voice, per checkdoc. 2019-10-13 Alan Mackenzie In compilation-tear-down-arrow-spec-in-margin, test compilation-arrow-overlay * lisp/progmodes/compile.el (compilation-tear-down-arrow-spec-in-margin): Make sure compilation-arrow-overlay is an overlay before performing overlay operations on it. This fixes bug #37733. 2019-10-12 Lars Ingebrigtsen Make the previous-matching-history-element prompt clearer * lisp/simple.el (previous-matching-history-element): Put the default into the prompt (bug#380). 2019-10-12 Konstantin Kharlamov Make diff-mode understand git-format-patch separators * lisp/vc/diff-mode.el (diff-prev-line-if-patch-separator): A function to return prev. line if it has git-format-patch separator. (diff-end-of-hunk): Make use of diff-prev-line-if-patch-separator diff-buffer-type: whether a buffer is a git-diff (define-derived-mode): set diff-buffer-type to appropriate value (bug#37395). 2019-10-12 Rolf Ade (tiny change) TCL indentation fix outside functions * lisp/progmodes/tcl.el (tcl-calculate-indent): Indent code correctly outside of function definitions (bug#23565). 2019-10-12 Lars Ingebrigtsen Hide passwords more in `read-password' * lisp/subr.el (read-password--hide-password): Factor out (bug#17127). (read-passwd): Use it in post-command-hook instead of after-change-functions to ensure that we hide the password no matter what inserts text. 2019-10-12 Andreas Politz Use quit-window in some functions * lisp/strokes.el: * lisp/startup.el (fancy-startup-tail): * lisp/progmodes/verilog-mode.el (verilog-complete-word) (verilog-show-completions): * lisp/progmodes/idlwave.el (idlwave-quit-help): Use `quit-window' (bug#24213). 2019-10-12 Lars Ingebrigtsen Add -unknown to version-regexp-alist * lisp/epg-config.el (epg-find-configuration): Remove the -unknown hack, because it led to further problems later when comparing versions. * lisp/subr.el (version-regexp-alist): Rate -unknown versions the same as -alpha releases (bug#37556). 2019-10-12 Raimon Grau Add "next" and "previous" shortcuts in eww-history buffers * lisp/net/eww.el (eww-history-mode-map): Add "n" and "p" for "next-line" and "previous-line" (bug#37648). 2019-10-12 Lars Ingebrigtsen Protect against segfaults in copy-keymap * src/keymap.c (copy_keymap_1): Factor out and refuse to recurse infinitely (bug#7496). (Fcopy_keymap): ... from here. (copy_keymap_item): Pass on the depth parameter. 2019-10-12 Lars Ingebrigtsen Document let-alist * doc/lispref/lists.texi (Association Lists): Document let-alist (bug#34842). 2019-10-12 Lars Ingebrigtsen Don't claim that the default height is precisely 36 characters * doc/emacs/cmdargs.texi (Window Size X): * doc/man/emacs.1.in: Be more vague about what the default height is (bug#33921). 2019-10-12 Lars Ingebrigtsen Document locate-dominating-file * doc/lispref/files.texi (Contents of Directories): Document locate-dominating-file (bug#33869). 2019-10-12 Juri Linkov * lisp/tab-bar.el: Don't use minibuffer buffer name as tab name. * lisp/tab-bar.el (tab-bar-tab-name-selected-window): Use minibuffer-selected-window to get original window. 2019-10-12 Lars Ingebrigtsen Make Fadd_face_text_property even less destructive * src/textprop.c (Fadd_face_text_property): We need to be non-destructive in buffers, too, because face properties may have been added with `put-text-property' as a list that's been reused. 2019-10-12 Lars Ingebrigtsen Mention the Emacs exit code in batch mode * doc/lispref/os.texi (Batch Mode): Mention what the exit code is if an error is signaled (bug#31552). 2019-10-12 Kaushal Modi Document that variables should not be called -p * doc/lispref/tips.texi (Coding Conventions): Document that variables should now be called -p (bug#26564). 2019-10-12 Lars Ingebrigtsen Make the cl-letf doc string link to the manual * lisp/emacs-lisp/cl-macs.el (cl-letf): Add a link to the manual from the doc string (bug#24459). 2019-10-12 Jiajie Chen (tiny change) button-* function doc string clarifications * lisp/button.el (button-start, button-end, button-get) (button-put, button-label): Have the doc string mention that they have to be called from the current buffer (bug#23909). 2019-10-12 Lars Ingebrigtsen ert-deftest macro doc string clarification * lisp/emacs-lisp/ert.el (ert-deftest): Mention that macros are expanded when defined, not when tested (bug#21742). 2019-10-12 Eli Zaretskii Fix recent changes in ELisp manual * doc/lispref/objects.texi (Special Read Syntax): Use @samp in @table. * doc/lispref/elisp.texi (Top): Update the detailed menu due to a recent addition. 2019-10-12 Lars Ingebrigtsen Document #$ in the overview * doc/lispref/objects.texi (Special Read Syntax): Add #$. 2019-10-12 Lars Ingebrigtsen Fix compilation-transform-file-match-alist failure * lisp/progmodes/compile.el (compilation-error-properties): Fix thinko in compilation-transform-file-match-alist feature -- `file' isn't a list of files after all. 2019-10-12 Lars Ingebrigtsen Add a lispref node to list special read syntax forms * doc/lispref/objects.texi (Special Read Syntax): Add a node to list all the special read syntax forms (bug#18957). 2019-10-12 Michael Albinus Adapt some Tramp tests * test/lisp/net/tramp-archive-tests.el (tramp-archive-test17-insert-directory): Adapt regexp of summary line. * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test for symlinked directories. 2019-10-12 Michael Albinus Fix google-drive handling in tramp-gvfs * lisp/net/tramp-gvfs.el (tramp-gvfs-file-attributes): Add "standard::is-volatile". (tramp-gvfs-get-directory-attributes) (tramp-gvfs-handle-file-attributes): Handle "gdrive" special. (tramp-gvfs-send-command): Ignore nil arguments. 2019-10-12 Michael Albinus * lisp/net/tramp.el (tramp-handle-access-file): Use `file-truename'. 2019-10-12 Alan Mackenzie CC-Mode: Remove unneeded backslashes from doc strings and regular expressions Also make miscellaneous amendments. * lisp/progmodes/cc-align.el, lisp/progmodes/cc-cmds.el * lisp/progmodes/cc-defs.el, lisp/progmodes/cc-engine.el * lisp/progmodes/cc-langs.el, lisp/progmodes/cc-vars.el: Remove lots of unneeded backslashes. * lisp/progmodes/cc-langs.el (c-string-innards-re-alist): Remove redundant "\\|\r" from regular expression. * lisp/progmodes/cc-mode.el (c-make-mode-syntax-table): Correct the name of the hook normal-erase-is-backspace-MODE-hook from a non-existant hook name. 2019-10-11 Lars Ingebrigtsen tool-bar-map doc string clarification * lisp/tool-bar.el (tool-bar-map): Try to clarify how this variable is used (bug#17709). 2019-10-11 David Röthlisberger (tiny change) Fix `shell' doc keymap expansions * lisp/shell.el (shell): Make the commands be expanded in the correct keymap (bug#11202). 2019-10-11 Lars Ingebrigtsen diary-mark-entries-hook doc string clarification * lisp/calendar/diary-lib.el (diary-mark-entries-hook): Mention dynamically bound variables (bug#9287). 2019-10-11 Lars Ingebrigtsen Document :match-inline widget elements * doc/lispref/customize.texi (Type Keywords): Document :match-inline (bug#8716). (Splicing into Lists): Mention :match-inline. 2019-10-11 Paul Eggert Update from Gnulib This incorporates: 2019-10-11 Simplify and regularize regex use of ‘assert’ 2019-10-09 regex: omit debug assignment when not debugging 2019-10-09 regex: tell compiler there’s at most 256 arcs out 2019-10-09 regex: simplify by assuming C99 2019-10-09 regex: avoid copying of uninitialized storage 2019-09-29 fbufmode: Fix compilation error on glibc >= 2.28 systems 2019-09-28 Update comments that refer to POSIX 2019-09-23 Update URLs and associated text * doc/misc/texinfo.tex, lib/open.c, lib/regcomp.c: * lib/regex_internal.c, lib/regex_internal.h, lib/regexec.c: * lib/stdio-impl.h: Copy from Gnulib. 2019-10-11 Lars Ingebrigtsen Document REAL-BINDING more extensively in Extended Menu Items * doc/lispref/keymaps.texi (Extended Menu Items): Document that REAL-BINDING can be other things than a real command (bug#7755). 2019-10-11 Lars Ingebrigtsen Minor grep.el doc string clarifications * lisp/progmodes/grep.el (grep-find-ignored-directories) (grep-compute-defaults, grep, grep-expand-template) (grep-highlight-matches, grep-use-null-device) (grep-find-command, grep-find-template, grep-expand-template) (rgrep): Minor doc string clarifications. 2019-10-11 Lars Ingebrigtsen Factor out the lambda from help-function-def * lisp/help-mode.el (help-function-def--button-function): Factor out into own function for easier reuse. (help-function-def): ... from the lambda here. 2019-10-11 Lars Ingebrigtsen Make << shell heredoc expansion less enthusiastic * lisp/progmodes/sh-script.el (sh--maybe-here-document): Require a space before expanding a heredoc (bug#3226). This allows the user to insert a bash <<< "herestring", which was previously difficult. 2019-10-11 Alan Mackenzie C++ Mode: Correctly handle <:, <::, <::>, etc, according to the C++ standard * lisp/progmodes/cc-engine.el (c-before-change-check-<>-operators): Perform checking now on an insertion, should point be inside a critical token. (c-forward-<>-arglist-recur, c-guess-continued-construct): Check for <::, etc. * lisp/progmodes/cc-langs.el (c-<-pseudo-digraph-cont-regexp) (c-<-pseudo-digraph-cont-len): New lang variables/constants. 2019-10-11 Stefan Monnier * lisp/cedet/mode-local.el (define-overload): Declare obsolete * lisp/cedet/srecode/ctxt.el (srecode-calculate-context): * lisp/cedet/srecode/semantic.el (srecode-semantic-apply-tag-to-dict) (srecode-semantic-find-template): Use define-overloadable-function instead. 2019-10-11 Andrea Corallo * lisp/emacs-lisp/map.el (map-into) : Allow keyword args (map--into-hash): New function, extracted from `map-into `. Speed it up a bit by using gethash instead of map-elt when we know we're accessing a hash table. * test/lisp/emacs-lisp/map-tests.el (test-map-into): Add corresponding test. 2019-10-11 Stefan Kangas Remove reference to obsolete package gnuserv from FAQ On visiting http://meltin.net/hacks/emacs/, we now find: "I used to have some Emacs and Haskell hacks on my previous sites. However, these hacks are now old and un-maintained. I don’t think there is enough interest to keep them around." * doc/misc/efaq.texi (Using an already running Emacs process): Remove reference to obsolete package 'gnuserv'. (Bug#37574) 2019-10-11 Robert Pluim Correct some more custom type specs * lisp/winner.el (winner-boring-buffers-regexp): * lisp/progmodes/js.el (js-jsx-indent-level): * lisp/image-dired.el (image-dired-external-viewer): * lisp/gnus/nnir.el (nnir-notmuch-filter-group-names-function): Correct custom type specification. * lisp/textmodes/bibtex.el (bibtex-string-file-path): (bibtex-file-path): Correct custom type specification and document source of initial value. 2019-10-11 Michael Albinus Cleanup Tramp * lisp/net/tramp-archive.el (tramp-archive-gvfs-host): Fix docstring. * lisp/net/tramp.el: Remove :group from all defcustoms. (tramp-encoding-shell): Fix docstring. (tramp-error): Remove text properties from error message. 2019-10-11 Stefan Kangas Support showing directory in shell command prompt * lisp/simple.el (shell-command-prompt-show-cwd): New defcustom. (async-shell-command, shell-command): Show current directory in prompt when above option is non-nil. (Bug#4987) * etc/NEWS: Announce it. 2019-10-11 Martin Rudalics Minor fixes for switching to previous and next buffers (Bug#37514) * lisp/window.el (switch-to-prev-buffer) (switch-to-next-buffer): In doc-strings add links to 'prev-buffer' and 'next-buffer'. (next-buffer, previous-buffer): Signal 'user-error' instead of 'error'. In doc-strings link to 'switch-to-prev-buffer' and 'switch-to-next-buffer'. 2019-10-11 Lars Ingebrigtsen New variable amalgamating-undo-limit * doc/lispref/text.texi (Undo): Document it. * lisp/simple.el (amalgamating-undo-limit): New variable (bug#31658). 2019-10-11 Robert Pluim Correct .dir-locals-2.el description * doc/lispref/variables.texi (Directory Local Variables): Correct description of .dir-locals-2.el functioning. (Bug#37640) 2019-10-11 Lars Ingebrigtsen Expand the documentation of --no-build-details * doc/emacs/cmdargs.texi (Initial Options): Mention that --no-build-details shouldn't be used in regular usage (bug#34448). 2019-10-10 Martin Rudalics Fixes for fitting windows and frames to their buffers (Bug#37563) * lisp/window.el (window-default-font-height) (window-default-line-height): New functions. (fit-frame-to-buffer): Interpret values of MAX-HEIGHT and MIN-HEIGHT arguments in terms of WINDOW's default line height (Bug#37563). (fit-window-to-buffer): Obey size restricting arguments even when size of WINDOW's text does not change. Do not temporarily select WINDOW and perform height/width related calculations if and only if WINDOW is accordingly combined. Interpret values of MAX-HEIGHT and MIN-HEIGHT arguments in terms of WINDOW's default line height. 2019-10-10 Lars Ingebrigtsen Make nntp.el use new setq-local syntax * lisp/gnus/nntp.el (nntp-make-process-buffer): Convert to new setq-local syntax (as a test case). 2019-10-10 Lars Ingebrigtsen Ensure that setq-local take an even number of symbol/value pairs * doc/lispref/variables.texi (Creating Buffer-Local): Document the new syntax for setq-local. * lisp/subr.el (setq-local): Ensure that there's an even number of variable/value pairs, and expand the doc string by taking some text from `setq'. 2019-10-10 Jordon Biondo Allow setq-local to set more than one variable * lisp/subr.el (setq-local): Allow taking pairs of values (bug#26923). 2019-10-10 Lars Ingebrigtsen Remove two checkdoc tests checked in by mistake * test/lisp/emacs-lisp/checkdoc-tests.el: Remove &aux and &context checks mistakenly checked in (as these aren't implemented) (bug#37697). 2019-10-10 Stefan Kangas Change font size in correct window using mouse wheel * lisp/mwheel.el (mouse-wheel-follow-mouse): Doc fix. (mouse-wheel--get-scroll-window): New function extracted from... (mwheel-scroll): ...here. (mouse-wheel-text-scale): New function to change face height in the correct window, depending on the value of 'mouse-wheel-follows-mouse'. (Bug#28182) (mouse-wheel-mode): Bind 'mouse-wheel-text-scale' instead of 'text-scale-increase' and 'text-scale-decrease'. 2019-10-10 Juri Linkov * lisp/subr.el (ctl-x-t-prefix): Bind new alias or ctl-x-6-map to 'C-x t'. 2019-10-10 Stefan Monnier * lisp/tree-widget.el: Use lexical-binding Remove redundant `:group`s. (tree-widget--locate-sub-directory): Rewrite. 2019-10-10 Andreas Schwab * lisp/progmodes/compile.el (compilation-transform-file-match-alist): Remove bogus Makefile match. 2019-10-10 Stephen Gildea Remove tabs from time-stamp-format documentation * lisp/time-stamp.el (time-stamp-format): Untabify the doc string, so the two-column layout displays consistently in several contexts, in particular when displayed by customize-variable. 2019-10-10 Eli Zaretskii Fix initial value of frame-inhibit-implied-resize * src/frame.c (syms_of_frame): Update doc string and default value of frame-inhibit-implied-resize in GTK builds to include 'tab-bar-lines. 2019-10-10 Paul Eggert Port time-stamp-test-time-zone to macOS Problem reported by Stefan Kangas in: https://lists.gnu.org/r/emacs-devel/2019-10/msg00360.html * test/lisp/time-stamp-tests.el (time-stamp-test-time-zone): Don’t assume (format-time-string "%Z" 0 t) returns "GMT". 2019-10-09 Juanma Barranquero identity, ignore: Make arg names more consistent with docs * lisp/subr.el (ignore): Rename argument IGNORE to ARGUMENTS. * src/fns.c (Fidentity): Rename ARG to ARGUMENT. * doc/lispref/functions.texi (Calling Functions): Fix references. 2019-10-09 Damien Cassou checkdoc CL tests * test/lisp/emacs-lisp/checkdoc-tests.el: Add cl-lib-related tests (bug#37063). 2019-10-09 dick r. chiang (tiny change) Make checkdoc work better with cl-lib functions * lisp/emacs-lisp/checkdoc.el (checkdoc-defun-info): Make checkdoc work for cl-lib methods with more complex parameter lists (bug#37063). 2019-10-09 Lars Ingebrigtsen Fix formatting of (file-size-human-readable 2047) * lisp/files.el (file-size-human-readable): Don't format slightly-less numbers as X.0k, but just Xk instead (bug#36329). 2019-10-09 Lars Ingebrigtsen Work around bad interaction between dired-omit-mode and recover-session * lisp/files.el (recover-session): Add ugly hack to try to ensure that we're actually showing the session files (bug#36223). 2019-10-09 Lars Ingebrigtsen Allow filtering out warnings/errors from compile.el detection * lisp/progmodes/compile.el (compilation-transform-file-match-alist): New variable (bug#32968). (compilation-error-properties): Use it to remove known false positives. (compilation-error-regexp-alist): Mention it in this doc string. 2019-10-09 Lars Ingebrigtsen Clarify documentation of show-help-function slightly * doc/lispref/text.texi (Special Properties): Clarify where the example in Tooltip mode is (bug#35392). 2019-10-09 Juri Linkov * lisp/tab-bar.el: Don't show window count for one window. * lisp/tab-bar.el (tab-bar-tab-name-selected-window): Don't show the number of windows when there is only one window in the window configuration. (tab-bar-close-other-tabs): Rename from tab-close-other. Take into account tab-bar-show to turn off when needed. (tab-close-other): Alias to tab-bar-close-other-tabs. 2019-10-09 Lars Ingebrigtsen Fix nnimap tick/readedness thinko introduced some weeks back * lisp/gnus/nnimap.el (nnimap-request-set-mark): Fix thinko in the tick/read change: Unticking a message shouldn't make it unread, but ticking it should make it read. 2019-10-09 Lars Ingebrigtsen Make mml-secure-epg-sign bug out if we can't find an identity * lisp/gnus/mml-sec.el (mml-secure-epg-sign): Bug out if we couldn't find anything to sign with instead of silently pretending to sign. * lisp/gnus/mml-smime.el (mml-smime-epg-sign): Don't bind inhibit-display because that makes debugging impossible. 2019-10-09 Stefan Kangas Remove XEmacs compat code from edt.el (Bug#37621) * lisp/emulation/edt.el (top-level, edt-emacs-variant) (edt-window-system, edt-xserver, edt-page-backward) (edt-beginning-of-line, edt-end-of-line-forward) (edt-end-of-line-backward, edt-one-word-forward) (edt-one-word-backward, edt-character, edt-line-forward) (edt-next-line, edt-previous-line, edt-top, edt-find-forward) (edt-find-backward, edt-find-next-forward) (edt-find-next-backward, edt-reset, edt-advance, edt-backup) (edt-define-key, edt-bottom-check, edt-sentence-forward) (edt-sentence-backward, edt-paragraph-forward) (edt-paragraph-backward, edt-restore-key, edt-window-top) (edt-window-bottom, edt-scroll-window-backward-line) (edt-line-to-bottom-of-window, edt-line-to-middle-of-window) (edt-goto-percentage, edt-display-the-time, edt-remember) (edt-split-window, edt-load-keys, edt-emulation-on) (edt-emulation-off, edt-default-emulation-setup) (edt-user-emulation-setup, edt-select-default-global-map) (edt-select-user-global-map): Remove XEmacs compat code. 2019-10-09 Lars Ingebrigtsen Move the "Skeleton Language" node to later in the manual * doc/misc/autotype.texi (Skeleton Language): Move this low-level node to after the more user-facing nodes (bug#20780). 2019-10-09 Lars Ingebrigtsen Add a letrec example to the manuel * doc/lispref/variables.texi (Local Variables): Add a letrec example. 2019-10-09 Lars Ingebrigtsen Tweak letrec documentation * doc/lispref/variables.texi (Local Variables): Compare letrec to let* instead of let. 2019-10-09 Stephen Gildea time-stamp: revert recent change to "%04y" * lisp/time-stamp.el (time-stamp-string-preprocess): Revert change to "%04y" format made 2 weeks ago by commit 0e56883878 (the previous commit to this file). Although undocumented, "%04y" was discovered to be in use in the wild (2016) and had not issued a warning that it would change. Add a warning that it will change. * test/lisp/time-stamp-tests.el (time-stamp-test-year-2digit): add test of "%04y" 2019-10-09 Simen Heggestøyl Warn about missing executables in RST PDF preview * lisp/textmodes/rst.el (rst-compile-pdf-preview): Warn about missing executables when attempting to compile and preview an RST file as PDF. (Bug#30063) 2019-10-09 Stephen Gildea Expand testing of time-stamp format "%y" * test/lisp/time-stamp-tests.el (time-stamp-test-year): break into two tests, time-stamp-test-year-2digit and time-stamp-test-year-4digit. Expand time-stamp-test-year-2digit to look more like tests for other 2-digit conversions. 2019-10-09 Juanma Barranquero Silence compiler warning * src/w32.c (acl_to_text): Add ATTRIBUTE_MALLOC. 2019-10-09 Robert Pluim Expand documentation on Lisp variables defined in C sources * doc/lispref/internals.texi (Writing Emacs Primitives): Add description of DEFVAR_* arguments. Describe variable naming conventions. Explain how to express quoting of symbols in C, plus 'specbind' and how to create buffer-local variables. 2019-10-09 Michael Albinus * doc/misc/tramp.texi (Remote shell setup): Howto configure local shell. 2019-10-09 Michael Albinus Support zsh as local shell in Tramp (Bug#31924) * lisp/net/tramp-sh.el (tramp-sh-extra-args): Extend zsh arguments. Add :version. (tramp-maybe-open-connection): Use extra args for `tramp-encoding-shell'. (Bug#31924) 2019-10-09 Juanma Barranquero Implement offsets for absolute line numbers * src/xdisp.c (syms_of_xdisp) : New variable to add an offset to absolute line numbers. (syms_of_xdisp) : Mention it in docstring. (maybe_produce_line_number): Use it. * doc/emacs/display.texi (Display Custom): Document it. * etc/NEWS (value): Announce it. * lisp/frame.el: Add `display-line-numbers-offset' to list of variables which should trigger redisplay of the current buffer. 2019-10-09 Juanma Barranquero Do not use tick faces beyond ZV (bug#37641) * src/xdisp.c (maybe_produce_line_number): Check beyond_zv before using a tick face for the line number. Move all face selection code outside the loop that draws the line number. 2019-10-09 Eli Zaretskii Improve doc strings in replace.el * lisp/replace.el (query-replace-read-from) (query-replace-compile-replacement, query-replace-read-to) (replace-string, replace-regexp, occur-mode-goto-occurrence) (occur-next-error, occur-rename-buffer, multi-occur) (multi-occur-in-matching-buffers): Describe all arguments in doc strings. (Bug#31207) 2019-10-09 Eli Zaretskii Fix minor Texinfo errors in ELisp manual * doc/lispref/errors.texi (Standard Errors): Fix incorrect usage of @xref commands. (Bug#37660) * doc/lispref/internals.texi (Buffer Internals): Fix markup. (Bug#37639) 2019-10-09 Lars Ingebrigtsen Ensure that the pulse overlay is visible * lisp/cedet/pulse.el (pulse-momentary-highlight-overlay): Make the pulse overlay have priority over the marked-region overlay (bug#29173). 2019-10-09 Lars Ingebrigtsen Protect against unlikely case of [menu-bar] not being bound * lisp/recentf.el (recentf-show-menu): (recentf-hide-menu): The [menu-bar] key may be unbound (bug#25191). 2019-10-09 Lars Ingebrigtsen Add some sanity checks to dired-x.el key bindings * lisp/dired-x.el: Ensure that prefix keys haven't be rebound to commands before adding keystrokes (bug#25190). 2019-10-09 Lars Ingebrigtsen Allow global-edebug-prefix to be nil * lisp/emacs-lisp/edebug.el (global-edebug-prefix): Allow global-edebug-prefix to be nil (if the user doesn't want that prefix) (bug#25188). 2019-10-09 Lars Ingebrigtsen Fix possible initialisation error in shell-mode-map * lisp/shell.el (shell-mode-map): Comint is the parent mode, so there's no need to explicitly make it a parent map here (bug#25187). 2019-10-09 Lars Ingebrigtsen Upcase parameters in things like "&optional (arg 3)" * lisp/help.el (help--make-usage): Upcase cl-defgeneric (etc) parameter names (bug#23517). 2019-10-08 Lars Ingebrigtsen Bury the help buffer after sending a bug report * lisp/mail/emacsbug.el (report-emacs-bug-hook): Bury the help buffer after sending the bug report (bug#22712). 2019-10-08 Hong Xu Fix up previous visit-tags-table change * lisp/progmodes/etags.el (visit-tags-table): Reimplement `tags--find-default-tags-dir-recursively' using the much simpler `locate-dominating-file'. Following up bug#37518. 2019-10-08 Lars Ingebrigtsen Move point in the dired buffer with `n'/`p' in an image-mode buffer * lisp/image-mode.el (image-next-file): If the image is in a dired buffer, then move point in that buffer when advancing (bug#21752). This makes it easier to select images. 2019-10-08 Juanma Barranquero Fix typos in lisp/*.el * lisp/emacs-lisp/generator.el (cps--with-value-wrapper) (cps-inhibit-atomic-optimization, iter-close): * lisp/gnus/nnir.el (nnir-imap-search-arguments) (nnir-imap-search-argument-history, nnir-categorize) (nnir-ignored-newsgroups) (nnir-retrieve-headers-override-function) (nnir-imap-default-search-key, nnir-namazu-additional-switches) (gnus-group-make-nnir-group, nnir-add-result) (nnir-compose-result, nnir-run-imap, nnir-imap-make-query) (nnir-imap-query-to-imap, nnir-imap-expr-to-imap) (nnir-imap-next-term, nnir-run-swish-e, nnir-run-namazu) (nnir-read-parm, nnir-read-server-parm, nnir-search-thread): Trivial doc fixes. 2019-10-08 Lars Ingebrigtsen Document `letrec' * doc/lispref/variables.texi (Local Variables): Document letrec (bug#21048). * lisp/subr.el (letrec): Expand the doc string slightly. 2019-10-08 Lars Ingebrigtsen Make menu bar entries only point to named functions, not lambdas * lisp/menu-bar.el () (menu-bar--display-line-numbers-mode-visual) (menu-bar--display-line-numbers-mode-relative) (menu-bar--display-line-numbers-mode-absolute) (menu-bar--display-line-numbers-mode-none) (menu-bar--visual-line-mode-enable) (menu-bar--toggle-truncate-long-lines) (menu-bar--wrap-long-lines-window-edge): Make lambdas into trivial wrapper functions so that `C-h k' on the menu items work (bug#13841). (menu-bar-showhide-line-numbers-menu) (menu-bar-line-wrapping-menu): Use them. 2019-10-08 Lars Ingebrigtsen Add more sanity checks to help-fns--globalized-minor-mode * lisp/help-fns.el (help-fns--globalized-minor-mode): FUNCTION can be a lambda, so protect against that. 2019-10-08 Lars Ingebrigtsen Make add-face-text-property not be destructive on strings * src/textprop.c (add_properties): Take a parameter to say whether it's allowed to be destructive or not (bug#20153). (add_text_properties_1): Ditto. (Fadd_face_text_property): Use this to say that it shouldn't modify face properties on strings destructively. This avoids altering the face properties of one string when altering them on a copy of the string. 2019-10-08 Lars Ingebrigtsen Make `info-display-manual' pop up the correct frame * lisp/info.el (info-display-manual): If the buffer is already in a window, use that window (bug#20020). 2019-10-08 Lars Ingebrigtsen Make a nil parameter switch variable-pitch-mode on * lisp/face-remap.el (variable-pitch-mode): Make a nil parameter switch the mode on instead of toggling (bug#19384). 2019-10-08 Lars Ingebrigtsen Remove XEmacs compat code from prolog.el * lisp/progmodes/prolog.el (prolog-mode-syntax-table) (prolog-help-info, prolog-Info-follow-nearest-node) (prolog-menu-help, prolog-edit-menu-runtime) (prolog-inferior-menu-all): Remove XEmacs compat code. 2019-10-08 Lars Ingebrigtsen Remove some XEmacs compat code from tree-widget.el * lisp/tree-widget.el (tree-widget-themes-load-path) (tree-widget-use-image-p, tree-widget-create-image) (tree-widget-image-formats, tree-widget-image-properties) (tree-widget-lookup-image): Remove XEmacs compat code. 2019-10-08 Lars Ingebrigtsen Remove some XEmacs compat code from newst*.el * lisp/net/newst-plainview.el (newsticker--plainview-tool-bar-map): Remove XEmacs support. * lisp/net/newst-treeview.el (newsticker-treeview-tool-bar-map): 2019-10-08 Federico Tedin Filter packages by name in list-packages. (Bug#36981) * lisp/emacs-lisp/package.el (package-menu-filter-by-name): New function to filter packages by name. (package-menu-clear-filter): New function to clear applied filters. (package-menu-filter-by-keyword): Rename function from package-menu-filter. (package-menu--generate): Don't change 'q' binding anymore. (package-menu-mode-map): Bind '/ n' to package-menu-filter-by-name, '/ k' to package-menu-filter-by-keyword and '/ /' to package-menu-clear-filter. (package-menu-mode-menu): Update menu entries for the three functions. * test/lisp/emacs-lisp/package-tests.el (package-test-list-filter-by-name) (package-test-list-clear-filter): New tests. * doc/emacs/package.texi: Document usage of package-menu-filter-by-name, package-menu-clear-filter and update reference to package-menu-filter-by-keyword. * etc/NEWS: Announce changes. 2019-10-08 Hong Xu Search upward from current dir for the default TAGS file * doc/emacs/maintaining.texi (Select Tags Table): Update the doc of `visit-tags-table' (bug#37518). * lisp/progmodes/etags.el (tags--find-default-tags-dir-recursively) (visit-tags-table): Search upward from current dir for the default TAGS file. 2019-10-08 Stefan Kangas Fix title inconsistencies in elisp intro book * doc/lispintro/emacs-lisp-intro.texi: Fix title inconsistencies. (Bug#31037) 2019-10-08 Stefan Kangas Add some more commands to eshell-visual-commands * lisp/eshell/em-term.el (eshell-visual-commands): Add some more commonly used commands. 2019-10-08 Eli Zaretskii Fix crashes on TTY frames due to "C-x 6 f" * src/xdisp.c (redisplay_internal): Revert the recent change regarding TTY frames' garbaged flag. It is not needed. * src/dispnew.c (adjust_frame_glyphs_for_frame_redisplay): When returning due to mismatch between the desired and actual dimensions of the glyph matrix, set the frame's garbaged flag for TTY frames. This avoids crashes when we are later called from redisplay. Reported by Ergus . 2019-10-08 Michael Albinus * etc/PROBLEMS: Describe navigation problem from Nautilus. (Bug#37573) * lisp/userlock.el (create-lockfiles): Set `safe-local-variable' property. 2019-10-08 Stefan Monnier * lisp/emacs-lisp/package.el (package--get-deps): Fix thinko * test/lisp/emacs-lisp/package-tests.el (package-test-get-deps): Adjust test to new calling convention. 2019-10-08 Eli Zaretskii Fix aborts when opening a new font after face-cache reset * src/font.c (font_open_for_lface): Make sure the default face is realized before using its height for the font to be open. (Bug#37637) 2019-10-08 Michael Albinus * INSTALL: Describe installation of source and debug packages. (Bug#37527) 2019-10-07 Juanma Barranquero Set default colors for tick faces * lisp/faces.el (line-number-major-tick, line-number-minor-tick): Set default color different from `line-number' so after customizing the tick number variables, the ticks are immediately visible. Suggested by Juri Linkov . 2019-10-07 Basil L. Contovounesios Clarify docs on newline and auto-fill-mode * doc/lispref/text.texi (Commands for Insertion): * lisp/simple.el (newline): Do not mention conditions specific to 'do-auto-fill' under documentation of 'newline' (bug#36702). 2019-10-07 Juri Linkov * lisp/tab-bar.el (tab-bar-tab-name-function): Turn defvar into defcustom. (tab-bar-tab-name-all-windows): Rename from tab-bar-tab-name. (tab-bar-tab-name-selected-window): New function used by default. 2019-10-07 Stefan Kangas Add "python3 -m twine" example to comint-password-prompt tests * test/lisp/comint-tests.el (comint-testsuite-password-strings): Add new example for "python3 -m twine" to test suite. (Bug#37636) 2019-10-07 Eli Zaretskii Fix a crash in TTY sessions caused by recent changes * src/xdisp.c (redisplay_internal): Fix crashes in TTY sessions when turning on tab-mode. Reported by Ergus . 2019-10-07 Lars Ingebrigtsen Use text properties instead of truncating strings * lisp/emacs-lisp/tabulated-list.el (tabulated-list-put-tag): Use this to allow using commands like `C-s' to search for even truncated bits. * lisp/international/mule-util.el (truncate-string-to-width): Allow using text properties to truncate strings instead of actually truncating strings (bug#17782). 2019-10-07 Lars Ingebrigtsen dired-move-to-filename doc string fix * lisp/dired.el (dired-move-to-filename): Document the parameters (bug#17566). 2019-10-07 Basil L. Contovounesios Improve recent doc fix for cl-reduce * lisp/emacs-lisp/cl-seq.el: (cl-reduce): Clarify treatment of :INITIAL-VALUE when :FROM-END is non-nil. Improve wording when SEQ is empty and :INITIAL-VALUE is unspecified (bug#37400). Describe behavior when SEQ comprises a single element. 2019-10-07 Lars Ingebrigtsen Make completion in the `E' command in *Ibuffer* work * lisp/ibuf-ext.el (eval): Make completion (etc) work as normal (bug#16239). 2019-10-07 Eli Zaretskii Fix infloop in redisplay caused by a recent change * src/xdisp.c (redisplay_internal): Avoid inflooping due to a frame's garbaged flag being set after update_frame. Reported by Michael Heerdegen . 2019-10-07 Lars Ingebrigtsen Feval_buffer doc string lexical-binding clarification * src/lread.c (Feval_buffer): Mention that the lexical-binding variable is ignored in the doc string (bug#20139). 2019-10-07 Lars Ingebrigtsen Make ido-display-buffer work interactively more like display-buffer * lisp/ido.el (ido-display-buffer): Take an interactive parameter, like `display-buffer' (bug#14904). (ido-visit-buffer): Use it to emulate `C-u M-x display-buffer'. 2019-10-07 Leo Liu Fix rcirc not to interpret nil as nickname (bug#37344) * lisp/net/rcirc.el (rcirc-send-privmsg): Type check `target'. (rcirc-cmd-me): Send CTCP only when `target' exists. 2019-10-07 Stefan Kangas Quadruple term-buffer-maximum-size (Bug#37584) * lisp/term.el (term-buffer-maximum-size): Quadruple to 8192. 2019-10-06 Wolfgang Scherer Set correct svn:ignore property for relative filenames * lisp/vc/vc-svn.el: (vc-svn-ignore) Use svn:ignore property of immediate parent directory for wildcard specification (bug#37216). 2019-10-06 Paul Eggert Fix port of file-acl errno checking to non-GNU I had misinterpreted the private email from Ashish Shukla. * src/fileio.c (Ffile_acl): Fix typo in previous change by negating the call to acl_errno_valid. 2019-10-06 Lars Ingebrigtsen Fix the colours on Motif horizontal scroll bars * src/xterm.c (x_create_horizontal_toolkit_scroll_bar): Use the same foreground/background colours as the vertical scroll bar (bug#37359). 2019-10-06 Lars Ingebrigtsen cl-reduce doc fix * lisp/emacs-lisp/cl-seq.el (cl-reduce): Clarify what happens when SEQ is the empty list (bug#37400). 2019-10-06 Hong Xu tags-complete-tags-table-file doc string fix * lisp/progmodes/etags.el (tags-complete-tags-table-file): Doc string fix (bug#37538). 2019-10-06 Hong Xu Default FILE to the current buffer for list-tags * doc/emacs/maintaining.texi (List Identifiers): Update `list-tags' doc (bug#37611). * lisp/progmodes/etags.el (list-tags) (tags--get-current-buffer-name-in-tags-file): Default FILE to the current buffer for list-tags. 2019-10-06 Lars Ingebrigtsen Make mailcap-prefer-mailcap-viewers work as documented * lisp/emacs-lisp/seq.el (seq-find): Autoload. * lisp/net/mailcap.el (mailcap-parse-mailcaps): Note where all the entries come from so that we can later distinguish between user values and system values (bug#36771). (mailcap-parse-mailcap): Take a source parameter. (mailcap-possible-viewers): No need to sort wildcards/exact matches; these are later sorted anyway. (mailcap-add-mailcap-entry): Remove `after' parameter. (mailcap-mime-info): Make mailcap-prefer-mailcap-viewers work as documented. 2019-10-06 Mauro Aranda Only complete words inside of the string widget * lisp/wid-edit.el ('string widget): Peek the word that ispell-complete-word will try to complete, and only offer completions when the word is inside of the field (bug#11046). 2019-10-06 Mauro Aranda Fix message when no completions available for editable field * lisp/wid-edit.el (widget-completions-at-point): Detect here if point is not in an editable field. (widget-complete): And here say there are no completions available (bug#11562). 2019-10-06 Juri Linkov Allow using last_tab_bar_item on no-x builds. * src/frame.h (struct frame): Remove HAVE_WINDOW_SYSTEM around last_tab_bar_item. 2019-10-06 Juri Linkov Implement tab-close-other bound to C-x 6 1 by analogy with C-x 5 1. * lisp/tab-bar.el (tab-close-other): New command bound to C-x 6 1. * doc/emacs/frames.texi (Tab Bars): Document it. 2019-10-06 Juri Linkov Use tabs in EWW (bug#37592) * lisp/net/eww.el (eww-open-in-new-buffer): Call tab-new when tab-bar-mode is enabled. (eww-browse-url): Add docstring. Call tab-new when tab-bar-mode is enabled. * lisp/net/shr.el (shr-map): Bind [C-down-mouse-1] to shr-mouse-browse-url-new-window. (shr-mouse-browse-url-new-window): New command. (shr-browse-url): Add optional arg new-window. * doc/misc/eww.texi (Basics): Mention opening tabs on M-RET. 2019-10-06 Stefan Monnier * lisp/emacs-lisp/eieio-core.el (eieio--full-class-object): New function. Rather than explicitly call eieio-class-un-autoload, the autoloading is now performed on-demand if you use eieio--full-class-object. * lisp/emacs-lisp/eieio-core.el (eieio-class-un-autoload): Remove. (eieio--full-class-object): New function, to replace it. (eieio-oref, eieio--class-precedence-list): * lisp/emacs-lisp/eieio-base.el (eieio-persistent-convert-list-to-object): Use it instead of eieio-class-un-autoload. * lisp/emacs-lisp/eieio.el (eieio-class-parents, child-of-class-p): Load the class if needed. 2019-10-06 Stefan Kangas Support changing font size using mouse wheel * lisp/mwheel.el (mouse-wheel-mode): Support changing font size (text scaling) using mouse wheel. (Bug#28182) (mouse-wheel-scroll-amount): Bind the Ctrl modifier to text scaling. (mwheel-installed-text-scale-bindings): New variable. (mouse-wheel--remove-bindings): New helper function for 'mouse-wheel-mode'. * doc/emacs/frames.texi (Mouse Commands): Document this feature. * etc/NEWS: Announce it. 2019-10-06 Juanma Barranquero Set alternate faces for some line numbers (bug#27734) * lisp/faces.el (line-number-major-tick, line-number-minor-tick): New faces. * lisp/cus-start.el (display-line-numbers-major-tick) (display-line-numbers-minor-tick): Add customization info. * lisp/frame.el: Add `display-line-numbers-major-tick' and `display-line-numbers-minor-tick' to list of variables which should trigger redisplay of the current buffer. * src/xdisp.c (syms_of_xdisp) : Defvar new options. (syms_of_xdisp) : Defsym new faces. (maybe_produce_line_number): Use new faces for line numbers that are multiple of `display-line-numbers-major-tick' and `display-line-numbers-minor-tick'. * etc/NEWS (value): Announce new feature. * doc/emacs/display.texi (Display Custom): Describe it. Wording by Robert Pluim 2019-10-06 Juri Linkov Don't bind 'C-x 6' to '2C-mode-map' globally by default. * lisp/textmodes/two-column.el: Don't autoload global setting of "\C-x6" to 2C-command. * lisp/ldefs-boot.el: Update to remove setting "\C-x6" to 2C-command. * doc/emacs/commands.texi (Keys): * doc/emacs/text.texi (Two-Column): * doc/lispref/keymaps.texi (Prefix Keys): * doc/lispref/maps.texi (Standard Keymaps): Unbind 'C-x 6' from '2C-mode-map'. 2019-10-06 Stefan Monnier * lisp/emacs-lisp/package.el (package--get-deps): Rewrite. Avoid inf-recursion with dependency cycles. Remove unused `only` arg. Prune duplicates early rather than late. (package--removable-packages): Simplify code accordingly. 2019-10-06 Paul Eggert Port file-acl errno checking to non-GNU Problem reported privately for FreeBSD 12 by Ashish Shukla. * src/fileio.c (Ffile_acl): Treat EINVAL etc. like ENOTSUP if acl_get_file fails, to port to FreeBSD 12 and other non-GNU platforms. 2019-10-06 Eli Zaretskii Support mouse clicks on tab bar on TTY frames This for now doesn't work on GPM. * src/xdisp.c (display_tab_bar): Make the loop over tab-bar items more efficient. (tab_bar_item_info, tool_bar_item_info): Correct data type for CHARPOS. (tty_get_tab_bar_item, tty_handle_tab_bar_click): New functions. (note_mouse_highlight): Handle help-echo of tab-bar tabs on TTY frames. * src/w32inevt.c (do_mouse_event): Call tty_handle_tab_bar_click to process mouse clicks on the tab bar. * src/termchar.h (tty_handle_tab_bar_click): Add prototype. * src/w32console.c (w32con_set_terminal_modes): Disable Quick Edit mode on entry, to make sure mouse events get reported to us. 2019-10-05 Paul Eggert Fix off-by-one bug in ISO 8601 BC years * lisp/calendar/iso8601.el (iso8601--year-match) (iso8601--full-date-match, iso8601--without-day-match) (iso8601--week-date-match, iso8601--ordinal-date-match) (iso8601-parse-date): Don’t bother to separate the year’s sign from the year, as that distinction is not needed: ISO 8601 uses astronomical year numbering with a year zero, which is what the Emacs time functions use, so there’s no need to treat nonpositive years specially. (iso8601--adjust-year): Remove; no longer needed since callers can just use string-to-number. * test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years): Adjust test case to match fixed behavior. 2019-10-05 Paul Eggert Improve documentation for year-zero issues * doc/emacs/calendar.texi (Calendar Systems) * doc/lispref/os.texi (Time Conversion): Prefer "BC" to "B.C." since the documentation generally uses "BC". * doc/misc/emacs-mime.texi (time-date): * lisp/calendar/time-date.el (date-to-day, time-to-days): In the doc string, state the day origin more clearly, and more consistently with the rest of the documentation. * src/timefns.c (Fdecode_time): State the year origin in the doc string. 2019-10-05 Juri Linkov More tab bar related key bindings. * lisp/subr.el (ctl-x-6-map, ctl-x-6-prefix): Move here from tab-bar.el to make it available to other modes like dired for 'C-x 6 d'. * lisp/dired.el (dired-other-tab): New command bound to 'C-x 6 d'. * lisp/tab-bar.el: Bind 'C-x 6 o' to tab-next. * doc/emacs/frames.texi (Tab Bars): Describe C-x 6 prefix key bindings. 2019-10-05 Juri Linkov * lisp/tab-bar.el: In tab switching allow absolute and relative args. * lisp/tab-bar.el (tab-bar-tab-hints): New defcustom. (tab-bar-make-keymap-1): Use tab-bar-tab-hints. (tab-bar--tab, tab-bar--current-tab, tab-bar--current-tab-index) (tab-bar--tab-index, tab-bar--tab-index-by-name): New internal functions. (tab-bar-select-tab): Use arg as absolute position of tab to select. (tab-bar-switch-to-next-tab, tab-bar-switch-to-prev-tab): Use arg as offset relative to the current tab. (tab-bar-switch-to-tab): New command. (tab-bar-new-tab): Simplify by using cl-pushnew. (tab-bar-close-current-tab): Remove (the current tab is closed by nil arg of tab-bar-close-tab). (tab-bar-close-tab): Use arg as absolute position of tab to close. (tab-bar-close-tab-by-name): New command. 2019-10-05 Artyom Loenko (tiny change) Include new permission settings for macOS 10.15 (bug#37551) * nextstep/templates/Info.plist.in (NSDesktopFolderUsageDescription): (NSDocumentsFolderUsageDescription): (NSDownloadsFolderUsageDescription): (NSRemovableVolumesUsageDescription): Add description to enable setting in macOS 10.15. 2019-10-05 Paul Smith Support GNU make error messages in compile mode. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Match GNU make error messages. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): Test GNU make error message matching. (compile-test-error-regexps): Update count of infos found. 2019-10-05 Lars Ingebrigtsen Remove some XEmacs compat code from the CEDET tests 2019-10-05 Lars Ingebrigtsen Remove some XEmacs compat code from esh*.el * lisp/eshell/esh-util.el: Remove some XEmacs compat functions. 2019-10-05 Lars Ingebrigtsen Remove more XEmacs compat code from ezimage.el * lisp/ezimage.el (ezimage-use-images) (ezimage-insert-over-text): Remove XEmacs compat code. 2019-10-05 Lars Ingebrigtsen Fix typo in frames.texi xref * doc/emacs/frames.texi (Tab Bars): Fix typo in xref. 2019-10-05 Lars Ingebrigtsen Remove most of the XEmacs compat code from ediff*.el * lisp/vc/ediff-diff.el (ediff-word-1): Remove XEmacs compat code and declare compatibility functions for obsolete. Adjust all callers. * lisp/vc/ediff-help.el (ediff-set-help-overlays): * lisp/vc/ediff-hook.el: (menu-bar-ediff-misc-menu, menu-bar-ediff-merge-menu) (menu-bar-ediff-menu, menu-bar-ediff-merge-menu) (menu-bar-epatch-menu, menu-bar-ediff-misc-menu): * lisp/vc/ediff-init.el (ediff-device-type) (ediff-window-display-p, ediff-has-face-support-p) (ediff-has-toolbar-support-p, ediff-has-gutter-support-p) (ediff-BAD-INFO, ediff-coding-system-for-write) (ediff-read-event, ediff-overlayp, ediff-make-overlay) (ediff-delete-overlay, ediff-color-display-p) (ediff-display-pixel-width, ediff-display-pixel-height) (ediff-region-help-echo, ediff-set-face-pixmap) (ediff-paint-background-regions-in-one-buffer) (ediff-clear-fine-diff-vector, ediff-mouse-event-p) (ediff-key-press-event-p, ediff-event-point, ) (ediff-event-buffer, ediff-event-key, ediff-last-command-char) (ediff-frame-iconified-p, ediff-frame-char-width) (ediff-reset-mouse, ediff-frame-char-height) (ediff-overlay-start, ediff-overlay-end, ediff-overlay-buffer) (ediff-overlay-get, ediff-move-overlay, ediff-overlay-put) (ediff-abbreviate-file-name): * lisp/vc/ediff-mult.el (ediff-next-meta-item) (ediff-previous-meta-item) (ediff-replace-session-activity-marker-in-meta-buffer) (ediff-replace-session-status-in-meta-buffer) (ediff-redraw-directory-group-buffer) (ediff-update-markers-in-dir-meta-buffer) (ediff-update-session-marker-in-dir-meta-buffer) (ediff-redraw-registry-buffer, ediff-set-meta-overlay) (ediff-update-meta-buffer, ediff-get-meta-info) (ediff-get-meta-overlay-at-pos, ) (ediff-get-session-number-at-pos, ) (ediff-next-meta-overlay-start) (ediff-previous-meta-overlay-start, ) (ediff-meta-mark-equal-files): * lisp/vc/ediff-util.el: (ediff-setup, ediff-setup-control-buffer, ediff-recenter) (ediff-recenter-one-window, ediff-toggle-read-only) (ediff-file-checked-out-p, ediff-file-checked-in-p) (ediff-toggle-wide-display, ediff-toggle-multiframe) (ediff-toggle-use-toolbar, ediff-kill-bottom-toolbar) (ediff-visible-region, ediff-scroll-vertically) (ediff-scroll-horizontally, ediff-jump-to-difference-at-point) (ediff-diff-to-diff, ediff-restore-diff) (ediff-toggle-regexp-match, ediff-really-quit) (ediff-cleanup-mess, ediff-highlight-diff-in-one-buffer) (ediff-unhighlight-diffs-totally-in-one-buffer) (ediff-save-buffer, ediff-make-cloned-buffer) (ediff-make-indirect-buffer, ediff-remove-flags-from-buffer) (ediff-place-flags-in-buffer1, ediff-get-diff-posn) (ediff-clear-diff-vector, ediff-make-bullet-proof-overlay) (ediff-submit-report, ediff-deactivate-mark) (ediff-activate-mark, ediff-profile, ediff-print-diff-vector): * lisp/vc/ediff-wind.el (ediff-control-frame-parameters) (ediff-get-window-by-clicking, ediff-select-lowest-window) (ediff-setup-windows-plain-merge) (ediff-setup-windows-plain-compare, ediff-setup-control-frame) (ediff-destroy-control-frame, ediff-make-frame-position) (ediff-make-wide-display, ediff-get-visible-buffer-window): * lisp/vc/ediff.el (ediff-version, ediff-documentation): 2019-10-05 Eli Zaretskii Improve documentation of Tab bars * doc/emacs/frames.texi (Menu Bars, Tool Bars, Tab Bars): Don't start index entries from a capital letter. (Tab Bars): Improve wording and indexing. * etc/NEWS: Improve documentation of Tab bars. 2019-10-05 Eli Zaretskii Fix display of cursor in obscure use case on MS-Windows * src/xdisp.c (redisplay_internal): Detect when the frame becomes garbaged inside the call to update_frame, and redraw the frame in that case. (Bug#37579) 2019-10-05 Philipp Stephani * src/fns.c (Flocale_info): Avoid fixnum overflow under ASan. * src/pdumper.c (dump_buffer): Update structure hash. 2019-10-05 Paul Eggert Omit one more superfluous "-" in regexp Problem reported by Mattias Engdegård. * lisp/language/indian.el (gurmukhi-composable-pattern): Omit unnecessary "-". 2019-10-05 Dmitry Gutov (project--vc-list-files): Make sure to expand file names * lisp/progmodes/project.el (project--vc-list-files): Make sure to expand file names. Turns out, Grep doesn't like abbreviated ones. 2019-10-05 Eli Zaretskii Fix vertical scrolling in image-mode * lisp/image-mode.el (image-set-window-vscroll): Interpret the argument VSCROLL value in pixel units. (image-mode-reapply-winprops): Interpret the 'vscroll' property value in pixel units. (image-next-line): Scroll the image with pixel resolution. (image-eob): Set the image vscroll in pixels. (Bug#37578) 2019-10-04 Juanma Barranquero Improve docstrings auto-generated by `define-minor-mode' * lisp/emacs-lisp/easy-mmode.el (easy-mmode--mode-docstring): When using `easy-mmode--arg-docstring' to auto-generate a docstring, refill it up to `emacs-lisp-docstring-fill-column'. 2019-10-04 Eric Abrahamsen Don't manipulate gnus-newsrc-alist if it hasn't been initalized * lisp/gnus/gnus-group.el (gnus-group-set-info): Packages that use Gnus summary mode without actually booting Gnus might end up in this situation. See bug#36903 2019-10-04 Paul Eggert Fix bugs found by 2019-09-29 regexp scanner Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-09/threads.html * lisp/calendar/iso8601.el (iso8601--year-match) (iso8601--full-date-match, iso8601--without-day-match) (iso8601--week-date-match, iso8601--ordinal-date-match) (iso8601--zone-match): * lisp/textmodes/rst.el (rst-re-alist-def): Put ‘-’ at the end of bracketed ranges, following the style suggestion in the Elisp manual. (iso8601--time-match): Use \([0-9]*\) instead of \([0-9]+\)? to pacify the regexp scanner. (iso8601-parse-time): Adjust accordingly. * lisp/language/burmese.el (burmese-composable-pattern): * lisp/language/indian.el (devanagari-composable-pattern) (bengali-composable-pattern, gurmukhi-composable-pattern) (gujarati-composable-pattern, oriya-composable-pattern) (telugu-composable-pattern, kannada-composable-pattern) (malayalam-composable-pattern): Prefer [ab] to [a-b] when the characters differ by 1, to pacify the regexp scanner. * lisp/language/burmese.el (burmese-composable-pattern): Fix missing-‘\u’ typos. * lisp/language/indian.el (gurmukhi-composable-pattern): Fix missing-‘\’ typo. * lisp/language/tibetan.el (tibetan-regexp): Quote ‘+’ in regexp to pacify the regexp scanner. Simplify. * lisp/textmodes/rst.el (rst-re-alist-def): Fix ‘[]-'...]’ typo by putting the ‘-’ at end of the bracketed expression. 2019-10-04 Paul Eggert Minor style tweaks for recent tab changes * src/dispextern.h (MR_PARTIALLY_VISIBLE_AT_TOP): * src/window.c (Fwindow_mode_line_height) (Fwindow_header_line_height, Fwindow_tab_line_height) (Fwindow_right_divider_width, Fwindow_bottom_divider_width) (Fwindow_scroll_bar_width, Fwindow_scroll_bar_height): (Fset_window_configuration, Fcurrent_window_configuration): Omit unnecessary parens. * src/dispextern.h (CURRENT_MODE_LINE_HEIGHT) (CURRENT_HEADER_LINE_HEIGHT, CURRENT_TAB_LINE_HEIGHT): Add parens needed to make these macros function-like. * src/window.c (window_resize_check): * src/window.h (WINDOW_TAB_BAR_P): * src/xdisp.c (tab_bar_item_info): Reindent. * src/window.c (window_wants_mode_line) (window_wants_header_line, window_wants_tab_line): Simplify (a && b ? 1 : 0) to (a && b). 2019-10-04 Stefan Kangas Make mouse scroll show a message instead of dinging at buffer limits * lisp/mwheel.el (mwheel-scroll): Show a message instead of dinging at end of buffer and beginning of buffer. This should be less intrusive, especially when using a trackpad. (Bug#16196) 2019-10-04 Stefan Kangas Bind Scroll_Lock to scroll-lock-mode globally * lisp/bindings.el (global-map): Bind Scroll_Lock to scroll-lock-mode. (Bug#6861) * lisp/scroll-lock.el (scroll-lock-mode): Note that the binding will not work if 'w32-scroll-lock-modifier' is non-nil. * etc/NEWS: Announce it. 2019-10-04 Stefan Kangas Add tests for secure-hash and improve doc string (Bug#37420) * src/fns.c (Fsecure_hash_algorithms): Fix typo. (Fsecure_hash): Add algorithm list to doc string. * test/src/fns-tests.el (test-secure-hash): New test. 2019-10-04 Stefan Kangas Declare unused vhdl code in align.el obsolete * lisp/align.el (align-vhdl-rules-list, align-set-vhdl-rules): Declare obsolete. (Bug#6207) (align-dq-string-modes, align-open-comment-modes): Move vhdl-mode to definition instead of adding it later. 2019-10-04 Mattias Engdegård Fix error in gnu compilation-mode regexp (bug#37582) * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Fix a mistake introduced when the regexp was translated to rx. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data) (compile-test-error-regexps): Add test case. * etc/compilation.txt: Add example. 2019-10-04 Mattias Engdegård Make compile-tests re-runnable * test/lisp/progmodes/compile-tests.el (compile-test-error-regexps): Don't rely on compilation-num-errors (etc) all being zero, which they aren't if the test has been run before. (compile-tests--test-regexps-data): Change defvar to defconst. 2019-10-04 Lars Ingebrigtsen Remove semantic-make-local-hook call from CEDET * lisp/cedet/semantic/wisent/grammar.el (wisent-grammar-setupcode-builder): * lisp/cedet/semantic/util-modes.el (semantic-highlight-edits-mode) (semantic-show-unmatched-syntax-mode) (semantic-show-parser-state-mode): * lisp/cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode): * lisp/cedet/semantic/imenu.el (semantic-create-imenu-index): * lisp/cedet/semantic/grammar.el (semantic-grammar-mode): * lisp/cedet/semantic/grammar-wy.el (semantic-grammar-wy--install-parser): * lisp/cedet/semantic/decorate/mode.el (semantic-decorate-add-pending-decoration) (semantic-decoration-mode): * lisp/cedet/semantic.el (semantic--set-buffer-cache): Remove all calls to the function. * lisp/cedet/semantic/fw.el (semantic-make-local-hook): Made obsolete alias for #'ignore by removing XEmacs compat code. 2019-10-04 Lars Ingebrigtsen Remove some XEmacs compat code from ispell.el * lisp/textmodes/ispell.el (ispell-word): Remove XEmacs compat code. 2019-10-04 Lars Ingebrigtsen Remove some XEmacs compat code from ezimage.el * lisp/ezimage.el (defezimage): Remove XEmacs compat code. 2019-10-04 Stefan Kangas Remove XEmacs compat code from re-builder.el * lisp/emacs-lisp/re-builder.el (top-level) (reb-color-display-p): Remove XEmacs compat code. 2019-10-04 Lars Ingebrigtsen Remove some XEmacs compat code from ediff*.el * lisp/vc/ediff-diff.el (ediff-goto-word): Ditto. * lisp/vc/ediff-init.el (ediff-has-face-support-p) (ediff-current-diff-A, ediff-current-diff-B) (ediff-current-diff-C, ediff-current-diff-Ancestor) (ediff-fine-diff-A, ediff-fine-diff-B, ediff-fine-diff-C) (ediff-fine-diff-Ancestor, ediff-even-diff-A) (ediff-even-diff-B, ediff-even-diff-C) (ediff-even-diff-Ancestor, ediff-odd-diff-A, ediff-odd-diff-B) (ediff-odd-diff-C, ediff-odd-diff-Ancestor) (ediff-with-syntax-table): Ditto. * lisp/vc/ediff-mult.el (ediff-dir-diffs-buffer-map) (ediff-setup-meta-map, ediff-set-meta-overlay): Ditto. * lisp/vc/ediff-util.el (ediff-setup-keymap) (ediff-toggle-wide-display, ediff-toggle-multiframe) (ediff-toggle-use-toolbar, ediff-really-quit) (ediff-good-frame-under-mouse) (ediff-make-bullet-proof-overlay): Ditto. * lisp/vc/ediff-wind.el (ediff-setup-control-frame) (ediff-refresh-control-frame): Remove XEmacs compat code. 2019-10-04 Stefan Monnier * lisp/subr.el (generate-new-buffer): Move (from files.el) before first use (with-temp-file, with-output-to-string): Use it. * lisp/files.el (generate-new-buffer): Move to subr.el. 2019-10-04 Dmitry Gutov (project--vc-list-files): Optimize the Hg implementation * lisp/progmodes/project.el (project--vc-list-files): Optimize the Hg implementation. 2019-10-04 Lars Ingebrigtsen Remove some more XEmacs compat code from viper*.el * lisp/emulation/viper-ex.el (viper-ex-read-file-name): Ditto. * lisp/emulation/viper-init.el (viper-ms-style-os-p) (viper-has-face-support-p, viper-deactivate-input-method) (viper-activate-input-method, viper-set-input-method): Ditto. * lisp/emulation/viper-util.el (viper-get-saved-cursor-color-in-replace-mode) (viper-get-saved-cursor-color-in-insert-mode) (viper-get-saved-cursor-color-in-emacs-mode) (viper-set-replace-overlay, viper-key-to-emacs-key) (viper-set-unread-command-events): Ditto. * lisp/emulation/viper.el (viper-go-away, viper-set-hooks) (viper-non-hook-settings): Remove XEmacs compat code. 2019-10-04 Lars Ingebrigtsen Remove more XEmacs compat code from viper-*.el * lisp/emulation/viper-cmd.el (viper-special-read-and-insert-char) (viper-next-line-carefully, viper-next-line) (viper-previous-line): Ditto. * lisp/emulation/viper-mous.el (viper-surrounding-word) (viper-parse-mouse-key): Remove XEmacs compat code. 2019-10-04 Lars Ingebrigtsen Remove XEmacs-only code from snake.el * lisp/play/snake.el (snake-mode): Remove XEmacs-only code. 2019-10-04 Lars Ingebrigtsen Remove XEmacs code from tetris.el * lisp/play/tetris.el (tetris-mode): Remove XEmacs-only code. 2019-10-04 Lars Ingebrigtsen Remove XEmacs compat code from idlw-shell.el * lisp/progmodes/idlw-shell.el (idlwave-shell-make-temp-file): Make into obsolete alias. (idlwave-shell-temp-file): Adjust callers. 2019-10-04 Juanma Barranquero Revert "Improve docstrings auto-generated by `define-minor-mode'" This reverts commit a397fa06d18d6ae37a3a1288f269e1ae9eb3b569. The original change breaks bootstrapping because of a circular dependency. 2019-10-04 Dmitry Gutov Use file-name-as-directory * lisp/progmodes/project.el (project--vc-list-files): Use file-name-as-directory, to be on the safe side. 2019-10-03 Stefan Kangas Remove more XEmacs compat code in cperl-mode.el * lisp/progmodes/cperl-mode.el (condition-case, cperl-problems) (cperl-problems-old-emaxen, cperl-init-faces) (cperl-word-at-point): Remove more XEmacs compat code. 2019-10-03 Juanma Barranquero Improve docstrings auto-generated by `define-minor-mode' * lisp/emacs-lisp/easy-mmode.el (easy-mmode--mode-docstring): When using `easy-mmode--arg-docstring' to auto-generate a docstring, refill it up to `emacs-lisp-docstring-fill-column'. 2019-10-03 Stefan Kangas More doc fixes in package.el (Bug#37544) * lisp/emacs-lisp/package.el (package-menu-hide-low-priority) (package-pinned-packages, package-load-descriptor) package-archive-version, package-archive-contents) package--read-archive-file, package-read-archive-contents) (package-unsigned-archives, package-read-all-archive-contents) (package--download-and-read-archives, package-install): * lisp/subr.el (package--description-file): * test/lisp/emacs-lisp/package-tests.el: Doc fixes. 2019-10-03 Dmitry Gutov Speed up project-files for Git projects * lisp/progmodes/project.el (project-files): New method. Implementation for VC projects that uses 'git ls-files' or 'hg status --all' for listing. With gratitude to Tassilo Horn who has done most of the legwork and wrote the first version of the code (https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00069.html). (project--vc-list-files): New function, to be used by the above. (project--find-regexp-in-files): Silence warnings about nonexistent files. 2019-10-03 Basil L. Contovounesios Further improve button.el support for help-echo The last change to forward-button added support for help-echo values that are functions. This patch fixes the arguments passed to such functions and further adds support for help-echo values that are forms (bug#37515). * doc/lispref/display.texi (Button Properties): Fix description of help-echo button property. * lisp/button.el (button--help-echo): New function. (forward-button): Use it. (backward-button): Clarify help-echo reference in docstring. * test/lisp/button-tests.el (button--help-echo-string) (button--help-echo-form, button--help-echo-function): New tests. 2019-10-03 Basil L. Contovounesios Use lexical-binding in button.el * lisp/button.el: Use lexical-binding. Expand Keywords header. Quote function symbols as such. Use ;;;-comments where appropriate. (button): Remove outdated commentary of defface. (define-button-type, make-button, insert-button, make-text-button) (insert-text-button): Clarify in docstring that PROPERTIES argument is a plist. (button-type-subtype-p, button-has-type-p): Do not overspecify return value in docstring. (button-put): Fix typo in commentary. 2019-10-03 John Yates (tiny change) Preserve point better in hs-hide-comment-region * lisp/progmodes/hideshow.el (hs-hide-comment-region): Preserve point better when collapsing the region (bug#10856). 2019-10-03 Lars Ingebrigtsen Make lisp-do-defun do the right thing with trailing comments * lisp/progmodes/inf-lisp.el (lisp-do-defun): Avoid including trailing comments in the region (bug#7974). 2019-10-03 Lars Ingebrigtsen Fix bytecomp.el warning a different way than the previous patch * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-mode-map): No need to use set-keymap-parent here; `define-derived-mode' will do that automatically. 2019-10-03 Lars Ingebrigtsen Fix comment in previous doc-view patch * lisp/doc-view.el (doc-view-open-text): Comment fix. 2019-10-03 Lars Ingebrigtsen In doc-view, keep point on the equivalent page in the text version * lisp/doc-view.el (doc-view-open-text): After opening the text version, put point on the page the user was reading (bug#16541). 2019-10-03 Stefan Monnier * lisp/pcomplete.el: Mark 'pcomplete' command as obsolete Remove redundant ':group's. (pcomplete, pcomplete-help): Mark as obsolete. 2019-10-03 Lars Ingebrigtsen Mention the vc diff switches in diff-switches * lisp/vc/diff.el (diff-switches): Mention the vc diff switches in the doc string (bug#4422). 2019-10-03 Alan Mackenzie C++ Mode: Correct the fontification of const auto foo * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Correct a coding error involving `and' and `or'. 2019-10-03 Lars Ingebrigtsen Touch up previous shr-dom-to-xml encoding change * lisp/net/shr.el (shr-dom-to-xml): Include an XML declaration if we're encoding the data. (shr-parse-image-data): Add comment about why encoding is necessary. 2019-10-03 Lars Ingebrigtsen Fix up previous SVG-multibyte fix * lisp/net/shr.el (shr-dom-to-xml): For SVG images, take an optional charset parameter to return unibyte data. (shr-parse-image-data): Use it. (shr-tag-svg): Ditto. (svg--wrap-svg): Revert previous kludge. 2019-10-03 Alan Mackenzie C++ Mode: Fontify correctly declarators with identifier preceded by & The problem was bar in the following being spuriously recognised as a function, and foo as a type, as though the & were a *: Foo foo (&bar);. * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): New variable got-function-name-prefix, which is set when an operator like * (but not &) precedes the putative identifer in parentheses. Test this variable when deciding whether or not to "move the type backwards" to the previous identifier. * lisp/progmodes/cc-langs.el (c-type-decl-operator-prefix-key): New lang const and var. 2019-10-03 Michael Albinus Fix typo in last commit 2019-10-03 Michael Albinus Further adaptions for shadowfile-tests.el * test/lisp/shadowfile-tests.el: Change some traces. (shadow-test-remote-temporary-file-directory): Adapt also remote home directory. (shadow--tests-cleanup): Cleanup Tramp. 2019-10-02 Stefan Kangas Don't use obsolete name in em-cmpl.el * lisp/eshell/em-cmpl.el (eshell-complete-lisp-symbol): Update reference to 'elisp-completion-at-point' from its obsolete name. Reported by Carlos Pita . (Bug#31906) 2019-10-02 Juri Linkov * lisp/tab-bar.el (tab-bar-show): New defcustom. * lisp/tab-bar.el (tab-bar-close-current-tab, tab-bar-close-tab): (tab-bar-new-tab): Use tab-bar-show. * doc/emacs/frames.texi (Tab Bars): Add tab-bar-show. * lisp/speedbar.el (speedbar-mode): Set buffer-local tab-bar-mode and tab-line-format to nil to not show in dedicated speedbar frame. 2019-10-02 Juri Linkov * src/w32inevt.c: Take into account FRAME_TAB_BAR_LINES. * src/w32inevt.c (resize_event, maybe_generate_resize_event): Subtract FRAME_TAB_BAR_LINES from FRAME_MENU_BAR_LINES. 2019-10-02 Eli Zaretskii Fix MS-Windows error when a directory on PATH doesn't exist * src/w32.c (faccessat): Support more MS-Windows native error codes that should be translated to ENOENT. (Bug#37576) 2019-10-02 Stefan Kangas Don't mention server-socket-dir in FAQ server-socket-dir is a defvar, and users should use the defcustom server-name instead. * doc/misc/efaq.texi (Using an already running Emacs process): Remove details on server-socket-dir, refer to Emacs Manual. (Bug#20675) 2019-10-02 Eli Zaretskii Fix a typo in url-http.el * lisp/url/url-http.el (url-http-parse-headers): Fix a typo. Reported by Mattias Engdegård . 2019-10-02 Sergio Durigan Junior Don't add trailing whitespace when passing argument to GDB * lisp/progmodes/gdb-mi.el (gdb-send): Don't append whitespace to 'gdb-continuation'. (Bug#25488) 2019-10-01 Glenn Morris Update a substitute-command-keys test * test/src/doc-tests.el (doc-test-substitute-command-keys): Update for recent minibuffer map change. 2019-10-01 Eric Abrahamsen Gnus registry shutdown should also run the unload-hook * lisp/gnus/gnus-registry.el (gnus-registry-clear): Clearing the registry should also run the unload hooks. (gnus-registry-article-marks-to-names, gnus-registry-article-marks-to-chars): Now we can use a more general test here. 2019-10-01 Juri Linkov Merge branch 'feature/tabs' Remove unused code and reformat to 70 columns. 2019-10-01 Lars Ingebrigtsen Avoid bugging out on multibyte SVG data in shr * lisp/net/shr.el (svg--wrap-svg): Ensure that the SVG data is unibyte. 2019-10-01 Lars Ingebrigtsen Respect buffer-local values in comint-read-input-ring * lisp/comint.el (comint-read-input-ring): Use the buffer-local values (bug#6432). 2019-10-01 Stefan Kangas Remove old commented out XEmacs compat code from syntax.el (Bug#37524) * lisp/emacs-lisp/syntax.el: Remove ancient commented out XEmacs compat code. This code has been commented out since 2001. 2019-10-01 Stefan Kangas Remove XEmacs compat code from url-*.el (Bug#37524) * lisp/url/url-file.el (url-file-build-filename, url-file) * lisp/url/url-privacy.el (url-setup-privacy-info): Remove XEmacs compat code. (url-device-type): Declare obsolete. 2019-10-01 Stefan Kangas Remove XEmacs compat code from winner.el (Bug#37524) * lisp/winner.el (winner-active-region, winner-edges) (winner-window-list, winner-sorted-window-list, winner-win-data) (winner-make-point-alist): Remove XEmacs compat code. 2019-10-01 Stefan Kangas Remove XEmacs compat code from term.el (Bug#37524) * lisp/term.el (term-mode-map, term-raw-map, term-mouse-paste): Remove XEmacs compat code. 2019-10-01 Lars Ingebrigtsen Add support for Dired file marking from image-mode * doc/emacs/files.texi (File Conveniences): Document them. * lisp/image-mode.el (image-mode--mark-file): New function. (image-mode-unmark-file, image-mode-mark-file) (image-mode-copy-file-name-as-kill): New commands and keystrokes. 2019-10-01 Stefan Kangas Move url-ns.el to obsolete/ * lisp/url/url-ns.el: Move from here... * lisp/obsolete/url-ns.el: ...to here. (Bug#19822) 2019-10-01 Lars Ingebrigtsen Tweak mouse highlights in ediff-help * lisp/vc/ediff-help.el (ediff-set-help-overlays): Only put the mouse-face overlay on the actual commands (bug#5079). This avoids a problem when you have very wide frames: The leading blank portion of the buffer would get the mouse highlights. 2019-10-01 Lars Ingebrigtsen Remove XEmacs compat code from ediff-help.el * lisp/vc/ediff-help.el (ediff-help-region-map) (ediff-set-help-overlays, ediff-help-for-quick-help): Remove XEmacs compat code. 2019-10-01 Lars Ingebrigtsen Make the help page mention the customizeable global mode variable * lisp/help-fns.el (help-fns--customize-variable): Factor out into own function for reuse. (help-fns--globalized-minor-mode): Use it to mention the equivalent variable. * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Mark globalized minor modes as such (bug#7177). 2019-10-01 Lars Ingebrigtsen Fix build error in bytecomp.el from previous change 2019-10-01 Lars Ingebrigtsen Add a new command in *Compile-Log* buffers to re-byte-compile * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-recompile): New command (bug#4516). (emacs-lisp-compilation--current-file) (emacs-lisp-compilation-mode-map): New variables with new `g' binding. (byte-compile-log-file): Set variable so that `g' can recompile it. 2019-10-01 Lars Ingebrigtsen Allow 'M-<' in the minibuffer to behave more logically * doc/lispref/minibuf.texi (Completion Commands) (Text from Minibuffer): Document it. * lisp/minibuffer.el (minibuffer-beginning-of-buffer): New command (bug#3447). (map): Bind it. 2019-10-01 Robert Pluim Correct some custom type typos * lisp/image.el (image-use-external-converter): * lisp/progmodes/sql.el (sql-use-indent-support): * lisp/vc/add-log.el (add-log-dont-create-changelog-file): Fix misspelled 'boolean custom type. * lisp/progmodes/flymake-cc.el (flymake-cc-command): Correct custom type specification. (Bug#30990) 2019-09-30 Stephen Gildea Move undocumented time-stamp formats closer to format-time-string * lisp/time-stamp.el (time-stamp-string-preprocess): Update some undocumented formatting characters of time-stamp format for closer (still incomplete) alignment with format-time-string. They have displayed a warning since Emacs 20 (released in 1997), so it is unlikely anyone is using them. * test/lisp/time-stamp-tests.el: Update tests to match new expectations. 2019-09-30 Stephen Gildea time-stamp doc: recommend formats closer to format-time-string * lisp/time-stamp.el (time-stamp-format, time-stamp-pattern): Update recommended (documented) formats. No code changes, just documentation. All recommended formats are compatible at least as far back as Emacs 22.1 (released in 2007) and are now closer to compatibility with format-time-string. * test/lisp/time-stamp-tests.el: Update test comments to match. 2019-09-30 Juanma Barranquero Bump up max_specpdl_size to 1600 * src/eval.c (init_eval_once): Set max_specpdl_size to 1600. * doc/lispref/variables.texi (Local Variables): Document it. 2019-09-30 Eric Abrahamsen Update calling convention for nnmaildir-close-server * lisp/gnus/nnmaildir.el (nnmaildir-close-server): To take an optional "defs" arg, as changed in 2712187. 2019-09-30 Stefan Monnier * lisp/gnus/mm-uu.el: Use lexical-binding and cl-defstruct (mm-uu-type-alist): Make functions visible to byte-compiler. (mm-uu-entry): New defstruct. (mm-uu-configure): Use mapconcat. (mm-uu-dissect): Avoid setq on `func`. 2019-09-30 Eli Zaretskii Fix quoting in gnutls.c comments and strings * src/gnutls.c (gnutls_make_error, emacs_gnutls_global_init) (Fgnutls_symmetric_encrypt, Fgnutls_symmetric_decrypt) (Fgnutls_hash_mac, Fgnutls_hash_digest): Fix quoting in doc strings and comments. 2019-09-30 Lars Ingebrigtsen Make doc-view error message more informative * lisp/doc-view.el (doc-view-initiate-display): Make error message clearer (bug#3827). 2019-09-30 Lars Ingebrigtsen Fix problem with non-ASCII MML description strings * lisp/gnus/mml.el (mml-insert-tag): Quote non-ASCII parameters. (mml-insert-mime-headers): Make it possible to have non-ASCII descriptions (bug#37555). 2019-09-30 Lars Ingebrigtsen Mention locale-related complications in format-time-string doc string * src/timefns.c (Fformat_time_string): Mention that the width in specifiers like %NX is often in bytes, not characters (bug#20258). 2019-09-30 Lars Ingebrigtsen Fix recent mm-uu.el typo * lisp/gnus/mm-uu.el (mm-uu-pgp-signed-extract-1): Fix typo in mm-uu introduced by previous patch. 2019-09-30 Eli Zaretskii Improve description of face merging * doc/lispref/display.texi (Displaying Faces): More accurate description of merging face attributes of "underlying text". (Bug#1222) 2019-09-29 Lars Ingebrigtsen Make elisp- and emacs-index-search and default to the thing under point * lisp/menu-bar.el (elisp-index-search): Default to the thing under point interactively (bug#1119). (emacs-index-search): Ditto. (emacs-index--prompt): New helper function. 2019-09-29 Lars Ingebrigtsen Refactor mm-decode and friends to be explicit about when errors happen * lisp/gnus/mm-decode.el (mm-sec-status): (mm-sec-error): New functions to handle decryption problems more explicitly (bug#18393). (mm-possibly-verify-or-decrypt): Use the `sec-error' data to determine whether the operation failed or not. * lisp/gnus/mml-smime.el: Ditto. * lisp/gnus/mml2015.el: Used throughout. 2019-09-29 Lars Ingebrigtsen Fix rendering of degenerate tables some more in shr.el * lisp/net/shr.el (shr--fix-tbody): New function (bug#31665). (shr--fix-table): Use it to fix the foo
case. 2019-09-29 Lars Ingebrigtsen shr table fix refactoring * lisp/net/shr.el (shr--fix-table): Refactor out into own function from... (shr-tag-table): ... this function. 2019-09-29 Lars Ingebrigtsen Change the commands in image-converter--converters to lists * lisp/image/image-converter.el (image-converter--converters): Change format of the commands to lists. (image-converter--probe, image-converter--convert): Adjust usages. 2019-09-29 Lars Ingebrigtsen Rename the new convert-images-externally variable * doc/emacs/files.texi (File Conveniences): Adjust documentation. * lisp/image.el (image-use-external-converter): Rename from convert-images-externally. 2019-09-29 Juanma Barranquero Silence byte-compiler warning * lisp/obsolete/info-edit.el (ibuffer-help-buffer-modes): Defvar it. 2019-09-29 Stefan Kangas * lisp/dired-x.el (dired-virtual): Fix typo. 2019-09-29 Stefan Monnier * lisp/nxml/rng-valid.el: Use define-minor-mode Remove redundant `:group`s. (rng-validate-mode): Use define-minor-mode. (rng-validate-clear): Let-bind rng-current-schema instead of passing a `no-change-schema` argument. 2019-09-29 Tom Willemse Fix indenting in perl functions with doc-comments * lisp/progmodes/perl-mode.el (perl-calculate-indent): Skip doc-comments as well as comments and skip the entire comment, not just the line. (Bug#21647) 2019-09-29 Lars Ingebrigtsen Update iso8601-tests for new interface 2019-09-29 Lars Ingebrigtsen Make iso8601-parse take a FORM parameter like `decode-time' * lisp/calendar/iso8601.el (iso8601-parse-time, iso8601-parse): Take a FORM parameter like `decode-time'. 2019-09-29 Lars Ingebrigtsen Add support for sub-second ISO8601 strings * lisp/calendar/iso8601.el (iso8601--decimalize): New function. (iso8601-parse-time): Support sub-second ISO8601 times. 2019-09-29 Paul Eggert * src/timefns.c (Fdecode_time): Improve doc string. 2019-09-29 Stefan Kangas Clarify recent ert manual change * doc/misc/ert.texi (Running Tests in Batch Mode): Say that ert test selector strings are regular expressions. 2019-09-29 Alan Mackenzie Remove the compilation-arrow-overlay on a major mode change/reinitialization At the same time, remove the 2-character left margin. * lisp/progmodes/compile.el (compilation-set-up-arrow-spec-in-margin): put compilation-tear-down-arrow-spec-in-margin onto change-major-mode-hook. 2019-09-29 Mattias Engdegård Add `rx-submatch-n' for compatibility (bug#37517) It was an internal symbol in the old `rx' implementation, used in old versions of the `flycheck' package. * lisp/emacs-lisp/rx.el (rx-submatch-n): Alias of `rx-to-string'. * test/lisp/emacs-lisp/rx-tests.el (rx-compat): Test it. 2019-09-29 Lars Ingebrigtsen Fix reverting doc-view buffers * lisp/doc-view.el (doc-view--revert-buffer): Actually use the new version of the PDF data (bug#26996). 2019-09-29 Lars Ingebrigtsen Allow customising pdf-to-text parameters * lisp/doc-view.el (doc-view-pdf->txt): Allow customising the parameters (bug#8519). (doc-view-pdftotext-program-args): New variable. 2019-09-29 Lars Ingebrigtsen Try ImageMagick last for external image converters * lisp/image/image-converter.el (image-converter--converters): Move ImageMagick last in the list. 2019-09-29 Mattias Engdegård Fix linear equation system solving in Calc (bug#35374) * lisp/calc/calcalg2.el (math-try-solve-for): To solve Ax^n=0 where A is a nonzero constant and x the variable to solve for, solve x^n=0 instead of solving A=0 (which obviously fails) or something equally stupid. * test/lisp/calc/calc-tests.el (calc-test-solve-linear-system): New. 2019-09-29 Lars Ingebrigtsen Move convert-images-externally documentation to Emacs manual * doc/emacs/files.texi (File Conveniences): Move bit about convert-images-externally to user manual from lispref manual. 2019-09-29 Lars Ingebrigtsen Remove duplicated image conversion defcustom * lisp/image/image-converter.el (convert-external-images): Remove defcustom that was accidentally not removed when moving to image.el (and renamed). 2019-09-29 Lars Ingebrigtsen Add some commented-out tests for iso8601 2019-09-29 Lars Ingebrigtsen Fix up iso8601 time match regexp * lisp/calendar/iso8601.el (iso8601--time-match): The fraction mark can be either . or , and there can be arbitrarily many digits in the fraction. 2019-09-29 Lars Ingebrigtsen Put new Gnus groups in the completion table * lisp/gnus/gnus-start.el (gnus-group-change-level): Ensure that all new groups are in gnus-active-hashtb so that they can be completed to. 2019-09-29 Lars Ingebrigtsen Define nndraft-close-server according to new calling conventions * lisp/gnus/nnoo.el (nnoo-define-basics-1): *-close-server now takes a DEFS parameter (bug#20319). 2019-09-29 Lars Ingebrigtsen Add new Gnus summary commands and keystrokes for "unseen" navigation * doc/misc/gnus.texi (Choosing Commands): Document them. * lisp/gnus/gnus-sum.el (gnus-summary-next-unseen-article) (gnus-summary-prev-unseen-article): New commands and keystrokes (bug#35213). 2019-09-29 Eli Zaretskii Improve documentation of image conversion feature * lisp/image/image-converter.el (image-converter) (image-convert-p, image-convert): * lisp/image.el (convert-images-externally): * etc/NEWS: * doc/lispref/display.texi (Defining Images): Fix recently added documentation. 2019-09-28 Lars Ingebrigtsen Remove :group from a recent defcustom * lisp/image.el (convert-images-externally): Remove :group. 2019-09-28 Lars Ingebrigtsen If requested, use external image converters for exotic formats * doc/lispref/display.texi (Defining Images): Document it. * lisp/image.el (convert-images-externally): New variable. (image-type): Use it. (create-image): Convert images. * lisp/image/image-converter.el (image-converter--convert): New file. 2019-09-28 Stephen Gildea Reorganize time-stamp tests * test/lisp/time-stamp-tests.el: Group tests by when the format was or will be documented. Add tests for a few more undocumented, volatile formats. Change AM hours test time to be a different hour from PM test time. (Making these changes to the tests now will minimize test changes needed later with anticipated code changes.) 2019-09-28 Juri Linkov Update documentation for tabs. * doc/emacs/frames.texi (Tab Bars): New node. 2019-09-28 Juri Linkov * lisp/tab-line.el: Add new defcustom tab-line-close-tab-action. 2019-09-28 Lars Ingebrigtsen Expunge INBOX messages after splitting * lisp/gnus/nnimap.el (nnimap-split-incoming-mail): Expunge articles after splitting (bug#37541). 2019-09-28 Lars Ingebrigtsen Clean up nnimap-split-incoming-mail slightly * lisp/gnus/nnimap.el (nnimap-split-incoming-mail): Don't call -delete-articles on empty lists (bug#37541). 2019-09-28 Lars Ingebrigtsen Copy edit nnimap-expunge doc string * lisp/gnus/nnimap.el (nnimap-expunge): Copy edit doc string. 2019-09-28 Eli Zaretskii Improve indexing of ELisp manual * doc/lispref/frames.texi (Font and Color Parameters): Add index entry for the 'mouse' face. 2019-09-28 Stefan Kangas Fix customizing ibuffer-help-buffer-modes * lisp/ibuffer.el (ibuffer-help-buffer-modes) * lisp/obsolete/info-edit.el (ibuffer-help-buffer-modes): Move Info-edit-mode reference to obsolete file. 2019-09-28 Stefan Kangas Document ert test selectors in batch mode (Bug#37476) * doc/misc/ert.texi (Running Tests in Batch Mode): Document test selectors. 2019-09-28 Stefan Kangas Improve sorting in package list (Bug#37419) * lisp/emacs-lisp/package.el (package-menu-mode): Allow sorting by version or description. (package-menu--version-predicate): Fix sorting by version. (package-menu--description-predicate): Fix sorting by description. (package-menu--archive-predicate): Fall back to sorting by name if archive is the same. (package-menu--name-predicate, package-menu--status-predicate): Add doc string. * etc/NEWS: Announce the above changes. 2019-09-28 Eli Zaretskii More improvements of doc strings in text-property-search.el * lisp/emacs-lisp/text-property-search.el (text-property-search-forward) (text-property-search-backward): Further improvements of doc strings. (Bug#37488) 2019-09-28 Axel Svensson (tiny change) Update X keysym mapping * lisp/term/x-win.el (x-keysym-table): Update the mappings using current Xorg data. (Bug#37530) 2019-09-28 Stefan Kangas Add bug reporting and link the manual on the about screen * lisp/startup.el (fancy-about-text, normal-about-screen): Clarify that "Contribute" also describes how to report bugs. Add new link "Emacs Manual". (Bug#20697) 2019-09-28 Eli Zaretskii Fix running on MS-Windows with non-existing home directory * lisp/startup.el (startup--xdg-or-homedot): Don't access a non-existent user home directory on windows-nt systems. (Bug#37536) 2019-09-27 Lars Ingebrigtsen Mention doc-view-scale-internally in the DocView manual node * doc/emacs/misc.texi (DocView Navigation): Mention doc-view-scale-internally (bug#33226). 2019-09-27 Mauro Aranda Don't discard customizations in progress when adding comments (Bug#5358) * lisp/cus-edit.el (custom-comment-show): Add docstring. Save the widget value in the :shown-value property, before redrawing. (custom-variable-modified-p): New function, to complement the return values of custom-variable-state. (custom-variable-state-set): Use it. (custom-face-value-create): Add children to the custom-face widget before setting the state, to be able to check for user edits. (custom-face-state-set): Check for user edits before calling custom-face-state (bug#5358). * test/lisp/custom-tests.el (custom-test-show-comment-preserves-changes): New test. 2019-09-27 Nikolaus Rath Run gnus-summary-prepare-exit-hook after flags have been updated * lisp/gnus/gnus-sum.el (gnus-summary-exit): Gnus message flags must be set before expiration, not afterwards (bug#21071). 2019-09-27 Lars Ingebrigtsen Change the lighter in epa-info-mode * lisp/epa.el (epa-info-mode): Change the name of the mode so that it doesn't look like it's Info mode (bug#7287). 2019-09-27 Lars Ingebrigtsen gnus-thread-ignore-subject doc string clarification * lisp/gnus/gnus-sum.el (gnus-thread-ignore-subject): Document that when not ignoring subjects, sorting will not happen as expected (bug#35513). 2019-09-27 Lars Ingebrigtsen Fix documentation on `C-u a' on nndiary group * doc/misc/gnus.texi (Diary Group Parameters): Remove apparently incorrect documentation about `C-u a' on nndiary groups (bug#36849). 2019-09-27 Lars Ingebrigtsen Fix reversed check in mm-possibly-verify-or-decrypt * lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Fix reverse check thinko that made unverified singed messages not display correctly. 2019-09-27 Wilson Snyder .va/.vah/.sva/.svah now loads Verilog mode. * lisp/files.el (auto-mode-alist): Support .va /.vah/.sva/.svah file extensions to load verilog-mode for Verilog-AMS. Reported by Shareef Jalloq. 2019-09-27 Stefan Monnier * lisp/net/nsm.el: Use lexical-binding (nsm-check-tls-connection, nsm-query): Don't pass explicitly `obarray` since it's the default anyway. (nsm-query, nsm-query-user, nsm-save-host): Remove redundant advertised-calling-convention. 2019-09-27 Eli Zaretskii Fix display of box around images * src/xdisp.c (face_before_or_after_it_pos): Handle correctly when we are called with it->bidi_it.first_elt set. (Bug#17114) 2019-09-26 Lars Ingebrigtsen Fix problem with changing to correct NNTP server * lisp/gnus/nntp.el (nntp-close-server): * lisp/gnus/nnimap.el (nnimap-close-server): * lisp/gnus/gnus-int.el (gnus-close-server): Take an optional DEFS parameter to enable switching to the correct nnoo server (bug#20319) when there's two servers with the same address. 2019-09-26 Nikolaus Rath nnimap.el: support additional expunge options * lisp/gnus/nnimap.el (nnimap-close-group) (nnimap-request-expire-articles, nnimap-delete-article) (nnimap-request-scan): Add new 'never, 'immediate, and 'on-exit settings for nnimap-expunge (bug#20670). 2019-09-26 Lars Ingebrigtsen Tweak updating of readedness marks on the IMAP server * lisp/gnus/nnimap.el (nnimap-request-set-mark): Ensure that ticking/unticking also toggles readedness on the IMAP server (bug#22590). 2019-09-26 Juanma Barranquero * src/w32fns.c (Fw32_register_hot_key): Fix typo in docstring 2019-09-26 Lars Ingebrigtsen Fix nnir searching on nested Gnus topics * lisp/gnus/nnir.el (gnus-group-make-nnir-group): On a topic line, search all the groups, even in sub-topics (bug#28090). 2019-09-26 Lars Ingebrigtsen Don't hard-code the RSS structure so much in nnrss * lisp/gnus/nnrss.el (nnrss-get-namespace-prefix): Find the URL in any section in the RSS (bug#34685). 2019-09-26 Lars Ingebrigtsen Add a new `dom-search' function * doc/lispref/text.texi (Document Object Model): Document it. * lisp/dom.el (dom-search): New function. 2019-09-26 Katsumi Yamaoka Make forward-button support help-echo function (bug#37515) * lisp/button.el (forward-button): Support help-echo function. 2019-09-26 Juri Linkov Include ImageMagick file name regexps in image-file-name-regexp * lisp/image-file.el (image-file-name-regexp): If compiled with ImageMagick, include file name extensions it can handle (bug#9516). 2019-09-26 Lars Ingebrigtsen mm-possibly-verify-or-decrypt should only issue errors when decrypting * lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Only do the warning about failed decryption when we're handing encrypted parts, not when doing verification. 2019-09-26 Stefan Kangas Add key bindings for ibuffer filter commands * lisp/ibuffer.el (ibuffer--filter-map): Add keybinding for 'ibuffer-filter-chosen-by-completion' and 'ibuffer-filter-by-directory'. (Bug#6847) 2019-09-26 Stefan Kangas Remove support for destructive splicing in elisp * src/lread.c (read1): Don't handle destructive splicing in backquote expressions (e.g. ",."). (Bug#19790) (syms_of_lread): Remove Qcomma_dot. * src/print.c (print_object): Don't check for Qcomma_dot. * test/src/eval-tests.el (eval-tests-19790-backquote-comma-dot-substitution): New test. * etc/NEWS: Announce it. 2019-09-26 Lars Ingebrigtsen Fix error in display-startup-screen * lisp/startup.el (use-fancy-splash-screens-p): Fix error in display-startup-screen if create-image fails (bug#22072). 2019-09-26 Stefan Kangas Add new function to clear tags in tabulated list * lisp/emacs-lisp/tabulated-list.el (tabulated-list-clear-all-tags): New function to clear all tags from padding area in current buffer. * doc/lispref/modes.texi (Tabulated List Mode): Document it. * etc/NEWS: Announce it. 2019-09-26 Mauro Aranda Don't indent unrelated widgets following widget of type 'other * lisp/wid-edit.el (widget 'other): Use \n instead of the %n escape in the :format property of this widget. If %n is used at the end of the format string, unrelated widgets get indented. (Bug#12533) * test/lisp/wid-edit-tests.el (widget-test-indentation-after-%n) (widget-test-indentation-after-newline) (widget-test-newline-and-indent-same-widget): New tests. 2019-09-26 Lars Ingebrigtsen Make mm-view-pkcs7-verify use epg if requested * lisp/gnus/mm-view.el (mm-view-pkcs7-verify): Respect mml-smime-use (bug#18393). 2019-09-26 Lars Ingebrigtsen Make it possible to view S/MIME verified emails * lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): When dissecting the result, we need a header (bug#18393). * lisp/gnus/mm-view.el (mm-view-pkcs7-verify): Insert the verified string. * lisp/gnus/smime.el (smime-verify-region): Return the verified string. 2019-09-26 Lars Ingebrigtsen Fix recent gnus-rescale-image change * lisp/gnus/gnus-util.el (gnus-rescale-image): Don't bug out on non-graphical Emacs versions. 2019-09-26 Mattias Engdegård * etc/NEWS: Note removal of internal rx symbols (bug#37517) 2019-09-26 Juanma Barranquero * lisp/desktop.el (desktop-read): With argument, ask the user for DIRNAME. * etc/NEWS: Document it. 2019-09-26 Michael Albinus Avoid errors in tramp-tests with a remote ksh shell * test/lisp/net/tramp-tests.el (tramp--test-ksh-p): New defun. (tramp-test41-utf8, tramp-test41-utf8-with-stat) (tramp-test41-utf8-with-perl, tramp-test41-utf8-with-ls): Skip, when remote shell is ksh. 2019-09-25 Mattias Engdegård Add rx extension mechanism Add a built-in set of extension macros: `rx-define', `rx-let' and `rx-let-eval'. * lisp/emacs-lisp/rx.el (rx-constituents, rx-to-string): Doc updates. (rx--builtin-symbols, rx--builtin-names, rx--local-definitions) (rx--lookup-def, rx--substitute, rx--expand-template) (rx--make-binding, rx--make-named-binding, rx--extend-local-defs) (rx-let-eval, rx-let, rx-define): New. (rx--translate-symbol, rx--translate-form): Use extensions if any. (rx): Use local definitions. * test/lisp/emacs-lisp/rx-tests.el (rx-let, rx-define) (rx-to-string-define, rx-let-define, rx-let-eval): New. * etc/NEWS (Changes in Specialized Modes and Packages): * doc/lispref/searching.texi (Rx Notation, Rx Functions, Extending Rx): Add node about rx extensions. 2019-09-25 Mattias Engdegård New rx implementation * lisp/emacs-lisp/rx.el: * test/lisp/emacs-lisp/rx-tests.el: * doc/lispref/searching.texi (Rx Constructs): Rewrite rx for correctness, clarity, and performance. The new implementation retains full compatibility and has more comprehensive tests. * lisp/emacs-lisp/re-builder.el (reb-rx-font-lock-keywords): Adapt to changes in internal variables in rx.el. 2019-09-25 Juri Linkov Improve customization. * lisp/tab-bar.el (tab-bar-new-tab-choice) (tab-bar-close-button-show): New defcustoms. (tab-bar-tab-name-function): New defvar. * lisp/tab-line.el (tab-line-new-tab-choice) (tab-line-close-button-show): New defcustoms. 2019-09-25 Mattias Engdegård Allow regexp-quote to return its argument * src/search.c (Fregexp_quote): Only allocate a new string if needed. * doc/lispref/searching.texi (Regexp Functions): * etc/NEWS (Incompatible Lisp Changes): Document. 2019-09-25 Mauro Aranda Fix indentation of widgets (Bug#7851) * lisp/wid-edit.el (widget--should-indent-p): New function, to decide whether to indent or not. (widget-checklist-value-add-item, widget-radio-add-item) (widget-editable-list-format-handler) (widget-editable-list-entry-create) (widget-group-value-create): Use it (bug#7851). 2019-09-25 Lars Ingebrigtsen Make gnus-rescale-image work on modern Emacs versions * lisp/gnus/gnus-util.el (gnus-rescale-image): Make this work with native image transforms. 2019-09-25 Eli Zaretskii Improve documentation of 'text-property-search-forward' * lisp/emacs-lisp/text-property-search.el (text-property-search-forward) (text-property-search-backward): Improve doc strings. (Bug#37488) 2019-09-24 Juri Linkov Small fixes. Bind [tab-line mouse-1] to mouse-select-window. Revert an attempt to implement a non‐native tab bar on NS. 2019-09-24 Lars Ingebrigtsen Make ImageMagick multi-image size calculations work for .ico files * src/image.c (imagemagick_load_image): Compute image sizes correctly in multi-image .ico files and the like (bug#18333). 2019-09-24 Lars Ingebrigtsen Slight shr-put-image clean up * lisp/net/shr.el (shr-put-image): Use image-multi-frame-p directly, and remove outdated comments (image-multi-frame-p returns the delay). 2019-09-24 Alan Mackenzie New edebug-spec, nested-backquote-form. This fixes bug #31090 * lisp/emacs-lisp/edebug.el: (nested-backquote-form): a new edebug-spec which handles nested backquote structures without a , or ,@ "between" the outer and inner backquotes. (backquote-form): Use nested-backquote-form. 2019-09-24 Lars Ingebrigtsen Make --with-imagemagick bug out if there's no support for it * configure.ac (HAVE_IMAGEMAGICK): Stop configuration if the user has said --with-imagemagick, but there's no support for it (bug#24455). 2019-09-24 Pip Cet Allow a :stride argument so XBM boolvecs are in the right format. * src/image.c (xbm_image_p): Explicitly specify the right stride if a bool vector is used as argument. * doc/lispref/display.texi (XBM Images): Describe bool vectors accurately. * etc/NEWS: Document the change (bug#36337). 2019-09-24 Michael Albinus * lisp/net/tramp-sh.el (tramp-get-remote-stat): Ban "stat" on Solaris. 2019-09-24 Noah Swainland (tiny change) (calc): Fix link in doc string * lisp/calc/calc.el (calc): Fix link in doc string (bug#37500). 2019-09-24 Lars Ingebrigtsen Allow controlling when to send cookies when retrieving images in shr * lisp/net/shr.el (shr--use-cookies-p): New function. (shr-tag-img): Use it. (shr-cookie-policy): New variable. (shr-save-contents): Use cookies. * doc/misc/eww.texi (Advanced): Document it. 2019-09-24 Robert Pluim Document how to listen on all interfaces in the Elisp manual * doc/lispref/processes.texi (Network Processes): Explain how to listen on all interfaces. 2019-09-24 Lars Ingebrigtsen Allow url-insert-file-contents to work on 304 responses * lisp/url/url-http.el (url-http--insert-file-helper): If the server answers 304 Not modified, then that's not an error (bug#26063). 2019-09-24 Lars Ingebrigtsen Clean up url-parse-args slightly * lisp/url/url-util.el (url-parse-args): Don't leave temporary buffer behind. Clean up slightly. 2019-09-24 Lars Ingebrigtsen Fix old problem with HTTPS HTTP 0.9 sentinels * lisp/url/url-http.el (url-http-end-of-document-sentinel): Pass on the tls parameter if we have HTTPS (bug#14983). 2019-09-24 Eli Zaretskii Resurrect support for negative frame geometry parameters on MS-Windows * src/w32fns.c (my_create_window): Avoid assertion violations in XFIXNUM when the 'top' or 'left' frame parameters are neither fixnums nor 'unbound', in which case f->size_hint_flags are set by gui_figure_window_size. (Bug#37415) 2019-09-23 Lars Ingebrigtsen Allow scrolling the NSM window * lisp/net/nsm.el (nsm-query-user): Allow moving backwards/forwards in the NSM buffer if the window is too small to show all the details (bug#28069). 2019-09-23 Wilson Snyder Verilog-Mode collected updates. * lisp/progmodes/verilog-mode.el (verilog-auto-inst-param): Add regexp paramter to AUTOINSTPARAM to select which parameters to export. Reported by Vish S. (verilog-build-defun-re): Fix `verilog-goto-defun' to find automatic function/tasks, bug1492. Reported by Enze Chi. (verilog-preprocessor): Update default. 2019-09-23 Lars Ingebrigtsen Rename "dumbquotes" to "smartquotes" in Gnus * doc/misc/gnus.texi (Article Washing): Adjust documentation. * etc/refcards/gnus-refcard.tex (subsection*{Notes}): Ditto * lisp/gnus/gnus-art.el (gnus-article-smartquotes-map): Rename from gnus-article-dumbquotes-map and add obsolete alias. (article-treat-smartquotes): Ditto. * lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Adjust menus. 2019-09-23 Jan Beich mml-smime-openssl-sign): Use all the keys * lisp/gnus/mml-smime.el (mml-smime-openssl-sign): Use all the keys in `smime-keys' for this identifier (bug#17780). 2019-09-23 Lars Ingebrigtsen Adjust exif-tests.el to new interface 2019-09-23 Lars Ingebrigtsen Fix regression in mm-possibly-verify-or-decrypt by previous patch * lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Remove debugging 2019-09-23 Lars Ingebrigtsen Fix regression in mm-possibly-verify-or-decrypt by previous patch * lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Be less strict about what's considered a success. 2019-09-23 Lars Ingebrigtsen Fix S/MIME continuation header when sending * lisp/gnus/mml-smime.el (mml-smime-epg-sign): Fix continuation header. 2019-09-23 Lars Ingebrigtsen make-network-process doc clarification * src/process.c (Fmake_network_process): Further doc clarification for listening on "::". 2019-09-23 Paul Eggert Bring back mention of NNTP gmane Problem reported by Michael Albinus at: https://lists.gnu.org/r/emacs-devel/2019-09/msg00519.html * admin/notes/emba: Reintroduce mention of nttp+news.gmane.org, since that still works. 2019-09-23 Alan Third martin rudalics Fix GNUstep build * src/nsfont.m (nsfont_draw): Change type to match. 2019-09-23 Lars Ingebrigtsen Fix cedet compilation warning * lisp/cedet/semantic/db.el (semanticdb-dirty-p): Fix compilation warning by moving to after definition. 2019-09-23 Lars Ingebrigtsen Update example in the Mail Aliases node of lispintro * doc/lispintro/emacs-lisp-intro.texi (Mail Aliases): Change example to use Message mode, since that's the default for `C-x m' now (bug#13855). 2019-09-23 Lars Ingebrigtsen Make mm-possibly-verify-or-decrypt pass decryption error * lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): If there's an error, report the error back in a new part (bug#25649). 2019-09-23 Lars Ingebrigtsen * lisp/dired-aux.el (dired-copy-file-recursive): Make prompt clearer. 2019-09-23 Lars Ingebrigtsen Don't bug out on invalid addresses in mml-secure-check-user-id * lisp/gnus/mml-sec.el (mml-secure-check-user-id): Don't bug out on invalid addresses (bug#33613). 2019-09-23 Lars Ingebrigtsen Tweak how much / raises/lowers text in shr * lisp/net/shr.el (shr-tag-sup, shr-tag-sub): Raising by 0.5 gives very ugly displays. 0.2 seems sufficient for legibility. 2019-09-23 Mattias Engdegård 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. Backport from master. 2019-09-23 Lars Ingebrigtsen Signal errors if EPA can't verify data * lisp/epa.el (epa-verify-region): Signal an error if the region couldn't be verified (bug#14720). (epa-verify-file): Say that the file couldn't be verified instead of just "...done". 2019-09-23 Lars Ingebrigtsen Make "Show Hidden Headers" in Message buffers more obvious * lisp/gnus/message.el (message-widen-and-recenter): New command to ensure that we show most of the headers (bug#23252). (message-mode-field-menu): Use it. 2019-09-23 Lars Ingebrigtsen Add a NEWS entry for message citation levels 2019-09-23 Hong Xu Add different faces for different citation levels in Message mode * lisp/gnus/message.el (message-font-lock-keywords) (message-font-lock-make-cited-text-matcher): Add support for different faces for different citation levels. The faces are defined in the faces named `message-cited-text-N': N of the Mth citation level will be M mod 4. (message-cited-text-1, message-cited-text-2) (message-cited-text-3, message-cited-text-4): Add customization for the faces of 4 different citation level. In the future, the number of faces may increase, as the code is flexible enough to automatically deal with that. (message-cite-level-function): Add a function to customize the determination of cite levels given the prefix of the cited text (bug#25022). 2019-09-23 Lars Ingebrigtsen Add an `authinfo-hidden' variable * lisp/auth-source.el (authinfo-hidden): New variable. (authinfo--hide-passwords): Use it to allow users to decide what to hide. 2019-09-23 nitishch (tiny change) "]" is not a standard citation prefix character * lisp/mail/sendmail.el (mail-citation-prefix-regexp): Don't regard "]" as a citation prefix character (bug#25150). This allows some motion commands (like forward-sexp) to behave more as expected in Message mode buffers. 2019-09-23 Mattias Engdegård Fix linear equation system solving in Calc (bug#35374) * lisp/calc/calcalg2.el (math-try-solve-for): To solve Ax^n=0 where A is a nonzero constant and x the variable to solve for, solve x^n=0 instead of solving A=0 (which obviously fails) or something equally stupid. * test/lisp/calc/calc-tests.el (calc-test-solve-linear-system): New. 2019-09-23 Lars Ingebrigtsen Keep a cache of encoded Message contents to avoid re-GPG-in data * lisp/gnus/gnus-msg.el (gnus-inews-do-gcc): Use it to avoid re-encoding. * lisp/gnus/message.el (message-encoded-mail-cache): New variable. * lisp/gnus/message.el (message-send-mail): Store encoded. (message--cache-encoded): New function. (message-do-fcc): Store encoded (bug#25155). 2019-09-23 Lars Ingebrigtsen * lisp/gnus/message.el (message-send-mail): Remove misleading comment. 2019-09-23 Juanma Barranquero Fix arg name of `text-property-search-{forward|backward}' (bug#37488) * lisp/emacs-lisp/text-property-search.el (text-property-search-forward, text-property-search-backward): Rename arg NOT-IMMEDIATE to NOT-CURRENT. Also fix docstring. 2019-09-23 Paul Eggert Update some URLs This mostly changes http: to https: in URLs. It also updates some URLs that have moved, removes some URLs that no longer work, recommends against using procmail (procmail.org no longer works), and removes some mentions of the no-longer-existing Gmane, LPF and VTW. It doesn't update all URLs, just the ones I had time for. * GNUmakefile (help): * admin/admin.el (manual-doctype-string): * admin/charsets/Makefile.in (${charsetdir}/ALTERNATIVNYJ.map): * admin/charsets/mapconv: * lisp/net/soap-client.el (soap-create-envelope): * lisp/org/org.el (org-doi-server-url): * lisp/textmodes/bibtex.el (bibtex-generate-url-list): Prefer https: to http: un URLs. 2019-09-22 Paul Eggert Update from Gnulib This incorporates: 2019-09-22 Update some URLs 2019-09-15 fcntl-h: fix compilation error of creat.c on MSVC 2019-09-15 creat: new module 2019-09-15 access: new module 2019-09-09 Add option to assume best, not worst, when cross-compiling. * build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex: * lib/careadlinkat.c, lib/careadlinkat.h, lib/count-leading-zeros.h: * lib/count-trailing-zeros.h, lib/diffseq.h, lib/fcntl.in.h: * lib/ftoastr.c, lib/get-permissions.c: * lib/ieee754.in.h, lib/inttypes.in.h, lib/mktime.c, lib/open.c: * lib/pathmax.h, lib/pipe2.c, lib/stddef.in.h, lib/stdint.in.h: * lib/stdlib.in.h, lib/str-two-way.h, lib/string.in.h, lib/time.in.h: * lib/timegm.c, lib/unistd.in.h, m4/canonicalize.m4: * m4/extern-inline.m4, m4/fcntl_h.m4, m4/fdopendir.m4: * m4/getgroups.m4, m4/getopt.m4, m4/gettimeofday.m4: * m4/gnulib-common.m4, m4/largefile.m4: * m4/lstat.m4, m4/memmem.m4, m4/mktime.m4, m4/nocrash.m4, m4/open.m4: * m4/pselect.m4, m4/putenv.m4, m4/readlink.m4, m4/regex.m4: * m4/symlink.m4, m4/unistd_h.m4, m4/utimens.m4, m4/utimes.m4: Copy from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * m4/open-slash.m4: New file, copied from Gnulib. 2019-09-22 Stephen Gildea Expand time-stamp unit tests to cover all formatting options * test/lisp/time-stamp-tests.el: Expand unit tests to cover all formatting options. These tests validate time-stamp-pattern formatting that has existed since at least Emacs 22 (released in 2007). The tests cover both documented behavior and behavior implemented to support future migrations. * test/lisp/time-stamp-tests.el (time-stamp-string): Add a second argument (TIME) to open a testing seam. Have the unit tests call this public function. * test/lisp/time-stamp-tests.el (time-stamp-string, time-stamp-string-preprocess): Remove the second pass through time-string--format. (Previously both functions called it.) It was used only to handle "%", but this is now handled by having time-stamp-string-preprocess not double it. Not doubling the "%" in time-stamp-string-preprocess fixes the padding of "%2%", which was discovered by the new unit tests to be wrong. 2019-09-22 Lars Ingebrigtsen Clarify `debug' doc string * lisp/emacs-lisp/debug.el (debug): Mention that inhibit-redisplay will inhibit the function. 2019-09-22 Lars Ingebrigtsen Make Message warn about invalid addresses * lisp/gnus/message.el (message-check-recipients): Warn about invalid email addresses (bug#32639). 2019-09-22 Lars Ingebrigtsen Remove Gnus posting style reference to message-reply-headers * doc/misc/gnus.texi (Posting Styles): Remove bit about message-reply-headers, because it has never worked. 2019-09-22 Lars Ingebrigtsen gnus-use-atomic-windows should default to nil * lisp/gnus/gnus-win.el (gnus-use-atomic-windows): Default to nil. 2019-09-22 Lars Ingebrigtsen message-reply-headers doc fix * doc/misc/gnus.texi (Posting Styles): Update the type of the message-reply-headers object. 2019-09-22 Lars Ingebrigtsen mailclient can't send attachments * lisp/mail/mailclient.el (mailclient-send-it): Warn about trying to send attachments (bug#34992). 2019-09-22 Juri Linkov Improve customizability and better tab separators. * lisp/tab-bar.el (tab-bar-tabs-function): New defvar. * lisp/tab-line.el (tab-line-tab-name-function) (tab-line-tabs-function): New defvars. 2019-09-22 Jackson Ray Hamilton Ignore comments and strings when recognizing JSX * lisp/progmodes/js.el (js-syntax-propertize): Ignore comments and strings. * test/manual/indent/jsx-comment-string.jsx: New test. 2019-09-22 Jackson Ray Hamilton Make js-jsx-regexps case-sensitive The regexp in this list used a capitalized “React” because it actually should be capitalized like that. Otherwise, the following code would produce a false positive match: import Thing from './react/Thing' * lisp/progmodes/js.el (js-jsx-regexps): Update docstring. (js-jsx--detect-and-enable): Match case-sensitively when determining whether JSX should be enabled. 2019-09-22 Paul Eggert Avoid crashes when casifying noncontiguous regions This is a followon fix for Bug#37477. * lisp/simple.el (region-extract-function): Use setq here, since the var is now defined in C code. * src/casefiddle.c (casify_pnc_region): New function. (Fupcase_region, Fdowncase_region, Fcapitalize_region) (Fupcase_initials_region): Use it. (Fupcase_initials_region): Add region-noncontiguous-p flag for consistency with the others. All uses changed. (syms_of_casefiddle): Define Qbounds, Vregion_extract_function. * src/insdel.c (prepare_to_modify_buffer_1): * src/keyboard.c (command_loop_1): Use Vregion_extraction_function. * src/insdel.c (syms_of_insdel): No need to define Qregion_extract_function. * test/src/casefiddle-tests.el (casefiddle-oldfunc): New var. (casefiddle-loopfunc, casefiddle-badfunc): New functions. (casefiddle-invalid-region-extract-function): New test. 2019-09-22 Stefan Monnier * lisp/help-fns.el: Fix missing dependency 2019-09-22 Lars Ingebrigtsen Remove references to domain that no longer exists * doc/misc/gnus-faq.texi (FAQ 7-1): * doc/misc/gnus.texi (Maildir): * lisp/gnus/nnmaildir.el: qmail.org no longer exists. 2019-09-22 Lars Ingebrigtsen Fix "password" detection in authinfo mode * lisp/auth-source.el (authinfo--hide-passwords): Ensure that we only hit actual "password" entries and not "foo-password" and the like. 2019-09-22 Lars Ingebrigtsen Fix warning about @xref in parenthesis * doc/misc/gnus.texi (Window Layout): Use @pxref in parentheses. 2019-09-22 Lars Ingebrigtsen Note that image-mode automatically rotates 2019-09-22 Lars Ingebrigtsen Automatically rotate images in image-mode based on Exif data * lisp/image-mode.el (image-toggle-display-image): Get the orientation from the Exif data, if any. 2019-09-22 Lars Ingebrigtsen Adjust the exif.el interface functions * lisp/image/exif.el (exif-parse-buffer): New function. (exif-orientation): Ditto. (exif-error): New error symbol, and adjust all error signaling to only use that signal. 2019-09-22 Andreas Schwab Fix compilation with CHECK_STRUCTS * src/pdumper.c (dump_buffer): Update hash of struct buffer. 2019-09-21 Eric Abrahamsen New option for making Gnus window layouts atomic * lisp/gnus/gnus-win.el (gnus-use-atomic-windows): New boolean customization option. (gnus-configure-windows): When removing old window layouts, check for and remove atomicity. (gnus-configure-windows): When gnus-use-atomic-windows is non-nil, make Gnus window layouts atomic. * doc/misc/gnus.texi (Window Layout): Document. 2019-09-21 Stefan Kangas * src/fns.c (Fbuffer_hash): Improve doc string. 2019-09-21 Juri Linkov Support rectangular regions in capitalize-region and capitalize-dwim. * lisp/simple.el (capitalize-dwim): Add arg region-noncontiguous-p in capitalize-region call. * src/casefiddle.c (Fcapitalize_region): Add arg region-noncontiguous-p. If non-nil, operate on multiple chunks. (Bug#37477) (Fdowncase_region): Use builtin symbol Qregion_extract_function rather than calling intern. 2019-09-21 Juri Linkov Take into account FRAME_TAB_BAR height in more places. * src/dispnew.c (handle_window_change_signal, init_display_interactive): * src/frame.c (make_terminal_frame, Fmake_terminal_frame): * src/keyboard.c (Fsuspend_emacs): * src/term.c (Fresume_tty): * src/xterm.c (x_check_fullscreen): Subtract FRAME_TAB_BAR_LINES. * src/xterm.c (x_new_font): Set FRAME_TAB_BAR_HEIGHT. (x_new_font, x_check_fullscreen, x_set_window_size_1) (x_set_window_size, x_wm_set_size_hint): Add FRAME_TABBAR_HEIGHT. 2019-09-21 Eric Abrahamsen Use eieio-object-p, not obsolete object-p Continued fixes for a81223aeaa * lisp/gnus/gnus-registry.el (gnus-registry-article-marks-to-names, gnus-registry-article-marks-to-chars): object-p is obsolete. 2019-09-21 Stefan Kangas Several doc fixes in package.el * lisp/emacs-lisp/package.el (top-level) (package-check-signature, package--from-builtin) (package-desc-full-name, package-desc-suffix) (package-desc--keywords, package--bi-desc) (package-process-define-package, package-archive-base) (package-install-from-archive, package-install-from-buffer) (package-install-file, package-autoremove, describe-package-1) (package-install-button-action, package-delete-button-action) (package-keyword-button-action, package-make-button) (package--print-email-button, package-list-unversioned) (package--emacs-version-list, package-menu-toggle-hiding) (package-hidden-regexps, package-menu-hide-package) (package-menu-get-status, package-menu--find-upgrades) (package-menu--post-refresh): Doc fixes. (Bug#37410) 2019-09-21 Paul Eggert Revert too-picky file-access tests Problem reported by Andreas Schwab (Bug#37475). * doc/lispref/files.texi (Writing to Files) (Testing Accessibility, Kinds of Files): Document that accessibility and file-type predicates return nil if there is trouble determining accessibility or type. * etc/NEWS: Adjust, and list the affected primitives. * src/callproc.c (init_callproc): Go back to Ffile_exists_p. * src/fileio.c (PICKY_EACCES, file_test_errno): Remove. All uses removed. (Ffile_name_case_insensitive_p, Ffile_exists_p, Ffile_symlink_p) (Ffile_directory_p, Ffile_regular_p): Document that these functions return nil if there is trouble. (Ffile_name_case_insensitive_p, check_file_access) (Ffile_writable_p, Ffile_symlink_p, Ffile_directory_p) (Ffile_accessible_directory_p, Ffile_regular_p) * src/lread.c (Fload): Go back to treating trouble in determining the answer as if the file were missing. * src/fileio.c (Ffile_newer_than_file_p): Use file_attribute_errno not file_test_errno, since returning nil is not appropriate when there are two files to test; e.g., in the rare cases where both file timestamps have overflowed then neither t nor nil is correct. 2019-09-21 Noam Postavsky Remove lisp/erc/ file-local indent-tabs-mode settings * lisp/erc/erc-autoaway.el: * lisp/erc/erc-backend.el: * lisp/erc/erc-button.el: * lisp/erc/erc-compat.el: * lisp/erc/erc-dcc.el: * lisp/erc/erc-fill.el: * lisp/erc/erc-ibuffer.el: * lisp/erc/erc-identd.el: * lisp/erc/erc-imenu.el: * lisp/erc/erc-join.el: * lisp/erc/erc-list.el: * lisp/erc/erc-log.el: * lisp/erc/erc-match.el: * lisp/erc/erc-menu.el: * lisp/erc/erc-netsplit.el: * lisp/erc/erc-networks.el: * lisp/erc/erc-notify.el: * lisp/erc/erc-page.el: * lisp/erc/erc-pcomplete.el: * lisp/erc/erc-replace.el: * lisp/erc/erc-ring.el: * lisp/erc/erc-services.el: * lisp/erc/erc-sound.el: * lisp/erc/erc-speedbar.el: * lisp/erc/erc-stamp.el: * lisp/erc/erc-track.el: * lisp/erc/erc-truncate.el: * lisp/erc/erc-xdcc.el: * lisp/erc/erc.el: Remove indent-tabs-mode setting, so that we follow Emacs' global indent-tabs-mode=nil setting (and much of the indentation in these fails is already spaces anyway). Also remove tab-width=8 settings, since those are redundant with the setting in the top-level .dir-locals.el. 2019-09-21 Lars Ingebrigtsen Fix some commentary typos in exif.el * lisp/image/exif.el (exif--parse-exif-chunk) (exif--parse-directory): Commentary typo fixes. 2019-09-21 Lars Ingebrigtsen Add an Exif parsing library * lisp/image/exif.el: New file (bug#23070). * test/lisp/image/exif-tests.el: Add some basic tests. 2019-09-21 Alan Mackenzie CC Mode: Fix wrong fontification of FOO in ASSERT (FOO && !BAR) * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't recognize the construct in CASE 18, unless additionally at-decl-end is set. 2019-09-21 Lars Ingebrigtsen Fix two ` characters in NEWS 2019-09-21 Lars Ingebrigtsen Hide passwords in .authinfo and .netrc files * lisp/auth-source.el (authinfo-mode): New mode (bug#28785). (authinfo--hide-passwords, authinfo--toggle-display): New functions. * lisp/files.el (auto-mode-alist): Use authinfo-mode for .authinfo and .netrc files. 2019-09-21 Lars Ingebrigtsen Allow reveal.el to toggle `display' properties * lisp/reveal.el (reveal-open-new-overlays): Allow also toggling `displa' overlay properties (bug#28785). 2019-09-21 Lars Ingebrigtsen Mention image caching in the `image-size' doc string * src/image.c (Fimage_size): Mention that this function caches images, and what to do about that (bug#33275). 2019-09-21 Lars Ingebrigtsen Mention how to listen to all interfaces in make-network-process * src/process.c (Fmake_network_process): Mention how to listen to all interfaces (bug#34617). 2019-09-21 Michael Albinus * lisp/net/tramp.el (tramp-handle-file-modes): Check for nil file-attributes. 2019-09-21 Eli Zaretskii * lisp/completion.el (completion-kill-region): Doc fix. 2019-09-20 Eric Abrahamsen Fix to a81223aeaa * lisp/gnus/gnus-registry.el (gnus-registry-article-marks-to-chars): (gnus-registry-article-marks-to-names): The registry is an object, not a hash table. 2019-09-20 Lars Ingebrigtsen Allow the user to specify Content-type in Message mode * lisp/gnus/message.el (message-encode-message-body): Pass in the content type if the user has given one. * lisp/gnus/mml.el (mml-parse-1): Remove bogus peek at Content-type (there are no headers here) (bug#36527). * lisp/gnus/mml.el (mml-generate-mime): Respect that. 2019-09-20 Lars Ingebrigtsen Move describe-face to the new help-fns machinery * lisp/help-fns.el (describe-face): Move to here from faces.el and split up (bug#36670). (help-fns--face-custom-version-info): (help-fns--face-attributes): Factored out into own functions. (help-fns-describe-face-functions): New variable. * lisp/emacs-lisp/subr-x.el (when-let): Add autoload cookie. 2019-09-20 Juanma Barranquero lisp/*.el: Fix typos and other trivial doc fixes * lisp/allout-widgets.el (allout-widgets-auto-activation) (allout-current-decorated-p): * lisp/auth-source.el (auth-source-protocols): * lisp/autorevert.el (auto-revert-set-timer): * lisp/battery.el (battery-mode-line-limit): * lisp/calc/calcalg3.el (math-map-binop): * lisp/calendar/cal-dst.el (calendar-dst-find-startend): * lisp/calendar/cal-mayan.el (calendar-mayan-long-count-to-absolute): * lisp/calendar/calendar.el (calendar-date-echo-text) (calendar-generate-month, calendar-string-spread) (calendar-cursor-to-date, calendar-read, calendar-read-date) (calendar-mark-visible-date, calendar-dayname-on-or-before): * lisp/calendar/diary-lib.el (diary-ordinal-suffix): * lisp/cedet/ede/autoconf-edit.el (autoconf-new-program) (autoconf-find-last-macro, autoconf-parameter-strip): * lisp/cedet/ede/config.el (ede-target-with-config-build): * lisp/cedet/ede/linux.el (ede-linux--detect-architecture) (ede-linux--get-architecture): * lisp/cedet/semantic/complete.el (semantic-collector-calculate-cache) (semantic-displayer-abstract, semantic-displayer-point-position): * lisp/cedet/semantic/format.el (semantic-format-face-alist) (semantic-format-tag-short-doc): * lisp/cedet/semantic/fw.el (semantic-find-file-noselect): * lisp/cedet/semantic/idle.el (semantic-idle-scheduler-work-idle-time) (semantic-idle-breadcrumbs-display-function) (semantic-idle-breadcrumbs-format-tag-list-function): * lisp/cedet/semantic/lex.el (semantic-lex-map-types) (define-lex, define-lex-block-type-analyzer): * lisp/cedet/semantic/senator.el (senator-search-default-tag-filter): * lisp/cedet/semantic/symref.el (semantic-symref-result) (semantic-symref-hit-to-tag-via-db): * lisp/cedet/semantic/symref.el (semantic-symref-tool-baseclass): * lisp/cedet/semantic/tag.el (semantic-tag-new-variable) (semantic-tag-new-include, semantic-tag-new-package) (semantic-tag-set-faux, semantic-create-tag-proxy) (semantic-tag-function-parent) (semantic-tag-components-with-overlays): * lisp/cedet/srecode/cpp.el (srecode-cpp-namespaces) (srecode-semantic-handle-:c, srecode-semantic-apply-tag-to-dict): * lisp/cedet/srecode/dictionary.el (srecode-create-dictionary) (srecode-dictionary-add-entries, srecode-dictionary-lookup-name) (srecode-create-dictionaries-from-tags): * lisp/cmuscheme.el (scheme-compile-region): * lisp/color.el (color-lab-to-lch): * lisp/doc-view.el (doc-view-image-width) (doc-view-set-up-single-converter): * lisp/dynamic-setting.el (font-setting-change-default-font) (dynamic-setting-handle-config-changed-event): * lisp/elec-pair.el (electric-pair-text-pairs) (electric-pair-skip-whitespace-function) (electric-pair-string-bound-function): * lisp/emacs-lisp/avl-tree.el (avl-tree--del-balance) (avl-tree-member, avl-tree-mapcar, avl-tree-iter): * lisp/emacs-lisp/bytecomp.el (byte-compile-generate-call-tree): * lisp/emacs-lisp/checkdoc.el (checkdoc-autofix-flag) (checkdoc-spellcheck-documentation-flag, checkdoc-ispell) (checkdoc-ispell-current-buffer, checkdoc-ispell-interactive) (checkdoc-ispell-message-interactive) (checkdoc-ispell-message-text, checkdoc-ispell-start) (checkdoc-ispell-continue, checkdoc-ispell-comments) (checkdoc-ispell-defun): * lisp/emacs-lisp/cl-generic.el (cl--generic-search-method): * lisp/emacs-lisp/eieio-custom.el (eieio-read-customization-group): * lisp/emacs-lisp/lisp.el (forward-sexp, up-list): * lisp/emacs-lisp/package-x.el (package--archive-contents-from-file): * lisp/emacs-lisp/package.el (package-desc) (package--make-autoloads-and-stuff, package-hidden-regexps): * lisp/emacs-lisp/tcover-ses.el (ses-exercise-startup): * lisp/emacs-lisp/testcover.el (testcover-nohits) (testcover-1value): * lisp/epg.el (epg-receive-keys, epg-start-edit-key): * lisp/erc/erc-backend.el (erc-server-processing-p) (erc-split-line-length, erc-server-coding-system) (erc-server-send, erc-message): * lisp/erc/erc-button.el (erc-button-face, erc-button-alist) (erc-browse-emacswiki): * lisp/erc/erc-ezbounce.el (erc-ezbounce, erc-ezb-get-login): * lisp/erc/erc-fill.el (erc-fill-variable-maximum-indentation): * lisp/erc/erc-log.el (erc-current-logfile): * lisp/erc/erc-match.el (erc-log-match-format) (erc-text-matched-hook): * lisp/erc/erc-netsplit.el (erc-netsplit, erc-netsplit-debug): * lisp/erc/erc-networks.el (erc-server-alist) (erc-networks-alist, erc-current-network): * lisp/erc/erc-ring.el (erc-input-ring-index): * lisp/erc/erc-speedbar.el (erc-speedbar) (erc-speedbar-update-channel): * lisp/erc/erc-stamp.el (erc-timestamp-only-if-changed-flag): * lisp/erc/erc-track.el (erc-track-position-in-mode-line) (erc-track-remove-from-mode-line, erc-modified-channels-update) (erc-track-last-non-erc-buffer, erc-track-sort-by-importance) (erc-track-get-active-buffer): * lisp/erc/erc.el (erc-get-channel-user-list) (erc-echo-notice-hook, erc-echo-notice-always-hook) (erc-wash-quit-reason, erc-format-@nick): * lisp/ffap.el (ffap-latex-mode): * lisp/files.el (abort-if-file-too-large) (dir-locals--get-sort-score, buffer-stale--default-function): * lisp/filesets.el (filesets-tree-max-level, filesets-data) (filesets-update-pre010505): * lisp/gnus/gnus-agent.el (gnus-agent-flush-cache): * lisp/gnus/gnus-art.el (gnus-article-encrypt-protocol) (gnus-button-prefer-mid-or-mail): * lisp/gnus/gnus-cus.el (gnus-group-parameters): * lisp/gnus/gnus-demon.el (gnus-demon-handlers) (gnus-demon-run-callback): * lisp/gnus/gnus-dired.el (gnus-dired-print): * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-buffer): * lisp/gnus/gnus-range.el (gnus-range-normalize): * lisp/gnus/gnus-spec.el (gnus-pad-form): * lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-cloud) (gnus-server-opened, gnus-server-closed, gnus-server-denied) (gnus-server-offline): * lisp/gnus/gnus-sum.el (gnus-refer-thread-use-nnir) (gnus-refer-thread-limit-to-thread) (gnus-summary-limit-include-thread, gnus-summary-refer-thread) (gnus-summary-find-matching): * lisp/gnus/gnus-util.el (gnus-rescale-image): * lisp/gnus/gnus.el (gnus-summary-line-format, gnus-no-server): * lisp/gnus/mail-source.el (mail-source-incoming-file-prefix): * lisp/gnus/message.el (message-cite-reply-position) (message-cite-style-outlook, message-cite-style-thunderbird) (message-cite-style-gmail, message--send-mail-maybe-partially): * lisp/gnus/mm-extern.el (mm-inline-external-body): * lisp/gnus/mm-partial.el (mm-inline-partial): * lisp/gnus/mml-sec.el (mml-secure-message-sign) (mml-secure-message-sign-encrypt, mml-secure-message-encrypt): * lisp/gnus/mml2015.el (mml2015-epg-key-image) (mml2015-epg-key-image-to-string): * lisp/gnus/nndiary.el (nndiary-reminders, nndiary-get-new-mail): * lisp/gnus/nnheader.el (nnheader-directory-files-is-safe): * lisp/gnus/nnir.el (nnir-search-history) (nnir-imap-search-other, nnir-artlist-length) (nnir-artlist-article, nnir-artitem-group, nnir-artitem-number) (nnir-artitem-rsv, nnir-article-group, nnir-article-number) (nnir-article-rsv, nnir-article-ids, nnir-categorize) (nnir-retrieve-headers-override-function) (nnir-imap-default-search-key, nnir-hyrex-additional-switches) (gnus-group-make-nnir-group, nnir-run-namazu, nnir-read-parms) (nnir-read-parm, nnir-read-server-parm, nnir-search-thread): * lisp/gnus/nnmairix.el (nnmairix-default-group) (nnmairix-propagate-marks): * lisp/gnus/smime.el (smime-keys, smime-crl-check) (smime-verify-buffer, smime-noverify-buffer): * lisp/gnus/spam-report.el (spam-report-url-ping-mm-url): * lisp/gnus/spam.el (spam-spamassassin-positive-spam-flag-header) (spam-spamassassin-spam-status-header, spam-sa-learn-rebuild) (spam-classifications, spam-check-stat, spam-spamassassin-score): * lisp/help.el (describe-minor-mode-from-symbol): * lisp/hippie-exp.el (hippie-expand-ignore-buffers): * lisp/htmlfontify.el (hfy-optimizations, hfy-face-resolve-face) (hfy-begin-span): * lisp/ibuf-ext.el (ibuffer-update-saved-filters-format) (ibuffer-saved-filters, ibuffer-old-saved-filters-warning) (ibuffer-filtering-qualifiers, ibuffer-repair-saved-filters) (eval, ibuffer-unary-operand, file-extension, directory): * lisp/image-dired.el (image-dired-cmd-pngcrush-options): * lisp/image-mode.el (image-toggle-display): * lisp/international/ccl.el (ccl-compile-read-multibyte-character) (ccl-compile-write-multibyte-character): * lisp/international/kkc.el (kkc-save-init-file): * lisp/international/latin1-disp.el (latin1-display): * lisp/international/ogonek.el (ogonek-name-encoding-alist) (ogonek-information, ogonek-lookup-encoding) (ogonek-deprefixify-region): * lisp/isearch.el (isearch-filter-predicate) (isearch--momentary-message): * lisp/jsonrpc.el (jsonrpc-connection-send) (jsonrpc-process-connection, jsonrpc-shutdown) (jsonrpc--async-request-1): * lisp/language/tibet-util.el (tibetan-char-p): * lisp/mail/feedmail.el (feedmail-queue-use-send-time-for-date) (feedmail-last-chance-hook, feedmail-before-fcc-hook) (feedmail-send-it-immediately-wrapper, feedmail-find-eoh): * lisp/mail/hashcash.el (hashcash-generate-payment) (hashcash-generate-payment-async, hashcash-insert-payment) (hashcash-verify-payment): * lisp/mail/rmail.el (rmail-movemail-variant-in-use) (rmail-get-attr-value): * lisp/mail/rmailmm.el (rmail-mime-prefer-html, rmail-mime): * lisp/mail/rmailsum.el (rmail-summary-show-message): * lisp/mail/supercite.el (sc-raw-mode-toggle): * lisp/man.el (Man-start-calling): * lisp/mh-e/mh-acros.el (mh-do-at-event-location) (mh-iterate-on-messages-in-region, mh-iterate-on-range): * lisp/mh-e/mh-alias.el (mh-alias-system-aliases) (mh-alias-reload, mh-alias-ali) (mh-alias-canonicalize-suggestion, mh-alias-add-alias-to-file) (mh-alias-add-alias): * lisp/mouse.el (mouse-save-then-kill): * lisp/net/browse-url.el (browse-url-default-macosx-browser): * lisp/net/eudc.el (eudc-set, eudc-variable-protocol-value) (eudc-variable-server-value, eudc-update-variable) (eudc-expand-inline): * lisp/net/eudcb-bbdb.el (eudc-bbdb-format-record-as-result): * lisp/net/eudcb-ldap.el (eudc-ldap-get-field-list): * lisp/net/pop3.el (pop3-list): * lisp/net/soap-client.el (soap-namespace-put) (soap-xs-parse-sequence, soap-parse-envelope): * lisp/net/soap-inspect.el (soap-inspect-xs-complex-type): * lisp/nxml/rng-xsd.el (rng-xsd-date-to-days): * lisp/org/ob-C.el (org-babel-prep-session:C) (org-babel-load-session:C): * lisp/org/ob-J.el (org-babel-execute:J): * lisp/org/ob-asymptote.el (org-babel-prep-session:asymptote): * lisp/org/ob-awk.el (org-babel-execute:awk): * lisp/org/ob-core.el (org-babel-process-file-name): * lisp/org/ob-ebnf.el (org-babel-execute:ebnf): * lisp/org/ob-forth.el (org-babel-execute:forth): * lisp/org/ob-fortran.el (org-babel-execute:fortran) (org-babel-prep-session:fortran, org-babel-load-session:fortran): * lisp/org/ob-groovy.el (org-babel-execute:groovy): * lisp/org/ob-io.el (org-babel-execute:io): * lisp/org/ob-js.el (org-babel-execute:js): * lisp/org/ob-lilypond.el (org-babel-default-header-args:lilypond) (org-babel-lilypond-compile-post-tangle) (org-babel-lilypond-display-pdf-post-tangle) (org-babel-lilypond-tangle) (org-babel-lilypond-execute-tangled-ly) (org-babel-lilypond-compile-lilyfile) (org-babel-lilypond-check-for-compile-error) (org-babel-lilypond-process-compile-error) (org-babel-lilypond-mark-error-line) (org-babel-lilypond-parse-error-line) (org-babel-lilypond-attempt-to-open-pdf) (org-babel-lilypond-attempt-to-play-midi) (org-babel-lilypond-switch-extension) (org-babel-lilypond-set-header-args): * lisp/org/ob-lua.el (org-babel-prep-session:lua): * lisp/org/ob-picolisp.el (org-babel-execute:picolisp): * lisp/org/ob-processing.el (org-babel-prep-session:processing): * lisp/org/ob-python.el (org-babel-prep-session:python): * lisp/org/ob-scheme.el (org-babel-scheme-capture-current-message) (org-babel-scheme-execute-with-geiser, org-babel-execute:scheme): * lisp/org/ob-shen.el (org-babel-execute:shen): * lisp/org/org-agenda.el (org-agenda-entry-types) (org-agenda-move-date-from-past-immediately-to-today) (org-agenda-time-grid, org-agenda-sorting-strategy) (org-agenda-filter-by-category, org-agenda-forward-block): * lisp/org/org-colview.el (org-columns--overlay-text): * lisp/org/org-faces.el (org-verbatim, org-cycle-level-faces): * lisp/org/org-indent.el (org-indent-set-line-properties): * lisp/org/org-macs.el (org-get-limited-outline-regexp): * lisp/org/org-mobile.el (org-mobile-files): * lisp/org/org.el (org-use-fast-todo-selection) (org-extend-today-until, org-use-property-inheritance) (org-refresh-effort-properties, org-open-at-point-global) (org-track-ordered-property-with-tag, org-shiftright): * lisp/org/ox-html.el (org-html-checkbox-type): * lisp/org/ox-man.el (org-man-source-highlight) (org-man-verse-block): * lisp/org/ox-publish.el (org-publish-sitemap-default): * lisp/outline.el (outline-head-from-level): * lisp/progmodes/dcl-mode.el (dcl-back-to-indentation-1) (dcl-calc-command-indent, dcl-indent-to): * lisp/progmodes/flymake.el (flymake-make-diagnostic) (flymake--overlays, flymake-diagnostic-functions) (flymake-diagnostic-types-alist, flymake--backend-state) (flymake-is-running, flymake--collect, flymake-mode): * lisp/progmodes/gdb-mi.el (gdb-threads-list, gdb, gdb-non-stop) (gdb-buffers, gdb-gud-context-call, gdb-jsonify-buffer): * lisp/progmodes/grep.el (grep-error-screen-columns): * lisp/progmodes/gud.el (gud-prev-expr): * lisp/progmodes/ps-mode.el (ps-mode, ps-mode-target-column) (ps-run-goto-error): * lisp/progmodes/python.el (python-eldoc-get-doc) (python-eldoc-function-timeout-permanent, python-eldoc-function): * lisp/shadowfile.el (shadow-make-group): * lisp/speedbar.el (speedbar-obj-do-check): * lisp/textmodes/flyspell.el (flyspell-auto-correct-previous-hook): * lisp/textmodes/reftex-cite.el (reftex-bib-or-thebib): * lisp/textmodes/reftex-index.el (reftex-index-goto-entry) (reftex-index-kill, reftex-index-undo): * lisp/textmodes/reftex-parse.el (reftex-context-substring): * lisp/textmodes/reftex.el (reftex-TeX-master-file): * lisp/textmodes/rst.el (rst-next-hdr, rst-toc) (rst-uncomment-region, rst-font-lock-extend-region-internal): * lisp/thumbs.el (thumbs-mode): * lisp/vc/ediff-util.el (ediff-restore-diff): * lisp/vc/pcvs-defs.el (cvs-cvsroot, cvs-force-dir-tag): * lisp/vc/vc-hg.el (vc-hg--ignore-patterns-valid-p): * lisp/wid-edit.el (widget-field-value-set, string): * lisp/x-dnd.el (x-dnd-version-from-flags) (x-dnd-more-than-3-from-flags): Assorted docfixes. 2019-09-20 Lars Ingebrigtsen Make register-preview ignore empty registers * lisp/register.el (register-preview): Ignore elements that are empty (bug#37155). 2019-09-20 Johan Claesson (tiny change) Make the reverse tabulated list sort stable * lisp/emacs-lisp/tabulated-list.el (tabulated-list--get-sorter): Make the reverse sorting stable (bug#37174). 2019-09-20 Lars Ingebrigtsen Further touch-ups to the auth-source obfuscation * lisp/auth-source.el (auth-source--obfuscate): Avoid leaking the length of the password by using PKCS#7 padding. 2019-09-20 Lars Ingebrigtsen Add some comments to the auth-source obfuscation * lisp/auth-source.el (auth-source--obfuscate): Add comments. 2019-09-20 Lars Ingebrigtsen Make previous auth-source change not break on Windows without gnutls * lisp/auth-source.el (auth-source--obfuscate) (auth-source--deobfuscate): Check that gnutls is really available. 2019-09-20 Lars Ingebrigtsen Obfuscate auth-source memory contents even more * lisp/auth-source.el (auth-source--deobfuscate): Use more obfuscated obfuscation (bug#37196). (auth-source--pad, auth-source--obfuscate) (auth-source-netrc-normalize): Use it. (auth-source-netrc-parse): Ditto. 2019-09-20 Lars Ingebrigtsen Obfuscate auth-source secrets more * lisp/auth-source.el (auth-source-netrc-normalize): Obfuscate passwords stored in the lexical closure (bug#37196). 2019-09-20 Stefan Kangas Recommend against SHA-1 and MD5 for security * doc/lispref/text.texi (Checksum/Hash): * src/fns.c (Fmd5, Fsecure_hash): * lisp/subr.el (sha1): Doc fix to recommend against SHA-1 and MD5 for security-related applications, since they are not collision resistant. (Bug#37420) 2019-09-20 Lars Ingebrigtsen Allow `process-contact' not to block * doc/lispref/processes.texi (Process Information): Document it. * lisp/simple.el (list-processes--refresh): Don't wait for contact information for non-setup processes. * src/process.c (Fprocess_contact): Take an optional parameter to avoid blocking (bug#37408). 2019-09-20 Lars Ingebrigtsen Make number-at-point recognize some hex numbers * lisp/thingatpt.el (number-at-point): Also return common hex numbers (bug#37458). 2019-09-20 Damien Cassou Change default value of message-make-forward-subject-function * lisp/gnus/message.el (message-make-forward-subject-function): Change default value to be a list so it's easier for users to add functions. Change the type so the customize interface allows selecting multiple provided functions instead of just one (bug#37470). 2019-09-20 Stefan Kangas Recommend using https for package-archives * lisp/emacs-lisp/package.el (package-archives): Recommend using https sources where possible. (Bug#33825) 2019-09-20 Matthew Newton (tiny change) Fix the previous imenu commit * lisp/imenu.el (imenu--make-index-alist): Always return the alist (bug#30449). 2019-09-20 Michael Albinus Some Tramp methods allow to change the remote login shell * doc/misc/tramp.texi (Inline methods) : (External methods) : Mention, that the remote login shell could be changed. (Remote shell setup): Remove description of properties "remote-shell-login" and "remote-shell-args", they don't matter here. Changing the default remote shell works only for some methods. (Frequently Asked Questions): Refer to alternative approach fixing zsh problems. * etc/NEWS: Some Tramp methods allow to change the remote login shell. * lisp/net/tramp-sh.el (tramp-default-remote-shell): New defconst. (tramp-methods): Use it. (tramp-get-sh-extra-args): New defun. (tramp-open-shell, tramp-maybe-open-connection): Use it. * lisp/net/tramp.el (tramp-methods): Adapt docstring. 2019-09-19 Juri Linkov * lisp/window.el (walk-windows): Simplify to use WINDOW arg of window-list-1 instead of calling select-window (bug#35385). 2019-09-19 Eric Abrahamsen Only use Gnus registry for formatting when registry is loaded See bug #36903 * lisp/gnus/gnus-registry.el (gnus-registry-article-marks-to-chars): (gnus-registry-article-marks-to-names): In some circumstances it's possible for the user's summary line format spec to include registry-specific code, while the registry itself isn't actually loaded. Make sure the database is actually a hashtable before accessing it. 2019-09-19 Eli Zaretskii Fix calls to insert-*-hooks when JIT font lock is active * src/insdel.c (signal_after_change): Save and restore interval_insert_behind_hooks and interval_insert_in_front_hooks across calls to various other hooks, to prevent their clobbering by those other hooks. (Bug#37455) 2019-09-19 Lars Ingebrigtsen Minor svg wrap tweak * lisp/net/shr.el (svg--wrap-svg): Add the size to the wrapper to avoid having the SVG images shrink (bug#37159). 2019-09-19 Lars Ingebrigtsen Further fix-ups for SVG wrapping in shr * lisp/net/shr.el (svg--wrap-svg): Add the size to the wrapper to avoid having the SVG images shrink (bug#37159). 2019-09-19 Lars Ingebrigtsen Fix :version in recent commit * lisp/pcmpl-gnu.el (pcmpl-gnu-makefile-includes): Fix :version. 2019-09-19 Lars Ingebrigtsen Fix a bug in callback functions in align-areas * lisp/align.el (align-areas): When given a callback function and JUSTIFY, pick out the correct parameters (bug#30139). Suggested by "John Wiegley" . 2019-09-19 Paul Eggert Also prefer .emacs.d if .emacs exists Problem reported by Katsumi Yamaoka (Bug#37456). * lisp/startup.el (startup--xdg-or-homedot): Also prefer .emacs.d if a traditional .emacs file exists. 2019-09-19 Paul Eggert Default PICKY_ACCESS to false on non-MS * src/fileio.c (PICKY_EACCES) [!DOS_NT]: Default to false. 2019-09-18 Paul Eggert Omit some overenthusiastic file-truename calls Problem reported by Tino Calancha (Bug#37445). * src/emacs.c (init_cmdargs): Call file-truename only if needed, i.e., if invocation-directory ends in "/i386/" on WINDOWSNT. * src/lread.c (readevalloop): If the sourcename is not absolute, make it absolute. There is no need to convert non-absolute files into truenames, since absolute files are not converted into truenames. (init_lread): Do not convert source-directory into a truename at startup. There is no need to do so in a dumped Emacs since an absolute file name suffices. The source directory might not even exist any more, or might have been replaced by an interloper who takes advantage of the truename calculation. (syms_of_lread): Remove Qfile_truename; no longer needed. 2019-09-18 Matt Bisson (tiny change) Fix ignored Motif scrollbar resources (Bug#37359) * src/xterm.c (x_create_toolkit_scroll_bar): On Motif scrollbars, "foreground" has no meaning, while "background" means the truck and arrow colors, and "trough" means the background of the entire widget. This fix hooks up the Emacs scrollbar "foreground" color to the XmNbackground resource and the "background" color to XmNtroughColor which is more in line with how Xaw scrollbars behave. 2019-09-18 Juanma Barranquero lisp/*.el, src/*.c: Fix typos in docstrings * lisp/apropos.el (apropos-do-all): * lisp/auth-source-pass.el (auth-source-pass--select-from-entries): * lisp/auth-source.el (auth-source-user-or-password): * lisp/calc/calc-forms.el (math-tzone-names): * lisp/calendar/diary-lib.el (diary-face-attrs) (diary-mark-entries-1): * lisp/cedet/cedet-files.el (cedet-files-list-recursively): * lisp/cedet/ede.el (ede-constructing, ede-deep-rescan): * lisp/cedet/ede/cpp-root.el (ede-cpp-root-header-file-p): * lisp/cedet/ede/proj.el (ede-proj-target-makefile): * lisp/cedet/inversion.el (inversion-check-version) (inversion-test): * lisp/cedet/mode-local.el (mode-local-map-file-buffers): * lisp/cedet/semantic/complete.el (semantic-displayer-ghost): * lisp/cedet/semantic/db-find.el (semanticdb-find-translate-path-default): * lisp/cedet/semantic/db.el (semanticdb-table) (semanticdb-search-system-databases): * lisp/cedet/semantic/imenu.el (semantic-imenu-index-directory): * lisp/cedet/semantic/java.el (semantic-java-doc-keywords-map): * lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-use-headers-flag): * lisp/cedet/semantic/lex.el (semantic-lex-make-keyword-table) (semantic-lex-make-type-table, semantic-lex-debug-analyzers): * lisp/cedet/semantic/tag-ls.el (semantic-tag-abstract-p) (semantic-tag-leaf-p, semantic-tag-static-p) (semantic-tag-prototype-p): * lisp/dnd.el (dnd-open-remote-file-function, dnd-open-local-file): * lisp/emacs-lisp/eieio-opt.el (eieio-build-class-alist) (eieio-read-class, eieio-read-subclass): * lisp/emacs-lisp/generator.el (cps--replace-variable-references) (cps--handle-loop-for): * lisp/erc/erc-dcc.el (erc-dcc-list, erc-dcc-member, erc-dcc-server) (erc-dcc-auto-mask-p, erc-dcc-get-file, erc-dcc-chat-accept): * lisp/eshell/em-pred.el (eshell-pred-file-type): * lisp/faces.el (defined-colors-with-face-attributes): * lisp/font-core.el (font-lock-mode): * lisp/frame.el (frame-restack): * lisp/net/shr.el (shr-image-animate): * lisp/org/org-agenda.el (org-agenda-change-all-lines) (org-agenda-today-p): * lisp/org/org-id.el (org-id-get): * lisp/org/org.el (org-highlight-latex-and-related) (org--valid-property-p): * lisp/org/ox-beamer.el (org-beamer--get-label): * lisp/org/ox-latex.el (org-latex--caption-above-p): * lisp/org/ox-odt.el (org-odt--copy-image-file) (org-odt--copy-formula-file): * lisp/org/ox.el (org-export-with-timestamps): * lisp/progmodes/verilog-mode.el (verilog-indent-declaration-macros): * lisp/ses.el (ses-file-format-extend-parameter-list): * lisp/term.el (ansi-term): * lisp/textmodes/bibtex.el (bibtex-no-opt-remove-re) (bibtex-beginning-of-first-entry, bibtex-autokey-get-title) (bibtex-read-key, bibtex-initialize): * lisp/textmodes/flyspell.el (flyspell-word): * lisp/view.el (view-mode-exit): * src/composite.c: * src/floatfns.c (Fisnan): Fix typos in docstrings. 2019-09-18 Stephen Leake Merge commit '107ce3050fc37b9a13d8304ae1bb73fac9de5f61' 2019-09-18 Stephen Leake Enhance 'pcomplete/make' to complete on targets in included makefiles * lisp/pcmpl-gnu.el (pcmpl-gnu-makefile-includes): New. (pcmpl-gnu-make-targets): New, factored out of pcmpl-gnu-make-all-targets. (pcmpl-gnu-make-includes): New. (pcmpl-gnu-make-all-targets): Use new functions. 2019-09-18 Juri Linkov * lisp/isearch.el (isearch-lazy-highlight-update): Remember timer object in isearch-lazy-highlight-timer to cancel it in lazy-highlight-cleanup. (isearch-done): No need to set isearch-lazy-highlight-start to nil - it used to reset lazy-highlight loop like isearch-lazy-highlight-window-start, but now other packages set isearch-lazy-highlight-last-string to nil to reset lazy-highlight loop. 2019-09-18 Eli Zaretskii Fix loading .elc files on MS-Windows * src/lread.c (Fload): Don't clobber 'found' if the .el file was not found, as it is used by WINDOWSNT later on. 2019-09-18 Phillip Lord Improve logic for dependencies checking * admin/nt/dist-build/build-dep-zips.py: 2019-09-18 Lars Ingebrigtsen Fix up the previous mh-mime warning suppression * lisp/mh-e/mh-acros.el (mh-dlet*): Suppress warnings about prefix-less bindings. * lisp/mh-e/mh-mime.el (mh-insert-mime-security-button): Remove the warning removal here. (mh-insert-mime-button): And here. 2019-09-18 Eli Zaretskii Improve support of the Tai-Viet script * lisp/language/tai-viet.el ("TaiViet"): Update the doc string. Suggested by Jim Brase . (Bug#5806) * etc/HELLO: Add a Tai Viet entry. 2019-09-18 Paul Eggert Out-of-datedness .elc check is merely a file test * src/fileio.c (file_test_errno): Now extern. * src/lread.c (Fload): Use file_test_errno instead, since this is really just a file test (the attributes are not given to the user). 2019-09-18 Eli Zaretskii Fix the MS-Windows build broken by recent errno changes * src/fileio.c (file_directory_p): If the file exists, but is not a directory, set errno to ENOTDIR, like the Posix branch does; openp expects that. 2019-09-18 Michael Albinus Simplify tramp-tests.el check for owncloud/nextcloud * test/lisp/net/tramp-tests.el (tramp-test11-copy-file): Simplify check for owncloud/nextcloud connections. 2019-09-18 Michael Albinus Add extra args for zsh in Tramp * doc/misc/tramp.texi (Remote shell setup): New subsection "Changing the default remote shell". * lisp/net/tramp-sh.el (tramp-sh-extra-args): Add entry for zsh. 2019-09-18 Paul Eggert Be less picky about EACCES in file test predicates Problem reported by Tino Calancha (Bug#37445) and others. * src/fileio.c (PICKY_EACCES): New constant, false by default. (file_test_errno): Ignore EACCES if not picky. (check_file_access): Investigate EACCES problems further if picky. 2019-09-18 Paul Eggert Fix permission-denied issue in MS-Windows startup * src/callproc.c (init_callproc): Use file_access_p rather than Ffile_exists_p during startup (Bug#37445). 2019-09-17 Paul Eggert Improve reporting of I/O, access errors Signal an error for file-oriented errors that are not tame errors like ENOENT and ENOTDIR (Bug#37389). Do this for primitives exposed to Lisp; the lower level internal C API merely makes errno values available to higher-level C code. * doc/lispref/files.texi (Testing Accessibility) (File Attributes, Extended Attributes): Do not say that the functions return nil when the return value cannot be determined. * etc/NEWS: Mention the change. * src/dired.c (Ffile_attributes): Fix doc string confusion about opening a file vs getting its attributes. (file_attributes): Signal serious errors. * src/fileio.c (check_existing, check_executable) (check_writable): Remove. All callers changed to use check_file_access or file_access_p. (file_access_p, file_metadata_errno, file_attribute_errno) (file_test_errno, check_file_access, check_emacs_readlinkat): New functions. * src/fileio.c (Ffile_executable_p, Ffile_readable_p) (Ffile_name_case_insensitive_p, Frename_file, Ffile_exists_p): (Ffile_symlink_p, Ffile_directory_p) (Ffile_accessible_directory_p, Ffile_regular_p) (Ffile_selinux_context, Ffile_acl, Ffile_modes) (Ffile_newer_than_file_p, Fset_visited_file_modtime) (Ffile_system_info): * src/filelock.c (unlock_file, Ffile_locked_p): * src/lread.c (Fload): Signal serious errors. * src/fileio.c (Ffile_writable_p): Remove unnecessary CHECK_STRING. (emacs_readlinkat): Now static. * src/filelock.c (current_lock_owner, lock_if_free): Return a positive errno on error, and the negative of the old old value on success. All callers changed. * src/lread.c (openp): Propagate serious errno values to caller. 2019-09-17 Jimmy Aguilar Mena Substituted deprecated WebKitGTK+ api. * src/xwidget.c : Substituted WebKitGTK+ API calls and use JavaScriptCore GLib API instead. 2019-09-17 Tino Calancha Fix an assignment to free variable warning It fixes a bug introduced by commit 'query-replace-regexp undo: Update next-replacement after undo' (30c4f35a6fc8a6507930923766c3126ac1c2063f) See https://lists.gnu.org/archive/html/emacs-devel/2019-09/msg00364.html * lisp/replace.el(perform-replace): Rename variable to next-replacement-replaced. 2019-09-17 Juanma Barranquero * src/w32fns.c (Fw32_read_registry): Doc fix 2019-09-17 Lars Ingebrigtsen Suppress some warnings about un-prefixed dynamic variables * lisp/mh-e/mh-mime.el (mh-insert-mime-security-button): Suppress warnings about un-prefixed dynamic variables. (mh-insert-mime-button): Ditto. 2019-09-17 Lars Ingebrigtsen Touch up naming of ipv6-expand * lisp/net/net-utils.el (nslookup--ipv6-expand): Rename to avoid make prefix more regular. (nslookup-host-ipv6): Rename call. 2019-09-17 W. Garrett Mitchener Updated to match more recent versions of Praat. * lisp/leim/quail/ipa-praat.el ("ipa-praat"): Update to match more recent versions of Praat (bug#36198). - \rh was used for ram's horns (a vowel) and rhoticity hook (a diacritic). Praat uses \hr for the hook, so I made that changed. - \e3v for the slightly rounded diacritic seems to have been a typo related to the use of e in the example. Changed it to \3v to match Praat. - Added examples to the table of tone diacritics - Added \^h for superscript h - Added \^H for superscript h with hook - Added \^w for superscript w (labialization) - Added \^j for superscript j (palatalization) - Added \^g for superscript symbol (velarization) - Added \^9 for superscript symbol (pharyngealization) 2019-09-17 Lars Ingebrigtsen Update doc marker -- smtpmail-retries is documented 2019-09-17 Eli Zaretskii Improve font lookup on MS-Windows * src/w32font.c (struct font_callback_data): New member 'known_fonts'. (w32font_list_internal, w32font_match_internal): Set up match_data.known_fonts if the font spec includes :script that names one of the non-USB scripts. (add_font_entity_to_list): If font_matches_spec returns zero for a font, and we have some fonts in match_data->known_fonts, consider the font to be a match if it is named in known_fonts. (font_supported_scripts): Update the Unicode Subranges. In particular, map bit 74 to 'burmese', as this is the name Emacs uses, not 'myanmar'. Add a list of scripts that have no USBs defined for them. (syms_of_w32font) : New symbols. * lisp/term/w32-win.el (w32-no-usb-subranges): New defconst. (w32--filter-USB-scripts, w32-find-non-USB-fonts): New functions. (w32-non-USB-fonts): New defvar. * lisp/international/fontset.el (setup-default-fontset): Add more scripts to automatic setup by representative characters. * doc/emacs/msdos.texi (Windows Fonts): Document 'w32-find-non-USB-fonts' and 'w32-non-USB-fonts'. * etc/NEWS: Mention 'w32-find-non-USB-fonts' and 'w32-non-USB-fonts'. 2019-09-17 Paul Eggert Pacify GCC -Wmaybe-uninitialized * src/dired.c (directory_files_internal): Pacify GCC 7.4.0-1ubuntu1~18.04.1 x86-64. 2019-09-17 Paul Eggert Don’t round file-system-info counts * src/fileio.c (blocks_to_bytes): Convert the byte count to an integer, since we have bignums now. This avoids possible rounding errors for file systems containing more than 8 PiB or so. 2019-09-17 Mattias Engdegård * doc/lispref/searching.texi (Rx Constructs): Fix typo. 2019-09-16 Paul Eggert Fix some file-mode races * lisp/emacs-lisp/autoload.el (autoload-ensure-file-writeable): * lisp/files.el (after-find-file): * lisp/gnus/gnus-start.el (gnus-dribble-read-file): * lisp/htmlfontify.el (hfy-copy-and-fontify-file): * lisp/server.el (server-ensure-safe-dir): Avoid a race when getting file permissions. 2019-09-16 Paul Eggert vc-cvs-revert: fix off-by-one file mode * lisp/vc/vc-cvs.el (vc-cvs-revert): 3950 (#o7556) is wrong as it keeps other-write but disables other-execute permissions. 3949 (#o7555) was intended here. Use octal notation for clarity. 2019-09-16 Lars Ingebrigtsen Fix imenu menu when we're auto-refreshing * lisp/imenu.el (imenu--make-index-alist): Don't add a *Refresh* item if we're auto-refreshing (bug#30449). 2019-09-16 Lars Ingebrigtsen Add a new variable smtpmail-retries * doc/misc/smtpmail.texi (Server workarounds): Mention it (bug#34177). * lisp/mail/smtpmail.el (smtpmail-retries): New variable. (smtpmail-via-smtp): Use it. 2019-09-16 Michał Kondraciuk (tiny change) Allow `M-u' to work when editing fields in Customize * lisp/cus-edit.el (custom-notify): Allow more editing commands to work in the Customize buffers (bug#31205). 2019-09-16 Lars Ingebrigtsen Try resending when getting a transient 4xx SMTP code * lisp/mail/smtpmail.el (smtpmail-via-smtp): Try resending when getting a transient error message (bug#34177). 2019-09-16 Paul Eggert Remove obsolete Lint directives Most of the directives were wrong anyway. Apparently traditional lint hasn’t been used to check Emacs for years. * src/callint.c (Finteractive): * src/cm.c (evalcost): * src/emacs.c (main): * src/eval.c (call1, call2, call3, call4, call5, call6, call7, call8): * src/fns.c (concat2, concat3, nconc2): * src/term.c (calculate_ins_del_char_costs): Omit ARGSUSED comments. * src/eval.c (call1): Omit VARARGS comment. 2019-09-16 Tino Calancha Add backquote tests * test/lisp/emacs-lisp/backquote-tests.el: New file (bug#37432). 2019-09-16 Paul Eggert directory-files cleanup and speed tweaking * src/dired.c (directory_files_internal): Check ‘match’ before doing anything heavyweight. Move decls closer to use. Remove obsolete comments about GC. No need to encode ‘directory’ or to call multibyte_chars_in_text. Remove no-longer-needed bug check. Skip finalname construction if file_attributes fails. 2019-09-16 Juri Linkov Try to fix macOS and Windows issues. 2019-09-16 Lars Ingebrigtsen mm-inline-large-images-proportion doc clarification * lisp/gnus/mm-view.el (mm-inline-large-images-proportion): Doc clarification. 2019-09-16 Lars Ingebrigtsen Default to rescaling images in mm buffers * doc/misc/emacs-mime.texi (Display Customization): Document it. * lisp/gnus/mm-decode.el (mm-inline-large-images): Change default to `resize'. 2019-09-16 Lars Ingebrigtsen mm-inline-large-images doc string clarification * lisp/gnus/mm-decode.el (mm-inline-large-images): Clarify doc string. 2019-09-16 Mauro Aranda With tooltip-mode disabled, don't unconditionally clear the echo area * lisp/tooltip.el (tooltip-show-help-non-mode): Only clear the echo area when the current message displayed is a tooltip message (Bug#3192). 2019-09-16 Lars Ingebrigtsen Minor fix for previous maintaining.texi change * doc/emacs/maintaining.texi (VC Directory Commands): Use @file for files. 2019-09-16 Lars Ingebrigtsen Document vc-dir-ignore * doc/emacs/maintaining.texi (VC Directory Commands): Document vc-dir-ignore. 2019-09-16 Eli Zaretskii Improve error reporting in file_accessible_directory_p * src/w32.c (w32_accessible_directory_p): Set errno, so that file_accessible_directory_p does on MS-Windows, to live up to its callers' expectations. 2019-09-16 Eli Zaretskii Fix initialization of shared-game-score-directory on MS-Windows * src/callproc.c (init_callproc) [WINDOWSNT]: Run PATH_GAME through w32_relocate, to expand %emacs_dir%. [DOS_NT]: Accept EACCES as not "unusual" errno value. Reported by Richard Copley . 2019-09-16 Lars Ingebrigtsen Remove NEWS entry that talks about a change that was reverted (bug#37257) 2019-09-16 Robert Pluim Add bindings for ligature oe to iso-transl-char-map * lisp/international/iso-transl.el (iso-transl-char-map): Add bindings for small and capital ligature oe. (Bug#23420) 2019-09-15 Paul Eggert Fix some file-name-case-insensitive glitches * src/fileio.c (file_name_directory): New static function, broken out of Ffile_name_directory. (file_name_case_insensitive_err, Ffile_writable_p, Fdo_auto_save): Use it. (file_name_case_insensitive_err): Rename from file_name_case_insensitive_p. Accept an unencoded Lisp_Object rather than an encoded char *, so that platforms other than Cygwin and macOS need not encode the file name. Return an int -1, 0, errno rather than a bool (setting errno if false), so that the caller can distinguish an error from false. All callers changed. (Ffile_name_case_insensitive_p): Don’t issue system calls on platforms other than Cygwin and macOS. Fix bug that broke the attempt to move up the filesystem tree (it moved up only one level). 2019-09-15 Paul Eggert Fix unknown-vs-nonexistent glitch for file timestamps * src/fileio.c (time_error_value): EACCES means the file timestamp is unknown, not that the file does not exist. 2019-09-15 Paul Eggert Improve directory-access diagnostics * src/callproc.c (init_callproc): Diagnose I/O errors, access errors, etc. for the game directory. * src/charset.c (init_charset): Improve quality of diagnostic when the charsets directory has I/O errors, access errors, etc. 2019-09-15 Glenn Morris Merge from origin/emacs-26 30c4f35 (origin/emacs-26) query-replace-regexp undo: Update next-repl... c596be0 Amend the menu caption for page "Display Property" in the Eli... 13b9510 Add description of chinese-sisheng 2019-09-15 Glenn Morris Merge from origin/emacs-26 8e420c0 Clarify the use of left/right-margin-width in determining cur... 2019-09-15 Glenn Morris * admin/upload-manuals: Move a basic check earlier. 2019-09-15 Juri Linkov Use images for new/close buttons in tab-bar and tab-line. * etc/images/tabs/new.xpm: * etc/images/tabs/close.xpm: New files. * lisp/tab-bar.el (tab-bar-separator): New face. (tab-bar-separator, tab-bar-button-new, tab-bar-button-close): Use display property with images in default values. * lisp/tab-line.el (tab-line-button-new, tab-line-button-close): Use display property with images in default values. * src/xdisp.c (tab_bar_item_info): Add new arg close_p and set it to the value of property `close' at charpos. (get_tab_bar_item): Add new arg close_p. (handle_tab_bar_click): Add ctrl_modifier when close_p is non-nil. (Fdump_tab_bar_row): Fix crash for non-X builds. 2019-09-15 Juri Linkov Fix assertion violations due to non-ASCII text in tabs * src/xdisp.c (tab_bar_height, redisplay_tab_bar) (display_tab_bar): If the Lisp string to be displayed in the tab-bar window is multibyte, tell the display engine to treat it as multibyte, instead of relying on the initial determination by init_iterator (which is based on the multibyteness of the current buffer). (Bug#37385) 2019-09-15 Juanma Barranquero * lisp/subr.el (major-mode-suspend): Doc fix 2019-09-15 Michael Albinus Use also truname of temporary-file-directory in shadowfile-tests.el * test/lisp/shadowfile-tests.el (top): Use truename of `temporary-file-directory' and `shadow-test-remote-temporary-file-directory'. (Bug#37202) (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): Do not bind `shadow-test-remote-temporary-file-directory'. 2019-09-15 Mauro Aranda Make widget-browse-at always detect an editable-field * lisp/wid-browse.el (widget-browse-at): Also look for the real-field property when detecting a field (bug#37199). 2019-09-15 Wolfgang Scherer Do not use error messages as list of ignored files in vc-svn * lisp/vc/vc-svn.el: (vc-svn-ignore-completion-table) Ignore buffer contents, if exit status is not 0. Split buffer by lines (bug#37214). 2019-09-15 Wolfgang Scherer Fix vc-default-ignore * lisp/vc/vc.el: (vc-default-ignore) Treat FILE parameter as relative to DIRECTORY parameter. Construct a file-path relative to directory of ignore file. When removing, use properly anchored regexp. Remove entire line, not just the match (bug#37217). 2019-09-15 Wolfgang Scherer Provide facility to ignore all marked files in vc * lisp/vc/vc-dir.el: (vc-dir-ignore) With prefix argument, ignore all marked files (bug#37240). 2019-09-15 Lars Ingebrigtsen Revert "emacsclient: ignore --eval parameters when starting alternate editor" This reverts commit 6fe661342a24edcaea255c3ba9a37613031554da. The alternate editor may be Emacs, which is useful when you want to eval something in an existing Emacs (if it exists), or in a new Emacs if there's no server running. 2019-09-14 Paul Eggert file_name_case_insensitive_p int->long fix * src/fileio.c (file_name_case_insensitive_p): Don’t assume ‘long int’ fits in ‘int’. 2019-09-14 Paul Eggert Fix gc-elapsed rounding bug * src/alloc.c (garbage_collect): Don’t accumulate rounding errors when computing gc-elapsed. 2019-09-14 Paul Eggert Improve doc of GC thresholds * doc/lispref/internals.texi (Garbage Collection), etc/NEWS: Warn that control over GC is only approximate. 2019-09-14 Bruno Félix Rezende Ribeiro (tiny change) Fix picon installation instructions in the Gnus manual * doc/misc/gnus.texi (Picons): Fix instructions for installing picons on Debian (bug#37247). 2019-09-14 Basil L. Contovounesios Fix fileless eww form submission * lisp/net/eww.el (eww-submit): Ignore file inputs with no associated file name (bug#36520). 2019-09-14 Lars Ingebrigtsen Add default foreground colours to SVG images * lisp/net/shr.el (svg--wrap-svg): Add a default foreground colour to SVG images (bug#37159). This helps with images like the ones in https://en.wikipedia.org/wiki/Banach_fixed-point_theorem that specify no foreground or background colours. (shr-parse-image-data): Use it. 2019-09-14 Lars Ingebrigtsen Make eww more liberal when interpreting some invalid HTML * lisp/net/eww.el (eww--preprocess-html): New function (bug#37009) to be more lenient with invalid HTML and translate common invalid HTML like "a <= b" into "a <= b" to be more liberal in what we accept before parsing. (eww-display-html): Use it. (eww-readable): Ditto. 2019-09-14 Eli Zaretskii * src/print.c (PRINT_CIRCLE_CANDIDATE_P): Fix a thinko. (Bug#36566) 2019-09-14 Tobias Zawada (tiny change) Add a debug declaration to widget-specify-insert * lisp/wid-edit.el (widget-specify-insert): Add a debug declaration (bug#37368). 2019-09-14 Federico Tedin Allow gamegrid-add-score to treat lower scores as better. * lisp/play/gamegrid.el (gamegrid-add-score): Add 'reverse' parameter. (gamegrid-add-score-with-update-game-score): Add 'reverse' parameter. (gamegrid-add-score-with-update-game-score-1): Add 'reverse' parameter. Pass on "-r" argument to update-game-score. (gamegrid-add-score-insecure): Add 'reverse' parameter, reverse scores when it's non-nil. (Bug#36867) * etc/NEWS: Announce the change. 2019-09-14 Paul Eggert Improve gc-cons-percentage calculation The old calculation relied on a hodgpodge of partly updated GC stats to find a number to multiply gc-cons-percentage by. The new one counts data found by the previous GC, plus half of the data allocated since then; this is more systematic albeit still ad hoc. * src/alloc.c (consing_until_gc, gc_threshold, consing_threshold): Now EMACS_INT, not intmax_t. (HI_THRESHOLD): New macro. (tally_consing): New function. (make_interval, allocate_string, allocate_string_data) (make_float, free_cons, allocate_vectorlike, Fmake_symbol): Use it. (allow_garbage_collection, inhibit_garbage_collection) (consing_threshold, garbage_collect): Use HI_THRESHOLD rather than INTMAX_MAX. (consing_threshold): New arg SINCE_GC. All callers changed. (bump_consing_until_gc): Return new consing_until_gc, instead of nil. All callers changed. Don’t worry about overflow since we now saturate at HI_THRESHOLD. Guess that half of recently-allocated objects are still alive, instead of relying on the previous (even less-accurate) hodgepodge. (maybe_garbage_collect): New function. (garbage_collect): Work even if a finalizer disables or enables memory profiling. Do not use malloc_probe if GC reclaimed nothing. * src/lisp.h (maybe_gc): Call maybe_garbage_collect instead of garbage_collect. 2019-09-13 Paul Eggert Simplify GC statistics-gathering * src/alloc.c (make_interval, allocate_string, make_float) (free_cons, Fcons, setup_on_free_list) (allocate_vector_from_block, Fmake_symbol): Do not update gcstat, since it is for statistics from the most recent GC, not for a partially-updated hodgepodge. (sweep_vectors): Update gcstat, since setup_on_free_list no longer does. (garbage_collect_1): Rename to garbage_collect and adopt its API. Remove the old garbage_collect, which is no longer needed. All callers changed. 2019-09-13 Gemini Lasswell Don't build print-number-table unless it will be used There are only a few users of print-number-table, and none of them use it when print-circle is nil. A couple of them used to. print_object was changed in 2012-04-20 "* src/print.c (print_preprocess): Only check print_depth if print-circle is nil". byte-compile-output-docform which uses print-number-table binds print-circle to t before printing unless byte-compile-disable-print-circle is set, but that variable has been marked obsolete since 24.1. * src/print.c (print_preprocess): Assert Vprint_circle is non-nil. Remove code handling the case when Vprint_circle is nil. (print, Fprint_preprocess): Don't call print_preprocess unless Vprint_circle is non-nil. (print_object): Remove comment referencing removed code in print_preprocess. 2019-09-13 Gemini Lasswell Create common tests for print.c and cl-print.el * test/lisp/emacs-lisp/cl-print-tests.el (cl-print--test, cl-print-tests-1, cl-print-tests-2) (cl-print-tests-3, cl-print-tests-4, cl-print-tests-5) (cl-print-tests-strings, cl-print-circle, cl-print-circle-2): Remove. * test/src/print-tests.el (print-tests--prin1-to-string): New alias. (print-tests--deftest): New macro. (print-hex-backslash, print-read-roundtrip, print-bignum): Define with print-tests--deftest and use print-tests--prin1-to-string. (print-tests--prints-with-charset-p): Use print-tests--prin1-to-string. (print-tests--print-charset-text-property-nil) (print-tests--print-charset-text-property-t) (print-tests--print-charset-text-property-default): Define with print-tests--deftest. (print-tests-print-gensym) (print-tests-continuous-numbering, print-tests-1, print-tests-2) (print-tests-3, print-tests-4, print-tests-5) (print-tests-strings, print-circle, print-circle-2): New tests. (print--test, print-tests-struct): New cl-defstructs. 2019-09-13 Gemini Lasswell Fix unnecessary hash table creation in cl-prin1 (bug#36566) cl-prin1 prints all its punctuation by passing strings to prin1. When print-circle was set, print_preprocess was creating a new hash table for each string, causing excessive garbage collection when printing large Lisp objects with cl-prin1. * src/print.c (print_number_index): Fix typo in comment above. (PRINT_CIRCLE_CANDIDATE_P): Don't create print_number_table for top-level strings with no properties, except when print_continuous_numbering is on. 2019-09-13 Gemini Lasswell Improve performance of backtrace printing (bug#36566) * lisp/emacs-lisp/cl-print.el (cl-print-to-string-with-limit): Reduce print-level and print-length more quickly when the structure being printed is very large. 2019-09-13 Gemini Lasswell Improve print output options commands in backtrace-mode (bug#36566) * lisp/emacs-lisp/backtrace.el (backtrace-view): Mention :print-gensym in docstring. (backtrace-mode-map): Add keyboard binding for backtrace-toggle-print-gensym. Add menu entries for backtrace-toggle-print-circle and backtrace-toggle-print-gensym. (backtrace--with-output-variables): Bind print-gensym with value of :print-gensym found in view plist. (backtrace-toggle-print-circle): Remove description of implementation details from docstring. (backtrace-toggle-print-gensym): New command. (backtrace--toggle-feature): Add echo area message describing result of command. * test/lisp/emacs-lisp/backtrace-tests.el (backtrace-tests--print-circle): New test. * doc/lispref/debugging.texi (Backtraces): Document keyboard binding for backtrace-toggle-print-gensym. 2019-09-13 Stefan Kangas * lisp/help-mode.el (help-mode-menu): Fix typo. (Bug#36485) * doc/misc/efaq.texi: Update ancient formats. (Bug#37143) 2019-09-13 Stefan Kangas Remove leftover XEmacs compat code and doc fixes * lisp/mail/feedmail.el (top-level): Remove outdated comment. (feedmail-run-the-queue): Remove leftover XEmacs compat code. (feedmail-nuke-bcc): Doc fix. * lisp/emulation/viper.el (top-level, viper-mode) * lisp/net/rfc2104.el (top-level): Doc fix. * lisp/textmodes/table.el (top-level): Remove obsolete todo. 2019-09-13 Stefan Kangas Change gui--selection-value-internal comment into doc string * lisp/select.el (gui--selection-value-internal): Change comment into doc string. (Bug#25528) 2019-09-13 Michael Albinus Fix problems in tramp-test33-environment-variables * test/lisp/net/tramp-tests.el (tramp-test33-environment-variables): Use ${parameter:-word} construct. Remove PS1 entry from "printenv" output. (tramp--test-check-files): Use "printenv". 2019-09-13 Michael Albinus Make recent Tramp patch work for tramp-archive.el * lisp/net/tramp.el (tramp-connectable-p): Make it work also for tramp-archive.el. 2019-09-13 Eli Zaretskii Fix assertion violations due to non-ASCII text in menus * src/xdisp.c (tool_bar_height, redisplay_tool_bar) (display_menu_bar): If the Lisp string to be displayed in the menu-bar or tool-bar window is multibyte, tell the display engine to treat it as multibyte, instead of relying on the initial determination by init_iterator (which is based on the multibyteness of the current buffer). (Bug#37385) 2019-09-12 Jack Coughlin (tiny change) Fix saving user-defined calc commands with compositions (Bug#36720) * lisp/calc/calc-prog.el (calc-user-define-permanent): Correctly save the composition when the user specifies their formula by its command name or key. 2019-09-12 Noam Postavsky Fix fill-paragraph in python docstrings (Bug#36056) * lisp/progmodes/python.el (python-do-auto-fill): New function. (python-mode): Set it as normal-auto-fill-function, and don't set fill-indent-according-to-mode. Having the latter set during fill-paragraph gives wrongs result, because python-indent-line doesn't remove indentation added by filling. * test/lisp/progmodes/python-tests.el (python-fill-docstring): New test. 2019-09-12 Stefan Monnier * lisp/progmodes/sh-script.el (sh--assignment-collect): Only after `=`! 2019-09-12 Stefan Monnier * lisp/progmodes/sh-script.el (sh-mode-map): Don't bind `=` (sh-shell-initialize-variables): Use sh--assignment-collect on post-self-insert-hook instead. (sh--assignment-collect): New function, extracted from sh-assignment. (sh-assignment): Use it and mark as obsolete. 2019-09-12 Karl Fogel Add `isearch-yank-until-char' * lisp/isearch.el (isearch-yank-until-char): New function. (isearch-mode-map, isearch-menu-bar-yank-map): Add it. (isearch-forward): Document the new binding. * doc/emacs/search.texi (Isearch Yanking): Document the feature. * etc/NEWS: Mention the above. 2019-09-12 Michael Albinus Optimize host name completion in Tramp * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection): * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection): * lisp/net/tramp-sh.el (tramp-maybe-open-connection): * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection): Throw `non-essential' at the beginning of the function. * lisp/net/tramp.el (tramp-handle-file-exists-p): * lisp/net/tramp-sh.el (tramp-sh-handle-file-exists-p): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-exists-p): Run only when host is connectable. This is due to host name completion, which shall be optimized. * lisp/net/tramp-smb.el (tramp-smb-do-file-attributes-with-stat) (tramp-smb-get-file-entries): Access connection buffer only after sending the command. * lisp/net/tramp.el (tramp-get-buffer, tramp-get-connection-buffer): New argument DONT-CREATE. (tramp-message): Use it. (tramp-get-mutex): Check, whether host is connectable. (tramp-file-name-handler): Set thread only when host is connectable. (tramp-connectable-p): Allow also VEC as argument. (tramp-completion-handle-file-name-completion): Do not expand directory. 2019-09-12 Stefan Monnier * src/profiler.c: Leave `key` hashslots as Qunbound (bug#37382) Now that "key == Qunbound" is used to determine if a hash table entry is available, we can't stash pre-allocated vectors into the `key` slot anymore, so use the `value` slot instead. (make_log): Pre-fill the `value` slots i.s.o `key`. (evict_lower_half): Stash key back into `value`, i.s.o `key`. (record_backtrace): Get pre-allocated vector for `value` i.s.o `key`. 2019-09-12 Paul Eggert Fix file name encoding when open_directory signals * src/dired.c (open_directory): New arg ENCODED_DIRNAME. All callers changed. Signal error with original name, not encoded name. 2019-09-11 Paul Eggert Improve error reporting for DOC file problems * src/doc.c (get_doc_string): Report all serious errors when DOC cannot be opened, not just fd-exhaustion errors. 2019-09-11 Paul Eggert Fix directory-files-and-attributes race * src/dired.c (directory_files_internal): Fix race condition: when some other process removed a file between the readdir and the ensuing lstat, directory-files-and-attributes would return a list containing nil. 2019-09-11 Paul Eggert Omit duplicate test of current directory * src/callproc.c (encode_current_directory): Remove redundant call to Ffile_accessible_directory_p. The code checks the encoded name with file_accessible_directory_p anyway. 2019-09-11 Paul Eggert Improve checking of pdump load failures * src/alloc.c (memory_full): Just report "memory exhausted" if failure occurs during initialization, since fancier recovery schemes are not likely to work when not initialized. * src/emacs.c (dump_error_to_string): Accept int, not enum pdumper_load_result, since the result might not fit in the enum. Use strerror if it was derived from errno. This is for better diagnostics of pdump load failures. (load_pdump_find_executable): Return char *, not enum. 2nd arg is now pointer to buffer size, rather than pointer to pointer to buffer. All callers changed. Use Emacs allocator since they should now be OK even during early startup. Use check_executable instead access, to use effective rather than real permissions. (load_pdump): Return void since callers ignore result. Use int where enum could be too narrow. Use heap rather than stack for possibly-long string. Prefer ptrdiff_t to size_t. * src/fileio.c (check_executable): Now extern. * src/pdumper.c (pdumper_load): Return int that may have errno added to it, for better diagnostics when loads fail. 2019-09-11 Paul Eggert Reset dbus registered buses on dump load Problem reported by Leonard Lausen (Bug#37331). * src/dbusbind.c: Include pdumper.h. (syms_of_dbusbind_for_pdumper): New function, to reset the registered buses. (syms_of_dbusbind): Use it, fixing a TODO. 2019-09-11 Paul Eggert Fix auto-save with user-emacs-directory * lisp/startup.el (auto-save-list-file-prefix): Delay initialization, since the value depends on user-emacs-directory (Bug#37354). 2019-09-11 Mattias Engdegård * lisp/emacs-lisp/elint.el (elint-directory-skip-re): Fix doc typo. 2019-09-10 Katsumi Yamaoka Create a new overlay used to mark Attachment header (bug#37370) * lisp/gnus/gnus-art.el (gnus-mime-inline-part) (gnus-mm-display-part, gnus-mime-buttonize-attachments-in-header): Create a new overlay used to mark Attachment header instead of using existing overlays. 2019-09-10 Stephen Leake Merge commit '74e9799bd89484b8d15bdd6597c68fc00d07e7f7' 2019-09-10 Stephen Leake Support `cl-defstruct' in autoloads * lisp/emacs-lisp/autoload.el (make-autoload): Add `cl-defstruct' to "complex cases" list. * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Add :autoload-end to limit what is declared in autoloads.el for a defstruct. 2019-09-09 Ulf Jasper Handle missing start-time when importing ical event (Bug#33277) * lisp/calendar/icalendar.el (icalendar--convert-ical-to-diary): Set start time only if it is explicitly given in ical. Do not use start-time as default for end-time (Bug#33277). * test/lisp/calendar/icalendar-tests.el (icalendar-import-bug-33277): New. Test fix for Bug#33277. 2019-09-08 Tino Calancha query-replace-regexp undo: Update next-replacement after undo * lisp/replace.el (perform-replace): Rename the local binding to not shadow next-replacement. Update next-replacement after undo (Bug#37287). * test/lisp/replace-tests.el (query-replace-undo-bug37287): Add test. (query-replace-undo-bug37073): Tweak this test. 2019-09-08 Stefan Kangas Match Python 3 code object names in "M-x pdb" * lisp/progmodes/gud.el (gud-pdb-marker-regexp): Match Python 3 code object names. (Bug#11679) 2019-09-08 Stefan Kangas Remove final XEmacs compat code from dframe.el * lisp/dframe.el (top-level): Doc fix. (dframe-frame-parameter): Redefine as an obsolete function alias for 'frame-parameter'. 2019-09-08 Stefan Monnier * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Define setter functions. When :noinline is specified one can't rely on setf expanding the inlinable function to construct the setter. Fixes bug#37283. 2019-09-08 Stefan Kangas Remove support for upgrading from old bookmark file format * lisp/bookmark.el (bookmark-alist-from-buffer): Remove support for old bookmark file format. (Bug#37122) (bookmark-upgrade-version-0-alist) (bookmark-upgrade-file-format-from-0) (bookmark-grok-file-format-version) (bookmark-maybe-upgrade-file-format): Declare obsolete. (bookmark-load): Don't call 'bookmark-maybe-upgrade-file-format'. * etc/NEWS: Announce it. 2019-09-08 Juri Linkov * lisp/tmm.el: Fix broken tmm-prompt (bug#34517) * lisp/tmm.el (tmm-prompt): Don't duplicate items of tmm--history. Don't reverse tmm-km-list for completion. Don't set the initial position of 'tmm--history. Use reverse tmm--history as the list of default values for M-n. (tmm-add-prompt): Don't insert initial value to the minibuffer. 2019-09-08 Juri Linkov Small fixes for tty and w32. * lisp/menu-bar.el (showhide-tab-bar): Visible on tty too. * lisp/tab-bar.el (tab-bar-mode): Add binding [(control shift tab)] for w32. * lisp/tab-line.el (tab-line-add-tab): Use tmm-prompt for buffer-menu on tty. * src/w32term.c (w32_read_socket): Fix tool-bar clicks. 2019-09-08 Alan Mackenzie Fix untidinesses in compile.el. * lisp/progmodes/compile.el (compilation--margin-string): Renamed from compilation-margin-string. Use defconst rather than defvar. Use propertize rather than a separate put-text-property. Trim the doc string. 2019-09-08 Michael Albinus Fix Bug#36090 * lisp/vc/vc-hg.el (vc-hg--pushpull, vc-hg-merge-branch) (vc-hg-command): Disable pager. (Bug#36090) 2019-09-08 Michael Albinus Fix Bug#37202 * test/lisp/shadowfile-tests.el (shadow-test08-shadow-todo) (shadow-test09-shadow-copy-files): Use truename of `shadow-test-remote-temporary-file-directory'. (Bug#37202) 2019-09-07 Paul Eggert Fix bug when gc-cons-percentage is bumped to 0.8 Problem reported by Michael Heerdegen (Bug#37321). * src/alloc.c (gc_threshold): New static var. (bump_consing_until_gc): Change args from DIFF to THRESHOLD and PERCENTAGE. All uses changed. When accounting for a changed gc-cons-percentage, do not assume that total_bytes_of_live_objects returns the same value now that it did the last time we were called. 2019-09-07 Stefan Kangas Use derived-mode-p consistently in info.el * lisp/info.el (Info-hide-note-references, info-display-manual) (info--manual-names): Use derived-mode-p. (Bug#27583) 2019-09-07 Noam Postavsky Let byte-compiler recognize that local-variable-p implies boundp * lisp/emacs-lisp/bytecomp.el (byte-compile-maybe-guarded): Add arguments to local-variable-p to the bound list. * lisp/image-mode.el (image-toggle-display-image): Remove no longer needed boundp check. 2019-09-07 Joel Rosdahl Fix flymake-proc temporary file deletion bug * lisp/progmodes/flymake-proc.el (flymake-proc-create-temp-inplace): Include a time string part (hour + minute + second + nanosecond) in the temporary name to make it unique enough. (flymake-proc-legacy-flymake): Store temporary file names in the process for usage in the sentinel. (flymake-proc--process-sentinel): Bind values of temporary file names dynamically to values stored in the process so that the cleanup function will delete the correct temporary file(s). Fixes bug#31981. 2019-09-07 Juri Linkov * lisp/tab-bar.el (tab-bar-make-keymap-1): Don't use fixed "Current tab". * lisp/tab-bar.el (tab-bar-make-keymap-1): * lisp/tab-line.el (tab-line-tab-name-add): Add space after Unicode char to avoid char clobbering on terminals. 2019-09-07 Alan Mackenzie Amend the menu caption for page "Display Property" in the Elisp manual. * doc/lispref/display.texi (Emacs Display): Replace a content-free menu caption with one mentioning images, margins and text size. 2019-09-07 Eli Zaretskii Support visiting compressed image files * lisp/image-mode.el (image-toggle-display-image): Support visiting compressed image files which are uncompressed by jka-compr.el. (Bug#37330) 2019-09-07 Michael Albinus Add traces in shadowfile * lisp/shadowfile.el (shadow-add-to-todo) (shadow-remove-from-todo, shadow-save-todo-file): * test/lisp/shadowfile-tests.el (shadow-test08-shadow-todo): Add traces. 2019-09-07 Evgeny Zajcev Fix input method operation on read-only text * lisp/international/quail.el (quail-input-method): Check also read-only property of text in addition to the buffer's read-only state. 2019-09-07 Eli Zaretskii Allow client connections when in recursive-edit * lisp/server.el (server-goto-toplevel): Check minibuffer depth, not recursion depth. This avoids exiting recursive-edit if a client connection is accepted during recursive-edit. (Bug#37176) 2019-09-07 Eli Zaretskii Set inhibit-compacting-font-caches to t by default on MS-Windows * src/font.c (syms_of_font) [WINDOWSNT]: Set inhibit-compacting-font-caches to t by default. * etc/NEWS: Mention the change. 2019-09-07 Eli Zaretskii Allow Zs characters to be composed * src/composite.c (char_composable_p): Allow SPC and other Zs characters to be composed. * lisp/composite.el (compose-gstring-for-graphic): Don't reject characters whose general category is Zs. (Bug#14461) 2019-09-07 Eli Zaretskii Revert "file-truename now uses realpath for local files" This reverts commit a59839d7556ef85058e09b005f0ff32e59b20ec3. This commit broke the MS-Windows build (because there's no realpath on MS-Windows). Even if I change the implementation to always signal an error on MS-Windows, the build fails. 2019-09-06 Paul Eggert file-truename now uses realpath for local files This uses fewer syscalls on GNU/Linux and other GNUish platforms. * lisp/files.el (file-truename): Try fileio--truename if there are no handlers. * src/fileio.c: Include stdlib.h, for realpath. (Ffileio__truename): New function. 2019-09-06 Mauro Aranda Improve file name completion in file and directory widgets (Bug#7779) * lisp/wid-edit.el (widget 'file, widget 'directory): Respect the option read-file-name-completion-ignore-case. (widget 'directory): Filter the file names, to only perform directory name completion. 2019-09-05 Amin Bandali Fix erc-lurker-update-status (bug#36843) Broken since 2013-08-22 "* lisp/erc/erc.el: Use lexical-binding". * lisp/erc/erc.el (erc-message-parsed): New variable. (erc-display-message): Dynamically bind it. (erc-lurker-update-status): Check it instead of using `parsed' directly. This results in `erc-lurker-state' being properly updated to keep track of non-lurkers, and thus `erc-lurker-p' returning correct results rather than return t for everyone. 2019-09-05 Paul Eggert Fix bugs when recalculating consing_until_gc Problem reported by Joseph Mingrone (Bug#37006#72). * src/alloc.c (watch_gc_cons_threshold) (watch_gc_cons_percentage): Don’t try to store an intmax_t into an int. Redo to make the code clearer. (watch_gc_cons_percentage): Use gc_cons_threshold, not consing_until_gc. 2019-09-05 Juri Linkov Don't use hook pre-redisplay-functions. Set buffer-local tab-line-format. * lisp/tab-line.el (tab-line-format): Move to C. (tab-line-update-window-parameter): Remove function. (global-tab-line-mode): Set the default value of tab-line-format. * src/buffer.c (syms_of_buffer): Define buffer-local variable tab-line-format. * src/buffer.h (struct buffer): Add tab_line_format_. * src/window.c (window_wants_tab_line): * src/xdisp.c (pos_visible_p, display_mode_lines): Check for buffer-local tab_line_format. 2019-09-05 Paul Eggert Port :safe-renegotiation test to GnuTLS < 3.6.3 Problem reported by Robert Pluim in https://lists.gnu.org/r/emacs-devel/2019-09/msg00127.html * src/gnutls.c (Fgnutls_peer_status): Simplify test for whether the :safe-renegotiation result is needed, so that it works all the way back to GnuTLS 2.12.2. 2019-09-05 Lars Ingebrigtsen Further fix for network-security-protocol-checks * lisp/net/nsm.el (network-security-protocol-checks): Fix the defcustom type some more (bug#37306). 2019-09-05 Lars Ingebrigtsen Fix defcustom type of network-security-protocol-checks * lisp/net/nsm.el (network-security-protocol-checks): Fix the defcustom type (bug#37306). 2019-09-04 Paul Eggert Use plain ‘static’ for Emacs C inline functions This improved performance of ‘make compile-always’ by 8.2% on my platform (AMD Phenom II X4 910e, Fedora 30 x86-64). * src/conf_post.h (INLINE, EXTERN_INLINE, INLINE_HEADER_BEGIN) (INLINE_HEADER_END) [!EMACS_EXTERN_INLINE]: Use plain ‘static’. 2019-09-04 Paul Eggert Tweak xd_append_arg to pacify -Wnull-dereference * src/dbusbind.c (xd_append_arg): Redo to pacify gcc -Wnull-dereference. Also, check that the Lisp string won’t overrun the C signature buffer. 2019-09-04 Robert Pluim Don't check for :safe-renegotiation with TLS1.3 * lisp/net/nsm.el (nsm-protocol-check--renegotiation-info-ext): Don't check when using TLS1.3, renegotiation has been removed from TLS. Reported in 2019-09-04 Paul Eggert Don’t mention :safe-renegotiation in TLS 1.3 * src/gnutls.c (Fgnutls_peer_status): Don’t put the safe-renegotiation indication into the status in TLS 1.3, which removed support for renegotiation. 2019-09-04 Robert Pluim Fix nsm for unencrypted connections When connecting using a cleartext connection, nsm was erroring out and tearing down the connection because it was trying to display nonexistent certificate information. * lisp/net/nsm.el (nsm-query-user): Only format certificate status when it is valid. (Bug#37221) 2019-09-04 Juri Linkov Text-based nox builds compiled without X window support 2019-09-04 Paul Eggert Port pdumper mmap to AIX * src/pdumper.c (needs_mmap_retry_p) [_AIX]: Return true. Problem observed on AIX 7.1 and 7.2 in GCC compile farm. 2019-09-04 Paul Eggert Port to platforms with Xrender lib but not header * configure.ac (HAVE_XRENDER): Also require ‘#include ’ to work. Problem found on gcc119 in GCC compile farm. 2019-09-04 Mattias Engdegård Correct arguments to `skip-syntax-forward' * lisp/wid-edit.el (widget-sexp-validate): Fix bad calls to `skip-syntax-forward', whose argument is not a regexp. 2019-09-04 Lars Ingebrigtsen Make the NSM not pop up an X dialogue on non-mouse actions * lisp/emacs-lisp/rmc.el (read-multiple-choice): Don't pop up X dialogues on (url-retrieve "https://expired.badssl.com/" #'ignore) and the like. 2019-09-04 Lars Ingebrigtsen Preserve more markers when reverting .gpg files * lisp/epa-file.el (epa-file--replace-text): Gingerly replace the text in the buffer to preserve as many markers as possible (bug#34720). This emulates the behaviour of Finsert_file_contents more accurately. (epa-file-decode-and-insert): Remove compat code. (epa-file-insert-file-contents): Use the new function. * lisp/emacs-lisp/cl-lib.el (cl-incf): Add autoload cookie. 2019-09-04 Mattias Engdegård Repair change to compilation-context-lines (bug#36832) * lisp/progmodes/compile.el (compilation-set-window): Restore proper behaviour when compilation-context-lines is nil, which is the default. 2019-09-04 Michael Albinus Further work on Bug#37202 * test/lisp/shadowfile-tests.el (shadow-debug): Set to t. (shadow--tests-cleanup): Simplify. (shadow-test*): Call `shadow-initialize'. (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): In cleanup, kill buffers used for test. (top): Do not initialize. 2019-09-04 Robert Pluim Add description of chinese-sisheng * doc/emacs/mule.texi (Input Methods): Add description of chinese-sisheng method for entering characters using pīnyīn. 2019-09-04 Michael Albinus * lisp/net/tramp.el (tramp-process-sentinel): Use `process-buffer'. 2019-09-03 Paul Eggert * src/systime.h (hz): #undef to work around AIX build issue. 2019-09-03 Paul Eggert Prefer functions to macros in buffer.h In buffer.h, prefer inline functions to function-like macros when either will do. This helps avoid confusion about how many times an arg is evaluated. On my platform, this patch improves performance of ‘make compile-always’ by 5.7%. Also, prefer enum constants to object-like macros when either will do. * src/buffer.h (BEG, BEG_BYTE, GAP_BYTES_DFL, GAP_BYTES_MIN) (MAX_PER_BUFFER_VARS, NONEXISTENT_MODTIME_NSECS) (UNKNOWN_MODTIME_NSECS, BUFFER_LISP_SIZE, BUFFER_REST_SIZE): Now enum constants, instead of macros. (BUFFER_CEILING_OF, BUFFER_FLOOR_OF, BUF_BEG, BUF_BEG_BYTE) (BUF_BEGV, BUF_BEGV_BYTE, BUF_PT, BUF_PT_BYTE, BUF_ZV) (BUF_ZV_BYTE, BUF_GPT_ADDR, BUF_Z_ADDR, BUF_GAP_END_ADDR) (BUF_COMPUTE_UNCHANGED, SET_PT, TEMP_SET_PT, SET_PT_BOTH) (TEMP_SET_PT_BOTH, BUF_TEMP_SET_PT, SET_BUF_BEGV, SET_BUF_ZV) (SET_BUF_BEGV_BOTH, SET_BUF_ZV_BOTH, SET_BUF_PT_BOTH) (BYTE_POS_ADDR, CHAR_POS_ADDR, CHAR_TO_BYTE, BYTE_TO_CHAR) (PTR_BYTE_POS, FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE) (BUF_BYTE_ADDRESS, BUF_CHAR_ADDRESS, BUF_PTR_BYTE_POS) (BUF_FETCH_CHAR, BUF_FETCH_CHAR_AS_MULTIBYTE, BUF_FETCH_BYTE) (BUFFER_PVEC_INIT, BUFFER_LIVE_P, BUFFER_HIDDEN_P) (BUFFER_CHECK_INDIRECTION, OVERLAY_POSITION, PER_BUFFER_VALUE_P) (SET_PER_BUFFER_VALUE_P, PER_BUFFER_IDX): Now inline functions instead of macros. 2019-09-03 Paul Eggert * src/xdisp.c (hscroll_window_tree): Fix type typo. 2019-09-03 Paul Eggert Take last_per_buffer_idx private This will simplify future changes. Turn the runtime check into an eassert, since it’s not needed in production. * src/buffer.c (last_per_buffer_idx): Now static. (valid_per_buffer_idx): New function. * src/buffer.h (PER_BUFFER_VALUE_P, SET_PER_BUFFER_VALUE_P): Use it. 2019-09-03 Paul Eggert Avoid macros in pdumper.c when it’s easy Problem with DUMP_SET_REFERRER mentioned by Pip Cet at end of: https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00548.html * src/pdumper.c (DANGEROUS, EMACS_RELOC_TYPE_BITS) (EMACS_RELOC_LENGTH_BITS, DUMP_RELOC_TYPE_BITS) (DUMP_RELOC_ALIGNMENT_BITS, DUMP_RELOC_OFFSET_BITS) (DUMP_RELOCATION_ALIGNMENT, DUMP_ALIGNMENT) (WEIGHT_NONE, WEIGHT_NORMAL, WEIGHT_STRONG) (PDUMPER_MAX_OBJECT_SIZE): Now a constant, not a macro. (divide_round_up): Now a function, not a macro DIVIDE_ROUND_UP. All uses changed. (enum link_weight_enum, WEIGHT_NONE_VALUE) (WEIGHT_NORMAL_VALUE, WEIGHT_STRONG_VALUE): Remove. (struct link_weight): Just use an int. (dump_set_referrer): New function, replacing DUMP_SET_REFERRER macro with a different API. All uses changed. (dump_clear_referrer): Rename from DUMP_CLEAR_REFERRER. All uses changed. (DEFINE_FROMLISP_FUNC, DEFINE_TOLISP_FUNC): Remove. (intmax_t_from_lisp, intmax_t_to_lisp, dump_off_from_lisp) (dump_off_to_lisp): Define without using macros, (dump_off_from_lisp): Add an eassert range check. (DUMP_FIELD_COPY): Simplify. 2019-09-03 Paul Eggert Avoid casting -1 to possibly-unsigned enum * src/alloc.c (mark_maybe_pointer): * src/pdumper.h (pdumper_object_p_precise): Use pdumper_valid_object_type_p. * src/pdumper.c (pdumper_find_object_type_impl): * src/pdumper.h (pdumper_find_object_type): Return int, not enum Lisp_Type. All callers changed. * src/pdumper.h (PDUMPER_NO_OBJECT): Do not cast -1 to enum Lisp_Type; in theory, C18 says this could yield 7, which would mean PDUMPER_NO_OBJECT == Lisp_Float (!). (pdumper_valid_object_type_p): New function. 2019-09-03 Juri Linkov Small fix for text-mode display * lisp/tab-line.el (tab-line-tab-name): Try to use truncate-string-to-width. Try to fix compilation errors on macOS 2019-09-03 Daniel Colascione Run tramp cleanup in correct buffer Fixes bug #37297. * lisp/net/tramp.el (tramp-process-sentinel): Do process-end cleanup in the tramp buffer, not a random file buffer. 2019-09-03 Paul Eggert Sync consing_until_gc with gc-cons-threshold Add watchers for gc-cons-threshold and gc-cons-percentage that update consing_until_gc accordingly. Suggested by Eli Zaretskii (Bug#37006#52). * src/alloc.c (consing_threshold, bump_consing_until_gc) (watch_gc_cons_threshold, watch_gc_cons_percentage): New functions. (garbage_collect_1): Use consing_threshold. (syms_of_alloc): Arrange to watch gc-cons-threshold and gc-cons-percentage. 2019-09-03 Juri Linkov Text-mode display of the tab-bar and emulation of clicking on a tty. * lisp/tab-bar.el (tab-bar-mouse): New command bound to mouse-1 on [tab-bar]. * lisp/xt-mouse.el (xterm-mouse-event): Use `tab-bar' when clicking on the tab-bar that is on the second row below menu-bar. * src/frame.c (set_tab_bar_lines): New function. (frame_windows_min_size): Add FRAME_TAB_BAR_LINES. (make_initial_frame): Call set_tab_bar_lines. (store_frame_param): Call set_tab_bar_lines for Qtab_bar_lines prop. (Fframe_parameters): Call store_in_alist for Qtab_bar_lines. * src/xdisp.c (display_tab_bar): New function. (redisplay_window): Call display_tab_bar when `FRAME_WINDOW_P (f)' is NULL on a tty. 2019-09-03 Alan Mackenzie Use left margin to hold "=>" to indicate current error in fringeless windows This applies to compilation-mode. It amends the fix for bug #36832. * lisp/progmodes/compile.el (compilation-arrow-overlay): renamed from overlay-arrow-overlay. (compilation-margin-string, compilation--dummy-string): New variables. (compilation-set-up-arrow-spec-in-margin) (compilation-tear-down-arrow-spec-in-margin): New functions. (compilation-set-overlay-arrow): Rewritten to use the new variables/functions. 2019-09-03 Michael Albinus Fix Bug#37202 * lisp/shadowfile.el (shadow-debug): New defvar. (shadow-read-files): Suppress error if there's no TODO file. * test/lisp/shadowfile-tests.el (shadow-debug): Set to nil. (shadow--tests-cleanup): New defun. Apply to all tests. (Bug#37202) (shadow-test06-literal-groups): Cleanup temp buffer. (shadow-test08-shadow-todo): Add debug messages. (top): Cleanup initially. 2019-09-02 Juri Linkov * lisp/tab-line.el: Limit the number of window tabs to tab-line-tabs-limit. * lisp/tab-line.el: Display truncated tab name in the tooltip. 2019-09-02 Paul Eggert Update from Gnulib This incorporates: 2019-08-25 intprops.h, verify.h: port better to clang 2019-08-21 New strip-trailing-space option for srclist-update * .gitattributes: Remove doc/misc/texinfo.tex special case, which is no longer needed now that Gnulib trims blank-at-eol. * build-aux/install-sh, doc/misc/texinfo.tex, lib/intprops.h: * lib/regex_internal.c, lib/verify.h: Copy from Gnulib. 2019-09-02 Paul Eggert * doc/lispref/files.texi (Standard File Names): Mention .emacs.d too. 2019-09-02 Robert Pluim Reword documentation markup description * etc/NEWS: Reword temporary note about documentation updates. 2019-09-02 Robert Pluim Add 'nsm-trust-local-network' to NEWS * etc/NEWS: Describe 'nsm-trust-local-network', and warn against its use. 2019-09-01 Glenn Morris * admin/admin.el (set-version): Check for empty NEWS sections. 2019-09-01 Juri Linkov Try to add more tab-bar support on macos Try to add more tab-bar support on Windows 2019-09-01 Juri Linkov * src/nsterm.m: Fix arguments to window_from_coordinates function call Thanks to Jean-Christophe Helary 2019-09-01 Martin Rudalics Fixes to build on Windows * src/w32fns.c (w32_set_tab_bar_lines, w32_change_tab_bar_height): New functions. * src/w32term.c (w32_create_terminal): Set change_tab_bar_height_hook to w32_change_tab_bar_height. 2019-09-01 Juri Linkov Add more aliases switch-to-tab, previous-tab, next-tab 2019-09-01 Juri Linkov Non-graphical access to frame-local tabs (named window configurations) * lisp/tab-bar.el (make-tab, delete-tab, tab-bar-list) (tab-bar-list-next-line, tab-bar-list-prev-line) (tab-bar-list-unmark, tab-bar-list-backup-unmark) (tab-bar-list-delete, tab-bar-list-delete-backwards) (tab-bar-list-execute, tab-bar-list-select) (tab-bar-list-mouse-select): New commands. (tab-bar-list-noselect, tab-bar-list-current-tab) (tab-bar-list-delete-from-list): New functions. (tab-bar-list-column): New defvar. 2019-09-01 Noam Postavsky Fix non-deterministic process test * test/src/process-tests.el (set-process-filter-t): Don't assume subprocess output will come in a single chunk, keep waiting for more data until next "prompt" is read from subprocess. (cherry picked from commit aa49aa884053d0e8b33efe265f2aade19d1f3f3d) 2019-09-01 Paul Eggert Fix load-theme bug with user-emacs-directory * lisp/custom.el (custom-theme-directory): Delay initialization, since the value depends on user-emacs-directory (Bug#37256). 2019-09-01 Mattias Engdegård Clarify what counts as whitespace in `string-blank-p' * lisp/emacs-lisp/subr-x.el (string-blank-p): Expand doc string. 2019-08-31 Thomas Fitzsimmons Noam Postavsky package.el: Allow Package-Requires to span multiple lines (Bug#36301) * lisp/emacs-lisp/package.el (lm-header-multiline): Declare function. (package-buffer-info): Parse Package-Requires with lm-header-multiline instead of lm-header. (Bug#36301) 2019-08-31 Paul Eggert Make user-emacs-directory a variable This is in response to Eli’s review here: https://lists.gnu.org/r/emacs-devel/2019-07/msg00712.html * lisp/subr.el (user-emacs-directory): defvar, not defconst 2019-08-31 Paul Eggert Improve documentation for recent XDG-related changes Adjust documentation in the light of Eli’s review here: https://lists.gnu.org/r/emacs-devel/2019-07/msg00712.html * doc/emacs/custom.texi (Init File, Find Init): * doc/lispref/files.texi (Standard File Names): * doc/lispref/os.texi (Init File): 2019-08-31 Paul Eggert * doc/lispref/customize.texi: Fix typo. 2019-08-31 Paul Eggert Calculate user-emacs-directory on startup Problem reported by Glenn Morris (Bug#583#56). * lisp/startup.el (startup--xdg-config-default): New constant. (startup--xdg-config-home-emacs): New var. (startup--xdg-or-homedot): New function. (normal-top-level): Use it to set user-emacs-directory early on. (command-line): Also use it to determine the startup init directory. * lisp/subr.el (user-emacs-directory): Just initialize to nil. 2019-08-31 Juri Linkov Frame-local tab-bar and window-local tab-line. * etc/NEWS: Add 'tab-bar-mode' and 'global-tab-line-mode'. * etc/TODO: Remove tab-related items. * lisp/cus-start.el: Add tab-bar-mode, tab-bar-max-label-size. * lisp/frame.el (frame-notice-user-settings): handle tab-bar-lines. * lisp/loadup.el: Load "tab-bar". * lisp/menu-bar.el (menu-bar-options-save): Add tab-bar-mode. (menu-bar-showhide-menu): Define showhide-tab-bar. * lisp/startup.el (tab-bar-images-pixel-height): New defconst. (command-line): Reset tab-bar-mode. (x-apply-session-resources): Add "tabBar", "TabBar". * lisp/subr.el (read-key): Add tab-bar. * lisp/tab-bar.el: New file. * lisp/tab-line.el: New file. * lisp/window.el (window--dump-frame): Add tab-bar-height. * src/dispextern.h (enum window_part): Add ON_TAB_LINE. (struct glyph_matrix): Add tab_line_p. (struct glyph_row): Add tab_line_p. (MATRIX_TAB_LINE_ROW): New macro. (MATRIX_FIRST_TEXT_ROW): Handle more mode lines. (MR_PARTIALLY_VISIBLE_AT_TOP): Add WINDOW_TAB_LINE_HEIGHT. (MATRIX_TAB_LINE_HEIGHT, CURRENT_TAB_LINE_HEIGHT) (DESIRED_TAB_LINE_HEIGHT): New macros. (enum face_id): Add TAB_BAR_FACE_ID and TAB_LINE_FACE_ID. (struct it): Add tab_line_p. (tab_bar_item_idx, tab_bar_item_image): New enums. (DEFAULT_TAB_BAR_LABEL_SIZE, DEFAULT_TAB_BAR_BUTTON_MARGIN) (DEFAULT_TAB_BAR_BUTTON_RELIEF, DEFAULT_TAB_BAR_IMAGE_HEIGHT): New constants. * src/dispnew.c (adjust_glyph_matrix): Use window_wants_tab_line. (shift_glyph_matrix): Add WINDOW_TAB_LINE_HEIGHT. (clear_current_matrices, clear_desired_matrices): Call clear_glyph_matrix on tab_bar_window. (blank_row): Add WINDOW_TAB_LINE_HEIGHT. (required_matrix_height): Change 2 to 3. (fake_current_matrices): Reset tab_line_p. (adjust_frame_glyphs_for_window_redisplay): Handle tab_bar_window. Add FRAME_TAB_BAR_HEIGHT and FRAME_TAB_BAR_LINES. (free_glyphs): Handle tab_bar_window. (update_frame): Handle tab_bar_window. (update_window): Handle row->tab_line_p. (scrolling_window): Change arg type from bool to int. Change header_line_p to tab_line_p. (buffer_posn_from_coords): Add window_wants_tab_line. (mode_line_string): Use MATRIX_TAB_LINE_ROW for part ON_TAB_LINE. * src/frame.c (frame_default_tab_bar_height): New internal variable. (adjust_frame_size): Handle tab_bar_window. (make_frame): Reset tab_bar_redisplayed, tab_bar_resized and last_tab_bar_item. (Ftab_bar_pixel_width): New function. (frame_parms): Add tab-bar-lines. (gui_figure_window_size): Add new arg tabbar_p. (syms_of_frame): Add Qtab_bar_size, Qupdate_frame_tab_bar, Qfree_frame_tab_bar, Qtab_bar_lines, Stab_bar_pixel_width. Add Qtab_bar_lines to frame_inhibit_implied_resize. (tab-bar-mode): New variable. * src/frame.h (GCALIGNED_STRUCT): Add tab_bar_window, desired_tab_bar_string, current_tab_bar_string. (GCALIGNED_STRUCT): Add tab_bar_items, last_tab_bar_item, minimize_tab_bar_window_p, tab_bar_redisplayed, tab_bar_resized, tab_bar_lines, tab_bar_height, n_tab_bar_rows, n_tab_bar_items. (fset_tab_bar_items, fset_tab_bar_window) (fset_current_tab_bar_string, fset_desired_tab_bar_string): New inlines. (FRAME_TAB_BAR_LINES, FRAME_TAB_BAR_HEIGHT): New macros. (FRAME_TOP_MARGIN, FRAME_TOP_MARGIN_HEIGHT): Use FRAME_TAB_BAR_LINES. * src/fringe.c (draw_fringe_bitmap_1, update_window_fringes): Add WINDOW_TAB_LINE_HEIGHT. * src/gtkutil.c (xg_frame_set_char_size): Add FRAME_TABBAR_WIDTH. (x_wm_set_size_hint): Add FRAME_TABBAR_WIDTH. * src/keyboard.c (read_char): Handle Qtab_bar. (kbd_buffer_get_event): Handle TAB_BAR_EVENT. (make_lispy_position): Add WINDOW_TAB_LINE_HEIGHT. Handle TAB_BAR_EVENT. (tab_bar_items_vector, tab_bar_item_properties, ntab_bar_items): New internal variables. (tab_bar_items, process_tab_bar_item, set_prop_tab_bar) (parse_tab_bar_item, init_tab_bar_items, append_tab_bar_item): New functions. (read_char_x_menu_prompt, read_key_sequence): Handle Qtab_bar. (tab-bar-separator-image-expression): New variable. * src/keymap.c (syms_of_keymap): Add Qtab_bar and Qtab_line. * src/menu.c (x_popup_menu_1, Fx_popup_dialog): Handle Qtab_bar. * src/termhooks.h (enum event_kind): Add TAB_BAR_EVENT. (GCALIGNED_STRUCT): Add change_tab_bar_height_hook. * src/w32fns.c (w32_frame_parm_handlers): Add w32_set_tab_bar_lines. * src/w32term.c (w32_draw_window_cursor): Add WINDOW_TAB_LINE_HEIGHT. * src/window.c (window_body_height): Add WINDOW_TAB_LINE_HEIGHT. (Fwindow_tab_line_height): New function. (coordinates_in_window): Use window_wants_tab_line with CURRENT_TAB_LINE_HEIGHT. (window_relative_x_coord): Add ON_TAB_LINE. (Fcoordinates_in_window_p): Add ON_TAB_LINE. (window_from_coordinates): Add new arg tab_bar_p. (Fwindow_line_height): Use window_wants_tab_line with WINDOW_TAB_LINE_HEIGHT. (Fwindow_lines_pixel_dimensions): Add WINDOW_TAB_LINE_HEIGHT. (make_window): Set tab_line_height to -1. (window_wants_tab_line): New function. (window_internal_height): Use window_wants_tab_line. (window_scroll_pixel_based): Add WINDOW_TAB_LINE_HEIGHT. (Frecenter): Set minimize_tab_bar_window_p to 1. (GCALIGNED_STRUCT): Add frame_tab_bar_lines and frame_tab_bar_height. (Fcurrent_window_configuration): Set frame_tab_bar_lines and frame_tab_bar_height. (set_window_scroll_bars): Add WINDOW_TAB_LINE_HEIGHT. (syms_of_window): Add Qtab_line_format and Swindow_tab_line_height. * src/window.h (GCALIGNED_STRUCT): Add tab_line_height. (WINDOW_TAB_BAR_P, WINDOW_TAB_LINE_HEIGHT, WINDOW_TAB_LINE_LINES): New macros. (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y, WINDOW_TAB_LINE_HEIGHT): Add WINDOW_TAB_BAR_P. * src/xdisp.c (window_box_height): Add window_wants_tab_line with MATRIX_TAB_LINE_ROW and CURRENT_TAB_LINE_HEIGHT. (pos_visible_p): Use window_wants_tab_line. Add WINDOW_TAB_LINE_HEIGHT. (get_glyph_string_clip_rects): Add WINDOW_TAB_LINE_HEIGHT. (get_phys_cursor_geometry): Add WINDOW_TAB_LINE_HEIGHT. (remember_mouse_glyph): Use MATRIX_TAB_LINE_ROW for part ON_TAB_LINE. (init_iterator): Use MATRIX_TAB_LINE_ROW for TAB_LINE_FACE_ID. Add WINDOW_TAB_LINE_HEIGHT. Add window_wants_tab_line. (Fwindow_text_pixel_size): Add WINDOW_TAB_LINE_HEIGHT. (prepare_menu_bars): Call update_tab_bar. (update_tab_bar, build_desired_tab_bar_string) (display_tab_bar_line, tab_bar_height, Ftab_bar_height) (redisplay_tab_bar, tab_bar_item_info, get_tab_bar_item) (handle_tab_bar_click, note_tab_bar_highlight): New functions. (compute_window_start_on_continuation_line): Use window_wants_tab_line. (try_cursor_movement): Use window_wants_tab_line with CURRENT_TAB_LINE_HEIGHT. (redisplay_window): Use window_wants_tab_line with CURRENT_TAB_LINE_HEIGHT. (try_window_reusing_current_matrix): Use window_wants_tab_line with WINDOW_TAB_LINE_HEIGHT. (Fdump_tab_bar_row): New function. (compute_line_metrics): Add WINDOW_TAB_LINE_HEIGHT. (display_line): Use window_wants_tab_line. (display_mode_line): Set tab_line_p to true if face_id is TAB_LINE_FACE_ID. (Fformat_mode_line): Handle Qtab_line and Qtab_bar. (gui_clear_end_of_line): Add WINDOW_TAB_LINE_HEIGHT. (erase_phys_cursor): Use WINDOW_TAB_LINE_HEIGHT. (show_mouse_face): Use tab_bar_window. (note_mode_line_or_margin_highlight): Use MATRIX_TAB_LINE_ROW for area ON_TAB_LINE. (note_mouse_highlight): Call note_tab_bar_highlight, (expose_frame): Handle tab_bar_window. (syms_of_xdisp): Add Sdump_tab_bar_row and Stab_bar_height. (auto-resize-tab-bars, auto-raise-tab-bar-buttons) (tab-bar-border, tab-bar-button-margin, tab-bar-button-relief) (tab-bar-max-label-size): New variables. * src/xfaces.c (lookup_basic_face): Add TAB_LINE_FACE_ID and TAB_BAR_FACE_ID. (syms_of_xfaces): Define Qtab_bar and Qtab_line. * src/xfns.c (x_set_tab_bar_lines, x_change_tab_bar_height): New functions. (xic_set_statusarea): Add FRAME_TABBAR_TOP_HEIGHT. (frame_geometry): Add FRAME_TAB_BAR_HEIGHT and Qtab_bar_size. * src/xterm.c (x_draw_image_relief): Use tab_bar_button_relief. (x_draw_image_relief): Use TAB_BAR_FACE_ID. (handle_one_xevent): Handle tab_bar_window. (x_set_window_size_1): Add FRAME_TABBAR_WIDTH. (x_create_terminal): Set change_tab_bar_height_hook. * src/xterm.h (struct x_output): Add tabbar_top_height, tabbar_bottom_height, tabbar_left_width, tabbar_right_width tabbar_widget, tabbar_in_hbox, tabbar_is_packed. (FRAME_TABBAR_TOP_HEIGHT): Add FRAME_TABBAR_TOP_HEIGHT, FRAME_TABBAR_BOTTOM_HEIGHT, FRAME_TABBAR_HEIGHT, FRAME_TABBAR_LEFT_WIDTH, FRAME_TABBAR_RIGHT_WIDTH, FRAME_TABBAR_WIDTH. 2019-08-31 Paul Eggert Check instead of relying on NOTREACHED NOTREACHED was designed for traditional lint decades ago, and _Noreturn now normally subsumes its function. In the one case in Emacs where NORETURN might help and _Noreturn does not, check for NOTREACHED instead of assuming it. * lib-src/etags.c (main): * src/xterm.c (x_connection_closed): Remove NOTREACHED after a call to a _Noreturn function, as NOTREACHED is no longer needed there. Also, one of the NOTREACHEDs was misplaced, which defeated traditional lint checking anyway. * lib-src/pop.c (pop_getline): Redo so as to not need NOTREACHED. * src/emacs.c (main): Use eassume (false) rather than NOTREACHED, so that running with ENABLE_CHECKING catches any internal error causing the toplevel Frecursive_edit to return. 2019-08-31 Glenn Morris * test/lisp/net/tramp-tests.el (tramp-test21-file-links): More cleanup. 2019-08-31 Alan Mackenzie Clarify the use of left/right-margin-width in determining current margin width * doc/lispref/display.texi (Display-Margins): Clarify that left/right-margin-width can not be used to determine the current margin width, and that window-margins must be used instead. 2019-08-31 Andreas Schwab Fix compilation with CHECK_STRUCTS * src/pdumper.c (dump_hash_table): Update hash of Lisp_Hash_Table. 2019-08-30 Eli Zaretskii Avoid signaling errors from ls-lisp--insert-directory on macOS * lisp/ls-lisp.el (ls-lisp-sanitize): Don't assume the directory entries for ".." and "." will either both be present or both absent. (Bug#37236) 2019-08-30 Mattias Engdegård * src/floatfns.c: Check against __FINITE_MATH_ONLY__ (bug#37140) 2019-08-30 Michael Albinus Extend tramp--test-check-files (Bug#37228) * test/lisp/net/tramp-tests.el (tramp--test-check-files): Test also `directory-files-and-attributes'. (Bug#37228) 2019-08-30 Koichi Arakawa (tiny change) Fix Tramp's directory-files-and-attributes-with-stat (Bug#37228) * lisp/net/tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat): Handle file names with spaces. (Bug#37228) 2019-08-30 Paul Eggert emacsclient: adjust to new config file location * lib-src/emacsclient.c (open_config): New arg XDG, to respect XDG_CONFIG_HOME, consistently with Emacs proper. Caller changed. Use XDG convention if available, falling back on the old names if not. 2019-08-30 Paul Eggert Prefer ~/.config/emacs to ~/.emacs.d if neither exists That way, when Emacs starts in a fresh home directory, it prefers the new (XDG) convention rather than the old one. * lisp/files.el (locate-user-emacs-file): Make the parent directories of user-emacs-directory if needed. This is useful if user-emacs-directory is "~/.config/emacs" and "~/.config" does not yet exist. * lisp/startup.el (command-line): * lisp/subr.el (user-emacs-directory): Prefer XDG_CONFIG_HOME to ~/.emacs.d if neither exists. 2019-08-30 Nick Drozd Minor copyedits in ido.texi * doc/misc/ido.texi (Overview) (Interactive Substring Matching, Prefix Matching) (Regexp Matching, Hidden Buffers and Files) (Changing List Order, Find File At Point, Misc) (All Matching, Replacement): Fix wording, markup and punctuation. (Bug#37225) 2019-08-29 Glenn Morris Merge from origin/emacs-26 1af1240 (origin/emacs-26, emacs-26) ; Remove empty NEWS sections 96dd019 (tag: emacs-26.3-rc1, tag: emacs-26.3) * etc/HISTORY: Add Ema... # Conflicts: # etc/NEWS 2019-08-29 Glenn Morris Merge from origin/emacs-26 70829f8 ; ChangeLog.3 update # Conflicts: # ChangeLog.3 2019-08-29 Glenn Morris Merge from origin/emacs-26 290fe4d * ; ChangeLog.3 update e8f176b * etc/NEWS: Delete temporary markup. # Conflicts: # ChangeLog.3 # etc/NEWS 2019-08-29 Stefan Kangas Add new "make help" target * GNUmakefile: Add new "help" target that shows a brief summary of common make targets. (Bug#12411) * INSTALL * etc/NEWS: Announce it. 2019-08-29 Lars Ingebrigtsen Tweak shr background colour handling * lisp/net/shr.el (shr-fill-line): Extend the background to the end of the line when folding lines. 2019-08-28 Michael Albinus Clarify meaning of in test/README 2019-08-28 Paul Eggert Don't worry about pre-1.0.0 alsa-lib include Problem reported by Ergus in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00563.html * configure.ac (ALSA_SUBDIR_INCLUDE): Do not define. * src/sound.c: Assume ALSA_SUBDIR_INCLUDE. 2019-08-27 Paul Eggert Use XDG conventions more consistently Fit in better with the XDG conventions. Something like this was suggested in 2008 (Bug#583) and the XDG conventions seem to have settled down by now. * doc/emacs/custom.texi (Init File, Init Syntax, Find Init): * doc/lispref/files.texi (Standard File Names): * doc/lispref/os.texi (Init File): * doc/misc/url.texi (Customization): * etc/NEWS: Adjust accordingly. * lisp/startup.el (startup--load-user-init-file): If init-file-name is nil, do not load from it; instead just use the alt-file. (find-init-path): Remove; no longer used. (command-line): Don't check twice for XDG. Look at XDG_CONFIG_HOME instead of assuming it's ~/.config. Prefer XDG configuration if it exists; the user can disable this by setting XDG_CONFIG_HOME to some other place. * lisp/subr.el (user-emacs-directory): Prefer XDG configuration if it exists. 2019-08-27 Paul Eggert Port recent gnutls fixes to gcc -Wpointer-sign * src/gnutls.c (Fgnutls_format_certificate): Fix pointer signedness problem. 2019-08-27 Juri Linkov Browser-like Info-history button menu (bug#37184) * doc/misc/info.texi (Help-Int): Using tool-bar to navigate history. * lisp/info.el (Info-history-menu): New function. (Info-history-back-menu, Info-history-forward-menu): New commands. (Info-mode-map): Bind Info-history-back-menu and Info-history-forward-menu to tool-bar on C-key. 2019-08-27 Michael Albinus Deactivate part of tramp--test-check-files on macOS (Bug#36940) * test/lisp/net/tramp-tests.el (tramp--test-check-files): Do not search for environment variables on macOS. (Bug#36940) 2019-08-27 Eli Zaretskii Fix crashes on MS-Windows when using GnuTLS connections * src/gnutls.c (init_gnutls_functions) [WINDOWSNT]: Define and load gnutls_free by an explicit call to GetProcAddress. (gnutls_free) [WINDOWSNT]: Define as a macro that dereferences a function pointer. (Bug#31946) (Fgnutls_format_certificate): Use make_string_from_bytes instead of going through an intermediate malloc'ed buffer. 2019-08-27 Alex Branham Fix filename completion in shell mode buffers * lisp/shell.el (shell-dynamic-complete-functions): Move pcomplete-completions-at-point down the list so that filename completion has a chance to complete before pcompletion. Fixes bug#34330 2019-08-27 Michael Albinus * test/Makefile.in (test_template): Declare target FOO.log. 2019-08-27 Lars Ingebrigtsen Fix completion in `read-library-name' * lisp/emacs-lisp/find-func.el (read-library-name): Only list .el/.el.gz files when completing (bug#36945). 2019-08-26 Mauro Aranda Make link widgets obey mouse-1-click-follows-link * lisp/wid-edit.el (widget-link-keymap): New variable, a keymap to use inside a link widget. ('link widget): Restore the :follow-link property and add widget-link-keymap as the :keymap property (bug#15682). 2019-08-26 Mauro Aranda Adapt recentf.el to the change in the Widget Library * lisp/recentf.el (recentf-open-files-item): Stop overriding :follow-link property of the link widgets, since now it should work as expected (bug#15682). 2019-08-26 Mauro Aranda Create push-button widgets instead of links in epa *Keys* buffer * lisp/epa.el (epa--select-keys): Make OK and Cancel into buttons (bug#15682). 2019-08-26 Paul Eggert Fix Tramp rounding of file sizes and inode numbers * lisp/net/tramp-sh.el (tramp-perl-file-attributes) (tramp-perl-directory-files-and-attributes) (tramp-do-file-attributes-with-stat) (tramp-do-directory-files-and-attributes-with-stat): Format file sizes and inode numbers without trailing ".0", to avoid rounding errors when absolute values exceed 2**53 (Bug#36940#94). This fixes the problem for Emacs 27 and later, and doesn't hurt in earlier Emacs. 2019-08-26 Stefan Kangas Prefer display-line-numbers over linum in docs and one defcustom * doc/misc/efaq.texi: Replace linum with display-line-numbers. * lisp/progmodes/prog-mode.el (prog-mode-hook): Replace linum-mode with display-line-numbers-mode in :options. (Bug#37120) 2019-08-26 Juri Linkov * src/keyboard.c (parse_tool_bar_item): Use CAPTION when HELP is unavailable while adding equivalent key binding to the tooltip. (Bug#36156) 2019-08-26 Eli Zaretskii Fix crashes in networking with GnuTLS on MS-Windows * src/gnutls.c (init_gnutls_functions) [WINDOWSNT]: Define and load gnutls_free. (Fgnutls_format_certificate): Use gnutls_free instead of xfree. This prevents crashes on MS-Windows, since the memory being released was allocated inside GnuTLS. (Bug#31946) 2019-08-25 Lars Ingebrigtsen Allow finding gpg2 binaries when gpg2 has an "unknown" version string * lisp/epg-config.el (epg-find-configuration): Allow finding a usable configuration even if the version string looks like "gpg (GnuPG) 2.2.15-unknown" (bug#35629). 2019-08-25 Teemu Likonen Only use --sender for gpg when gpg supports it * lisp/epg-config.el (epg-required-version-p): New function (bug#37025). * lisp/gnus/mml-sec.el (mml-secure-epg-sign): * lisp/epg.el (epg-start-sign): (epg-start-encrypt): Use it to only use --sender when the gpg binary supports it. 2019-08-25 Lars Ingebrigtsen Fix ede-proj-project class * lisp/cedet/ede/proj.el (ede-proj-project): Make class inherit from eieio-named to get object-name slot (bug#37181). 2019-08-25 Paul Eggert Fix bug with non-paletted transparent PNGs Adapted from a fix by YAMAMOTO Mitsuharu (Bug#37153#77). * src/image.c (png_load_body): Fix bug with non-paletted transparent images. 2019-08-25 Paul Eggert Fix misdisplay of PNG paletted images Problem reported by Roland Winkler (Bug#37153). Derived from a patch suggested by YAMAMOTO Mitsuharu (Bug#37153#62). * src/image.c (png_get_valid) [WINDOWSNT]: Do not dynamically link this function. (png_get_tRNS) [WINDOWSNT && PNG_tRNS_SUPPORTED]: Dynamically link this function instead. (png_load_body): Do not assume that every paletted image supplies only transparency data. Fix typo in use of transparent_p. 2019-08-25 Michael Albinus Fix a further part of Bug#36940 * lisp/net/tramp-sh.el (tramp-perl-file-attributes) (tramp-perl-directory-files-and-attributes) (tramp-do-file-attributes-with-stat) (tramp-do-directory-files-and-attributes-with-stat): Return size and inode as floating number. (Bug#36940). 2019-08-25 Alan Mackenzie Introduce new value t for compilation-context-lines to eliminate scrolling In particular, to prevent scrolling in a window lacking a left fringe. Instead, a visible arrow "=>" is inserted before column zero. This fixes bug #36832. * lisp/progmodes/compile.el (compilation-context-lines): Add the new value t. (compilation-set-window): Amend to handle compilation-context-lines being t. (overlay-arrow-overlay): New variable holding an overlay with before-string property "=>". (compilation-set-overlay-arrow): New function which manipulates overlay-arrow-overlay. (compilation-goto-locus, compilation-find-file): In addition to calling compilation-set-window, also call compilation-set-overlay-arrow. * doc/emacs/building.texi (Compilation Mode): Document the new value t which compilation-context-lines can take. * etc/NEWS: Add an entry for this change. 2019-08-25 Alex Ott Fix minor problems in TUTORIAL.ru This fixes wording and avoids visiting the tutorial in Ruby mode. 2019-08-25 Eli Zaretskii Fix a recent change in coding.c This partially reverts the changes in "extern function cleanup". * src/coding.c (encode_string_utf_8, decode_string_utf_8): Now extern again. They should NOT be static, as they are intended to be used by the likes of json.c, where we need highly-optimized code for processing UTF-8 strings. E.g., decode_string_utf_8 beats make_string_from_utf8 by a factor of 2 to 5 in a large number of scenarios. 2019-08-24 Lars Ingebrigtsen Use ' instead of ` in NEWS 2019-08-24 Lars Ingebrigtsen Use `autoconf-mode' for Autoconf .m4 files * lisp/files.el (auto-mode-alist): Use `autoconf-mode' (instead of `m4-mode') for acinclude.m4/aclocal.m4/acsite.m4 files (bug#37133). 2019-08-24 Alex Branham The `gnus*-1' functions shouldn't be interactive * lisp/gnus/gnus-start.el (gnus-no-server-1): This function shouldn't be interactive (bug#37022). (gnus-1): Ditto. 2019-08-24 Lars Ingebrigtsen Disallow just hitting RET in gnus-mime-replace-part * lisp/gnus/gnus-art.el (gnus-mime-replace-part): Don't replace the part if the file to replace it with doesn't exist (bug#36864). 2019-08-24 Paul Eggert Clarify Fx_parse_geometry initialization * src/frame.c (Fx_parse_geometry): Clarify why local init isn’t needed. 2019-08-24 Paul Eggert Tweak time arithmetic performance * src/timefns.c (time_arith): Prefer mpz_divexact to mpz_tdiv_q when either will do. 2019-08-24 Paul Eggert Speed up % and mod with fixnum denom * src/data.c (integer_remainder): New function. When the numerator is a bignum and the denominator is small, this function uses mpz_tdiv_ui, which should be faster than mpz_tdiv_r. (Frem, Fmod): Use it. 2019-08-24 Paul Eggert Tweak integer mod performance * src/data.c (integer_mod): Use mpz_tdiv_r not mpz_mod, as that’s more similar to the fixnum case, is a bit more efficient, and otherwise the later ‘sgn_r < 0’ code is useless anyway. 2019-08-24 Paul Eggert Make (mod 1.0 0) consistent with (/ 1.0 0) * src/data.c (Fmod): Do not signal an error for (mod 1.0 0), for the same reason (/ 1.0 0) does not signal an error. * test/src/data-tests.el (data-tests-mod-0): New test. 2019-08-24 Paul Eggert extern function cleanup Most of these functions can be static. A few are unused. * src/coding.c (encode_string_utf_8, decode_string_utf_8): Define only if ENABLE_UTF_8_CONVERTER_TEST, as they're not needed otherwise. * src/coding.c (encode_string_utf_8, decode_string_utf_8): * src/data.c (integer_mod): * src/fns.c (base64_encode_region_1, base64_encode_string_1): * src/ftfont.c (ftfont_get_fc_charset): Now static. * src/sysdep.c (verrprintf): Remove; unused. 2019-08-24 Noam Postavsky Fix non-deterministic process test * test/src/process-tests.el (set-process-filter-t): Don't assume subprocess output will come in a single chunk, keep waiting for more data until next "prompt" is read from subprocess. 2019-08-24 Eli Zaretskii Revert "Recompute user-emacs-directory-relative defcustoms one more time" This reverts commit bb5cd7c4caf415e40836edbbc4e62b0dd411d73f. See bug#37173. 2019-08-24 Robert Pluim Fix DNS tests * test/src/process-tests.el: (lookup-family-specification, lookup-unicode-domains, unibyte-domain-name, lookup-google, non-existent-lookup-failure): Skip on Hydra, which doesn't have DNS. Fix buggy test condition. (Bug#37165) 2019-08-24 Michael Albinus Fix some problems of Bug#36940 * test/lisp/net/tramp-tests.el (tramp-test22-file-times): Do not compare time value lists by `equal'. (Bug#36940). (tramp-test30-make-process): Adapt "kill" message to match on macOS. 2019-08-23 Paul Eggert Tweak gnutls-peer-status reporting * src/gnutls.c (Fgnutls_peer_status): Report :compression and :encrypt-then-mac only if the underlying GnuTLS library has the corresponding features. This give the Elisp caller a bit more information about the peer status. * lisp/net/nsm.el (nsm-protocol-check--compression): Don’t worry about compression in newer GnuTLS versions that do not support compression. 2019-08-23 Lars Ingebrigtsen Mention new usage of `invalid-read-syntax' in the manual * doc/lispref/errors.texi (Standard Errors): Document "trailing garbage" use of `invalid-read-syntax' (bug#24649). 2019-08-23 Paul Eggert Clarify compiler-pacifier in frame.c * src/frame.c (Fx_parse_geometry): Pacify the compiler in a different way, so that the human reader can more easily see that the initializations are unnecessary. 2019-08-23 Eli Zaretskii Fix compilation --without--x * src/xdisp.c (extend_face_to_end_of_line): Fix a recent change that moved the initialization of default_face. Reported by Glenn Morris . 2019-08-23 Eli Zaretskii Avoid a compilation warning in w32.c * src/w32.c (logon_network_drive): Avoid compilation warning about strncpy arguments. 2019-08-23 Eli Zaretskii Avoid compilation warning in frame.c * src/frame.c (Fx_parse_geometry): Avoid compilation warning about x and y being used without initializing them. 2019-08-23 Noam Postavsky Print macro modified macro keys as characters not integers * lisp/macros.el (macros--insert-vector-macro): Pass all elements to 'prin1-char', not just those that satisfy characterp (because characters which have modifier bits set wouldn't qualify otherwise). 'prin1-char' will return nil if it can't handle the argument (e.g., for symbols representing function keys). 2019-08-23 Robert Pluim Fix compilation of process.c * src/process.c (network_lookup_address_info_1): [!HAVE_GAI_STRERROR]: Use make_fixnum instead of make_number. (Bug#37158). 2019-08-23 Michael Heerdegen Hi-lock lines up to right margin (Bug#15934) * lisp/hi-lock.el (hi-lock-line-face-buffer): Change used regexp so that a line terminating newline character is included in the match. 2019-08-23 Lars Ingebrigtsen Rename renamed nsm.el variables and functions back * doc/emacs/misc.texi (Network Security): Start working on updating the NSM bits, but it's unclear how much of the new stuff to document. * lisp/net/nsm.el: Rename all nsm-tls-check-* functions to nsm-protocol-check--* to bring them back into line with the documentation. (network-security-protocol-checks): Renamed back again from `nsm-tls-checks', as this variable is documented and can't just go away. 2019-08-23 Lars Ingebrigtsen Move all NSM tests away from the `low' level * lisp/net/nsm.el (network-security-level, nsm-tls-checks): Make `low' a "check nothing" setting again, and move all the `low' checks back to `medium'. This makes the test suite work again. 2019-08-23 Lars Ingebrigtsen Tweak previous tar-mode time stamp code * lisp/tar-mode.el (tar-header-block-summarize): Tweak previous commit to output the time stamp in the exact same way that GNU tar does. 2019-08-23 Paul Eggert Get the Gnutls code compiling on Fedora 30 The recent changes caused the build to fail on Fedora 30 when built with --enable-gcc-warnings, among other things with diagnostics that gnutls_compression_get and gnutls_compression_get_name are deprecated (this started with GnuTLS 3.6). Fix this by refusing to call these obsolescent and now-dummy functions in GnuTLS 3.6 and later. However, this is just a temporary workaround to get the build working; a real fix is needed, as network-stream-tests fail. * src/gnutls.c (HAVE_GNUTLS_COMPRESSION_GET): New macro. (gnutls_compression_get, gnutls_compression_get_name): Define only if HAVE_GNUTLS_COMPRESSION_GET. (init_gnutls_functions): Load the two functions only if HAVE_GNUTLS_COMPRESSION_GET. (emacs_gnutls_certificate_export_pem): Use alloca instead of xmalloc. (Fgnutls_peer_status): Just return "NULL" if the functions are deprecated. (Fgnutls_format_certificate): Fix pointer signedness glitches. * src/process.c: Fix spacing. 2019-08-23 Lars Ingebrigtsen Put error output from M-! at the end of the error buffer * lisp/simple.el (shell-command-on-region): Put the error output at the end of the buffer instead of wherever point is (bug#7513). This avoids interleaving error output. 2019-08-23 Robert Pluim Move default face lookup * src/xdisp.c (extend_face_to_end_of_line): Move default face lookup lower. 2019-08-23 Robert Pluim Correct description of network-lookup-address-info * doc/lispref/processes.texi (Misc Network): Remove erroneous text about port numbers 2019-08-23 Lars Ingebrigtsen Remove debugging from previous shr.el patch 2019-08-23 Eli Zaretskii Fix recent changes in gnutls.c * src/gnutls.c: Fix typos that broke the MS-Windows build. (Fgnutls_peer_status_warning_describe): Fix incomplete error message string. 2019-08-22 Lars Ingebrigtsen Avoid an infloop in shr when filling text with :align-to properties * lisp/net/shr.el (shr-fill-line): Only join together URL buttons if there are any URL buttons. 2019-08-22 Lars Ingebrigtsen Fix Gnus display of timestamps that's less than a second old * lisp/gnus/gnus-art.el (article-lapsed-string): The elapsed seconds may be a fractional second. In that case, just say "now". 2019-08-22 Lars Ingebrigtsen Really save games scores to the games scores directory * lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score): Save games scores to `gamegrid-user-score-file-directory' by default (bug#36971). 2019-08-22 Damien Cassou Add imenu support to xref * lisp/progmodes/xref.el (xref--imenu-prev-index-position) (xref--imenu-extract-index-name): Add functions to get imenu support. (xref--xref-buffer-mode): Set imenu variables to the new functions. * etc/NEWS: Add corresponding entry (bug#36974). 2019-08-22 Lars Ingebrigtsen Give a better error message when reading invalid "\unicode" escapes. * src/lread.c (read_escape): Give a clearer error message on Unicode escape sequences (bug#36988). 2019-08-22 Lars Ingebrigtsen Clarify doc string of cl-pushnew * lisp/emacs-lisp/cl-lib.el (cl-pushnew): Clarify doc string (bug#37016). 2019-08-22 Lars Ingebrigtsen Fix interaction between url-handler-mode and browse-url * lisp/net/browse-url.el (browse-url): Don't expand any URLs (like "man:") that have a scheme when using `url-handler-mode' (bug#37056). 2019-08-22 Lars Ingebrigtsen Use ISO8601 time formats in tar-mode * lisp/tar-mode.el (tar-clip-time-string): Make obsolete (bug#37130). (tar-header-block-summarize): Use ISO8601 time instead of home-brew format. 2019-08-22 Lars Ingebrigtsen Make dired recognize .lz files * lisp/dired-aux.el (dired-compress-file-suffixes): Recognize .lz (lzip) compressed files (bug#37136). 2019-08-22 Lars Ingebrigtsen Fix too-long lines in nsm.el * lisp/net/nsm.el: Fix some too-long lines and some terminology in the doc strings/comments. 2019-08-22 Lars Ingebrigtsen Mention new NSM warnings 2019-08-22 Lars Ingebrigtsen Tweak the warning display to be less like a TLS decoding page * lisp/net/nsm.el (nsm-parse-subject, nsm-certificate-part): Restore functions for parsing subjects. (nsm-format-certificate): Use them to display more user-friendly data. Also change the display to have fewer lines again so that the data of interest isn't pushed off the screen. 2019-08-22 Lars Ingebrigtsen Enable sorting paragraphs when the final paragraph has no newline * lisp/sort.el (sort-paragraphs): Ensure that when sorting paragraphs, the final paragraph ends with a newline (bug#21785). 2019-08-22 Lars Ingebrigtsen Signal an error on `M-x shell-mode' * lisp/shell.el (shell-mode): This mode can't usefully be called interactively (and is somewhat destructive, as it disables `undo'), and it's usually confused with `shell-script-mode' (bug#19812). So signal an error if it's used interactively. 2019-08-22 Lars Ingebrigtsen Make ibuffer-mark-by-file-name-regexp work on the displayed file name * lisp/ibuf-ext.el (ibuffer-mark-by-file-name-regexp): Perform the matching on the abbreviated (i.e., displayed) file name, and not the complete name (bug#18859). This seems like the more expected action. 2019-08-22 Lars Ingebrigtsen Have `M-x battery' list all batteries under GNU/Linux * lisp/battery.el (battery-upower-device): Remove (bug#25559). (battery--find-linux-sysfs-batteries): New function. (battery-status-function, battery-linux-sysfs): Use it to list all batteries, no matter what they're called. 2019-08-22 Lars Ingebrigtsen Signal `invalid-read-syntax' for "trailing garbage" * src/minibuf.c (string_to_object): Signal `invalid-read-syntax' instead of the generic `error' for "trailing garbage following expression" (bug#24649). 2019-08-22 Lars Ingebrigtsen Fix skeleton edebug spec * lisp/skeleton.el (skeleton-edebug-spec): Fix edebug spec (bug#24779). 2019-08-22 Lars Ingebrigtsen Run quit-window-hook from the correct buffer * lisp/window.el (quit-window): Run the hook from the buffer specified by the WINDOW parameter. 2019-08-22 Eli Zaretskii Recompute user-emacs-directory-relative defcustoms one more time * lisp/startup.el (command-line): Re-evaluate the custom-delayed predefined variables one more time after loading the user's init file. (Bug#37116) 2019-08-22 Stefan Kangas Fix minor checkdoc errors in package.el * lisp/emacs-lisp/package.el (package-all-keywords) (package-menu--generate, package-archive-priority): Doc fixes. 2019-08-22 Stefan Kangas Signal user-error on duplicate package refresh * lisp/emacs-lisp/package.el (package-menu-refresh): Signal a user-error if there is already a refresh running in the background. Doc fix. (Bug#36707) 2019-08-22 Stefan Kangas * doc/misc/efaq.texi: Note the inclusion year. (Bug#37142) 2019-08-22 Eli Zaretskii Improve documentation of 'ispell-skip-html' * lisp/textmodes/ispell.el (ispell-skip-html): Doc fix. (Bug#37141) 2019-08-22 Michael Albinus * doc/misc/tramp.texi: Use @acronym{GVFS}. 2019-08-22 Paul Eggert Fix Qunbound-Qnil confusion in clrhash patch Problem reported by Stefan Monnier. * src/fns.c (hash_clear): Fix typo I introduced in my previous patch here, by setting keys to Qunbound not Qnil. 2019-08-21 Paul Eggert Remove no-longer-needed workaround for GC bug * src/keymap.c (describe_vector): Remove old workaround for GC bug. This workaround, introduced in 1993-02-19T05:43:54Z!rms@gnu.org, has not been needed for some time. Problem reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html 2019-08-21 Paul Eggert Don’t debug fset by default This GC bug seems to have been fixed, so the check is no longer needed in production code. From a suggestion by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html * src/alloc.c (SUSPICIOUS_OBJECT_CHECKING) [!ENABLE_CHECKING]: Do not define. (find_suspicious_object_in_range, detect_suspicious_free): Expand to proper dummy expressions if !SUSPICIOUS_OBJECT_CHECKING. * src/data.c (Ffset): Convert test to an eassert. 2019-08-21 Paul Eggert Fix clrhash bug when hash table needs rehashing Problem reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html * src/fns.c (maybe_resize_hash_table): Prefer ASET to gc_aset where either will do. Simplify appending of Qunbound values. Put index_size calculation closer to where it’s needed. (hash_clear): If hash_rehash_needed_p (h), don’t clear the nonexistent hash vector. Use memclear to speed up clearing. * src/lisp.h (HASH_TABLE_SIZE): Check that the size is positive, and tell that to the compiler. 2019-08-21 Paul Eggert * src/buffer.c: Fix comment typo. 2019-08-21 Paul Eggert Don’t hard-loop on cycles in ‘read’ etc. Problem for ‘read’ reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html * src/fns.c (Frequire): Protect against circular current-load-list. * src/lread.c (Fget_load_suffixes): Protect against circular load-suffixes or load-file-rep-suffixes. (Fload): Protect against circular loads-in-progress. (openp): Protect against circular PATH and SUFFIXES. (build_load_history): Protect against circular load-history or current-load-list. (readevalloop_eager_expand_eval): Protect against circular SUBFORMS. (read1): Protect against circular data. * test/src/lread-tests.el (lread-circular-hash): New test. 2019-08-21 Nicolas Petton * etc/HISTORY: Add Emacs 26.3 release release date. 2019-08-21 Nicolas Petton Bump Emacs version to 26.3 * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version. 2019-08-21 Lars Ingebrigtsen Make hide-ifdef-mode-prefix-key customisable * lisp/progmodes/hideif.el (hide-ifdef-mode-prefix-key): Make into a defcustom since it seems like this is something that should be user-customisable (bug#8922). 2019-08-21 Lars Ingebrigtsen Use `quit-window-hook' in Info instead of having its own command * doc/misc/info.texi (Help-Q): Info now uses `quit-window'. * lisp/info.el (info-standalone): Adjust doc string. (Info-exit): Made into obsolete alias. (Info-mode-map): Bind "q" to `quit-window'. (Info-mode-menu): Adjust. (info-tool-bar-map): Ditto. (Info-mode): Adjust doc string. (Info-mode): If Info is standalone, kill Emacs on "q". 2019-08-21 Lars Ingebrigtsen Adjust quit-window-hook documentation * doc/lispref/windows.texi (Quitting Windows): Adjust documentation of quit-window-hook (bug#9867). 2019-08-21 Lars Ingebrigtsen Mention quit-window-hook in "Standard Hooks" * doc/lispref/hooks.texi (Standard Hooks): Mention quit-window-hook (bug#9867). 2019-08-21 Lars Ingebrigtsen Call `quit-window-hook' in the `quit-window' command only * lisp/window.el (quit-restore-window): Don't run quit-window-hook here... (quit-window): ... but here instead. Callers that call the former programmatically can decide themselves whether to call the hook. (quit-window-hook): Fix doc string. 2019-08-21 Lars Ingebrigtsen Fix the interactive spec for set-frame-width/height * src/frame.c (Fset_frame_width): (Fset_frame_height): Use `prefix-numeric-value' to get the proper numeric value (bug#9970). 2019-08-21 Stefan Kangas * lisp/mail/flow-fill.el: Change todo comment to not mention XEmacs. 2019-08-21 Paul Eggert Be more careful about pointers to bignum vals This uses ‘const’ to be better at catching bugs that mistakenly attempt to modify a bignum value. Lisp bignums are supposed to be immutable. * src/alloc.c (make_pure_bignum): * src/fns.c (sxhash_bignum): Accept Lisp_Object instead of struct Lisp_Bignum *, as that’s simpler now. Caller changed. * src/bignum.h (bignum_val, xbignum_val): New inline functions. Prefer them to &i->value and XBIGNUM (i)->value, since they apply ‘const’ to the result. * src/timefns.c (lisp_to_timespec): Use mpz_t const * to point to a bignum value. 2019-08-20 Paul Eggert Update mini-gmp * src/mini-gmp.c: Sync from upstream. This incorporates: 2019-08-13 Silence a couple of warnings 2019-08-20 Paul Eggert Avoid some excess precision in time arithmetic * doc/misc/emacs-mime.texi (time-date): Adjust example to match new behavior. * etc/NEWS: Mention this. * lisp/calendar/time-date.el (decoded-time-add) (decoded-time--alter-second): Don’t lose underestimate precision of seconds component. * src/bignum.c (mpz): Grow by 1. * src/timefns.c (trillion_factor): New function. (timeform_sub_ps_p): Remove. (time_arith): Avoid unnecessarily-large hz, by reducing the hz to a value no worse than the worse hz of the two arguments. The result is always exact unless an error is signaled. * test/src/timefns-tests.el (timefns-tests--decode-time): New function. (format-time-string-with-zone): Test (decode-time LOOK ZONE t) resolution as well as its numeric value. 2019-08-20 Noam Postavsky Respect global-eldoc-mode in minibuffers (Bug#36886) * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Accept a BODY parameter. * doc/lispref/modes.texi (Defining Minor Modes): Document new parameter. * etc/NEWS: Announce it. * lisp/simple.el (read--expression): Move eldoc-mode setup to... * lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): ... here, new function. (global-eldoc-mode): Add or remove it to eval-expression-minibuffer-setup-hook when enabling or disabling global-eldoc-mode. This enables eldoc in the minibuffer (solving Bug#27202), only when global-eldoc-mode is enabled. 2019-08-20 Paul Eggert Support larger TIMEs in (time-convert TIME t) Also, improve the doc to match current behavior. * doc/lispref/os.texi (Time Conversion): Document that time-convert signals an error for infinite or NaN args, and that (time-convert TIME t) is exact otherwise. Mention float-time as an alternative to time-convert. (Time Calculations): Document that time-add and time-subtract are exact and do not decrease HZ below the minimum of their args. * src/timefns.c (decode_float_time): Don’t signal an error for floating-point arguments whose base-FLT_RADIX exponent is not less than DBL_MANT_DIG. Instead, convert them to (TICKS . 1) values. Use two (instead of three) integer exponent comparisons in the typical case. * test/src/timefns-tests.el (time-arith-tests): Add more floating-point tests, including some tests that the old code fails. 2019-08-20 Stephen Leake Delete built-in ada-mode; Gnu ELPA is a good replacement * doc/misc/Makefile.in (INFO_COMMON): Delete ada-mode. * doc/misc/ada-mode.texi: Delete. * etc/NEWS: Mention ada-mode deleted. * lisp/progmodes/ada-mode.el: Delete. * lisp/progmodes/ada-prj.el: Delete. * lisp/progmodes/ada-stmt.el: Delete. * lisp/progmodes/ada-xref.el: Delete. 2019-08-20 Michael Albinus Another attempt to fix bug#32645 * test/lisp/autorevert-tests.el () (auto-revert-test02-auto-revert-deleted-file): * test/lisp/filenotify-tests.el (file-notify-test04-autorevert): Check `file-notify-valid-p', not that the descriptor is nil. 2019-08-20 Glenn Morris Merge from origin/emacs-26 615cff4 (origin/emacs-26) Fix process filter documentation (Bug#13400) beb1d22 Fix query-replace-regexp undo feature # Conflicts: # test/lisp/replace-tests.el 2019-08-20 Glenn Morris Merge from origin/emacs-26 0b810eb Fix a typo in char-width-table 3f00db7 Minor update in admin/notes/unicode bcd0115 Fix lisp indent infloop on unfinished strings (Bug#37045) 5f992d1 Improve commentary in composite.el 3a04be2 ; Improve commentary in xdisp.c 15de1d1 Fix markup in dired-x.texi bda7fc7 ; Fix typo in a doc string of speedbar.el 6f57ef9 * src/callproc.c (Fcall_process): Doc fix. # Conflicts: # doc/misc/dired-x.texi # lisp/international/characters.el # src/callproc.c 2019-08-20 Ulrich Müller * configure.ac (HAVE_JPEG): Test for window system. (Bug#36995) 2019-08-20 Mauro Aranda Don't display wrong ElDoc information when inside ELisp strings or comments * lisp/progmodes/elisp-mode.el (elisp--fnsym-in-current-sexp): Since forward-sexp assumes point is not in a string or comment, avoid calling it and then checking if point is inside a string, since that sometimes will fail with awkward results. (Bug#35567) 2019-08-19 Lars Ingebrigtsen Output `auto-coding-alist' in `describe-current-coding-system' * lisp/international/mule-diag.el (describe-current-coding-system): Also output the contents of `auto-coding-alist', which take precedence over `file-coding-system-alist' (bug#9575). 2019-08-19 Lars Ingebrigtsen Add a new hook: `quit-window-hook' * doc/lispref/windows.texi (Quitting Windows): Mention in. * lisp/window.el (quit-restore-window): Run the new `quit-window-hook' before doing anything else (bug#9867). (quit-window): Note that the hook will be run in the doc string. * lisp/window.el (quit-window-hook): New variable. 2019-08-19 Paul Eggert Fix org-table 65536-second bug * lisp/org/org-table.el (org-table-message-once-per-second): Fix bug when clock difference goes past a 65536-second boundary. Don’t assume particular format for current-time result. 2019-08-19 Paul Eggert Fix time-add/time-sub validity checking * src/timefns.c (time_arith): Check the first arg for validity even if the second arg is not finite. * test/src/timefns-tests.el (time-arith-tests): Test this. 2019-08-19 Stefan Monnier * lisp/erc/erc-stamp.el: Fix erc-echo-timestamp (bug#22700) Use lexical-binding. (erc-add-timestamp): Store the timestamp in a closure placed in cursor-sensor-functions rather than stashing it in an ad-hoc `timestamp` property. (erc-echo-timestamp): Simplify accordingly. 2019-08-18 Lars Ingebrigtsen Allow set-frame-height/set-frame-width to be used interactively * doc/lispref/frames.texi (Frame Size): Document it. * src/frame.c (Fset_frame_height): (Fset_frame_width): Make into commands that use the numeric prefix to set height/width (bug#9970). 2019-08-18 Štěpán Němec Add an advice-add/interactive spec example * doc/lispref/functions.texi (Core Advising Primitives): Add an advice-add example that extends the `interactive' spec (bug#17871). 2019-08-18 Johan Claesson Invalidate dir-locals-directory-cache when writing dir-local file * lisp/files-x.el (modify-dir-local-variable): Remove file from the cache when writing to ensure that we load the new version later (bug#13860). 2019-08-18 Noam Postavsky Handle more subprocess chunking in M-x man (Bug#36927) * lisp/man.el (Man-bgproc-filter): Make sure not to chop man sections by narrowing. (Man-highlight-references0): Revert previous fix, as it's no longer needed. * test/lisp/man-tests.el (man-tests-filter-strings): New function. (man-bgproc-filter-buttonize-includes): New test. 2019-08-18 Paul Eggert Improve bignum_integer static checking * src/bignum.h (bignum_integer): Now returns pointer-to-const, to catch trivial mistakes where the caller might try to modify a Lisp bignum. Lisp bignums are supposed to be immutable. All callers changed. 2019-08-18 Eli Zaretskii Attempt to fix assertion violation in eval.c * src/eval.c (Fautoload): Fix an assertion violation in make_fixnum. Reported by martin rudalics . 2019-08-17 Lars Ingebrigtsen Make `browse-url-of-buffer' work from zip files * lisp/net/browse-url.el (browse-url-of-buffer): Make `C-c C-v' work in HTML buffers visited from zip files and the like (bug#10318). 2019-08-17 Paul Eggert Fix org-timer-show-remaining-time > 1 hour * lisp/org/org-timer.el (org-timer-show-remaining-time): Don’t assume the remaining time is less than one hour. Simplify. The simplification removes the need for a decode-time, and fixes a typo I introduced recently. 2019-08-17 Lars Ingebrigtsen Make `describe-function' say that disabled functions are disabled * lisp/help-fns.el (help-fns--disabled): New function (bug#10853). (help-fns-describe-function-functions): Add it to the list of function help functions. 2019-08-17 Lars Ingebrigtsen Make newline-and-indent take a numeric prefix * lisp/simple.el (newline-and-indent): Take a prefix argument to say how many times to perform its action (bug#10927). 2019-08-17 Lars Ingebrigtsen Issue a message on `C-x o' and there's no other window * lisp/window.el (other-window): Issue a message when the user types `C-x o' and there's no other window to select (bug#10999). 2019-08-17 Lars Ingebrigtsen Issue a message on `C-x 1' when there's nothing to do * lisp/window.el (delete-other-windows): Make `C-x 1' issue a message when there's no other windows to delete (bug#10999). 2019-08-17 Lars Ingebrigtsen Doc clarification in two comment-* functions * lisp/newcomment.el (comment-padright, comment-padleft): Note that `comment-normalize-vars' must be called first (bug#11944). 2019-08-17 Paul Eggert Add FIXMEs for subsecond support This adds FIXMEs to areas where Lisp code should support subsecond information in broken-down timestamps. It also fixes some unnecessary truncation of timestamps, and ports the code to a hypothetical future Emacs version where (decode-time) returns subsecond timestamps by default. * lisp/calc/calc-forms.el (calc-time, math-iso-dt-to-date) (calcFunc-now): * lisp/calendar/icalendar.el (icalendar--add-decoded-times): * lisp/calendar/iso8601.el (iso8601-parse-interval): Truncate seconds to an integer, and add a FIXME about subseconds support. * lisp/calendar/icalendar.el (icalendar--decode-isodatetime) (icalendar--decode-isoduration): Add a FIXME about subseconds support. * lisp/gnus/gnus-delay.el (gnus-delay-article): Don’t truncate seconds to an integer, as there’s no need to do that here. * lisp/gnus/gnus-util.el (gnus-seconds-today) (gnus-seconds-month, gnus-seconds-year): * lisp/gnus/message.el (message-make-expires-date): * lisp/org/org-timer.el (org-timer-show-remaining-time): * lisp/vc/ediff-mult.el (ediff-format-date): Truncate seconds to an integer, as that’s what’s wanted here. * lisp/midnight.el (midnight-next): Ceiling seconds to an integer, as that’s what wanted here. 2019-08-17 Juri Linkov * lisp/frameset.el (frameset-restore): Make sure last-focus frame has focus. Call select-frame-set-input-focus to restore focus on the frame that had last-focus-update frame parameter before saving frameset. (Bug#36894) 2019-08-17 Lars Ingebrigtsen Doc clarification for call-interactively * src/callint.c (Fcall_interactively): Be explicit about what we mean by "inquire" in the doc string (bug#15653). 2019-08-17 Paul Eggert Port test harness to Solaris 10 * test/Makefile.in (ELFILES): Port to Solaris 10, where ‘find’ does not support ‘-path’. 2019-08-17 Paul Eggert Update from Gnulib This incorporates: 2019-08-17 intprops: port to Oracle Developer Studio 12.6 2019-08-14 intprops: support uchar, ushort _WRAPV dests * lib/intprops.h: Copy from Gnulib. 2019-08-17 Eli Zaretskii Improve support of the ancient Egyptian script * lisp/international/fontset.el (script-representative-chars) (setup-default-fontset): Add Egyptian. (Bug#15420) 2019-08-17 Paul Eggert Have time-add etc. respect CURRENT_TIME_LIST too * src/timefns.c (time_arith) [!CURRENT_TIME_LIST]: Don’t generate a list, since CURRENT_TIME_LIST is false. 2019-08-16 Eli Zaretskii Fix a recent documentation change * doc/emacs/windows.texi (Other Window): Add a cross-reference to "Rebinding". (Bug#12431) 2019-08-16 Paul Eggert More-compatible subsecond calendrical timestamps Instead of appending a subseconds member to the result of ‘decode-time’, this keeps the format unchanged unless you give a new optional argument to ‘decode-time’. Also, the augmented format now puts the subsecond info in the SECONDS element, so the total number of elements is unchanged; this is more compatible with code that expects the traditional 9 elements, such as ‘(pcase decoded-time (`(,SEC ,MIN ,HOUR ,DAY ,MON ,YEAR ,DOW ,DST ,ZONE) ...) ...)’. * doc/lispref/os.texi, doc/misc/emacs-mime.texi, etc/NEWS: * lisp/net/soap-client.el (soap-decode-date-time): * lisp/simple.el (decoded-time): Document the new behavior. * lisp/calendar/icalendar.el (icalendar--decode-isodatetime): * lisp/calendar/iso8601.el (iso8601-parse) (iso8601-parse-time, iso8601-parse-duration) (iso8601--decoded-time): * lisp/calendar/parse-time.el (parse-time-string): * lisp/calendar/time-date.el (decoded-time-add) (decoded-time--alter-second): * lisp/org/org.el (org-parse-time-string): * lisp/simple.el (decoded-time): * src/timefns.c (Fdecode_time, Fencode_time): * test/lisp/calendar/icalendar-tests.el: (icalendar--decode-isodatetime): * test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years) (test-iso8601-date-dates, test-iso8601-date-obsolete) (test-iso8601-date-weeks, test-iso8601-date-ordinals) (test-iso8601-time, test-iso8601-combined) (test-iso8601-duration, test-iso8601-intervals) (standard-test-dates, standard-test-time-of-day-fractions) (standard-test-time-of-day-beginning-of-day) (standard-test-time-of-day-utc) (standard-test-time-of-day-zone) (standard-test-date-and-time-of-day, standard-test-interval): * test/lisp/calendar/parse-time-tests.el (parse-time-tests): * test/src/timefns-tests.el (format-time-string-with-zone) (encode-time-dst-numeric-zone): Revert recent changes that added a SUBSECS member to calendrical timestamps, since that component is no longer present (the info, if any, is now in the SECONDS member). * lisp/calendar/time-date.el (decoded-time-add) (decoded-time--alter-second): Support fractional seconds in the new form. Simplify. * src/timefns.c (Fdecode_time): Support new arg FORM. (Fencode_time): Support subsecond resolution. * test/src/timefns-tests.el (format-time-string-with-zone) (decode-then-encode-time): Test subsecond calendrical timestamps. 2019-08-16 Paul Eggert Broaden format-seconds to Lisp timestamps * lisp/calendar/time-date.el (format-seconds): Accept any Lisp timestamp instead of insisting on a number. 2019-08-16 Paul Eggert Subtracting “now” from “now” should yield zero * src/timefns.c (time_arith): Arrange for (time-subtract nil nil) to yield 0, to be consistent with (time-equal-p nil nil). * test/lisp/calendar/time-date-tests.el (test-time-since): New test. 2019-08-16 Paul Eggert Fix time-add rounding bug Without this fix, time arithmetic yielded results that were not mathematically accurate, even though the exact results were representable; for example, (time-add 0 1e-13) yielded a timestamp equal to 0 instead of to 1e-13. * lisp/timezone.el (timezone-time-from-absolute): Let time-add do its thing rather than using floating point internally, which has rounding errors. We now have bignums and so don’t need floating point to avoid overflow issues. * src/timefns.c (timeform_sub_ps_p): New function. (time_arith): If either argument is a float, represent the result exactly instead of discarding sub-ps info. * test/lisp/timezone-tests.el (timezone-tests-time-from-absolute): Don’t assume (HI LO US PS) timestamp format. * test/src/emacs-module-tests.el (mod-test-add-nanosecond/valid): Don’t assume that time-add discards sub-ns info. * test/src/timefns-tests.el (time-rounding-tests): Add regression test to detect time-add rounding bug. 2019-08-16 Lars Ingebrigtsen Mention `next-multiframe-window' when talking about `other-window' * doc/emacs/windows.texi (Other Window): Mention the `next-multiframe-window' command here (which is otherwise not documented in the manual) (bug#12431). 2019-08-16 Lars Ingebrigtsen Add missing skeleton entries in autotype.texi * doc/misc/autotype.texi: Add missing entries found in the doc string to `skeleton-insert' (bug#12563). 2019-08-16 Alex Branham Make checkdoc check cl-lib function docstrings * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): Remove calls to delete-region to avoid deleting final " (bug#26328). * lisp/emacs-lisp/checkdoc.el (checkdoc--next-docstring) (checkdoc-defun-info): Include cl-defun, cl-defgeneric, cl-defmethod. (checkdoc-this-string-valid-engine): Add cl-lib supported keywords. (checkdoc-defun-info): Ensure function parameters are a "flat" list (bug#37034). 2019-08-16 Alex Branham Avoid deleting closing quotation mark in checkdoc * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): Remove calls to delete-region to avoid deleting final " (bug#26328). 2019-08-16 Thomas Fitzsimmons Revert "package.el: Allow Package-Requires to span multiple lines (Bug#36301)" This reverts commit 19c1e4c81c7442dea48253e5961b6e54d78b6f0a. This commit broke some package tests, reverting for now. 2019-08-16 Lars Ingebrigtsen Mention that text properties are removed in substitute-command-keys * src/doc.c (Fsubstitute_command_keys): Restore the bit in the doc string that mentions that text properties is removed (bug#17052). 2019-08-15 Lars Ingebrigtsen Add some examples in "Adding Generalized Variables" * doc/lispref/variables.texi (Adding Generalized Variables): Add examples for `gv-define-expander' and `gv-letplace' (bug#13343). 2019-08-15 Thomas Fitzsimmons package.el: Allow Package-Requires to span multiple lines (Bug#36301) * lisp/emacs-lisp/package.el (lm-header-multiline): Declare function. (package-buffer-info): Parse Package-Requires with lm-header-multiline instead of lm-header. (Bug#36301) 2019-08-15 Thomas Fitzsimmons Do not recreate full URL for proxied HTTPS requests (Bug#35969) * lisp/url/url-http.el (url-http-create-request): Do not recreate full URL for proxied HTTPS requests. (url-https-proxy-after-change-function): Do not bind url-http-proxy to nil before calling url-http-create-request. (Bug#35969) 2019-08-15 Andreas Merziger Make diary-european-date-forms elements mutually exclusive * lisp/calendar/calendar.el (diary-european-date-forms): Make the elements mutually exclusive (bug#13536). 2019-08-15 Lars Ingebrigtsen Fix up previous cl-def* changes in bovine * lisp/cedet/semantic/bovine/el.el (lambda): cl-defun* doesn't exist (bug#17005). (lambda): Add cl-defstruct. (semantic-up-context): Add cl- forms. 2019-08-15 Lars Ingebrigtsen Reimplement the `fill-flowed' function to respect space stuffing * lisp/mail/flow-fill.el (fill-flowed): Reimplement the function to respect space-stuffing (bug#17190). * test/lisp/mail/flow-fill-tests.el (fill-flow-tests-fill-flowed-stuffed): New test. (fill-flow-tests-fill-flowed-decode): Rename the test so that it actually runs. 2019-08-15 Alex Branham Fix eshell-mode-map initialization * lisp/eshell/esh-mode.el (eshell-mode-map, eshell-command-map): Set up normal keymaps and prefix commands rather than re-initializing them in each eshell buffer * lisp/eshell/em-cmpl.el (eshell-cmpl-mode-map, eshell-cmpl-mode) (eshell-cmpl-initialize): * lisp/eshell/em-hist.el (eshell-hist-mode-map, eshell-hist-mode) (eshell-hist-initialize): * lisp/eshell/em-pred.el (eshell-pred-mode-map, eshell-pred-mode) (eshell-pred-initialize): * lisp/eshell/em-prompt.el (eshell-prompt-mode-map, eshell-prompt-mode) (eshell-prompt-initialize): * lisp/eshell/em-rebind.el (eshell-rebind-mode-map, eshell-rebind-mode) (eshell-rebind-initialize): * lisp/eshell/esh-arg.el (eshell-arg-mode-map, eshell-arg-mode) (eshell-arg-initialize): * lisp/eshell/esh-proc.el (eshell-proc-mode-map, eshell-proc-mode) (eshell-proc-initialize): * lisp/eshell/esh-var.el (eshell-var-mode-map, eshell-var-mode) (eshell-var-initialize): Create a new minor mode with a keymap and call it in the module initialization function. bug#33808 bug#22792 2019-08-15 Lars Ingebrigtsen Rename variables and functions with "auto-load" in their names * doc/emacs/building.texi (Lisp Libraries): Adjust documentation. * lisp/help-fns.el (help--symbol-completion-table): Adjust usage. * lisp/help-fns.el (help-enable-completion-autoload): Change name from auto-load and declare an obsolete alias (bug#13418). * lisp/help.el (help-enable-autoload): Ditto. * lisp/progmodes/vhdl-mode.el: Ditto. (vhdl-create-mode-menu, vhdl-mode): Adjust usage. (vhdl-autoload-project): Rename from auto-load and declare an obsolete alias. 2019-08-15 Lars Ingebrigtsen Remove mentions of XEmacs from the Gnus manual and faq * doc/misc/gnus-faq.texi: * doc/misc/gnus.texi: Remove references to XEmacs throughout. 2019-08-15 Lars Ingebrigtsen Mention what effect nil has as the prompt for read-event/char/etc * doc/lispref/commands.texi (Reading One Event): Mention that "" has the same effect as nil as a prompt. * src/lread.c (Fread_event, Fread_char_exclusive, Fread_char): Mention what happens when PROMPT is nil/"" in the doc string (bug#15012). 2019-08-15 Lars Ingebrigtsen etc/NEWS: Note that `list-processes' includes port numbers now. 2019-08-15 Paul Eggert Fix typeof portability issue with bitfields Problem reported by Glenn Morris in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00300.html * src/lisp.h (lisp_h_make_fixnum): Use typeof (+(n)) instead of typeof (n), so that it works with compilers that do not allow typeof to be applied to a bitfield. 2019-08-15 Paul Eggert Fix rounding errors with float timestamps When converting from float to (TICKS . HZ) form, do the conversion exactly. When converting from (TICKS . HZ) form to float, round to even precisely. This way, successfully converting a float to (TICKS . HZ) and back yields a value numerically equal to the original. * src/timefns.c (flt_radix_power_size): New constant. (flt_radix_power): New static var. (decode_float_time): Convert the exact numeric value rather than guessing TIMESPEC_HZ resolution. (s_ns_to_double): Remove; no longer needed. (frac_to_double): New function. (decode_ticks_hz): It is now the caller’s responsibility to pass a valid TICKS and HZ. All callers changed. Use frac_to_double to round (TICKS . HZ) precisely. (decode_time_components): When decoding nil, use decode_ticks_hz since it rounds precisely. (syms_of_timefns): Initialize flt_radix_power. * test/src/timefns-tests.el (float-time-precision): New test. 2019-08-15 Michael Albinus Give auto-revert-test02-auto-revert-deleted-file a chance on hydra * test/lisp/autorevert-tests.el (auto-revert-test02-auto-revert-deleted-file): Don't skip on hydra. 2019-08-15 Michael Albinus Improve Tramp manual * doc/misc/tramp.texi (GVFS based methods): Explain using `ftp' and `smb' methods. 2019-08-15 Paul Eggert Debug out-of-range make_fixnum args With --enable-checking, make_fixnum (N) now checks that N is in fixnum range. Suggested by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00548.html A new function make_ufixnum (N) is for the rare cases where N is intended to be unsigned and is in the range 0..INTMASK. * configure.ac (AC_C_TYPEOF): Add. (HAVE_STATEMENT_EXPRESSIONS): Resurrect this macro. * src/fns.c (Frandom, hashfn_eq, hashfn_equal, hashfn_user_defined): * src/profiler.c (hashfn_profiler): Use make_ufixnum rather than make_fixum, since the argument is an unsigned integer in the range 0..INTMASK rather than a signed integer in the range MOST_NEGATIVE_FIXNUM..MOST_POSITIVE_FIXNUM. Typically this is for hashes. * src/lisp.h (lisp_h_make_fixnum_wrap) [USE_LSB_TAG]: Rename from lisp_h_make_fixnum. (lisp_h_make_fixnum): Redefine in terms of lisp_h_make_fixnum_wrap. Check for fixnum overflow on compilers like GCC that have statement expressions and typeof. (FIXNUM_OVERFLOW_P): Move up. (make_fixnum): Check for fixnum overflow. (make_ufixnum): New function, which checks that the arg fits into 0..INTMASK range. 2019-08-15 Paul Eggert Fix some fixnum overflow problems in ccl.c * src/ccl.c (ccl_driver, Fccl_execute, Fccl_execute_on_string): Don’t assume CCL registers fit into fixnums. 2019-08-15 Paul Eggert Port mod-test-nanoseconds to 32-bit Emacs * test/src/emacs-module-tests.el (mod-test-nanoseconds): Don’t assume -1000000000 is a fixnum. 2019-08-15 Lars Ingebrigtsen Include port numbers in `M-x list-processes' * lisp/simple.el (list-processes--refresh): Include the port numbers in the network connection list (bug#13604). 2019-08-15 Lars Ingebrigtsen Add some cl- concept index entries * doc/misc/cl.texi (Argument Lists): Add a couple of concept index entried (bug#13606). 2019-08-14 Lars Ingebrigtsen Clarify the doc string of complete-with-action * lisp/minibuffer.el (complete-with-action): Doc string clarification (bug#13993). 2019-08-14 Lars Ingebrigtsen Clean up Gnus manual reference to XEmacs variables * doc/misc/gnus.texi (XVarious): Remove section about XEmacs variables that have been removed. 2019-08-14 Lars Ingebrigtsen Minor Scroll Bars clarification * doc/emacs/frames.texi (Scroll Bars): Clarify what we mean by "customize" here (bug#14321). 2019-08-14 Lars Ingebrigtsen Arrange custom-face-attributes closer to how heavy they are * lisp/cus-face.el (custom-face-attributes): Arrange the weights more in order of how heavy they are (bug#15526). 2019-08-14 Lars Ingebrigtsen Use gnus-summary-button-forward in gnus-summary-mode-map * lisp/gnus/gnus-sum.el (gnus-summary-mode-map): Use `gnus-summary-button-forward' instead of the obsolete `gnus-summary-widget-forward'. 2019-08-14 Paul Eggert Remove INT_ADD_WRAPV bug workarounds * src/alloc.c (free_cons): * src/casefiddle.c (do_casify_multibyte_string): * src/editfns.c (styled_format): * src/image.c (png_load_body): Remove recent workarounds for INT_ADD_WRAPV bugs since the bugs have been fixed (Bug#37006). 2019-08-14 Lars Ingebrigtsen Add C-b/f/p/n keystrokes in `M-x snake' * lisp/play/snake.el (snake-mode-map): Add the C-b/f/p/n in addition to the cursor keys (bug#16720). 2019-08-14 Paul Eggert Update from Gnulib This incorporates: 2019-08-14 intprops: pacify picky GCC 2019-08-14 intprops: support unsigned *_WRAPV results 2019-08-12 verify: improve diagnostic quality in recent GCC * lib/intprops.h, lib/verify.h: Copy from Gnulib. 2019-08-14 Lars Ingebrigtsen Add cl-def* forms to bovine/el.el * lisp/cedet/semantic/bovine/el.el (lambda): Add the cl-def* variations to allow semantic to find the definitions (bug#17005). 2019-08-14 Lars Ingebrigtsen Don't alter function name face height in manoj-dark theme * etc/themes/manoj-dark-theme.el (manoj-dark): Don't alter the height of function name faces, because this makes many tabulated modes not longer line up (bug#17042). 2019-08-14 Lars Ingebrigtsen Respect the BUFFER parameter in `fill-flowed' * lisp/mail/flow-fill.el (fill-flowed): `current-buffer' is always non-nil, so respect the BUFFER parameter. Also add a doc string. 2019-08-14 Lars Ingebrigtsen Output the maintainer and author(s) in the package description buffer * lisp/emacs-lisp/package.el (describe-package-1): Output maintainer and author(s) (bug#17573). (package--print-email-button): New function. 2019-08-14 Eli Zaretskii Fix fetching URLs with stuff that looks like HTTP headers * lisp/url/url-http.el (url-http-parse-headers): Narrow the buffer to the headers at the beginning to make sure url-handle-content-transfer-encoding uses the correct headers. (Bug#37023) 2019-08-13 Paul Eggert Don’t increase consing_until_gc when out of memory * src/alloc.c (memory_full): Don’t increase consing_until_gc. Suggested by Eli Zaretskii (Bug#37006#46). 2019-08-13 Paul Eggert Let consing_until_gc exceed EMACS_INT_MAX This builds on the previous patch. * src/alloc.c (consing_until_gc): Now of type intmax_t, since gc-cons-threshold can be up to INTMAX_MAX. All uses changed. * src/lisp.h (CONSING_CT_MAX, consing_ct): Remove. 2019-08-13 Paul Eggert Let consing_until_gc exceed INTPTR_MAX Suggested by Eli Zaretskii (Bug#37006#46). * src/alloc.c (consing_until_gc): Now of type consing_ct. All uses changed, so gc-cons-threshold no longer saturates against OBJECT_CT_MAX. (object_ct): Move typedef here from lisp.h. * src/lisp.h (consing_ct, CONSING_CT_MAX): New type and macro. (OBJECT_CT_MAX): Remove. Replace all uses with CONSING_CT_MAX. 2019-08-13 Paul Eggert Fix GC threshold typo Problem reported by Eli Zaretskii (Bug#37006#25). * src/alloc.c (garbage_collect_1): Fix typo in threshold calc. Go back to dividing by 10 since the numerator’s a constant now. Problem introduced in 2019-07-21T02:40:03Z!eggert@cs.ucla.edu. 2019-08-13 Eli Zaretskii Improve documentation of 'diff-font-lock-prettify' * lisp/vc/diff-mode.el (diff-font-lock-prettify): Doc fix. * etc/NEWS: Minor copyedits. 2019-08-13 Eli Zaretskii Fix initialization of user-defined fringe bitmaps in daemon mode * src/fringe.c (gui_init_fringe): Rename from w32_init_fringe or x_cr_init_fringe, and make unconditionally compiled; all callers changed. Do nothing if the frame's redisplay_interface doesn't implement the define_fringe_bitmap method. Set up any user-defined fringe bitmaps in addition to the standard bitmaps. Suggested by Liam Quinlan in https://lists.gnu.org/archive/html/emacs-devel/2019-08/msg00259.html. (w32_reset_fringes) [HAVE_NTGUI]: Do nothing if the frame's redisplay_interface doesn't implement the destroy_fringe_bitmap method. * src/w32fns.c (Fx_create_frame): Call gui_init_fringe when the first GUI frame is created for this session. * src/dispextern.h (w32_init_fringe): Rename to gui_init_fringe and make unconditional. (x_cr_init_fringe): Remove prototype. 2019-08-12 Óscar Fuentes * lisp/password-cache.el: adapt test to change in password-in-cache-p 2019-08-12 Michael Albinus Quote file names properly in Tramp * lisp/net/tramp.el (tramp-handle-file-truename) (tramp-handle-insert-directory): * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename): * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename) (tramp-sh-handle-insert-directory): * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-truename): Use `tramp-compat-directory-name-p'. * lisp/net/tramp.el (tramp-drop-volume-letter) (tramp-handle-file-truename): * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename): * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link) (tramp-sh-handle-file-truename): * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-truename): (tramp-sudoedit-handle-make-symbolic-link): Quote properly. * lisp/net/tramp-compat.el (tramp-compat-file-name-quote) (tramp-compat-file-name-unquote): Add optional argument TOP. 2019-08-12 Michael Albinus Handle symbolic links properly in Tramp gfvs methods * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-readable-p): Handle symbolic links. 2019-08-12 Michael Albinus Fix caching problem in Tramp smb method * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties): Add "file-entries", 2019-08-11 Paul Eggert Prefer signed when testing for signed overflow * src/alloc.c (free_cons): * src/casefiddle.c (do_casify_multibyte_string): * src/editfns.c (styled_format): * src/image.c (png_load_body): Use signed arguments to INT_MULTIPLY_WRAPV etc. This doesn’t fix any bugs, but GCC emits better code when all args are signed. Also, this removes the need for an if in free_cons (Bug#37006). 2019-08-11 Óscar Fuentes password-cache: differentiate null values from non-existent entries * lisp/password-cache.el (password-in-cache-p, password-cache-add): properly detect non-existent entry. (Bug#36834) 2019-08-11 Eli Zaretskii Fix garbage collection * src/alloc.c (free_cons): Avoid false positives in INT_ADD_WRAPV. (Bug#37006) 2019-08-11 Eric Abrahamsen Prompt for new sieve script names in sieve management * lisp/net/sieve.el (sieve-edit-script): Otherwise the user ends up with a script named '.sieve'. 2019-08-11 Michael Albinus Retrieve start time from remote machine, use compat attrib functions * lisp/net/tramp-compat.el (tramp-compat-file-attribute-access-time) (tramp-compat-file-attribute-status-change-time): New defaliases. * test/lisp/net/tramp-tests.el (tramp--test-start-time): New defvar. (tramp--test-file-attributes-equal-p) (tramp-test19-directory-files-and-attributes): Use it. (tramp-test18-file-attributes) (tramp--test-file-attributes-equal-p, tramp-test20-file-modes) (tramp-test22-file-times, tramp--test-check-files): Use `tramp-compat-file-attribute-*' functions. 2019-08-10 Glenn Morris Set custom :version for recently modified undo options * lisp/cus-start.el (undo-limit, undo-strong-limit, undo-outer-limit): Bump :version. 2019-08-10 Stefan Kangas * doc/emacs/calendar.texi (Time Intervals): Doc fix. 2019-08-10 Stefan Kangas Double undo limits * src/undo.c (syms_of_undo) : Double undo limits. (Bug#31104) 2019-08-10 Glenn Morris Merge from origin/emacs-26 0860ac0 (origin/emacs-26) Improve documentation of features that use ... fae1ff6 Fix docstrings in pong 82a2894 Improve doc strings of 'append-to-buffer' and friends cb0403d Fix octave-mode ElDoc support 691790b Avoid Groff hanging on MS-Windows when invoked by "M-x man" 2019-08-10 Glenn Morris Merge from origin/emacs-26 e7818cb Fix nnmail-expiry-wait docs and custom :types 8b7c776 * lisp/simple.el (kill-do-not-save-duplicates): Doc fix. (Bu... 2019-08-10 Michael Albinus Use a time offset when comparing times of local and remote machines * test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p): Use a time offset in order to compensate different times on local and remote machines. 2019-08-10 Mauro Aranda Fix pong collision detection * lisp/play/pong.el (pong-update-game): If the ball hit the bat where bats are positioned, draw again the bat cell in the old ball position. (Bug#20579). Also, avoid changing the direction of the ball right after hitting the bats, and improve the collision detection against the borders. 2019-08-10 Alex Gramiak Set up defined_color_hook for the initial frame * src/terminal.c (init_initial_terminal): Set up the defined_color_hook. This avoids crashes when running in batch mode with code that manipulates colors. (Bug#36019) 2019-08-10 Philippe Schnoebelen (tiny change) Support bool-vectors in cl-extra.el * lisp/emacs-lisp/cl-extra.el (cl-coerce): Support bool-vector. 2019-08-09 Juri Linkov * lisp/frameset.el (frameset--minibufferless-last-p): Add comments (bug#36894) 2019-08-09 Eli Zaretskii Fix highlighting in man pages displayed by "M-x man" * lisp/man.el (Man-highlight-references0): Handle the case when a section is divided between 2 or more chunks of text received from the 'man' program. (Bug#36927) 2019-08-09 Eli Zaretskii Fix doc strings modified in recent changes * src/xfns.c (Fx_change_window_property) (Fx_delete_window_property, Fx_window_property) (Fx_window_property_attributes): Doc fixes. 2019-08-08 Noah Friedman Provide better target window consistency across x window property functions. Use the argument name WINDOW-ID instead of SOURCE for same. Revise docstrings to clarify semantics of FRAME and WINDOW-ID. (Fx_change_window_property): Use `target_window' instead of `w'. This is consistent with other related functions. Finalize its value before blocking input. (Fx_window_property): (Fx_window_property_attributes): Use `window_id' instead of `source'. (Fx_delete_window_property): New optional arg window_id. 2019-08-08 Noah Friedman (Fx_change_window_property): Rename SOURCE arg to WINDOW-ID 2019-08-08 Noah Friedman (Fx_change_window_property): Add optional arg SOURCE. This provides symmetry with Fx_window_property, so that the window need not be an actual emacs frame. This is useful for modifying properties of parent windows (specified with --parent-id to emacs) or generally assisting the window manager. 2019-08-08 Stefan Kangas Use "python -m pdb" when "pdb" is missing in M-x pdb * lisp/progmodes/gud.el (gud-pdb-command-name): Use "python -m pdb" when "pdb" is missing. (Bug#21521) 2019-08-08 Noam Postavsky Say how to enable event designators in the eshell manual * doc/misc/eshell.texi (History): Mention that event designators need to be enabled. * etc/NEWS: Mark corresponding entry as documented in manual. 2019-08-08 Michael Albinus Work on Tramp backward compatibility * 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): Use `tramp-compat-directory-name-p'. 2019-08-08 Michael Albinus Improve time arithmetic in tramp--test-file-attributes-equal-p * test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p): Improve time arithmetic. 2019-08-08 Michael Albinus Suppress false alarm in Tramp * lisp/net/tramp.el (tramp-dissect-file-name): Suppress false alarm. 2019-08-08 Stefan Kangas Suppress interactive-only warnings in undo-tests.el (Bug#36565) * test/src/undo-tests.el (undo-test-region-deletion) (undo-test-region-example, undo-test-marker-adjustment-nominal) (undo-test-region-t-marker, undo-test-marker-adjustment-moved) (undo-test-region-mark-adjustment): Suppress interactive-only warnings by using funcall-interactively. 2019-08-08 Mattias Engdegård Suppress relint errors in fortran.el * lisp/progmodes/fortran.el (fortran-indent-to-column): Suppress relint complaints about duplicated character in skip-set; it's intentional and harmless. 2019-08-08 Mattias Engdegård Fix XTerm OSC 52 selection retrieval (bug#36879) When asking XTerm for the selection via OSC 52, use ST as string terminator in the request to get ST as terminator in the reply, because BEL is messy to receive in many ways. * lisp/term/xterm.el (gui-backend-get-selection): Use ST as string terminator in request and reply. Use a time-out when reading the reply. 2019-08-07 Glenn Morris Tests need to be moved when source files are * test/lisp/obsolete/cl-tests.el: Move from test/lisp/emacs-lisp. 2019-08-07 Michael Albinus Continue to work on Bug#36940 * test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p): Make the check more precise. (Bug#36940) 2019-08-07 Robert Pluim Change nsm-should-check to look at local subnets * lisp/net/nsm.el (nsm-network-same-subnet): New function. Checks if an ip address is in the same subnet as another one. (nsm-should-check): Use nsm-network-same-subnet to see if we're connecting to a local subnet machine. Remove checks for RFC1918 addresses. * test/lisp/net/nsm-tests.el: New file. Test nsm-should-check functionality. 2019-08-07 Robert Pluim fixup! Implement hostname->ip lookup function 2019-08-06 Paul Eggert Re-port dump_bitset_clear to -fsanitize=undefined * src/pdumper.c (dump_bitset_clear): Skip the memset if the size is zero, because in that case the destination might be NULL. This fixes a bug introduced in 2019-07-26T06:17:52Zeggert@cs.ucla.edu. Add a comment to make the bug less likely to reoccur. 2019-08-06 Stefan Monnier * lisp/gnus/message.el (message-sendmail-f-is-evil): Revert recent change (bug#36937) 2019-08-06 Michael Albinus Fix Bug#36940 * test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p): Make the check more precise. (Bug#36940) (tramp-test19-directory-files-and-attributes): Move some checks to `tramp--test-file-attributes-equal-p'. 2019-08-06 Alan Mackenzie C++ Mode: Prevent End of statement being found after {} in "count << vec{} <<" * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): Check for operators which cannot start a statement, which may follow a closing brace. Don't recognise an end of statement in such a case. * lisp/progmodes/cc-langs.el (c-operator-re, c-bin-tern-operators) (c-unary-operators, c-non-after-{}-operators, c-non-after-{}-ops-re): New lang consts and vars. 2019-08-06 Eli Zaretskii Fix minor compilation problems on MS-Windows * src/w32fns.c (Fdefault_printer_name): Fix size of local buffer. * src/image.c [WINDOWSNT]: Test __MINGW_MAJOR_VERSION as well to shut up compiler warnings. 2019-08-06 Mattias Engdegård Fix various Calc date conversions (bug#36822) * lisp/calc/calc-forms.el (math-absolute-from-gregorian-dt): Rewrite in a way that I understand, and that actually seems to work. (math-absolute-from-julian-dt): Use Julian, not Gregorian, leap year rules for counting days within a year. (math-julian-date-beginning, math-julian-date-beginning-int): Change constants to be consistent with their doc strings and the code: use Rata Die epoch at Dec 31, 1 BC Gregorian proleptic, not Julian. * doc/misc/calc.texi (Date Forms): Correct difference between Julian Day and Rata Die. * test/lisp/calc/calc-tests.el (calc-test-calendar): New test. 2019-08-06 Mattias Engdegård Add conditional operator xor to subr.el Suggested by Oleh Krehel and implemented by Basil Contovounesios in the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00547.html * lisp/array.el (xor): Move unused function from here... * lisp/subr.el: ...to here, and improve. * lisp/gnus/spam.el (spam-xor): * lisp/play/5x5.el (5x5-xor): * lisp/proced.el (proced-xor): * lisp/progmodes/idlwave.el (idlwave-xor): * lisp/vc/diff-mode.el (diff-xor): Define as obsolete aliases of, and replace all uses with, xor. * lisp/jsonrpc.el: Remove unused dependency on array.el. * lisp/org/org.el (org-xor): Move from here... * lisp/org/org-compat.el (org-xor): ...to here, as a compatibility shim for xor. * lisp/progmodes/idlw-shell.el (idlwave-shell-enable-all-bp): * lisp/simple.el (exchange-point-and-mark): * lisp/windmove.el (windmove-display-in-direction): Use xor. * lisp/strokes.el (strokes-xor): Remove commented-out xor implementation. * doc/lispref/control.texi (Control Structures): Extend menu entry for new combining condition. (Combining Conditions): * etc/NEWS (Lisp Changes): Document xor. * test/lisp/subr-tests.el (subr-test-xor): New test. 2019-08-06 Stefan Monnier Move cl.el to lisp/obsolete * lisp/emacs-lisp/cl.el: Move from here... * lisp/obsolete/cl.el: ...to here. * lisp/subr.el (do-after-load-evaluation): Use "deprecated" in the message when loading packages from lisp/obsolete. 2019-08-06 Stefan Monnier * lisp/mail/rfc2047.el (rfc2047-encodable-p): Don't require `message`. Use bound-and-true-p rather than requiring `message` to get message-posting-charset (since it defaults to nil anyway). 2019-08-06 Stefan Monnier * lisp/mh-e: Use cl-lib Also, use underscore prefixes and defvar in preparation for lexical binding * lisp/mh-e/mh-acros.el: Require cl-lib instead of cl. Rename all cl.el uses by adding `cl-` prefix. (mh-require-cl): Remove. Not needed any more. Remove all calls. (mh-defstruct): Remove. Replace all uses with cl-defstruct. (mh-dlet*): New macro. * lisp/mh-e/mh-comp.el (mh-user-agent-compose): Fold all ignored optional args into the &rest arg. * lisp/mh-e/mh-e.el: Require cl-lib instead of using mh-require-cl. (mh-variants): Don't add-to-list on a local var. * lisp/mh-e/mh-folder.el (mh-restore-desktop-buffer): Use shorter arg names that don't collide with global vars. * lisp/mh-e/mh-mime.el (mh-insert-mime-button): (mh-insert-mime-security-button): Use mh-dlet*. * lisp/mh-e/mh-search.el (mh-swish-next-result, mh-grep-next-result) (mh-namazu-next-result): Use `or`. * lisp/mh-e/mh-thread.el (mh-thread-generate) (mh-thread-prune-containers): Use underscore rather than declare+ignore. * lisp/mh-e/mh-tool-bar.el (mh-tool-bar-define): Use mh-dlet*. (mh-tool-bar-define): Prefer the more precise \`...\' regexp ops. Prefer Elisp's `eval-and-compile` over `cl-eval-when`. * lisp/mh-e/mh-xface.el (mh-picon-get-image): Don't use mh-funcall-if-exists for ietf-drums-parse-address. Avoid the use of `cl-return` and hence use plain `defun`. Replace some `cl-loop` with `dolist`. 2019-08-05 Paul Eggert decode-time now returns subsec too The list that decode-time returns now contains an extra trailing component that counts the subseconds part of the original timestamp (Bug#36549). This builds on a suggestion by Lars Ingebrigtsen in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00734.html * doc/lispref/os.texi (Time Conversion): * doc/misc/emacs-mime.texi (time-date): * etc/NEWS: Document this. * lisp/calendar/icalendar.el (icalendar--decode-isodatetime): * lisp/calendar/iso8601.el (iso8601-parse) (iso8601-parse-time, iso8601-parse-duration) (iso8601--decoded-time): * lisp/calendar/parse-time.el (parse-time-string): * lisp/calendar/time-date.el (make-decoded-time) (decoded-time-set-defaults): * lisp/org/org.el (org-fix-decoded-time) (org-parse-time-string): * src/timefns.c (Fdecode_time): Generate subsec member for decoded time. * lisp/calendar/time-date.el (decoded-time-add) Add the decoded subsec too. * lisp/simple.el (decoded-time): New subsec member. * src/data.c (Frem): Simplify zero-check to match that of new Fmod. (integer_mod): New function, with most of the guts of the old Fmod. Remove redundant zero-check. (Fmod): Use it. * src/timefns.c (Fencode_time): Handle new subsec member or (with the obsolescent calling convention) subsec arg. It defaults to 0. * test/lisp/calendar/icalendar-tests.el: (icalendar--decode-isodatetime): * test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years) (test-iso8601-date-dates, test-iso8601-date-obsolete) (test-iso8601-date-weeks, test-iso8601-date-ordinals) (test-iso8601-time, test-iso8601-combined) (test-iso8601-duration, test-iso8601-intervals) (standard-test-dates, standard-test-time-of-day-fractions) (standard-test-time-of-day-beginning-of-day) (standard-test-time-of-day-utc) (standard-test-time-of-day-zone) (standard-test-date-and-time-of-day, standard-test-interval): * test/lisp/calendar/parse-time-tests.el (parse-time-tests): * test/src/timefns-tests.el (format-time-string-with-zone) (encode-time-dst-numeric-zone): Adjust to match new behavior. 2019-08-05 Paul Eggert New function time-convert This replaces the awkward reuse of encode-time to both convert calendrical timestamps to Lisp timestamps, and to convert Lisp timestamps to other forms. Now, encode-time does just the former and the new function does just the latter. The new function builds on a suggestion by Lars Ingebrigtsen in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00801.html and refined by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00803.html * doc/lispref/os.texi (Time of Day, Time Conversion): * doc/misc/emacs-mime.texi (time-date): * etc/NEWS: Update documentation. * lisp/calendar/cal-dst.el (calendar-next-time-zone-transition): * lisp/calendar/time-date.el (seconds-to-time, days-to-time): * lisp/calendar/timeclock.el (timeclock-seconds-to-time): * lisp/cedet/ede/detect.el (ede-detect-qtest): * lisp/completion.el (cmpl-hours-since-origin): * lisp/ecomplete.el (ecomplete-add-item): * lisp/emacs-lisp/cl-extra.el (cl--random-time): * lisp/emacs-lisp/timer.el (timer--time-setter) (timer-next-integral-multiple-of-time): * lisp/find-lisp.el (find-lisp-format-time): * lisp/gnus/gnus-diary.el (gnus-user-format-function-d): * lisp/gnus/gnus-group.el (gnus-group-set-timestamp): * lisp/gnus/gnus-icalendar.el (gnus-icalendar-show-org-agenda): * lisp/gnus/nnrss.el (nnrss-normalize-date): * lisp/gnus/nnspool.el (nnspool-request-newgroups): * lisp/net/ntlm.el (ntlm-compute-timestamp): * lisp/net/pop3.el (pop3-uidl-dele): * lisp/obsolete/vc-arch.el (vc-arch-add-tagline): * lisp/org/org-clock.el (org-clock-get-clocked-time) (org-clock-resolve, org-resolve-clocks, org-clock-in) (org-clock-out, org-clock-sum): * lisp/org/org-id.el (org-id-uuid, org-id-time-to-b36): * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src): * lisp/proced.el (proced-format-time): * lisp/progmodes/cc-cmds.el (c-progress-init) (c-progress-update): * lisp/progmodes/cperl-mode.el (cperl-time-fontification): * lisp/progmodes/flymake.el (flymake--schedule-timer-maybe): * lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info) (vhdl-fix-case-region-1): * lisp/tar-mode.el (tar-octal-time): * lisp/time.el (emacs-uptime): * lisp/url/url-auth.el (url-digest-auth-make-cnonce): * lisp/url/url-util.el (url-lazy-message): * lisp/vc/vc-cvs.el (vc-cvs-parse-entry): * lisp/vc/vc-hg.el (vc-hg-state-fast): * lisp/xt-mouse.el (xterm-mouse-event): * test/lisp/emacs-lisp/timer-tests.el: (timer-next-integral-multiple-of-time-2): Use time-convert, not encode-time. * lisp/calendar/icalendar.el (icalendar--decode-isodatetime): Don’t use now-removed FORM argument for encode-time. It wasn’t crucial anyway. * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add time-convert. * lisp/emacs-lisp/elint.el (elint-unknown-builtin-args): Update encode-time signature to match current arg set. * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time): Use timer-convert with t rather than doing it by hand. * src/timefns.c (time_hz_ticks, time_form_stamp, lisp_time_form_stamp): Remove; no longer needed. (decode_lisp_time): Rturn the form instead of having a *PFORM arg. All uses changed. (time_arith): Just return TICKS if HZ is 1. (Fencode_time): Remove argument FORM. All callers changed. Do not attempt to encode time values; just encode decoded (calendrical) times. Unless CURRENT_TIME_LIST, just return VALUE since HZ is 1. (Ftime_convert): New function, which does the time value conversion that bleeding-edge encode-time formerly did. Return TIME if it is easy to see that it is already of the correct form. (Fcurrent_time): Mention in doc that the form is planned to change. * test/src/timefns-tests.el (decode-then-encode-time): Don’t use (encode-time nil). 2019-08-05 Paul Eggert Fix minor Org timestamp inefficiencies * lisp/org/org-id.el (org-id-time-to-b36): Remove unnecessary ‘or’. * lisp/org/org.el (org-parse-time-string): Remove unnecessary ‘encode-time’. 2019-08-05 Juri Linkov * lisp/cus-start.el: Add :safe to display-fill-column-indicator (bug#36861) (display-fill-column-indicator) (display-fill-column-indicator-column) (display-fill-column-indicator-character): Add :safe predicates. 2019-08-05 Juri Linkov * lisp/frameset.el (frameset--minibufferless-last-p): Fix pcase-let. This makes frameset sorting stable. (Bug#36894) 2019-08-05 Juri Linkov * lisp/dired-x.el (dired-guess-shell-alist-default): Use git when possible. Check for Git backend and provide "git apply" for patch files (bug#36895). 2019-08-05 Juri Linkov * lisp/dired.el (dired-special): Rename face from dired-socket (bug#24547). (dired-re-special): Rename from dired-re-socket. 2019-08-05 Juri Linkov * lisp/isearch.el (isearch-define-mode-toggle): Ensure isearch-mode is active. Call 'isearch-mode' when it's nil. (Bug#36871) 2019-08-05 Eli Zaretskii Fix compilation with CHECK_STRUCTS * src/pdumper.c (dump_hash_table): Update hash of HASH_Lisp_Hash_Table. (Bug#36929) 2019-08-05 Lars Ingebrigtsen Revert "Make `view-lossage' output of chars read from `read-char' more logical" This reverts commit 1abf76877847226daa5ab7e07000ac1d4aba3478. This change apparently led to problems with kmacro. 2019-08-05 Michael Albinus Improve Tramp's caching * lisp/net/tramp.el (tramp-handle-add-name-to-file) (tramp-handle-write-region): * lisp/net/tramp-adb.el (tramp-adb-handle-make-directory) (tramp-adb-handle-delete-directory) (tramp-adb-handle-delete-file, tramp-adb-handle-write-region) (tramp-adb-handle-set-file-modes) (tramp-adb-handle-set-file-times, tramp-adb-handle-copy-file) (tramp-adb-handle-rename-file): * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file) (tramp-gvfs-handle-delete-directory) (tramp-gvfs-handle-delete-file) (tramp-gvfs-handle-make-directory) (tramp-gvfs-handle-set-file-modes) (tramp-gvfs-handle-set-file-times, tramp-gvfs-set-file-uid-gid): * lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file) (tramp-rclone-handle-delete-directory) (tramp-rclone-handle-delete-file): * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link) (tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times) (tramp-sh-handle-add-name-to-file) (tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file) (tramp-sh-handle-delete-directory, tramp-sh-handle-delete-file) (tramp-sh-handle-write-region): * lisp/net/tramp-smb.el (tramp-smb-handle-add-name-to-file) (tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file) (tramp-smb-handle-delete-directory) (tramp-smb-handle-delete-file) (tramp-smb-handle-make-directory-internal) (tramp-smb-handle-make-symbolic-link) (tramp-smb-handle-rename-file, tramp-smb-handle-write-region): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-add-name-to-file) (tramp-sudoedit-do-copy-or-rename-file) (tramp-sudoedit-handle-delete-directory) (tramp-sudoedit-handle-delete-file) (tramp-sudoedit-handle-set-file-modes) (tramp-sudoedit-handle-set-file-times) (tramp-sudoedit-handle-make-symbolic-link): Do not flush all file properties of upper directory. * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties): New defun. (tramp-flush-file-properties, tramp-flush-directory-properties): Use it. * test/lisp/net/tramp-tests.el (tramp-time-diff): Declare. (tramp--test-file-attributes-equal-p): Handle also modification and status change time. 2019-08-05 Lars Ingebrigtsen Make `view-lossage' output of chars read from `read-char' more logical * lisp/help.el (view-lossage): Use the new data format to output data from `read-char' and the like in a more understandable fashion (bug#21867). * src/keyboard.c (command_loop_1): Record (in recent_keys) the end of commands. (Frecent_keys): Don't include `end-of-command' in non-command outputs. (syms_of_keyboard): Define `end-of-command'. 2019-08-05 Lars Ingebrigtsen save-some-buffers-default-predicate doc clarification * lisp/files.el (save-some-buffers-default-predicate): Clarify calling convention. 2019-08-05 Martin Rudalics Fix doc-strings of 'display-buffer-*' functions (Bug#19461) * lisp/window.el (display-buffer-in-atom-window) (display-buffer-in-side-window, display-buffer-record-window) (display-buffer-use-some-frame, display-buffer-same-window) (display-buffer-reuse-window, display-buffer-pop-up-frame) (display-buffer-pop-up-window, display-buffer-in-child-frame) (display-buffer-in-direction, display-buffer-below-selected) (display-buffer-at-bottom, display-buffer-in-previous-window) (display-buffer-use-some-window) (display-buffer--maybe-pop-up-frame-or-window) (display-buffer--maybe-pop-up-frame): Fix doc-strings (Bug#19461). 2019-08-04 Paul Eggert Fix one more 2019-08-04 regex lint Problem clarified by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00087.html * lisp/isearch.el (isearch-symbol-regexp): Remove \s@ from regexp as it cannot match. 2019-08-04 Basil L. Contovounesios Support reverting Apropos buffers (bug#36588) * lisp/apropos.el (apropos--current): New variable akin to help-xref-stack-item storing information for revert-buffer. (apropos--revert-buffer): New function. (apropos-mode): Use it as revert-buffer-function. (apropos-command, apropos, apropos-library, apropos-value) (apropos-local-value, apropos-documentation): Set apropos--current in low-level commands, i.e., those which do not call other commands. 2019-08-04 Paul Eggert Fix 2019-08-04 regex lint Problem reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00085.html * lisp/calendar/diary-lib.el (diary-glob-file-regexp-prefix): Omit unnecessary ‘\’ before ordinary char. * lisp/cedet/inversion.el (inversion-decoders): * lisp/org/ob-haskell.el (org-babel-haskell-export-to-lhs): Omit unnecessary ‘?’ after nullable pattern. * lisp/org/org-capture.el (org-capture-fill-template): Match upper-case as well as lower-case letters. * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings) (c-after-change-mark-abnormal-strings): Simplify ‘.|\r’ to ‘.’. * lisp/progmodes/gdb-mi.el (gdb-jsonify-buffer): Put ‘-’ at end of bracket expression. 2019-08-04 Paul Eggert Tweak time arithmetic performance * src/timefns.c (lispint_arith): New function, which should be a bit faster if B is 0, or if A is a bignum and B a fixnum with absolute value in unsigned long range. (time_arith): Use it. 2019-08-04 Paul Eggert Improve time function doc * doc/misc/emacs-mime.texi (time-date): Don’t give parse-iso8601-time-string in the example, as the function is not autoloaded. * lisp/gnus/nndiary.el (nndiary-compute-reminders): No need to call encode-time or use floating point here. 2019-08-04 Eli Zaretskii Fix the MS-Windows build broken by recent changes * src/inotify.c (syms_of_inotify) : Don't define here... * src/coding.c (syms_of_coding) : ...define it here, because it is needed also on platforms that don't compile inotify.c. 2019-08-04 Paul Eggert Minor fix to recent coding.c change * src/coding.c (get_buffer_gap_address): Don’t assume string or buffer length fits in int. Also, improve wording of comments. 2019-08-04 Michael Albinus * .dir-locals.el: Enable `bug-reference-mode' for further major modes. 2019-08-04 Lars Ingebrigtsen Capitalise a couple of node names * doc/lispref/functions.texi (Advising Functions): Capitalise node names (bug#17717). (Advice Combinators, Porting Old Advice): Capitalise. 2019-08-04 Michael Heerdegen Clarify macroexp-let* doc string * lisp/emacs-lisp/macroexp.el (macroexp-let2*): Clarify doc string (bug#19371). 2019-08-04 K. Handa Add Unicode-safe UTF-8 converter * src/coding.c (encode_string_utf_8, decode_string_utf_8): New functions. * src/coding.h (encode_string_utf_8, decode_string_utf_8): Extern them. 2019-08-04 Lars Ingebrigtsen Core Advising Primitives `interactive' clarification * doc/lispref/functions.texi (Core Advising Primitives): Clarify when the interactive spec is a function (bug#17871). 2019-08-04 Michael Albinus Implement set-file-* functions for tramp-gvfs.el * lisp/net/tramp-gvfs.el (tramp-gvfs-gio-mapping): Add "gvfs-set-attribute". (tramp-gvfs-file-name-handler-alist): Add `tramp-gvfs-handle-set-file-modes', `tramp-gvfs-handle-set-file-times' and `tramp-gvfs-handle-set-file-uid-gid'. (tramp-gvfs-handle-set-file-modes) (tramp-gvfs-handle-set-file-times) (tramp-sh-handle-set-file-uid-gid): New defuns. * lisp/net/tramp.el (tramp-handle-write-region): Set file modes. * test/lisp/net/tramp-tests.el (tramp-test20-file-modes) (tramp-test22-file-times): Do not skip for tramp-gvfs.el. 2019-08-04 Martin Rudalics Fix two mouse drag and drop issues (Bug#28620, Bug#36269) Allow 'mouse-drag-and-drop-region' to move/copy text from one frame to another (Bug#28620). Prevent mouse avoidance mode from interfering with 'mouse-drag-and-drop-region' (Bug#36269). * lisp/avoid.el (mouse-avoidance-ignore-p): Suspend avoidance when 'track-mouse' equals 'dropping'. * lisp/mouse.el (mouse-drag-and-drop-region): Set 'track-mouse' to 'dropping'. Continue reading events also when switching frames. * src/keyboard.c (Finternal_track_mouse): Rename from Ftrack_mouse. (some_mouse_moved): Return NULL also when mouse is not tracked. (show_help_echo, readable_events, kbd_buffer_get_event): Don't check whether mouse is tracked, some_mouse_moved does it now. (track_mouse): Rename variable from do_mouse_tracking. Adjust all users. In doc-string explain meanings of special values 'dragging' and 'dropping'. * src/nsterm.m (ns_mouse_position): During drag and drop consider last mouse frame only when there is no currently focused frame. * src/w32fns.c (w32_wnd_proc): Don't set mouse capture during a drag and drop operation. * src/w32term.c (w32_mouse_position): Track frame under mouse during mouse drag and drop. (mouse_or_wdesc_frame): New function. (w32_read_socket): Call mouse_or_wdesc_frame on mouse events. * src/xdisp.c (define_frame_cursor1): Don't change mouse cursor shape during mouse drag and drop. (syms_of_xdisp): New symbol Qdropping. * src/xterm.c (XTmouse_position): Allow mouse drag and drop move to another frame (mouse_or_wdesc_frame): New function. (handle_one_xevent): Use mouse_or_wdesc_frame for mouse events. 2019-08-03 Noam Postavsky Improved ChangeLog generation for vc log (Bug#16301) * lisp/vc/diff-mode.el (diff-find-source-location): Fix docstring. * lisp/vc/add-log.el (change-log-unindented-file-names-re) (change-log-read-entries, change-log-read-defuns) (change-log-insert-entries): * lisp/vc/diff-mode.el (diff-add-log-current-defuns): * lisp/vc/log-edit.el (log-edit--insert-filled-defuns) (log-edit-fill-entry): New functions. (log-edit-mode): Set `log-edit-fill-entry' as `fill-paragraph-function'. (log-edit-generate-changelog-from-diff): New command. (log-edit-mode-map): Bind it to C-c C-w. * doc/emacs/maintaining.texi (Types of Log File, Log Buffer): * CONTRIBUTE: Document it. * etc/NEWS: Announce it. * test/lisp/vc/log-edit-tests.el (log-edit-fill-entry) (log-edit-fill-entry-joining): New tests. 2019-08-03 Eric Abrahamsen Fix Gnus group name reference in gnus-mark-xrefs-as-read * lisp/gnus/gnus-sum.el (gnus-mark-xrefs-as-read): There's already a local binding for "group", don't need another "name". This was left over from the obarray-to-hashtable change. 2019-08-03 Eric Abrahamsen Temporarily preserve encoded Gnus group names in Gnus files Non-ascii Gnus groups should be written to files in their encoded version until we're ready to bump Gnus' version and add an upgrade routine. * lisp/gnus/gnus-start.el (gnus-gnus-to-quick-newsrc-format): * lisp/gnus/gnus-agent.el (gnus-category-read): (gnus-category-write): Handle non-ascii group names appropriately. * lisp/gnus/gnus-registry.el (gnus-registry--munge-group-names): New function to encode/decode group names. (gnus-registry-fixup-registry): (gnus-registry-save): Use function. 2019-08-03 Eric Abrahamsen Remove Gnus group name encoding/decoding This completes the process started in c1b63af445. Gnus group names are now fully decoded inside the Gnus system. * lisp/gnus/gnus-agent.el (gnus-agent-file-coding-system): Change default to utf-8-emacs. (gnus-agent-decoded-group-names, gnus-agent-decoded-group-name): Remove variable and function. Remove all usage in this file. * lisp/gnus/gnus-cache.el (gnus-cache-decoded-group-names, gnus-cache-unified-group-names, gnus-cache-decoded-group-name): Remove these variables and function. Remove all usage in this file. * lisp/gnus/gnus-group.el (gnus-tmp-decoded-group): Remove this variable, gnus-tmp-group is now decoded. (gnus-group-completing-read): Don't encode or decode group names here. (gnus-group-make-group): Remove ENCODED argument. * lisp/gnus/gnus-srvr.el (gnus-browse-foreign-server): Decode group names here. * lisp/gnus/gnus-start.el (gnus-make-hashtable-from-newsrc-alist): check for encoded group names and decode. (gnus-active-to-gnus-format): Make sure incoming group names are decoded. (gnus-read-newsrc-el-file): Check for encoded group names in gnus-topic-alist. * lisp/gnus/nnagent.el: Don't use a unibyte buffer. * lisp/gnus/nnheader.el (nnheader-file-coding-system): Switch default from 'raw-text to 'undecided, on the assumption that 'undecided will probably write 'utf-8-emacs unless the user has arranged things otherwise. * lisp/gnus/nnimap.el (nnimap-decode-gnus-group, nnimap-encode-gnus-group): Remove functions and their use. * lisp/gnus/nnmail.el (nnmail-parse-active): Remove encoding. (nnmail-active-file-coding-system): Default to 'utf-8-emacs instead of 'raw-text. (nnmail-group-names-not-encoded-p): Obsolete this variable; stop using it. * lisp/gnus/gnus-art.el: * lisp/gnus/gnus-cus.el: * lisp/gnus/gnus-msg.el: * lisp/gnus/gnus-start.el: * lisp/gnus/gnus-sum.el: * lisp/gnus/gnus.el: * lisp/gnus/nnml.el: * lisp/gnus/message.el: * lisp/gnus/nnrss.el: Stop using gnus-group-decoded-name in all these files. 2019-08-03 Eric Abrahamsen Fix ordering of Gnus groups after yanking * lisp/gnus/gnus-start.el (gnus-group-change-level): Fix docstring to note that the inserted group is inserted *before* the PREVIOUS group. Fix indexing -- shouldn't have been adding one to the index. 2019-08-03 Paul Eggert Remove stale .pdmp files with ‘make clean’ Problem reported by Sven Joachim (Bug#36907). * admin/make-emacs: Simplify, now that clean does versionclean. * src/Makefile.in ($(etc)/DOC, versionclean, extraclean): Don’t ignore rm -f failures. (versionclean): Also remove emacs-*.*.*[0-9].pdmp and ../etc/DOC*. (clean): Depend on versionclean and simplify. 2019-08-03 Glenn Morris * doc/lispref/display.texi (SVG Images): Remove menu. Not needed since SVG Path Commands was changed to not be a node. 2019-08-03 Lars Ingebrigtsen Clarify hi-lock-file-patterns-prefix doc string * lisp/hi-lock.el (hi-lock-file-patterns-prefix): Clarify doc string (bug#17993). 2019-08-03 Lars Ingebrigtsen Mention `themed-value' in Variable Definitions node * doc/lispref/customize.texi (Variable Definitions): Mention `themed-value' (bug#17996). 2019-08-03 Oleh Krehel calc mode line touch up * lisp/calc/calc.el (calc-set-mode-line): Don't put excessive white space in mode line (bug#18079). 2019-08-03 Paul Eggert Fix rare undefined behaviors in replace-match * src/search.c (Freplace_match): Simplify by caching search_regs components. Fix sanity check for out-of-range subscripts; it incorrectly allowed negative subscripts, subscripts equal to search_regs.num_regs, and it had undefined behavior for subscripts outside ptrdiff_t range. Improve wording of newly-introduced replace-match diagnostic. Rework use of opoint, to avoid setting point to an out-of-range value in rare cases involving modification hooks. 2019-08-03 Pierre-Yves Luyten (tiny change) cua-rect help: check for 'control value * lisp/emulation/cua-rect.el (cua-help-for-rectangle): Check for 'control value (bug#18120). 2019-08-03 Lars Ingebrigtsen delete-backward/forward-char doc string clarification * lisp/simple.el (delete-backward-char): Doc string clarification (bug#18192). (delete-forward-char): Ditto. 2019-08-03 Lars Ingebrigtsen ido-find-file doc string addition * lisp/ido.el (ido-find-file): Mention ido-reread-directory (bug#18275). Suggested by Rob Browning. 2019-08-03 Kevin Ryde easy-menu-define doc string fix * lisp/emacs-lisp/easymenu.el (easy-menu-define): Docstring :label and :help of the menu itself. 2019-08-03 Lars Ingebrigtsen Add some function index entries for ido.texi * doc/misc/ido.texi: Add index entries for functions (bug#18691). 2019-08-03 Andreas Politz Tweak tq queue processing * lisp/emacs-lisp/tq.el (tq-process-buffer): Pop the queue before calling the function because the function may add new entries to the queue (bug#19016). Also report errors. 2019-08-03 Lars Ingebrigtsen Tweak tango-dark-theme hightlight face * etc/themes/tango-dark-theme.el (class): Make highlight a bit less yellow to make the cursor visible on it (bug#19189). 2019-08-03 Lars Ingebrigtsen Fix error message in replace-match for subexpressions * src/search.c (Freplace_match): Output a more understandable error message when replacing a subexpression (bug#19208). 2019-08-03 Lars Ingebrigtsen Clarify Freplace_match logic * src/search.c (Freplace_match): Add some doc strings to clarify the logic and do a minor clean up (bug#19208). 2019-08-03 Lars Ingebrigtsen Don't refer to non-existent functions in mode line examples * doc/lispintro/emacs-lisp-intro.texi (Mode Line): Ditto. * doc/lispref/modes.texi (Mode Line Top): In the :eval example, use a function that exists to avoid confusion (bug#19224). 2019-08-03 Lars Ingebrigtsen Fix previous macroexp-progn doc string fix * lisp/emacs-lisp/macroexp.el (macroexp-progn): Fix previous doc string clarification. 2019-08-03 Eli Zaretskii Minor doc fix in etags.el * lisp/progmodes/etags.el (etags-xref-find-definitions-tag-order): Doc fix. (Bug#32510) 2019-08-03 Eli Zaretskii Improve documentation of debugging Lisp syntax error * doc/lispref/debugging.texi (Syntax Errors, Excess Open) (Excess Close): Name the commands invoked by the key sequences. Add cross-references to appropriate sections of the Emacs manual. (Bug#21385) 2019-08-03 Eli Zaretskii Improve documentation of 'display-buffer-*' functions * lisp/window.el (display-buffer-in-atom-window) (display-buffer-in-side-window, display-buffer-same-window) (display-buffer--maybe-same-window) (display-buffer-reuse-window) (display-buffer-reuse-mode-window) (display-buffer-pop-up-frame, display-buffer-pop-up-window) (display-buffer--maybe-pop-up-frame-or-window) (display-buffer--maybe-pop-up-frame) (display-buffer-in-child-frame, display-buffer-in-direction) (display-buffer-below-selected, display-buffer-at-bottom) (display-buffer-in-previous-window) (display-buffer-use-some-window, display-buffer-no-window): More details about the ALIST argument in the doc string. (Bug#19461) 2019-08-02 Lars Ingebrigtsen macroexp doc fixes * lisp/emacs-lisp/macroexp.el (macroexp-progn): Doc clarification (bug#19371). (macroexp-let*): Doc fix. 2019-08-02 Lars Ingebrigtsen macroexp--cons doc fix * lisp/emacs-lisp/macroexp.el (macroexp--cons): Doc fix (bug#19371). 2019-08-02 Lars Ingebrigtsen Fix some minor inconsistencies in the Package examples * doc/lispref/package.texi (Simple Packages): Use one of the approved keywords (bug#19490). * doc/lispref/tips.texi (Library Headers): Use URL instead of Homepage to make things consistent with "Simple Packages". 2019-08-02 Lars Ingebrigtsen Don't but out on ~/.git files in ede * lisp/cedet/ede/detect.el (ede--detect-ldf-root-predicate): Make this work with ~/ as the dir (bug#19521). 2019-08-02 Lars Ingebrigtsen browse-url doc string fixup * lisp/net/browse-url.el (browse-url-browser-function) (browse-url-secondary-browser-function): Mention each other in the doc strings. 2019-08-02 Lars Ingebrigtsen Make Info-find-file ensure that Info is initialised * lisp/info.el (Info-find-file): Ensure that Info is initialised, because libraries call that function (bug#19880). 2019-08-02 Lars Ingebrigtsen Fix progression in hideshow.el * lisp/progmodes/hideshow.el (hs-hide-all): Ensure progression in a less brittle fashion (bug#19892). 2019-08-02 Michael Heerdegen Fix example code in hideshow.el * lisp/progmodes/hideshow.el: The original example would infloop (bug#19892). 2019-08-02 Michael Albinus Use default value of `parse-time-months' in tramp-smb.el * lisp/net/tramp-smb.el (tramp-smb-read-file-entry): Use default value of `parse-time-months'. 2019-08-02 Tassilo Horn Improve pretty-printing of multiple JSON snippets in a region * lisp/json.el (json-pretty-print): Improve pretty-printing of multiple JSON snippets in a region. Don't lose the region contents starting with the first non-JSON-parseable text. Also, don't swallow errors that occurred while parsing (bug#34160). 2019-08-02 Alan Mackenzie CC Mode: Fix error in macro cache. This fixes bug #36802 * lisp/progmodes/cc-engine.el (c-invalidate-macro-cache): Add in a cond arm to handle the change position being less than the recorded CPP contruct end. 2019-08-02 Basil L. Contovounesios Make gravatar.el more configurable For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00528.html * etc/NEWS: Announce changes in gravatar.el user options. * lisp/image/gravatar.el (gravatar-cache-ttl): Change :type to number of seconds without changing the default value and while still accepting other timestamp formats. (gravatar-rating): Restrict :type to ratings recognized by Gravatar. (gravatar-size): Allow nil as a value, in which case Gravatar's default size is used. (gravatar-default-image, gravatar-force-default): New user options controlling the Gravatar query parameters 'default' and 'forcedefault', respectively. (gravatar-base-url): Use HTTPS. (gravatar--query-string): New helper function to facilitate testing. (gravatar-build-url): Use it. * test/lisp/image/gravatar-tests.el (gravatar-size) (gravatar-default-image, gravatar-force-default) (gravatar-build-url): New tests. 2019-08-02 Basil L. Contovounesios Fix some minor gravatar.el issues For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00528.html * lisp/image/gravatar.el (gravatar-hash): Trim leading and trailing whitespace in given address, as per the Gravatar docs. (gravatar-retrieve-synchronously): Silence call to url-retrieve-synchronously for consistency with gravatar-retrieve. (gravatar-retrieved): Only cache buffer on successful retrieval. * test/lisp/image/gravatar-tests.el: New file. 2019-08-02 Basil L. Contovounesios DRY in gravatar.el For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00528.html * lisp/image/gravatar.el (gravatar-data->image): Remove. (gravatar-retrieve, gravatar-retrieve-synchronously): Reuse url-fetch-from-cache and gravatar-retrieved to reduce duplication. (gravatar-retrieved): Only cache buffer if url-current-object is non-nil and return result of callback. This affords reusing this function in cached URL buffers. 2019-08-02 Basil L. Contovounesios Use lexical-binding for Gravatar support For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00528.html * lisp/gnus/gnus-gravatar.el: Use lexical-binding. Link custom group 'gnus-gravatar' to 'gravatar'. (gnus-gravatar-size, gnus-gravatar-too-ugly): Doc fix. (gnus-gravatar-insert): Check liveness of article buffer sooner. (gnus-treat-from-gravatar, gnus-treat-mail-gravatar): Use interactive spec "p" instead of emulating it. * lisp/image/gravatar.el: Use lexical-binding. (gravatar-cache-expired): Remove. Change all callers to use url-cache-expired instead. (gravatar-get-data, gravatar-retrieve) (gravatar-retrieve-synchronously): Simplify. 2019-08-02 Alan Mackenzie CC Mode: Fix spurious recognition of operators beginning with, e.g. "or" This fixes bug #36801. * lisp/progmodes/cc-langs.el (c-pre-lambda-tokens-re): Use c-make-keywords-re rather than regexp-opt to make an optimised regexp out of a list of tokens. 2019-08-02 Lars Ingebrigtsen pdb doc clarification * lisp/progmodes/gud.el (pdb): Clarify what the parameters mean (bug#20106). 2019-08-02 Lars Ingebrigtsen Mention that some dired commands work on the current file, too * lisp/dired-aux.el (dired-do-search): Mention that it works on file under point (bug#20194). (dired-do-find-regexp-and-replace): Ditto. (dired-do-find-regexp): Ditto. 2019-08-02 Alan Mackenzie CC Mode: Fix the timing of application and removal of string fence properties This fixes bug #36897. * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Check string fence text properties are actually present on string delimiters before trying to remove them. (c-before-change): Amend the nesting of unwind-protect, widen, c-restore-string-fences, and c-clear-string-fences. Move invalidate-state-cache to outside of the widening. (c-after-change): Amend the nesting of unwind-protect, widen, c-restore-string-fences, and c-clear-string-fences. 2019-08-02 Lars Ingebrigtsen Use "rebinding keys" in the "Rebinding" section of the manual * doc/emacs/custom.texi (Rebinding): Use the term "rebinding keys" instead of "redefining keys", because the former seems more logical (bug#21036). 2019-08-02 Mattias Engdegård Clean up file-size-function It is now called `byte-count-to-string-function', and used instead of calling `file-size-human-readable' directly where appropriate. * lisp/files.el (file-size-human-readable-iec): New. (file-size-function): Rename to byte-count-to-string-function. Better default value. Eliminate lambda. Better default for custom choice. Put in group `files'. More descriptive doc string. Move. (out-of-memory-warning-percentage, warn-maybe-out-of-memory) (get-free-disk-space): * lisp/dired.el (dired-number-of-marked-files): * lisp/url/url-http.el (url-http-simple-after-change-function) (url-http-content-length-after-change-function): Use byte-count-to-string-function. * test/lisp/files-tests.el (files-test-file-size-human-readable): Test file-size-human-readable-iec. 2019-08-02 Eli Zaretskii Mention font-backend related crashes in PROBLEMS * etc/PROBLEMS: Mention the crash in the Cairo build when .emacs.desktop messes with font-backend. (Bug#36835) 2019-08-01 Paul Eggert Fix two parse-time-months invalid assumptions * lisp/gnus/nnimap.el: Do not require parse-time. * lisp/gnus/nnimap.el (nnimap-find-expired-articles): * lisp/net/pop3.el (pop3-make-date): Just use system-time-locale and format-time-string; no need to refer to parse-time-months. * lisp/net/pop3.el (parse-time-months): Remove defvar. * lisp/net/tramp-smb.el (tramp-smb-read-file-entry): Add FIXME comment about this. 2019-08-01 Paul Eggert Port standard-test-interval to Los Angeles * test/lisp/calendar/iso8601-tests.el (standard-test-interval): Use UTC to avoid DST glitches in the test. 2019-08-01 Lars Ingebrigtsen Document that --eval makes emacsclient ignore -n * doc/man/emacsclient.1: Mention that -n is ignored if --eval is given (bug#20524). 2019-08-01 Lars Ingebrigtsen Document batch-byte-compile directory behavior * lisp/emacs-lisp/bytecomp.el (batch-byte-compile): Document the behaviour with directories (bug#20867). 2019-08-01 Stefan Monnier * lisp/gnus/message.el (message-sendmail-f-is-evil): Update :version 2019-08-01 Lars Ingebrigtsen Update URL in comment in gomoku.el * lisp/play/gomoku.el: Update the URL in the comments (bug#21300). 2019-08-01 Lars Ingebrigtsen Fix reference to `tags-loop-continue' in doc string * lisp/dired-aux.el (dired-do-search): Refer to `fileloop-continue' instead of the obsolete `tags-loop-continue' (bug#21475). 2019-08-01 Lars Ingebrigtsen Mention `C-h b' in the Keymaps node * doc/emacs/custom.texi (Keymaps): Mention `C-h b' here (bug#21653). 2019-08-01 Daniel Barrett (tiny change) Add PDF to the DocBook notation class * etc/schema/dbnotn.rnc: PDF is among the document types accepted (bug#21882). 2019-08-01 Lars Ingebrigtsen Say that while returns nil * src/eval.c (Fwhile): Say that while always returns nil (bug#22006). 2019-08-01 Glenn Morris * doc/lispref/display.texi (SVG Images): Add menu for subsection. Again. This is needed for makeinfo-4.13. 2019-08-01 Eli Zaretskii Fix the ELisp manual part of a recent commit * doc/lispref/display.texi (SVG Images): Fix markup of "SVG Path Commands". It is no longer a @node, but a @subheading. 2019-08-01 Basil L. Contovounesios Fix property stripping in image-file-yank-handler Fix proposed by Martin Rudalics in: https://lists.gnu.org/archive/html/emacs-devel/2008-12/msg00945.html * lisp/image-file.el (image-file-yank-handler): Handle case when yank-excluded-properties is t. 2019-08-01 Basil L. Contovounesios Fix usage of remove-text-properties * lisp/allout-widgets.el (allout-decorate-item-icon): * lisp/emacs-lisp/chart.el (chart-goto-xy): * lisp/forms.el (forms--make-format) (forms--make-format-elt-using-text-properties): * lisp/htmlfontify.el (hfy-unmark-trailing-whitespace): * lisp/net/newst-plainview.el (newsticker-hide-entry) (newsticker-show-entry): * lisp/nxml/nxml-mode.el (nxml-cleanup): * lisp/obsolete/longlines.el (longlines-unshow-hard-newlines) (longlines-encode-region): * lisp/org/ob-exp.el (org-babel-exp-process-buffer): * lisp/org/org-agenda.el (org-agenda-show-new-time): * lisp/progmodes/cc-defs.el (c-clear-char-property-with-value-function) (c-clear-char-property-with-value-on-char-function): * lisp/progmodes/ebrowse.el (ebrowse--hide): * lisp/progmodes/gdb-mi.el (gdb-send): * lisp/progmodes/idlw-shell.el (idlwave-retrieve-expression-from-level): * lisp/progmodes/make-mode.el (makefile-fill-paragraph): * lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook): * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): * lisp/tmm.el (tmm-remove-inactive-mouse-face): Always pass an explicit plist to remove-text-properties. * lisp/dired.el (dired--unhide): * lisp/facemenu.el (facemenu-add-face): * lisp/htmlfontify.el (hfy-fontify-buffer): * lisp/iimage.el (iimage-mode-buffer): * lisp/image-file.el (image-file-yank-handler): * lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol): * lisp/textmodes/tex-mode.el (latex-env-before-change): * test/src/undo-tests.el (undo-test0): Use remove-list-of-text-properties in place of remove-text-properties where appropriate. 2019-08-01 Lars Ingebrigtsen Doc string clarification for defcustom * lisp/custom.el (defcustom): Mention `custom-declare-variable' in the doc string(bug#22703). 2019-08-01 Lars Ingebrigtsen Make `C-u RET' in erc use the secondary browser * lisp/erc/erc-button.el (erc-button-alist): Use the version of `browse-url' that interprets `C-u RET' as using the secondary browser. 2019-08-01 Lars Ingebrigtsen Use decoded-time accessors in vc-cvs * lisp/vc/vc-cvs.el (vc-cvs-parse-entry): Use decoded-time accessors for results from `parse-time-string'. 2019-08-01 Lars Ingebrigtsen Use decoded-time accessors in gnus-demon * lisp/gnus/gnus-demon.el (gnus-demon-time-to-step): Use decoded-time accessors for results from `parse-time-string'. 2019-08-01 Lars Ingebrigtsen Use decoded-time accessors in esh-util * lisp/eshell/esh-util.el (eshell-parse-ange-ls): Use decoded-time accessors for results from `parse-time-string'. 2019-08-01 Lars Ingebrigtsen Remove some compat code in esh-util * lisp/eshell/esh-util.el (eshell-parse-ange-ls): Remove older-Emacs compat code. 2019-08-01 Martin Rudalics Add example for removing scroll bars/fringes from mini windows (Bug#8868) * doc/lispref/display.texi (Fringe Size/Pos): Mention example for how to permenantly remove fringes from minibuffer windows. (Scroll Bars): Add example for how to permanently remove scroll bars and fringes from minibuffer windows. 2019-07-31 Paul Eggert format-time-string subsumes time-zone-format * lisp/calendar/time-date.el (time-zone-format): * test/lisp/calendar/time-date-tests.el (test-time-zone-format): Remove. * lisp/gnus/nnrss.el (nnrss-normalize-date): Use format-time-string instead of time-zone-format. 2019-07-31 Lars Ingebrigtsen Revert "Revert "Add support for paths to svg.el"" This reverts commit 0a2461be9edb218bf9ca56156d8966a2421f13a7. Copyright paperwork is now in place, so the patch mistakenly applied can now be re-applied. 2019-07-31 Lars Ingebrigtsen Restore `replace-region-contents' in json-pretty-print * lisp/json.el (json-pretty-print): Switch back to using `replace-region-contents' to preserve markers and fonts which went missing when fixing the bug (bug#34160). (json-pretty-print-max-secs): Restore, too. 2019-07-31 Lars Ingebrigtsen Add more icalendar tests (for the isodatetime parser) * test/lisp/calendar/icalendar-tests.el (icalendar-tests--decode-isodatetime): Test `icalendar--decode-isodatetime'. 2019-07-31 Lars Ingebrigtsen Rewrite `url-dav-process-date-property' to use parse-time * lisp/url/url-dav.el (url-dav-iso8601-regexp): Remove. (url-dav-process-date-property): Rewrite to use `parse-iso8601-time-string'. 2019-07-31 Lars Ingebrigtsen Fix time zone in previous rewrite of newsticker--decode-iso8601-date * lisp/net/newst-backend.el (newsticker--decode-iso8601-date): According to the tests, this function should default to the Z time zone. 2019-07-31 Lars Ingebrigtsen Rewrite `parse-iso8601-time-string' to use `iso8601-parse' * lisp/calendar/parse-time.el (parse-iso8601-time-string): Use `iso8601-parse'. (parse-time-iso8601-regexp): Remove. 2019-07-31 Lars Ingebrigtsen Allow timezone defaults in decoded-time-set-defaults * lisp/calendar/time-date.el (decoded-time-set-defaults): Allow passing in a default time zone, as this seems to be something callers seem to do. 2019-07-31 Lars Ingebrigtsen Default DST to "undecided" in decoded-time-set-defaults * lisp/calendar/time-date.el (decoded-time-set-defaults): When we don't have a zone or a DST, set DST to "undecided". 2019-07-31 Lars Ingebrigtsen decoded-time-dst doc fix * lisp/simple.el (decoded-time): Doc fix for dst (note -1 value). 2019-07-31 Lars Ingebrigtsen Use iso8601-parse in nnrss * lisp/gnus/nnrss.el (nnrss-normalize-date): Use iso8601-parse instead of hand-rolled parser. * test/lisp/gnus/nnrss-tests.el: New file. 2019-07-31 Lars Ingebrigtsen Make time-zone-format take a SHORT parameter * lisp/calendar/time-date.el (time-zone-format): Accept an optional SHORT parameter. 2019-07-31 Lars Ingebrigtsen Add new function time-zone-format * lisp/calendar/time-date.el (time-zone-format): New function. 2019-07-31 Lars Ingebrigtsen `decoded-time-set-defaults' refactored out from iso8601 code * lisp/calendar/iso8601.el (iso8601--encode-time): * lisp/calendar/time-date.el (decoded-time-set-defaults): Refactor out from `iso8601--encode-time', because it's helpful in other contexts. 2019-07-31 Lars Ingebrigtsen Have newsticker use iso8601 to parse dates * lisp/net/newst-backend.el (newsticker--decode-iso8601-date): Use iso8601 to parse. 2019-07-31 Michael Albinus Call file notification actions properly in filenotify-tests.el * test/lisp/filenotify-tests.el (file-notify--test-wait-for-events): Rename from `file-notify--wait-for-events'. Adapt all callees. (file-notify--test-cleanup): Reset also `file-notify--test-event' and `file-notify--test-file nil'. (file-notify--test-event-desc, file-notify--test-event-action): New accessor functions. (file-notify-test02-rm-watch, file-notify--test-event-test) (file-notify--test-with-actions-check) (file-notify--test-with-actions-explainer): Use them. (file-notify--test-with-actions-check) (file-notify--test-with-actions-explainer) (file-notify--test-with-actions): Rename them from *-events-*. Rename also internal variables accordingly. Adapt all callees. 2019-07-31 Michael Albinus Distinguish different file notification events * lisp/filenotify.el (file-notify--watch): Add docstring. (file-notify-descriptors, file-notify--rm-descriptor) (file-notify--pending-rename): Adapt docstring. (file-notify): New defstruct. (file-notify-handle-event): Rename argument to OBJECT. Use accessor functions of the defstruct. 2019-07-31 Paul Eggert Avoid intern calls for builtin syms * src/casefiddle.c (Fdowncase_region): * src/eval.c (Fdefvaralias): Use builtin symbol rather than calling intern. 2019-07-31 Paul Eggert Fix Fload infile problem * src/lread.c (Fload): Close window of vulnerability where the wrong stream could have been closed. 2019-07-31 Stefan Monnier * src/lread.c (close_infile_unwind): Remove leftover debug code 2019-07-31 Stefan Monnier * src/lread.c (infile): Set/reset it like a dynamically scoped variable I've seen segfaults where `infile` is nil when we get to readbyte_from_file, presumably because Fload set it to NULL (via close_infile_unwind) just before returning to its caller which was probably itself within another read/load and for some reason readevalloop didn't get to re-set `infile` like it used to do at every iteration. I was not able to really track down the bug, but the way `infile` was set/reset seemed fragile and managing it like a standard dynamically-scoped var seems both safer (and more efficient since we don't need readevalloop to constantly re-set it). (readchar): Assert that `infile` is set if using a function the depends on it. (readbyte_from_file): Assert that `infile` is set. (close_infile_unwind): Reset `infile` to its previous value rather than to NULL. (Fload): Remember the previous value of `infile` before chaning it. (readevalloop): Don't set `infile` any more. 2019-07-31 Paul Eggert Clarify (lognot bignum) * doc/lispref/numbers.texi (Bitwise Operations): Say that (= (lognot n) (- -1 n)). 2019-07-31 Michael Albinus Fix an error in tramp-sh-inotifywait-process-filter * lisp/net/tramp-sh.el (tramp-sh-inotifywait-process-filter): Add default FILE to returned event, if inotifywait doesn't tell us. 2019-07-31 Noam Postavsky Remove no-longer relevant xref * doc/lispref/positions.texi (List Motion): Remove xref, the text it references was removed in 2018-02-15 "Document open-paren-in-column-0-is-defun-start being of less importance". 2019-07-30 Glenn Morris Merge from origin/emacs-26 8fbe462 (origin/emacs-26) ; * doc/lispref/positions.texi (List Motion... 1d9efc0 Add index for "\( in strings" (Bug#25195) 304e96f Fix doc-string of 'fit-window-to-buffer' (Bug#36848) d4c4987 Update view-mode docstring d6ca1fc ; * lisp/term.el: Add missing / to esc seq commentary. b3e2073 Fix subproc listening when setting filter to non-t (Bug#36591) f671950 * etc/NEWS.25: Belatedly announce rcirc-reconnect-delay. 7f42277 Mention term.el's \032 dir tracking in commentary (Bug#19524) 16a529e Remove upload functionality of package-x from the elisp manual 78e6c2a * etc/AUTHORS: Update. 086a56e Clarify Gravatar docs 0592467 * doc/lispref/display.texi (Defining Faces): Say a face can't... # Conflicts: # doc/emacs/programs.texi # etc/AUTHORS # lisp/term.el 2019-07-30 Noam Postavsky * lisp/emacs-lisp/let-alist.el: Bump version to 1.0.6 (Bug#23244). 2019-07-30 Stefan Monnier * lisp/gnus/message.el: Reduce redundancy with send-mail-function (message-send-mail-function) : Remove `local-library` tests for libs distributed with Emacs. (message-use-send-mail-function): New function. (message-default-send-mail-function): Default to it, and remove cases already handled by it. (message--default-send-mail-function): New function. (message-send-mail-function) : Use it as new default. (message-sendmail-f-is-evil): Obey mail-specify-envelope-from if available. (message-check, message-with-reply-buffer): Use `declare`. (message-smtpmail-send-it): smtpmail accepts mail-header-separator, so simplify and declare obsolete. (message-send-mail-with-mailclient): Declare obsolete. (message-check-news-body-syntax): Don't presume that the checksum is a fixnum. 2019-07-30 Juri Linkov * lisp/bindings.el (mode-line-defining-kbd-macro): New defvar. (minor-mode-alist): Use it for `defining-kbd-macro'. (Bug#36564) 2019-07-30 Stefan Monnier * lisp/mail/sendmail.el (sendmail-send-it): Add FIXMEs. Remove redundant :groups in the file, as well. 2019-07-30 Stephen Leake Merge commit '9b480db6732c6d2e886838f112d9bd46fc8989bf' 2019-07-30 Stephen Leake Improve doc strings for some -search-path variables * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-search-path): Improve doc string. * lisp/progmodes/compile.el (compilation-search-path): Improve doc string. * lisp/progmodes/grep.el (grep-search-path): Improve doc string. 2019-07-30 Lars Ingebrigtsen Make `C-u RET' on URLs in Gnus buffers use the secondary browser * lisp/gnus/gnus-art.el (gnus-button-alist): Make `C-u RET' on URLs use the secondary browse-url browser. 2019-07-30 Lars Ingebrigtsen Tweak `browse-url-add-buttons' for better button.el comp * lisp/net/browse-url.el (browse-url-add-buttons): Make browse-url buttons be understood by `forward-button' and the like. 2019-07-30 Lars Ingebrigtsen Add a new conveniency function to browse-url * lisp/net/browse-url.el (browse-url-button-open-url): Add a new conveniency function. 2019-07-30 Dmitry Gutov Support filename matches in etags xref backend * lisp/progmodes/etags.el (etags--xref-find-definitions): Support filename matches (bug#32510). 2019-07-30 Dmitry Gutov Guard against flymake-no-changes-timeout being nil * test/lisp/progmodes/flymake-tests.el (flymake-tests--wait-for-backends): Guard against flymake-no-changes-timeout being nil (in personal configurations) to help when running tests interactively. 2019-07-30 Lars Ingebrigtsen Call out the Gnus widget->button makeover in NEWS 2019-07-30 Lars Ingebrigtsen Convert Emacs article buffers from widget.el to button.el * lisp/gnus/gnus-art.el (gnus-mime-button-map) (gnus-url-button-commands, gnus-insert-mime-button) (gnus-mime-display-alternative) (gnus-article-extend-url-button, gnus-article-add-button) (gnus-insert-prev-page-button, gnus-insert-next-page-button) (gnus-mime-security-button-map) (gnus-insert-mime-security-button): Ditto. * lisp/gnus/gnus-html.el (gnus-html-displayed-image-map) (gnus-html-wash-images, gnus-html-put-image): Ditto. * lisp/gnus/gnus-icalendar.el (gnus-icalendar-insert-button): Ditto. * lisp/gnus/gnus-sum.el (gnus-summary-widget-forward) (gnus-summary-button-forward, gnus-summary-widget-backward) (gnus-summary-button-backward, gnus-collect-urls-primary-text) (gnus-collect-urls, gnus-summary-browse-url): Stop using widgets and star using button.el buttons instead. * lisp/gnus/mm-decode.el (mm-shr, mm-handle-filename): Don't convert shr buttons into widgets. 2019-07-30 Lars Ingebrigtsen Mark shr buttons as button.el buffers * lisp/net/shr.el (shr-urlify): Mark buttons as button.el buffers for easier reuse in buttonified buffers. 2019-07-30 Lars Ingebrigtsen Convert ` to ' in two recent NEWS entries 2019-07-30 Lars Ingebrigtsen Extend button.el to take callback data * doc/lispref/display.texi (Button Buffer Commands) (Button Buffer Commands): Document this. * lisp/button.el (backward-button, forward-button): Accept a NO-ERROR parameter. (button-activate): Make it possible to have specific data in the callback action. 2019-07-30 Lars Ingebrigtsen Re-fix dired-pop-to-buffer obsoletion reference * lisp/dired.el (dired-pop-to-buffer): Re-fix obsoletion reference (bug#26243). 2019-07-30 Lars Ingebrigtsen Revert "Make `ispell-change-dictionary' only list installed dictionaries" This reverts commit 848712b481e16f5c96fed6344c2f7d71a8d52ed1. There could be dictionaries available (set via command-line options for the speller, for instance) that would not be returned. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in ediff-mult * lisp/vc/ediff-mult.el (ediff-format-date): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in pop3 * lisp/net/pop3.el (pop3-make-date): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in esh-util * lisp/eshell/esh-util.el (eshell-parse-ange-ls): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in in em-ls * lisp/eshell/em-ls.el (eshell-ls-file): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in timer * lisp/emacs-lisp/timer.el (run-at-time): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in timeclock * lisp/calendar/timeclock.el (timeclock-day-base): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in time-date * lisp/calendar/time-date.el (time-to-days): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in appt * lisp/calendar/appt.el (appt-check, appt-make-list): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Fix syntax error in previus calc-forms change * lisp/calc/calc-forms.el (calc-time): Fix previous decoded time change. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in calendar * lisp/calendar/icalendar.el (icalendar--add-decoded-times) (icalendar--convert-sexp-to-ical): * lisp/calendar/calendar.el (calendar-current-date): * lisp/calendar/cal-dst.el (calendar-dst-find-data) (calendar-dst-find-startend): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in Gnus * lisp/gnus/nnimap.el (nnimap-find-expired-articles): * lisp/gnus/nndiary.el (nndiary-compute-reminders) (nndiary-last-occurrence, nndiary-next-occurrence): * lisp/gnus/message.el (message-make-expires-date): * lisp/gnus/gnus-util.el (gnus-seconds-today) (gnus-seconds-month, gnus-seconds-year): * lisp/gnus/gnus-demon.el (gnus-demon-time-to-step): * lisp/gnus/gnus-art.el (article-make-date-line): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in calc * lisp/calc/calc-forms.el (calc-time, math-this-year) (calcFunc-now): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Use decoded time accessors in proced * lisp/proced.el (proced-format-start): Use decoded time accessors. 2019-07-30 Lars Ingebrigtsen Make description of text properties on the form `(string ...)' work * lisp/descr-text.el (describe-property-list): Don't special-case for symbols that have widget properties here (bug#22957). It's not documented that this function should do that, and looking at the code, it doesn't seem like this function is actually used for doing that, either. This makes describing some text properties that are on the form `(string ...)' work. 2019-07-30 Lars Ingebrigtsen Use the elisp xref backend in profiler buffers * lisp/profiler.el (profiler--xref-backend): New function (bug#23455). (profiler-report-mode): Use it to use the elisp xref handler when hitting `M-.' in profiler buffers. 2019-07-30 Lars Ingebrigtsen Adjust time-date tests to tweaked format 2019-07-29 Juri Linkov Highlight keyboard macro recording mode with read color in the mode-line * lisp/bindings.el (minor-mode-alist): Propertize " Def" with 'error' face for defining-kbd-macro. (Bug#36564) 2019-07-29 Stefan Monnier * lisp/progmodes/vhdl-mode.el: Use cl-lib when available (vhdl--pushnew): New macro. Use it instead of `pushnew`. (emacs-major-version): Don't bother checking (featurep 'xemacs) since that is always (< emacs-major-version 25) as well. 2019-07-29 Juri Linkov * lisp/info.el (Info-toc-insert): Suppress same section names as node names. Add indentation to section lines. (Bug#23142) 2019-07-29 Stefan Monnier * lisp/simple.el (decoded-time): Use `cl-defstruct` 2019-07-29 Stefan Monnier * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Add slot option :documentation Use it to improve the docstring of the accessor functions. * doc/misc/cl.texi: Rename menu entry to "CL-Lib". (Structures): Add ':documentation' and mention ':type' as well, which we don't completely ignore any more. 2019-07-29 Lars Ingebrigtsen Tweak how mm-display-external handles windows * lisp/gnus/mm-decode.el (mm-display-external): Don't delete other buffers when displaying parts (bug#22861) because that should be up to the user, probably. 2019-07-29 Lars Ingebrigtsen Add further documentation about semicolon use * doc/lispref/tips.texi (Comment Tips): Document the sub-heading convention (bug#23060) as explained by Stefan on StackExchange. 2019-07-29 Lars Ingebrigtsen Add an ISO 8601 parsing library * doc/lispref/os.texi (Time Parsing): Document it. * lisp/calendar/iso8601.el: New file. * test/lisp/calendar/iso8601-tests.el: Test ISO8601 parsing functions. 2019-07-29 Lars Ingebrigtsen Add support for dealing with decoded time structures * doc/lispref/os.texi (Time Conversion): Document the new functions that work on decoded time. (Time Calculations): Document new date/time functions. * lisp/simple.el (decoded-time-second, decoded-time-minute) (decoded-time-hour, decoded-time-day, decoded-time-month) (decoded-time-year, decoded-time-weekday, decoded-time-dst) (decoded-time-zone): New accessor functions for decoded time values. * lisp/calendar/time-date.el (date-days-in-month) (date-ordinal-to-time): New functions. (decoded-time--alter-month, decoded-time--alter-day) (decoded-time--alter-second, make-decoded-time): New functions added to manipulate decoded time structures. * src/timefns.c (Fdecode_time): Mention the new accessors. * test/lisp/calendar/time-date-tests.el: New file to test the decoded time functions and the other new functions. 2019-07-29 Lars Ingebrigtsen Fix compilation warning in mh-*.el * lisp/mh-e/mh-speed.el (mh-speed-parse-flists-output): * lisp/mh-e/mh-search.el (mh-index-parse-search-regexp): Avoid warning about `values-list' by using `cl-values-list' insead. 2019-07-29 Lars Ingebrigtsen Avoid error when killing rcirc buffer * lisp/net/rcirc.el (rcirc-kill-buffer-hook): Delete the process in the buffer when killing server buffers to avoid triggering errors from the sentinel (bug#23168). 2019-07-28 Juri Linkov * lisp/char-fold.el: Rename char-fold-make-table to char-fold--make-table. 2019-07-28 Juri Linkov Move some uncontroversial char-folding pairs from test data to default values * lisp/char-fold.el (char-fold--default-include) (char-fold--default-exclude): Add some default values. * test/lisp/char-fold-tests.el (char-fold--test-without-customization) (char-fold--test-with-customization): Move some test data to default values. Add more data for tests to pass. (Bug#35689) 2019-07-28 Lars Ingebrigtsen Rename the new `browse-url-external-browser' variable * lisp/net/shr.el (shr-external-browser, shr-browse-url): * lisp/net/eww.el (eww-browse-with-external-browser) (eww-follow-link): * lisp/net/browse-url.el (browse-url-secondary-browser-function) (browse-url-button-open): * lisp/gnus/gnus-sum.el (gnus-summary-browse-url): Rename from `browse-url-external-browser' to `browse-url-secondary-browser-function'. 2019-07-28 Lars Ingebrigtsen Make let-alist work with vectors * lisp/emacs-lisp/let-alist.el (let-alist--deep-dot-search): Descend into vectors, too, looking for dotted variables (bug#23244). Test case: (let-alist '((a . 1) (b . 2)) `[,(+ .a) ,(+ .a .b .b)]) 2019-07-28 Lars Ingebrigtsen Make the image keymaps not extend after the image * lisp/image.el (insert-image): Make all the properties rear-nonsticky. Before this change, the keymap would extend after the image. 2019-07-28 Lars Ingebrigtsen Fix when calling prettify-symbols-mode more than once * lisp/progmodes/prog-mode.el (prettify-symbols-mode): Allow calling this mode several times without the earlier symbol alist shadowing the newer (bug#23255). 2019-07-28 Lars Ingebrigtsen Abbreviate directory names the same way as file names in C-x C-b * lisp/buff-menu.el (Buffer-menu--pretty-file-name): Abbreviate directory file names, too (bug#23355). 2019-07-28 Andreas Schwab * admin/notes/git-workflow: Replace git-new-workdir with git worktree and remove draft marker. 2019-07-28 Lars Ingebrigtsen Tweak tango-dark-theme * etc/themes/tango-dark-theme.el: Add a lighter background color to `header-line' (bug#23359). 2019-07-28 Lars Ingebrigtsen Scale images in iimage-mode * lisp/iimage.el (iimage-mode-buffer): Scale images down to the width/height of the buffer (bug#23434). Also add `image-map' to the images so that they can be further scaled. 2019-07-28 Vincent Belaïche Make atomic cell update in data area. * lisp/ses.el (ses-write-cells): Set inhibit-quit to t during the data area write. 2019-07-28 Lars Ingebrigtsen Make URLs in package descriptions into links * lisp/emacs-lisp/package.el (describe-package-1): Make the URLs in package descriptions into links (bug#23480). 2019-07-28 Lars Ingebrigtsen Enable browse-url to buttonize buffers This patch also moves the internal/external browser logic from shr to browse-url, where it belongs more naturally. * doc/misc/eww.texi (Basics): Adjust to browse-url-external-browser. * doc/misc/gnus.texi (Article Commands): Ditto. * lisp/gnus/gnus-art.el (gnus-button-url-regexp): Default to `browse-url-button-regexp', which has taken over the definition previously enjoyed by this variable. * lisp/gnus/gnus-sum.el (gnus-summary-browse-url): Adjust usage. * lisp/net/browse-url.el (browse-url--browser-defcustom-type): New internal variable... (browse-url-browser-function, browse-url-external-browser): Used by these two; the latter of which is a new variable. (browse-url-botton-regexp): New variable. (browse-url-button-map): New keymap. (browse-url-button): New face. (browse-url-add-buttons): New function to add clickable browse-url buttons to almost any buffer. (browse-url-button-open): New command. (browse-url-button-copy): New command. * lisp/net/eww.el (eww-browse-with-external-browser) (eww-follow-link): Adjust usage. * lisp/net/shr.el (shr-external-browser): Make an obsolete alias of `browse-url-external-browser'. (shr-browse-url): Adjust usage. 2019-07-28 Alan Mackenzie CC Mode. Fix (c-beginning-of-defun -1) getting stuck with structs. In particular, with an initialization such as struct foo {..} bar = {...}; * lisp/progmodes/cc-cmds.el (c-forward-to-nth-EOF-{): Rename to c-forward-to-nth-EOF-\;-or-}, and when the starting (or ending) position is in the "variable" part of a struct/class/union/enum/etc., move to after the terminating semicolon. Adjust the counting such that N only gets decremented on a successful movement over {..}. (c-beginning-of-defun, c-end-of-defun): Rename the calls to c-forward-to-nth-EOF-}, as above. 2019-07-28 Lars Ingebrigtsen Make cl-values-list signal an error if its argument isn't a list * lisp/emacs-lisp/cl-lib.el (cl-values-list): Signal an error if LIST isn't a list (bug#23597). 2019-07-28 Lars Ingebrigtsen Have emacsbug only warn the user when sending to the bug address * lisp/mail/emacsbug.el (report-emacs-bug-hook): Only ask for confirmation if we're really sending the bug report to the bug address. If the user is sending it somewhere else (to themselves, for instance), the warning is misleading. 2019-07-28 Lars Ingebrigtsen Allow the user to send a bug report after initially saying "no" * lisp/mail/emacsbug.el (report-emacs-bug-hook): Don't remove the address in the To: header (or the hook) after the user has said "no" (bug#23799). This made it impossible for the user to do touch-ups and then resent the bug report. 2019-07-28 Lars Ingebrigtsen Always set the state of the "Show hidden files" gtk button * src/gtkutil.c (xg_get_file_with_chooser): Always set the state of the "Show hidden files" button (bug#23977). If not, the visible state and the actual state get out of sync. 2019-07-28 Lars Ingebrigtsen Make `ispell-change-dictionary' only list installed dictionaries * lisp/textmodes/ispell.el (ispell-find-aspell-dictionaries): If the backend (i.e., aspell/hunspell) provided a list of languages, don't add the base list (bug#24050). (ispell-set-spellchecker-params): Ditto. 2019-07-28 Lars Ingebrigtsen Clean up conf-mode-syntax-table slightly * lisp/textmodes/conf-mode.el (conf-mode-syntax-table): Remove superfluous backslash in ?\'. 2019-07-28 Lars Ingebrigtsen Mark block/char devices the same as sockets in dired * lisp/dired.el (dired-re-socket): Also mark block and char devices with the socket face (bug#24547). 2019-07-28 Lars Ingebrigtsen `unknown' test case now works 2019-07-28 Lars Ingebrigtsen Fix testcover.el usage of edebug.el symbols * lisp/emacs-lisp/testcover.el (testcover-before) (testcover-after, testcover-mark) (testcover-analyze-coverage-edebug-after): Adjust usage of `unknown' to `edebug-unknown' in testcover.el in addition to edebug.el (bug#25471). 2019-07-27 Stefan Monnier * lisp/emacs-lisp/autoload.el: Make progress info more informative. (update-directory-autoloads): Include the name of the target file. 2019-07-27 Stefan Monnier * lisp/emacs-lisp/bytecomp.el (byte-compile-out-toplevel): Fix bug#34757 This fix was provided by Pip Cet . It tightens the code that tries to recognize a bytecode sequence as being a simple function call (to then decompile it), which occasionally misfired. I added some minor changes found while investigating this issue. (byte-compile): Handle corner case where byte-compile-top-level returns a non-self-evaluating expression. (byte-compile-out-toplevel): Remove support for `progn` and `t` values of output-type which aren't used anywhere. 2019-07-27 Alan Third Fix stretch glyphs overlap with line above (bug#36633) * src/nsterm.m (ns_dumpglyphs_stretch): Move overwriting of the clipping rectangle to after performing clipping. 2019-07-27 Paul Eggert Fix arithmetic overflow in GC consing count * src/alloc.c (allow_garbage_collection): Redo expression to avoid signed arithmetic overflow in an intermediate expression when CONSING is negative. 2019-07-27 Alan Mackenzie Java Mode: Fix handling of nested generics ending in >>>. This fixes bug #24671. * lisp/progmodes/cc-langs.el (c-multichar->-op-not->>-regexp): remove, transforming into ... (c-multichar->-op-not->>->>>-regexp) New lang const/var. * lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): use the new c-multichar->-op-not->>->>>-regexp in place of the old c-multichar->-op-not->>-regexp. 2019-07-27 Eric Abrahamsen Adjust location of Gnus group split setup process Updating group splits requires the gnus-newsrc-hashtb to be initialized. Previously this failed silently, now it errors. * lisp/gnus/gnus-mlspl.el (gnus-group-split-setup): Don't call the update when loading the user's init file, that's too early. Use appropriate hooks depending on AUTO-UPDATE. * doc/misc/gnus.texi (Group Mail Splitting): Change mention in docs. 2019-07-27 Lars Ingebrigtsen Touch of latin-ltx input method for long arrows * lisp/leim/quail/latin-ltx.el: Map all the \\long.*arrow inputs to the long characters instead of the normal ones (i.e., LONG RIGHTWARDS ARROW instead of RIGHTWARDS ARROW) (bug#24302). 2019-07-27 Eli Zaretskii Fix documentation of 'redisplay-highlight-region-function' * lisp/simple.el (redisplay-highlight-region-function): Fix last change. (Bug#24701) 2019-07-27 Lars Ingebrigtsen Tweak font-locking in conf-mode for "#foo { bar" lines * lisp/textmodes/conf-mode.el (conf-font-lock-keywords): Don't font-lock comments as keywords (bug#24355). 2019-07-27 Lars Ingebrigtsen Make dired fontify pipes and sockets * lisp/dired.el (dired-socket): New face for pipes and sockets (bug#24547). (dired-re-socket): New regexp to match them. (dired-font-lock-keywords): Use them. 2019-07-27 Lars Ingebrigtsen Add a doc string to redisplay-highlight-region-function * lisp/simple.el (redisplay-highlight-region-function): Add a doc string (bug#24701). 2019-07-27 Stefan Monnier * lisp/progmodes/compile.el: Fix bug#36803. Make sure all mode-lines are updated when compilation-in-progress is changed since it's visible globally. (compilation--update-in-progress-mode-line): New function. (compilation-start, compilation-sentinel): Use it. 2019-07-27 Alan Mackenzie CC Mode: Stop /**/ spuriously fontifying as a doc comment under gtkdoc Also fix infinite loops by correcting two regexps. * lisp/progmodes/cc-langs.el (c-last-c-comment-end-on-line-re) (c-last-open-c-comment-start-on-line-re): Correct the regexp fragments "\\*+[^/]" to "\\*+\\([^*/]\\|$\\)". * lisp/progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): Disallow /**/ for doc comment fontification. 2019-07-27 Lars Ingebrigtsen Doc fix for package-menu-filter * lisp/emacs-lisp/package.el (package-menu-filter): Document the use of arc:ARCHIVE and status:STATUS (bug#24883). 2019-07-27 Lars Ingebrigtsen Allow serial-term to take an optional argument for line-mode * lisp/term.el (serial-term): Allow taking an optional argument to avoid term-raw-mode (bug#24922). * doc/lispref/processes.texi (Serial Ports): Document it. 2019-07-27 Lars Ingebrigtsen Only insert XML declarations in nxml-mode when the buffer is empty * lisp/nxml/nxml-mode.el (nxml-mode): Don't insert the XML declaration unless it's an empty buffer (bug#24978). This avoids the problem of the declaration being inserted by mistake when opening XML files from archives and the like -- the file doesn't exist on the file system there, either, so it would typically lead to doubled XML declarations. 2019-07-27 Lars Ingebrigtsen edebug.el comment fix * lisp/emacs-lisp/edebug.el: Fix comment referring to non-existent variable (bug#25188). 2019-07-27 Lars Ingebrigtsen Clarify yank-pop doc string * lisp/simple.el (yank-pop): Mention `kill-ring' to make it more clear what the command is doing (bug#25196). 2019-07-27 Eli Zaretskii Move tty-colors-tests.el to its proper directory. 2019-07-27 Pip Cet Use the CSS convention for #RGB colors (bug#36304) * src/xterm.c (x_parse_color): Change interpretation of #RGB color triplets to match CSS rather than X conventions. * lisp/term/tty-colors.el (tty-color-standard-values): Change interpretation of #RGB color triplets to match CSS rather than X conventions. Allow upper-case digits. Fix rgb:R/G/B interpretation. * doc/emacs/display.texi (Colors): Specify the convention used for "#RGB" color triplets. * test/lisp/term/tty-colors-tests.el: New file. * etc/NEWS: Mention the change. 2019-07-27 Lars Ingebrigtsen Allow global-auto-revert-ignore-buffer to be a predicate function * lisp/autorevert.el (global-auto-revert-ignore-buffer): Allow this to be a predicate function (bug#25277). (auto-revert--global-add-current-buffer): Use it. 2019-07-27 Pip Cet Don't double-decompress cached HTTP responses (bug#36773) * lisp/url/url-http.el (url-handle-content-transfer-encoding): Modify the message headers as well as the message body to reflect decompression. * lisp/mail/mail-utils.el (mail-fetch-field): Add DELETE argument, to delete header lines included in the result. 2019-07-27 Lars Ingebrigtsen Rename coverage symbols in edebug to avoid collisions * lisp/emacs-lisp/edebug.el (edebug-clear-coverage): Use edebug-unknown and edebug-ok-coverage instead of unknown and ok-coverage to avoid naming collisions with packages that use those two symbols (bug#25471). (edebug--update-coverage, edebug-display-freq-count): Ditto. 2019-07-27 Lars Ingebrigtsen Allow directory-files-recursively to follow symlinks * doc/lispref/files.texi (Contents of Directories): Document it. * lisp/files.el (directory-files-recursively): Allow following symlinks. 2019-07-27 Lars Ingebrigtsen define-derived-mode doc string clarification * lisp/emacs-lisp/derived.el (define-derived-mode): Doc string clarification about the keywords (bug#26301). 2019-07-26 Noam Postavsky Clarify docstring of last-command-event. * src/keyboard.c (syms_of_keyboard) : Reword docstring. 2019-07-26 Stefan Monnier Adjust remaining uses of `NILP (HASH_HASH)`. * src/json.c (lisp_to_json_toplevel_1): * src/pdumper.c (dump_hash_table_stable_p, hash_table_contents): * src/print.c (print, print_vectorlike): * src/minibuf.c (Ftry_completion, Fall_completions, Ftest_completion): Use `EQ (HASH_KEY, Qunbound)` instead of `NILP (HASH_HASH)`. 2019-07-26 Stefan Monnier Don't dump the `hash` vector if it will need to be recomputed anyway * src/fns.c (hash_table_rehash): Only set `hash` field at the end. (sweep_weak_table): Only set slot of `hash` vector when that vector exists. (Fhash_table_count): No need to hash_rehash_if_needed any more. * src/lisp.h (hash_rehash_needed_p): Test the presence of `hash` instead. * src/pdumper.c (check_hash_table_rehash, dump_hash_table): Set `hash` to nil to indicate that the table needs to be rehashed. 2019-07-26 Stefan Monnier * src/fns.c: Use `EQ (key, Qunbound)` to check if a slot is in use (make_hash_table): Use Qunbound for the key_and_value table. (maybe_resize_hash_table): Set new key_and_value slots to Qunbound. (hash_table_rehash): Don't bother copying the old table of hashes since we're recomputing it completely. (hash_table_rehash): Use hash_rehash_needed_p more. (hash_put): Add assertion that the slot was indeed considered empty. (hash_remove_from_table, hash_clear, sweep_weak_table): Set empty slot's key to Qunbound. (Fmaphash): Use `EQ (key, Qunbound)` to check if a slot is in use. * src/lisp.h (struct Lisp_Hash_Table): Update comments. 2019-07-26 Stefan Monnier * src/fns.c (hash_index_size): New function, extracted from make_hash_table (make_hash_table, maybe_resize_hash_table): Use it. * src/pdumper.c (check_hash_table_rehash): Use hash_rehash_needed_p. 2019-07-26 Alan Mackenzie CC Mode. Create lang vars for certain skipping expressions at compile time This saves repeated calculations at run time. * lisp/progmodes/cc-langs.el (c-stmt-boundary-skip-chars) (c-stmt-boundary-skip-list, c-stmt-boundary-skip-chars-with-comma) (c-stmt-boundary-skip-list-with-comma): New lang constants/variables. * lisp/progmodes/cc-engine.el (c-commas-bound-stmts): New variable (c-beginning-of-statement-1): Set c-commas-bound-stmts rather than c-stmt-delim-chars. (c-crosses-statement-barrier-p): Remove the now unneeded calculations of c-stmt-delim-chars. Set skip chars to one of the new lang variables, and later to a substring of it. (c-at-statement-start-p): Set c-syntactic-skip-backward from the new variables. (c-at-expression-start-p): Bind c-commas-bound-stmts. Use c-stmt-delim-chars-with-comma rather than c-stmt-delim-chars in a backward scan. (c-guess-basic-syntax): Bind c-commas-bound-stmts rather than c-stmt-delim-chars to itself. Bind c-commas-bound-stmts to t at another place rather than setting c-stmt-delim-chars to c-stmt-delim-chars-with-comma. 2019-07-26 Stefan Monnier * src/fns.c (maybe_resize_hash_table): Obey rehash_size (bug#25743) 2019-07-26 Paul Eggert Fix recently-introduced file-name-absolute-p typo Fix a bug introduced in 2019-07-24T21:28:13!eggert@cs.ucla.edu. * src/fileio.c (file_name_absolute_p): ~/foo is also absolute (Bug#36809). * test/src/fileio-tests.el (fileio-tests--file-name-absolute-p): Rename from fileio-tests--no-such-user and add more tests. 2019-07-26 Paul Eggert Fix ‘make check’ failure Problem introduced in 2019-07-26T07:08:40!larsi@gnus.org. * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): Don’t count "0 unexpected" as unexpected. 2019-07-26 Lars Ingebrigtsen Tweak the display in gnus-summary-browse-url * lisp/gnus/gnus-sum.el (gnus-summary-browse-url): Don't force article conf, because the command may be called from the article buffer (which may be the only buffer displayed). 2019-07-26 Noam Postavsky * lisp/mail/footnote.el (footnote--local-advice): Add missing comma. 2019-07-26 Lars Ingebrigtsen Separate out the "/" prefix into a named keymap in ibuffer * lisp/ibuffer.el (ibuffer--filter-map): Separate out into its own keymap (bug#25797). (ibuffer-mode-map): Bind the "/" key to it. 2019-07-26 Lars Ingebrigtsen Add version tag to smtpmail-servers-requiring-authorization * lisp/mail/smtpmail.el (smtpmail-servers-requiring-authorization): Add version tag. 2019-07-26 Lars Ingebrigtsen Remove interactive spec from eshell-source-file * lisp/eshell/em-script.el (eshell-source-file): This function can't work as an interactive command, so remove the interactive spec (bug#26057). 2019-07-26 Lars Ingebrigtsen Clarify when gpg2 and gpg are used in the epg-gpg-program doc string * lisp/epg-config.el (epg-gpg-program): Doc string clarification (bug#26090). 2019-07-26 Lars Ingebrigtsen Make ffap find {/etc} files again * lisp/ffap.el (ffap-string-at-point-mode-alist): Make (ffap-file-at-point) work on {/etc} again (bug#26190). 2019-07-26 Lars Ingebrigtsen Fix obsoletion notice in dired-pop-to-buffer * lisp/dired.el (dired-pop-to-buffer): `dired-mark-pop-up' doesn't seem to have anything to do with this function, so saying that it's a replacement seems misleading (bug#26243). 2019-07-26 Lars Ingebrigtsen Minor rewording of a couple of sentences in define-derived-mode doc * lisp/emacs-lisp/derived.el (define-derived-mode): Reword documentation to be less whimsical (bug#26301). 2019-07-26 Lars Ingebrigtsen Doc clarification in time-stamp-pattern * lisp/time-stamp.el (time-stamp-pattern): Try to document what the examples mean (bug#26335). 2019-07-26 Lars Ingebrigtsen Add a NEWS item about smtpmail-servers-requiring-authorization 2019-07-26 Lars Ingebrigtsen Allow specifying that SMTP auth should always be used * doc/misc/smtpmail.texi (Authentication): Document it. * lisp/mail/smtpmail.el (smtpmail-servers-requiring-authorization): New variable (bug#26359). (smtpmail-via-smtp): Use it. 2019-07-26 Lars Ingebrigtsen Clarify last-command-event doc string * src/keyboard.c (syms_of_keyboard): Clarify the doc string (bug#26626). 2019-07-26 Lars Ingebrigtsen Add an autoload cookie to package-upload-file * lisp/emacs-lisp/package-x.el (package-upload-file): Add an autoload cookie (bug#26724). 2019-07-26 Lars Ingebrigtsen Tweak prompt when symlinking in dired * lisp/dired-aux.el (dired-do-create-files): Fix prompt when sym/hardlinking (bug#26870). 2019-07-26 Lars Ingebrigtsen Don't infloop in url.el when sending invalid basic auth * lisp/url/url-http.el (url-http-handle-authentication): Bail out if the wrong credentials were passed to the server instead of inflooping (bug#27022). 2019-07-26 Lars Ingebrigtsen Further tweak dired-compress error message * lisp/dired-aux.el (dired-compress): The function is called on both compression and uncompression, so be more ambiguous in the error message. 2019-07-26 Lars Ingebrigtsen Tweak the error message on dired compression failures * lisp/dired-aux.el (dired-compress): Fix error message. 2019-07-26 Lars Ingebrigtsen Remove debugging left in previous patch * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Provide completion for `ignore-error'. 2019-07-26 Lars Ingebrigtsen Add new macro `ignore-error' * doc/lispref/control.texi (Handling Errors): Document `ignore-error'. * lisp/subr.el (ignore-error): New macro. * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Provide completion for `ignore-error'. 2019-07-26 Lars Ingebrigtsen Always include the number of unexpected results here too * lisp/emacs-lisp/ert.el (ert-run-tests-batch): Always include the number of unexpected results here as well. 2019-07-25 Lars Ingebrigtsen Don't run gpg when loading package.el * lisp/emacs-lisp/package.el (package-check-signature): Don't run gpg on startup, but just default to `allow-unsigned'. (package-check-signature): New function to check whether a OpenPGP configuration is found when `allow-unsigned'. (package--check-signature-content, package--check-signature) (package--download-one-archive, package-refresh-contents) (package-install-from-archive): Use function instead of variable throughout. * doc/emacs/package.texi (Package Installation): Document this. 2019-07-25 Paul Eggert Minor pdumper tweaks * src/pdumper.c (dump_hash_table_stable_p): Bool vectors and bignums are also stable keys. (decode_emacs_reloc, drain_reloc_list, Fdump_emacs_portable): (dump_bitset_clear): Simplify use of memset. 2019-07-25 Lars Ingebrigtsen Tweak the behaviour of thing-at-point--end-of-sexp * lisp/thingatpt.el (thing-at-point--end-of-sexp): Don't return nil when called with point between two parentheses (bug#29499). 2019-07-25 Paul Eggert Don't crash when parsing bad SVG data Derived from a patch by Pip Cet (Bug#36773#47). * src/image.c (svg_load_image): Work around librsvg 2.40.13 bug. 2019-07-25 Lars Ingebrigtsen Fix mouse-1 in profiler-report-mode-map * lisp/profiler.el (profiler-report-mode-map): Make `mouse-1' respect `mouse-1-click-follows-link' (bug#30515). 2019-07-25 Lars Ingebrigtsen Make cl-destructuring-bind errors a bit more understandable * lisp/emacs-lisp/cl-macs.el (cl-destructuring-bind): Make errors when giving the wrong number of arguments to the bindings form more informational (bug#29345). 2019-07-25 Eric Abrahamsen Don't set marks on imap groups when there are no marks to set * lisp/gnus/nnimap.el (nnimap-update-qresync-info): This code runs in a fairly tight loop and shouldn't call all these functions if not necessary. 2019-07-25 Alan Mackenzie * lisp/progmodes/cc-awk.el (c-awk-var-num-ket-re): Remove /x80-/xff from it. 2019-07-25 Lars Ingebrigtsen Tweak the sizing of the shr placeholder images on HiDPI screens * lisp/net/shr.el (shr-make-placeholder-image): We have already computed the size of the placeholder including the scale, so force the automatic scale to 1. This will make the placeholder the correct size on HiDPI screen. 2019-07-25 Lars Ingebrigtsen Make `C-u w' in the Gnus Summary buffer open externally * doc/misc/gnus.texi (Article Commands): Document new behaviour. * lisp/gnus/gnus-sum.el (gnus-shorten-url): New function. (gnus-summary-browse-url): Change function to make `C-u' use the external browser (as Gnus does when you hit URLs manually). Don't use an initial input. 2019-07-25 Lars Ingebrigtsen Tweak previous footnote-mode patch * lisp/mail/footnote.el (footnote--local-advice): Ensure that the variable really is local. 2019-07-25 Lars Ingebrigtsen Fix setting fill-paragraph-function in footnote-mode * lisp/mail/footnote.el (footnote--local-advice): New macro refactored out from the code used to advice footnote--adaptive-fill-function in footnote-mode. (footnote-mode): Use it to advice both that variable and fill-paragraph-function (the latter to avoid overwriting the major mode's value) (bug#27775) (footnote--fill-paragraph): Adjust calling convention now that it's an :around advice. 2019-07-25 Eli Zaretskii Fix HarfBuzz support on MS-Windows * src/w32uniscribe.c [HAVE_HARFBUZZ]: Include hb-ot.h. (fn_hb_ot_font_set_funcs, hb_ot_font_set_funcs): Define. (w32hb_get_font): Call hb_ot_font_set_funcs after creating the hb_font_t object, to make the code work with versions of HarfBuzz before 2.0.0. Problem reported by Stephen Leake . Solution suggested by Khaled Hosny in https://lists.freedesktop.org/archives/harfbuzz/2019-July/007412.html. 2019-07-25 Lars Ingebrigtsen Fix many-compilations case of compilation-goto-in-progress-buffer * lisp/progmodes/compile.el (compilation-goto-in-progress-buffer): Fix thinko in initial version of the function in the many-compilations case. 2019-07-25 Eli Zaretskii Fix recent commit in xref.el * lisp/progmodes/xref.el (xref-file-name-display): Doc fix. * etc/NEWS: Fix the corresponding entry. 2019-07-25 Eric Abrahamsen Leave note about removing gnus-start-news-server * lisp/gnus/gnus-int.el (gnus-nntp-server): Once this option is gone, that whole function can go. 2019-07-25 Nobuyoshi Nakada Strip trailing whitespaces at the end of converted do block * lisp/progmodes/ruby-mode.el (ruby-brace-to-do-end): Strip trailing whitespaces at the end of converted do block (bug#36756). https://bugs.ruby-lang.org/issues/16014 https://github.com/syl20bnr/spacemacs/issues/12548 2019-07-25 Lars Ingebrigtsen Clarify in the manual when to use function-key-map * doc/misc/efaq.texi (No Escape key): * doc/emacs/msdos-xtra.texi (MS-DOS Keyboard): Change back to function-key-map from local-function-key-map, because these bindings apply to all terminals. * doc/lispref/keymaps.texi (Translation Keymaps): Clarify in what circumstances you may still want to use function-key-map. 2019-07-24 Juri Linkov * lisp/vc/vc.el (vc-log-search): Fix docstring (bug#36644). * lisp/vc/vc-git.el (vc-git-log-search): Add docstring. 2019-07-24 Paul Eggert Do not treat ~nosuchuser as an absolute file name Derived from Ken Brown’s patch (Bug#36502#97). * doc/lispref/files.texi (Relative File Names): * etc/NEWS: Document this. * src/fileio.c (user_homedir): New function. (Fexpand_file_name, file_name_absolute_p): Use it. (search_embedded_absfilename): Simplify via file_name_absolute_p. * test/src/fileio-tests.el (fileio-tests--no-such-user): New test. 2019-07-24 Sam Steingold Add `gnus-collect-urls-primary-text' * lisp/gnus/gnus-sum.el (gnus-collect-urls-primary-text): Add defcustom. (gnus-collect-urls): Use it. (gnus-summary-browse-url): Mention it in the docstring. 2019-07-24 Paul Eggert Port double-slash test to z/OS * admin/merge-gnulib (GNULIB_MODULES): Add double-slash-root. Emacs was already using this Gnulib module indirectly, so this is merely noting that there is now a direct dependency. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * src/fileio.c (search_embedded_absfilename): Use DOUBLE_SLASH_IS_DISTINCT_ROOT instead of (WINDOWSNT || CYGWIN). Simplify. 2019-07-24 Paul Eggert Update from Gnulib This incorporates: 2019-07-16 update-copyright: Make it work again * build-aux/config.guess, build-aux/update-copyright: Copy from Gnulib. 2019-07-24 Sam Steingold Avoid potential extensive verbosity in gnus-summary-browse-url * lisp/wid-edit.el (widget-move): Accept suppress-echo argument. * lisp/gnus/gnus-sum.el (gnus-collect-urls): Use it. 2019-07-24 Lars Ingebrigtsen Use input-decode-map in the manuals * doc/misc/edt.texi (Changes): * doc/emacs/custom.texi (Terminal Init): Use input-decode-map instead of local-function-key-map, according to Stefan Monnier. 2019-07-24 Mattias Engdegård Use destructuring in filenotify backend handlers * lisp/filenotify.el (file-notify--callback-inotify) (file-notify--callback-kqueue, file-notify--callback-w32notify) (file-notify--callback-gfilenotify, file-notify--callback): Use cl-defun. 2019-07-24 Mattias Engdegård Use defstruct instead of list for filenotify pending-rename * lisp/filenotify.el (file-notify--rename): New defstruct. (file-notify--pending-rename): Changed type. (file-notify--handle-event): Adapt to new type. 2019-07-24 Mattias Engdegård Refactor the callback half of filenotify.el Split callback code into backend-specific and general parts. Refactor pending event, which is always a rename, to include relevant information only. General clean-up. * lisp/filenotify.el (file-notify--pending-event): Rename. (file-notify--event-watched-file, file-notify--event-file-name) (file-notify--event-file1-name, file-notify--event-cookie): Remove. (file-notify--rename, file-notify--expand-file-name) (file-notify--callback-inotify, file-notify--callback-kqueue) (file-notify--callback-w32notify, file-notify--callback-gfilenotify) (file-notify--call-handler, file-notify--handle-event): New. (file-notify-callback): Split general parts into file-notify--call-handler and file-notify--handle-event. (file-notify--add-watch-inotify, file-notify--add-watch-kqueue) (file-notify--add-watch-w32notify) (file-notify--add-watch-gfilenotify): Use new callbacks. 2019-07-24 Mattias Engdegård Don't use internal filenotify function in test * test/lisp/filenotify-tests.el (file-notify--test-file, file-notify--test-add-watch): New. (file-notify--test-event-test, file-notify--test-event-handler) (file-notify-test02-rm-watch, file-notify-test03-events) (file-notify-test05-file-validity, file-notify-test07-many-events) (file-notify-test08-backup, file-notify-test09-watched-file-in-watched-dir): Avoid using the internal `file-notify--event-watched-file' so that it can be removed from filenotify.el. Instead, pass the file name to the callback as an extra argument; use `file-notify--test-add-watch' instead of `file-notify-add-watch'. 2019-07-24 Mattias Engdegård Local definitions of accessors only used in test * test/lisp/filenotify-tests.el (file-notify--test-event-file) (file-notify--test-event-file1, file-notify--test-event-test) (file-notify--test-event-handler): Define accessors locally, so that they can be removed from filenotify.el. 2019-07-24 Thomas Fitzsimmons soap-client: Do not double-encode duplicate types * lisp/net/soap-client.el (soap-encode-xs-complex-type): Eliminate duplicates from type hierarchy before encoding values. 2019-07-24 Thomas Fitzsimmons soap-client: Encode simple type attributes * lisp/net/soap-client.el (soap-encode-xs-simple-type-attributes): Encode simple type attributes. 2019-07-24 Thomas Fitzsimmons soap-client: Allow attributes and a value * lisp/net/soap-client.el (soap-encode-xs-basic-type): Allow attributes and a value to be specified in the same element. 2019-07-24 Andreas Schwab * lisp/gnus/gnus-cus.el (gnus-extra-group-parameters): Allow nil for modseq. 2019-07-23 Juri Linkov Customizable char-fold with char-fold-symmetric, char-fold-include (bug#35689) * doc/emacs/search.texi (Lax Search): Document char-fold-symmetric, char-fold-include, char-fold-exclude. * lisp/char-fold.el (char-fold--default-include) (char-fold--default-exclude, char-fold--default-symmetric) (char-fold--previous): New defconsts. (char-fold-include, char-fold-exclude, char-fold-symmetric): New defcustoms. (char-fold-make-table): Use them. (char-fold-update-table): New function called at top-level. * test/lisp/char-fold-tests.el (char-fold--test-no-match-exactly) (char-fold--permutation): New functions. (char-fold--test-without-customization) (char-fold--test-with-customization): New tests. 2019-07-23 Paul Eggert Merge pdumper.c and alloc.c builtin symbol tests * src/alloc.c (c_symbol_p): Move from here ... * src/lisp.h (c_symbol_p): ... to here, and make it more portable to hypothetical platforms where pointers are wider than ptrdiff_t. * src/pdumper.c (dump_builtin_symbol_p): Use c_symbol_p. 2019-07-23 Lars Ingebrigtsen Make "Compiling" in the mode line a clickable command * lisp/progmodes/compile.el (compilation-goto-in-progress-buffer): New command. (compilation-in-progress): Don't put the in-progress mode-line marker among the minor modes (because it's not a minor mode), and add a command that allows you to switch to the in-progress compilation buffer (bug#27252). 2019-07-23 Robert Pluim Follow decomposition chains when constructing char-fold-table * lisp/char-fold.el (char-fold-make-table): Decompose the decomposition of each character, adding equivalences to the original character, until no more decompositions are left. 2019-07-23 Lars Ingebrigtsen Refer to local-function-key-map in various manuals * doc/misc/viper.texi (Key Bindings): * doc/misc/efaq.texi (X key translations for Emacs) (No Escape key): * doc/misc/edt.texi (Changes): * doc/emacs/msdos-xtra.texi (MS-DOS Keyboard): * doc/emacs/custom.texi (Terminal Init): Refer to local-function-key-map instead of function-key-map, since the latter isn't supposed to be changed (bug#27490). 2019-07-23 Paul Eggert Improve pdumper doc; say unexec is deprecated Say that pdumping cannot redump unless -batch is used. Say that the traditional unexec dumping method is by default not available, and is deprecated. Don't call dump files "portable", as dump files are not any more portable than the Emacs executables themselves. Just call them "dump files". Similar, prefer "portable dumper" (since the dumper code is portable) to "portable dumping" (since the dump file is not). Be more systematic about calling them "dump files" instead of "dumped images" or whatnot. 2019-07-23 Stefan Monnier * src/fns.c (hashfn_user_defined): Make sure we always return a fixnum. 2019-07-23 Alan Mackenzie Fix problems in CC Mode with " being entered into a comment at EOB. * lisp/progmodes/cc-engine.el (c-full-lit-near-cache): Amend the definition such that an element's END element will be nil if the pertinent literal is open at EOB. (c-full-pp-to-literal): Before setting the aforementioned END element, check that we're no longer in a literal. (c-literal-limits): When c-full-pp-to-literal returns a list with a nil END element, replace this by (point-max) to keep the interface of c-literal-limits unchanged. * lisp/progmodes/cc-mode.el (c-after-change-mark-abnormal-strings): Having found a string quote, check it is not inside an unterminated comment (i.e. one at EOB). 2019-07-23 Paul Eggert Support "%x" etc. formats on more floats * doc/lispref/strings.texi (Formatting Strings): Document this. * src/editfns.c (styled_format): Support %o, %x, and %X on finite floats less than zero or greater than UINTMAX_MAX. * test/src/editfns-tests.el (format-%x-large-float) (read-large-integer, format-%o-negative-float): Adjust tests to match extended behavior. Rename the latter test from format-%o-invalid-float, since the float is no longer invalid. * test/src/editfns-tests.el (format-%x-large-float) (read-large-integer): Test this. 2019-07-22 Paul Eggert Tweak performance of cmpfn_profiler * src/profiler.c (cmpfn_profiler): Improve performance when VECTORP (bt1) && EQ (bt1, bt2). 2019-07-22 Paul Eggert Avoid overexposing fixnums for hash codes Following a suggestion by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00530.html * doc/lispref/hash.texi (Creating Hash, Defining Hash): * src/fns.c (Fsxhash_eq, Fsxhash_eql, Fsxhash_equal, Fmake_hash_table): Don’t insist that hash codes be fixnums, reverting the recent doc changes to the contrary. * src/bytecode.c (exec_byte_code): Special-case only the eq case, as the others aren’t worth tuning now that we treat bignum hashes like fixnums. * src/fns.c (hashfn_user_defined): If the hash code is a bignum, reduce its hash down to a fixnum. 2019-07-22 Stefan Kangas Document normal usage in ibuffer.el * lisp/ibuffer.el (Commentary): Document normal usage. (Bug#5608) Remove redundant :group args. 2019-07-22 Paul Eggert Do not pdump user-defined hashtabs * src/pdumper.c (dump_hash_table_stable_p): Signal an error if a hash table has user-defined tests (Bug#36769). * src/fns.c (hashfn_user_defined): Now extern. 2019-07-22 Paul Eggert Keep track of consing while GC’s inhibited * src/alloc.c (allow_garbage_collection): Do not discard the count of consing that occurred while GC was inhibited. Problem and initial fix reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00523.html 2019-07-22 Pip Cet Avoid byte compiler warning for subr.el * lisp/subr.el (number-sequence): Simplify to avoid byte compiler warning. 2019-07-22 Paul Eggert Remove no-longer-needed integer overflow code * lisp/calculator.el (calculator-number-to-string): Use truncate, not calculator-truncate, since integer overflow cannot occur here. * lisp/calendar/cal-persia.el (calendar-persian-year-from-absolute): * lisp/gnus/gnus-agent.el (gnus-agent-read-article-number): * lisp/gnus/nnmaildir.el (nnmaildir--group-maxnum) (nnmaildir--new-number): * lisp/scroll-bar.el (scroll-bar-scale): * lisp/simple.el (beginning-of-buffer, end-of-buffer): Simplify, now that integer overflow cannot occur. 2019-07-22 Eric Abrahamsen Adjust regexp for parsing IMAP header response * lisp/gnus/nnimap.el (nnimap-transform-headers): The first header might have no value, or a continuation header might start with a newline. 2019-07-22 Stefan Monnier * lisp/progmodes/opascal.el: Tweak code to ease edebugging (opascal-strings): Inline in its sole use. (opascal-save-excursion): Add Edebug spec. (opascal-is): Remove. Use `memq` directly instead. (opascal--in): New pcase pattern. (opascal-literal-end-pattern): Remove unused function. (opascal--scan-non-whitespace-backward): New macro. (opascal-block-start, opascal-else-start, opascal-is-use-clause-end) (opascal-previous-indent-of, opascal-section-indent-of) (opascal-enclosing-indent-of): Use it. (opascal-corrected-indentation): Presume we're already at first token. (opascal-indent-line): Use indent-line-to. (opascal-new-comment-line): Declare obsolete. (opascal-mode-map): Keep the default M-j binding instead. 2019-07-22 Eric Abrahamsen Fix case of IMAP Noselect flag * lisp/gnus/nnimap.el (nnimap-get-groups): We should be looking for %Noselect, not %NoSelect. 2019-07-22 Mattias Engdegård Remove some obsolete integer overflow handling * lisp/subr.el (number-sequence): * lisp/org/org-gnus.el (org-gnus-follow-link): * lisp/ls-lisp.el (ls-lisp-insert-directory): Remove dead code guarding against integer overflow. 2019-07-22 Stefan Monnier * lisp/progmodes/opascal.el: Allow inline `var` decl in `for` (bug#36348) (opascal-enclosing-indent-of): Ignore decls "neutered" by delimiter. 2019-07-22 Mattias Engdegård Make tramp test regexp more robust * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Match a greater variety of human-readable size values. 2019-07-22 Michael Albinus Support history files in remote shells (Bug#36742) * doc/emacs/misc.texi (Shell Ring): Mention history file for remote shells. * lisp/shell.el (shell--start-prog): New buffer-local variable. (shell): Set it. (shell-mode): Handle history file for remote shells. (Bug#36742) 2019-07-22 Martin Rudalics Handle persistence of windows' scroll bar and fringes settings (Bug#36193) * doc/lispref/display.texi (Fringe Size/Pos): Document new argument PERSISTENT of 'set-window-fringes'. (Scroll Bars): Document new argument PERSISTENT of 'set-window-scroll-bars'. Mention that HORIZONTAL-TYPE must be 'bottom' to show a horizontal scroll bar on mini windows. * lisp/window.el (window-min-pixel-height): For mini windows the minimum height is one line. (window--min-size-1): Use value returned by 'window-min-pixel-height' when dealing with mini windows. (window--resize-mini-window): Try to handle horizontal scroll bars and size restrictions more accurately. (window--state-put-2): Handle persistence of scroll bar settings. * src/frame.c (make_frame): Allow horizontal scroll bars in mini windows. (adjust_frame_size): Drop PIXELWISE argument in 'resize_frame_windows' calls. * src/window.c (set_window_buffer): Don't override WINDOW's scroll bar and fringe settings when marked as persistent. (resize_frame_windows): Drop fourth argument PIXELWISE - SIZE is always specified in terms of pixels. Try to handle height of mini windows more accurately. (grow_mini_window, shrink_mini_window): Use body height of mini window when calculating expected height change. Take horizontal scroll bars into account. (struct saved_window): Two new members to handle persistence of window fringes and scroll bars. (Fset_window_configuration, save_window_save): Handle persistence of fringes and scroll bars. (set_window_fringes, set_window_scroll_bars): New arguments PERSISTENT. Make dimension checks more accurate. (Fset_window_fringes): New argument PERSISTENT. (Fwindow_fringes, Fwindow_scroll_bars): Add PERSISTENT to return values. (Fset_window_scroll_bars): New argument PERSISTENT. In doc-string mention that 'bottom' must be specified to get a horizontal scroll bar in mini windows. (compare_window_configurations): Add checks for persistence of fringes and scroll bars. * src/window.h (struct window): New boolean slots 'fringes_persistent' and 'scroll_bars_persistent'. (WINDOW_HAS_HORIZONTAL_SCROLL_BAR): Allow horizontal scroll bars for mini windows. (resize_frame_windows): Remove fourth argument of 'resize_frame_windows' in external declaration. * src/xdisp.c (resize_mini_window): Use box text height to tell whether mini window height changed. (set_horizontal_scroll_bar): Set mini window's horizontal scroll bar when its type is specified as 'bottom'. * etc/NEWS: Mention new options for 'set-window-fringes' and 'set-window-scroll-bars'. 2019-07-21 Alan Mackenzie Implement C++ Mode attributes. This fixes bug #36650. * lisp/progmodes/cc-engine.el (c-looking-at-c++-attribute) (c-enclosing-c++-attribute, c-slow-enclosing-c++-attribute): New macro and functions. (c-crosses-statement-barrier-p): Add [ into skip-chars for C++ Mode, and use it to detect and skip over an attribute whilst scanning forward. (c-sws-lit-type): Use the new value 'attribute. (c-invalidate-sws-region-before): Put a save-match-data around this function. Detect and handle an enclosing attribute at either END or BEG. (c-invalidate-sws-region-after): Handle C++ attributes. (c-forward-sws, c-backward-sws): Handle C++ attributes. * lisp/progmodes/cc-mode.el (c-fl-decl-end): Detect and handle point being inside a C++ attribute. 2019-07-21 Paul Eggert Fix lifetime error in previous patch Problem reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00520.html * src/alloc.c (inhibit_garbage_collection): Use new function. (allow_garbage_collection): Accept intmax_t, not pointer. * src/eval.c (default_toplevel_binding, do_one_unbind) (backtrace_eval_unrewind, Fbacktrace__locals, mark_specpdl): Support SPECPDL_UNWIND_INTMAX. (record_unwind_protect_excursion): New function. * src/lisp.h (enum specbind_tag): New constant SPECPDL_UNWIND_INTMAX. (union specbinding): New member unwind_intmax. 2019-07-21 Paul Eggert Speed up maybe_gc when GC is inhibited * src/alloc.c (allow_garbage_collection) (inhibit_garbage_collection): Temporarily bump consing_until_gc, to improve performance of maybe_gc while garbage collection is inhibited. Suggested by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00511.html 2019-07-21 Paul Eggert Avoid integer overflow in hash table size * src/fns.c (INDEX_SIZE_BOUND): Use a tighter bound. (maybe_resize_hash_table): Avoid integer overflow when checking for hash table size overflow. Fix confusion between INDEX_SIZE_BOUND (which is for the index vector) and hash table size. Fix typo in debugging message when ENABLE_CHECKING. 2019-07-21 Paul Eggert Improve doc for hash tables * doc/lispref/hash.texi (Creating Hash, Defining Hash): * src/fns.c (Fsxhash_eq, Fsxhash_eql, Fsxhash_equal): Say that hashes are fixnums. (Fmake_hash_table): Say that that an integer rehash-size should be a fixnum. * doc/lispref/hash.texi (Defining Hash): Say that hash and comparison functions should be consistent and pure, and should return quickly. 2019-07-21 Paul Eggert pure_alloc returns cleared memory * src/alloc.c (pure_alloc): Clear any heap-allocated storage. This is simpler than auditing all the callers to make sure they don’t assume pure memory is cleared memory, and the performance implication is nonexistent except when Emacs is misconfigured. Also, add an assertion to catch caller misuse when pure space is exhausted. 2019-07-21 Lars Ingebrigtsen Make the unflag-p parameter in dired-mark-unmarked-files work * lisp/dired-x.el (dired-mark-unmarked-files): Make the unflag-p parameter work (bug#27465). 2019-07-21 Lars Ingebrigtsen Don't override SSH_AUTH_SOCK in the example emacs.service file * etc/emacs.service (ExecStop): Don't override SSH_AUTH_SOCK by default, because it varies by distribution where the socket is (bug#27620). 2019-07-21 Lars Ingebrigtsen Fill footnotes better on `M-q' * lisp/mail/footnote.el (footnote--fill-paragraph): New function (bug#27775). (footnote-mode): Use it. 2019-07-21 Ken Brown Fix expand-file-name for names starting with '~' * src/fileio.c: (file_name_absolute_no_tilde_p): New static function. (Fexpand_file_name): If the current buffer's default-directory starts with "~user" where "user" is not a valid user name, don't give the '~' a special meaning. Just treat the value of default-directory as a relative name. (Bug#36502) * test/src/fileio-tests.el (fileio-tests--relative-default-directory): Add a test. 2019-07-21 Gemini Lasswell Fix inline-quote Edebug spec * lisp/emacs-lisp/inline.el (inline-quote): Fix the edebug spec (bug#31051). 2019-07-20 Paul Eggert Tweak recent hash-table fix * src/fns.c (maybe_resize_hash_table): Completely initialize the new ‘next’ vector before allocating more vectors, as this preserves locality a bit better and it’s safer not to leave an uninitialized Lisp object around. Use next_size instead of new_size to compute new index size. 2019-07-20 Paul Eggert Fix crash if user test munges hash table * src/fns.c (restore_mutability) (hash_table_user_defined_call): New functions. (cmpfn_user_defined, hashfn_user_defined): Use them. (make_hash_table, copy_hash_table): Mark new hash table as mutable. (check_mutable_hash_table): New function. (Fclrhash, Fputhash, Fremhash): Use it instead of CHECK_IMPURE. * src/lisp.h (struct hash_table_test): User-defined functions now take pointers to struct Lisp_Hash_Table, not to struct hash_table_test. All uses changed. (struct Lisp_Hash_Table): New member ‘mutable’. * src/pdumper.c (dump_hash_table): Copy it. * test/src/fns-tests.el (test-hash-function-that-mutates-hash-table): New test, which tests for the bug. 2019-07-20 Paul Eggert Simplify hashfn/cmpfn calling convention * src/fns.c (cmpfn_eql, cmpfn_equal, cmpfn_user_defined) (hashfn_eq, hashfn_equal, hashfn_eql, hashfn_user_defined): * src/profiler.c (cmpfn_profiler, hashfn_profiler): Use new calling convention where the return value is a fixnum instead of EMACS_UINT. While we’re at it, put the hash table at the end, since that’s a bit simpler and generates better code (at least on the x86-64). All callers changed. * src/fns.c (hash_lookup): Store fixnum rather than EMACS_UINT. All callers changed. (hash_put): Take a fixnum rather than an EMACS_UINT. All callers changed. Remove unnecessary eassert (XUFIXNUM does it). * src/lisp.h (struct hash_table_test): Adjust signatures of cmpfn and hashfn. 2019-07-20 Paul Eggert Inhibit GC after inhibit_garbage_collection Without this patch, there are unlikely ways that garbage collection could occur (sometimes causing undefined behavior) even when inhibit_garbage_collection is in effect. * src/alloc.c (garbage_collection_inhibited): New var. (pure_alloc): Increment it if pure space is exhausted, so that garbage_collect_1 no longer needs to inspect pure_bytes_used_before_overflow. (allow_garbage_collection): New function. (inhibit_garbage_collection): Increment the new variable rather than specbinding a user variable. (garbage_collect_1): Do not garbage collect if the new variable is set, rather than if pure_bytes_used_before_overflow is set. 2019-07-20 Paul Eggert Simplify maybe_gc implementation * src/alloc.c (consing_until_gc): New variable, replacing the combination of consing_since_gc and gc_relative_threshold. All uses changed. (byte_ct): Move decl here from lisp.h. (memory_full_cons_threshold): New an enum constant. (free_cons): Check for integer overflow in statistics calculation. * src/lisp.h (object_ct): Move decl here from alloc.c. (OBJECT_CT_MAX): New macro. (maybe_gc): Simplify accordingly. 2019-07-20 Paul Eggert Rename ‘pure’ to ‘purecopy’ * src/lisp.h (struct Lisp_Hash_Table): Rename ‘pure’ member to ‘purecopy’, as the old name was quite confusing (it did not mean the hash table was pure). All uses changed. 2019-07-20 Paul Eggert Fix hash table overallocation etc. * src/fns.c (set_hash_key_and_value, set_hash_next) (set_hash_hash, set_hash_index): Remove. All uses removed. (maybe_resize_hash_table): Don’t update h->next until it’s known that all the allocations succeeded, to avoid trashing the hash table if memory is exhausted. Don’t overallocate the other vectors. Don’t output growth message if the hash table didn’t actually grow due to allocation failure. Assume C99 decls after statements. 2019-07-20 Noam Postavsky Merge from emacs-26 150bdfe43a Handle completely undecoded input in term (Bug#29918) 021f32cca1 * doc/misc/forms.texi (Control File Format): Fix a doc error. 76538d09b7 Fix typo in package-alist docstring b2fde4b5e8 * doc/lispref/text.texi (Mode-Specific Indent): Fix a typo... 7e62778548 ; Another minor change in 'bidi-display-reordering's doc s... 4455ddbe56 Improve doc string of 'bidi-display-reordering' 34ee26dd93 Add warning to bidi-display-reordering doc string # Conflicts: # lisp/term.el # test/lisp/term-tests.el 2019-07-20 Basil L. Contovounesios Use lexical-binding in compface.el * lisp/image/compface.el: Use lexical-binding. Extend Keywords header. (uncompface): Call call-process-region directly. 2019-07-20 Oleh Krehel * lisp/files.el (file-size-function): Add :version tag 2019-07-20 Stefan Monnier * test/manual/indent/octave.m (spmd): Add test for last change * lisp/progmodes/octave.el (matchedrules): Add `spmd...end` (bug#36703) 2019-07-20 Basil L. Contovounesios Fix last change to format-spec * doc/lispref/text.texi (Interpolated Strings): Use @result and fix typos. * lisp/format-spec.el: Avoid loading subr-x at runtime. (format-spec--parse-modifiers): Optimize slightly. 2019-07-20 Basil L. Contovounesios Allow counter-clockwise rotations in image-rotate * lisp/image.el (image-rotate): Extend with an optional argument specifying the rotation in degrees (bug#35421). * doc/lispref/display.texi (Showing Images): * etc/NEWS: Document the change. * test/lisp/image-tests.el (image-rotate): New test. 2019-07-20 Lars Ingebrigtsen Mark the gnus-article-date-headers NEWS entry as documented 2019-07-20 Adam Sjøgren Enable showing local time and lapsed time in Gnus * lisp/gnus/gnus-art.el (article-make-date-combine-with-lapsed) factor code out into new function, used for providing both combined-lapsed and combined-local-lapsed. 2019-07-20 Lars Ingebrigtsen Clean up code in nnimap-parse-flags slightly * lisp/gnus/nnimap.el (nnimap-parse-flags): Clean up code slightly, removing redundant checks for `end'. 2019-07-20 Eli Zaretskii Fix last change * etc/NEWS: Call out the change in matching REGEXP. * lisp/files.el (magic-mode-alist) (magic-fallback-mode-alist): Doc fix. (Bug#36401) 2019-07-20 Benjamin Riefenstahl Make REs in magic-(fallback-)mode-alist case-sensitive. These variables are used for well-defined file formats where relaxed case matching is not wanted usually. * lisp/files.el (magic-mode-alist, magic-fallback-mode-alist): Update the doc string. (set-auto-mode): Make looking-at for elements of magic-mode-alist and magic-fallback-mode-alist use case-fold-search == nil. * lisp/files.el (files-test-magic-mode-alist-re-baseline) (files-test-magic-mode-alist-re-no-match) (files-test-magic-mode-alist-re-case-diff): Add. 2019-07-20 Stefan Kangas Make finder-exit use quit-window (Bug#33610) * lisp/finder.el (finder-exit): Quit window instead of deleting. This restores previous contents of the window, if any, that was usurped by "C-h p" to show the list of packages. 2019-07-20 Mauro Aranda Remove duplicated code in octave-eldoc-function * lisp/progmodes/octave.el (octave-eldoc-function): The test of position of the opening parenthesis in inferior-octave-process was duplicated. Remove one of the tests. (Bug#36557) 2019-07-19 Oleh Krehel * lisp/files.el (file-size-function): New defcustom 2019-07-19 Mattias Engdegård Neater free disk space formatting * lisp/files.el (get-free-disk-space): Update doc string. Use `iec' style and proper spacing. 2019-07-19 Martin Rudalics Have 'display-buffer-reuse-window' prefer window on selected frame (Bug#36680) * lisp/window.el (display-buffer-reuse-window): Preferably reuse window on selected frame (Bug#36680). * doc/lispref/windows.texi (Buffer Display Action Functions): Say that 'display-buffer-reuse-window' prefers window on the selected frame. 2019-07-18 Noam Postavsky Don't load elec-pair in elisp-mode (Bug#36539) * lisp/progmodes/elisp-mode.el (emacs-lisp-set-electric-text-pairs): New function. (emacs-lisp-mode): Add it to electric-pair-mode-hook, if elec-pair hasn't been loaded yet. 2019-07-18 Stefan Kangas Use lexical-binding in help-fns-tests.el (Bug#36585) * test/lisp/help-fns-tests.el: Use lexical-binding. Doc fix. 2019-07-18 Stefan Kangas Declare mwheel-install obsolete (Bug#36553) * lisp/mwheel.el: Update `Commentary' section. (mwheel-install): Declare obsolete in favor of mouse-wheel-mode. * etc/NEWS: Announce it. 2019-07-18 Juri Linkov * lisp/vc/vc-git.el (vc-git-log-search): Remove shell-quote-argument. (Bug#36644) 2019-07-18 Simen Heggestøyl Use lexical-binding in asm-mode.el and add tests * lisp/progmodes/asm-mode.el: Use lexical-binding. (asm-comment-char): Remove redundant :group arg. (asm-mode): Use `setq-local'. (asm-calculate-indentation): Remove moot `or'. * test/lisp/progmodes/asm-mode-tests.el: New file with tests for asm-mode.el. 2019-07-18 Michael Albinus Determine `file-notify' handler in Tramp from `special-event-map'. * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter) (tramp-sh-gvfs-monitor-dir-process-filter) (tramp-sh-inotifywait-process-filter): Determine `file-notify' handler from `special-event-map'. 2019-07-18 Stefan Monnier * lisp/server.el (server-ensure-safe-dir): Revert part of b663c8372495 A non-cosmetic change that was mistakenly included. 2019-07-18 Glenn Morris Update a tramp test for get-free-disk-space change * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Handle optional unit suffix in free space. 2019-07-18 Oleh Krehel * lisp/files.el (get-free-disk-space): Use file-size-human-readable Since there is no longer an option to do: (setq directory-free-space-args "-Pmh") 2019-07-18 Eli Zaretskii * lisp/abbrev.el (abbrev-prefix-mark): Fix a typo. (Bug#36715) 2019-07-17 Eric Abrahamsen Fix indexing of Gnus entry in gnus-group-unsubscribe-group * lisp/gnus/gnus-group.el (gnus-group-unsubscribe-group): Hopefully that's the last of these. 2019-07-17 Stephen Leake Add xref-file-name-display * lisp/progmodes/xref.el (xref-file-name-display): New user variable. (xref-location-group): Use it. * etc/NEWS: Mention it. 2019-07-17 Nick Drozd * test/lisp/progmodes/cc-mode-tests.el: Add a test with /***/ in #define lines 2019-07-17 Alan Mackenzie * lisp/progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): Fix faulty regexp 2019-07-16 Glenn Morris An electric test is now passing * test/lisp/electric-tests.el (electric-pair-whitespace-chomping-2-at-point-4-in-c++-mode-in-strings): Seems to pass since today's cc-mode changes. 2019-07-16 Glenn Morris * lisp/wid-edit.el: Previous change needs subr-x. 2019-07-16 Sam Steingold Treat the "Link" link in gnus-summary-browse-urls specially * lisp/gnus/gnus-sum.el (gnus-collect-urls): Make sure that the URL labeled "Link" is the first in the return list. (gnus-summary-browse-url): Use the 1st URL as the default. * lisp/wid-edit.el (widget-text): New function. 2019-07-16 Alan Mackenzie CC Mode: allow bogusly "adjacent" double quote marks to pair up syntactically For this introduce the text property c-fl-syn-tab to "mirror" syntax-table. * lisp/progmodes/cc-defs.el (c-is-escaped, c-will-be-escaped, c-put-syn-tab) (c-clear-syn-tab, c-clear-syn-tab-properties, c-with-extended-string-fences): new macros. (c-point): Use c-is-escaped (c-search-forward-char-property, c-search-backward-char-property) (c-search-forward-char-property-with-value-on-char) (c-search-forward-char-property-without-value-on-char): Fix regexp error involving \n. * lisp/progmodes/cc-engine.el (c-semi-pp-to-literal): User c-with-extended-string-fences around a parse-partial-sexp. (c-full-get-near-cache-entry): Fix an off-by-one error. (c-full-pp-to-literal): Avoid writing duplicate entries into a cache. (c-after-change-unmark-raw-strings): Use c-clear-syn-tab-properties. * lisp/progmodes/cc-mode.el (c-leave-cc-mode-mode): Clear the c-fl-syn-tab properties, too. (c-basic-common-init): Mark c-fl-syn-tab as a non-sticky text property. (c-depropertize-new-text): Also handle c-fl-syn-tab. (c-multiline-string-check-final-quote, c-parse-quotes-after-change): Use c-is-escaped. (c-fl-syn-tab-region): New variable. (c-clear-string-fences, c-restore-string-fences, c-remove-string-fences): New functions. (c-before-change-check-unbalanced-strings) (c-after-change-mark-abnormal-strings, c-after-change-escape-NL-in-string): Use the new functions and macros. (c-before-change, c-after-change, c-font-lock-fontify-region): Restore the syntax-table text properties from c-fl-syn-tab text properties for these functions. (c-electric-pair-inhibit-predicate): Test the c-fl-syn-tab property rather than syntax-table. 2019-07-16 Basil L. Contovounesios Fix failing secrets-test03-items * test/lisp/net/secrets-tests.el: Use lexical-binding. (secrets-test03-items): Do not assume :xdg:schema attribute is silently added to the front of the collection (bug#36694). (secrets-test04-search, secrets-test-all): Quote function symbols as such. 2019-07-16 Mattias Engdegård Fix calc number formatting with digit grouping (bug#36689) The functions math-format-hex and math-format-octal were not implemented, yet called, leading to a crash when using hex or octal radix with digit grouping. * test/lisp/calc/calc-tests.el (calc-test-format-radix): New test. * lisp/calc/calc-ext.el: Don't declare non-existing functions. (math--format-integer-fancy): Don't call non-existing functions. * lisp/calc/calc-bin.el (math-format-binary, math-binary-digits): Simplify, fixing 0-padding bug. 2019-07-16 Lars Ingebrigtsen Revert "Add support for paths to svg.el" This reverts commit d6bc55ae2dc98c83e58a28e380ce4bcf2ed00bb3. Paperwork not ready for Felix Klee; will reapply once that's in place. 2019-07-16 Lars Ingebrigtsen Revert "* doc/lispref/display.texi (SVG Images): Add menu for subsection." This reverts commit e5cd597c7736b587f80c16fde1c53f904d921310. Paperwork nod ready for the SVG Path patch. 2019-07-16 Mattias Engdegård Set revert-buffer-function in ert-results-mode * lisp/emacs-lisp/ert.el (ert-results-mode): Set revert-buffer-function to re-run the same test selection. It is a good fit and permits use of the standard "g" key binding. 2019-07-16 Stephen Berman Prevent infinite loop on entering wdired-mode * lisp/wdired.el (wdired-preprocess-symlinks): Remove unneeded use of beginning-of-line, which also triggers an infinite loop in a find-dired buffer that doesn't end with a newline (see discussion in bug#35609). 2019-07-15 Juri Linkov * lisp/vc/vc.el (vc-log-search): New command (bug#36644). * lisp/vc/vc-git.el (vc-git-log-search): New function. (vc-git-log-view-mode): Check vc-log-view-type for log-search. 2019-07-15 Juri Linkov * lisp/vc/vc-dir.el (vc-dir-search): Remove lambda. (Bug#31578) Thanks to Dmitry Gutov 2019-07-15 Juri Linkov * lisp/frame.el (make-frame-on-display): Use x-display-list in completion. (Bug#29713) 2019-07-15 Juri Linkov * lisp/progmodes/sh-script.el (sh-assignment): Put delete-selection on symbol 2019-07-15 Glenn Morris * doc/lispref/display.texi (SVG Images): Add menu for subsection. 2019-07-15 Stefan Monnier * lisp/gnus/nntp.el: Use lexical-binding (nntp-server-action-alist): Expose the code to the compiler. (nntp-with-open-group-function): No need to obfuscate identifiers any more. (nntp-authinfo-rejected): Use `define-error`. 2019-07-15 Lars Ingebrigtsen Fix INITIAL-INPUT cons handling in ido-read-internal * lisp/ido.el (ido-read-internal): Is INITIAL-INPUT is a cons that specifies cursor position, adjust the number to be palatable for `read-for-minibuffer' (bug#27807). 2019-07-15 Lars Ingebrigtsen Fix saving certificates in the NSM on high security levels * lisp/net/nsm.el (nsm-check-certificate): `nsm-fingerprint-ok-p' will save the fingerprint in the correct temporary/permanent storage, so saving it once more (in the permanent storage) if the security level is high or greater is a mistake (bug#27823). 2019-07-15 Lars Ingebrigtsen Tweak mouse-face highlighting of Occur buffers * lisp/replace.el (occur-engine): Ensure that the mouse highlight is done over the entire line (bug#27846). 2019-07-15 Lars Ingebrigtsen open-dribble-file doc string clarification * src/keyboard.c (Fopen_dribble_file): Clarify when the file is closed, and when events are written to the file (bug#27996). 2019-07-15 Eric Abrahamsen Possibly skip IMAP server FETCH responses See bug#35433 * lisp/gnus/nnimap.el (nnimap-transform-headers): Skip FETCH responses that only provide message flags, not message headers. 2019-07-15 Felix E. Klee Add support for paths to svg.el * doc/lispref/display.texi (SVG Images): Document svg-path, svg-clip-path and svg-node (bug#32359). * doc/lispref/display.texi (SVG Path Commands): New node. * lisp/svg.el (svg--plist-delete, svg--path-command-symbol) (svg--elliptical-arc-coordinates, svg--elliptical-arc-command) (svg--moveto-command, svg--closepath-command) (svg--lineto-command, svg--horizontal-lineto-command) (svg--vertical-lineto-command, svg--curveto-command) (svg--smooth-curveto-command) (svg--quadratic-bezier-curveto-command) (svg--smooth-quadratic-bezier-curveto-command) (svg--eval-path-command, svg-path, svg-clip-path, svg-node): New functions. 2019-07-15 Lars Ingebrigtsen Revert "Add edebug specs for inline.el" This reverts commit ed29d9fe5286ab6ecfb2bfa5a015b9945a84512b. The edebug specs were already in the declare form, and in addition, it didn't fix the problem. 2019-07-15 Lars Ingebrigtsen Mention changing the font size in the Emacs manual * doc/emacs/frames.texi (Fonts): Mention changing the font scale (bug#28196). 2019-07-15 Samuel Bronson Mark semantic functions correctly in defcustom * lisp/cedet/semantic/format.el (semantic-format-tag-custom-list): Mark functions correctly in defcustom (bug#28267). 2019-07-15 Lars Ingebrigtsen Clarify doc of isearch-wrap-function * lisp/isearch.el (isearch-wrap-function): Doc clarification (bug#28388). 2019-07-15 Robert Pluim Don't delete GnuTLS boot parameters too early * src/process.c (connect_network_socket): Don't delete the GnuTLS boot parameters until after we've managed to connect at the IP level (bug#36660). 2019-07-15 Lars Ingebrigtsen Fix *Messages* grouping in C-Mouse-1 buffer menu * lisp/mouse.el (mouse-buffer-menu-mode-groups): Don't group the *Messages* buffer with Mail/News (bug#32007). 2019-07-15 Michael Albinus * lisp/net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers): Don't cancel if debug buffers aren't appended. 2019-07-15 Lars Ingebrigtsen Make directory-files-recursively take a PREDICATE parameter * lisp/files.el (directory-files-recursively): Take an optional PREDICATE parameter (bug#28567). * doc/lispref/files.texi (Contents of Directories): Document it. 2019-07-15 Lars Ingebrigtsen Tweak gv-define-setter debug setting * lisp/emacs-lisp/gv.el (gv-define-setter): Change edebug spec from body to def-body (bug#28729). 2019-07-15 Michael Albinus Fix edge cases in Tramp's copy * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Special handling for "rsync". (tramp-find-inline-compress): Make check more robust on MS Windows. 2019-07-14 Lars Ingebrigtsen package-archive-priorities doc addition * lisp/emacs-lisp/package.el (package-archive-priorities): Document that negative priorities will lead to packages not being updated (bug#28897). 2019-07-14 Glenn Morris Stop wdired tests leaving behind symlink /tmp/emacs1000 * test/lisp/wdired-tests.el (server-socket-dir): Make effective. 2019-07-14 Lars Ingebrigtsen Mark octave-block-offset as a safe local variable * lisp/progmodes/octave.el (octave-block-offset): Mark as safe as a local variable (bug#28916). 2019-07-14 Glenn Morris Update a ffap test * test/lisp/ffap-tests.el (ffap-other-window--bug-25352): Update for incompatible ffap-other-window change. 2019-07-14 Lars Ingebrigtsen Make elint understand condition-case-unless-debug * lisp/emacs-lisp/elint.el (elint-special-forms): Teach elint about `condition-case-unless-debug' (bug#29585). 2019-07-14 Lars Ingebrigtsen Fix prompting in functions like ffap-read-only * lisp/ffap.el (ffap-prompter, ffap-other-window) (ffap-other-frame, ffap-read-only) (ffap-read-only-other-window, ffap-read-only-other-frame) (ffap-alternate-file, ffap-alternate-file-other-window) (ffap-literally): Rework to be able to specify different prompts for different actions (bug#30284) and don't use `call-interactively' all over the place. 2019-07-14 Lars Ingebrigtsen 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. 2019-07-14 Alan Third Use correct colorspace for XBM images * src/nsimage.m ([EmacsImage setXBMColor:]): Use 'generic RGB' color space. 2019-07-14 Lars Ingebrigtsen Revert "Make describe-face also output the version information" This reverts commit a7aae1473c1aed7758b550a23cda61ee17668e23. The patch broke the build. 2019-07-14 Lars Ingebrigtsen 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. 2019-07-14 Lars Ingebrigtsen 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. 2019-07-14 Noam Postavsky Use ngettext in vc-dir-clean-files * lisp/vc/vc-dir.el (vc-dir-clean-files): Use ngettext to separate pluralization from format string. 2019-07-14 Lars Ingebrigtsen Tweak background colour handling in shr * lisp/net/shr.el (shr-fill-line): Keep the background colour on the newline and the indentation. 2019-07-14 Lars Ingebrigtsen 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. 2019-07-14 Eric Ludlam Allow bad tags in Scheme * admin/grammars/scheme.by (scheme-in-list): Allow bad tags in Scheme (bug#36521). 2019-07-13 Nick Drozd * etc/NEWS: Announce new Georgian inputs. (Bug#36639) * etc/HELLO: Fix name of Georgian language * lisp/leim/quail/georgian.el: Add georgian-nuskhuri input method * lisp/leim/quail/georgian.el: Add missing characters to georgian input * lisp/leim/quail/georgian.el: Add georgian-qwerty input method 2019-07-13 Stefan Kangas 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. 2019-07-13 Marco Wahl 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. 2019-07-13 Eli Zaretskii Fix recent changes * src/sysstdio.h: Include stdarg.h, for va_list. 2019-07-13 Pip Cet Avoid returning negative numbers from `hash-table-count' * src/fns.c (Fhash_table_count): Rehash argument if necessary. 2019-07-13 Paul Eggert * src/lisp.h (struct Lisp_Hash_Table.count): Improve comment. 2019-07-13 Noam Postavsky 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. 2019-07-13 Noam Postavsky 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. 2019-07-13 Paul Eggert 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. 2019-07-13 Paul Eggert 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. 2019-07-13 Paul Eggert 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. 2019-07-13 Paul Eggert 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. 2019-07-13 Andreas Schwab Revert "Fix typo in sh-assignment-regexp" This reverts commit 194f370a3da72d560975adc2835254ce251881a7. 2019-07-13 Lars Ingebrigtsen Add edebug specs for inline.el * lisp/emacs-lisp/inline.el (inline-quote) (inline-letevals): Add edebug specs (bug#31051). 2019-07-13 Lars Ingebrigtsen 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. 2019-07-13 Lars Ingebrigtsen 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. 2019-07-13 Lars Ingebrigtsen 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). 2019-07-13 Lars Ingebrigtsen 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). 2019-07-13 Lars Ingebrigtsen 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("") 2019-07-13 Lars Ingebrigtsen 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). 2019-07-13 Lars Ingebrigtsen 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. 2019-07-13 Lars Ingebrigtsen 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. 2019-07-13 Lars Ingebrigtsen 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). 2019-07-13 Lars Ingebrigtsen 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). 2019-07-13 Lars Ingebrigtsen 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. 2019-07-13 Lars Ingebrigtsen 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. 2019-07-13 Phil Sainty * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a docstring typo 2019-07-13 Phil Sainty * lisp/so-long.el (so-long-variable-overrides): Improve doc Explain the 'line-move-visual' and 'truncate-lines' values. 2019-07-13 Phil Sainty * 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. 2019-07-13 Michael Albinus 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. 2019-07-13 Michael Albinus * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Adapt docstring. 2019-07-13 Eli Zaretskii 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) 2019-07-13 Eli Zaretskii 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'. 2019-07-13 Eli Zaretskii 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. 2019-07-13 Stefan Kangas 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) 2019-07-13 Eli Zaretskii 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. 2019-07-13 Dima Kogan 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) 2019-07-12 Phil Sainty Merge branch 'scratch/so-long' Add tests for so-long.el 2019-07-12 Phil Sainty 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" 2019-07-12 Paul Eggert 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. 2019-07-12 Lars Ingebrigtsen 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). 2019-07-12 Lars Ingebrigtsen 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). 2019-07-12 Lars Ingebrigtsen Mark the new vc-dir-delete command as documented 2019-07-12 Lars Ingebrigtsen 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). 2019-07-12 Lars Ingebrigtsen Add more spook.lines * etc/spook.lines: Add Black Cube (bug#32309) (https://en.wikipedia.org/wiki/Black_Cube). 2019-07-12 Lars Ingebrigtsen Document fix for cl-defstruct * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Document that we can have a doc string (bug#32340). 2019-07-12 Lars Ingebrigtsen 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. 2019-07-12 Lars Ingebrigtsen 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). 2019-07-12 Tino Calancha 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). 2019-07-12 Lars Ingebrigtsen 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). 2019-07-12 Teemu Likonen 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. 2019-07-12 Paul Eggert * lib-src/make-docfile.c: Fix comment typo. 2019-07-12 Lars Ingebrigtsen 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). 2019-07-12 Lars Ingebrigtsen 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). 2019-07-12 Lars Ingebrigtsen 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). 2019-07-12 Lars Ingebrigtsen 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. 2019-07-12 Juri Linkov * test/lisp/replace-tests.el (replace-tests-with-undo): Override replace-highlight to emulate clobbering match-data (bug#36328). 2019-07-12 Juri Linkov * 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. 2019-07-12 Lars Ingebrigtsen Remove initial and trailing whitespace in message-fetch-field * lisp/gnus/message.el (message-fetch-field): Remove initial and trailing whitespace. 2019-07-12 Lars Ingebrigtsen 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.) 2019-07-12 Lars Ingebrigtsen 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. 2019-07-12 Lars Ingebrigtsen Add comments to rfc2047 * lisp/mail/rfc2047.el (rfc2047-fold-region): Add comments to the function. 2019-07-12 Michael Albinus 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):... 2019-07-12 Michael Albinus 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. 2019-07-12 Michael Albinus 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. 2019-07-12 Michael Albinus * doc/misc/tramp.texi (Inline methods): Precise about used external programs. 2019-07-12 Michael Albinus 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. 2019-07-11 Paul Eggert 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. 2019-07-11 Paul Eggert 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). 2019-07-11 Juri Linkov * 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) 2019-07-11 Juri Linkov 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) 2019-07-11 Michael Albinus Remove lisp/obsolete/xesam.el * test/lisp/format-spec-tests.el (test-format-unknown): Use `should-error'. 2019-07-11 Lars Ingebrigtsen 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. 2019-07-11 Lars Ingebrigtsen Add tests for format-spec Add test to time-stamp.el 2019-07-11 Phil Sainty 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. 2019-07-11 Lars Ingebrigtsen 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). 2019-07-11 Lars Ingebrigtsen 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 instead of (bug#33237). 2019-07-11 Lars Ingebrigtsen 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). 2019-07-11 Stefan Kangas Remove misleading message in customize * lisp/cus-edit.el (custom-buffer-create-internal): Remove misleading message about "Resetting customization items" (bug#22451). 2019-07-11 Lars Ingebrigtsen 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). 2019-07-11 Eli Zaretskii Resurrect SVG support on MS-Windows * src/image.c (syms_of_image) [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. 2019-07-11 Eli Zaretskii 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) 2019-07-10 Paul Eggert 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). 2019-07-10 Mattias Engdegård 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. 2019-07-10 Stefan Kangas 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. 2019-07-10 Lars Ingebrigtsen 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. 2019-07-10 Lars Ingebrigtsen 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. 2019-07-10 Lars Ingebrigtsen Doc clarification in abbrev-prefix-mark * lisp/abbrev.el (abbrev-prefix-mark): Clarify when the hyphen is removed (bug#33382). 2019-07-10 Lars Ingebrigtsen 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). 2019-07-10 Stefan Kangas 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). 2019-07-10 Lars Ingebrigtsen Fix pretty-printing of {} * lisp/json.el (json-pretty-print): Fix reading {}, which returns nil. 2019-07-10 Stefan Kangas 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. 2019-07-10 Stefan Kangas Fix warning in electric-tests.el (Bug#36570) * test/lisp/electric-tests.el (plainer-c-mode): Remove duplicate definition. 2019-07-09 Paul Eggert 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. 2019-07-09 Lars Ingebrigtsen 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). 2019-07-09 Lars Ingebrigtsen 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). 2019-07-09 Lars Ingebrigtsen White-space fix in fortune-compile * lisp/play/fortune.el (fortune-compile): Reindent function. 2019-07-09 Benjamin Ragheb (tiny change) Search exec-path for fortune strfile program * lisp/play/fortune.el (fortune-compile): Search exec-path for strfile program (bug#33984). 2019-07-09 Lars Ingebrigtsen 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. 2019-07-09 Lars Ingebrigtsen 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). 2019-07-09 Stefan Monnier * 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. 2019-07-09 Paul Eggert Defend fingerprint against even-smarter LTO * src/pdumper.c (Fdump_emacs_portable, pdumper_load): Don’t cast volatile to non-volatile pointer, as that does not in general suffice to prevent a compiler from optimizing away memcmp and/or memcpy calls. Instead, copy the fingerprint by hand. 2019-07-09 Stefan Monnier Revert "Turn off bytecode jumptables to avoid Bug#36447" This reverts commit 122198d2f1aaf0b74c102874cc9b04ae4789f54f. Should not be needed any more thanks to Pip Cet's patch to hash_table_rehash. 2019-07-09 Pip Cet Don't alter shared structure in dumped purecopied hash tables. * src/fns.c (hash_table_rehash): Make sure we're operating on fresh copies of ->next, ->index, ->hash. 2019-07-09 Stefan Monnier Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs into trunk 2019-07-09 Paul Eggert Do not alter match data in Fcapitalize etc. Without this patch, (capitalize "x") can alter the match data, which is not what users expect. Problem found by running morse-tests-unnato-region in a stripped-down Emacs. Perhaps ‘load’ should also save and restore the match data? That would be a simpler fix, though arguably incompatible. * src/lread.c (save_match_data_load): New function. * src/chartab.c (uniprop_table): * src/doc.c (reread_doc_file): * src/eval.c (Fautoload_do_load): * src/fns.c (Frequire): Use it. 2019-07-09 Paul Eggert Port image-type-from-file-header-test to non-SVG Emacs Problem reported privately by Michael Albinus. * test/lisp/image-tests.el (image-type-from-file-header-test): Don’t assume svg is a supported image type. 2019-07-09 Andreas Schwab Make fingerprint handling compatible with LTO Tell the compiler that the fingerprint variable is modified unpredictably. * lib/fingerprint.h (fingerprint): Remove const. * lib/fingerprint.c (fingerprint): Likewise. * src/pdumper.c (Fdump_emacs_portable): Cast fingerprint variable. (pdumper_load): Likewise. * lib-src/make-fingerprint.c (main): Likewise. 2019-07-09 Lars Ingebrigtsen Fix pretty-printing of multiple JSON objects * lisp/json.el (json-pretty-print-max-secs): Make obsolete. (json-pretty-print): Pretty-print all JSON objects in the region instead of just the first one (and then deleting all other objects) (bug#34160). 2019-07-09 Lars Ingebrigtsen Revert "Fix pretty-printing of multiple JSON objects" This reverts commit 48daf77a9d963c05ee198b3ab108c7f0b3686da6. This apparently led to build errors. 2019-07-09 Lars Ingebrigtsen Fix pretty-printing of multiple JSON objects * lisp/json.el (json-pretty-print-max-secs): Make obsolete. (json-pretty-print): Pretty-print all JSON objects in the region instead of just the first one (and then deleting all other objects) (bug#34160). 2019-07-09 Michael Albinus * lisp/simple.el (shell-command): Raise a user-error instead of an error. 2019-07-09 Lars Ingebrigtsen Clarify json-read and json-encode parameters and return values * lisp/json.el (json-read): Try to clarify what's returned (bug#34242). (json-encode): Refer to `json-read' about what the input is and say what error is signaled. 2019-07-09 Lars Ingebrigtsen Fix alternative-email-as-from with empty To headers in Message * lisp/gnus/message.el (message-use-alternative-email-as-from): Don't add a "," at the start of the address if the To header doesn't exist (bug#34293). 2019-07-09 Lars Ingebrigtsen Make gnus-read-ephemeral-emacs-bug-group autoloadable * lisp/gnus/gnus-group.el (gnus-read-ephemeral-emacs-bug-group): Add an autoload cookie, because the command can be used from without Gnus. 2019-07-09 Lars Ingebrigtsen Checkdoc would bug out on empty files * lisp/emacs-lisp/checkdoc.el (checkdoc--next-docstring): Don't bug out on malformed Emacs Lisp (bug#34760). (checkdoc-file-comments-engine): Don't bug out on empty buffers. 2019-07-09 Lars Ingebrigtsen Clarify warning about unknown articles in Gnus * lisp/gnus/gnus-sum.el (gnus-summary-mark-article-as-unread) (gnus-mark-article-as-unread): Clarify warning (bug#34990). 2019-07-09 Lars Ingebrigtsen Don't try to save articles in Gnus that have disappeared * lisp/gnus/gnus-sum.el (gnus-summary-save-article): Stop trying to save articles if the articles have disappeared (bug#35188). 2019-07-09 Mattias Engdegård Rename font_driver member close -> close_font * src/alloc.c (cleanup_vector): * src/xftfont.c (xftfont_driver): * src/xfont.c (xfont_driver): * src/nsfont.m (nsfont_driver): * src/macfont.m (macfont_driver): * src/ftxfont.c (ftxfont_driver): * src/ftfont.c (ftfont_driver): * src/ftcrfont.c (ftcrfont_driver): * src/font.h (struct font_driver): * src/font.c (font_clear_cache, font_close_object): Rename `close' member to `close_font', to avoid clash with preprocessor define of `close' in nt/inc/ms-w32.h and for consistency with `open_font'. 2019-07-09 Lars Ingebrigtsen Mention `call-process-region' in the `call-process' doc string * src/callproc.c (Fcall_process): Mention `call-process-region' (bug#35187). 2019-07-09 Mattias Engdegård Rename font_driver member open -> open_font * src/xftfont.c (xftfont_driver): * src/xfont.c (xfont_driver): * src/nsfont.m (nsfont_driver): * src/macfont.m (macfont_driver): * src/ftxfont.c (ftxfont_driver): * src/ftfont.c (ftfont_driver): * src/ftcrfont.c (ftcrfont_driver): * src/font.h (struct font_driver): * src/font.c (font_open_entity): Rename `open' member to `open_font', to avoid clash with preprocessor define of `open' in lib/fcntl.h and nt/inc/ms-w32.h. Remove earlier #undef hack. 2019-07-09 Lars Ingebrigtsen Add a really simple nadvice example * doc/lispref/functions.texi (Advising Functions): Add a really trivial and simple example (bug#35250). 2019-07-09 Lars Ingebrigtsen Make two variables for extended command suggestions mention each other * lisp/simple.el (suggest-key-bindings): (extended-command-suggest-shorter): Mention each other, because they are vaguely related (bug#35309). 2019-07-09 Lars Ingebrigtsen Make the manual say what undo-auto-amalgamate does * doc/lispref/text.texi (Undo): Say what undo-auto-amalgamate does in addition to describing what amalgamation is (bug#35344). 2019-07-09 Eli Zaretskii Unbreak the MS-Windows build * src/font.c (open): Don't undef on WINDOWSNT, as ms-w32.h redirects it to sys_open. 2019-07-09 Lars Ingebrigtsen .har files are JSON files * lisp/files.el (auto-mode-alist): Map .har files to javascript-mode (bug#35407). 2019-07-09 Ryan Brown Fix for lisp tagbody indentation * lisp/emacs-lisp/cl-indent.el (lisp-indent-259): Indent PROG better (bug#36552). 2019-07-09 Lars Ingebrigtsen Add more quote-end characters to sentence-end-base * lisp/textmodes/paragraphs.el (sentence-end-base): Add › and » (bug#36359). 2019-07-09 Stefan Monnier * lisp/progmodes/verilog-mode.el: Update Version: Merge branch 'emacs-26' into trunk 2019-07-09 Mattias Engdegård Repair macOS build Avoid macro redefinition of `open' in lib/fcntl.h to break use of it as a struct member in src/font.c. * src/font.c: #undef open 2019-07-09 Glenn Morris Conditionalize result of a bytecomp test * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test--switch-duplicates): Apparently the result depends on byte-compile-cond-use-jump-table. 2019-07-08 Lars Ingebrigtsen Make delimit-columns-region say what it does * lisp/delim-col.el (delimit-columns-region): Make the doc string say a bit more about what it does (bug#35651). (delimit-columns-rectangle): Refer to the first function. 2019-07-08 Katsumi Yamaoka Allow using @@ in @uref in texinfo * lisp/textmodes/texinfmt.el (texinfo-format-uref): Allow using @@ in @uref (bug#36186) to allow things like @uref{mailto:foo@@example.com}. 2019-07-08 Lars Ingebrigtsen Tweak compilation face in the wheatgrass theme * etc/themes/wheatgrass-theme.el: The compilation info was too light to be readable (bug#36203). 2019-07-08 Lars Ingebrigtsen Don't set url-mime-charset-string from set-language-environment * lisp/url/url-vars.el (url-set-mime-charset-string): Make obsolete and don't add to set-language-environment-hook (bug#36268). If you loaded url-vars before calling set-language-environment, you would suddenly get an unusable long url-mime-charset-string. 2019-07-08 Lars Ingebrigtsen Remove compat code in url-mime-charset-string * lisp/url/url-vars.el (url-mime-charset-string): Remove compat code. 2019-07-08 Lars Ingebrigtsen Tweak messaging in re-builder * lisp/emacs-lisp/re-builder.el (reb-copy): Say what we copied to the kill ring. 2019-07-08 Lars Ingebrigtsen Mention {la,}tex-run-command in the TeX Print info node * doc/emacs/text.texi (TeX Print): Mention {la,}tex-run-command, too. Suggested by Sebastian Urban (bug#36400). 2019-07-08 Paul Eggert Avoid some unnecessary stdio.h includes * src/atimer.c, src/callproc.c, src/coding.c, src/dired.c, src/eval.c: * src/fringe.c, src/ftcrfont.c, src/ftfont.c, src/ftxfont.c: * src/gfilenotify.c, src/indent.c, src/kqueue.c, src/menu.c: * src/scroll.c, src/terminal.c, src/unexcoff.c, src/window.c: * src/xfont.c, src/xftfont.c: Do not include stdio.h since it is unused. 2019-07-08 Paul Eggert Use fewer locks when accessing stdio * src/alloc.c, src/bidi.c, src/emacs-module.c, src/pdumper.c: * src/regex-emacs.c, src/unexhp9k800.c, src/unexmacosx.c: * src/widget.c, src/xdisp.c, src/xselect.c, src/xterm.c: Include sysstdio.h instead of stdio.h, to avoid locking stdio streams in many cases. * src/alloc.c (test_setjmp): * src/bidi.c (bidi_dump_cached_states): * src/cm.c (calccost): * src/dispnew.c (init_display_interactive): * src/emacs.c (main): * src/image.c (convert_mono_to_color_image): * src/minibuf.c (read_minibuf_noninteractive): * src/nsfont.m (ns_descriptor_to_entity) (ns_dump_glyphstring): * src/nsterm.h (NSTRACE_MSG_NO_DASHES): * src/nsterm.m (ns_mouse_position) (sendEvent:, keyDown:, performDragOperation:): * src/pdumper.c (dump_fingerprint, print_paths_to_root_1): * src/print.c (debug_print): * src/regex-emacs.c (debug_putchar, print_fastmap) (print_partial_compiled_pattern, print_compiled_pattern) (print_double_string, regex_compile): * src/term.c (vfatal): * src/unexhp9k800.c (read_header): * src/unexmacosx.c (unexec_error): * src/widget.c (EmacsFrameInitialize): * src/xdisp.c (message_to_stderr, vmessage, dump_glyph_row) (Fdump_glyph_matrix, Fdump_frame_glyph_matrix, dump_glyph_string): * src/xfaces.c (Fdump_colors, Fdump_face): * src/xselect.c (x_clipboard_manager_error_2): * src/xterm.c (x_initialize): * src/xwidget.c (WEBKIT_FN_INIT): Prefer unlocked calls like fputs to locked calls like fprintf. * src/charset.c (read_hex): * src/cm.c (cmputc, cmcheckmagic): * src/dispnew.c (update_frame, update_frame_with_menu) (update_frame_1, Fsend_string_to_terminal, Fding) (bitch_at_user): * src/emacs.c (main, Fdump_emacs): * src/emacs-module.c (module_abort): * src/fileio.c (Fdo_auto_save): * src/image.c (slurp_file) (png_read_from_file, png_load_body, our_stdio_fill_input_buffer): * src/keyboard.c (record_char, kbd_buffer_get_event) (handle_interrupt): * src/lread.c (readbyte_from_stdio, read1): * src/minibuf.c (read_minibuf_noninteractive): * src/print.c (printchar_to_stream, strout) (Fredirect_debugging_output): * src/sysdep.c (reset_sys_modes, close_output_streams) (procfs_ttyname, procfs_get_total_memory): * src/term.c (tty_ring_bell, tty_send_additional_strings) (tty_set_terminal_modes, tty_reset_terminal_modes) (tty_update_end, tty_clear_end_of_line, tty_write_glyphs) (tty_write_glyphs_with_face, tty_insert_glyphs) (tty_menu_activate): * src/xfaces.c (Fx_load_color_file): Simplify by using ordinary calls like putc to explicitly-unlocked calls like putc_unlocked, since the ordinary calls are now unlocked anyway. * src/emacs.c (main, Fdump_emacs): * src/pdumper.c (Fdump_emacs_portable): Coalesce adjacent printfs. * src/nsterm.h: Include sysstdio.h as this file’s macros rely on it. * src/regex-emacs.c (print_compiled_pattern): Omit redundant fflush. * src/sysstdio.h: Include unlocked-io.h. (clearerr_unlocked, feof_unlocked, ferror_unlocked) (fflush_unlocked, fgets_unlocked, fputc_unlocked) (fputs_unlocked, fread_unlocked, fwrite_unlocked) (getc_unlocked, getchar_unlocked, putc_unlocked) (putchar_unlocked): Remove these macros; now done by unlocked-io.h. * src/xwidget.c: Include sysstdio.h. 2019-07-08 Basil L. Contovounesios Tidy up sieve.el text formatting * lisp/net/sieve.el (sieve-edit-script, sieve-upload): Do not pass arbitrary string as first argument to 'message' (bug#25764). (sieve-help): Split long string across multiple lines. (sieve-refresh-scriptlist): Use ngettext. Fix grammar. 2019-07-08 Stefan Kangas Delegate to rectangle version in delim-col when appropriate * lisp/delim-col.el (delimit-columns-region): Delegate to `delimit-columns-rectangle' when called with a rectangular region (bug#36453). 2019-07-08 Ismail S (tiny change) Fix minor typo in org-capture-templates * lisp/org/org-capture.el (org-capture-templates): Fix typo in doc string (bug#36491). 2019-07-08 Ken Brown Ensure that expand-file-name returns an absolute file name * src/fileio.c (Fexpand_file_name): Don't directly use the current buffer's default-directory if it is relative. Instead replace it by its expansion relative to invocation-directory. (Bug#36502) * test/src/fileio-tests.el (fileio-tests--relative-default-directory): New test. 2019-07-08 Noam Postavsky Turn off bytecode jumptables to avoid Bug#36447 * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-use-jump-table): Set to nil. We can turn this back on again when Bug#36447 is solved and we handle dumped hash tables correctly. 2019-07-08 Lars Ingebrigtsen Remove mention of :group in define-minor-mode info * doc/lispref/modes.texi (Defining Minor Modes): The :group stuff in the example and documentation isn't correct since this is not a global mode and `hunger-mode' therefore isn't customizable (bug#36501). 2019-07-08 Eric Abrahamsen Improvements to sieve script usability * lisp/net/sieve-mode.el (sieve-mode-menu): Add `sieve-upload-and-kill' to the mode menu. * lisp/net/sieve.el (sieve-manage-mode-menu): Add `sieve-manage-quit' to the mode menu. (sieve-help): Mention quitting in mode help. (sieve-manage-mode): Directly derive from special-mode. (sieve-edit-script): Start off with unmodified buffer. (sieve-upload): Set buffer unmodified after successful upload. Changes are aimed at 1) increasing discoverability of commands and 2) using buffer modification to help users understand what's happening. 2019-07-08 Eric Abrahamsen Make sure gnus-group-set-info sets both the hashtable and alist * lisp/gnus/gnus-group.el (gnus-group-set-info): Apparently this method of updating the group info will only apply to the gnus-newsrc-hashtb, not gnus-newsrc-alist. Do the alist explicitly. 2019-07-08 Michael Albinus * doc/misc/tramp.texi (Remote processes): Fix a typo. 2019-07-08 Alan Mackenzie Fix coding error in c-forward-decl-or-cast-1. This fixes bug #36492. * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): While testing for, e.g., foo(), check we've found the ( before trying to go to its position. 2019-07-08 Michael Albinus Allow chown/chgrp for remote directories on w32 * lisp/dired-aux.el (dired-do-chgrp, dired-do-chown): Allow them for remote directories, even when run on w32. See . 2019-07-08 Alan Mackenzie Fix bug #36474, such that CC Mode quotes work properly in electric-pair-mode Also finishes the fix for bug #36423. * lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Add an `eval-after-load' to set electric-pair-inhibit-predicate for existing CC Mode buffers when elec-pair.elc gets loaded. (c-basic-common-init): Set electric-pair-inhibit-predicate when a CC Mode mode gets initialized. (c-electric-pair-inhibit-predicate): New function. 2019-07-07 Paul Eggert * src/xselect.c: Fix comment. * src/dispnew.c (init_display_interactive): Fix comment to match code. 2019-07-07 Juri Linkov * lisp/vc/vc-dir.el (vc-dir-view-file): New command for consistency with dired * lisp/vc/vc-git.el (vc-git-log-incoming, vc-git-log-outgoing): Remove interactive spec from non-command functions. (Bug#12492) 2019-07-07 Juri Linkov Handle scroll-error-top-bottom in follow.el and view.el (bug#21893) * lisp/follow.el (follow-scroll-up-arg, follow-scroll-up-window): Use scroll-up-command instead of scroll-up. (follow-scroll-down-arg, follow-scroll-down-window): Use scroll-down-command instead of scroll-down. (follow-scroll-up, follow-scroll-down): Handle scroll-error-top-bottom. * lisp/view.el (view-scroll-lines): Use scroll-down-command instead of scroll-down and scroll-up-command instead of scroll-up. (view-really-at-end): Handle scroll-error-top-bottom. 2019-07-07 Juri Linkov * lisp/replace.el (perform-replace): Move save-match-data here from replace-highlight for isearch-lazy-highlight-new-loop (bug#36328). 2019-07-07 Glenn Morris Avoid makeinfo error "@code expected braces" * doc/lispref/searching.texi (Rx Constructs): Fix for makeinfo 4.13. 2019-07-07 Paul Eggert Fix typo in previous patch * src/editfns.c (styled_format): Fix stray ‘pMd’. 2019-07-07 Paul Eggert Remove printmax_t etc. printmax_t etc. were needed only for platforms that lacked support for printing intmax_t. These platforms are now so obsolete that they are no longer practical porting targets. * src/image.c (gs_load): Fix unlikely buffer overrun discovered while making these changes. It was introduced in 2011-07-17T00:34:43!eggert@cs.ucla.edu. * src/lisp.h (printmax_t, uprintmax_t, pMd, pMu, pMx): Remove. All uses replaced by their standard counterparts intmax_t, uintmax_t, PRIdMAX, PRIuMAX, PRIxMAX. 2019-07-07 Nick Drozd Handle 'abbr' and 'acronym' tags in shr.el * lisp/net/shr.el (shr-tag-abbr, shr-tag-acronym): New functions handling 'abbr' and 'acronym' tags, respectively. * etc/NEWS: Announce change in shr behavior (bug#36475). 2019-07-07 Mattias Engdegård Shorter `rx' doc string (bug#36496) * lisp/emacs-lisp/rx.el (rx): Replace long description with a condensed summary of the rx syntax, with reference to the manual section. 2019-07-07 Mattias Engdegård Describe the rx notation in the elisp manual (bug#36496) The additions are excluded from the print version to avoid making it thicker. * doc/lispref/elisp.texi (Top): New menu entry. * doc/lispref/searching.texi (Regular Expressions): New menu entry. (Regexp Example): Add rx form of the example. (Rx Notation, Rx Constructs, Rx Functions): New nodes. * doc/lispref/control.texi (pcase Macro): Describe the rx pattern. 2019-07-06 Paul Eggert Don’t ignore stderr failure when ADDRESS_SANITIZER * src/emacs.c (close_output_streams): Move from here ... * src/sysdep.c: ... to here, where it really belongs anyway. When ADDRESS_SANITIZER, fflush stderr and check for ferror, to catch stderr output errors even in this case. 2019-07-06 Stefan Monnier * lisp/emacs-lisp/nadvice.el: Make it a package separate from `emacs`. * lisp/finder.el (finder-compile-keywords): Grab version from package--builtin-versions when available. 2019-07-06 Glenn Morris Merge from origin/emacs-26 1e6d8e0 (origin/emacs-26) ; * doc/emacs/killing.texi (Secondary Selec... e2344a7 * lisp/svg.el, lisp/progmodes/ada-mode.el: Fix bug#36360. ff738ab Minor copyedit of "Font Lock" in user manual faf99dc Improve description of image descriptors 21351cc ; * src/lread.c (Fread): Make the comment wording more accurate. d176090 Improve documentation of secondary selections 8910fe1 * src/fns.c (Fmapconcat): Doc fix. (Bug#36418) # Conflicts: # lisp/svg.el 2019-07-06 Glenn Morris Merge from origin/emacs-26 e97c043 Fix python.el docstring (Bug#36458) e660801 ; Add thing-at-point-looking-at test (Bug#35708) f5b4846 ; Fix typo, insure -> ensure in ChangeLogs cb8fb59 * lisp/hi-lock.el (hi-lock-line-face-buffer): Doc fix. (Bug3... 2019-07-06 Glenn Morris Merge from origin/emacs-26 316f5a3 Fix typo in doc string of file-exists-p (bug#36408) bfc7c6e * test/lisp/url/url-file-tests.el (url-file): Fix for POSIX f... 13b95e1 Fix typo in windows.texi 8b775c3 Clarify & update (elisp) Writing Emacs Primitives 7648c12 Clarify a subtle issue in the Internals chapter of lispref 2019-07-06 Xu Chunyang * lisp/dom.el (dom-texts): Simplify (Bug#36441). 2019-07-06 Noam Postavsky Use buffer's name for help-mode bookmarks (Bug#24573) * lisp/help-mode.el (help-bookmark-make-record): Replace buffer objects with their names in help-args, otherwise the bookmark won't be readable from the bookmark save file. 2019-07-06 Noam Postavsky Add commentary about #$ in autoload files * lisp/emacs-lisp/autoload.el (autoload-rubric): Add commentary about `#$' trick. 2019-07-06 Wilson Snyder Fix indentation of default clocking definitions. * lisp/progmodes/verilog-mode.el (verilog-default-clocking-re): Fix indentation of default clocking definitions, Verilog-Mode bug1457. Reported by Paul Donahue. 2019-07-06 Wilson Snyder Backout replacing manually crafted hex regexes with [:xdigit:]. * lisp/progmodes/verilog-mode.el (verilog-delay-re): (verilog-type-font-keywords, verilog-read-always-signals-recurse): (verilog-is-number): Backout replacing manually crafted hex regexes with [:xdigit:] (Bug#36167). This repairs Verilog-mode regressions; Verilog-mode maintains back-compatibility with Emacsen before this syntax was supported. 2019-07-06 Pip Cet Update current buffer when changing text properties * src/textprop.c (add_text_properties_1, set_text_properties) (set_text_properties_1, Fremove_text_properties): Switch buffer if necessary. (Bug#36190) * doc/lispref/text.texi (Examining Properties): Document performance FIXME. 2019-07-06 Paul Eggert Update from Gnulib This incorporates: 2019-07-06 thread, lock, cond, tls: Remove support for Pth threads 2019-07-02 verify: document ‘assume’ better 2019-06-30 Include when needed 2019-06-30 inet_ntop, inet_pton: Avoid conflict with native Windows * build-aux/config.sub, lib/faccessat.c, lib/fcntl.c, lib/fstatat.c: * lib/readlinkat.c, lib/verify.h, m4/pthread_sigmask.m4: * m4/sys_socket_h.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2019-07-06 Paul Eggert Fix [[:xdigit:]] glitch on Solaris * admin/charsets/mapconv: Revert this [[:xdigit:]] change. Solaris 10 ‘sed’ does not support [[:xdigit:]]. 2019-07-06 Drew Adams Tweak point movement in view-echo-area-messages * lisp/help.el (view-echo-area-messages): Move the point to the end of the *Messages* buffer even if it's already displayed (bug#36343). 2019-07-06 Stefan Kangas Remove outdated comment in uniquify.el * lisp/uniquify.el: Remove outdated comment regarding some ancient version of uniquify.el (bug#36384). 2019-07-06 Stefan Kangas Improve an error message in bookmark.el * lisp/bookmark.el (bookmark-alist-from-buffer): Improve error message (bug#36391). 2019-07-06 Basil L. Contovounesios Improve Gnus ephemeral bug group browsing * doc/misc/gnus.texi (Foreign Groups): Update description of gnus-read-ephemeral-emacs-bug-group for multiple bug IDs (bug#11961). * lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist): Use HTTPS for Debian's bug tracker. (gnus-group--read-bug-ids): New function for reading multiple bug IDs in the minibuffer. Improves on previous brittle approach of word-at-point -> read-string -> string-to-number by a) defaulting to the more accurate bug-reference-bug-regexp or number-at-point without using the intrusive INITIAL-INPUT argument, and b) not attempting to parse bug IDs. (gnus-read-ephemeral-bug-group): Use it. Extend docstring and commentary. Fix handling of multiple bug IDs as either numbers or strings. Hoist some string consing out of inner loop. Delete temporary file even on error. Throw more informative error when url-insert-file-contents successfully returns an error (bug#36433). (gnus-read-ephemeral-debian-bug-group): Use gnus-group--read-bug-ids and fix docstring for multiple bug IDs. Accept optional WINDOW-CONF like other ephemeral bug group commands. (gnus-read-ephemeral-emacs-bug-group): Use gnus-group--read-bug-ids and fix string/numeric ID conversions. Try loading debbugs-gnu before testing for debbugs-gnu-summary-mode (bug#36433). 2019-07-06 Stefan Kangas Add tests for text-property-search to check prop-match-value * test/lisp/emacs-lisp/text-property-search-tests.el (with-match-test): New macro. (text-property-search-forward-prop-match-match-face-nil-nil) (text-property-search-forward-prop-match-match-face-bold-t) (text-property-search-forward-prop-match-match-face-bold-nil) (text-property-search-backward-prop-match-match-face-nil-nil) (text-property-search-backward-prop-match-match-face-italic-t) (text-property-search-backward-prop-match-match-face-italic-nil): Add test cases to also verify the value of prop-match-value (bug#36486). 2019-07-06 Eli Zaretskii Improve the default value of 'doc-view-ghostscript-program' * lisp/doc-view.el (doc-view-ghostscript-program): Make the default value dependent on the underlying OS. (Bug#36357) 2019-07-06 Stefan Kangas Make "M-x pdb" use "[:graph:]" to match file names * lisp/progmodes/gud.el (gud-pdb-marker-regexp): Use "[:graph:]" to match file name in prompt. (Bug#34489) 2019-07-06 Stefan Kangas * lisp/net/goto-addr.el: Remove leftover XEmacs compat code. (Bug#36512) * lisp/bookmark.el (bookmark-set-internal): Doc fix. (Bug#25032) 2019-07-06 Stefan Kangas * lisp/bookmark.el (bookmark-quit-flag): Mark unused variable obsolete. (Bug#36460) 2019-07-06 Stefan Kangas Prefer progress-reporter to 'message' in bookmark.el * lisp/bookmark.el (bookmark-upgrade-file-format-from-0) (bookmark-bmenu-execute-deletions): Use progress-reporter. (Bug#36462) 2019-07-06 Konstantin Kharlamov Replace manually crafted hex regexes with [:xdigit:] * admin/charsets/mapconv: * build-aux/gitlog-to-changelog (parse_amend_file, git_dir_option): * lisp/progmodes/verilog-mode.el (verilog-delay-re): (verilog-type-font-keywords, verilog-read-always-signals-recurse): (verilog-is-number): * lisp/progmodes/vera-mode.el (vera-font-lock-keywords): * test/src/emacs-module-tests.el (mod-test-sum-test): * lisp/xml.el: (xml--entity-replacement-text): * lisp/version.el (emacs-repository-version-git): * lisp/textmodes/sgml-mode.el (sgml-quote): * lisp/textmodes/css-mode.el (css-escapes-re) (css--colors-regexp): * lisp/progmodes/prolog.el (prolog-syntax-propertize-function): * lisp/progmodes/hideif.el (hif-token-regexp, hif-tokenize): * lisp/progmodes/ebnf-dtd.el: (ebnf-dtd-attlistdecl) (ebnf-dtd-entitydecl, ebnf-dtd-lex): * lisp/progmodes/ebnf-ebx.el (ebnf-ebx-hex-character): * lisp/progmodes/ebnf-abn.el (ebnf-abn-character): * lisp/progmodes/cperl-mode.el (cperl-highlight-charclass) (cperl-find-pods-heres): * lisp/progmodes/cc-mode.el (c-maybe-quoted-number-head) (c-maybe-quoted-number, c-parse-quotes-before-change) (c-parse-quotes-after-change, c-quoted-number-head-before-point) (c-quoted-number-straddling-point): * lisp/progmodes/ada-mode.el (featurep, ada-in-numeric-literal-p) (ada-font-lock-keywords): * lisp/org/org-mobile.el (org-mobile-copy-agenda-files) * lisp/org/org-table.el (org-table-number-regexp): (org-mobile-update-checksum-for-capture-file): * lisp/nxml/xsd-regexp.el (xsdre-gen-categories): * lisp/nxml/xmltok.el (let*): * lisp/nxml/rng-xsd.el (rng-xsd-convert-hex-binary) (rng-xsd-convert-any-uri): * lisp/nxml/rng-uri.el (rng-uri-file-name-1) (rng-uri-unescape-multibyte, rng-uri-unescape-unibyte) (rng-uri-unescape-unibyte-match) (rng-uri-unescape-unibyte-replace): * lisp/nxml/rng-cmpct.el (rng-c-process-escapes): * lisp/nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set): * lisp/net/shr-color.el (shr-color->hexadecimal): * lisp/mail/rfc2231.el (rfc2231-decode-encoded-string): * lisp/international/mule-cmds.el (read-char-by-name): * lisp/htmlfontify.el (hfy-hex-regex): * lisp/gnus/nneething.el (nneething-decode-file-name): * lisp/gnus/mml-sec.el (mml-secure-find-usable-keys): * lisp/gnus/gnus-art.el (gnus-button-mid-or-mail-heuristic-alist): * lisp/faces.el (read-color): * lisp/epg.el (epg--status-ERRSIG, epg--status-VALIDSIG) (epg--status-SIG_CREATED, epg--decode-percent-escape) (epg--decode-hexstring, epg--decode-quotedstring) (epg-dn-from-string): * lisp/emulation/cua-rect.el (cua-incr-rectangle): * lisp/dnd.el (dnd-unescape-uri): * lisp/cedet/semantic/lex.el (semantic-lex-number-expression): * lisp/cedet/semantic/java.el (semantic-java-number-regexp): * lisp/calc/calc-lang.el (pascal): * lisp/calc/calc-ext.el (math-read-number-fancy): * lisp/calc/calc-aent.el (math-read-token): Replace various combinations of [0-9a-fA-F] with [[:xdigit:]]. (Bug#36167) 2019-07-05 YAMAMOTO Mitsuharu Add HarfBuzz fallbacks for libotf functions used in ftfont_list * src/ftfont.c [!HAVE_LIBOTF && HAVE_HARFBUZZ]: Include hb-ot.h. (OTF, OTF_tag) [!HAVE_LIBOTF && HAVE_HARFBUZZ]: New typedefs. (hbotf_open, hbotf_check_features) [!HAVE_LIBOTF && HAVE_HARFBUZZ]: New functions. (OTF_open, OTF_close, OTF_check_features) [!HAVE_LIBOTF && HAVE_HARFBUZZ]: New macros. (ftfont_list) [!HAVE_LIBOTF && HAVE_HARFBUZZ]: Use them. 2019-07-05 YAMAMOTO Mitsuharu Avoid crash inside CFCharacterSetIsLongCharacterMember * src/macfont.m (macfont_supports_charset_and_languages_p) (macfont_has_char): Don't pass integers outside the Unicode codespace to CFCharacterSetIsLongCharacterMember. 2019-07-05 Juri Linkov * lisp/replace.el (replace-highlight): Add save-match-data (bug#36328) * lisp/term/tty-colors.el (tty-color-canonicalize): Replace string-match with string-match-p. Thanks to Jayden Navarro and Alan Mackenzie 2019-07-04 Juri Linkov * lisp/minibuffer.el (minibuffer-message-properties): New variable. (minibuffer-message): Use it to propertize message unless already propertized by the caller. * lisp/simple.el (minibuffer-error-function): Propertize the error. * lisp/isearch.el (isearch-message-properties): New variable. (isearch--momentary-message, isearch-message-prefix) (isearch-message-suffix): Use it. (Bug#21112) 2019-07-04 Juri Linkov * lisp/char-fold.el (char-fold-to-regexp): Implement arg LAX (bug#36398). * test/lisp/char-fold-tests.el (char-fold--test-multi-lax): New test. 2019-07-04 Mattias Engdegård Optimise more inputs to `regexp-opt' (bug#36444) Use a more precise test to determine whether the input to `regexp-opt' is safe to optimise when KEEP-ORDER is non-nil, permitting more inputs to be optimised than before. For example, ("good" "goal" "go") is now accepted. * lisp/emacs-lisp/regexp-opt.el (regexp-opt): More precise test for whether the list is safe w.r.t. KEEP-ORDER. (regexp-opt--contains-prefix): Remove. * test/lisp/emacs-lisp/regexp-opt-tests.el: Use lexical-binding. (regexp-opt-test--permutation, regexp-opt-test--factorial) (regexp-opt-test--permutations, regexp-opt-test--match-all) (regexp-opt-test--check-perm, regexp-opt-test--explain-perm) (regexp-opt-keep-order): Test KEEP-ORDER. 2019-07-04 Stefan Monnier * src/coding.c (decode_coding): Improve doc. 2019-07-04 Lars Ingebrigtsen In Message, respect Content-Type provided by the user * lisp/gnus/mml.el (mml-parse-1): Respect any Content-Type inserted by the user instead of insisting on text/plain. 2019-07-04 Alan Mackenzie Fix an infinite loop in c-end-of-macro. Should fix bug #36484 Also fix two faulty regexps, save-match-data, and check c-major-mode-is 'c++-mode where needed. * lisp/progmodes/cc-langs.el (c-last-c-comment-end-on-line-re) (c-last-open-c-comment-start-on-line-re): Handle repeated *s in regexp correctly. * lisp/progmodes/cc-engine.el (c-beginning-of-macro, c-end-of-macro): Protect the match-data with save-match-data around regexp operations. (c-end-of-macro): In the loop handling multiline block comments, check a comment actually is multiline. * lisp/progmodes/cc-mode.el (c-depropertize-CPP): Only call c-depropertize-raw-strings-in-region in C++ Mode. 2019-07-03 João Távora Fix Flymake's user-visible accessors of diagnostic positions Diagnostics are supported by overlays, and they can legitimately move around. So flymake-diagnostic-beg and flymake-diagnostic-end must look up the overlay positions, not the immutable slots of the flymake--diag structure, which become stale. * lisp/progmodes/flymake.el (version): Bump to 1.0.8. (flymake-diagnostic-beg, flymake-diagnostic-end): Use diag's overlay. (flymake-show-diagnostic): Use flymake-diagnostic-end, flymake-diagnostic-beg. 2019-07-03 João Távora Fix Flymake's treatment of region-specific reports We're supposed to delete intersecting diagnostics in that situation, but the intersection logic was way off. * lisp/progmodes/flymake.el (version): Bump to 1.0.7. (flymake--intersects-p): New helper. (flymake--handle-report): Fix handling of :region. 2019-07-03 Eric Abrahamsen Small fix to writing Gnus dribble change-level entries * lisp/gnus/gnus-start.el (gnus-group-change-level): PREVIOUS needs to still be a string when the dribble entry is written, so don't convert it to an entry until after that's done. Also, we're not meant to write PREVIOUS itself, we're meant to write the group that comes _after_ it in the sort-order of gnus-group-list, so do that instead. 2019-07-03 Stefan Kangas Add tests for bookmark.el (Bug#36452) * test/lisp/bookmark-resources/example.txt: * test/lisp/bookmark-resources/test.bmk: * test/lisp/bookmark-tests.el: New files. * lisp/bookmark.el: Minor cleanups. (bookmark-insert-annotation): Signal error on invalid bookmark. (bookmark-write-file): Add newline at end of file. 2019-07-03 Eli Zaretskii Fix rotation validity test in image.c * src/image.c (compute_image_rotation): Fix the validity test for :rotation values. This avoids logging error messages when no :rotation was provided in the image spec. 2019-07-03 Eli Zaretskii Fix compiler warnings due to a recent commit * src/xdisp.c (expose_window, expose_frame): Avoid compilation warnings about printing unsigned values with %d. 2019-07-03 Michael Albinus Change expected result of a flymake test on emba * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Test is now passing on emba.gnu.org, too. 2019-07-02 Paul Eggert Replace TRACE with redisplay_trace, etc. This simplifies callers and catches trace printf format errors even with typical (non-debugging) compiles. * src/dispextern.h (TRACE) [GLYPH_DEBUG]: Move definitions to xdisp.c if it’s used only there. * src/xdisp.c (redisplay_trace): New function, replacing TRACE macro. (move_trace): New function, replacing TRACE_MOVE macro. All uses changed. (dump_glyph): When tracing, don’t use %d to format ptrdiff_t, or %x to format a pointer. (expose_frame): Redo trace printfs to avoid interleaved output on GNU/Linux. 2019-07-02 Glenn Morris Change expected result of a flymake test on hydra * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Test is now passing on hydra.nixos.org, since today. 2019-07-02 Stefan Monnier * src/json.c (Fjson_insert): Don't temporarily insert invalid bytes in buffer 2019-07-02 Stefan Monnier (Finsert_file_contents): Keep buffer consistent in non-local exit * src/fileio.c (decide_coding_unwind): Delete function. (Finsert_file_contents): Don't let invalid multibyte byte sequences escape when we exit non-locally. * test/src/fileio-tests.el (fileio-tests--insert-file-interrupt): New test. 2019-07-02 Paul Eggert Fix printf formats when DEBUG_TRACE_MOVE Problem caught by gcc -DDEBUG_TRACE_MOVE -Wformat. * src/xdisp.c (move_it_in_display_line_to, move_it_to) (move_it_vertically) [DEBUG_TRACE_MOVE]: Fix printf format typos. 2019-07-02 Stefan Monnier * src/insdel.c (insert_from_gap_1): New fun, extracted from insert_from_gap. (insert_from_gap): Use it. * src/lisp.h (insert_from_gap_1): Declare it. * src/json.c (Fjson_insert): * src/fileio.c (Finsert_file_contents): Use it. 2019-07-02 Stefan Monnier * src/coding.c (decode_coding_gap): Remove `chars` argument. * src/json.c (Fjson_insert): * src/fileio.c (Finsert_file_contents): * src/coding.h (decode_coding_gap): Adjust accordingly. 2019-07-02 Stefan Monnier * test/src/editfns-tests.el (test-group-name): Accept nil group-name. 2019-07-02 Andreas Schwab Correct customize type for gnus-group-customize * lisp/gnus/gnus-cus.el (gnus-extra-group-parameters): Add more group parameters used by nnimap. 2019-07-02 João Távora Correctly reindent previous line in electric-indent-mode (Bug#35254) Do this even when electric-indent-inhibit is t, except when the newline insertion is being performed by electric-layout-mode. * lisp/electric.el (electric-indent-post-self-insert-function): Reindent previous line unless operating under electric-layout-mode. (electric-layout-post-self-insert-function-1): Bind electric-indent-inhibit to 'electric-layout-mode. * test/lisp/electric-tests.el (electric-layout-control-reindentation): New test. 2019-07-02 João Távora Protect Flymake from being corrupted by backends A backend building a diagnostic with a nil :type would cause Flymake to create a diagnostic without an overlay, confusing Flymake's accounting of overlays and diagnostics * lisp/progmodes/flymake.el (flymake--highlight-line): Return non-nil unconditionally. 2019-07-02 João Távora More carefully cleanup Flymake C/C++ backend's temp buffers Sometimes the Flymake process dies by some means that doesn't involve a sentinel call for the "exit" status, so we clean up the temporary buffer as soon as we notice it's not process-alive-p anymore. * lisp/progmodes/flymake-cc.el (flymake-cc): Broaden cleanup conditions. 2019-07-02 João Távora Don't create nil-severity diagnostics in the Flymake C/C++ backend * lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics): Use `:error` as a diagnostic severity. 2019-07-02 João Távora Revert "Avoid occasional confusion of Flymake C/C++ backend" This reverts commit 67c3a3af1d9e2582193d5ea33b6c190e79ad56e6, which creates more problems than it solves. 2019-07-02 Alan Mackenzie CC Mode: Improve handling of unbalanced strings * lisp/progmodes/cc-fonts.el (c-before-font-lock-functions): Add function c-after-change-escape-NL-in-string into value for most languages. * lisp/progmodes/cc-mode.el (c-after-change-escape-NL-in-string): New function. (c-before-change-check-unbalanced-strings): Handle the making and breaking of escaped newlines, by removal or addition of text. 2019-07-02 Mattias Engdegård Better error message for C-h P RET Previously: package--incompatible-p: Wrong type argument: package-desc, nil Now: No package specified * lisp/emacs-lisp/package.el (describe-package): Don't use ## as input. 2019-07-02 Paul Eggert Fix performDragOperation: diagnostic typo * src/nsterm.m (performDragOperation:): Fix missing newline. 2019-07-01 Paul Eggert Fix regex-emacs debug format glitches These patches affect behavior only if REGEX_EMACS_DEBUG. * src/regex-emacs.c (debug_putchar): Use unsigned for %x. (print_compiled_pattern, ENSURE_FAIL_STACK, PUSH_FAILURE_POINT) (POP_FAILURE_POINT): Use %td for ptrdiff_t. (print_compiled_pattern, regex_compile, re_match_2_internal): Put newlines at ends of lines, not at starts of next lines. Omit white space at line ends. 2019-07-01 Michael Albinus Minor changes in tramp.texi * doc/misc/tramp.texi (Obtaining Tramp): Mention file INSTALL. (Cleanup remote connections): The session timer is also deleted. 2019-07-01 Eli Zaretskii More XFIXNUM fixes * src/hbfont.c (hbfont_shape): Don't assume LGLYPH_TO is always a fixnum. * src/fontset.c (fontset_find_font): A cleaner test for matching charset_id. 2019-07-01 Eli Zaretskii Fix assertion violations in fontset_find_font * src/fontset.c (fontset_find_font): Don't assume REPERTORY must be a fixnum. 2019-07-01 Eli Zaretskii Adjust return value of image-transforms-p * src/image.c (Fimage_transforms_p): * doc/lispref/display.texi (Image Descriptors): image-transforms-p now returns at most (scale rotate90), even if ImageMagick is available. 2019-07-01 Sam Steingold Extract gnus-collect-urls from gnus-summary-browse-url * lisp/gnus/gnus-sum.el (gnus-collect-urls): Extract from ... (gnus-summary-browse-url): Use it here. Extracting URLs from an article will be useful in BBDB interaction. 2019-07-01 YAMAMOTO Mitsuharu Implement the otf_capability method for HarfBuzz * src/hbfont.c: Include hb-ot.h. [HAVE_NTGUI]: Add DEF_DLL_FN and #define for hb_tag_to_string, hb_font_get_face, hb_ot_layout_table_get_script_tags, hb_ot_layout_table_get_feature_tags, hb_ot_layout_script_get_language_tags, and hb_ot_layout_language_get_feature_tags. (hbfont_init_w32_funcs) [HAVE_NTGUI]: Add LOAD_DLL_FN for them. (hbfont_otf_features, hbfont_otf_capability): New functions. * src/font.h (hbfont_otf_capability) [HAVE_HARFBUZZ]: Add extern. * src/ftcrfont.c (syms_of_ftcrfont_for_pdumper) [HAVE_HARFBUZZ]: * src/ftfont.c (syms_of_ftfont_for_pdumper) [HAVE_HARFBUZZ]: * src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper) [HAVE_HARFBUZZ]: * src/xftfont.c (syms_of_xftfont_for_pdumper) [HAVE_HARFBUZZ]: Populate otf_capability method with hbfont_otf_capability. 2019-06-30 Paul Eggert Remove divide_double * src/image.c (divide_double): Remove. All uses replaced with inline equivalents. Suggested by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2019-06/msg01067.html 2019-06-30 Alan Mackenzie C++ Mode: change the default doc comment style from nothing to gtkdoc Also amend a pertinent regular expression. This fixes bug #11865. * lisp/progmodes/cc-vars.el (c-doc-comment-style): Insert an entry for c++-mode, namely gtkdoc. * lisp/progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): Amend the regexp recognizing the introductory "/**" to allow subsequent characters on that line. 2019-06-30 Michael Albinus Release Tramp 2.4.2 * lisp/net/tramp.el: Bump version. * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case): Add `add-name-to-file' error message. (tramp--test-ignore-add-name-to-file-error): Make error handler more explicit about the error. 2019-06-30 Andreas Schwab Doc fix * doc/emacs/display.texi (Displaying Boundaries): Document display-fill-column-indicator-character, not display-fill-column-indicator-char. 2019-06-30 Andreas Schwab Fix use of undefined macro * src/xdisp.c (append_space_for_newline): Use FRAME_FONT only inside HAVE_WINDOW_SYSTEM. (extend_face_to_end_of_line): Likewise. (syms_of_xdisp): Doc fix. 2019-06-30 YAMAMOTO Mitsuharu Fix negation in elements of OTF feature list * src/ftfont.c (ftfont_get_open_type_spec): * src/macfont.m (macfont_get_open_type_spec): Take bitwise or instead of and. 2019-06-29 YAMAMOTO Mitsuharu Fix error in mouse-set-font on GTK 3 with Harfbuzz (Bug#36288) * src/gtkutil.c (xg_get_font) [HAVE_GTK3]: Remove type property from font spec. This effectively undoes the fix for Bug#3228, but gives consistent results overall. 2019-06-29 YAMAMOTO Mitsuharu * src/xfns.c (x_create_tip_frame): Support inhibit-double-buffering. * src/xfns.c (Fx_show_tip): Call flush_frame. (Bug#34819) 2019-06-29 Paul Eggert Pacify gcc and other image rotation tweaks * src/image.c: No need to include as lisp.h does that. (matrix3x3_copy): Remove; no longer needed. (divide_double): New function, to avoid undefined behavior when dividing by zero on non-IEEE hosts. (image_set_transform): Simplify transformation computation by avoiding the need to copy a matrix. Pacify gcc 9 -Wdouble-promotion and -Wmaybe-uninitialized. Avoid unnecessary assignment of width and height. Improve error reporting for unsupported native image rotation. 2019-06-29 Ken Brown Simplify workaround for Cygwin O_PATH bug Suggested by Paul Eggert (Bug#36405#22). * configure.ac (HAVE_CYGWIN_O_PATH_BUG): New AC_DEFINE, for Cygwin versions 3.0.0 through 3.0.7. * src/dired.c (O_PATH) [__CYGWIN__]: Remove #undef. (file_attributes) [HAVE_CYGWIN_O_PATH_BUG]: Don't use O_PATH. 2019-06-29 Eli Zaretskii Support native image transforms on MS-Windows This changeset also rearranges native image transform code for other platforms to make it cleaner, and also removes the support for native cropping. For the discussions, see https://lists.gnu.org/archive/html/emacs-devel/2019-06/msg00242.html * src/w32term.c (w32_image_rotations_p, transform): New functions. (w32_draw_image_foreground): If image rotation is requested and supported, call PlgBlt to transform the image. (w32_initialize): Populate the PlgBlt function pointer if it is supported. * src/w32term.h (w32_image_rotations_p): Add prototype. * src/dispextern.h (struct image) [HAVE_NTGUI]: New member xform. * src/image.c (compute_image_rotation): Renamed from image_set_rotation. Only compute and returns the rotation angle; leave the matrix calculation for later. Log an error message if the :rotation parameter is not a number. (image_set_crop): Function deleted. We no longer support native cropping, as one can display an image slice instead. (image_set_transform): Compute the transform matrix in its entirety here, in two variants: one for XRender and Cairo, the other for NS and MS-Windows. call compute_image_size and compute_image_rotation internally. (lookup_image) [HAVE_NATIVE_TRANSFORMS]: Call only image_set_transform. No need to pass the transform matrix to image_set_transform. (Fimage_transforms_p): Return a list of transform capabilities rather than a simple boolean. Support TTY frames as well. * src/nsimage.m (setTransform:): Don't invert the matrix, as it is already inverted in image.c. * test/manual/image-transforms-tests.el (test-cropping): State in the text that only ImageMagick supports cropping. * doc/lispref/display.texi (Image Descriptors): Update the documentation of native image transforms. (ImageMagick Images): Move the description of ':crop' here. * etc/NEWS: Minor copyedits of the feature announcement. 2019-06-29 Shuguang Sun Fix recent change in Tramp * lisp/net/tramp-adb.el: * lisp/net/tramp-archive.el: * lisp/net/tramp-integration.el: Remove superfluous `progn' in `with-eval-after-load'. 2019-06-29 Lars Ingebrigtsen Cosmetic fix-up of message-forward-included-headers * lisp/gnus/message.el (message-forward-included-headers): Use consistent capitalization in the regexps. 2019-06-29 Eli Zaretskii Fix display of fringe bitmaps for tooltips in echo area * src/xdisp.c (display_line): Force redrawing of fringe bitmaps when redisplaying a minibuffer window with truncate-lines set to a non-nil value. (Bug#36308) 2019-06-29 Mattias Engdegård Allow empty argument to `regexp-opt-charset' * test/lisp/emacs-lisp/regexp-opt-tests.el (regexp-opt-charset): Handle nil argument, and use regexp-quote for singletons. * lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Expand tests. 2019-06-28 Paul Eggert Revert O_PATH change to fileio.c Ken Brown pointed out it wasn’t needed (Bug#36405#16): * src/fileio.c (O_PATH) [__CYGWIN__]: Remove #undef. 2019-06-28 Andreas Schwab * test/src/json-tests.el (json-serialize/object): Fix spacing. 2019-06-28 Pip Cet Fix json-serialize/object test failure * test/src/json-tests.el (json-serialize/object): Accept failure with different code. 2019-06-28 Mattias Engdegård Strength-reduce `equal', `eql', `member' and `memql' When comparing against symbols, turn `equal' and `eql' into `eq', and `member' and `memql' into `memq'. * lisp/emacs-lisp/byte-opt.el (byte-optimize--constant-symbol-p) (byte-optimize-equal, byte-optimize-member): New. (member, memql, equal, eql): Use new byte-optimizers. 2019-06-28 Stefan Kangas Document bookmark annotations in Emacs Manual (bug#36417) * doc/emacs/regs.texi (Bookmarks): Document annotations. * lisp/bookmark.el (bookmark-use-annotations): Clarify docstring. 2019-06-28 Mattias Engdegård Correct regexp matching of raw bytes Make regexp matching of raw bytes work in all combination of unibyte and multibyte patterns and targets, as exact strings and in character alternatives (bug#3687). * src/regex-emacs.c (analyze_first): Include raw byte in fastmap when pattern is a multibyte exact string. Include leading byte in fastmap for raw bytes in character alternatives. (re_match_2_internal): Decrement the byte count by the number of bytes in the pattern character, not 1. * test/src/regex-emacs-tests.el (regexp-unibyte-unibyte) (regexp-multibyte-unibyte, regexp-unibyte-mutibyte) (regexp-multibyte-multibyte): New tests. 2019-06-28 Michael Albinus Tramp requires Emacs 24.4 * doc/misc/tramp.texi (Frequently Asked Questions): Use `with-eval-after-load'. in example. * doc/misc/trampver.texi: Set variable emacsver. * lisp/net/tramp.el (tramp-send-string, tramp-call-process) (tramp-call-process-region, tramp-process-lines): * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename) (tramp-adb-sh-fix-ls-output, tramp-adb-maybe-open-connection): * lisp/net/tramp-gvfs.el (tramp-gvfs-get-directory-attributes) (tramp-gvfs-handle-file-notify-add-watch) * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename) (tramp-do-copy-or-rename-file-out-of-band) (tramp-sh-handle-file-notify-add-watch, tramp-find-executable) (tramp-set-remote-path) (tramp-open-connection-setup-interactive-shell) (tramp-maybe-open-connection, tramp-send-command): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-file-acl, tramp-smb-handle-process-file) (tramp-smb-handle-set-file-acl) (tramp-smb-handle-start-file-process) (tramp-smb-maybe-open-connection): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-acl): (tramp-sudoedit-send-command): Use `string-join' and `string-empty-p'. * lisp/net/tramp-adb.el: * lisp/net/tramp-archive.el: * lisp/net/tramp-integration.el: * lisp/net/tramp-ftp.el: Use `with-eval-after-load'. * lisp/net/tramp-cmds.el (tramp-cleanup-connection) (tramp-cleanup-all-connections): Cancel timer. * lisp/net/tramp-compat.el (subr-x): Require. (default-toplevel-value): Don't make it a defalias. * lisp/net/tramp-gvfs.el: Use `dbus-event-error-functions'. Do not special handle `split-string'. * lisp/net/tramp.el: Require Emacs 24.4. (tramp-password-prompt-regexp): Use `password-word-equivalents'. (tramp-user-error): Use `user-error'. (tramp-replace-environment-variables): Use `substitute-env-vars'. (tramp-wait-for-regexp): Rearrange `with-current-buffer' call. (tramp-get-local-gid): Use `group-gid'. * lisp/net/trampver.el: Check for Emacs 24.4. * test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect) (tramp-test02-file-name-dissect-simplified) (tramp-test02-file-name-dissect-separate) (tramp-test03-file-name-host-rules) (tramp-test03-file-name-method-rules): Don't check for `user-error'. 2019-06-28 Lars Ingebrigtsen Doc fix for Gnus "very wide" reply commands * lisp/gnus/gnus-msg.el (gnus-summary-very-wide-reply-with-original) (gnus-summary-very-wide-reply): Clarify what a "very wide reply" is. 2019-06-28 Lars Ingebrigtsen Revert "Fontify _emphasis_ in info nodes" This reverts commit 72963b4e82eef5767e3172f28bd9bd97f487c98a. The change incorrectly fontified whole sentences as emphasis. 2019-06-28 Lars Ingebrigtsen Include To and Cc headers when forwarding with Message * lisp/gnus/message.el (message-forward-included-headers): Include more of the important headers when forwarded: To and Cc. 2019-06-28 Michael Albinus * lisp/gnus/gnus-art.el (gnus-article-stop-animations): Use `cancel-function-timers'. 2019-06-28 Mattias Engdegård More readable regexp debug output * src/regex-emacs.c (debug_putchar): New. (print_fastmap, print_partial_compiled_pattern, print_double_string) (regex_compile): Use debug_putchar. (re_match_2_internal): Add newline. 2019-06-28 Mattias Engdegård Consistently use stderr for debug output in regexp code * src/regex-emacs.c (DEBUG_PRINT, print_fastmap, print_compiled_pattern) (print_double_string, regex_compile): Print to stderr instead of stdout. 2019-06-28 Lars Ingebrigtsen Don't inhibit quit in Gnus when prefetching articles * lisp/gnus/gnus-async.el (gnus-async-prefetch-next): Don't inhibit quit when running `gnus-async-prefetch-article'. 2019-06-27 Alex Branham * lisp/simple.el (undo): Make message less enthusiastic 2019-06-27 Ola Nilsson Allow underscore in defun-prompt-regex names for sh-script * lisp/progmodes/sh-script.el (defun-prompt-regexp): Allow underscore in function names. 2019-06-27 Paul Eggert Improve ‘equal’ and array doc * doc/lispref/objects.texi (Array Type): Array sizes are nonnegative fixnums, not arbitrary integers. (Equality Predicates): Do not say that ‘eq’ equals ‘=’ on bignums. Do not imply that ‘equal’ must signal an error on circular lists. 2019-06-27 Paul Eggert * src/xfaces.c (resolve_face_name): Simplify. 2019-06-27 Pip Cet Remove unnecessary tortoise checks. * src/fns.c (Fplist_get, Fplist_put, Flax_plist_get) (Flax_plist_put, Fplist_member): Remove unnecessary check. * src/json.c (lisp_to_json_toplevel_1): Remove unnecessary check. 2019-06-27 Paul Eggert Work around Cygwin bug with O_PATH Problem reported by Ken Brown (Bug#36405). * src/dired.c, src/fileio.c (O_PATH) [__CYGWIN__]: Undef. 2019-06-27 Paul Eggert Omit a few minor unnecessary range checks Based on Pip Cet’s review (Bug#36370#19). * src/fileio.c (Fdo_auto_save): * src/image.c (lookup_image): * src/textprop.c (Fnext_single_char_property_change): Prefer XFIXNUM to XFIXNAT for clarity and consistency with neighboring code, and to avoid unnecessary range checks. * src/image.c (lookup_image): Omit unnecessary range checks. 2019-06-27 Paul Eggert Improve XFIXNUM cleanup a bit Based on Pip Cet’s review (Bug#36370#13). * src/ccl.c (Fccl_execute_on_string): Use clearer indexing. * src/dosfns.c (Fint86, Fdos_memput): Avoid runtime checks for negative fixnums when debugging. This restores the earlier machine code. * src/lisp.h (XFIXNUM, XUFIXNUM): Use eassert, not eassume. (XFIXNAT): At the start, merely eassert FIXNUMP rather than eassuming FIXNATP. At the end, eassume that the result is nonnegative. This restores help to the compiler that the previous patch mistakenly removed. 2019-06-27 Paul Eggert Clean up use of XFIXNUM etc. A few bits of the code were relying on the fact that XFIXNUM, XFIXNAT, and XUFIXNUM do something even with arguments that are not fixnums/fixnats. Separate these rare uses out into XFIXNUM_RAW and XUFIXNUM_RAW. Problem and original patch reported by Pip Cet (Bug#36370). * src/ccl.c (Fccl_execute_on_string): * src/fileio.c (Finsert_file_contents, a_write) (Fdo_auto_save): * src/process.c (conv_lisp_to_sockaddr): * src/textprop.c (Fnext_single_char_property_change) (Fprevious_single_char_property_change) (Fnext_property_change, Fnext_single_property_change) (Fprevious_property_change) (Fprevious_single_property_change): Don’t assume fixnums are nonnegative. * src/ccl.c (Fccl_execute_on_string): Fix range-checking bug if AREF (status, i) is out of int range. * src/data.c (arith_driver): Use XFIXNUM_RAW as we want efficient garbage if the value is not a fixnum. * src/dosfns.c (Fint86, Fdos_memput): Check that args are nonnegative. * src/image.c (lookup_image): Check that args are in range. * src/lisp.h (lisp_h_XHASH): Use XUFIXNUM_RAW, since this is for hashing. (lisp_h_XFIXNAT, XFIXNAT) [USE_LSB_TAG]: Remove macros. (lisp_h_XFIXNUM_RAW, XFIXNUM_RAW) [USE_LSB_TAG]: New macros, with the semantics of the old macros without _RAW. (XFIXNUM_RAW, XUFIXNUM_RAW): New inline functions, with the semantics of the old functions without _RAW. (FIXNUMP): Move definition up to avoid forward use. (XFIXNUM, XFIXNAT, XUFIXNUM): Use eassume to add a runtime check (when debugging) that the argument has the proper form. (XFIXNUM, XFIXNAT): Now inline functions only, since they refer to their arguments more than once now that they use eassume. * src/textprop.c (Fprevious_single_char_property_change): Avoid fixnum overflow with invalid input. (set_text_properties): Fix unlikely failure to validate arguments, by using EQ instead of XFIXNAT. * src/w32term.c (w32_draw_glyph_string): * src/xterm.c (x_draw_glyph_string): Treat negative minimums as 0 rather than as garbage patterns. 2019-06-27 Paul Eggert Catch duplicate keywords in image specs * src/image.c (struct image_keyword.count): Now bool, not int, since it is either 0 or 1. (parse_image_spec, xpm_image_p): Use bool for boolean. (parse_image_spec): Fix a bug introduced in 2011-09-21T17:41:20!eggert@cs.ucla.edu that reported only triplicate (or more) keywords, not duplicates. 2019-06-27 Lars Ingebrigtsen Mention the new emacsclient -a/--eval behaviour 2019-06-27 Lars Ingebrigtsen emacsclient: ignore --eval parameters when starting alternate editor * lib-src/emacsclient.c (fail): If the user said --eval, don't pass those arguments to the alternate editor as file names. Suggested by a patch from Scott Turner (bug#11474). 2019-06-27 Vasilij Schneidermann Allow for retrieving profiler logs after stopping * lisp/profiler.el (profiler-cpu-log, profiler-memory-log): New variables. (profiler-cpu-profile): Work even if the profiler is no longer running (bug#22114). (profiler-memory-profile): Ditto. (profiler-stop): Save the data. (profiler-reset): Clear the saved data. (profiler-report-cpu, profiler-report-memory): Report on the saved data. (profiler-report): Save the data here, too. 2019-06-27 Dan Nicolaescu Include the date in the bzr annotation buffer * lisp/vc/vc-bzr.el (vc-bzr-annotate-command) (vc-bzr-annotate-time) (vc-bzr-annotate-extract-revision-at-line): Include a date in the bzr annotation buffer (bug#5428). 2019-06-27 Stefan Kangas Add new ispell-change-dictionary-hook (Bug#1110) * lisp/textmodes/ispell.el (ispell-change-dictionary-hook): New hook. (ispell-change-dictionary): Call new hook (bug#1110). 2019-06-27 Thierry Volpiatto Add a new regexp variable to control boring winner buffers * doc/emacs/windows.texi (Window Convenience): Mention it. * lisp/winner.el (winner-boring-buffers-regexp): New variable. * lisp/winner.el (winner-set): Use it (bug#11151). 2019-06-27 Ken Brown Fix invoking Emacs via a symlink on Cygwin * src/emacs.c (load_pdump) [CYGWIN]: Strip ".exe" suffix. 2019-06-27 Lennart Borgman Add more fontification to regexp builder mode * lisp/emacs-lisp/re-builder.el (reb-copy): Work in the presence of newlines in the regexps. (reb-change-syntax): Use a dedicated history variable. (reb-fontify-string-re): Fontify sub-matches. (reb-regexp-grouping-backslash, reb-regexp-grouping-construct): New faces. (reb-string-font-lock-keywords): New variable. (reb-mark-non-matching-parenthesis): Match parenthesis. (reb-restart-font-lock): New function. * lisp/emacs-lisp/re-builder.el (reb-mode-map): Add divider some dividers (bug#6347). 2019-06-27 Lars Ingebrigtsen Rename displayor to displayer in CEDET * doc/misc/sem-user.texi (Idle Completions Mode): Rename displayor->displayer throughout. (Idle Completions Mode): Ditto. * lisp/cedet/semantic/complete.el: Rename displayor->displayer throughout and add aliases for all the methods that used that name. 2019-06-27 Dmitry Gutov Use `default-indent-new-line' instead of `indent-new-comment-line' * lisp/simple.el (default-indent-new-line): Doc string fix. * lisp/textmodes/refill.el (refill-post-command-function): Make default-indent-new-line work as indent-new-comment-line. * lisp/textmodes/refill.el (refill-post-command-function): Bind `M-C-j' and `M-j' to default-indent-new-line instead of indent-new-comment-line to allow overriding via `comment-line-break-function' (bug#12413). 2019-06-27 Lars Ingebrigtsen Revert "Apply font-lock in hexl-mode buffers" This reverts commit 573de396f03684efa89ead24a371b0f4c9bf8d5d. The change wasn't necessary -- the hexl-mode buffer is automatically fontified. 2019-06-27 Aaron S. Hawley Allow generating wiki and mediawiki tables * lisp/textmodes/table.el (table--generate-source-prologue) (table--generate-source-epilogue) (table--generate-source-scan-rows) (table--generate-source-cells-in-a-row): Insert the wiki/mediawiki separators. * lisp/textmodes/table.el (table-source-languages): Add support for wiki and mediawiki tables (bug#13287). 2019-06-27 Lars Ingebrigtsen * doc/emacs/text.texi (Table Misc): Mention the new wiki and mediawiki formats. 2019-06-27 Wilfred Hughes Apply font-lock in hexl-mode buffers * lisp/hexl.el (hexl-mode): After setting font-lock-defaults, we need to call `font-lock-ensure' to apply hexl-mode faces (bug#24645). 2019-06-27 Juanma Barranquero Add :local specifier to defcustom * lisp/custom.el (custom-declare-variable): Allow the new :local parameter (bug#14591). (defcustom): Document it. 2019-06-27 Paul Eggert Tweak ‘error’ and ‘user-error’ doc strings * lisp/net/tramp.el (tramp-user-error): * lisp/subr.el (user-error): Say that user errors are sometimes called pilot errors. * lisp/subr.el (error, user-error): Reorder wording to discuss mechanism first, then formatting advice, rather than going back and forth between the two topics. Tighten up the wording a bit. 2019-06-27 Stefan Kangas Clarify error and user-error docstrings * lisp/subr.el (error, user-error) * lisp/net/tramp.el (tramp-user-error): Change "pilot error" to "user error" and improve documentation. 2019-06-26 Basil L. Contovounesios Remove gnus-bug from report-emacs-bug TODO entry For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg01196.html https://lists.gnu.org/archive/html/emacs-devel/2019-06/msg00967.html * etc/TODO: Remove gnus-bug from list of obsolete bug-reporting commands now that it is implemented in terms of report-emacs-bug. 2019-06-26 Mattias Engdegård Document bug in `replace-regexp-in-string' `replace-regexp-in-string' omits the first START characters of the input string in its return value. This is a clear bug, but fixing it probably causes more trouble; document the behaviour instead (bug#36372). * doc/lispref/searching.texi (Search and Replace) * lisp/subr.el (replace-regexp-in-string): Document current behaviour. 2019-06-26 Stefan Monnier * lisp/textmodes/page-ext.el (sort-pages-buffer): Fix typo Reported by Marco Wahl . Update `Commentary:` to use the new command names. (pages--ctl-x-ctl-p-map): Fix `mark-page` binding. (pages-directory-mode-map): Update `add-new-page` => `pages-add-new-page`. 2019-06-26 Eli Zaretskii Support invoking Emacs via a symlink on MS-Windows * src/w32.c (w32_my_exename): Resolve symlinks in the executable name, to support searching for the pdumper file when the executable is found via a symlink. * src/emacs.c (load_pdump): Add a comment about symlink resolution on Windows. 2019-06-26 Andrzej P (tiny change) Fix redisplay of registers in gdb-mi * lisp/progmodes/gdb-mi.el (gdb-update): Call gdb-get-changed-registers before updating the GDB-MI buffers. (Bug#16366) 2019-06-26 Lars Ingebrigtsen Restrict indirect lookups in Fdocumentation_property * src/doc.c (Fdocumentation_property): Only look up indirect variables if we've been asked for the variable documentation. 2019-06-26 Stefan Monnier Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs into trunk 2019-06-26 Bruce Stephens * lisp/calc/calc-ext.el (math-scalarp): Fix typo 2019-06-26 Lars Ingebrigtsen Fdocumentation_property: Return doc string for indirect variables * src/doc.c (Fdocumentation_property): When dealing with indirect variables (i.e., aliases), also check the symbol being pointed to for the doc string (bug #17180). 2019-06-26 Stefan Monnier Revert "* lisp/calc/calc-ext.el (math-scalarp): Fix typo" This reverts commit 698ff554ac2699ec48fefc85a1307cbc4a183b0d. 2019-06-26 Johan Claesson (tiny change) help-C-file-name shouldn't error out if we can't find the name * lisp/help-fns.el (help-C-file-name): Make help-C-file-name return nil instead of signaling an error if we can't find the file name (bug#17250). 2019-06-26 Stefan Monnier * test/lisp/calc/calc-tests.el (test-math-bignum, test-calc-23889): Disable Not applicable any more with native bignums. 2019-06-26 Stefan Monnier * lisp/calc/calc-ext.el (math-scalarp): Fix typo 2019-06-26 Noam Postavsky Fix (rx-to-string (and (literal STR) (regexp STR)) regression * lisp/emacs-lisp/rx.el (rx-regexp, rx-literal): Check the cadr of the form for stringness, not the form itself. * test/lisp/emacs-lisp/rx-tests.el (rx-to-string-lisp-forms): New test. 2019-06-26 Mattias Engdegård Merge consecutive constant `concat' args (bug#14769) Suggested by Shigeru Fukaya * lisp/emacs-lisp/byte-opt.el (byte-optimize-concat): New. (concat): Add byte-optimizer. 2019-06-25 Stefan Monnier * lisp/calc/calc.el: Take advantage of native bignums. Remove redundant :group args. (calc-trail-mode): Use inhibit-read-only. (math-bignum-digit-length, math-bignum-digit-size) (math-small-integer-size): Delete constants. (math-normalize): Use native bignums. (math-bignum, math-bignum-big): Delete functions. (math-make-float): The mantissa can't be a calc bignum any more. (math-neg, math-scale-left, math-scale-right, math-scale-rounding) (math-add, math-sub, math-mul, math-idivmod, math-quotient) (math-format-number, math-read-number, math-read-number-simple): Don't bother handling calc bignums. (math-div10-bignum, math-scale-left-bignum, math-scale-right-bignum) (math-add-bignum, math-sub-bignum, math-mul-bignum, math-mul-bignum-digit) (math-div-bignum, math-div-bignum-digit, math-div-bignum-big) (math-div-bignum-part, math-div-bignum-try, math-format-bignum) (math-format-bignum-decimal, math-read-bignum): Delete functions. (math-numdigs): Don't presume that native ints are small enough to use a slow algorithm. * lisp/calc/calc-aent.el (calc-do-quick-calc): * lisp/calc/calc-vec.el (calcFunc-vunpack): * lisp/calc/calc-alg.el (math-beforep): Don't bother handling calc bignums. * lisp/calc/calc-bin.el (math-bignum-logb-digit-size) (math-bignum-digit-power-of-two): Remove constants. (calcFunc-and, math-binary-arg, calcFunc-or, calcFunc-xor) (calcFunc-diff, calcFunc-not, math-clip, math-format-twos-complement): Use Emacs's builtin bignums. (math-and-bignum, math-or-bignum, math-xor-bignum, math-diff-bignum) (math-not-bignum, math-clip-bignum) (math-format-bignum-radix, math-format-bignum-binary) (math-format-bignum-octal, math-format-bignum-hex): Delete functions. (math-format-binary): Fix old copy&paste error. * lisp/calc/calc-comb.el (calc-prime-factors): Adjust for unused arg. (math-prime-test): math-fixnum is now the identity. * lisp/calc/calc-ext.el: Require cl-lib. (math-oddp): Use cl-oddp. Don't bother with calc bignums. (math-integerp, math-natnump, math-ratp, math-realp, math-anglep) (math-numberp, math-scalarp, math-vectorp, math-objvecp, math-primp) (math-num-natnump, math-objectp, math-check-integer, math-compare): Don't bother handling calc bignums. (math-check-fixnum): Use fixnump. (math-fixnum, math-fixnum-big, math-bignum-test): Remove functions. (math--format-integer-fancy): Rename from math-format-bignum-fancy. Adjust for internal bignums. * lisp/calc/calc-funcs.el (calcFunc-besJ): Use cl-isqrt. * lisp/calc/calc-macs.el (Math-zerop, Math-integer-negp) (Math-integer-posp, Math-negp, Math-posp, Math-integerp) (Math-natnump, Math-ratp, Math-realp, Math-anglep, Math-numberp) (Math-scalarp, Math-vectorp, Math-objectp, Math-objvecp) (Math-integer-neg, Math-primp, Math-num-integerp): Don't bother handling calc bignums. (Math-bignum-test): Delete function. * lisp/calc/calc-math.el (math-use-emacs-fn): Remove unused `fx`. (math-isqrt, math-sqrt): Use cl-isqrt. Don't bother handling calc bignums. (math-isqrt-bignum, math-isqrt-bignum-iter, math-isqrt-small): Delete function. * lisp/calc/calc-misc.el (math-fixnump, math-fixnatnump): Use fixnump. (math-evenp): Use cl-evenp. (math-zerop, math-negp, math-posp, math-div2): Don't bother handling calc bignums. (math-div2-bignum): Delete function. 2019-06-25 Noam Postavsky Merge from emacs-26 e62ad04963 Fix sgml-mode handling of quotes within parens (Bug#36347) 06b35b2f92 ; * lisp/frame.el: Enhance add-variable-watcher commentary. 572e34bb6f Rename 'make-symbolic-link' argument NEWNAME to LINKNAME 04477adedc Check that length of data returned by sysctl is non-zero 81535eeadb * test/lisp/progmodes/python-tests.el (python-virt-bin): D... 9d48979ca8 Fix Python tests depending on system-type fcf6cc3177 Fix problem with wdired test when symlinks cannot be created. 4701e0663e Improve wording of documentation of click events # Conflicts: # lisp/textmodes/sgml-mode.el # test/lisp/textmodes/sgml-mode-tests.el 2019-06-25 Noam Postavsky Merge from emacs-26 2b765c650a Remove outdated comment in winner.el (Bug#36185) 2019-06-25 Noam Postavsky Don't bind search-spaces-regexp around possible autoload (Bug#35802) * lisp/isearch.el (isearch-search-fun-default): Move possible autoload trigger outside let-binding of search-spaces-regexp. * lisp/char-fold.el (char-fold-make-table): Remove no longer needed workaround. * lisp/info.el (Info-search-whitespace-regexp): * lisp/isearch.el (search-whitespace-regexp): * src/search.c (syms_of_search) : Add warning about adding capturing groups to the value. * test/lisp/char-fold-tests.el: Remove, binding search-spaces-regexp to a different should be considered a bug. 2019-06-25 Noam Postavsky Support (rx (and (regexp EXPR) (literal EXPR))) (Bug#36237) * lisp/emacs-lisp/rx.el (rx-regexp): Allow non-string forms. (rx-constituents): Add literal constituent, which is like a plain STRING form, but allows arbitrary lisp expressions. (rx-literal): New function. (rx-compile-to-lisp): New variable. (rx--subforms): New helper function for handling subforms, including non-constant case. (rx-group-if, rx-and, rx-or, rx-=, rx->=, rx-repeat, rx-submatch) (rx-submatch-n, rx-kleene, rx-atomic-p): Use it to handle non-constant subforms. (rx): Document new form, wrap non-constant forms with concat call. * test/lisp/emacs-lisp/rx-tests.el (rx-tests--match): New macro. (rx-nonstring-expr, rx-nonstring-expr-non-greedy): New tests. * etc/NEWS: Announce changes. 2019-06-25 Juanma Barranquero Fix PATH_MAX change to lib-src/emacsclient.c * lib-src/emacsclient.c (get_current_dir_name): Declare pwdlen. 2019-06-25 Lars Ingebrigtsen Fix previous patch to dired-mark-if * lisp/dired.el (dired-mark-if): Don't use looking-at to check for characters. 2019-06-25 Paul Eggert Prefer PATH_MAX to MAXPATHLEN PATH_MAX is standardized, MAXPATHLEN is not. Also, the Gnulib pathmax module fixes some rare bugs with PATH_MAX. So prefer PATH_MAX to MAXPATHLEN unless we know the latter is also correct (for some platform-specific code). * admin/merge-gnulib (GNULIB_MODULES): Add pathmax. This module was already present, as a dependency of canonicalize-lgpl, but now Emacs is using it directly. Sort. * lib-src/emacsclient.c: Include stdint.h, pathmax.h. (get_current_dir_name): Sync to current src/sysdep.c. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * src/sysdep.c: Include pathmax.h. (get_current_dir_name_or_unreachable): Use PATH_MAX instead of MAXPATHLEN. 2019-06-25 Dima Kogan View-search-... now hit all the matches, regardless of window position * lisp/view.el (view-search): Jump to the next/prev occurrence of the search, even if it's displayed in the buffer (bug#18131). This seems more logical than the previous (undocumented) behaviour. 2019-06-25 Paul Eggert Avoid some strlen work, primarily via strnlen * admin/merge-gnulib (GNULIB_MODULES): Add strnlen. * lib-src/etags.c (find_entries): * src/emacs.c (main): * src/nsmenu.m (parseKeyEquiv:): * src/nsterm.m (ns_xlfd_to_fontname): * src/term.c (vfatal): Prefer !*X to !strlen (X). * lib-src/etags.c (pfnote, add_regex): * lib-src/pop.c (pop_open): * lib-src/update-game-score.c (main): * lwlib/lwlib.c (lw_separator_p): * src/doprnt.c (doprnt): * src/emacs.c (main): * src/inotify.c (inotifyevent_to_event): * src/keyboard.c (menu_separator_name_p, parse_tool_bar_item): * src/sysdep.c (get_current_dir_name_or_unreachable): * src/xdisp.c (store_mode_line_string): Use strnlen to avoid unnecessary work with strlen. * lib-src/etags.c (Prolog_functions, prolog_pr) (Erlang_functions, erlang_func): Prefer ptrdiff_t to size_t when either will do. (prolog_pr, erlang_func): New arg LASTLEN, to avoid unnecessary strlen call. All callers changed. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/strnlen.c, m4/strnlen.m4: New files, copied from Gnulib. * lwlib/lwlib.c (lw_separator_p): * src/json.c (json_has_prefix): Use strncmp to avoid unecessary work with strlen + memcmp. * src/process.c (set_socket_option): Use SBYTES instead of strlen. 2019-06-25 Emilio C. Lopes (tiny change) Support opening a new connection when reverting a telnet buffer * lisp/net/telnet.el (telnet-connect-command): New variable. (telnet-revert-buffer): New function. (telnet-mode): Use `telnet-revert-buffer' as `revert-buffer-function'. (telnet, rsh): Set `telnet-connect-command' accordingly (bug#18312). 2019-06-25 Arash Esbati Suppress warning about unix-sync in nnmaildir.el * lisp/gnus/nnmaildir.el (nnmaildir-request-replace-article): Check if the function `unix-sync' is bound before running it. 2019-06-25 Ivan Shmakov Check labels in smerge-mode * lisp/vc/diff.el (diff-check-labels): Separated out into its own function (bug#18850)... (diff-no-select): ... from here. * lisp/vc/smerge-mode.el (smerge-diff): Use diff-check-labels. 2019-06-25 Basil L. Contovounesios Avoid using subr-x.el function in files.el * lisp/files.el (file-size-human-readable): Open code string-empty-p call. This was the single occurrence of a subr-x.el function in files.el, which does not (yet) load subr-x.el. 2019-06-25 Stefan Monnier * lisp/emacs-lisp/cl-extra.el (cl-isqrt): Speed up bignum case 2019-06-25 Jonathan Shin Hayase Highlight zsh glob flags and qualifiers in sh-mode * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Add regexps to highlight zsh glob flags and alternate qualifiers without mistaking them for comments. (bug#19455). 2019-06-25 Lars Ingebrigtsen Build fix for previous buffers.texi change 2019-06-25 Stefan Monnier * etc/NEWS: Fix vocabulary in last change 2019-06-25 Stefan Monnier * lisp/tar-mode.el: Use lexical-binding; remove redundant :groups. (tar-new-entry): Remove unused var `buffer`. 2019-06-25 Lars Ingebrigtsen Move widen/narrow in tabulated lists to } and { * doc/emacs/buffers.texi (Several Buffers): Document it. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Move widen/narrow to `}' and `{'. 2019-06-25 Glenn Morris * test/lisp/progmodes/flymake-tests.el (ruby-backend): Skip on hydra. Another unstable test. 2019-06-25 Stefan Monnier * lisp/net/tramp.el (tramp-file-name-handler): Use autoload-do-load 2019-06-25 Ivan Shmakov Heed default directory in tar-untar-buffer * lisp/tar-mode.el (tar-untar-buffer): Fix use the value of default-directory local to the tar-mode buffer (bug#19865). 2019-06-25 David Hull etags: Fix handling of quoted symbol names in Erlang * lib-src/etags.c (erlang_attribute): Fix handling of quoted symbol names in Erlang (bug#24960). 2019-06-25 Paul Eggert Update from Gnulib This incorporates: 2019-06-24 unistd: stddef.h and sys/types.h namespace cleanup * lib/gnulib.mk.in: Regenerate. * lib/unistd.in.h: Copy from gnulib. 2019-06-25 Glenn Morris * lisp/info.el (info-emphasis): Fix doc, version. 2019-06-25 Vaidheeswaran C Preserve header lines from derived modes in tabulated lists * lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header): Preserve header line set by derived modes (bug#21025). 2019-06-25 Drew Adams Make dired commands report how many files they mark * lisp/dired.el (dired-mark-if): Report the number of files marked when called, not the total number of marked files (bug#22457). 2019-06-25 Stefan Monnier * lisp/simple.el (forward-visible-line, end-of-visible-line): Use invisible-p 2019-06-25 Lars Ingebrigtsen Add a new command to report the number and size of the marked files 2019-06-25 Constantino Calancha * lisp/dired.el (dired-mode-map): New keystroke and menu binding (bug#22829). 2019-06-25 Lars Ingebrigtsen * doc/emacs/dired.texi (Marks vs Flags): Document it. * lisp/dired.el (dired-number-of-marked-files): New command. 2019-06-25 Phil Sainty Fix `goto-address-url-regexp' * lisp/net/goto-addr.el (goto-address-uri-schemes-ignored): New variable. (goto-address-uri-schemes): Ditto. (goto-address-url-regexp): Use them to compose the final regexp. * lisp/net/goto-addr.el: The URI schemes to be recognised by `goto-address-mode' were not regexp-quoted (Bug#23343). 2019-06-25 Tino Calancha Make winner restore point in all windows that display a buffer * lisp/window.el (window--before-delete-windows): New defun. (delete-window, delete-other-windows): Use it. * lisp/winner.el (winner-set): Use marker in 'window-prev-buffers' when available and different than the value returned by 'winner-get-point' (bug#23621). 2019-06-25 Bastian Beischer (tiny change) Use xref in cedet * lisp/cedet/semantic/complete.el (semantic-complete-jump-local) * lisp/cedet/semantic/analyze/refs.el (semantic-analyze-proto-impl-toggle): Use xref to handle jumping (bug#23793). 2019-06-25 Drew Adams Fontify _emphasis_ in info nodes * lisp/info.el (Info-fontify-node): Fontify _emphasis_ (bug#23798). (info-emphasis): New face. 2019-06-25 Robert Weiner Unlispify even more in custom-unlispify-menu-entry * lisp/cus-edit.el (custom-unlispify-menu-entry): Also allow : and / as separators in symbols when making the symbols look more human-readable (bug#23986). 2019-06-25 Michael Shields [PATCH 1/1] Pass frame-parameters to server-create-tty-frame * lisp/server.el: Pass frame-parameters when creating frames, even on a tty (bug#24147). 2019-06-25 Basil L. Contovounesios Fix recent tex-mode safe-local-variable changes * lisp/textmodes/tex-mode.el (tex-verbatim-environments): Replace (delq t ...) with more usual (memq nil ...). (latex-noindent-environments, latex-noindent-commands): Fix typos and thinkos in safe-local-variable logic. 2019-06-25 Lars Ingebrigtsen Don't delete macuvs.h in extraclean * admin/unidata/Makefile.in (extraclean): Don't delete macuvs.h, because it's a checked-in file, and make targets altering checked-in files is confusing. 2019-06-25 Fritz Stelzer (tiny change) Make xref-show-xrefs-function a defcustom * lisp/progmodes/xref.el (xref-show-xrefs-function): Make into a defcustome (bug#29206). * lisp/progmodes/xref.el (xref-show-definitions-function): Ditto. 2019-06-25 Antoine Beaupré (tiny change) Add imenu support to package-menu-mode * lisp/vc/vc-git.el (vc-git-grep-template): Include in template to be more consistent with lgrep/rgrep (bug#35326). This will introduce the --color and -i flags to the "git grep" command. 2019-06-25 Alan Mackenzie Fix documentation of inhibit-modification-hooks in overlays + text properties This fixes bug #25111. * doc/lispref/display.texi (Overlay Properties): For the hook property modification-hooks, state that inhibit-modification-hooks is bound to non-nil when calling its functions. This also applies to insert-in-front-hooks and insert-behind-hooks, which refer to modification-hooks. * doc/lispref/text.texi (Special Properties): For the hook property modification-hooks, state that inhibit-modification-hooks is NOT bound to non-nil when calling its functions. For the hooks insert-in-fron-hooks and insert-behind-hooks, state that that variable does get bound to non-nil. 2019-06-24 Hong Xu Add imenu support to package-menu-mode * lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Fontify if the major mode is derived from message-mode (not necessarily equal to message-mode) (bug#25124). 2019-06-24 Damien Cassou Add imenu support to package-menu-mode * lisp/emacs-lisp/package.el (package--imenu-prev-index-position-function package--imenu-extract-index-name-function): Add Imenu functions to package-menu-mode (bug#27134). 2019-06-24 Stefan Monnier * lisp/textmodes/tex-mode.el (latex-noindent-commands): New custom var (latex-find-indent): Obey it. (latex-noindent-environments): Make it into a defcustom as well. 2019-06-24 Lars Ingebrigtsen Make message_to_stderr do one single fwrite * src/xdisp.c (message_to_stderr): When running as a batch process, the output from `message' goes to stderr, and has a newline appended. Rewrite the code so that only one fwrite is performed to enable messages that are shorter than PIPE_BUF (usually 4096 on modern operating systems) are written out as one chunk, as this will ensure that the messages are not interleaved with messages from other processes that are writing at the same time. This does not affect other stderr outputs, just the ones from `message'. 2019-06-24 Kaushal Modi Add example for enabling minor modes in .dir-local.el * doc/emacs/custom.texi (Directory Variables): Add an example that shows how a minor mode can be enabled in a .dir-local.el (Bug#27639). Clarify that indent-tabs-mode is not a minor mode. 2019-06-24 YAMAMOTO Mitsuharu * configure.ac: Set HAVE_XFT to no for summary if HAVE_CAIRO is yes. 2019-06-24 Stefan Monnier * lisp/svg.el: Prepare for distribution via GNU ELPA Add a Version: and Package-Requires:. Don't require subr-x. Bring Commentary: from the GNU ELPA version of the package. (svg-remove): Don't use when-let*. 2019-06-24 Eric Abrahamsen Tweaks to html mode * lisp/textmodes/sgml-mode.el (sgml-attributes): Add the "class" and "id" attributes when needed. (html-mode-map): Add the `html-div' and `html-span' commands to the `html-quick-keys' map. (html-ordered-list, html-unordered-list, html-paragraph): Use the "\n" element properly. (html-div, html-span): New HTML skeletons. 2019-06-24 Lars Ingebrigtsen rectangle--pos-cols shouldn't move point * lisp/rect.el (rectangle--pos-cols): Don't move point while calculating the values (bug#25777). 2019-06-24 Eli Zaretskii Fix MS-Windows build as followup to pdumper executable lookup * src/w32.c (w32_my_exename): New function. * src/w32.h (w32_my_exename): Add prototype. * src/emacs.c (load_pdump_find_executable) [WINDOWSNT]: Find the actual file name of the program without looking along PATH, by calling w32_my_exename. * nt/mingw-cfg.site (ac_cv_func_canonicalize_file_name) (ac_cv_func_realpath, gl_cv_func_realpath_works): Disable testing. * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_canonicalize-lgpl): Set to true. 2019-06-24 Lars Ingebrigtsen Make C-l in iimage-mode call recenter-top-bottom * lisp/iimage.el (iimage-recenter): Call `recenter-top-bottom' instead of `recenter', since that's the default function for `C-l' (bug#27610). Suggested by Arne Frederic Maria Döring. 2019-06-24 Michael Albinus Improve error handling in Tramp * lisp/net/tramp-compat.el (ls-lisp): Require. * lisp/net/tramp.el (ls-lisp-use-insert-directory-program): Don't declare. (tramp-current-connection): Adapt docstring. (tramp-debug-message): Adapt function names. (tramp-error, tramp-run-real-handler): Let-bind `signal-hook-function'. (tramp-signal-hook-function): New defun. (tramp-debug-on-error, tramp-condition-case-unless-debug): Remove. (tramp-file-name-handler): Handle `tramp-current-connection'. Let-bind `signal-hook-function'. Use `unwind-protect' instead of `tramp-condition-case-unless-debug'. (tramp-handle-insert-directory): Don't require ls-lisp. (tramp-process-actions): Check, that `tramp-password-save-function' is non-nil. (tramp-equal-remote): Handle the case both files are local. * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case): Do not bind `tramp-debug-on-error'. (tramp--test-ignore-make-symbolic-link-error): Make error handler more explicit about the error. 2019-06-24 Lars Ingebrigtsen Fix up key bindings in previous tabulated-list patch * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Actually use `w'/`c' as described in previous patch. 2019-06-24 Lars Ingebrigtsen Add new commands to widen/narrow tabulated list columns * doc/emacs/buffers.texi: Document widen/contracting commands in tabulated list mode. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Add keystrokes. (tabulated-list-widen-current-column): New command. (tabulated-list-narrow-current-column): Ditto. The code was written by Boruch Baum and then tweaked by Drew Adams (bug#32106) before some white-space changes before the commit. 2019-06-24 Lars Ingebrigtsen Remove -q from zstd invocation * lib-src/etags.c (compressors): -q isn't necessary since standard output goes to /dev/null. From Michael Albinus (bug#33919). 2019-06-24 Lars Ingebrigtsen NEWS fix up for Zstandard patches * etc/NEWS: tramp-archive is a new feature, so no need to say that specific parts of it are new. From Michael Albinus. 2019-06-24 Lars Ingebrigtsen Fix up Zstandard/tramp patch slightly * lisp/net/tramp-archive.el (tramp-archive-suffixes): Fix tzst suffix. From Michael Albinus (bug#33919). 2019-06-24 Alexander Gramiak Add Zstandard compression support for Tramp * lisp/net/tramp-archive.el (tramp-archive-suffixes) (tramp-archive-compression-suffixes): Add zstd compression suffixes. * lisp/net/tramp-sh.el (tramp-inline-compress-commands): Add zstd (de)compression commands. 2019-06-24 Alexander Gramiak Add Zstandard compression support for dired * lisp/dired-aux.el (dired-compress-file-suffixes): Add suffixes for zstd compressed tarballs and other files. (dired-compress-file): Treat options found in `dired-compress-file-suffixes' as arguments instead of part of the program name. 2019-06-24 Alexander Gramiak Add Zstandard compression support for etags * lib-src/etags.c: (compressors): Add zstd support. (print_language_names): Report zstd support. * doc/man/etags.1: Update doc. 2019-06-24 Daniel Colascione Fix pdumper executable-finding code * src/emacs.c: (load_pdump_find_executable): New function. (load_pdump): Use it. 2019-06-24 Damien Cassou * doc/misc/auth.texi (The Unix password store): Complete rewrite * etc/NEWS: Describe changes to auth-source-pass * lisp/auth-source-pass.el: Version 5.0.0 2019-06-24 Damien Cassou Refactoring of auth-source-pass * lisp/auth-source-pass.el (auth-source-pass--find-match): Refactor by moving some code to auth-source-pass--disambiguate. (auth-source-pass--disambiguate) (auth-source-pass--entries-matching-suffix): New function. (auth-source-pass--find-match-unambiguous) (auth-source-pass--select-from-entries) (auth-source-pass--entry-reducer): Refactor to simplify and improve logging. (auth-source-pass--matching-entries) (auth-source-pass--accumulate-matches): Remove. * test/lisp/auth-source-pass-tests.el: Complete rewrite to facilitate maintenance. (auth-source-pass--have-message-containing): Remove. (auth-source-pass--have-message-matching) (auth-source-pass--explain--have-message-matching) (auth-source-pass--explain-match-entry-p) (auth-source-pass--includes-sorted-entries) (auth-source-pass--explain-includes-sorted-entries) (auth-source-pass--explain-match-any-entry-p) (auth-source-pass--matching-entries) (auth-source-pass-match-entry-p) (auth-source-pass-match-any-entry-p): New function. 2019-06-24 Keith Amidon * lisp/auth-source-pass.el: Add Keith Amidon to authors 2019-06-24 Keith Amidon Minimize entry parsing in auth-source-pass Prior to this commit, while searching for the most applicable entry password-store entries were decrypted and parsed to ensure they were valid. The entries were parsed in the order they were found on the filesystem and all applicable entries would be decrypted and parsed, which varied based on the contents of the password-store and the entry to be found. This is fine when the GPG key is cached and each entry can be decrypted without user interaction. However, for security some people have their GPG on a hardware token like a Yubikey setup so that they have to touch a sensor on the toke for every cryptographic operation, in which case it becomes inconvenient as each attempt to find an entry requires a variable number of touches of the hardware token. The implementation already assumes that names which contain more of the information in the search key should be preferred so there is an ordering of preference of applicable entries. If the decrypt and parsing is removed from the initial identification of applicable entries in the store then in most cases a single decrypt and parse of the most preferred entry will suffice, improving the experience for hardware token users that require interaction with the token. This commit implements that strategy. It is in spirit a refactor of the existing code. * lisp/auth-source-pass.el (auth-source-pass--matching-entries): New function, generate an ordered list of regular expression matchers for all possible names that could be in the password-store for the entry to be found and then makes a pass over the password-store entry names accumulating the matching entries in a list after the regexp that matched. This implementation ensures the password-store entry list still only has to be scanned once. (auth-source-pass--find-match-unambiguous): Use it to obtain candidate entries and then parse them one by one until an entry containing the desired information is located. When complete, return the parsed data of the entry instead of the entry name so that the information can be used directly to construct the auth-source response. (auth-source-pass--build-result): Update accordingly. (auth-source-pass--find-match): Update docstring accordingly. (auth-source-pass--select-one-entry) (auth-source-pass--entry-valid-p) (auth-source-pass--find-all-by-entry-name) (auth-source-pass--find-one-by-entry-name): Remove. (auth-source-pass--select-from-entries) (auth-source-pass--accumulate-matches) (auth-source-pass--entry-reducer) (auth-source-pass--generate-entry-suffixes) (auth-source-pass--domains) (auth-source-pass--name-port-user-suffixes): New functions. * test/lisp/auth-source-pass-tests.el: One test case was added to the test suite to verify that only the minimal number of entries are parsed in common cases. The auth-source-pass-only-return-entries-that-can-be-open test case had to be re-implemented because the function it was used eliminated as the functionality is provided elsewhere. All the other fairly substantial changes to the test suite are the result of mechanical changes that were required to adapt to auth-source-pass--find-match returning the data from a parsed password-store entry instead of the entry name. 2019-06-24 Keith Amidon Split out the attribute retrieval form auth-source-pass-get Eliminate the need to repeatedly retrieve and parse the data for the entry. This is generally a good thing since it eliminates repetitions of the same crypto and parsing operations. It is especially valuable when protecting an entry with a yubikey with touch required for crypto operations as it eliminates the need to touch the yubikey sensor for each attribute retrieved. * lisp/auth-source-pass.el (auth-source-pass-get): Extract some code to `auth-source-pass--get-attr'. (auth-source-pass--get-attr): New function to get a field value from a parsed entry. (auth-source-pass--build-result): Make use of `auth-source-pass--get-attr` to avoid repeated parsing. 2019-06-24 Keith Amidon Fix auth-source-pass to search for hostname:port/username auth-source-pass supports entries with username either prefixed to the hostname with an @ as separator or in a subdirectory under the hostname. This was true when there was no port or service included in the name, but got broken with the introduction of auth-source-pass-port-separator. * lisp/auth-source-pass.el (auth-source-pass--find-match-unambiguous): Fix to match hostname:port/username. * test/lisp/auth-source-pass-tests.el: Add corresponding tests. 2019-06-24 Iku Iwasa Add auth-source-pass-port-separator option * lisp/auth-source-pass.el (auth-source-pass-port-separator): New option to specify separator between host and port, default to colon (":"). (auth-source-pass--find-match-unambiguous): Adapt to make use of the new variable. * test/lisp/auth-source-pass-tests.el: Add corresponding tests. 2019-06-24 galaunay Add auth-source-pass-filename option * lisp/auth-source-pass.el (auth-source-pass) (auth-source-pass-filename): Add option to specify a customized password-store path. (auth-source-pass--read-entry) (auth-source-pass-entries): Use the new option instead of hard-coded `~/.password-store'. 2019-06-24 Damien Cassou * lisp/auth-source-pass.el (auth-source-pass-get): Add autoload * lisp/auth-source-pass.el: Version 4.0.2 2019-06-24 Magnus Henoch (tiny change) Fix auth-source-pass to return nil if no entry found * lisp/auth-source-pass.el (auth-source-pass-search): If there is no matching entry, auth-source-pass-search should return nil, not (nil). This lets auth-source fall back to other backends in the auth-sources list. * test/lisp/auth-source-pass-tests.el: Add corresponding test. 2019-06-23 Daniel Colascione Fix locating pdump by symlink * admin/merge-gnulib (GNULIB_MODULES): Add canonicalize-lgpl module * build-aux/config.guess, build-aux/gitlog-to-changelog, build-aux/update-copyright, lib/canonicalize-lgpl.c, lib/gnulib.mk.in, lib/malloca.c, lib/malloca.h, lib/pathmax.h, m4/canonicalize.m4, m4/double-slash-root.m4, m4/gnulib-comp.m4, m4/malloca.m4, m4/pathmax.m4: copy from GNUlib or regenerate from update * src/emacs.c: find dump by canonical path 2019-06-23 Lars Ingebrigtsen Document syntax-ppss-context * doc/lispref/syntax.texi (Parser State): Document it. * lisp/emacs-lisp/syntax.el (syntax-ppss-context): Add a doc string (bug#32504). 2019-06-23 Martin Kletzander (tiny change) Autojoin channels with same name on different servers in erc * lisp/erc/erc-join.el (erc-autojoin-channels): Join channels with the same name on different servers (bug#32723). 2019-06-23 Alex Branham (if-let): Improve docstring by mentioning let* * lisp/emacs-lisp/subr-x.el (if-let): Clarify that if-let is like let*, not like let (bug#33550). 2019-06-23 Carlos Pita Fix auto-revert resizing in image mode * lisp/image-mode.el (image-transform-properties): Get image parameters right after reverting; in particular, compute the correct max size (bug#33631). 2019-06-23 Paul Eggert Don’t line-buffer stderr * src/sysdep.c (init_standard_fds) [DOS_NT]: Don’t line-buffer stderr. This reverts 2019-06-20T07:32:17!eggert@cs.ucla.edu. See: https://lists.gnu.org/r/emacs-devel/2019-06/msg00882.html 2019-06-23 Mattias Engdegård Check validity of rx submatch-n number * lisp/emacs-lisp/rx.el (rx-submatch): Type and range check (Bug#34373). 2019-06-23 Mattias Engdegård Optional space and unit in `file-size-human-readable' (bug#35756) To improve readability of strings produced by `file-size-human-readable', add two optional arguments: - SPACE, to provide a string (typically a space or non-breaking space) to put between the number and unit. For compatibility, the default is an empty string. - UNIT, a string to use as unit. For compatibility, the default is "B" in `iec' mode and the empty string otherwise. Also fix a glitch with small numbers in `iec' mode which caused a stray "i" in the result. * lisp/files.el (file-size-human-readable): Add optional SPACE and UNIT arguments and handle small numbers correctly. (files--ask-user-about-large-file, warn-maybe-out-of-memory): Call with `iec' and space. * test/lisp/files-tests.el (files-test-file-size-human-readable): New test. * lisp/url/url-http.el (url-http-simple-after-change-function) (url-http-content-length-after-change-function): Call with `iec' and space. * etc/NEWS (Lisp Changes): Mention the change. 2019-06-23 Michael Brumlow (tiny change) (hfy-fontify-buffer): Inhibit read only * lisp/htmlfontify.el (hfy-fontify-buffer): Inhibit read only to enable the function to work with text that comes from buffers that put read-only text properties on things (bug#35025). 2019-06-23 Mauro Aranda Document Winner mode user options * doc/emacs/windows.texi (Window Convenience): Add documentation for the user options winner-dont-bind-my-keys, winner-ring-size and winner-boring-buffers (bug#35146). 2019-06-23 Alexander Gramiak src/bytecode.c (exec_byte_code) Unroll Blist3 and Blist4 * src/bytecode.c (exec_byte_code): Unroll Blist3 and Blist4 (bug#35321). 2019-06-23 Eric Abrahamsen Add NEWS entry for new command gnus-summary-browse-url * etc/NEWS: It is documented in the manual. 2019-06-23 Drew Adams Make ls-lisp--dired ape dired-noselect more closely * lisp/ls-lisp.el (ls-lisp--dired): Emulate the behaviour of non-ls-lisp.el dired better by defaulting to default-directory as dired-noselect does (bug#35390). 2019-06-23 Van L Add a Code: tag to subr.el * lisp/subr.el: Add a Code: tag comment (bug#35595). 2019-06-23 Lars Ingebrigtsen Remove outdate comment about an utf-8 cookie that was removed in 2015 2019-06-23 Nick Drozd Handle 'code' tag in shr.el * etc/NEWS: Announce change in shr behavior (bug#36247). * lisp/net/shr.el: Add 'code' tag handling. 2019-06-23 Eric Abrahamsen New command gnus-summary-browse-url * lisp/gnus/gnus-sum.el (gnus-summary-browse-url): New command for browsing URLs from the article buffer from the summary buffer. (gnus-summary-mode-map): Bind to "w". (gnus-summary-article-map): And to "A w". * doc/misc/gnus.texi (Article Commands): Document. 2019-06-23 Michael Albinus Improve error handling in tramp-gvfs * lisp/net/tramp-gvfs.el (tramp-gvfs-get-directory-attributes) (tramp-gvfs-get-root-attributes) (tramp-gvfs-handle-file-attributes): Don't ignore errors. (tramp-make-goa-name): New defun. (tramp-gvfs-get-remote-prefix): Use it. (tramp-gvfs-maybe-open-connection): Raise user errors in case of. Check also, that GOA accounts are proper. (tramp-get-goa-accounts): Cache connection property. * lisp/net/tramp.el (tramp-handle-file-equal-p) (tramp-handle-file-in-directory-p): Use `tramp-equal-remote'. 2019-06-23 Lars Ingebrigtsen Document what the `t' value for HIST in `read-string' means * src/minibuf.c (syms_of_minibuf): Say that `t' means "no history" (bug#36324). (Fread_from_minibuffer): Say the same for HIST. 2019-06-22 Simen Heggestøyl Split up and add tests for two page.el functions * lisp/textmodes/page.el (page--count-lines-page): New function extracted from `count-lines-page'. (count-lines-page): Extract main logic into `page--count-lines-page'. (page--what-page); New function extracted from `what-page'. (what-page): Extract main logic into `page--what-page'. * test/lisp/textmodes/page-tests.el (page-tests-count-lines-page) (page-tests-what-page): New tests for `page--count-lines-page' and `page--what-page'. (Bug#36009) 2019-06-22 Stefan Monnier (with-suppressed-warnings): Also suppress warnings when not byte-compiling * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Bind byte-compile--suppressed-warnings when possible. 2019-06-22 Allen Li Fix defining inverse abbrevs on previous words (Bug#36243) * lisp/abbrev.el (inverse-add-abbrev): Skip trailing nonword characters when defining abbrev. * test/lisp/abbrev-tests.el (abbrev-edit-save-to-file-test): Add regression tests. 2019-06-22 Noam Postavsky Fix python docstring auto-fill (Bug#36056) * lisp/progmodes/python.el (python-mode): Set fill-indent-according-to-mode locally to t. This lets auto-fill do the right thing when auto-filling inside a docstring. The default was to nil on 2001-11-25 "(fill-indent-according-to-mode): Default to nil" with the comment that it "screws up CC-mode's filling tricks". But presumably it shouldn't be a problem for python-mode. * test/lisp/progmodes/python-tests.el (python-auto-fill-docstring): New test. 2019-06-22 Noam Postavsky Make rcirc parsing more RFC2812 compliant (Bug#36233) Do continue to allow multiple spaces between arguments, even though that is technically not allowed by the RFC. * lisp/net/rcirc.el (rcirc-process-server-response-1): Fix parsing of arguments which contain colons. * test/lisp/net/rcirc-tests.el: New test. 2019-06-22 Noam Postavsky * lisp/net/rcirc.el (rcirc-prompt-for-encryption): Simplify. 2019-06-22 Paul Eggert Bring macuvs.h back under Git control * admin/unidata/Makefile.in (maintainer-clean): Instead of removing macuvs.h here ... (extraclean): ... Remove it here. * admin/unidata/uvs.el (uvs-print-table-ivd): Add to comment explaining why macuvs.h is in Git. * src/macuvs.h: Regenerate and re-add to Git. 2019-06-22 Lars Ingebrigtsen Respect case-insensite DelSp flow-fill parameter * lisp/gnus/mm-view.el (mm-inline-text): The DelSp parameter is case-insentitive, so make it work then it's "Yes" (bug#26775). 2019-06-22 Andreas Schwab (nnir-notmuch-remove-prefix): Respect MAILDIR * lisp/gnus/nnir.el (nnir-notmuch-remove-prefix): Respect MAILDIR and regexp-quote the result (bug#34940). 2019-06-22 Lars Ingebrigtsen Use plain report-emacs-bug instead of gnus-bug * doc/misc/gnus.texi (Compatibility): Remove mention of deprecated variable. * lisp/gnus/gnus-msg.el (gnus-bug): Just use `report-emacs-bug'. (gnus-bug-kill-buffer): Remove. (gnus-bug-create-help-buffer, gnus-bug-message): Remove. 2019-06-22 Robert Pluim Export Gnus calendar events to org even if they have no description * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event->org-entry): Don't ignore events that have no description. 2019-06-22 YAMAMOTO Mitsuharu Make ftcr font backend driver more consistent with xft * src/ftcrfont.c: Include charset.h. (ftcrfont_has_char): Import font adstyle related code from ftfont_has_char. 2019-06-22 Lars Ingebrigtsen Remove XEmacs compat code from savehist.el (reworked) * lisp/savehist.el (savehist-coding-system, savehist-install) (savehist-uninstall, savehist-save): Remove XEmacs compat code. (savehist-trim-history): Made obsolete. (savehist-minibuffer-hook): Update comment to reflect the t value of HISTORY in `read-string'. 2019-06-22 Christophe Troestler (tiny change) epg: Use unibyte string to decode percent escapes * lisp/epg.el (epg--status-USERID_HINT, epg--status-*SIG) (epg--status-IMPORTED): Call epg--decode-percent-escape-as-utf-8. (epg--decode-percent-escape): Convert STRING to unibyte. (epg--decode-percent-escape-as-utf-8): New function. (Bug#36098) 2019-06-22 Stefan Kangas Add tests for mail/flow-fill.el * test/lisp/mail/flow-fill-tests.el: New file. * lisp/mail/flow-fill.el (fill-flowed-encode-tests) (fill-flowed-test): Make obsolete. (Bug#36174) 2019-06-22 Stefan Kangas Make toolbar show keyboard equivalents in its tooltips * src/keyboard.c (parse_tool_bar_item): Add equivalent key binding to the tooltip string of toolbar buttons. * etc/NEWS: Announce it. * etc/TODO: Remove its entry. (Bug#36156) 2019-06-22 Teemu Likonen Update epg.el algorithm id-name association lists * lisp/epg.el (epg-pubkey-algorithm-alist) (epg-digest-algorithm-alist, epg-compress-algorithm-alist): Add new identifiers from openpgpdefs.h. 2019-06-22 Stefan Kangas Move mantemp.el to obsolete/ * lisp/progmodes/mantemp.el: Move to obsolete/. (bug#34789) * doc/emacs/ack.texi (Acknowledgments): Remove obsolete library mantemp.el. 2019-06-22 Eli Zaretskii Fix an off-by-one error in assertion * src/fileio.c (Fexpand_file_name): Fix off-by-one error in an assertion. This avoids assertion violations when the home directory is an empty string for some reason. (Bug#36363) 2019-06-22 Eli Zaretskii Correct and update the mapping of LaTeX encodings * lisp/international/latexenc.el (latex-inputenc-coding-alist): Fix the association of latin5. (Bug#36253) Uncomment latin10 and map it to iso-8859-16. 2019-06-22 Eli Zaretskii Avoid using string-make-unibyte in select.el * lisp/select.el (selection-coding-system): Doc fix. (xselect--encode-string): For C_STRING, if the text is not already unibyte, use encode-coding-string instead of string-make-multibyte to make it unibyte. 2019-06-21 YAMAMOTO Mitsuharu Make ftcr font backend driver more consistent with xft * src/ftcrfont.c (ftcrfont_open): Use metrics of glyph ID 0 if there is no glyph for an ASCII printable. 2019-06-21 YAMAMOTO Mitsuharu * src/font.c (Ffont_xlfd_name): Don't use strcpy for overlapping strings. 2019-06-21 Paul Eggert Fix default build-from-Git on macOS * configure.ac (NS_IMPL_COCOA): Do not default to "yes" if src/macuvs.h is absent, which is possible in a build from Git. 2019-06-21 Paul Eggert Remove src/macuvs.h from Git repository It can be generated automatically and easily during a normal bootstrap, so there’s no need to keep it in the repository. * admin/unidata/Makefile.in (maintainer-clean): Behave like extraclean and remove macuvs.h etc. * src/macuvs.h: Remove. 2019-06-21 Lars Ingebrigtsen Revert "Remove XEmacs compat code from savehist.el" This reverts commit a97ba6eb305c9db8641c0e65748907cd53dbfa5e. According to bug#36324, this broke savehist.el 2019-06-21 Stefan Monnier * lisp/emacs-lisp/bytecomp.el (byte-compile-dynamic): Mark obsolete See bug#11649 for an example problem, and emacs-devel discussion «Prickliness of the "invalid byte code" stuff». * lisp/wid-edit.el, lisp/wdired.el, lisp/vc/pcvs-util.el: * lisp/progmodes/executable.el, lisp/mail/sendmail.el: * lisp/emacs-lisp/cl-seq.el, lisp/emacs-lisp/cl-macs.el: * lisp/emacs-lisp/cl-lib.el, lisp/emacs-lisp/cl-extra.el: * lisp/dired-x.el, lisp/dired-aux.el, lisp/calendar/calendar.el: Don't use byte-compile-dynamic any more. 2019-06-20 Stefan Monnier * lisp/vc/ediff-*.el: Use lexical-binding, plus misc cleanup Re-enable lexical-binding in ediff. For that, change ediff-find-file so as not to rely on dynamic scoping in its calling convention. * lisp/vc/ediff-diff.el: Move `provide` to the end. Remove redundant :group. (ediff-exec-process): Disregard current directory. (ediff-forward-word-function): Use defvar-local. * lisp/vc/ediff-help.el (ediff-set-help-message): Use functionp. * lisp/vc/ediff-hook.el (menu-bar-ediff-misc-menu): Make a toggle, as in the XEmacs menu. * lisp/vc/ediff-init.el (ediff-defvar-local): Add `doc-string` prop. (ediff-check-version): Delete function, unused. * lisp/vc/ediff-mult.el: Move `provide` to the end. Remove redundant :groups. (ediff-dir-diffs-buffer-map): Move initialization into declaration. (ediff-meta-mode): Use define-derived-mode. (ediff-intersect-directories): Remove `comparison-func`, unused. (ediff-prepare-meta-buffer): Fix use of `startup-hooks`. * lisp/vc/ediff-ptch.el: Move `provide` to the end. * lisp/vc/ediff-util.el (ediff-add-to-history): Use add-to-history instead. * lisp/vc/ediff-vers.el (ediff-vc-internal, ediff-vc-merge-internal): Use push and closures. * lisp/vc/ediff-wind.el: Remove redundant :groups. * lisp/vc/ediff.el: Move `provide` to the end. Remove redundant :groups. (ediff--magic-file-name, ediff--startup-hook): New vars. (ediff-find-file): Change calling convention so as not to use symbols as value cells. (ediff--buffer-file-name): New function. (ediff-files-internal): Adjust to new calling convention of ediff-find-file. (ediff-directories-internal, ediff-directory-revisions-internal) (ediff-regions-internal): Use push and closures. 2019-06-20 YAMAMOTO Mitsuharu * src/xterm.c (x_update_end) [USE_CAIRO]: Flush non-double-buffered surface. 2019-06-20 YAMAMOTO Mitsuharu Fix blank tooltips on cairo (Bug#36298) * src/xterm.h (x_cr_update_surface_desired_size) [USE_CAIRO]: Add extern. * src/xterm.c (x_cr_update_surface_desired_size) [USE_CAIRO]: Make non-static. * src/xfns.c (Fx_show_tip) [USE_CAIRO]: Call x_cr_update_surface_desired_size. 2019-06-20 YAMAMOTO Mitsuharu Fix broken display by frame maximization on cairo (Bug#23925) * src/xterm.c (handle_one_xevent) [USE_CAIRO && USE_GTK]: Make calls to x_cr_update_surface_desired_size coincide with those to xg_frame_resized. 2019-06-20 Stefan Monnier * lisp/vc/vc-dir.el (vc-dir-search): Avoid `eval`. 2019-06-20 Paul Eggert Fix extraclean in a different way for info+lib/sys * Makefile.in (extraclean): * lib/Makefile.in (extraclean): Use rmdir but suppress any error indication. That way, ‘make extraclean’ will remove the directory if it’s empty, and successfully do nothing otherwise. 2019-06-20 Eli Zaretskii Fix aborts when the value of a display property causes redisplay * src/xdisp.c (handle_single_display_spec): Protect the bidi cache from evaluation that triggers redisplay. (Bug#36312) 2019-06-20 Lars Ingebrigtsen Leave the emtpy info and lib/sys in extraclean * lib/Makefile.in: Ditto. * Makefile.in (extraclean): Don't use GNU-specific rmdir; just leave the empty directory be. 2019-06-20 Paul Eggert Simplify lib-src version printing * lib-src/Makefile.in (etags_cflags): Remove. All uses replaced by a simple ‘-o $@’. (ebrowse${EXEEXT}, emacsclient${EXEEXT}, emacsclientw${EXEEXT}): Omit -DVERSION= option. * lib-src/ebrowse.c (VERSION): * lib-src/emacsclient.c (VERSION): * lib-src/etags.c (EMACS_NAME, VERSION): Remove. All uses replaced by PACKAGE_NAME and PACKAGE_VERSION. * lib-src/ebrowse.c (version): * lib-src/etags.c (print_version): Use fputs to output the version info, since that’s fputs_unlocked. * lib-src/etags.c (PROGRAM_NAME): New macro. (print_version): Use it. 2019-06-20 Lars Ingebrigtsen Make extraclean return tree to pristine state by deleting more * src/Makefile.in (extraclean): Remove TAGS and config.in. * Makefile.in (extraclean): Remove info, configure and emacsver.texi in extraclean. * admin/unidata/Makefile.in (extraclean): Make it depend on distclean to remove .elc files. * leim/Makefile.in (extraclean): Depend on bootstrap-clean to remove generated .el files. * lib/Makefile.in (extraclean): Added target to remove sys directory and run distclean. * lisp/Makefile.in (extraclean): Also remove loaddefs*.el~ files. 2019-06-20 Lars Ingebrigtsen Add doc strings to the ielm * variables * lisp/ielm.el: (*, **, ***): Add doc strings. 2019-06-20 Lars Ingebrigtsen Don't define *, ** and ** in ielm as real variables * lisp/ielm.el: (*, **, ***): Change defvars into compiler directives instead of real variable definitions to avoid polluting the global Emacs namespace. (*1, *2, *3): Ditto. 2019-06-20 Lars Ingebrigtsen Fix compilation warning in esh-mode * lisp/eshell/esh-mode.el (eshell-mode): Remove special binding for M-. in eshell buffers: The comment indicates that this is outdated code. (eshell-find-tag): Make obsolete. 2019-06-20 Lars Ingebrigtsen Fix compilation warning in viper-exp involving tags * lisp/emulation/viper-ex.el (ex-tag): Use xref/next-error instead of the deprecated tags functions. 2019-06-20 Lars Ingebrigtsen Declare semantic-*overlay* aliases obsolete * lisp/cedet/semantic/fw.el: Declare all the semantic-*overlay* aliases obsolete. 2019-06-20 Lars Ingebrigtsen Throughout cedet, don't use semantic-overlay-* compat aliases 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from cedet * lisp/cedet/srecode/mode.el (srecode-menu-bar): * lisp/cedet/semantic/wisent/comp.el (wisent-debug-flag) (wisent-print-results): * lisp/cedet/semantic/util-modes.el (semantic-stickyfunc-indent-string) (semantic-stickyfunc-header-line-format) (semantic-highlight-func-mode-map): * lisp/cedet/semantic/symref/list.el (semantic-symref-list-menu-entries): * lisp/cedet/semantic/idle.el () (semantic-idle-breadcrumbs-popup-menu): * lisp/cedet/semantic/grammar.el (semantic-grammar-item-value) (semantic-grammar-create-package) (semantic-grammar-batch-build-packages) (semantic-grammar-setup-menu): * lisp/cedet/semantic/fw.el (semantic-overlay-live-p) (semantic-event-window, semantic-make-local-hook) (semantic-run-mode-hooks, semantic-subst-char-in-string) (semantic-menu-item, semantic-find-file-noselect): * lisp/cedet/semantic/format.el (semantic-format-face-alist) (semantic--format-colorize-merge-text): * lisp/cedet/semantic/decorate/include.el () (semantic-decoration-on-include-menu) (semantic-decoration-on-unknown-include-menu) (semantic-decoration-on-fileless-include-menu) (semantic-decoration-on-unparsed-include-menu): * lisp/cedet/semantic/decorate.el (semantic-set-tag-read-only) (semantic-tag-read-only-p): * lisp/cedet/mode-local.el (activate-mode-local-bindings): * lisp/cedet/data-debug.el (data-debug-overlay-properties): Remove XEmacs compat code. 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from gravatar.el * lisp/image/gravatar.el (gravatar-retrieve): Remove XEmacs compat code 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from erc * lisp/erc/erc-button.el (button, erc-button-keymap) (erc-button-setup, erc-button-add-button): Remove XEmacs compat code. * lisp/erc/erc-compat.el (erc-replace-match-subexpression-in-string): * lisp/erc/erc-log.el (erc-log-file-coding-system): * lisp/erc/erc-menu.el (menu): * lisp/erc/erc-stamp.el (erc-timestamp-use-align-to): * lisp/erc/erc-track.el (erc-modified-channels-object, track) (erc-track-mouse-face): * lisp/erc/erc.el (erc-update-undo-list) (erc-quit-reason-various, erc-part-reason-various, erc-cmd-SV) (erc-input-message, erc-get-channel-mode-from-keypress) (erc-update-mode-line-buffer): 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from table.el * lisp/textmodes/table.el: (table-disable-menu, null, table-recognize-cell) (table--make-cell-map, table--update-cell) (table--update-cell-widened, table--update-cell-heightened) (table--read-from-minibuffer, table--untabify) (table--update-cell-face, table--warn-incompatibility) (table--fill-region, table--set-timer): Remove XEmacs compat code. 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from dns-mode.el * lisp/textmodes/dns-mode.el (dns-mode): Remove XEmacs compat code. 2019-06-20 Lars Ingebrigtsen Clean up eieio-custom slightly * lisp/emacs-lisp/eieio-custom.el: Remove commented out code. 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from checkdoc.el * lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode-map): Remove XEmacs compat code. 2019-06-20 Lars Ingebrigtsen Clean up after previous viper patch * lisp/emulation/viper-ex.el (viper-get-ex-address-subr): Fix syntax error in last checkin. (viper-ex): Don't use now-obsolete function. 2019-06-20 Lars Ingebrigtsen Remove most of the XEmacs compat code from viper*.el * lisp/emulation/viper-cmd.el () (viper-insert-state-post-command-sentinel) (viper-change-state-to-vi, viper-change-state-to-insert) (viper-change-state-to-emacs, viper-escape-to-state) (viper-special-read-and-insert-char, viper-toggle-key-action) (viper-prefix-arg-value, viper-prefix-arg-com) (viper-digit-argument, viper-command-argument, ) (viper-exec-Yank, viper-repeat, viper-forward-char) (viper-backward-char, viper-forward-word, viper-forward-Word) (viper-end-of-word, viper-end-of-Word, viper-backward-word) (viper-backward-Word, viper-beginning-of-line) (viper-bol-and-skip-white, viper-goto-eol, viper-goto-col) (viper-next-line, viper-next-line-at-bol, viper-previous-line) (viper-previous-line-at-bol, viper-goto-line, ) (viper-repeat-find, viper-repeat-find-opposite) (viper-window-top, viper-window-middle, viper-window-bottom) (viper-paren-match, viper-search, viper-buffer-search-enable) (viper-put-back, viper-Put-back, viper-mark-point) (viper-cycle-through-mark-ring, viper-goto-mark-subr) (viper-brac-function, viper-register-to-point) (viper-submit-report): Remove some XEmacs compat code. * lisp/emulation/viper-ex.el (viper-get-ex-address-subr) (viper-handle-!, ex-edit, ex-mark, ex-next-related-buffer) (ex-help, ex-write, ex-write-info, viper-info-on-file): Ditto. * lisp/emulation/viper-keym.el (viper-add-keymap): Ditto. * lisp/emulation/viper-macs.el (viper-record-kbd-macro): Remove XEmacs compat code. * lisp/emulation/viper-mous.el (viper-mouse-click-insert-word) (viper-mouse-click-search-word): Remove some XEmacs compat code. * lisp/emulation/viper-util.el (viper-overlay-p) (viper-color-defined-p, viper-iconify, viper-memq-char) (viper-char-equal, viper=, viper-color-display-p) (viper-get-cursor-color, viper-frame-value) (viper-change-cursor-color, viper-save-cursor-color) (viper-restore-cursor-color, viper-get-visible-buffer-window) (viper-file-checked-in-p, viper-put-on-search-overlay) (viper-flash-search-pattern, viper-hide-search-overlay) (viper-move-replace-overlay, viper-set-replace-overlay) (viper-set-replace-overlay-glyphs, viper-hide-replace-overlay) (viper-replace-start, viper-replace-end) (viper-set-minibuffer-overlay, viper-check-minibuffer-overlay) (viper-abbreviate-file-name, viper-mark-marker) (viper-set-mark-if-necessary, viper-leave-region-active) (viper-copy-event, viper-read-event-convert-to-char) (viper-event-key, viper-last-command-char) (viper-key-to-emacs-key, viper-eventify-list-xemacs) (viper-set-unread-command-events, viper-char-array-p) (viper-key-press-events-to-chars, viper-read-char-exclusive): Remove most of the XEmacs compat code. * lisp/emulation/viper.el (viper-go-away, viper-set-hooks) (viper-non-hook-settings): Remove some XEmacs compat code. 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from viper-macs.el * lisp/emulation/viper-macs.el (viper-char-array-to-macro): Remove XEmacs compat code. 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from viper-cmd.el * lisp/emulation/viper-cmd.el (viper-change-state) (viper-escape-to-state, viper-special-read-and-insert-char) (viper-prefix-arg-value, viper-prefix-arg-com) (viper-display-current-destructive-command) (viper-file-add-suffix, viper-adjust-window) (viper-set-searchstyle-toggling-macros) (viper-set-parsing-style-toggling-macro) (viper-set-emacs-state-searchstyle-macros): Remove XEmacs compat code. 2019-06-20 Lars Ingebrigtsen Remove XEmacs and old Emacs compat code from gamegrid.el * lisp/play/gamegrid.el (gamegrid-event-x, gamegrid-event-y) (gamegrid-make-glyph, image-size, gamegrid-initialize-display) (gamegrid-start-timer, gamegrid-set-timer) (gamegrid-kill-timer) (gamegrid-add-score-with-update-game-score-1) (gamegrid-add-score-insecure): Removed XEmacs compat code. (gamegrid-characterp, gamegrid-set-display-table): Removed functions. 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from binhex.el * lisp/mail/binhex.el (binhex-insert-char): Remove XEmacs compat code and made into a function instead of a defalias. (binhex-decode-region-internal): Remove XEmacs compat code. 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from uudecode.el * lisp/mail/uudecode.el (uudecode-decode-region-external) (uudecode-decode-region-internal): Remove XEmacs compat code. 2019-06-20 Lars Ingebrigtsen Remove XEmacs compat code from pascal.el * lisp/progmodes/pascal.el (pascal-mark-defun): Remove XEmacs compat. 2019-06-20 Lars Ingebrigtsen Remove XEmacs support from cperl-mode * lisp/progmodes/cperl-mode.el (condition-case) (cperl-electric-parens-mark, cperl-del-back-ch) (cperl-do-not-fontify, cperl-mode, cperl-find-pods-heres) (cperl-write-tags, cperl-tags-hier-init, cperl-perldoc) (cperl-build-manpage): Remove XEmacs support. There's a lot of support code in here for older versions of Emacs that could be removed, too. 2019-06-20 Paul Eggert Simplify stdout buffering * src/sysdep.c (_sobuf): Remove; we no longer need this microoptimization. (init_sys_modes): Simplify by assuming setvbuf. 2019-06-20 Paul Eggert Remove no-longer-needed fflushes of stderr * src/gmalloc.c (mabort) [GC_MCHECK && !__GNU_LIBRARY__]: * src/term.c (vfatal): Remove fflush (stderr) when it is now a no-op because newline automatically flushes stderr. 2019-06-20 Paul Eggert Line-buffer stderr * src/sysdep.c (init_standard_fds) [!DOS_NT]: Use setvbuf to ensure stderr is line-buffered. 2019-06-20 Paul Eggert Fix arbitrary INT_MAX limit on referrer repr * src/pdumper.c (print_paths_to_root_1): Don’t assume strlen (repr) < INT_MAX. 2019-06-20 Paul Eggert Minor putc tweaks * src/emacs-module.c (module_abort): * src/xdisp.c (vmessage): Prefer fputc to putc, since speed isn’t crucial here. * src/region-cache.c (pp_cache) [ENABLE_CHECKING]: Simplify. 2019-06-19 YAMAMOTO Mitsuharu Change font_put_extra value for property removal from Qnil to Qunbound * src/font.c (font_put_extra): If VAL is Qunbound, delete the slot for PROP from the list of extra properties. Previous value Qnil is valid as boolean. (font_clear_prop): Changed argument of font_put_extra for property removal. 2019-06-19 YAMAMOTO Mitsuharu Fix failure of setting default face attribute in init script (Bug#36284) * src/xsettings.c (apply_xft_settings): Undo replacing all #ifdef HAVE_XFT with #if defined USE_CAIRO || defined HAVE_XFT for this function. 2019-06-19 Roland Winkler * lisp/bookmark.el (bookmark-set-internal): Fix format string. 2019-06-19 Juri Linkov Add file sorting options to find-dired and grep-find (bug#36110) * lisp/find-dired.el (find-ls-option-default-ls) (find-ls-option-default-exec, find-ls-option-default-xargs): New variables for values used for options of 'find-ls-option'. (find-ls-option): Use these variables for default values and options. (find-dired-refine-function): Refine :type. * lisp/progmodes/grep.el (grep-find-use-xargs): Use defcustom instead of defvar. Add new value 'gnu-sort'. (grep-compute-defaults): Handle new 'gnu-sort' option of 'grep-find-use-xargs'. 2019-06-19 Lars Ingebrigtsen Remove XEmacs and ancient Emacs compatibility from newst-backend.el * lisp/net/newst-backend.el: Remove compatibility with XEmacs and ancient Emacs versions. 2019-06-19 Lars Ingebrigtsen Doc string fix * lisp/calendar/timeclock.el (timeclock-completing-read): Fix doc string punctuation. 2019-06-19 Lars Ingebrigtsen Remove XEmacs compat code from timeclock.el * lisp/calendar/timeclock.el (timeclock-completing-read) (timeclock-ask-for-project, timeclock-ask-for-reason): Remove XEmacs compat code. 2019-06-19 Lars Ingebrigtsen Remove more XEmacs compat code from epa.el * lisp/epa.el (epa-key-mode, epa-key-list-mode): Remove XEmacs compat code. 2019-06-19 Lars Ingebrigtsen Remove XEmacs compat code from calc * lisp/calc/calc.el (calc-read-key-sequence) (calcDigit-start, calc-read-key, calc-unread-command) (calc-clear-unread-commands): * lisp/calc/calc-misc.el (calc-dispatch-help): * lisp/calc/calc-help.el (calc-help-for-help) (calc-describe-key): * lisp/calc/calc-ext.el (calc-fancy-prefix, calc-user-key-map): Remove XEmacs compat code. 2019-06-19 Lars Ingebrigtsen Remove XEmacs compat code from savehist.el * lisp/savehist.el: (savehist-install, savehist-uninstall, savehist-save) (savehist-trim-history, savehist-printable) (savehist-minibuffer-hook): Remove XEmacs compat code. 2019-06-19 Lars Ingebrigtsen Remove XEmacs compat code from ps-print * lisp/ps-print.el: (ps-print-color-p, ps-postscript-code-directory, ps-setup): * lisp/ps-def.el: (ps-mark-active-p, ps-face-foreground-name) (ps-face-background-name, ps-color-device, ps-color-values) (ps-face-bold-p, ps-face-italic-p, ps-face-strikeout-p) (ps-face-overline-p, ps-face-box-p) (ps-generate-postscript-with-faces1): Remove XEmacs compat code and some outdated Emacs compat code. 2019-06-19 Lars Ingebrigtsen Remove XEmacs compat code from epa.el * lisp/epa.el (epa-key-list-mode, epa-key-mode) (epa--find-coding-system-for-mime-charset): Remove XEmacs compat code and comments. 2019-06-19 Lars Ingebrigtsen Remove XEmacs compat code from dframe.el * lisp/dframe.el (dframe-update-speed, dframe-update-keymap) (dframe-frame-mode, dframe-detach, dframe-set-timer-internal) (dframe-popup-kludge, dframe-mouse-event-p) (dframe-track-mouse, dframe-help-echo, dframe-mouse-set-point) (dframe-double-click, dframe-temp-buffer-show-function) (dframe-hack-buffer-menu, dframe-mouse-hscroll): Remove XEmacs compat code (and some ancient Emacs compat code). 2019-06-19 Lars Ingebrigtsen Remove XEmacs compat code from ansi-color.el * lisp/ansi-color.el (ansi-color-apply-overlay-face) (ansi-color-make-face, ansi-color-make-extent) (ansi-color-set-extent-face): Remove XEmacs compat code. 2019-06-19 Alan Mackenzie Update CC Mode's version number to 5.34 * doc/misc/cc-mode.texi (top level, "Introduction"), lisp/progmodes/cc-defs.el (c-version): Update version number to 5.34. 2019-06-19 Eli Zaretskii Update documentation of font backends on MS-Windows * doc/emacs/msdos.texi (Windows Fonts): Update the documentation of requesting specific font backends. 2019-06-19 Lars Ingebrigtsen Fix typo in previous erc.el change * lisp/erc/erc.el (erc-send-input): Fix typo in previous checkin. 2019-06-19 Lars Ingebrigtsen Use add/remove-hook on erc-pre-send-functions * lisp/erc/erc-goodies.el (noncommands): Ditto. * lisp/erc/erc-ring.el (ring): Use add/remove-hook. 2019-06-19 Lars Ingebrigtsen Move around defgeneric/defmethods in eieio * lisp/emacs-lisp/eieio.el (object-print): * lisp/emacs-lisp/eieio-base.el (eieio-object-set-name-string): Move the defgeneric before the defmethod, because that makes more sense. 2019-06-19 Lars Ingebrigtsen Fix previous change to erc (where commands like /me wouldn't be sent) * lisp/erc/erc-ring.el (erc-add-to-input-ring): * lisp/erc/erc-goodies.el (erc-send-distinguish-noncommands): Pass in a erc-input structure instead of a simple string. * lisp/erc/erc.el (erc-pre-send-functions): Document the new argument to the filter functions. (erc-send-input): Use the new structure to allow the filter functions to alter all three things: The string, whether to insert the string, and whether to send the string. 2019-06-19 Lars Ingebrigtsen Don't have erc-goodies and erc-ring register functions multiple times * lisp/erc/erc-goodies.el (noncommands): Don't register functions twice. * lisp/erc/erc-ring.el (ring): Ditto. 2019-06-19 Stefan Monnier (with-suppressed-warnings): Make it apply to macro-expansion as well * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment): Change with-suppressed-warnings so it also affects the macro-expansion of the body. 2019-06-19 Lars Ingebrigtsen Rename function in completion.el to use completion- prefixes * lisp/completion.el (locate-completion-entry) (completion-locate-entry, locate-completion-entry-retry) (completion-locate-entry-retry, locate-completion-db-error): Rename to use a completion- prefix and make the old names obsolete aliases. (add-completion-to-head, delete-completion): Use the new function names. 2019-06-19 Stefan Monnier * lisp/textmodes/page-ext.el: Further cleanup (pages--ctl-x-ctl-p-map): Rename from ctl-x-ctl-p-map. Move initialization into declaration. (pages-ctl-x-ctl-p-prefix): Rename from ctl-x-ctl-p-prefix. (sort-subr): Remove redundant autoload. (pages-set-delimiter): Use explicit `interactively` arg instead of `called-interactively`. Use `setq-local`. (pages-directory-for-addresses): Use `setq-local`. 2019-06-19 Lars Ingebrigtsen Fix compilation warning in pcmpl-gnu.el * lisp/pcmpl-gnu.el (pcomplete/tar): Remove binding of pcomplete-suffix-list, because it's not consulted in any of the functions called here, and has had no effect since 2011. If we want to support not inserting a space after the = sign, we have to implement that, but it's not currently done. 2019-06-19 Lars Ingebrigtsen Revert "Fix one of the tags/xref warnings in viper-ex.el" This reverts commit 4f2f95049738be97df8647705a8fc05a029ed244. We can't mix calls to find-tag and xref-find-definitions 2019-06-19 Lars Ingebrigtsen Fix up the function/variable names in page-ext.el * lisp/textmodes/page-ext.el (previous-page) (search-pages) (sort-pages-in-region) (sort-pages-buffer) (pages-sort-buffer) (pages-set-delimiter): Rename to have pages- prefixes and make the previous name into aliases for the new names. (ctl-x-ctl-p-map): Use the new command names. 2019-06-19 Lars Ingebrigtsen Touch up the OKURI-NASI progress reporting * lisp/international/ja-dic-cnv.el (skkdic-convert-okuri-ari) (skkdic-convert-postfix, skkdic-convert-prefix) (skkdic-collect-okuri-nasi): Use INFO progress reporting. (skkdic-set-okuri-nasi): Use the progress reporter instead of a per-1000 output. 2019-06-19 Lars Ingebrigtsen Tweak progess reporting in finder-compile-keywords * lisp/finder.el (finder-compile-keywords): Use progress reporter to report the processing. 2019-06-19 Lars Ingebrigtsen Allow specifying the expected number of shift/reduce conflicts * admin/grammars/grammar.wy: Add %expectedconflicts. * lisp/cedet/semantic/grammar-wy.el (semantic-grammar-wy--keyword-table): Ditto. * lisp/cedet/semantic/grammar.el (semantic-grammar-expected-conflicts): New function. (semantic-grammar-insert-defconst-with-eval): New function. (semantic-grammar-create-package): Output the number of expected shift/reduce conflicts. * lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): Don't output the warning if the number of shift/reduce conflicts is expected. (wisent-expected-conflicts): Made obsolete. 2019-06-19 Lars Ingebrigtsen Tweak progress reporting in update-directory-autoloads * lisp/emacs-lisp/autoload.el (update-directory-autoloads): Use progress reporter so say what percentage the progress is at. 2019-06-19 Mattias Engdegård Compile any subsequence of `cond' clauses to switch (bug#36139) A single `cond' form can how be compiled to any number of switch ops, optionally interspersed with non-switch conditions. Previously, switch ops would only be used for whole `cond' forms containing no other tests. * lisp/emacs-lisp/bytecomp.el (byte-compile--cond-vars): Rename from `byte-compile-cond-vars'. (byte-compile--default-val): Remove. (byte-compile--cond-switch-prefix): Replace `byte-compile-cond-jump-table-info'; now also returns trailing non-switch clauses. (byte-compile-cond-jump-table): New arguments; no longer compiles the default case. (byte-compile-cond): Look for and compile switches at any place in the list of clauses. * test/lisp/emacs-lisp/bytecomp-tests.el (byte-opt-testsuite-arith-data): Add test expression. 2019-06-19 Mattias Engdegård Compile cond with heterogeneous tests into switch (bug#36139) Allow any mixture of `eq', `eql' and `equal', `memq', `memql' and `member' in a switch-like `cond' to be compiled into a single switch. * lisp/emacs-lisp/bytecomp.el (byte-compile--common-test): New. (byte-compile-cond-jump-table-info): Use most specific common test. * test/lisp/emacs-lisp/bytecomp-tests.el (byte-opt-testsuite-arith-data): Add test cases for multi-value clause cond forms. 2019-06-19 Mattias Engdegård Tighter pcase or-pattern member function selection (bug#36139) * lisp/emacs-lisp/pcase.el (pcase--u1): Use the most specific of `memq', `memql' and `member' in or-patterns with constant cases. This improves performance and may help the byte-code compiler generate a switch. * test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-member): Add mixed-type or-pattern test cases. 2019-06-19 Mattias Engdegård Compile list member functions in cond to switch (bug#36139) * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-jump-table-info): Expand `memq', `memql' and `member' to their corresponding equality tests. (byte-compile-cond-jump-table): Cases now have multiple values. * lisp/emacs-lisp/byte-opt.el (byte-decompile-bytecode-1) (byte-optimize-lapcode): Don't assume switch hash tables to be injective. 2019-06-19 YAMAMOTO Mitsuharu Fix oversights of "support X core font driver on cairo" change * src/Makefile.in (FONT_OBJ): Fix comment for USE_CAIRO. * src/xfns.c (x_create_tip_frame) [USE_CAIRO]: Register xfont_driver. 2019-06-19 Paul Eggert --with-cairo is no longer experimental Suggested by YAMAMOTO Mitsuharu in: https://lists.gnu.org/r/emacs-devel/2019-06/msg00686.html * configure.ac: Do not say --with-cairo is experimental. * etc/NEWS: Say that --with-cairo is no longer experimental. 2019-06-18 Glenn Morris Disable lexical-binding in ediff Since it breaks the thing (bug#36157, bug#36281). * lisp/vc/ediff-diff.el, lisp/vc/ediff-help.el, lisp/vc/ediff-hook.el: * lisp/vc/ediff-init.el, lisp/vc/ediff-merg.el, lisp/vc/ediff-mult.el: * lisp/vc/ediff-ptch.el, lisp/vc/ediff-vers.el, lisp/vc/ediff-wind.el: * lisp/vc/ediff.el: Set lexical-binding to nil. 2019-06-18 Eli Zaretskii Fix the handling of font backend supersedence on MS-Windows * src/w32font.c (syms_of_w32font): Don't make the Uniscribe font backend "superceded" here, ... * src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): ... make it "superceded" here, only if the HarfBuzz DLL was successfully loaded. This is because Emacs compiled with HarfBuzz support might run on a system without the DLL. * src/w32fns.c (Fx_create_frame, w32_create_tip_frame): Register the HarfBuzz font backend only if it is available. 2019-06-18 Lars Ingebrigtsen Revert "Add a mechanism to specify expected shift/reduce .wy conflicts" This reverts commit f21ec24524c705e18674a2e9e4db37b11fa3ebab. *sigh* Revert again because this created a bootstrap problem in a different part of the process. 2019-06-18 Lars Ingebrigtsen Add a mechanism to specify expected shift/reduce .wy conflicts * admin/grammars/python.wy: Set the expected number of shift/reduce conflicts to four. * lisp/cedet/semantic/grammar.el (semantic-grammar-expected-conflicts): New function. * lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): Use it to suppress warnings about the expected number of shift/reduce conflicts. 2019-06-18 Lars Ingebrigtsen Revert "Add a mechanism to specify expected shift/reduce .wy conflicts" This reverts commit d715ae8788e16b22f7f68cb82b51a40ad95c78c2. This commit led to a build error, so revert for now. 2019-06-18 Lars Ingebrigtsen Add a mechanism to specify expected shift/reduce .wy conflicts * admin/grammars/python.wy: Set the expected number of shift/reduce conflicts to four. * lisp/cedet/semantic/grammar.el (semantic-grammar-expected-conflicts): New function. * lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): Use it to suppress warnings about the expected number of shift/reduce conflicts. 2019-06-18 Lars Ingebrigtsen Rename symbols in ind-util.el to have indian- prefixes * lisp/language/ind-util.el (indian-ucs-to-is13194-regexp) (indian-ucs-to-iscii-region, indian-iscii-to-ucs-region): Rename unprefixed function to indian-*. 2019-06-18 Lars Ingebrigtsen Report progress during custom-make-dependencies instead of file count * lisp/cus-dep.el (custom-make-dependencies): Rewrite to use reporter to report progress instead of how many files we've processed. * lisp/emacs-lisp/byte-run.el (byte-compile-info-string): New function. (byte-compile-info-message): Use it. 2019-06-18 Lars Ingebrigtsen Make quail conversion output quieter * lisp/international/quail.el (quail-update-leim-list-file): Ditto. * lisp/international/titdic-cnv.el (tit-process-header) (tit-process-body, miscdic-convert, batch-titdic-convert): Reduce messaging. 2019-06-18 Lars Ingebrigtsen Fix compilation warning in bookmark.el * lisp/bookmark.el (bookmarks-already-loaded): Move obsolete alias definition to before its referent. In toplevel form: bookmark.el:279:1:Warning: Alias for `bookmark-bookmarks-timestamp' should be declared before its referent 2019-06-18 Lars Ingebrigtsen Output progress reports when scanning for finder/custom * lisp/cus-dep.el (custom-make-dependencies): Ditto. * lisp/finder.el (finder-compile-keywords): Instead of outputting the directories being scanned, output progress reports on the number of files being scanned. This makes the output more similar to the autoload scraping. 2019-06-18 Lars Ingebrigtsen Touch up the byte-compilation messaging in skkdic-set-okuri-nasi * lisp/international/ja-dic-cnv.el (skkdic-set-okuri-nasi): Use the "INFO" format for these informational messages, and be more explicit in saying what they're doing. 2019-06-18 Lars Ingebrigtsen Add types to some no-type tokes in js.wy * admin/grammars/js.wy: Add types to the FALSE, TRUE and QUERY tokens. Without the types, you'd get the warning *Warning* default value of <> tokens changed to QUERY, was NULL_TOKEN *Warning* default value of <> tokens changed to TRUE, was QUERY *Warning* default value of <> tokens changed to FALSE, was TRUE I think this should be harmless, and it doesn't seem to break handling .js files. 2019-06-18 Lars Ingebrigtsen Comment out useless nonterminals from python.wy 2019-06-18 Lars Ingebrigtsen Remove nonterminals that semantic claims are useless * admin/grammars/js.wy (VariableStatement): Remove useless nonterminals. Debug output from wisent: Useless nonterminals: StatementList BlockExpand 2019-06-18 Lars Ingebrigtsen Silence spurious load message in latin-ltx.el * lisp/leim/quail/latin-ltx.el (latin-ltx--define-rules): Silence the `load' because it's not very informative. 2019-06-18 Lars Ingebrigtsen Tweak implementation of byte-compile-info-message * lisp/emacs-lisp/byte-run.el (byte-compile-info-message): Clean up implementation. 2019-06-17 Roland Winkler * lisp/bookmark.el: Watch bookmark file. Use lexical binding. (bookmark-watch-bookmark-file): New user variable. (bookmark-alist): Fix docstring. (bookmark-bookmarks-timestamp): Renamed from bookmarks-already-loaded. (bookmark-maybe-load-default-file, bookmark-save, bookmark-load): Use bookmark-bookmarks-timestamp. (bookmark-bmenu-mode-map): Define menu bar menu. (bookmark-show-annotation, bookmark-show-all-annotations): Make bookmarks buffer read-only. (bookmark-bmenu-save): Use call-interactively. 2019-06-17 YAMAMOTO Mitsuharu Support font driver supersession * src/font.c (font_update_drivers): If argument NEW_DRIVERS is t, then don't use superseded drivers. (syms_of_font) : New DEFSYM. * src/ftfont.c (syms_of_ftfont) [HAVE_HARFBUZZ]: * src/ftcrfont.c (syms_of_ftcrfont) [HAVE_HARFBUZZ]: * src/w32font.c (syms_of_w32font) [HAVE_HARFBUZZ]: * src/xftfont.c (syms_of_xftfont) [HAVE_HARFBUZZ]: Make Harfbuzz variants supersede non-Harfbuzz ones. * src/w32fns.c (Fx_create_frame, w32_create_tip_frame): Remove font backend determination code. 2019-06-17 Lars Ingebrigtsen Output progress messages when scraping autoloads during bootstrap * lisp/emacs-lisp/byte-run.el (byte-compile-info-message): New function to outout informational messages during byte compilation. * lisp/emacs-lisp/autoload.el (update-directory-autoloads): Use it to report progress when scraping autoloads during bootstrap (which may take half a minute). 2019-06-17 Lars Ingebrigtsen Silence message in latin-ltx about the normal situation * lisp/leim/quail/latin-ltx.el (latin-ltx--define-rules): Don't output the summary message unless there are conflicts. 2019-06-17 Paul Eggert * src/image.c (image_set_rotation): Do negation at compile-time. 2019-06-17 Alan Mackenzie Move defvars of c-doc-line-join-re + two others from cc-fonts.el to cc-mode.el This is because these variables are needed at runtime even when cc-fonts.el hasn't been loaded, as in XEmacs when font locking hasn't been enabled. * lisp/progmodes/cc-fonts.el (c-doc-line-join-re) (c-doc-bright-comment-start-re, c-doc-line-join-end-ch): Move definitions to cc-mode.el. 2019-06-17 Lars Ingebrigtsen Compilation work-around for obsolete eieio-object-set-name-string * lisp/emacs-lisp/eieio-base.el (eieio-object-set-name-string): Move the generic definition of this method to here from eieio.el and place it after the cl-method definition. This avoids a warning about it being obsolete when doing macro expansion. 2019-06-17 Lars Ingebrigtsen Work around warning from macroexpanding obsolete method * lisp/emacs-lisp/eieio.el (object-print): Move method definition to before generic definition because the generic definition obsoletes the method, which will then output a warning from when macroexpanding. 2019-06-17 Alex Branham Avoid a flyspell error if point is at beginning of buffer * lisp/textmodes/flyspell.el (flyspell-generic-progmode-verify): Check if point is at the beginning of the buffer. This prevents an error when e.g. 'flyspell-auto-correct-word' gets called with point at the beginning of the buffer. Bug#35967 2019-06-17 Lars Ingebrigtsen Declare unknown slots to silence the compiler * lisp/cedet/ede/config.el (classpath): Declare slot. (ede-java-classpath): Revert previous hack. * lisp/cedet/srecode/srt-mode.el (key): Declare slot. (srecode-macro-help): Revert previous hack. (srecode-parse-this-macro): Ditto. 2019-06-17 Lars Ingebrigtsen Change the eieio-declare-slots function into a macro * lisp/emacs-lisp/eieio-core.el (eieio-declare-slots): Change into a compile-only macro. 2019-06-17 Lars Ingebrigtsen New function eieio-declare-slots * lisp/emacs-lisp/eieio-core.el (eieio-declare-slots): New function to suppress compiler warnings about unknown slots. 2019-06-17 Lars Ingebrigtsen Fix use of obsolete constructor in semantic/complete.el * lisp/cedet/semantic/complete.el (make-instance): Use make-instance instead of the obsolete constructor method... which didn't work, anyway. The following would bug out 2019-06-17 Lars Ingebrigtsen Fix compilation warning by having ede-target inherit from eieio-named * lisp/cedet/ede/base.el (ede-target): Inherit from eieio-named so that if you're customizing objects via eieio-object-value-get, you can set the name. * lisp/emacs-lisp/eieio-custom.el (eieio-object-value-get): Don't use obsolete function `eieio-object-set-name-string'. 2019-06-17 Alan Mackenzie Remove the now unneeded c-font-lock-flush from CC Mode. * lisp/progmodes/cc-defs.el (c-font-lock-flush): Delete this macro. * lisp/progmodes/cc-engine.el (c-propertize-raw-string-opener): Delete the call to the macro. 2019-06-17 Lars Ingebrigtsen Make calc-macs.el lexical * lisp/calc/calc-macs.el: Enable lexical binding. This fixes a build warning in calc.el (which is lexical). 2019-06-17 Lars Ingebrigtsen Suppress warning in isearchb about iswitchb being obsolete * lisp/isearchb.el (obsolete): Suppress warning about package being obsolete. Instead, this has been reported to the bug tracker, because it requires a rewrite of isearchb. 2019-06-17 Lars Ingebrigtsen Make do-after-load-evaluation check whether warnings are enabled. * lisp/subr.el (do-after-load-evaluation): Heed `byte-compile-warning-enabled-p', if defined. This allows suppressing the warning about packages being obsolete. 2019-06-17 Lars Ingebrigtsen Suppress compilation warning in srt-mode * lisp/cedet/srecode/srt-mode.el (srecode-parse-this-macro): Check for the existence of `key' in the macro before using it, and suppress the warning. 2019-06-17 Lars Ingebrigtsen Suppress warning about out-of-tree Java class in cedet * lisp/cedet/ede/config.el (ede-java-classpath): Hack to suppress a compilation warning in glue code to out-of-tree code. 2019-06-17 Lars Ingebrigtsen Suppress warning about object-print in eieio.el * lisp/emacs-lisp/eieio.el (obsolete): Suppress warning about object-print being obsolete, because there are no in-tree definitions any more. 2019-06-17 Lars Ingebrigtsen Add check for enabled warning before issuing * lisp/emacs-lisp/bytecomp.el (byte-compile-function-warn): Check whether we want the `obsolete' warning before issuing it. 2019-06-17 Lars Ingebrigtsen Suppress warning about object-print in eieio.el * lisp/emacs-lisp/eieio.el (cl-print-object): Suppress the warning about object-print being obsolete, since there are no in-tree methods like that any more. 2019-06-17 Lars Ingebrigtsen Make with-suppressed-warnings work in cl-defmethod * lisp/emacs-lisp/cl-generic.el (cl-defmethod): Pass the symbol name on to `byte-compile-warning-enabled-p' to make with-suppressed-warnings work in cl-defmethods, too. 2019-06-17 Lars Ingebrigtsen Rewrite object-print methods in cedet to be cl-print-object methods * lisp/cedet/semantic/db-el.el (object-print): Ditto. (object-print): Ditto. * lisp/cedet/semantic/db-global.el (object-print): Ditto. * lisp/cedet/semantic/db.el (object-print): Remove; unused. * lisp/cedet/semantic/db.el (semanticdb-debug-info): New method. (object-print): Rewritten to be cl-print-object. * lisp/emacs-lisp/eieio.el (eieio-object-name): Allow the EXTRA argument to be a list of strings. 2019-06-17 Lars Ingebrigtsen Add doc strings to the -at-point commands in vc-git * lisp/vc/vc-git.el (vc-git-stash-delete-at-point) (vc-git-stash-show-at-point, vc-git-stash-apply-at-point) (vc-git-stash-pop-at-point): Add doc strings to these commands. 2019-06-16 Roland Winkler * lisp/find-dired.el (find-dired-refine-function): Fix defcustom. 2019-06-16 Eric Abrahamsen Prevent the Gnus registry from being loaded twice at startup * lisp/gnus/gnus-registry.el (gnus-registry-load): Check if the registry is already loaded, and don't load again unless new optional FORCE argument is non-nil. (gnus-registry-clear): New function to clear the registry, added as a Gnus shutdown. Now that loading doesn't unilaterally reset the registry, we need to make sure it is reloaded when Gnus is. 2019-06-16 YAMAMOTO Mitsuharu Avoid rounding error in image rotation * src/image.c (image_set_rotation): Halve translations as double values. 2019-06-16 Glenn Morris Tweak compilation mode used by byte-recompile-directory * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-mode): Doc fix. (byte-recompile-directory): Use emacs-lisp-compilation-mode. 2019-06-16 Glenn Morris Disable filling of warnings in a bytecomp test * test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): Disable filling rather than working around it. 2019-06-16 Glenn Morris Tweak how byte-compile-print-syms fills * lisp/emacs-lisp/bytecomp.el (byte-compile-print-syms): Use fill-column from the compile log buffer. 2019-06-16 Glenn Morris Don't hard-code the fill-column for display-warning * lisp/emacs-lisp/warnings.el (warning-fill-column): New variable. (display-warning): Use warning-fill-column. * doc/lispref/display.texi (Warning Variables): Mention warning-fill-column. 2019-06-16 Stefan Monnier * lisp/emacs-lisp/cl-generic.el (gv-setter): Move declaration. Move it to those places where we know gv has been loaded. 2019-06-16 Lars Ingebrigtsen Fix up the --no-print-directory changes in src/Makefile.in * src/Makefile.in (AM_V_NO_PD): New macro written by Andreas Schwab that can be either --no-print-directory or "". (%.elc): Use it instead if the if statement. 2019-06-16 Juanma Barranquero Bump up max_specpdl_size to 1500. (Bug#36216) * src/eval.c (init_eval_once): Set max_specpdl_size to 1500. * doc/lispref/variables.texi (Local Variables): Document it. 2019-06-16 Lars Ingebrigtsen Add comment to eieio-opt about why we're requiring cl-extra * lisp/emacs-lisp/eieio-opt.el (cl-extra): Add comment about why we're not requiring cl-lib. 2019-06-16 Alan Third Revert "Simplify image transforms" This reverts commit cf3081d208814ea02fce33aac645abfc24f880a6. 2019-06-16 Alan Third Simplify image transforms * src/image.c: (image_set_rotation, image_set_size, image_set_transform): Combine into image_set_transform. (image_set_crop): Remove function. (lookup_image): Remove calls to removed functions and remove transform_matrix. * test/manual/image-transforms-tests.el (test-cropping): Remove function. (test-transforms): Remove reference to test-cropping. 2019-06-16 Alan Third Document image transforms * doc/lispref/display.texi (Image Descriptors): Document :crop and update :rotation. * src/image.c: Describe the image transform matrix layout. * test/manual/image-transforms-tests.el: New file. 2019-06-16 Lars Ingebrigtsen Fix compilation warning about gv-setter in cl-generic * lisp/emacs-lisp/cl-generic.el (gv-setter): Declare to avoid a compilation warning. 2019-06-16 Alan Mackenzie CC Mode: Remedy recent loss in performance * lisp/progmodes/cc-engine.el (c-back-over-member-initializers): call c-parse-state outside of the narrowing operation. * lisp/progmodes/cc-fonts.el (c-get-fontification-context) (c-font-lock-cut-off-declarators): Replace calls to c-determine-limit with crude position calculations for speed. 2019-06-16 Lars Ingebrigtsen Fix compilation warning i eieio-base * lisp/emacs-lisp/eieio-base.el (clone): Use eieio-object-class instead of obsolete function class-of. 2019-06-16 Lars Ingebrigtsen Fix compilation warning in ede.el * lisp/cedet/ede/auto.el (ede-project-autoload): Inherit from eieio-named, because we want to set the object name... * lisp/cedet/ede.el (ede-new): ... which we do here, and fix the compilation warning about the obsolete eieio-object-set-name-string function. 2019-06-16 Lars Ingebrigtsen Revert "Fix compilation warning in ede.el" This reverts commit 7bbb56bc430465a6807a8129a322c704c89e3eba. The commit led to a bootstrap error. 2019-06-16 Lars Ingebrigtsen Fix compilation warning in ede.el * lisp/cedet/ede.el (ede-new): ... which we do here, and fix the compilation warning about the obsolete eieio-object-set-name-string function. * lisp/cedet/ede/auto.el (ede-project-autoload): Inherit from eieio-named, because we want to set the object name... 2019-06-16 Lars Ingebrigtsen Remove obsolete name arg from two constructors * lisp/cedet/semantic/grammar.el (semantic-analyze-current-context): Remove obsolete name arg. * lisp/cedet/srecode/insert.el (srecode--insert-into-buffer): Ditto. 2019-06-16 Lars Ingebrigtsen Compilation fix for previous change to eieio-opt * lisp/emacs-lisp/eieio-opt.el (cl-extra): Require for cl--describe-class. 2019-06-16 Lars Ingebrigtsen Fix compilation warning in eieio-opt * lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor): Don't use obsolete function eieio-help-class. 2019-06-16 Lars Ingebrigtsen Avoid "unknown slot" compilation warning in eieio-custom * lisp/emacs-lisp/eieio-custom.el (eieio-read-customization-group): Slot `name' may not exist in all classes, so protect against that (and avoid a compilation warning about it). 2019-06-16 Lars Ingebrigtsen Avoid a compilation warning in srt-mode.el * lisp/cedet/srecode/srt-mode.el (srecode-macro-help): Add hack to avoid compilation warning about slot that has to exist at this point. 2019-06-16 Lars Ingebrigtsen Fix one of the tags/xref warnings in viper-ex.el * lisp/emulation/viper-ex.el (ex-tag): Avoid a compilation warning about find-tag-other-window. 2019-06-16 Lars Ingebrigtsen Declare function in esh-mode before #'-ing it * lisp/eshell/esh-mode.el (ansi-color-apply-text-property-face): Declare to avoid a compilation warning. 2019-06-16 Lars Ingebrigtsen Avoid obsolete function in reftex-global.el * lisp/textmodes/reftex-global.el (reftex-query-replace-document): Rewrite to use fileloop directly to avoid the obsolete function tags-query-replace. 2019-06-16 Lars Ingebrigtsen Use fileloop directly in vc-dir to avoid obsolete function * lisp/vc/vc-dir.el (vc-dir-query-replace-regexp): Rewrite to use fileloop directly to avoid the obsolete function tags-query-replace. 2019-06-16 Alan Mackenzie Maintain c-syntax-table-hwm when changing syntax-table text properties * lisp/progmodes/cc-defs.el: (c-syntax-table-hwm): Move the defvar to here from cc-mode.el, since the variable is needed at compile time in c-emacs-features. (c-min-property-position): New macro. (c-put-char-property, c-clear-char-property, c-clear-char-properties) (c-clear-char-property-with-value-function) (c-clear-char-property-with-value-on-char-function) (c-put-char-properties-on-char): Adjust c-syntax-table-hwm appropriately when syntax-table text properties are changed. * lisp/progmodes/cc-engine.el (c-truncate-lit-pos-cache): Remove the now unneeded setting of c-syntax-table-hwm, and the unneeded declaration of c-syntax-table-hwm. 2019-06-16 Michael Albinus Say how Tramp is packaged with Emacs * doc/misc/tramp.texi (Obtaining Tramp): Mention `customize-package-emacs-version-alist'. 2019-06-15 Dmitry Gutov Fix regressions in xref-find-definitions and ...-other-window * lisp/progmodes/xref.el: (xref--display-buffer-in-other-window) (xref--display-buffer-in-window): New functions. (xref--show-pos-in-buf): Use them (bug#33870) 2019-06-15 Stefan Kangas Add MESSAGE string to bookmark-errors (bug#23408) * lisp/bookmark.el (bookmark-errors): Add MESSAGE parameter string. 2019-06-15 Noam Postavsky Always try to display tree-widget with images (Bug#36147) Checking the result of display-images-p doesn't make sense if the display capabilities when loading the file are different from the display used to actually look at the widget (which is easily possible now that Emacs supports both tty and graphic frames in the same instance). * lisp/tree-widget.el (tree-widget-image-enable): Default to t, always. This still shows text on displays that can't show images. 2019-06-15 Noam Postavsky Allow trailing whitespace in --eval argument (Bug#36219) * lisp/startup.el (command-line-1): Don't complain about trailing garbage if it's only space, tab, or newline characters. 2019-06-15 Michael Albinus * lisp/net/trampver.el (customize-package-emacs-version-alist): Adapt Tramp version integrated in Emacs 26.3. 2019-06-15 Philipp Stephani * src/xfaces.c (dump_realized_face): Fix incorrect format string. * src/xfaces.c (dump_realized_face): Fix format specifier. * src/nsterm.m (ns_row_rect): Remove unused variable ‘f.’ 2019-06-15 Glenn Morris Merge from origin/emacs-26 7a8f22b * test/lisp/url/url-file-tests.el (url-file): Use file:///, n... 0c5f6c6 Fix doc of srecompile-compile-split-code (Bug#36200) 2019-06-15 Glenn Morris Merge from origin/emacs-26 6242324 * lisp/net/sieve-manage.el (sieve-manage-parse-capability): D... 2019-06-15 Glenn Morris Merge from origin/emacs-26 f53ce87 ; ChangeLog.3 update eca2677 Fix description of 'display-buffer-in-previous-window' again ... 7be50cd Consistently use @minus{} for negative arguments # Conflicts: # ChangeLog.3 2019-06-15 Eli Zaretskii Update hash value in pdumper.c * src/pdumper.c (dump_fwd_buffer_obj) [CHECK_STRUCTS]: Update the hash in HASH_Lisp_Buffer_Objfwd. (Bug#36225) 2019-06-15 Eli Zaretskii Improve error message when dmpstruct.h needs to be updated * src/pdumper.c (dump_cons, dump_interval_tree, dump_string) (dump_marker, dump_overlay, dump_finalizer) (dump_bignum, dump_float, dump_fwd_int, dump_fwd_bool) (dump_fwd_obj, dump_fwd_buffer_obj, dump_fwd_kboard_obj) (dump_fwd, dump_blv, dump_symbol, dump_vectorlike_generic) (dump_hash_table, dump_buffer, dump_bool_vector, dump_subr) (dump_vectorlike, dump_object, dump_charset) [CHECK_STRUCTS]: Make the error message more specific where to find the comment to CHECK_STRUCTS. 2019-06-15 Lars Ingebrigtsen Probably fix the `helper' argument in feedmail.el * lisp/mail/feedmail.el (feedmail-queue-send-edit-prompt-inner): Return the helper function (instead of the symbol `helper') so that the caller can actually call it. 2019-06-15 Lars Ingebrigtsen Fix compilation warning in esh-cmd.el * lisp/eshell/esh-cmd.el (pcomplete--here): Declare function to avoid byte compilation warning, which is what erc-notify.el also does in a similar situation. 2019-06-15 Lars Ingebrigtsen Fix build warning in srecode/srt-mode * lisp/cedet/srecode/srt-mode.el (srecode-inserter-prin-example): Declare and require before use. 2019-06-15 Lars Ingebrigtsen Silence warnings about obsolete functions in obsolete/vip.el * lisp/obsolete/vip.el (ex-tag): Silence warnings about obsolete functions because this is an obsolete file. 2019-06-15 Lars Ingebrigtsen Suppress compilation warnings in obsolete/otodo-mode.el * lisp/obsolete/otodo-mode.el (lexical): Suppress warnings about non-prefixed variables because this file is obsolete. 2019-06-15 Lars Ingebrigtsen Silence warning in obsolete/complete.el * lisp/obsolete/complete.el (PC-do-completion): Suppress warning about obsolete variable in obsolete function. 2019-06-15 Lars Ingebrigtsen Make obsolete function zip-lists work again * lisp/obsolete/cl-compat.el (zip-lists): Use cl-mapcan instead of mapcan; mapcan now takes only two parameters. 2019-06-15 Lars Ingebrigtsen Suppress compilation warning in supercite.el * lisp/mail/supercite.el (curline): Suppress warning about non-prefixed variable used by forms in the `sc-mail-glom-frame' variable. 2019-06-15 Lars Ingebrigtsen Suppress warning in mailheader.el * lisp/mail/mailheader.el (headers): Suppress warning about non-prefixed variable part of the advertised interface. 2019-06-15 Lars Ingebrigtsen Suppress warning about non-prefixed variable in mailalias.el * lisp/mail/mailalias.el (patters): Suppress warning about non-prefixed variable used by `mail-complete-alist'. 2019-06-15 Lars Ingebrigtsen Fix byte compilation warning in bindat.el * lisp/emacs-lisp/bindat.el (bindat--unpack-item): Avoid a byte compilation warning by using unibyte-string instead of concat + string-make-unibyte. 2019-06-15 Lars Ingebrigtsen Avoid printing entering/leaving messages in second stage bootstrap * src/Makefile.in (%.elc): Default to not printing the entering/leaving lines when compiling .el files in the second stage of bootstrapping Emacs. V=1 will output them. 2019-06-15 Lars Ingebrigtsen Also test unpacking Refactor for reuse New file to test bindat functions 2019-06-15 Lars Ingebrigtsen Suppress warning about `entry' in calendar * lisp/calendar/cal-china.el (entry): * lisp/calendar/cal-hebrew.el (entry): Suppress warning about dynamically bound `entry', which has to be bound for diary-chinese-anniversary and diary-hebrew-birthday to work. These function can be used in the sexp part of users' diary files. 2019-06-15 Lars Ingebrigtsen Suppress warning about prefixless date variable in calendar * lisp/calendar/lunar.el (date): * lisp/calendar/cal-persia.el (date): * lisp/calendar/cal-mayan.el (date): * lisp/calendar/cal-julian.el (date): * lisp/calendar/cal-iso.el (date): * lisp/calendar/cal-islam.el (date): * lisp/calendar/cal-hebrew.el (date): * lisp/calendar/cal-french.el (date): * lisp/calendar/cal-coptic.el (date): * lisp/calendar/cal-china.el (date): * lisp/calendar/cal-bahai.el (date): Suppress warning about this prefix-less dynamic variable, because it's part of the documented calling convention used in the sexp part of users' diary files. 2019-06-15 Wilson Snyder Clean up verilog-mode.el documentation examples to match behavior. * lisp/progmodes/verilog-mode.el (verilog-auto, verilog-auto-arg) (verilog-auto-ascii-enum, verilog-auto-inout) (verilog-auto-inout-comp, verilog-auto-inout-in) (verilog-auto-inout-modport, verilog-auto-inout-module) (verilog-auto-inout-param, verilog-auto-input) (verilog-auto-insert-lisp, verilog-auto-inst) (verilog-auto-inst-param, verilog-auto-inst-param-value) (verilog-auto-output, verilog-auto-output-every, verilog-auto-reg) (verilog-auto-reg-input, verilog-auto-reset, verilog-auto-sense) (verilog-auto-tieoff, verilog-auto-undef, verilog-auto-unused) (verilog-auto-wire, verilog-inject-auto, verilog-read-sub-decls): Clean up documentation examples to match behavior. 2019-06-15 Michael Albinus Make url-tramp more robust * lisp/url/url-tramp.el (url-tramp-convert-url-to-tramp) (url-tramp-convert-tramp-to-url): Check, that obj is non-nil. 2019-06-15 Stefan Kangas Remove another variable obsolete since Emacs 22 * lisp/progmodes/cc-langs.el: Remove obsolete variable c-opt-op-identitier-prefix. * etc/NEWS: Announce it. (Bug#36173) 2019-06-15 Michael Albinus Let tramp-archive unmount clean * lisp/net/tramp-archive.el (tramp-archive-cleanup-hash): Don't check for a proper method. 2019-06-15 Michael Albinus Make Tramp compatible to recent progress-reporter-update * lisp/net/tramp-compat.el (tramp-compat-progress-reporter-update): New defalias. * lisp/net/tramp.el (tramp-progress-reporter-update): Add optional SUFFIX. 2019-06-15 Michael Albinus Some changes in process output read of Tramp * lisp/net/tramp.el (tramp-handle-file-notify-rm-watch): Read pending output. * test/lisp/net/tramp-tests.el (tramp-test31-interrupt-process): Use a timeout when reading process output. 2019-06-15 Michael Albinus Tag remote autorevert tests as unstable * test/lisp/autorevert-tests.el (auto-revert--timeout): Derive value from `auto-revert-interval'. (auto-revert--deftest-remote): Tag it as `:unstable'. (auto-revert-test05-global-notify, auto-revert-test06-write-file): Suppress final newline. Use `auto-revert--timeout'. 2019-06-15 Stefan Kangas Remove Lucid Emacs support from bookmark.el * lisp/bookmark.el: Remove Lucid Emacs support. (Bug#36179) 2019-06-15 Eli Zaretskii Improve documentation of hash-code functions * src/fns.c (Fsxhash_eq, Fsxhash_eql, Fsxhash_equal): * doc/lispref/hash.texi (Defining Hash): Warn against assuming that sxhash returns consistent results. 2019-06-14 YAMAMOTO Mitsuharu * configure.ac: Lower required cairo version to 1.8.0. 2019-06-14 YAMAMOTO Mitsuharu Remove non-Xdbe double-buffering code on cairo * src/xterm.c (x_begin_cr_clip, x_update_end) [USE_CAIRO]: Don't do handcrafted double-buffering with image surface. 2019-06-14 YAMAMOTO Mitsuharu Rework x_scroll_run on cairo * src/xterm.c (x_scroll_run) [USE_CAIRO]: Use FRAME_CR_CONTEXT or surface type for conditions to call XCopyArea rather than FRAME_X_DOUBLE_BUFFERED_P. Set compositing operator to CAIRO_OPERATOR_SOURCE when copying image. 2019-06-14 Lars Ingebrigtsen Revert "Silence okuri-nasi count-up messaging during compilation" This takes long enough on some systems that the messages are useful. This reverts commit 1d2e4d22c922f94d6f4b75a5ead18cbc679c5dfe. 2019-06-14 Michael Albinus Fix problem in remote file notification * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter) (tramp-sh-gvfs-monitor-dir-process-filter) (tramp-sh-inotifywait-process-filter): Do not kill the process. Let `file-notify-rm-watch' do the job. * test/lisp/filenotify-tests.el (file-notify-test03-events) (file-notify-test05-file-validity) (file-notify-test09-watched-file-in-watched-dir): Do not special-case remote files. 2019-06-14 Lars Ingebrigtsen Silence okuri-nasi count-up messaging during compilation * lisp/international/ja-dic-cnv.el (skkdic-set-okuri-nasi): Remove messaging while compilation to make compilation more regular. 2019-06-14 Lars Ingebrigtsen Revert "srecode/srt-mode compilation fix" This led to a recursive require. This reverts commit 9fac0e70e3f5b7d0b12b77cac50078e01f68ee70. 2019-06-14 Lars Ingebrigtsen Fix previous object-print/cl-print-object changes * lisp/cedet/srecode/insert.el (srecode-insert-variable-secondname-handler): * lisp/cedet/semantic/decorate/include.el (semantic-decoration-fileless-include-describe): (semantic-decoration-all-include-summary): * lisp/cedet/semantic/db-find.el (semanticdb-find-log-activity): * lisp/cedet/semantic/bovine/c.el (semantic-c-describe-environment): * lisp/cedet/semantic/analyze/debug.el (semantic-analyzer-debug-insert-include-summary): Fix previous object-print/cl-print-object changes that were nonsensical. 2019-06-14 Lars Ingebrigtsen Avoid using registerv-make in senator.el * lisp/cedet/semantic/senator.el (senator-register): New class. (register-val-jump-to, register-val-describe) (register-val-insert): New methods. (senator-copy-tag-to-register): Use this instead of the deprecated registerv-make function. 2019-06-14 Lars Ingebrigtsen analyze/debug compilation fix * lisp/cedet/semantic/analyze/debug.el (pulse): Require to avoid byte compilation warning. 2019-06-14 Lars Ingebrigtsen semantic/lex-spp compilation fix * lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-analyzer-push-tokens-for-symbol): Use new name for `semantic-lex-spp-anlyzer-do-replace'. 2019-06-14 Lars Ingebrigtsen Use cl-typep instead of obsolete predicate functions throughout cedet * lisp/cedet/srecode/dictionary.el (srecode-create-dictionary): (srecode-dictionary-add-entries): (srecode-compound-toString): (srecode-dump): * lisp/cedet/srecode/compile.el (srecode-dump-code-list): * lisp/cedet/semantic/util.el (semantic-something-to-tag-table): * lisp/cedet/semantic/db-typecache.el (semanticdb-typecache-length): * lisp/cedet/semantic/db-ref.el (semanticdb-check-references): * lisp/cedet/semantic/db-find.el (semanticdb-find-incomplete-cache-entries-p): (semanticdb-find-translate-path-includes-default): (semanticdb-find-results-p): (semanticdb-find-result-with-nil-p): * lisp/cedet/semantic/analyze/complete.el (semantic-analyze-possible-completions): Use cl-typep instead of functions like `srecode-dictionary-compound-value-child-p' etc. 2019-06-14 Lars Ingebrigtsen srecode/srt-mode compilation fix * lisp/cedet/srecode/srt-mode.el (srecode/insert): Require to avoid compilation warning about unknown slot. Remove function declarations that point to that file. 2019-06-14 Lars Ingebrigtsen srecode/find compilation fix * lisp/cedet/srecode/find.el (srecode/compile): Require to avoid compilation warning about unknown slot. Remove function declarations that point to that file. 2019-06-14 Lars Ingebrigtsen srecode/dictionary compilation warning fix * lisp/cedet/srecode/dictionary.el (srecode/fields): Require to avoid compilation warning about unknown slot. Remove function declarations that point to that file. 2019-06-14 Lars Ingebrigtsen srecode/dictionary compilation fix * lisp/cedet/srecode/ctxt.el (srecode/dictionary): Require to avoid compilation warning about unknown slot. Remove function declarations that point to that file. 2019-06-14 Lars Ingebrigtsen srecode-inserter-prin-example compilation fix * lisp/cedet/srecode/insert.el (srecode-inserter-prin-example): Move prin1 example to file that defines the structure it prints. 2019-06-14 Lars Ingebrigtsen Move functions from semantic.el to analyze.el to avoid warnings * lisp/cedet/semantic.el (semantic-analyze-completion-at-point-function) (semantic-analyze-notc-completion-at-point-function) (semantic-analyze-nolongprefix-completion-at-point-function): Add autoloads for the moved functions. * lisp/cedet/semantic/analyze.el (semantic-analyze-completion-at-point-function) (semantic-analyze-notc-completion-at-point-function) (semantic-analyze-nolongprefix-completion-at-point-function): Move here from semantic.el to avoid getting compilation warnings about unknown slot `bounds'. 2019-06-14 Lars Ingebrigtsen Adjust erc functions after previous erc-pre-send-function change 2019-06-14 Lars Ingebrigtsen Adjust erc functions after previous erc-pre-send-function change * lisp/erc/erc-goodies.el (noncommands): Use erc-pre-send-functions instead of the hook. (erc-send-distinguish-noncommands): Adjust function to new interface. * lisp/erc/erc-ring.el (ring): Ditto. (erc-add-to-input-ring): Ditto. * lisp/erc/erc.el (erc-send-this): Really make obsolete. (erc-pre-send-functions): Change to a list of functions to allow erc-goodies and erc-ring to work as before. 2019-06-14 Lars Ingebrigtsen Unobsolete string-to-multibyte * lisp/subr.el: Un-obsolete string-to-multibyte, because it's a useful function. string-to-unibyte has already been un-obsoleted. 2019-06-14 Lars Ingebrigtsen Use CLOS-style accessors in oref/oset * lisp/cedet/srecode/texi.el (srecode-semantic-handle-:texitag): * lisp/cedet/srecode/table.el (srecode-mode-table-new): (srecode-dump): * lisp/cedet/srecode/srt-mode.el (srecode-parse-this-macro): (semantic-analyze-possible-completions): * lisp/cedet/srecode/semantic.el (srecode-compound-toString): (srecode-semantic-apply-tag-to-dict-default): * lisp/cedet/srecode/mode.el (srecode-minor-mode-templates-menu): (srecode-edit): * lisp/cedet/srecode/insert.el (srecode-insert-method): (srecode-inserter-apply-state): (srecode-insert-ask-default): (srecode-insert-method-ask): (srecode-insert-method-field): (srecode-insert-method-helper): (srecode-parse-input): (srecode-match-end): (srecode-insert-include-lookup): (srecode-insert-method): * lisp/cedet/srecode/find.el (srecode-template-table-in-project-p): (srecode-template-get-table): (srecode-template-get-table-for-binding): (srecode-all-template-hash): * lisp/cedet/srecode/extract.el (srecode-inserter-extract): (srecode-inserter-extract): * lisp/cedet/srecode/el.el (srecode-semantic-apply-tag-to-dict): * lisp/cedet/srecode/dictionary.el (initialize-instance): (srecode-dictionary-add-template-table): (srecode-compound-toString): * lisp/cedet/srecode/cpp.el (srecode-semantic-apply-tag-to-dict): * lisp/cedet/srecode/compile.el (srecode-compile-template-table): (srecode-dump): * lisp/cedet/srecode/args.el (srecode-semantic-handle-:project): * lisp/cedet/semantic/texi.el (semantic-analyze-possible-completions): * lisp/cedet/semantic/symref/list.el (semantic-symref-results-dump): (semantic-symref-list-create-macro-on-open-hit): (semantic-symref-list-rename-open-hits): (semantic-symref-list-map-open-hits): * lisp/cedet/semantic/symref/idutils.el (semantic-symref-perform-search): (semantic-symref-parse-tool-output-one-line): * lisp/cedet/semantic/symref/global.el (semantic-symref-perform-search): (semantic-symref-parse-tool-output-one-line): * lisp/cedet/semantic/symref/cscope.el (semantic-symref-perform-search): (semantic-symref-parse-tool-output-one-line): * lisp/cedet/semantic/mru-bookmark.el (semantic-mrub-ring-to-assoc-list): * lisp/cedet/semantic/grammar.el (semantic-analyze-possible-completions): * lisp/cedet/semantic/decorate/include.el (semantic-decoration-include-describe): * lisp/cedet/semantic/debug.el (semantic-debug-highlight-lexical-token): (semantic-debug-highlight-rule): * lisp/cedet/semantic/db-typecache.el (semanticdb-typecache-for-database): * lisp/cedet/semantic/complete.el (semantic-collector-calculate-completions-raw): * lisp/cedet/semantic/bovine/make.el (semantic-analyze-possible-completions): * lisp/cedet/semantic/analyze/refs.el (semantic-analyze-refs-impl): (semantic-analyze-refs-proto): * lisp/cedet/semantic/analyze/debug.el (semantic-analyzer-debug-describe-scope): * lisp/cedet/semantic/analyze.el (semantic-analyze-interesting-tag): (semantic-analyze-interesting-tag): (semantic-analyze-pulse): * lisp/cedet/ede/util.el (ede-update-version): * lisp/cedet/ede/shell.el (ede-shell-run-something): * lisp/cedet/ede/project-am.el (project-am-load-makefile): (project-rescan): (project-am-macro): (ede-buffer-mine): (project-compile-target-command): (project-am-package-info): * lisp/cedet/ede/files.el (ede--project-inode): (ede-directory-get-open-project): (ede-directory-get-toplevel-open-project): (ede-find-subproject-for-directory): (ede-toplevel-project): * lisp/cedet/ede/cpp-root.el (initialize-instance): (project-compile-project): (project-compile-target): * lisp/cedet/ede/config.el (ede-config-get-configuration): (project-debug-target): (project-run-target): (project-compile-project): (ede-preprocessor-map): (ede-java-classpath): * lisp/cedet/ede/base.el (ede-normalize-file/directory): Use CLOS-style oref/oset accessors instead of eieio-style :colon accessors. This avoids compilation warnings and is allegedly faster. 2019-06-14 Lars Ingebrigtsen Obsolete erc-send-pre-hook and add new erc-pre-send-function * lisp/erc/erc.el (erc-send-pre-hook): Make obsolete. (erc-send-input): Ditto. (erc-pre-send-function): New function. (erc-send-input): Use the new function, and silence byte compilation warning about the dynamic variable `str' used by the now-obsolete hook. 2019-06-14 Lars Ingebrigtsen Fix compilation warning in rmailmm * lisp/mail/rmailmm.el (rmail-mime-insert-bulk): Remove apparently superfluous call to string-as-unibyte -- the buffer should be unibyte already at this point. 2019-06-14 Lars Ingebrigtsen Avoid compilation warning in byte-run * lisp/emacs-lisp/byte-run.el (macro-declaration-function): Avoid compilation warning by not using `symbol-function'. 2019-06-13 Stefan Monnier * lisp/gnus/message.el: Fix NNTP sending, broken by e51adfbdb7 (message-check-news-header-syntax): `message--check-continuation-headers` signals an error instead of returning nil on error. 2019-06-13 Glenn Morris Stop a tramp test leaving a file behind * test/lisp/net/tramp-tests.el (tramp-test10-write-region-file-precious-flag): Avoid leaving a backup file after we are done. 2019-06-13 Stefan Monnier * lisp/widget.el (define-widget-keywords): Use `declare`. * lisp/progmodes/ps-mode.el (ps-mode-octal-region): Simplify. 2019-06-13 Lars Ingebrigtsen Fix typo in object-print cleanup * lisp/cedet/srecode/insert.el (srecode-insert-variable-secondname-handler): Fix typo in object-print cleanup. 2019-06-13 Lars Ingebrigtsen Remove outdated FIXME * lisp/emacs-lisp/eieio-core.el (eieio--slot-name-index): Remove comment about issuing a byte compilation warning about accessing slots via :initarg -- it was implemented a few months later. 2019-06-13 Lars Ingebrigtsen semantic/senator.el byte compilation fix * lisp/cedet/semantic/senator.el (semantic/analyze): Require to avoid compilation warnings about unknown slots, and remove declare-function. 2019-06-13 Lars Ingebrigtsen semantic/idle.el compilation warning fix * lisp/cedet/semantic/idle.el (semantic/analyze): Require to avoid compilation warnings about unknown slots, and remove declare-function. 2019-06-13 Lars Ingebrigtsen semantic/grammar byte compilation fixes * lisp/cedet/semantic/grammar.el (semantic/analyze): Require to avoid compilation warnings about unknown slots, and remove declare-function. 2019-06-13 Lars Ingebrigtsen semantic/chart.el compilation warning fixes * lisp/cedet/semantic/chart.el (semantic/db-typecache) (semantic/scope): Require to avoid byte compilation warnings about undefined slots. Remove declare-functions from these packages. 2019-06-13 Lars Ingebrigtsen Fix some cedet compilation warnings pertaining to semantic/db * lisp/cedet/ede/config.el (semantic/db) (ede-preprocessor-map): Ditto. * lisp/cedet/ede/cpp-root.el (semantic/db): Ditto. * lisp/cedet/ede/emacs.el (semantic/db): Ditto. * lisp/cedet/ede/linux.el (semantic/db): Require to avoid warnings about unknown slot lexical-table, and remove declare-functions from the now-required semantic/db. 2019-06-13 Lars Ingebrigtsen project.el compilation warning fix * lisp/progmodes/project.el (xref--regexp-to-extended) (xref--convert-hits): Declare more xref functions to avoid compilation warnings. 2019-06-13 Alan Mackenzie Depessimize bits of CC Mode for long C macros. * lisp/progmodes/cc-engine.el (c-end-of-macro): Check for being in a degenerate zero length "macro", when setting the macro cache. (c-determine-+ve-limit): Add in a missing goto-char form for when start-pos is non-nil. (c-back-over-member-initializers): Add a search limit parameter. * lisp/progmodes/cc-fonts.el (c-get-fontification-context): Add a search limit to c-go-up-list-backward. (c-font-lock-cut-off-declarators): Add a search limit to c-back-over-member-initializers. * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Don't set c-new-END to the end of logical line (which might be a long macro). (c-after-change-mark-abnormal-strings): Calculate end-hwm in place of the setting of c-new-END (above). Use this as a search limit rather than c-new-END. 2019-06-13 Stefan Kangas Remove XEmacs support from bookmark.el * lisp/bookmark.el (bookmark-store): Remove XEmacs compat code (bug#36189). 2019-06-13 Lars Ingebrigtsen Use cl-print-object instead of object-print throughout cedet * lisp/cedet/semantic/db-find.el (semanticdb-find-log-activity): Ditto. * lisp/cedet/semantic/analyze/debug.el (semantic-analyzer-debug-insert-include-summary): Ditto. * lisp/cedet/semantic/bovine/c.el (semantic-c-describe-environment) (semantic-c-describe-environment) (semantic-c-describe-environment): Ditto. * lisp/cedet/semantic/decorate/include.el (semantic-decoration-fileless-include-describe): Ditto. (semantic-decoration-all-include-summary): Ditto. * lisp/cedet/srecode/insert.el (srecode-insert-variable-secondname-handler): Use cl-print-object instead of object-print. 2019-06-13 Lars Ingebrigtsen erc-dcc.el minor clean-ups * lisp/erc/erc-dcc.el: Remove outdated comments. (erc-dcc-get-file): Remove XEmacs compat code. 2019-06-13 Lars Ingebrigtsen Fix erc-dcc server-close code and fix compilation warning * lisp/erc/erc-dcc.el (erc-dcc-get-filter): We receive unibyte data, so no need to convert to unibyte. (erc-dcc-send-filter): Kill the process before killing the buffer so that we're not queried about killing the process. 2019-06-13 Lars Ingebrigtsen Make erc-dcc-server work again by making synchronous * lisp/erc/erc-dcc.el (erc-dcc-server): :server and :nowait can't be mixed, so remove the :nowait. 2019-06-13 Pip Cet Escape newlines when printing functions in timer list * lisp/emacs-lisp/timer-list.el (list-timers): Bind `print-escape-newlines' to avoid newlines in printed representation (bug#36187). 2019-06-13 Lars Ingebrigtsen Compilation fix for previous change 2019-06-13 Lars Ingebrigtsen Compilation warning fix for disass.el * lisp/emacs-lisp/disass.el (disassemble-1): Remove a string-as-unibyte that probably doesn't do anything, because the string in question should be unibyte anyway. If the assert fails, revert the patch. 2019-06-13 Alan Mackenzie CC Mode: replace an erroneous re-search-forward with search-forward Move two declarations to a more suitable point in the cc-engine.el. * lisp/progmodes/cc-engine.el (c-after-change-unmark-raw-strings): Change an re-search-forward to search-forward. (c-semi-lit-near-cache, c-semi-near-cache-limit): Move the declarations. 2019-06-13 Eli Zaretskii Fix display of Hebrew text with precomposed characters * lisp/language/hebrew.el (base): Include precomposed Hebrew characters from the Alphabetic Presentation Forms in the composition patterns. (Bug#36171) 2019-06-13 Eli Zaretskii Fix text shaping of precomposed characters with HarfBuzz * src/hbfont.c (hbfont_shape): Fix setting TO of lglyph for the case when Lisp shape-gstring function performed some compositions by itself. This happens with hebrew.el. See https://lists.freedesktop.org/archives/harfbuzz/2019-June/007396.html for the details of the problem this solves. 2019-06-13 Alan Mackenzie Move declaration of c-syntax-table-hwm to avoid compiler warnings. This variable was declared after an invocation of a defsubst which used it, the defsubst being in another file. * lisp/progmodes/cc-mode.el (c-syntax-table-hwm): Move the declaration to earlier in the file. 2019-06-12 Glenn Morris Allow for line breaks in a bytecomp test * test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): Warnings from the byte compiler may be filled. 2019-06-12 Lars Ingebrigtsen Avoid string-make-multibyte in ps-mode.el * lisp/progmodes/ps-mode.el (ps-mode-octal-region): Avoid usage of string-make-multibyte, but work in both unibyte and multibyte buffers. 2019-06-12 Lars Ingebrigtsen Add more ps-mode octal tests * test/lisp/progmodes/ps-mode-tests.el (ps-mode-test-octal-region-multibyte): New test. 2019-06-12 Lars Ingebrigtsen Revert previous ps-mode.el change * lisp/progmodes/ps-mode.el (ps-mode-octal-region): Revert previous change because the `string-make-unibyte' insertion was the previous single change (in 2013) to this file, so it must have some subtle meaning or other. 2019-06-12 Lars Ingebrigtsen Add ps-mode-tests.el and remove a compilation warning * lisp/progmodes/ps-mode.el (ps-mode-octal-region): Remove a string-make-unibyte that apparently had no effect here. * test/lisp/progmodes/ps-mode-tests.el: New file. 2019-06-12 Lars Ingebrigtsen Suppress warnings in tildify.el * lisp/textmodes/tildify.el (tildify--deprecated-ignore-evironments): (tildify-tildify, tildify-mode): Suppress warnings about obsolete internal function `tildify--pick-alist-entry'. Apparently these semi-deprecated functions rely on each other. 2019-06-12 Lars Ingebrigtsen Add comment to clarify the use of `str' 2019-06-12 Glenn Morris Revert "Compilation warning fix for byte-run.el" * lisp/emacs-lisp/byte-run.el (macro-declaration-function): Revert change that causes a bootstrap failure. 2019-06-12 Lars Ingebrigtsen Fix compilation warnings in rfc2104 * lisp/net/rfc2104.el (rfc2104-hash): Remove superflous calls to string-make-unibyte and avoid two compilation warnings. 2019-06-12 Lars Ingebrigtsen New file rfc2104-tests.el * test/lisp/net/rfc2104-tests.el: New file to test rfc2104 hashes. 2019-06-12 Glenn Morris Give more information in a bytecomp test failure * test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): More informative failure messages. 2019-06-12 Lars Ingebrigtsen Fix compilation warning in qp.el * lisp/mail/qp.el (quoted-printable-encode-region): No need to convert the regexp to multibyte before searching. 2019-06-12 Lars Ingebrigtsen Fix warning about obsolete func calling obsolete func in etags.el * lisp/progmodes/etags.el (find-tag-other-frame): Don't give a warning about an obsolete function calling another obsolete function. 2019-06-12 Lars Ingebrigtsen Compilation warning fix in feedmail.el * lisp/mail/feedmail.el (feedmail-scroll-buffer): Remove XEmacs compat code (that gave a compilation warning). 2019-06-12 Lars Ingebrigtsen Remove XEmacs compat code from mml.el that gave a compilation warning * lisp/gnus/mml.el (mml-mode): Remove XEmacs compat code 2019-06-12 Lars Ingebrigtsen message.el byte compilation warning fix * lisp/gnus/message.el (message-inhibit-body-encoding): Move earlier to avoid compilation warning. 2019-06-12 Lars Ingebrigtsen Compilation warning fix for byte-run.el * lisp/emacs-lisp/byte-run.el (macro-declaration-function): Suppress warning about obsolete function used by obsolete variable. 2019-06-12 Lars Ingebrigtsen todo-mode.el compilation warning fix * lisp/calendar/todo-mode.el (hl-line-highlight): Declare to avoid compilation warning. 2019-06-12 Lars Ingebrigtsen Touch ups to the XEmacs deletion patch for idlw-shell.el * lisp/progmodes/idlw-shell.el (idlwave-xemacs-hack-mouse-track): Fix up previous obsoletion. 2019-06-12 Lars Ingebrigtsen Remove XEmacs support from idlw-shell.el * lisp/progmodes/idlw-shell.el (idlwave-shell-make-temp-file) (idlwave-shell-mouse-examine) (idlwave-xemacs-hack-mouse-track, idlwave-display-buffer) (idlwave-shell-debug-line-map) (idlwave-shell-make-new-bp-overlay, idlwave-shell-mode-map): Remove XEmacs support. 2019-06-12 Lars Ingebrigtsen Remove XEmacs support from ido.el * lisp/ido.el (ido-active, ido-completion-help) (ido-minibuffer-setup): Remove XEmacs support. 2019-06-12 Lars Ingebrigtsen Remove compat code for XEmacs and pre-Emacs 20 Emacs in pcomplete.el * lisp/pcomplete.el (pcomplete-event-matches-key-specifier-p) (pcomplete-read-event, pcomplete-show-completions): Remove XEmacs support and mark now-trivial defaliases as obsolete. 2019-06-12 Lars Ingebrigtsen Remove XEmacs support from dig.el * lisp/net/dig.el (dig-mode): Remove XEmacs support. 2019-06-12 Lars Ingebrigtsen Remove XEmacs support from goto-addr.el * lisp/net/goto-addr.el (goto-address-highlight-keymap): Remove XEmacs support. 2019-06-12 Lars Ingebrigtsen Remove XEmacs support from dns.el * lisp/net/dns.el (dns-read-string-name, dns-write, dns-read) (dns-make-network-process, dns-query): Remove XEmacs support. 2019-06-12 Lars Ingebrigtsen Remove XEmacs compat code from tempo.el * lisp/tempo.el (tempo-insert-template): Remove XEmacs compat code. 2019-06-12 Alan Mackenzie CC Mode: Add a workaround for syntax-ppss ignoring syntax-table prop changes * lisp/progmodes/cc-engine.el (c-truncate-lit-pos-cache): Maintain the new variable c-syntax-table-hwm after buffer changes. * lisp/progmodes/cc-mode.el (c-syntax-table-hwm): New variable. (c-before-change): Set c-syntax-table-hwm to "infinity". (c-after-change): Call syntax-ppss-flush-cache, just before a font locking is due to take place. 2019-06-12 Lars Ingebrigtsen Restore image scaling support when there's no native image scaling * lisp/net/shr.el (shr--image-type): New function. (shr-rescale-image): Use it to allow image scaling on Emacsen with ImageMagick support that does not have native image scaling support. 2019-06-12 Lars Ingebrigtsen Rewrite the kmacro register function to avoid using obsolete functions * lisp/kmacro.el (kmacro-register): New struct to replace the general registerv struct. (register-val-jump-to, register-val-describe) (register-val-insert): New methods to implement the register interface. (kmacro-to-register): Use the kmacro-register struct. 2019-06-12 Lars Ingebrigtsen (beginning-of-defun-raw): Suppress warning about syntax-begin-function * lisp/emacs-lisp/lisp.el (beginning-of-defun-raw): font-lock-compile-keywords also suppresses warnings about the obsolete syntax-begin-function variable, so suppress the only other use not in syntax.el. 2019-06-12 Lars Ingebrigtsen Suppress warning about pi not having a prefix * lisp/emacs-lisp/float-sup.el (pi): Suppress warning about this obsolete variable not having a prefix. 2019-06-12 Richard Copley * doc/lispref/text.texi (Base 64): Fix typos. 2019-06-12 Lars Ingebrigtsen Suppress warning about obsolete function custom-show * lisp/cus-edit.el (custom-variable-value-create): Suppress warning about obsolete function custom-show. The widget this supports has been obsolete since Emacs 24, but we should perhaps be very conservative about removing widget types, so suppress the warning instead of removing the widget type. 2019-06-12 Lars Ingebrigtsen Suppress warning in display-completion-list about itself * lisp/minibuffer.el (display-completion-list): `display-completion-list' calls itself with the old, obsolete callargs, so suppress this warning. 2019-06-12 Lars Ingebrigtsen Suppress interactive-only warnings in epa*.el * lisp/epa-mail.el (epa-mail-decrypt, epa-mail-verify) (epa-mail-sign, epa-mail-encrypt): Ditto. * lisp/epa.el (epa-verify-cleartext-in-region): Suppress warnings about calling interactive-only functions, because these are interactive-only thin wrappers around those functions. 2019-06-12 Lars Ingebrigtsen ehelp.el: Suppress warning * lisp/ehelp.el (electric-help-execute-extended): Suppress warning about `execute-extended-command' only being interactive, because we're still using it interactively, but via a wrapper. 2019-06-12 Lars Ingebrigtsen Add the new macro with-suppressed-warnings * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): New macro. * doc/lispref/compile.texi (Compiler Errors): Document with-suppressed-warnings and deemphasise with-no-warnings slightly. * lisp/emacs-lisp/bytecomp.el (byte-compile--suppressed-warnings): New internal variable. (byte-compile-warning-enabled-p): Heed byte-compile--suppressed-warnings, bound via with-suppressed-warnings. (byte-compile-initial-macro-environment): Provide a macro expansion of with-suppressed-warnings. (byte-compile-file-form-with-suppressed-warnings): New byte hunk handler for the suppressed symbol machinery. (byte-compile-suppressed-warnings): Ditto for the byteop. (byte-compile-file-form-defmumble): Ditto. (byte-compile-form, byte-compile-normal-call) (byte-compile-normal-call, byte-compile-variable-ref) (byte-compile-set-default, byte-compile-variable-set) (byte-compile-function-form, byte-compile-set-default) (byte-compile-warn-obsolete, byte-compile--declare-var): Pass the symbol being warned in to byte-compile-warning-enabled-p. * test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): New function. (bytecomp-test--with-suppressed-warnings): Tests. 2019-06-11 Roland Winkler Fix to previous commit * lisp/find-dired.el (find-dired-sentinel): Check whether find-dired-refine-function is non-nil. 2019-06-11 Roland Winkler Allow refining the *Find* buffer of find-dired. (Bug#29513) * lisp/find-dired.el (find-dired-refine-function): New user variable. (find-dired-sentinel): Use it. Simplify. (find-dired-sort-by-filename): New function. 2019-06-11 Mattias Engdegård Keep auto-revert-mode working when changing buffer file name (bug#36159) * lisp/autorevert.el (after-set-visited-file-name-hook): Add unconditionally. (global-auto-revert-mode): Don't use `after-set-visited-file-name-hook' here. (auto-revert-set-visited-file-name): Rename from `auto-revert--global-set-visited-file-name' and generalise. * test/lisp/autorevert-tests.el (auto-revert-test06-write-file): New. 2019-06-11 Michael Albinus Minor fixes on tramp-tests.el for w32 * test/lisp/net/tramp-tests.el (tramp-test32-shell-command): Ignore absence of tput. (tramp-test43-asynchronous-requests): Don't start watchdog on w32. 2019-06-11 Glenn Morris Merge from origin/emacs-26 5ca093d (origin/emacs-26) Fix doc of 'display-buffer-in-previous-wind... add2cac lisp/*.el: Minor docstring fixes 2019-06-11 Glenn Morris Merge from origin/emacs-26 758e9a8 Revert "Don't mark main_thread (Bug#36155)" 1877b7b Don't mark main_thread (Bug#36155) 4904fb3 More quotation fixes (Bug#35885) 4cc4b5d ; * src/keyboard.c (tool_bar_items): Fix a typo. (Bug#36143) b58ecaf Minor copyedits in efaq-w32 48422af Tiny improvement of documentation of major mode conventions 25d44d2 * nt/addpm.c (main): Fix buffer overflow 2019-06-11 Pip Cet Fix list-processes typo with thread-name * lisp/simple.el (list-processes--refresh): Don’t assume thread-name succeeds (Bug#36163). 2019-06-11 Eli Zaretskii Fix shaping of Arabic test when the region is extended * src/xdisp.c (compute_stop_pos): Set the limit for searching for changes in text properties such that the limit is never in the middle of composable text. (Bug#28312) 2019-06-11 Philipp Stephani Add missing indentation declaration to a few macros. * lisp/window.el (with-temp-buffer-window) (with-current-buffer-window, with-displayed-buffer-window): Add missing indentation declaration 2019-06-11 Pip Cet Fix mouse cursor movement in 'select-frame-set-input-focus' (Bug#36165) * lisp/frame.el (select-frame-set-input-focus): With 'mouse-autoselect-window' use 'set-mouse-pixel-position' to avoid selecting another window manager window (Bug#36165). 2019-06-10 Noam Postavsky Don't keep warning about unescaped literals (Bug#36068) * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Restore lost let-binding of lread--unescaped-character-literals, so that unescaped literals warning will only apply to the form just read. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--unescaped-char-literals): Expand test to check that we don't keep warning about old unescaped literals. 2019-06-10 Michael Albinus Make tramp-test43-asynchronous-requests working, again * test/lisp/net/tramp-tests.el (tramp-list-tramp-buffers): Declare `tramp-list-tramp-buffers'. (tramp--test-ignore-make-symbolic-link-error) (tramp--test-ignore-add-name-to-file-error): Improve declaration. (tramp--test-with-proper-process-name-and-buffer): New macro. (tramp-test43-asynchronous-requests): Use the macro for timer, process filter and process sentinel. Comment the remote file operation in the timer. Remove further async events. Accept output from all processes. 2019-06-10 Michael Albinus Fix quoting problem in Tramp on w32 systems * lisp/net/tramp-adb.el (tramp-adb-connection-local-default-profile): * lisp/net/tramp-integration.el (tramp-connection-local-default-profile): Revert patch from 2019-05-24. It is fixed differently. * lisp/net/tramp.el (tramp-encoding-shell): (tramp-encoding-command-switch) (tramp-encoding-command-interactive, ) (tramp-unquote-shell-quote-argument): Suppress `shell-file-name'. (tramp-set-file-uid-gid): * lisp/net/tramp-sh.el (tramp-find-inline-compress) (tramp-make-copy-program-file-name): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory): Use `tramp-unquote-shell-quote-argument'. 2019-06-10 Mattias Engdegård Fix copy-paste error in autorevert-test * test/lisp/autorevert-tests.el: Use correct name to define a remote test. 2019-06-09 Juanma Barranquero * src/editfns.c (Fngettext): Fix typos in docstring. 2019-06-09 YAMAMOTO Mitsuharu Avoid empty menu bar on Xaw with cairo * lwlib/lwlib-utils.c (crxft_font_open_name) [USE_CAIRO]: Return NULL if font extents are bogus. 2019-06-09 YAMAMOTO Mitsuharu Document exporting/printing text with X core fonts to outline images on cairo * src/xfns.c (Fx_export_frames) [USE_CAIRO]: (Fx_print_frames_dialog) [USE_CAIRO && USE_GTK]: Add notes on x font backend. 2019-06-09 Dmitry Gutov Omit the misplaced and unnecessary shyness qualifier * lisp/progmodes/ruby-mode.el (ruby-find-library-file): Omit the misplaced and unnecessary shyness qualifier. Suggested by Mattias Engdegård . 2019-06-09 Dmitry Gutov Unbreak saving xref--original-window, etc * lisp/progmodes/xref.el (xref--show-xref-buffer) (xref--show-defs-buffer-at-bottom): Move major mode calls earlier. So that local variable values are not lost. 2019-06-09 Stefan Kangas Add tests for mail/uudecode.el * lisp/mail/uudecode.el: Remove redundant :group usage. * test/lisp/mail/uudecode-resources/uudecoded.txt, test/lisp/mail/uudecode-resources/uuencoded.txt, test/lisp/mail/uudecode-tests.el: New files. 2019-06-09 Paul Eggert Fig grammar of count-lines-page * lisp/textmodes/page.el (count-lines-page): Say "Page has 1 line", not "Page has 1 lines" (Bug#35981). 2019-06-09 Stefan Kangas Make bookmark-old-default-file variable obsolete * lisp/bookmark.el (bookmark-old-default-file): Redefine as obsolete variable alias for 'bookmark-default-file'. (bookmark-maybe-load-default-file): Don't try to rename file 'bookmark-old-default-file' (~/.emacs-bkmrks) to new name (Bug#35940). 2019-06-09 Stefan Kangas Make bookmark-maybe-message obsolete (Bug#35918) * lisp/bookmark.el (bookmark-maybe-message): Redefine as obsolete function alias for 'message'. (bookmark-write-file): Use a progress reporter. (bookmark-load-file): Use a progress reporter. 2019-06-09 Stefan Kangas Make `bookmark-file' variable obsolete * lisp/bookmark.el (bookmark-file): Redefine as obsolete variable alias for `bookmark-default-file'. (Bug#35917) 2019-06-09 Glenn Morris * make-dist: Doc fix for --help re --snapshot (since 201612 change). 2019-06-09 Stefan Kangas Remove interactive spec from bookmark-set-internal (bug#36121) * lisp/bookmark.el (bookmark-set-internal): Remove interactive spec. 2019-06-09 Stefan Kangas Pacify compiler in paragraphs.el after lexical-binding * lisp/textmodes/paragraphs.el: Pacify byte compiler. 2019-06-09 Stefan Kangas Use lexical-binding in password-cache.el and add tests * lisp/password-cache.el: Use lexical-binding. * test/lisp/password-cache-tests.el: New file. 2019-06-09 Paul Eggert * src/fns.c (cmpfn_eql): Simplify. 2019-06-09 Alex Branham Use lexical binding for ediff * lisp/vc/ediff-diff.el: * lisp/vc/ediff-help.el: * lisp/vc/ediff-hook.el: * lisp/vc/ediff-init.el: * lisp/vc/ediff-merg.el: * lisp/vc/ediff-vers.el: * lisp/vc/ediff-wind.el: * lisp/vc/ediff-mult.el: * lisp/vc/ediff-ptch.el: * lisp/vc/ediff.el: Use lexical binding. (ediff-version): Increase. (ediff-date): Remove. 2019-06-09 Dmitry Gutov Rename xref--pop-to-location to xref-pop-to-location * lisp/progmodes/xref.el (xref-pop-to-location): Rename from xref-pop-to-location. So that third-party xref-show-definitions-function implementations can use it safely (bug#36144). Update all callers. 2019-06-09 Dmitry Gutov Add a built-in alternative for xref-show-definitions-function * lisp/progmodes/xref.el (xref--transient-buffer-mode-map): New variable. (xref--transient-buffer-mode): New major mode. (xref--button-map): Remove the RET binding (it was unnecessary in the first place). (xref--show-common-initialize): Extract from xref--show-xref-buffer. (xref--show-defs-buffer-at-bottom): New function. 2019-06-09 Stefan Kangas Fix TODO to convert defvar with leading '*' to defcustom * etc/TODO: Remove done TODO to remove '*' from defvar. * doc/misc/gnus.texi: Remove leading '*' from defvar example. * lisp/kermit.el (kermit-esc-char): Convert to defcustom. * lisp/desktop.el (desktop-header): * lisp/obsolete/cc-compat.el (c-indent-level) (c-brace-imaginary-offset, c-brace-offset, c-argdecl-indent) (c-label-offset, c-continued-statement-offset) (c-continued-brace-offset): Remove leading '*' from docstring. * lisp/progmodes/dcl-mode.el: Remove leading '*' from docstring in comment. * test/manual/cedet/tests/test.el: Add comment asking if example of defvar with leading '*' should be removed. (Bug#35994) (The previous commit is also for the same bug.) 2019-06-09 Stefan Kangas Fix TODO to remove leading '*' from defcustom * etc/TODO: Remove done TODO to remove leading '*' from defcustom doc-strings. * lisp/ibuffer.el (ibuffer-inline-columns): Remove leading '*' from doc-string. 2019-06-08 Stefan Kangas Mark define-widget-keywords as obsolete * lisp/widget.el (define-widget-keywords): Mark as obsolete. (Bug#36065) 2019-06-08 Stefan Kangas Use lexical-binding in underline.el and add tests * lisp/textmodes/underline.el: Use lexical-binding. * test/lisp/textmodes/underline-tests.el: New file. (Bug#36063) 2019-06-08 Stefan Kangas Checkdoc fixes in lisp/bookmark.el * lisp/bookmark.el (bookmark-bmenu-inline-header-height) (bookmark-bmenu-marks-width, bookmark-map, bookmark-quit-flag) (bookmark-name-from-full-record, bookmark-set-internal) (bookmark-insert-annotation, bookmark--jump-via) (bookmark-bmenu-set-header, bookmark-show-annotation) (bookmark-bmenu-other-window-with-mouse, bookmark-bmenu-relocate): Checkdoc docstring fixes. (Bug#35916) 2019-06-08 Paul Eggert Fix int overflow bug in ‘equal’ * src/fns.c (internal_equal): Fix bug when vector lengths exceed INT_MAX. 2019-06-08 Paul Eggert Tune base64 decoding This improves performance of base64-decode-region by about 7.5% on my platform, and gets rid of some macros. * src/fns.c (IS_ASCII, IS_BASE64, IS_BASE64_IGNORABLE) (READ_QUADRUPLET_BYTE): Remove. (base64_value_to_char, base64_char_to_value): Now an array of two arrays. All uses changed. (base64url_value_to_char, base64url_char_to_value): Remove. All uses changed to the other array. (base64_char_to_value): Entries are now of type signed char, not short, since we can assume C99. Use C99 initializers; this is clearer and caters to the (theoretical) possibility of systems that do not use ASCII or do not have 8-bit bytes. Allow any index in the range 0..UCHAR_MAX instead of limiting it to 0..127, so that uses need not check for in-range indexes. Also record padding chars. All uses changed. (base64_decode_1): Always store number of chars in *NCHARS_RETURN, for simplicity. All callers changed. Speed up the byte-fetching. 2019-06-08 Paul Eggert Fix out-of-source make-dist problems Problem with jisx2131-filter reported by Phillip Lord in: https://lists.gnu.org/r/emacs-devel/2019-06/msg00147.html * admin/charsets/Makefile.in (SED_SCRIPT): Put it in $(srcdir), which is not necessarily the working directory. ($(SED_SCRIPT)): Rename from jisx2131-filter. All uses changed. (clean): Do not remove SED_SCRIPT. (extraclean): Remove it here instead. * make-dist (possibly_non_vc_files): Remove src/emacs-module.h. Although it is portable and could be distributed in the tarball, it's too much hassle to do that, so let each builder make it. 2019-06-08 Bernhard Rotter Fix path for current directory in eshell on MS-Windows On MS-Windows, PATH implicitly includes the current directory. Do it right for Eshell by adding "./" instead of ".", to avoid finding .FOO instead of ./FOO. * lisp/eshell/esh-util.el (eshell-get-path): New function. * lisp/eshell/em-cmpl.el (eshell-complete-commands-list): * lisp/eshell/esh-ext.el (eshell-search-path): Use eshell-get-path. 2019-06-08 Eli Zaretskii Minor fixes for the last commits * src/fns.c (Fbase64url_encode_region) (Fbase64url_encode_string, Fbase64_decode_region) (Fbase64_decode_string): Fix doc strings. (base64_decode_1): Minor stylistic code changes. * doc/lispref/text.texi (Base 64): Fix typos and improve wording of the last committed text. 2019-06-08 Pierre Téchoueyres Add support for base64url variant of base-64 encoding/decoding Implement the RFC4648 variant of base64 encoding used by URLs. * doc/lispref/text.texi (base64url-encode-region, base64url-encode-string): Document new functions. (base64-decode-region, base64-decode-string): Document new optional parameter 'base64url' used to use url variant when decoding data. * src/fns.c (base64url-encode-region, base64url-encode-region): New functions to manage url variant. (base64-decode-region, base64-decode-string): Add optional parameter to indicate use of url-variant. (base64_encode_region_1, base64_encode_string_1): Internal functions with extracted code from 'base64_encode_region' and 'base64_encode_string' and optional parameters to manage padding and url variant. (base64-encode-region, base64-encode-string) : Use base64_encode_region_1 and base64_encode_string_1. (base64-encode-1): Add parameters to manage padding and url variant. (base64-decode-1): Add parameter to manage url variant. * test/src/fns-tests.el (fns-tests--with-region): New helper macro to test region variant of base64 encode / decode functions. (fns-tests--string-repeat): Helper function used in base64 tests. (fns-tests-base64-encode-region, fns-tests-base64-encode-string): Tests for standard base64 function. (fns-test-base64url-encode-region, fns-test-base64url-encode-string): Tests for url variant. (fns-tests-base64-decode-string): Tests for decoding part. 2019-06-07 YAMAMOTO Mitsuharu Support X core font driver on cairo (Bug#28236) * configure.ac (HAVE_X_WINDOWS): Add xfont.o to FONT_OBJ if HAVE_CAIRO. * doc/lispref/frames.texi (Font and Color Parameters): Mention X core font driver with Cairo drawing. * src/font.c (syms_of_font) [HAVE_X_WINDOWS && USE_CAIRO]: Call syms_of_xfont. * src/xfns.c (x_create_tip_frame) [USE_CAIRO]: Register xfont_driver. * src/xterm.c (x_cr_gc_clip) [USE_CAIRO]: New function extracted from x_begin_cr_clip. (x_begin_cr_clip) [USE_CAIRO]: Use it. (xlib_surface_key, saved_drawable_key) [USE_CAIRO]: New variables. (x_cr_destroy_xlib_surface, x_try_cr_xlib_drawable) (x_end_cr_xlib_drawable) [USE_CAIRO]: New functions. (x_draw_composite_glyph_string_foreground) (x_draw_glyph_string_foreground) [USE_CAIRO]: Get Xlib surface when drawing text with X core fonts into bitmap surfaces. Add fallback code for drawing into outline surfaces. 2019-06-07 YAMAMOTO Mitsuharu Implement native image rotation and cropping on cairo * src/dispextern.h (struct image) [USE_CAIRO]: * src/image.c (free_image, image_clear_image_1) (image_set_crop, image_set_size, image_set_rotation) (image_create_x_image_and_pixmap) [USE_CAIRO]: #ifdef out HAVE_XRENDER part. * src/image.c (cr_create_surface_from_pix_containers) [USE_CAIRO]: Rename from cr_create_surface_from_pix_containers. Change arguments to pair of Emacs_Pix_Container:s. Move block_input and unblock_input to caller. (cr_put_image_to_cr_data) [USE_CAIRO]: New function. (prepare_image_for_display) [USE_CAIRO]: Use it. (image_set_transform) [USE_CAIRO]: Create dummy solid color pattern equipped with transformation matrix and set it to img->cr_data. * src/xterm.c (fringe_bmp) [USE_CAIRO]: Change type to cairo_pattern_t **. (x_cr_define_fringe_bitmap, x_cr_destroy_fringe_bitmap) [USE_CAIRO]: Create or destroy cairo pattern. (x_cr_draw_image) [USE_CAIRO]: Remove arguments image_width and image_height. Change type of image to cairo pattern. All callers changed. * src/gtkutil.c (xg_get_image_for_pixmap) [USE_CAIRO]: Get cairo surface from img->cr_data, which is of cairo pattern now. 2019-06-07 Thomas Fitzsimmons Make icalendar-import-buffer not show diary file buffer * lisp/calendar/diary-lib.el (diary-make-entry): Add omit-trailing-space parameter. Add do-not-show parameter to allow not showing diary file buffer. * lisp/calendar/icalendar.el (icalendar--add-diary-entry): Remove workaround to omit trailing space in diary entry. Have diary-make-entry not display the diary file buffer. (Bug#35645) 2019-06-07 Paul Eggert Fix commentary about fixnums and hashes. 2019-06-07 Paul Eggert Fix minor ssize_t / ptrdiff_t confusion * src/fileio.c (Fcopy_file): This limit is because of ssize_t, so use TYPE_MAXIMUM (ssize_t) not PTRDIFF_MAX. 2019-06-07 Paul Eggert Use machine pointer width for face hashes * src/dispextern.h (struct face): * src/xfaces.c (hash_string_case_insensitive, lface_hash) (cache_face, lookup_face): Use uintptr_t for face hashes instead of discarding the upper pointer bits on 64-bit machines. 2019-06-07 Stefan Monnier * lisp/gnus: Further reduce assumptions about gnus-data format * lisp/gnus/gnus-registry.el (gnus-registry-fetch-message-id-fast) (gnus-registry-fetch-simplified-message-subject-fast) (gnus-registry-fetch-sender-fast, gnus-registry-fetch-recipients-fast) (gnus-registry--set/remove-mark): Don't hardcode assoc for gnus-data-find-in. * lisp/gnus/gnus-sum.el (gnus-data-update-list): Don't hardcode `nth 2` for gnus-data-pos. (gnus-summary-insert-old-articles, gnus-summary-insert-new-articles) (gnus-summary-first-article-p): Don't hardcode `car` for `gnus-data-number`. (gnus-summary-move-article, gnus-summary-expire-articles) (gnus-summary-delete-article): Don't hardcode assoc for gnus-data-find-in. * lisp/gnus/spam.el (spam-fetch-article-header): Don't hardcode `nth 3` for gnus-data-header. 2019-06-07 Eli Zaretskii Support text shaping with HarfBuzz The code to support HarfBuzz was written by these individuals: Khaled Hosny YAMAMOTO Mitsuharu Eli Zaretskii * src/xftfont.c (xftfont_list): Call ftfont_list2. (xftfont_match): Call ftfont_match2. (xftfont_open) [HAVE_HARFBUZZ]: Set the font driver to xfthbfont_driver as required. Reset xftfont_info->hb_font to NULL. (xftfont_close) [HAVE_HARFBUZZ]: Dispose of the hb_font object. (xftfont_shape): Accept an additional argument DIRECTION and pass it to ftfont_shape. (xfthbfont_list, xfthbfont_match, xfthbfont_begin_hb_font) (xfthbfont_end_hb_font) [HAVE_HARFBUZZ]: New functions. (syms_of_xftfont): New DEFSYM 'xfthb'. (syms_of_xftfont_for_pdumper) [HAVE_HARFBUZZ]: Initialize xfthbfont_driver. * src/xfns.c (Fx_create_frame, x_create_tip_frame) [HAVE_HARFBUZZ]: Register the HarfBuzz font driver. * src/w32uniscribe.c (bswap_32) [HAVE_HARFBUZZ]: Define to use the builtin for GCC 4.3.9 and newer; else use byteswap.h from Gnulib. (struct uniscribe_font_info): New member 'scale'. The member 'cache' is now used both by Uniscribe and HarfBuzz backends. (uniscribe_open): Set the font backend as required by the font entity's font_type field. (uniscribe_close) [HAVE_HARFBUZZ]: Dispose of the hb_font object. (uniscribe_shape): Accept an additional argument DIRECTION. (w32hb_list, w32hb_match, free_cb, w32hb_get_font_table) (w32hb_get_font, w32hb_encode_char, w32hb_begin_font) (w32hb_get_variation_glyphs, load_harfbuzz_funcs) [HAVE_HARFBUZZ]: New functions. (syms_of_w32uniscribe_for_pdumper): Initialize harfbuzz_font_driver if loading the requisite functions from the HarfBuzz DLL succeeded. * src/w32font.c (syms_of_w32font): New DEFSYM 'harfbuzz'. * src/w32fns.c (Fx_create_frame, w32_create_tip_frame): Determine whether we should register the HarfBuzz backend, or Uniscribe backend, or both for the new frame. * src/w32common.h (hbfont_init_w32_funcs) [HAVE_HARFBUZZ]: Add prototype. * src/macfont.m (lgstring_direction): New enumeration. (mac_font_shape_1, mac_screen_font_shape, macfont_shape): Accept an additional argument DIRECTION; all callers changed. * src/lisp.h (get_unicode_property): Add prototype. * src/hbfont.c: New file. * src/ftxfont.c (ftxfont_list): Call ftfont_list2. (ftxfont_match): Call ftfont_match2. * src/ftfont.h [HAVE_HARFBUZZ]: Include hb.h and hb-ft.h. (struct font_info): New member hb_font. * src/ftfont.c (ftfont_list2, ftfont_list_family): New functions. (ftfont_open) [HAVE_HARFBUZZ]: Reset ftfont_info->hb_font to NULL. Set the font backend to fthbfont_driver when required. (ftfont_close) [HAVE_HARFBUZZ]: Dispose of ftfont_info->hb_font. (ftfont_glyph_metrics): New function. (ftfont_text_extents): Call ftfont_glyph_metrics instead of FT_Load_Glyph. (ftfont_shape): Accept an additional argument DIRECTION. (ftfont_variation_glyphs) [!HAVE_OTF_GET_VARIATION_GLYPHS]: Support for variation glyphs without FLT. (fthbfont_begin_hb_font) [HAVE_HARFBUZZ]: New function. (syms_of_ftfont): New DEFSYM freetypehb. (syms_of_ftfont_for_pdumper): Initialize fthbfont_driver. * src/ftcrfont.c (ftcrfont_list): Call ftfont_list2. (ftcrfont_match): Call ftfont_match2. (ftcrfont_open) [HAVE_HARFBUZZ]: Set the font backend to ftcrhbfont_driver as required. Reset ftcrfont_info->hb_font to NULL. (ftcrfont_close) [HAVE_HARFBUZZ]: Discard of ftcrfont_info->hb_font. (ftcrfont_shape): Pass DIRECTION to ftfont_shape. (ftcrhbfont_list, ftcrhbfont_match) (ftcrhbfont_begin_hb_font, ftcrhbfont_end_hb_font) [HAVE_HARFBUZZ]: New functions. (syms_of_ftcrfont): New DEFSYM ftcrhb. (syms_of_ftcrfont_for_pdumper): Initialize ftcrhbfont_driver. * src/font.h [HAVE_HARFBUZZ]: Include hb.h. (struct font_driver): Update comments and function signatures to reflect the new argument DIRECTION accepted by the 'shape' method. New methods 'begin_hb_font' and 'end_hb_font'. (hbfont_shape, hbfont_combining_capability) (fthbfont_begin_hb_font) [HAVE_HARFBUZZ]: Add prototypes. * src/font.c (Ffont_shape_gstring): Accept an additional argument DIRECTION, and pass it to the font driver's 'shape' method. (Ffont_variation_glyphs): Doc fix. (syms_of_font): New DEFSYMS L2R and R2L. * src/composite.h (composition_reseat_it): Adjust prototype. * src/composite.c (autocmp_chars): Accept additional argument DIRECTION, and pass it to auto-composition-function. All callers changed. (composition_reseat_it): Accept additional argument BIDI_LEVEL, and use it to determine the DIRECTION argument to be passed to autocmp_chars. All callers changed. (syms_of_composite) : Improve the doc string; document the meaning of the new argument DIRECTION. * src/chartab.c (get_unicode_property): New function, refactored from the body of get-unicode-property-internal. (Fget_unicode_property_internal): Call get_unicode_property after validating the input arguments. * src/Makefile.in (HARFBUZZ_CFLAGS, HARFBUZZ_LIBS): New macros. (EMACS_CFLAGS): Use HARFBUZZ_CFLAGS. (SOME_MACHINE_OBJECTS): Add hbfont.o (LIBES): Add HARFBUZZ_LIBS. * lisp/language/tv-util.el (tai-viet-composition-function): * lisp/language/thai-util.el (thai-composition-function): * lisp/language/misc-lang.el (arabic-shape-gstring): * lisp/language/lao-util.el (lao-composition-function): * lisp/language/japanese.el (compose-gstring-for-variation-glyph): * lisp/language/hebrew.el (hebrew-shape-gstring): * lisp/language/ethio-util.el (ethio-composition-function): * lisp/composite.el (compose-chars-after) (compose-gstring-for-graphic) (compose-gstring-for-dotted-circle) (compose-gstring-for-terminal, auto-compose-chars): All composition functions that call shapers now accept an additional argument DIRECTION, either L2R or R2L. * etc/NEWS: Document the HarfBuzz support. * etc/HELLO: Add diacritics to Hebrew greetings. * doc/lispref/frames.texi (Font and Color Parameters): * doc/emacs/msdos.texi (Windows Fonts): Describe the 'harfbuzz' font backend on MS-Windows and how it is preferred to 'uniscribe'. * configure.ac (--wthout-harfbuzz): New option. (HAVE_HARFBUZZ): New tests. (FONT_OBJ) [HAVE_HARFBUZZ]: Add hbfont.o (emacs_config_features): Add HARFBUZZ. * admin/nt/dist-build/build-dep-zips.py: Add HarfBuzz dependency. 2019-06-07 Tak Kunihiro Make mouse-wheel-scroll-amount consistent among platforms * lisp/term/ns-win.el (mouse-wheel-scroll-amount): Do not put any values on mouse-wheel-scroll-amount on ns. 2019-06-07 Glenn Morris Merge from origin/emacs-26 9254885 (origin/emacs-26) Resurrect display-line-number-mode in clien... aecbbd5 * src/fns.c (Fmapconcat): Doc fix. (Bug#35710) 8e5fc38 Fix typo ee21b40 * lisp/term/w32-win.el ([noname]): Bind to 'ignore'. (Bug#36... f68b33f Fix styling of Unicode codepoints in manuals ff7ec6f Fix a few uses of quotes in user manual b67042b More minor copyedits in the Emacs manual 9734b5c Fix minor issues in the Emacs manual c153250 Try to improve text on atomic windows in Elisp manual fb314ba Don't recommend insert-before-markers in process filters 2019-06-07 Glenn Morris Merge from origin/emacs-26 2860285 Allow macros autoloaded as functions during bytecomp (Bug#36022) 2019-06-07 Eli Zaretskii Fix failures of term-tests on MS-Widows * test/lisp/term-tests.el (term-simple-lines) (term-carriage-return, term-line-wrap, term-cursor-movement) (term-scrolling-region, term-set-directory) (term-line-wrapping-then-motion, term-to-margin): Skip tests on MS-Windows and MS-DOS. 2019-06-07 John Shahid Consider line spacing and font height when deriving proc window size * lisp/window.el (window-adjust-process-window-size): Use window-screen-lines instead of window-body-height. * lisp/term.el (term-mode): Use window-screen-lines to set the initial window height. 2019-06-07 YAMAMOTO Mitsuharu Fix image_set_crop yet again * src/image.c (image_set_crop) [HAVE_NATIVE_TRANSFORMS]: Don't call compute_image_size, as it is already called from image_set_size. (image_set_size, image_set_crop) [HAVE_NATIVE_TRANSFORMS]: Use harmless matrix transformation code also for USE_CAIRO and HAVE_NTGUI cases, though image_set_transform is not yet implemented on them. 2019-06-07 Eli Zaretskii Avoid compiler warning in copy-file-range.c on MS-Windows * nt/mingw-cfg.site (gl_cv_func_copy_file_range): Set to "yes", to avoid compiling lib/copy-file-range.c on MS-Windows. 2019-06-07 Paul Eggert Fix recently-introduced image_set_crop typo * src/image.c (image_set_crop) [!HAVE_NATIVE_TRANSFORMS]: Don’t call compute_image_size, as it does not exist and its result is not needed. 2019-06-07 Paul Eggert Use copy_file_range to copy files The copy_file_range syscall (introduced in Linux kernel version 4.5) can copy files more efficiently via server-side copy etc. * admin/merge-gnulib (GNULIB_MODULES): Add copy-file-range. * lib/copy-file-range.c, m4/copy-file-range.m4: New files, copied from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * src/fileio.c (Fcopy_file): Try copy_file_range first, falling back on read+write only if copy_file_range failed or if the input is empty and so could be a /proc file. 2019-06-07 Paul Eggert Update from Gnulib This incorporates: 2019-06-04 copy-file-range: new module 2019-05-28 binaty-io: O_BINARY on consoles no longer fails * doc/misc/texinfo.tex, lib/binary-io.c, lib/binary-io.h: * lib/unistd.in.h, m4/unistd_h.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2019-06-06 Noam Postavsky Add "pin" to password-word-equivalents (Bug#35523) * lisp/international/mule-conf.el (password-word-equivalents): Add "pin". * test/lisp/comint-tests.el (comint-testsuite-password-strings): Add test case. 2019-06-06 Paul Eggert Fix overflow issues in image rotation Also, do some refactoring to simplify code. * src/dispextern.h (INIT_MATRIX, COPY_MATRIX, MULT_MATRICES): Remove. * src/image.c (matrix3x3): New type, replacing all uses of 3x3 double. (matrix3x3_copy, matrix3x3_mult): New functions, replacing COPY_MATRIX, MULT_MATRICES. Replace INIT_MATRIX by C initializers. (image_set_rotation): Use Fmod to avoid undefined behavior on double-to-int conversion and to reduce bignum rotations correctly. (image_set_crop): Finish up previous correction, by not re-setting width and height if compute_image_size has set them. Prefer shifting right by 1 to dividing by 2 if either will do. 2019-06-06 Eli Zaretskii Fix redisplay glitches with RTL composed text * src/xdisp.c (init_to_row_end): Fail if the first visible position on the line following ROW is bidi-reordered and could be composed. (Bug#35811) 2019-06-06 Oleh Krehel lisp/gnus/message.el (message--send-mail-maybe-partially): Extract lisp/gnus/message.el (message--check-continuation-headers): Extract lisp/gnus/message.el (message--fold-long-headers): Add docstring 2019-06-06 Mark A. Hershberger Restore height and with from that were accidentally removed See 610fb73ab6d7a22b722f523d6ebc4aa8fa1db7c9 USE_CARIO needs these. 2019-06-05 Steve Scott (tiny change) Check rcirc-server for auto authentication (Bug#10162) Since the hostname returned by irc.freenode.net can be something other than irc.freenode.net, e.g. niven.freenode.net, the entries for rcirc-authinfo and rcirc-server-alist will not match. * lisp/net/rcirc.el (rcirc-handler-001): Check rcirc-server (the hostname connected to) instead of rcirc-server-name (the hostname returned), this corresponds with what rcirc-authenticate does. Moreover, if rcirc-auto-authenticate-flag is set, check the corresponding rcirc-authinfo, regardless of whether the rcirc-authenticate-before-join must happen. 2019-06-05 Noam Postavsky Keep nxml prolog updated via syntax-propertize Instead of using after-change-functions. Also, stop consulting nxml-prolog-regions during syntax-propertize. It turns out the problems fixed by using prolog information are actually due to using the wrong syntax table during propertizing. This was fixed in 2019-06-04 "* lisp/emacs-lisp/syntax.el: Use syntax-ppss-table for syntax-propertize." so consulting the prolog data is no longer needed. * lisp/nxml/nxml-rap.el (nxml-maybe-rescan-prolog): Remove. * lisp/nxml/nxml-mode.el (nxml-mode): Stop using it. (nxml-syntax-propertize): Don't use nxml-prolog-regions, just call nxml-scan-prolog if needed before delegating to sgml-syntax-propertize. * test/lisp/nxml/nxml-mode-tests.el (nxml-mode-edit-prolog): New test. 2019-06-05 Alan Third Add native image rotation and cropping * lisp/image.el (image--get-imagemagick-and-warn): Only fallback to ImageMagick if native transforms aren't available. * src/dispextern.h (INIT_MATRIX, COPY_MATRIX, MULT_MATRICES): New macros for matrix manipulation. (HAVE_NATIVE_SCALING, HAVE_NATIVE_TRANSFORMS): Rename and change all relevant locations. * src/image.c (x_set_image_rotation): (x_set_transform): New functions. (x_set_image_size): Use transform matrix for resizing under X and NS. (x_set_image_crop): New function. (lookup_image): Use the new transform functions. (Fimage_scaling_p, Fimage_transforms_p): Rename and update all callers. * src/nsimage.m (ns_load_image): Remove rotation code. (ns_image_set_transform): New function. ([EmacsImage dealloc]): Release the saved transform. ([EmacsImage rotate:]): Remove unneeded method. ([EmacsImage setTransform:]): New method. * src/nsterm.h (EmacsImage): Add transform property and update method definitions. * src/nsterm.m (ns_dumpglyphs_image): Use the transform to draw the image correctly. * src/xterm.c (x_composite_image): Use PictOpSrc as we don't care about alpha values here. * doc/lispref/display.texi (Image Descriptors): Add :rotation. (ImageMagick Images): Remove :rotation. 2019-06-05 Phillip Lord No longer add debug symbols to release build * admin/nt/dist-build/build-zips.sh: Remove -g3 from release build and install with install-strip 2019-06-05 Juri Linkov * lisp/wid-edit.el (widget-choose): Use display-buffer-in-direction to display buffer in bottom direction with fit-window-to-buffer. * lisp/proced.el (proced-with-processes-buffer): Idem. (Bug#35592) 2019-06-05 Michael Albinus * doc/misc/tramp.texi (Obtaining Tramp): Explain version scheme. (Traces and Profiles): Add `tramp-verbose' to @vindex. 2019-06-05 Dario Gjorgjevski Do not use syntax-ppss-table in syntax-propertize when nil (Bug#36095) * lisp/emacs-lisp/syntax.el (syntax-propertize): Use (syntax-table) instead of syntax-ppss-table when the latter is nil. 2019-06-04 Stefan Monnier * lisp/emacs-lisp/syntax.el: Use syntax-ppss-table for syntax-propertize. `syntax-ppss` uses `syntax-ppss-table` while parsing the buffer as well as when it calls `syntax-propertize`, but `syntax-propertize` can also be called directly rather than via `syntax-ppss` so it needs to explicitly use `syntax-ppss-table` as well in order to avoid using sometimes one table and sometimes another. (syntax-ppss-table): Move before new use. (syntax-propertize): Use it. 2019-06-04 Paul Eggert Remove retired maintainers from comments * lisp/international/quail.el, lisp/language/ind-util.el: * lisp/language/indian.el, lisp/mail/smtpmail.el, lisp/mwheel.el: * lisp/obsolete/longlines.el, lisp/progmodes/idlw-complete-structtag.el: * lisp/progmodes/idlw-help.el, lisp/progmodes/idlw-shell.el: * lisp/progmodes/idlw-toolbar.el, lisp/progmodes/idlwave.el: * lisp/progmodes/simula.el, lisp/ps-print.el, lisp/ps-samp.el: Remove Maintainer: lines for maintainers who have retired. 2019-06-04 Stefan Monnier * lisp/emacs-lisp/thunk.el (thunk-delay): Fix memory leak Get rid of references to the free variables of `body` once the thunk has been forced (bug#30626). 2019-06-04 Stefan Monnier * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-rules): More verbose comments 2019-06-04 Jackson Ray Hamilton Specify the matching chars for JSX open/close parenthesis * lisp/progmodes/js.el (js-jsx--syntax-propertize-tag): Indicate the matching parenthesis character (since JSX’s < and > aren’t typical parenthesis) for the sake of packages like rainbow-delimiters which need that information. 2019-06-04 Jackson Ray Hamilton Revert "Add extra text property to fix issue with js2-mode integration" This reverts commit 382a508ed21e4f12ace9f8871818e25235e8f05e. We ended up deciding against using this in js2-mode. Instead, js2-mode may eventually use js-mode’s syntax-propertize-function to set syntax-table text properties. 2019-06-04 Paul Eggert Update lispref spellfile * doc/lispref/spellfile: Omit words no longer in the manual. How is this spellfile used? Does anybody use it any more? 2019-06-04 Paul Eggert Adjust comments/debug to match C bignum code * doc/lispintro/emacs-lisp-intro.texi (Digression into C): Adjust to match current C code. * lisp/emacs-lisp/ert.el (ert--force-message-log-buffer-truncation): Simplify. * src/.gdbinit (Lisp_Object_Printer.to_string): Return a string that says "make_fixnum", not "make_number". 2019-06-04 Paul Eggert Always allow at least double-precision bignums Without this fix, Emacs can get into a tight loop reporting a range error when calculating timestamps. * doc/lispref/numbers.texi (Integer Basics): * src/alloc.c (syms_of_alloc): Document this. * src/bignum.c (make_bignum_bits): Always allow bignums of at least twice the width of (u)intmax_t. 2019-06-04 Stefan Monnier * lisp/gnus/message.el (message-send-mail): Tweak last commit 2019-06-04 Noam Postavsky Keep nxml-prolog-end up to date (Bug#18871) The change on 2016-01-16 "lisp/nxml: Use syntax-tables for comments" removed the update of nxml-prolog-end, although it already failed to work correctly after 2013-10-07 "* lisp/nxml/nxml-mode.el: Use lexical-binding and syntax-propertize." * lisp/nxml/nxml-rap.el: New function. * lisp/nxml/nxml-mode.el (nxml-mode): Add it to after-change-functions. 2019-06-04 Noam Postavsky Don't sgml-syntax-propertize-inside XML prolog (Bug#32823) * lisp/nxml/nxml-mode.el (nxml-syntax-propertize): New function. (nxml-mode): Use it as the syntax-propertize-function. * test/lisp/nxml/nxml-mode-tests.el (nxml-mode-doctype-and-quote-syntax) (nxml-mode-prolog-comment): New tests. 2019-06-04 Noam Postavsky Don't fontify text outside of SGML/XML tags (Bug#33887) * lisp/textmodes/sgml-mode.el (sgml-font-lock-syntactic-face): New function. (sgml-mode): * lisp/nxml/nxml-mode.el (nxml-mode): Use it as font-lock-syntactic-face-function value. 2019-06-04 Noam Postavsky Fix some SGML syntax edge cases (Bug#33887) * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-rules): Handle single and double quotes symmetrically. Don't skip quoted comment enders. * test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax): Add more test cases. (sgml-mode-quote-in-long-text): New test. 2019-06-04 Michael Albinus Stronger check for Tramp method * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection): Use `tramp-get-connection-name'. * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link): * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-make-symbolic-link): Don't check remote TARGET. * lisp/net/tramp.el (tramp-dissect-file-name): Check for proper method. (tramp-file-name-for-operation): Take only 2nd argument into account for file name handler. (tramp-file-name-handler): Suppress checks for `file-remote-p'. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test02-file-name-dissect): Suppress check for wrong method. * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case): Dump *all* Tramp buffers. (tramp-test02-file-name-dissect) (tramp-test02-file-name-dissect-simplified) (tramp-test02-file-name-dissect-separate): Check also wrong method. (tramp-test03-file-name-defaults): Check, that the respective Tramp package is loaded. (tramp-test04-substitute-in-file-name) (tramp-test05-expand-file-name) (tramp-test06-directory-file-name, tramp-test44-auto-load): Suppress check for wrong method. (tramp-test30-make-process): Remove instrumentation code. (tramp-test31-interrupt-process, tramp-test36-vc-registered): Guarantee that connection is established prior starting process. 2019-06-04 YAMAMOTO Mitsuharu * src/xterm.c (x_scroll_run) [USE_CAIRO]: Dirty only destination rectangle. * src/image.c (cr_create_cr_surface_from_image): Add const to variable `key'. 2019-06-03 Noam Postavsky Let untarring (and hence package installation) go faster (Bug#35909) * lisp/subr.el (progress-reporter-update) (progress-reporter-force-update, progress-reporter-do-update): Accept new optional argument, SUFFIX. * doc/lispref/display.texi (Progress): Document it. * etc/NEWS: Announce it. * lisp/tar-mode.el (tar-untar-buffer): Use a progress reporter instead of calling message. Suppress message from write-region. Let-bind write-region-inhibit-fsync to t. 2019-06-03 Phillip Lord Update dependencies * admin/nt/dist-build/build-dep-zips.py: Add harfbuzz as dependency 2019-06-03 Juri Linkov User-friendly display of error messages at the end of minibuffer * lisp/simple.el (minibuffer-setup-hook): Add minibuffer-error-initialize. (minibuffer-error-initialize, minibuffer-error-function): New functions. (Bug#34939) 2019-06-03 Juri Linkov * lisp/char-fold.el (char-fold-make-table): New function with body extracted from INITVALUE of defconst (bug#35689). Bind search-spaces-regexp to nil (bug#35802). * test/lisp/char-fold-tests.el: Relocate helpers to file beginning. (char-fold--test-bug-35802): New test. 2019-06-03 Stefan Monnier * lisp/gnus/gnus-async.el: Use lexical-binding Remove redundant :group args. (gnus-async-post-fetch-function): Make it always be a function. (gnus-make-async-article-function, gnus-async-prefetch-headers): Use a closure rather than `(lambda ...) 2019-06-03 Oleh Krehel lisp/gnus/message.el (message-send-mail): Don't wrongly assert on Unicode msg Using this setting: (setq message-send-mail-function 'message-send-mail-with-sendmail) (setq sendmail-program "msmtp") the message seding is handled by an external program, so no Unicode encoding is performed in Emacs. Thus Emacs must not assert that the Unicode encoding was performed. 2019-06-02 Juanma Barranquero * lisp/help-fns.el (help-fns--first-release): Do not fail if no release is found. 2019-06-02 Stefan Monnier * lisp/gnus/gnus-sum.el, lisp/gnus/gnus-async.el: Eliminate assumptions about gnus-data format * lisp/gnus/gnus-async.el (gnus-async-with-semaphore): Use `declare`. (gnus-async-prefetch-next): Don't assume gnus-data-number == car. * lisp/gnus/gnus-sum.el (gnus-data-find-in): New function. (gnus-data-find, gnus-data-find-list): Use it. (gnus-summary-article-subject): Make it a function. (gnus--dummy-data-list): New const. (gnus-update-summary-mark-positions): Use it. 2019-06-02 Stefan Monnier * lisp/gnus/gnus.el: Fix cycle in eager macroexpansion * lisp/gnus/gnus-sum.el (gnus-data): Use cl-defstruct. (gnus-data-set-pos, gnus-data-set-header, gnus-data-set-mark) (gnus-data-set-number): Delete macros; use `setf` instead. (gnus-data-unread-p, gnus-data-read-p, gnus-data-pseudo-p, gnus-data-find) (gnus-summary-skip-intangible, gnus-summary-article-number): Redefine as inlinable functions rather than macros. * lisp/gnus/gnus.el: Adjust autoloads for the macros turned functions. 2019-06-02 Stefan Monnier * lisp/help-fns.el: Make hyperlink for the "first release" info * lisp/help-fns.el (help-fns--first-release): Return a "button". (help-fns--mention-first-release): Preserve the string's text-properties. * lisp/help-mode.el (help-news): New button type. 2019-06-02 Alan Mackenzie Change default offset of CC Mode syntactic symbol inlambda to 0 It's previous default was c-lineup-inexpr-block. This change is mainly to prevent excessive indentation of the innards of C++ lambda functions. * lisp/progmodes/cc-vars.el (c-offsets-alist): Amend the offset for inlambda to 0. * doc/misc/cc-mode.texi (FAQ): Amend the answer to the question about this matter. 2019-06-01 YAMAMOTO Mitsuharu Implement the get_variation_glyphs method for FreeType >= 2.3.6 * configure.ac: Check availability of FT_Face_GetCharVariantIndex. * src/ftfont.c (ftfont_variation_glyphs) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: Add function implementation. * src/ftcrfont.c (ftcrfont_variation_glyphs) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: Use function implementation for HAVE_OTF_GET_VARIATION_GLYPHS. * src/ftfont.c (ftfont_driver) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: * src/xftfont.c (xftfont_driver) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: * src/ftxfont.c (ftxfont_driver) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: * src/ftcrfont.c (ftcrfont_driver) [HAVE_FT_FACE_GETCHARVARIANTINDEX]: Populate the get_variation_glyphs method. 2019-06-01 YAMAMOTO Mitsuharu Revert previous commit This reverts commit 1ab69630dcb8c7a1b1b4171211a7c8ebf11b0d1c. It has a wrong commit message. 2019-06-01 YAMAMOTO Mitsuharu Make fthbfont and derivatives use common HarfBuzz code in hbfont.c * src/font.h (fthbfont_shape, fthbfont_combining_capability) [HAVE_HARFBUZZ]: Remove prototypes. * src/ftfont.c: Don't include math.h. (uni_combining, uni_general, uni_mirroring, get_hb_unicode_funcs) (fthbfont_shape_by_hb, fthbfont_combining_capability, fthbfont_shape) [HAVE_HARFBUZZ]: Remove functions. * src/ftfont.c (syms_of_ftfont_for_pdumper) [HAVE_HARFBUZZ]: * src/xftfont.c (syms_of_xftfont_for_pdumper) [HAVE_HARFBUZZ]: * src/ftcrfont.c (syms_of_ftcrfont_for_pdumper) [HAVE_HARFBUZZ]: Use hbfont_shape and hbfont_combining_capability for fthbfont_shape and fthbfont_combining_capability, respectively. 2019-06-01 YAMAMOTO Mitsuharu Make fthbfont and derivatives use common HarfBuzz code in hbfont.c * src/font.h (fthbfont_shape, fthbfont_combining_capability) [HAVE_HARFBUZZ]: Remove prototypes. * src/ftfont.c: Don't include math.h. (uni_combining, uni_general, uni_mirroring, get_hb_unicode_funcs) (fthbfont_shape_by_hb, fthbfont_combining_capability, fthbfont_shape) [HAVE_HARFBUZZ]: Remove functions. * src/ftfont.c (syms_of_ftfont_for_pdumper) [HAVE_HARFBUZZ]: * src/xftfont.c (syms_of_xftfont_for_pdumper) [HAVE_HARFBUZZ]: * src/ftcrfont.c (syms_of_ftcrfont_for_pdumper) [HAVE_HARFBUZZ]: Use hbfont_shape and hbfont_combining_capability instead of fthbfont_shape and fthbfont_combining_capability, respectively. 2019-06-01 Glenn Morris Skip some flymake tests on hydra.nixos.org * test/lisp/progmodes/flymake-tests.el (perl-backend) (included-c-header-files, recurrent-backend): Skip on hydra.nixos due to frequent intermittent failures. (Bug#32764) 2019-06-01 Stefan Kangas Use lexical-binding in morse.el and studly.el and add tests * lisp/play/morse.el: Use lexical-binding. * lisp/play/studly.el: Use lexical-binding. * test/lisp/play/morse-tests.el: New file. * test/lisp/play/studly-tests.el: New file. 2019-06-01 Stefan Kangas Use lexical-binding in paragraphs.el and add tests * lisp/textmodes/paragraphs.el: Use lexical-binding. (repunctuate-sentences): Make it work non-interactively. * test/lisp/textmodes/paragraphs-tests.el: New file. 2019-06-01 Paul Eggert Fix .gitignore spec for personal customizations Problem reported by Mauro Aranda (Bug#35945). * .gitignore: Replace .dir-locals?.el with .dir-locals-2.el. 2019-06-01 Paul Eggert Tune cl-assoc * lisp/emacs-lisp/cl-seq.el (cl-assoc): Use assq for fixnums. 2019-06-01 Mattias Engdegård Fix `cl-member' and `cl-assoc' for bignums * lisp/emacs-lisp/cl-seq.el (cl-member, cl-assoc): Work with bignums. * test/lisp/emacs-lisp/cl-seq-tests.el (cl-seq-bignum-eql): New. 2019-06-01 Daniel Ralston (tiny change) Make rcirc PART and QUIT reasons customizable (Bug#12857) * lisp/net/rcirc.el: (rcirc-default-part-reason, rcirc-default-quit-reason): New customizable vars. (rcirc-cmd-quit, rcirc-cmd-part): Consult them. 2019-06-01 Noam Postavsky Handle argument to rcirc /part properly (Bug#11157) * lisp/net/rcirc.el (part): Split out channel name and part reason. * doc/misc/rcirc.texi (rcirc commands): Clarify that channel name may be provided to /part. 2019-06-01 Noam Postavsky * lisp/net/rcirc.el: Remove redundant :group usage ... and empty Todo comment section. 2019-06-01 Alan Mackenzie Debug and disentangle the literal cacheing in CC Mode (Final Commit) * lisp/progmodes/cc-engine.el (c-semi-trim-near-cache): Correct a comparison with the wrong ...-limit variable. (c-semi-pp-to-literal): Remove a wrong setting of c-lit-pos-cache-limit. (c-full-get-near-cache-entry): Eliminate extravagant and unneeded coding. (c-state-cache-init, c-record-parse-state-state): No longer manipulate c-lit-pos-cache, which is no longer regarded as part of c-parse-state. * lisp/progmodes/cc-mode.el (c-basic-common-init): Call c-truncate-lit-pos-cache to initialize the literal cache. 2019-06-01 Alan Mackenzie * lisp/progmodes/cc-engine.el: Permute certain literal cacheing functions 2019-06-01 Alan Mackenzie Tidy up the literal cacheing in CC Mode, optimizing c-full-pp-to-literal (Intermediate commit) * lisp/progmodes/cc-engine.el, lisp/progmodes/cc-fonts.el * lisp/progmodes/cc-mode.el : Rename: c-state-semi-nonlit-pos-cache -> c-lit-pos-cache, c-state-semi-nonlit-pos-cache-limit -> c-lit-pos-cache-limit, c-state-semi-nonlit-near-cache -> c-semi-lit-near-cache, c-truncate-semi-nonlit-pos-cache -> c-truncate-lit-pos-cache, c-state-semi-trim-near-cache -> c-semi-trim-near-cache, c-state-semi-get-near-cache-entry -> c-semi-get-near-cache-entry, c-state-semi-put-near-cache-entry -> c-semi-put-near-cache-entry, c-state-semi-pp-to-literal -> c-semi-pp-to-literal, c-state-full-pp-to-literal -> c-full-pp-to-literal, c-state-semi-trim-cache -> c-trim-lit-pos-cache. * lisp/progmodes/cc-engine.el (c-semi-near-cache-limit): New variable. (c-truncate-lit-pos-cache): This now truncates the cache variables for all three lit- sub-caches. (c-semi-put-near-cache-entry): Increase c-semi-near-cache-limit to the position of the new entry. (c-full-near-cache-limit, c-full-lit-near-cache): New variables. (c-full-trim-near-cache, c-full-get-near-cache-entry) (c-full-put-near-cache-entry): New functions. (c-full-pp-to-literal): Amend to use the new functions, and to optimize the use of the available caches, similarly to c-semi-pp-to-literal. 2019-06-01 Paul Eggert Port hbfont.c to GCC 9 with --enable-gcc-warnings * src/hbfont.c (hbfont_shape): Use ptrdiff_t, not int, for indexes that in theory might overflow int. Add UNINIT to pacify GCC 9 and omit an unnecessary initialization. 2019-06-01 Glenn Morris Merge from origin/emacs-26 008b263 (origin/emacs-26, emacs-26) * lisp/gnus/gnus.el: Mark autoloa... daf32f1 Speed up redisplay of HELLO d8a6d82 Improve documentation of 'safe-local-variable' property # Conflicts: # etc/HELLO 2019-06-01 Glenn Morris Merge from origin/emacs-26 134edc1 Warn about wrong number of args for subrs (Bug#35767) 5f01af6 Use plain symbols for eieio type descriptors (Bug#29220) 4b24b01 Pacify GCC 9 -Wredundant-decls 2019-06-01 Glenn Morris Merge from origin/emacs-26 b2e44b4 Pacify GCC when compiling unexelf.c on Fedora 30 2019-06-01 Glenn Morris Merge from origin/emacs-26 1b2f83b Fix docstring of bookmark-get-bookmark 2019-06-01 Glenn Morris Merge from origin/emacs-26 2168165 ; * doc/lispref/nonascii.texi (Explicit Encoding): Fix typo. 8f18d12 Improve documentation of decoding into a unibyte buffer 7681a57 Remove redundants "See" before @xref or @pxref (Bug#35793) 9bee762 ; * src/coding.c: Improve commentary. (Bug#34765) e61349c Fix customization type of recentf-max-saved-items # Conflicts: # src/coding.c 2019-06-01 Eli Zaretskii Implement the get_variation_glyphs method for HarfBuzz on MS-Windows * src/w32uniscribe.c [HAVE_HARFBUZZ]: DEF_DLL_FN hb_font_get_variation_glyph. (hb_font_get_variation_glyph): New redirection macro. (w32hb_get_variation_glyphs): New function. (load_harfbuzz_funcs): Load hb_font_get_variation_glyph. (syms_of_w32uniscribe_for_pdumper): Populate the get_variation_glyphs method of harfbuzz_font_driver. 2019-06-01 Simen Heggestøyl Use lexical-binding in page.el and add tests * lisp/textmodes/page.el: Use lexical-binding. (forward-page): Replace `(if x nil y)' with `(unless x y)'. * test/lisp/textmodes/page-tests.el: New file with tests for page.el. 2019-06-01 Eli Zaretskii Update the documentation due to changes in loading font backends * doc/emacs/msdos.texi (Windows Fonts): Reflect the fact that Uniscribe is not enabled by default. 2019-06-01 Eli Zaretskii Prefer HarfBuzz to Uniscribe on MS-Windows * src/w32fns.c (Fx_create_frame, w32_create_tip_frame): Register the Uniscribe font backend only if HarfBuzz is not available, or if explicitly requested via frame parameters or resources. 2019-06-01 Eli Zaretskii Move common HarfBuzz code to a common file hbfont.c * src/hbfont.c: New file, with code moved from w32uniscribe.c and renamed/modified as appropriate. * src/w32uniscribe.c: Move to hbfont.c DEF_DLL_FN and macro definitions for HarfBuzz functions used in hbfont.c (load_harfbuzz_funcs): Move loading of HarfBuzz functions used by hbfont.c to hbfont.c:hbfont_init_w32_funcs, and call that function from here. (syms_of_w32uniscribe_for_pdumper): Fill the 'shape' and 'combining_capability' members with hbfont.c function names. * src/w32common.h (hbfont_init_w32_funcs) [HAVE_HARFBUZZ]: Add prototype. * src/font.h (hbfont_shape, hbfont_combining_capability) [HAVE_HARFBUZZ]: Add prototypes. * src/Makefile.in (SOME_MACHINE_OBJECTS): Add hbfont.o. * configure.ac (FONT_OBJ): Add hbfont.o if HAVE_HARFBUZZ. 2019-06-01 Stefan Kangas Use lexical-binding in timezone.el and add tests * lisp/timezone.el: Use lexical-binding. * test/lisp/timezone-tests.el: New file. 2019-05-31 Simen Heggestøyl Use lexical-binding in autoinsert.el and add tests * lisp/autoinsert.el: Use lexical-binding. Remove redundant :group args. (auto-insert): Simplify. * test/lisp/autoinsert-tests.el: New file with tests for autoinsert.el. 2019-05-31 Eli Zaretskii Unbreak MinGW64 build with pthreads.h installed * nt/mingw-cfg.site (gl_cv_func_pthread_sigmask_macro): Set to "no", to avoid compiling Gnulib's pthread_sigmask.c. Reported by Richard Copley . 2019-05-31 Eli Zaretskii Enhance Hebrew display in HELLO * etc/HELLO: Show off display of Hebrew with diacriticals (a.k.a. "nikkud"). 2019-05-31 Eli Zaretskii Fix handling of -xrm on MS-Windows broken by recent commits * src/w32reg.c (w32_get_string_resource): The argument V_RDB is a 'char **', not a 'char *'. This fixes -xrm handling on MS-Windows, broken by conversion of x_get_string_resource to terminal-specific hook. (cherry picked from commit 833097cbc4856001ae77b33365faf09c1b3c30e3) 2019-05-31 Eli Zaretskii Unbreak display of characters on MS-Windows * src/w32font.c (w32font_draw): Convert the glyph_string's char2b array to 16-bit WCHAR data that ExtTextOutW needs. (cherry picked from commit 38564f8a664347c42f7614d9c91e0d49e4a073e8) 2019-05-31 Eli Zaretskii Add HarfBuzz font backend for MS-Windows * src/w32uniscribe.c [HAVE_HARFBUZZ]: Include math.h and hb.h. (bswap_32): Define for GCC 4.3.0 and later; else include from Gnulib. (struct uniscribe_font_info): Extend for HarfBuzz; 'cache' is now a 'void *' (all users changed). [HAVE_HARFBUZZ]: Define typedefs for HarfBuzz functions to be loaded dynamically from the HarfBuzz DLL. Define macros to call those functions via function pointers. (uniscribe_open) [HAVE_HARFBUZZ]: Use the HarfBuzz font driver if the type of the font entity is 'harfbuzz'. (uniscribe_close) [HAVE_HARFBUZZ]: For fonts using the HarfBuzz backend, call hb_font_destroy to free memory used for the cached hb_font data. (uniscribe_shape): Fix assignment of character codepoints to glyphs from a single cluster. (w32hb_list, w32hb_match, free_cb, w32hb_get_font_table) (w32hb_get_font, w32hb_encode_char, w32hb_begin_font) (w32uni_combining, w32uni_general, w32uni_mirroring) (get_hb_unicode_funcs, w32hb_shape) (w32hb_combining_capability, load_harfbuzz_funcs) [HAVE_HARFBUZZ]: New functions. (syms_of_w32uniscribe_for_pdumper) [HAVE_HARFBUZZ]: Load the HarfBuzz DLL and register the HarfBuzz backend with its functions. * src/w32font.c (syms_of_w32font) : New DEFSYM. * src/w32fns.c (Fx_create_frame, w32_create_tip_frame) [HAVE_HARFBUZZ]: Register the harfbuzz font backend. * src/lisp.h (get_unicode_property): Declare prototype. * src/font.h (harfbuzz_font_driver) [HAVE_NTGUI]: Declare. * src/chartab.c (get_unicode_property): New function, body taken from get-unicode-property-internal. (Fget_unicode_property_internal): Call get_unicode_property after validating input. * doc/lispref/frames.texi (Font and Color Parameters): * doc/emacs/msdos.texi (Windows Fonts): Document support for HarfBuzz text shaping on MS-Windows. * configure.ac (HAVE_HARFBUZZ): Move out of the X-specific part, and consider HarfBuzz also for HAVE_W32 systems. Require HarfBuzz v1.2.3 for w32. 2019-05-30 Paul Eggert Improve eq1/memql performance * src/fns.c (Fmemql, Feql): Inline to tweak performance. 2019-05-30 Mattias Engdegård Fix `memql' for bignums * src/fns.c (Fmemql): Make `memql' work for bignums. * test/src/fns-tests.el (test-bignum-eql): Also test `memql'. 2019-05-30 Alan Mackenzie Optimize one of CC Mode's syntax caches for long comments and strings. * lisp/progmodes/cc-langs.el (c-block-comment-awkward-chars): New lang constant and variable. * lisp/progmodes/cc-engine.el (c-state-semi-nonlit-pos-cache): Enhance the doc comment. (c-state-semi-get-near-cache-entry, c-state-semi-pp-to-literal): Reuse entry if the sought position is in a literal, and lies between the literal start and the entry's position. (c-cache-to-parse-ps-state, c-parse-ps-state-below): Amend such that instead of cacheing a state for a position after a backslash or first character of a 2-character comment delimiter, this is done for the previous character position. 2019-05-30 Dmitry Gutov Fix a void-function error * lisp/dired-aux.el (dired-do-find-regexp): Require 'xref' (bug#35352). 2019-05-30 Dmitry Gutov Rename xref-refresh-results to xref-revert-buffer * lisp/progmodes/xref.el (xref-revert-buffer): Rename from 'xref-refresh-results' (https://debbugs.gnu.org/35737#40). 2019-05-30 Dmitry Gutov New command ruby-find-library-file * lisp/progmodes/ruby-mode.el (ruby-find-library-file): New command. (ruby-mode-map): Add binding for it. 2019-05-30 YAMAMOTO Mitsuharu Add stipple support on cairo * src/xterm.h (struct x_bitmap_record) [USE_CAIRO]: Remove unused member img. Add member stipple. (x_bitmap_stipple) [USE_CAIRO]: Add extern. * src/image.c (x_bitmap_stipple) [HAVE_X_WINDOWS && USE_CAIRO]: New function. (image_create_bitmap_from_data, image_create_bitmap_from_file) (x_create_bitmap_from_xpm_data) [HAVE_X_WINDOWS && USE_CAIRO]: Initialize stipple member of struct x_bitmap_record. (free_bitmap_record) [HAVE_X_WINDOWS && USE_CAIRO]: Destroy stipple member. * src/xterm.c (x_fill_rectangle) [USE_CAIRO]: Inspect gc and draw stipple if necessary. Use x_bitmap_stipple. 2019-05-29 Basil L. Contovounesios Simplify Gnus buffer liveness checking and killing * lisp/gnus/gnus-agent.el (gnus-agent-synchronize-group-flags): Fix indentation. * lisp/gnus/gnus-util.el (gnus-buffer-exists-p): Define as obsolete alias of gnus-buffer-live-p. (gnus-buffer-live-p): If the given argument is or names a live buffer, return the corresponding buffer object instead of a boolean. * lisp/gnus/gnus-win.el (gnus-delete-windows-in-gnusey-frames) (gnus-remove-some-windows): Simplify. * lisp/gnus/gnus.el (gnus-prune-buffers): Redefine as alias of gnus-buffers. (gnus-kill-buffer, gnus-buffers, gnus-group-find-parameter): * lisp/gnus/gnus-art.el (gnus-kill-sticky-article-buffers) (gnus-request-article-this-buffer): * lisp/gnus/gnus-bcklg.el (gnus-backlog-shutdown): * lisp/gnus/gnus-cus.el (gnus-group-customize) (gnus-agent-customize-category): * lisp/gnus/gnus-draft.el (gnus-draft-edit-message): * lisp/gnus/gnus-group.el (gnus-group-set-mode-line) (gnus--abort-on-unsaved-message-buffers, gnus-group-compact-group): * lisp/gnus/gnus-msg.el (gnus-inews-add-send-actions) (gnus-summary-supersede-article, gnus-copy-article-buffer): * lisp/gnus/gnus-score.el (gnus-score-edit-current-scores) (gnus-score-edit-file): * lisp/gnus/gnus-spec.el (gnus-update-format-specifications): * lisp/gnus/gnus-srvr.el (gnus-server-compact-server): * lisp/gnus/gnus-start.el (gnus-clear-system, gnus-dribble-enter) (gnus-dribble-save, gnus-dribble-clear, gnus-save-newsrc-file): * lisp/gnus/gnus-sum.el (gnus-summary-setup-buffer) (gnus-update-summary-mark-positions, gnus-summary-exit) (gnus-deaden-summary, gnus-kill-or-deaden-summary) (gnus-summary-next-group): * lisp/gnus/gnus-win.el (gnus-configure-frame): * lisp/gnus/mail-source.el (mail-source-movemail): * lisp/gnus/message.el (message-with-reply-buffer) (message-with-reply, message-send-and-exit) (message-send-mail-with-sendmail, message-pop-to-buffer) (message-do-send-housekeeping, message-forward-make-body-plain) (message-forward-make-body-mml): * lisp/gnus/mm-decode.el (mm-display-external, mm-remove-part): * lisp/gnus/nnbabyl.el (nnbabyl-server-opened) (nnbabyl-possibly-change-newsgroup, nnbabyl-read-mbox) (nnbabyl-check-mbox): * lisp/gnus/nndiary.el (nndiary-save-nov): * lisp/gnus/nndoc.el (nndoc-close-group) (nndoc-possibly-change-buffer): * lisp/gnus/nnfolder.el (nnfolder-close-group, nnfolder-save-nov): * lisp/gnus/nnimap.el (nnimap-make-process-buffer, nnimap-keepalive) (nnimap-find-connection): * lisp/gnus/nnmail.el (nnmail-cache-open, nnmail-cache-close): * lisp/gnus/nnmbox.el (nnmbox-close-server, nnmbox-server-opened) (nnmbox-possibly-change-newsgroup, nnmbox-read-mbox): * lisp/gnus/nnml.el (nnml-save-incremental-nov, nnml-open-nov) (nnml-save-nov): * lisp/gnus/nnoo.el (nnoo-server-opened): * lisp/gnus/nntp.el (nntp-kill-buffer, nntp-make-process-buffer) (nntp-open-connection, nntp-async-trigger): * lisp/net/mairix.el (mairix-gnus-fetch-field): Simplify buffer liveness checking and killing, replacing buffer-name with buffer-live-p and gnus-buffer-exists-p with gnus-buffer-live-p or equivalent where applicable. 2019-05-29 YAMAMOTO Mitsuharu Fix breakage of native image scaling on XRENDER by previous change * src/image.c (image_create_x_image_and_pixmap_1) [HAVE_XRENDER]: Get depth if it is unspecified. 2019-05-29 Paul Eggert Update from Gnulib This incorporates: 2019-05-24 flexmember: update comments 2019-05-18 pthread_sigmask: fix --enable-threads=windows compilation 2019-05-14 close-stream, closein, closeout: simplify 2019-05-09 verify: remove verify_true 2019-05-09 verify: support C2X and C++17 static_assert * build-aux/config.guess, build-aux/config.sub: * doc/misc/texinfo.tex, lib/flexmember.h, lib/verify.h: * m4/flexmember.m4, m4/pthread_sigmask.m4: Copy from Gnulib * m4/gnulib-comp.m4: Regenerate. 2019-05-26 Paul Eggert Update author/maintainer info This mostly updates email addresses and fixes spellings of author and maintainer names. 2019-05-29 Stefan Monnier * lisp/subr.el (add-hook): Turn `append` into `depth` (bug#35508) Make it possible to control the relative ordering of functions on hooks by specifying `depth` in the same was as was possible with `add-function`. * lisp/electric.el (electric--sort-post-self-insertion-hook): Delete function. (electric-indent-mode, electric-layout-mode, electric-quote-mode): * lisp/elec-pair.el (electric-pair-mode): Use new `depth` arg instead of electric--sort-post-self-insertion-hook. * lisp/emacs-lisp/syntax.el (syntax-propertize, syntax-ppss): Use new `depth` arg to make sure noone accidentally gets added after syntax-ppss-flush-cache. * doc/lispref/modes.texi (Setting Hooks): Document new `depth` arg. * test/lisp/subr-tests.el (subr-tests-add-hook-depth): New test. 2019-05-29 Simen Heggestøyl Use lexical-binding in makesum.el and add tests * lisp/makesum.el: Use lexical-binding. (make-command-summary): Replace `if..progn' with `when'. (double-column): Add docstring and apply trivial simplifications. * test/lisp/makesum-tests.el: New file with tests for makesum.el. 2019-05-29 Basil L. Contovounesios Simplify gnus-or and gnus-and * lisp/gnus/gnus-art.el: Make implicit seq.el dependency explicit. (gnus-treat-predicate): Use seq-some in place of mapcar + gnus-or and evaluate lambda predicate. * lisp/gnus/gnus-util.el (gnus-or, gnus-and): Simplify. 2019-05-29 YAMAMOTO Mitsuharu Rework cairo image support to improve consistency (Bug#35871) * src/dispextern.h (Emacs_Pix_Container) [USE_CAIRO]: New struct. Also used as aliases of Emacs_Pixmap and Emacs_Pix_Context. (x_kill_gs_process) [USE_CAIRO]: #ifdef out extern. (RGB_PIXEL_COLOR) [USE_CAIRO]: Define as unsigned long. * src/image.c: Include stdint.h. On cairo, remove existing image support code, use non-X11-specific code for XBM/XPM, and remove POSTSCRIPT support. (PUT_PIXEL): New macro. Use it instead of XPutPixel when not specific to X11. (GET_PIXEL, NO_PIXMAP, PIX_MASK_RETAIN, PIX_MASK_DRAW) (RGB_TO_ULONG, ARGB_TO_ULONG, RED_FROM_ULONG) (GREEN_FROM_ULONG, BLUE_FROM_ULONG, RED16_FROM_ULONG) (GREEN16_FROM_ULONG, BLUE16_FROM_ULONG) [USE_CAIRO]: New macros. (image_create_pix_container, image_pix_container_put_pixel) (image_pix_context_get_pixel, image_pix_container_create_from_bitmap_data) (cr_create_cr_surface_from_image) [USE_CAIRO]: New functions. (image_create_x_image_and_pixmap_1, image_destroy_x_image) (image_check_image_size): Extract X11-specific code from here ... (x_create_x_image_and_pixmap, x_destroy_x_image) (x_check_image_size) [HAVE_X_WINDOWS]: ... to here. (x_create_bitmap_mask) [HAVE_X_WINDOWS]: Use them. Inline specialized version of four_corners_best. (prepare_image_for_display, image_clear_image_1, image_destroy_x_image) (gui_put_x_image, image_put_x_image, image_get_x_image, image_unget_x_image) (Create_Pixmap_From_Bitmap_Data, lookup_rgb_color) (image_to_emacs_colors) [USE_CAIRO]: Add cairo support. (image_background, png_load_body) [USE_CAIRO]: Use image_alloc_image_color for img->background. (image_sync_to_pixmaps) [USE_CAIRO]: #ifdef out function. (Create_Pixmap_From_Bitmap_Data) [HAVE_X_WINDOWS]: Move image_check_image_size call from here ... (xbm_load_image): ... to here. (xpm_load_image): (image_build_heuristic_mask, pbm_load, gif_load) [USE_CAIRO]: Use lookup_rgb_color for argument of PUT_PIXEL. (image_pixmap_draw_cross) [HAVE_X_WINDOWS || USE_CAIRO]: New function. (image_disable_image) [HAVE_X_WINDOWS || USE_CAIRO]: Use it. (CrossForeground) [!HAVE_NTGUI && !HAVE_NS]: New macro. (image_disable_image) [!HAVE_NTGUI && !HAVE_NS]: Use it. * src/xterm.c (handle_one_xevent) [USE_CAIRO]: #ifdef out x_kill_gs_process call. (x_free_pixmap) [USE_CAIRO]: Free Emacs_Pix_Container and data it contains. 2019-05-28 YAMAMOTO Mitsuharu Improve previous change for tool bar image support on GTK+2 with cairo * src/gtkutil.c (xg_get_pixbuf_from_surface) [USE_CAIRO && !HAVE_GTK3]: Remove unused argument f. All callers changed. Handle general alpha value. 2019-05-28 Stefan Monnier * lisp/international/mule-cmds.el (encoded-string-description): Require unibyte string as input 2019-05-28 Stefan Monnier * lisp/international/mule-cmds.el (encode-coding-char): Fix ASCII case Don't bother with string-as-multibyte since `string` already returns multibyte when needed. Don't forget to encode when the string is ASCII, e.g. for ebcdic case and to make sure we always return a unibyte string. * test/lisp/international/mule-tests.el (mule-cmds-tests--encode-ebcdic): New test. 2019-05-28 Michael Heerdegen * doc/misc/cl.texi (Macro Bindings): Add a detail Say that calls of 'cl-macrolet' bound macros are expanded in the global environment. 2019-05-28 Stefan Monnier * lisp/gnus/gnus-art.el: Use mail-header-p (gnus-summary-save-in-pipe, gnus-article-prepare) (gnus-request-article-this-buffer): Use mail-header-p instead of vectorp. (gnus-request-article-this-buffer): Use insert-buffer-substring since it doesn't behave like string-make-multibyte any more. 2019-05-28 Eli Zaretskii Fix handling of -xrm on MS-Windows broken by recent commits * src/w32reg.c (w32_get_string_resource): The argument V_RDB is a 'char **', not a 'char *'. This fixes -xrm handling on MS-Windows, broken by conversion of x_get_string_resource to terminal-specific hook. 2019-05-28 Stefan Monnier * lisp/frameset.el: Stop using obsolete registerv objects (frameset-register): New type. (register-val-jump-to): Define on this new type, replacing frameset--jump-to-register. (register-val-describe): Define on this new type, replacing frameset--print-register. (frameset-to-register): Use new frameset-make-register. (frameset--reuse-frame): η-reduce. 2019-05-28 Stefan Kangas Cleanup of TODO to prefer report-emacs-bug * etc/TODO: Remove already completed removal of `report-calc-bug'. * lisp/calc/calc.el: Remove any mention of `report-calc-bug'. * lisp/epg-config.el: Redefine `epg-bug-report-address' as obsolete variable alias for `report-emacs-bug-address'. * lisp/expand.el: Remove any mention of `expand-submit-report'. * lisp/obsolete/fast-lock.el: Remove commented out code for `fast-lock-submit-bug-report'. 2019-05-28 YAMAMOTO Mitsuharu Support tool bar icon image also on GTK+2 with cairo * src/gtkutil.c (xg_get_pixbuf_from_surface) [USE_CAIRO && !HAVE_GTK3]: New function. (xg_get_image_for_pixmap) [USE_CAIRO && !HAVE_GTK3]: Use it. (xg_tool_item_stale_p, update_frame_tool_bar) [USE_CAIRO && !HAVE_GTK3]: Use cairo code also on GTK+2. 2019-05-27 Glenn Morris * test/lisp/autorevert-tests.el: Give on on remote hydra.nixos tests. (auto-revert--test-enabled-remote): Disable on hydra.nixos. 2019-05-27 Glenn Morris * test/lisp/autorevert-tests.el: Try to fix remote hydra.nixos tests. 2019-05-27 Simen Heggestøyl Remap `complete-symbol' in CSS mode * lisp/textmodes/css-mode.el (css-mode-map): Remap `complete-symbol' to `completion-at-point'. (css-mode): Update docstring to produce the right key binding. 2019-05-27 Mattias Engdegård Correctly eliminate duplicate cases in switch compilation Fix code mistakes that prevented the correct elimination of duplicated cases when compiling a `cond' form to a switch bytecode, as in (cond ((eq x 'a) 1) ((eq x 'b) 2) ((eq x 'a) 3) ; should be elided ((eq x 'c) 4)) Sometimes, this caused the bytecode to use the wrong branch (bug#35770). * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-vars): Return obj2 eval'ed. (byte-compile-cond-jump-table-info): Discard redundant condition. Use `obj2' as evaluated. Discard duplicated cases instead of failing the table generation. * test/lisp/emacs-lisp/bytecomp-tests.el (toplevel): Require subr-x. (byte-opt-testsuite-arith-data, bytecomp-test--switch-duplicates): Test. 2019-05-27 Michael Albinus Another attempt to fix Bug#35769 * lisp/net/tramp.el (tramp-call-process, tramp-call-process-region) (tramp-process-lines): Suppress `process-environment' entries dedicated for remote processes. (Bug#35769) 2019-05-26 Simen Heggestøyl Add a menu bar menu for CSS mode * lisp/textmodes/css-mode.el (css-mode-map): Add menu bar menu. 2019-05-26 Michael Albinus * lisp/net/tramp-sh.el (tramp-maybe-open-connection): Revert fix for Bug#35769 2019-05-26 Noam Postavsky Avoid infloop in read-multiple-choice (Bug#32257) * lisp/emacs-lisp/rmc.el (read-multiple-choice): Use `read-event' which won't get stuck (return the same event over and over again) for non-character events, unlike `read-char'. 2019-05-26 Basil L. Contovounesios Tweak recent additions in tabify-tests.el * test/lisp/tabify-tests.el (tabify-tests--test-changes): Rename third argument to avoid "lexical argument shadows dynamic variable" warnings. Use mapconcat in place of mapcar+concat. (tabify-tests-untabify, tabify-tests-tabify): Quote function symbols as such. 2019-05-26 Simen Heggestøyl Use lexical-binding in paren.el and add tests * lisp/paren.el: Use lexical-binding. (show-paren--default): Use imperative form in doc-string. * test/lisp/paren-tests.el: New file with tests for paren.el. 2019-05-26 Paul Eggert Update author/maintainer info Update email addresses and fix spellings of some author and maintainer names. 2019-05-26 Paul Eggert Remove Maintainer: when it duplicates Author: The convention is that a file with Author: but not Maintainer: means the author is a maintainer, which makes it confusing when a file lists the same person as author and maintainer. Avoid the confusion by removing the duplicate Maintainer: line. 2019-05-25 Stefan Kangas Use lexical-binding in tabify.el and add tests * lisp/tabify.el: Use lexical-binding. * test/lisp/tabify-tests.el: New file. 2019-05-25 Paul Eggert * CONTRIBUTE: Split git configuration from fetch-and-build 2019-05-25 Paul Eggert Document ‘Maintainer: emacs-devel@gnu.org’ * doc/lispref/tips.texi (Library Headers): Document that the Maintainer: line now says ‘emacs-devel@gnu.org’ rather than ‘FSF’. 2019-05-25 Paul Eggert Go back to "Maintainer: emacs-devel@gnu.org" Restore lines saying "Maintainer: emacs-devel@gnu.org" when there is no special maintainer for a file. Although this wasn't documented it was common practice and removing the lines didn't have consensus. 2019-05-25 Dmitry Gutov Expand some xref documentation * lisp/progmodes/xref.el (xref-show-xrefs-function) (xref-show-definitions-function, xref--create-fetcher): Add or extend the docstring. 2019-05-25 Eric S. Raymond Implement and document XDG-style startup files under ~/.config. * lisp/startup.el (command-line): Allow XDG-style as well as old style init paths. * doc/emacs/custom.texi: Document the above change. 2019-05-25 Mauro Aranda Remove redundants "See" before @xref or @pxref (Bug#35793) * doc/misc/gnus.texi (Group Parameters): Remove redundant "See" before cross reference, add comma after it. 2019-05-25 Michael Albinus * doc/misc/tramp.texi (Obtaining Tramp): Tramp is available via GNU ELPA. 2019-05-24 Dmitry Gutov Rename xref--revert-xref-buffer to xref-refresh-results * lisp/progmodes/xref.el (xref-refresh-results): Rename from xref--revert-xref-buffer (bug#35702). 2019-05-24 Dmitry Gutov Support reverting in xref-find-definitions results as well * lisp/progmodes/xref.el (xref--show-xref-buffer): Expect the first argument to always be a function (bug#35702). Handle a FETCHED-XREFS entry in ALIST. (xref--show-defs-buffer): Update accordingly. (xref--create-fetcher): Extract from xref--find-xrefs. (xref--find-definitions): Use it. 2019-05-24 Stefan Monnier * lisp/emacs-lisp/package.el (package-install-from-archive): Fix last change Don't place the unibyte content of of the downloaded file into a multibyte buffer. 2019-05-24 Michael Albinus Fix Bug#35769 * lisp/net/tramp-adb.el (tramp-adb-connection-local-default-profile): * lisp/net/tramp-integration.el (tramp-connection-local-default-profile): Do not set it on w32 systems. (Bug#35769) 2019-05-24 Matthew Bauer Add "Enter Auth" prompt handling for OpenVPN (Bug#35724) * lisp/comint.el (comint-password-prompt-regexp): Allow "Enter Auth" at the beginning. 2019-05-23 Dmitry Gutov Support "reverting" Xref buffers (bug#35702) * lisp/progmodes/xref.el (xref--fetcher): New variable. (xref--xref-buffer-mode-map): Add binding for 'g'. (xref--revert-xref-buffer): New command. (xref--show-xref-buffer): Accept a function as the first argument. (xref--show-xrefs): Same. (xref--find-xrefs): Pass the above a fetcher function. * lisp/progmodes/project.el (project-find-regexp) (project-or-external-find-regexp): Same. * lisp/dired-aux.el (dired-do-find-regexp): Same. 2019-05-23 YAMAMOTO Mitsuharu Undo use of Emacs_Pixmap over Pixmap for x_kill_gs_process * src/dispextern.h (x_kill_gs_process): * src/image.c (x_kill_gs_process): Undo use of Emacs_Pixmap over Pixmap. * src/dispextern.h (x_kill_gs_process): Move extern inside HAVE_X_WINDOWS. 2019-05-23 Michael Heerdegen Improve documentation of the 'function' special form Point out that 'function' quoting is beneficial also for symbols. * src/eval.c (function): Enhance docstring. * doc/lispref/functions.texi (Anonymous Functions): Improve documentation. 2019-05-23 Michael Heerdegen * lisp/emacs-lisp/cl-macs.el (cl-callf): Tweak in docstring Say that lambdas are also allowed as FUNC argument. 2019-05-22 Paul Eggert Avoid backslash-newline-newline in source code * etc/refcards/Makefile (PDF_FRENCH): * lib-src/etags.c (LOOP_ON_INPUT_LINES): * lisp/dabbrev.el (dabbrev-check-other-buffers): * lisp/org/org-id.el (org-id-link-to-org-use-id): * lisp/org/org.el (org-support-shift-select, org-file-apps): * src/alloc.c (CHECK_ALLOCATED_AND_LIVE) (CHECK_ALLOCATED_AND_LIVE_SYMBOL): * src/frame.h (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): * src/regex-emacs.c (PREFETCH_NOLIMIT): * src/window.h (WINDOW_BUFFER): Remove backslash-newline that immediately precedes another newline, as this is not the usual style and is confusing. 2019-05-22 Eli Zaretskii Unbreak display of characters on MS-Windows * src/w32font.c (w32font_draw): Convert the glyph_string's char2b array to 16-bit WCHAR data that ExtTextOutW needs. 2019-05-22 Stefan Monnier * lisp/cedet/srecode/insert.el: Use lexical-binding (srecode-insert-method): No need for lexical-let any more. 2019-05-22 Stefan Monnier * lisp/allout.el, lisp/allout-widgets.el: Use cl-lib and pcase 2019-05-22 YAMAMOTO Mitsuharu Merge branch 'master' into harfbuzz 2019-05-22 YAMAMOTO Mitsuharu Make Cairo build obey hint-style font setting (Bug#35781) * src/ftfont.h (ftfont_open2): Remove extern. (ftfont_fix_match, ftfont_add_rendering_parameters) (ftfont_entity_pattern): Add externs. (struct font_info): Remove member bitmap_strike_index. (struct font_info) [USE_CAIRO]: Remove member ft_size_draw. All uses removed. Add member bitmap_position_unit. * src/xftfont.c (xftfont_fix_match, xftfont_add_rendering_parameters): Move functions from here ... * src/ftfont.c (ftfont_fix_match, ftfont_add_rendering_parameters): ... to here. All uses changed. * src/xftfont.c (xftfont_open): Extract FcPattern creation from font entity from here ... * src/ftfont.c (ftfont_entity_pattern): ... to here. * src/xftfont.c (syms_of_xftfont): Move DEFSYMs for Fontconfig's rendering parameters from here ... * src/ftfont.c (syms_of_ftfont): ... to here. * src/ftfont.c (ftfont_open, ftfont_open2): Undo introduction of bitmap_strike_index. Merge functions into ftfont_open. * src/ftcrfont.c (ftcrfont_open): Align code with xftfont_open rather than ftfont_open. (ftcrfont_close): Likewise. (ftcrfont_has_char, ftcrfont_encode_char): (ftcrfont_otf_capability) [HAVE_LIBOTF]: (ftcrfont_variation_glyphs) [HAVE_OTF_GET_VARIATION_GLYPHS]: New functions. (ftcrfont_driver): Register them. (ftcrfont_get_bitmap, ftcrfont_anchor_point): (ftcrfont_shape) [HAVE_M17N_FLT && HAVE_LIBOTF]: Use bitmap_position_unit instead of bitmap_strike_index to screen bitmap fonts. (ftcrfont_get_bitmap, ftcrfont_anchor_point): (ftcrfont_otf_capability) [HAVE_LIBOTF]: (ftcrfont_shape) [HAVE_M17N_FLT && HAVE_LIBOTF]: (ftcrfont_variation_glyphs) [HAVE_OTF_GET_VARIATION_GLYPHS]: Temporarily assign ftcrfont_info->ft_size and call corresponding ftfont functions. (ftcrfont_draw): Don't flush cairo surface when exporting. 2019-05-22 Basil L. Contovounesios Fix url-copy-file argument handling For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00500.html * lisp/url/url-handlers.el: Update autoloaded docstrings. Quote function symbols as such. (url-handler-regexp): Make grouping construct shy. (url-file-handler, url-insert-buffer-contents) (url-handlers-create-wrapper, url-handlers-set-buffer-mode): Simplify. (url-file-handler-identity): Clarify calling convention. (file-name-absolute-p, url-file-local-copy): Mark ignored arguments as such. (url-handler-directory-file-name): Prefer string comparison over regexp match where either will do. (url-copy-file): Handle integer as third argument as per copy-file. 2019-05-22 Stefan Monnier * lisp/textmodes/sgml-mode.el: Fix lone `>` in sgml text (sgml--syntax-propertize-ppss):New variable and function. (sgml-syntax-propertize-rules): Use it. Don't ignore quotes not followed by a matching quote or a '>' or '<'. (sgml-syntax-propertize): Set up sgml--syntax-propertize-ppss. * test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax): Add test for lone '>'. 2019-05-22 Dmitry Gutov Make xref-find-definitions more customizable * lisp/progmodes/xref.el (xref--show-defs-buffer): New function. Move a bit of logic from xref--show-defs to make it more customizable. (xref--push-markers): New function, extracted from xref--show-xrefs. (xref-show-definitions-function): Set to the new function. 2019-05-22 Dmitry Gutov Separate xref-find-definitions' behavior from other commands * lisp/progmodes/xref.el (xref-show-definitions-function): New variable. (xref--show-defs): Split off from xref--show-xrefs. (xref--find-definitions): Use it. (xref--not-found-error): New function. (xref--show-xrefs): Simplify. Show the list buffer even when there is just one item in the list. Remove the last argument. * lisp/dired-aux.el (dired-do-find-regexp): Update accordingly. 2019-05-22 Paul Eggert Remove fixnum restriction on some display vars This is a minor patch to remove some fixnum restrictions. Many more such patches are needed, but one thing at a time. * doc/emacs/custom.texi (Examining): Update fill-column example. * src/buffer.c (fill-column, left-margin, tab-width) (buffer-saved-size, left-margin-width, right-margin-width) (left-fringe-width, right-fringe-width, scroll-bar-width) (scroll-bar-height, buffer-display-count): Allow any integer; do not restrict to fixnums. * src/character.h (SANE_TAB_WIDTH): Do not assume tab_width is a nonnegative fixnum. (sanitize_tab_width): Take a Lisp_Object integer, not an EMACS_INT. Only use changed. * src/data.c (store_symval_forwarding): Remove unnecessary SYMBOLP since the predicate (e.g., Qintegerp) is always a symbol (leave the test in as an eassert). Avoid assignments inside if-conditions. * src/fileio.c (Fdo_auto_save): Do not assume buffer-saved-size is a fixnum. Avoid undefined behavior on EMACS_INT overflow by multiplying a fixnum by at most 4, not by at most 13. * src/window.c (set_window_buffer): When buffer-display-count is too large for a fixnum, make it a bignum. * src/xdisp.c (FILL_COLUMN_INDICATOR_NEEDED): Remove macro, ... (fill_column_indicator_column): ... replacing with this new function. All uses changed. The function is a bit pickier, to prevent problems with non-character fixnums and columns out of range for int, and to remove the assumption that integers are in fixnum range. (append_space_for_newline, extend_face_to_end_of_line): Avoid undefined behavior with signed integer overflow. Simplify. 2019-05-22 Glenn Morris Merge from origin/emacs-26 b0da915 (origin/emacs-26, emacs-26) Fix a typo in ELisp manual 400907b Add option to disable help completion autoloading (Bug#28607) 122ba16 Don't segfault on force-window-update of deleted window 015b12e Fix typo in ELisp manual eadf044 Remove repeated function call in picture.el 1228a90 ; Fix mm-destroy-parts docstring typo 6cfd68d Fix Hideshow key binding typo in Emacs manual 2019-05-22 Glenn Morris Merge from origin/emacs-26 5d24af8 Remove from docs references to obsolete MULE variables 2bdc419 Do potentially destructive operations in prepare-commit-msg # Conflicts: # src/search.c 2019-05-21 Alexander Gramiak * src/xfont.c (xfont_draw): Allocate the XChar2b array (Bug#35814) 2019-05-21 Alan Third Fix some deprecation notices on macOS 10.14 * src/nsimage.m ([EmacsImage setXBMColor:]): Replace colorSpaceName code. * src/nsmenu.m ([EmacsDialogPanel initWithContentRect:styleMask:]): Remove reference to oneShot. * src/nsterm.h (ns_enable_screen_updates): Remove function prototype. (NSPasteboardTypeString): (NSPasteboardTypeTabularText): (NSControlStateValueOn): (NSControlStateValueOff): (NSBezelStyleRounded): (NSPasteboardTypeURL): Define new names and replace all callers. * src/nsterm.m ([EmacsColor colorUsingDefaultColorSpace]): Replace calls to colorUsingColorSpaceName on macOS > 10.7. ([EmacsView performDragOperation:]): Add FIXME about deprecation. (ns_disable_screen_updates): (ns_enable_screen_updates): Remove functions and all callers. (disable_screen_updates_count): Remove variable. * src/macfont.m (macfont_draw): Use CGContext instead of graphicsPort on macOS >= 10.10 2019-05-21 Paul Eggert Pacify libpng on interlaced images (Bug#35843) * src/image.c (png_set_interlace_handling) [WINDOWSNT]: New function to link. (init_png_functions): Link it. (png_load_body): Call it before calling png_read_update_info. 2019-05-21 Paul Eggert Remove time-date debugging scaffolding Problem reported by Lars Ingebrigtsen in: https://lists.gnu.org/r/emacs-devel/2019-05/msg00721.html * lisp/calendar/time-date.el (date-to-time): Use plain condition-case, not condition-case-unless-debug. 2019-05-21 Federico Tedin Use lexical-binding in tempo.el and add tests For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00395.html * lisp/tempo.el: Use lexical-binding. (tempo-define-template): Expand documentation to mention `tempo-user-elements'. (tempo-local-tags, tempo-collection, tempo-dirty-collection) (tempo-marks, tempo-match-finder): Define with defvar-local. (tempo-named-insertions, tempo-region-start, tempo-region-stop): Make them automatically buffer-local. * test/lisp/tempo-tests.el: Add tests for tempo.el. 2019-05-21 Alan Mackenzie C Mode: Fix indentation of DEFUN's function's argument list. Formally, when DEFUNs still used knr argument lists, these were indented by the syntactic context knr-argdecl-intro (5 columns). Since this is no longer the case, we now just use c-basic-offset (2 columns in "gnu" style). * lisp/progmodes/cc-align.el (c-indent-gnu-DEFUN-intro-cont): Modernize the indentation. Amend the doc string accordingly. 2019-05-20 YAMAMOTO Mitsuharu * src/ftcrfont.c (ftcrfont_open): Skip zero glyph index. 2019-05-20 Stephen Leake Revert recent project-find-file change * lisp/progmodes/project.el (project-find-file): Delete recently added 'filename' arg; just use project-find-file-in. 2019-05-20 Mattias Engdegård Allow zero-argument rx `or' and `seq' forms Make the rx `or' and `seq' forms accept zero arguments to produce a never-matching regexp and an empty string, respectively. * lisp/emacs-lisp/rx.el: Require cl-extra. (rx-constituents, rx-or): Permit zero args. (rx): Amend doc string for `or' and `seq'. * test/lisp/emacs-lisp/rx-tests.el (rx-or, rx-seq): Test the change. * etc/NEWS (Changes in Specialized Modes and Packages): Mention the change. 2019-05-20 Mattias Engdegård Revert "Allow zero-argument rx `or' and `seq' forms" This reverts commit b552fc05c231ca6800330a318d3a74ddd0f5a13c. It caused a bootstrapping failure which I have yet to resolve - sorry. 2019-05-20 Basil L. Contovounesios Improve C and Elisp Git diff hunk headers For discussion, see the following threads: https://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00457.html https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00369.html * autogen.sh: Extend the built-in Git xfuncname pattern 'cpp' to match preprocessor and DEFUN macros, and the 'elisp' pattern to match cl-lib and other top-level defuns. 2019-05-20 Stefan Kangas Use lexical-binding in delim-col.el and add tests Thanks to Basil L. Contovounesios for additional cleanups. For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00177.html * lisp/delim-col.el: Use lexical-binding. * test/lisp/delim-col-tests.el: New file. (delim-col-tests-delimit-colummns-before-after) (delim-col-tests-delimit-columns) (delim-col-tests-delimit-columns-format/nil) (delim-col-tests-delimit-columns-format/padding) (delim-col-tests-delimit-columns-format/separator) (delim-col-tests-delimit-columns-separator) (delim-col-tests-delimit-columns-str-before-after) (delim-col-tests-delimit-columns-str-separator) (delim-col-tests-delimit-rectangle): New unit tests. 2019-05-20 Alan Mackenzie CC Mode: Remove unused code from c-maybe-re-mark-raw-string Acknowledge that when the function is called, it is always at the start of a string, never in the middle or at the end of one. * lisp/progmodes/cc-engine.el (c-maybe-re-mark-raw-string): Reformulate the cond form into a `when' form, with all but the first arm of the cond discarded. 2019-05-20 Lars Ingebrigtsen w32--os-description: Fix previous change * lisp/w32-fns.el (w32--os-description): Fix inadvertant "o" added to the end of the function name in the previous patch (bug#35807). 2019-05-20 Lars Ingebrigtsen Mark nnheader-cancel-timer as obsolete and adjust callers * lisp/gnus/nnheader.el (nnheader-cancel-timer) (nnheader-cancel-function-timers): Mark as obsolete. * lisp/gnus/nntp.el (nntp-with-open-group-function) (nntp-async-stop): Adjust caller. * lisp/gnus/gnus-art.el (gnus-stop-date-timer): Ditto. * lisp/gnus/gnus-async.el (gnus-async-prefetch-next): Ditto. * lisp/gnus/gnus-demon.el (gnus-demon-run-callback) (gnus-demon-cancel): Ditto. * lisp/gnus/mail-source.el (mail-source-report-new-mail): Ditto. * lisp/gnus/nnmaildir.el (nnmaildir-request-accept-article): Ditto. 2019-05-20 Mattias Engdegård Allow zero-argument rx `or' and `seq' forms Make the rx `or' and `seq' forms accept zero arguments to produce a never-matching regexp and an empty string, respectively. * lisp/emacs-lisp/rx.el (rx-constituents, rx-or): Permit zero args. (rx): Amend doc string for `or' and `seq'. * test/lisp/emacs-lisp/rx-tests.el (rx-or, rx-seq): Test the change. * etc/NEWS (Changes in Specialized Modes and Packages): Mention the change. 2019-05-20 Mattias Engdegård Avoid polling in global-auto-revert-mode (bug#35418) Make `auto-revert-avoid-polling' have effect in global-auto-revert-mode. Buffers actually handled by that mode are marked with a non-nil value of `auto-revert--global-mode'. When global-auto-revert-mode is entered, eligible buffers are marked in that way, and hooks are set up to mark new buffers and take care of buffers whose file names change. This way the existing poll-avoidance logic can be used, since the entire set of buffers in auto-revert is known. A new hook, `after-set-visited-file-name-hook', was added to handle the case when the file name of a tracked buffer changes. * lisp/autorevert.el (auto-revert-avoid-polling): Amend doc string. (auto-revert--global-mode): New buffer-local variable. (global-auto-revert-mode): Mark existing buffers and set up hooks when mode is entered; do the opposite when exited. (auto-revert--global-add-current-buffer) (auto-revert--global-adopt-current-buffer) (auto-revert--set-visited-file-name-advice): New functions. (auto-revert--polled-buffers, auto-revert--need-polling-p) (auto-revert-notify-handler) (auto-revert-active-p): Modify logic to cover global-auto-revert-mode. * lisp/files.el (after-set-visited-file-name-hook): New hook. (set-visited-file-name-hook): Call new hook. * test/lisp/autorevert-tests.el (top): Use lexical-binding. (auto-revert-test--write-file, auto-revert-test--buffer-string) (auto-revert-test--wait-for, auto-revert-test--wait-for-buffer-text) (auto-revert-test05-global-notify): New test. * doc/lispref/hooks.texi (Standard Hooks): Mention new hook (in a comment, since it's unclear whether it should actually be documented here) * etc/NEWS (Changes in Specialized Modes and Packages): Update entry. 2019-05-20 Michael Albinus Fix problems in autorevert-tests * test/lisp/autorevert-tests.el (auto-revert--deftest-remote): Fix typo. (auto-revert-test02-auto-revert-deleted-file): On emba, there are no stopped events. 2019-05-19 Paul Eggert Fixes for "Maintainer:" and related lines Mostly, this just removes "Maintainer: emacs-devel@gnu.org" lines, which are not that useful. It also cleans up and regularizes a few similar lines. 2019-05-19 Alexander Gramiak Use HAVE_WINDOW_SYSTEM over HAVE_X11 || HAVE_NTGUI || HAVE_NS * src/keyboard.c (kbd_buffer_get_event, make_lispy_event): Use HAVE_WINDOW_SYSTEM. 2019-05-19 Alexander Gramiak Introduce Emacs_Pix_Container and Emacs_Pix_Context typedefs Emacs_Pix_Container is a pointer to a struct representing pixmap data on the backend. Emacs_Pix_Context is the context for the bitmap/pixmap on the backend. Only w32 currently makes this distinction; they are otherwise the same type. * src/dispextern.h: Remove XImagePtr in favor of using XImage* directly. Rename XImagePtr_or_DC to Emacs_Pix_Context. [HAVE_X_WINDOWS] Alias Emacs_Pix_Container and Emacs_Pix_Context to XImage*. [HAVE_NS] Alias Emacs_Pix_Container and Emacs_Pix_Context to trivial Emacs_Pixmap definition. [HAVE_NTGUI]: Alias Emacs_Pix_Container to XImage* and Emacs_Pix_Context to HDC. * src/dispextern.h: * src/image.c: Use Emacs_Pix_Container over XImagePtr and Emacs_Pix_Context over XImagePtr_or_DC. 2019-05-19 Alexander Gramiak Replace XChar2b with unsigned in all font backends The xfont backend using XChar2b in its API doesn't mean that we should use it everywhere else. * src/dispextern.h (glyph_string): * src/ftcrfont.c (ftcrfont_draw): * src/ftxfont.c (ftxfont_draw): * src/w32term.c (w32_draw_glyphless_glyph_string_foreground): * src/xdisp.c (init_glyph_string, get_char_face_and_encoding) (get_glyph_face_and_encoding, get_char_glyph_code) (fill_gstring_glyph_string, fill_stretch_glyph_string) (normal_char_ascent_descent, gui_get_glyph_overhangs) (compute_overhangs_and_x, gui_produce_glyphs): * src/xfont.c (xfont_get_pcm, xfont_chars_supported, xfont_open) (xfont_encode_char, xfont_text_extents, xfont_draw) * src/xftfont.c (xftfont_draw): * src/xterm.c (x_compute_glyph_string_overhangs) (x_draw_glyphless_glyph_string_foreground): Use unsigned over XChar2b. * src/nsgui.h: * src/w32gui.h: * src/xterm.h: Remove XChar2b, STORE_XCHAR2B, XCHAR2B_BYTE1, and XCHAR2B_BYTE2 typedefs and macros. * src/font.h (font_driver): (ftfont_text_extents) * src/ftcrfont.c (ftcrfont_text_extents): * src/ftfont.c (ftfont_text_extents): * src/macfont.m (macfont_text_extents): * src/nsfont.m (nsfont_text_extents): * src/w32font.h (w32_font_text_extents): * src/font.c (xfont_text_extents): * src/xftfont.c (xftfont_text_extents): Make code parameter const. 2019-05-19 Alexander Gramiak Introduce Emacs_GC struct and typedef * src/dispextern.h [HAVE_X_WINDOWS]: Alias Emacs_GC to XGCValues. [!HAVE_X_WINDOWS]: Define Emacs_GC, GCForeground, and GCBackground. * src/nsgui.h: * src/w32gui.h:Remove obsolete XGCValues, GC, GCForeground, GCBackground, and GCFont definitions. * src/w32fns.c (w32_make_gc): Do not set unused font field. * src/w32term.c: Use Emacs_GC over XGCValues. Do not set unused font field. * src/xfaces.c: Use Emacs_GC over XGCValues and GC. 2019-05-19 Alexander Gramiak Introduce Emacs_Rectangle struct and typedef * src/dispextern.h [HAVE_X_WINDOWS]: Alias Emacs_Rectangle to XRectangle. [!HAVE_X_WINDOWS]: Define Emacs_Rectangle struct. Use Emacs_Rectangle over XRectangle. * src/frame.h (MonitorInfo): * src/msdos.h: * src/w32term.c: * src/xdisp.c: Use Emacs_Rectangle over XRectangle. * src/nsgui.h: * src/w32gui.h: Remove old XRectangle structs. * src/xdisp.c: * src/nsgui.h: * src/w32gui.h: Rename CONVERT_FROM_XRECT and CONVERT_TO_XRECT to CONVERT_FROM_EMACS_RECT and CONVERT_TO_EMACS_RECT respectively. 2019-05-19 Alexander Gramiak Introduce Emacs_Pixmap typedef * src/dispextern.h [HAVE_X_WINDOWS]: Alias Emacs_Pixmap to Pixmap. (image, x_kill_gs_process): Use Emacs_Pixmap over Pixmap. * src/image.c: * src/nsgui.h: * src/nsterm.m: * src/termhooks.h: * src/w32gui.h: * src/w32term.c: * src/w32term.h: * src/xterm.c (x_free_pixmap): Use Emacs_Pixmap over Pixmap. * src/w32gui.h: Remove unused typedef Bitmap. 2019-05-19 Alexander Gramiak Introduce Emacs_Cursor typedef * src/dispextern.h [HAVE_X_WINDOWS]: Define Emacs_Cursor alias. Move the No_Cursor definition from xterm.h. (redisplay_interface): Use Emacs_Cursor over Cursor. * src/nsgui.h: * src/nsterm.h: * src/nsterm.m: * src/w32gui.h: * src/w32term.c: * src/xdisp.c: * src/xterm.c (x_define_frame_cursor): Use Emacs_Cursor over Cursor. 2019-05-19 Alexander Gramiak Introduce Emacs_Color struct and typedef This avoids clashing with the XColor struct from X. * src/dispextern.h [HAVE_X_WINDOWS]: Define Emacs_Color alias. [!HAVE_X_WINDOWS]: Rename XColor compatibility struct to Emacs_Color. Remove unused fields. * src/gtkutil.c: * src/gtkutil.h: * src/image.c: * src/nsterm.h: * src/nsterm.m: * src/termhooks.h: * src/w32fns.c: * src/w32term.c: * src/w32term.h: * src/xfaces.c: * src/xfns.c: * src/xterm.h: Use Emacs_Color over XColor outside of X-specific sections. 2019-05-19 Mattias Engdegård Comment out inexplicable condition in filenotify * lisp/filenotify.el (file-notify-callback): Comment out condition that does not seem to make any sense. All it seems to do is allowing notifications for files on the form DIR/X/X when we really just are watching DIR/X/Y. 2019-05-19 Juri Linkov * lisp/vc/vc-dispatcher.el (vc-do-command): Let-bind inhibit-message to t in active minibuffer. (Bug#34939) 2019-05-19 Juri Linkov Publicize behavior of log-view-diff at beginning/end of active region * lisp/vc/log-view.el (log-view-diff, log-view-diff-changeset): * doc/emacs/maintaining.texi (VC Change Log): Document behavior of log-view-diff at the beginning and the end of the log buffer when the region is active. (Bug#35624) * lisp/vc/vc-git.el (vc-git-print-log): Insert newline at the beginning to enable the feature of diffing with the working revision. 2019-05-19 Lars Ingebrigtsen cus-edit.el: Remove XEmacs compat code * lisp/cus-edit.el (custom-browse-insert-prefix): Remove XEmacs compat code and make obsolete. (custom-group-value-create): Use `insert' directly. * lisp/emacs-lisp/elint.el (elint-check-conditional-form): Don't refer to function that doesn't have an if any more. 2019-05-19 Lars Ingebrigtsen bs.el: Remove XEmacs compat code * lisp/bs.el (bs-mode-font-lock-keywords): Remove XEmacs compat code. (bs-mode-map): Ditto. 2019-05-19 Lars Ingebrigtsen arc-mode.el: Remove XEmacs compat code * lisp/arc-mode.el (archive-mode-map): Remove XEmacs compat code. (archive-summarize-files): Ditto. 2019-05-19 Lars Ingebrigtsen rfc2104.el: Remove XEmacs compat code. * lisp/net/rfc2104.el (rfc2104-string-make-unibyte): Remove XEmacs compat code. 2019-05-19 Lars Ingebrigtsen (mml-generate-mime-1): Remove XEmacs compat code * lisp/gnus/mml.el (mml-generate-mime-1): Remove XEmacs compat code. 2019-05-19 Stephen Leake Minor updates to project.el * lisp/progmodes/project.el (project-find-file): Add optional 'filename' arg. (project--completing-read-strict): Ignore 'default' set to empty string. 2019-05-19 Eric Abrahamsen Fix Gnus group sorting to use gnus-group-list * lisp/gnus/gnus-group.el (gnus-group-sort-flat): As gnus-newsrc-hashtb is now a real (unsorted) hash table, use gnus-group-list to maintain group sort order. (gnus-group-sort-selected-flat): Ditto. * lisp/gnus/gnus-start.el (gnus-subscribe-alphabetically): Simplify function using seq-find. (gnus-subscribe-killed, gnus-subscribe-zombies): Use cl-pushnew to avoid adding duplicates (can happen when un/subscribing multiple times to one group). 2019-05-19 Lars Ingebrigtsen Remove usage of string-to-multibyte from arc-mode.el * lisp/arc-mode.el (arc-insert-unibyte): Rename from insert-unibyte, make into a function, and remove the superfluous string-to-multibyte. Change callers throughout the file. 2019-05-19 Paul Eggert * doc/lispintro/emacs-lisp-intro.texi: Remove euphemism. 2019-05-19 Noam Postavsky Fix dired-omit-files regexp (Bug#35668) * lisp/dired-x.el (dired-omit-files): Match beginning and end of string, rather than beginning and end of line. 2019-05-19 Stefan Monnier * lisp/progmodes/hideshow.el: Simplify mouse binding; Use lexical-binding (hs-set-up-overlay, hs-adjust-block-beginning): Use non-nil default for function variables, so `add-function` can be used on them. (hs-toggle-hiding): Make it work for mouse bindings as well. (hs-minor-mode-map): Use it for the mouse binding. (hs-grok-mode-type): Use bound-and-true-p. (hs-life-goes-on): Use `declare` for the debug spec. (hs-mouse-toggle-hiding): Make it an obsolete alias. 2019-05-19 Michael Albinus * test/lisp/autorevert-tests.el (auto-revert--deftest-remote): Do not handle errors. 2019-05-19 Martin Rudalics New buffer display action function 'display-buffer-in-direction' * lisp/window.el (windows-sharing-edge) (window--try-to-split-window-in-direction) (display-buffer-in-direction): New functions. * doc/lispref/windows.texi (Buffer Display Action Functions): Describe new action function 'display-buffer-in-direction'. (Buffer Display Action Alists): Describe new entry 'direction'. Amend description of 'window' entry. * etc/NEWS: Mention 'display-buffer-in-direction' and 'direction' and 'window' action alist entries. 2019-05-18 YAMAMOTO Mitsuharu Avoid triple buffering with Xdbe in cairo * src/xterm.h (struct x_output): Remove member cr_surface. Add members cr_surface_desired_width and cr_surface_desired_height. (x_cr_destroy_frame_context) [USE_CAIRO]: Add extern. * src/xterm.c (x_free_cr_resources): Remove function. (FRAME_CR_SURFACE) [USE_CAIRO]: Remove macro. (FRAME_CR_SURFACE_DESIRED_WIDTH, FRAME_CR_SURFACE_DESIRED_HEIGHT) [USE_CAIRO]: New macros. (x_cr_destroy_frame_context) [USE_CAIRO]: Rename from x_cr_destroy_surface. All Uses changed. Don't use FRAME_CR_SURFACE. Make non-static. (x_cr_update_surface_desired_size) [USE_CAIRO]: New function. (x_begin_cr_clip) [USE_CAIRO]: Create Xlib surface if Xdbe is in use. Use FRAME_CR_SURFACE_DESIRED_WIDTH and FRAME_CR_SURFACE_DESIRED_HEIGHT. (x_end_cr_clip) [USE_CAIRO]: Call x_mark_frame_dirty if Xdbe is in use. (x_cr_draw_frame, x_cr_export_frames) [USE_CAIRO]: Save and restore cairo context instead of freeing and clearing it. (x_update_begin) [USE_CAIRO]: Don't create cairo surface here. (show_back_buffer) [USE_CAIRO]: Call cairo_surface_flush before swapping. (x_update_end) [USE_CAIRO]: Don't copy image surface if Xdbe is in use. Get image surface by cairo_get_target instead of FRAME_CR_SURFACE. (x_scroll_run) [USE_CAIRO]: Use XCopyArea if Xdbe is in use. (handle_one_xevent) [USE_CAIRO] : Call x_cr_update_surface_desired_size instead of x_cr_destroy_surface. (x_free_frame_resources) [USE_CAIRO]: Call x_cr_destroy_frame_context instead of x_free_cr_resources. * src/xfns.c (set_up_x_back_buffer, tear_down_x_back_buffer) [USE_CAIRO]: Call x_cr_destroy_frame_context. 2019-05-18 Stefan Monnier * lisp/emacs-lisp/package.el: Fix decoding of downloaded files This is a different fix for bug#34909, which should also fix bug#35739. Our downloading code used to automatically decode the result according to the usual heuristics for files. This caused problems when we later needed to save the data in a file that needed to be byte-for-byte equal to the original in order to pass the signature verification, especially because we didn't keep track of which coding-system was used to decode the data. (package--unless-error): New macro extracted from package--with-response-buffer-1, so that we can specify edebug and indent specs. (package--with-response-buffer-1): Use it. More importantly, change code so it runs `body` in a unibyte buffer with undecoded data. (package--download-one-archive): Don't encode with utf-8 since the data is not decoded yet. (describe-package-1): Explicitly decode the readem.txt files here. * lisp/url/url-handlers.el (url-insert-file-contents): Use it. (url-insert): Don't decode if buffer is unibyte. * lisp/url/url-http.el (url-http--insert-file-helper): New function, extracted from url-insert-file-contents. 2019-05-18 Stefan Monnier * lisp/emacs-lisp/package.el: Reduce macrology in ...with-response-buffer (package--with-response-buffer-1): New function, extracted from package--with-response-buffer. (package--with-response-buffer): Use it. 2019-05-18 Mattias Engdegård Fix broken logic in file-notify * lisp/filenotify.el (file-notify-callback): Repair warped condition that didn't match rename-to/from events correctly. 2019-05-18 Paul Eggert * lisp/textmodes/texinfmt.el: Chassell is no longer maintainer. 2019-05-18 Jean-Christophe Helary Bob Chassell passed away * doc/lispintro/emacs-lisp-intro.texi (About the Author): Update. 2019-05-18 Paul Eggert Fix recent Tramp typo that broke the build ‘make bootstrap’ without this patch should reproduce the problem. * lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Autoload zeroconf-init. 2019-05-18 Basil L. Contovounesios Remove XEmacs audio checks from mm-decode.el For discussion, see the following threads: https://lists.gnu.org/archive/html/emacs-devel/2019-03/msg01087.html https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00584.html * lisp/gnus/mm-decode.el (mm-inline-media-tests): Remove no-op media tests for XEmacs features. 2019-05-18 Paul Eggert For SVG, 8192 is the new 256 Prefer librsvg for display of splash.svg When both librsvg and Imagemagick are available, Emacs should prefer librsvg to render SVG images. However, Emacs was using Imagemagick to render its own splash.svg file because image-type-from-file-header returned nil for that file. * lisp/image.el (image-type-from-buffer) (image-type-from-file-header): Look at the first 8192 bytes of the image, not just the first 256. For Emacs’s own splash.svg file, image-type-header-regexps needs to look at 939 bytes. 8192 bytes is a reasonable number nowadays given typical file system design. * test/lisp/image-tests.el (image-tests--emacs-images-directory): New contant. (image-type-from-file-header-test): New test. 2019-05-18 Michael Albinus Bug#35769 * lisp/net/tramp-sh.el: (tramp-maybe-open-connection): Arrange `process-environment' that it doesn't work for local processes. (Bug#35769) 2019-05-18 Alan Mackenzie CC Mode: Handle several consecutive noise macros in declaration contexts. In the bug scenario, the second and subsequent noise macros with parentheses were getting font-lock-type-face. * lisp/progmodes/cc-engine.el (c-end-of-token) (c-forward-noise-clause-not-macro-decl): New functions. (c-find-decl-prefix-search): Handle noise macros by skipping over them. (c-forward-decl-or-cast-1): In the loop checking for types, skip over all consecutive noise macros with parens, not just one. 2019-05-18 Bastien Fix missing declaration in gnus-sum.el * lisp/gnus/gnus-sum.el (gnus-tmp-name): Declare var. 2019-05-18 Eli Zaretskii Fix display of images on MS-Windows broken by a recent commit * src/image.c (initialize_image_type): Test if the type is in Vlibrary_cache up front, and return true without calling the 'init' method if the type was already initialized. 2019-05-18 Michael Albinus Suppress compiler warnings for older Emacsen in tramp-tests.el * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Add error name to test. (tramp-test30-make-process, tramp-test45-unload): Suppress compiler warnings from older Emacsen. 2019-05-18 Michael Albinus Require less packages in Tramp * lisp/net/tramp-compat.el (format-spec): Do not require advice, cl-lib, custom, password-cache, timer and ucs-normalize. * lisp/net/tramp-gvfs.el: Do not require zeroconf. Declare zeroconf-* functions. (tramp-gvfs-enabled): Autoload `zeroconf-init'. * lisp/net/tramp-sh.el: Do not require dired. * lisp/net/tramp.el (tramp-get-debug-buffer): Do not require outline. (tramp-file-name-for-operation): Extend docstring. (tramp-parse-netrc): Do not require netrc. Autoload `netrc-parse'. 2019-05-18 Mattias Engdegård Don't use file notification on non-file buffers Allow non-file buffers to declare that notification on their default-directory is sufficient to know when auto-revert updates are required by setting the new variable `buffer-auto-revert-by-notification' to non-nil. If nil, the default, then auto-revert will poll those buffers instead. (bug#35418). Currently, only Dired sets that variable. * lisp/autorevert.el (auto-revert-buffers): Modify condition for using notification. * lisp/files.el (buffer-auto-revert-by-notification): New variable. * lisp/dired.el (dired-mode): Set buffer-auto-revert-by-notification. * doc/emacs/arevert-xtra.texi (Non-File Buffers): Document new variable. * etc/NEWS (Changes in Specialized Modes and Packages): Describe new variable. 2019-05-18 Lars Ingebrigtsen (epa-file-decode-and-insert): Byte compilation warning fix * lisp/epa-file.el (epa-file-decode-and-insert): Remove superfluous call to `string-to-multibyte string'. 2019-05-18 Michael Albinus * lisp/net/tramp.el (tramp-interrupt-process): Return proper value. 2019-05-18 Eli Zaretskii Remove usage of string-as-unibyte in arc-mode * lisp/arc-mode.el (archive-l-e): Encode with utf-8-emacs-unix instead of using string-as-unibyte. 2019-05-18 Eli Zaretskii Fix visiting and saving UTF-16 encoded XML files * lisp/international/mule.el (sgml-xml-auto-coding-function): When the 'enncoding' tag specifies a UTF-16 encoding, enforce saving the buffer with BOM, per the XML spec. (xml-find-file-coding-system): Recognize UTF-16 encodings with BOM. (Bug#35766) (Bug#8282) * lisp/international/mule-cmds.el (select-safe-coding-system): Don't consider UTF-16 encodings with and without BOM as "different", so as not to annoy users with redundant questions about mismatch between the XML/SGML header and the selected explicit encoding. 2019-05-17 Lars Ingebrigtsen Mitigate byte-compile warning in arc-mode * lisp/arc-mode.el (byte-after): Remove defsubst. Replace all calls to byte-after with get-byte throughout the file, because byte-after gave compilation warnings. 2019-05-17 Eli Zaretskii (hexl-insert-multibyte-char): Avoid using `string-as-unibyte' * lisp/hexl.el (hexl-insert-multibyte-char): Avoid using `string-as-unibyte' in the fallback case. 2019-05-17 Lars Ingebrigtsen (dirtrack-toggle, dirtrackp): Remove obsolete aliases * lisp/dirtrack.el (dirtrack-toggle, dirtrackp): Remove function/variable aliases declared obsolete in Emacs 23.1 (and that issued a byte-compile warning). 2019-05-17 Paul Eggert Clean up and simplify image-type setup This also fixes an unlikely hang involving a circular image description. * src/dispextern.h (struct image.type): Now pointer-to-const. * src/image.c (struct image_type.init) [!WINDOWSNT]: Omit. (IMAGE_TYPE_INIT): New macro. (image_types): Now a small array-of-const, not a pointer. (CACHE_IMAGE_TYPE): Remove; the code’s simpler without it. (ADD_IMAGE_TYPE): Remove this macro, replacing with ... (add_image_type): ... this equivalent function. All uses changed. (define_image_type): Remove. All uses removed. (valid_image_p): Use FOR_EACH_TAIL_SAFE to avoid Emacs hanging if the user creates a circular description of an image. (xbm_type, xpm_type, pbm_type, png_type, jpeg_type, tiff_type) (gif_type, imagemagick_type, svg_type, gs_type): Remove; now done by image_types. (init_imagemagick_functions): Remove decl of nonexistent function. (gs_clear_image): Remove; all uses replaced by image_clear_image. (initialize_image_type): New function, which captures a lot of the previously-scattered WINDOWSNT ifdefs. (lookup_image_type): Use it. (reset_image_types): Remove. All uses removed. (syms_of_image): Don’t worry about ignoring image_types for pdumper, since it’s a constant now. 2019-05-17 Stefan Monnier * lisp/gnus/gnus-sum.el (gnus-tmp-thread): New var The recent change to use lexical-binding introduced a bug because gnus-summary-line-format-alist refers to variable `thread` which is now lexical and hence not available there any more. Replace it with a dynamically scoped var `gnus-tmp-thread` as was already done with all other vars. (gnus-summary-line-format-alist): Use it instead of `thread`. (gnus-summary-prepare-threads): Bind it around call to (eval gnus-summary-line-format-spec). 2019-05-17 Lars Ingebrigtsen Move Info-edit-* commands from info.el to obsolete/info-edit.el * lisp/info.el: Move Info-edit-* commands to obsolete/info-edit.el. * lisp/obsolete/info-edit.el: New file. 2019-05-17 Lars Ingebrigtsen Use cl-assert instead of assert in ps-print.el * lisp/ps-print.el (ps-begin-job): Use cl-assert instead of assert and require cl-lib. 2019-05-17 Lars Ingebrigtsen (ps-begin-job): Remove two unneeded string-as-unibyte calls * lisp/ps-print.el (ps-begin-job): Remove two unneeded string-as-unibyte calls to avoid byte compilation warnings. 2019-05-17 Eli Zaretskii Fix a recent commit in select.el * lisp/select.el (gui-get-selection): Revert a recent incorrect change. Add a comment explaining what we are trying to do with C_STRING and why. (xselect--encode-string): Add a comment explaining what we are trying to do with C_STRING and why. 2019-05-16 Lars Ingebrigtsen Remove obsolete example functions from imenu.el * lisp/imenu.el (imenu-example--create-c-index) (imenu-example--function-name-regexp-c) (imenu-example--create-lisp-index) (imenu-example--lisp-extract-index-name): Remove functions (and internal variables used by those functions) declared obsolete in Emacs 23.2. The functions gave compilation warnings. 2019-05-16 Lars Ingebrigtsen Remove unused internal function completion-pcm--optimize-pattern * lisp/minibuffer.el (completion-pcm--optimize-pattern): Remove unused internal function (that signaled a compilation warning). 2019-05-16 Stefan Monnier * lisp/gnus: Remove assumptions about mail-header being a vector Use `mail-header-p` and `make-full-mail-header` instead of `vectorp` and `vector`, respectively. * lisp/gnus/message.el (message-cite-original-1, message-reply) (message-followup): * lisp/gnus/gnus-sum.el (gnus-get-newsgroup-headers): Use make-full-mail-header instead of `vector`. (gnus--dummy-mail-header): New const, using make-full-mail-header. (gnus-update-summary-mark-positions): Use it instead of an immediate vector. (gnus-set-mode-line, gnus-summary-article-pseudo-p) (gnus-summary-article-subject, gnus-summary-insert-subject) (gnus-summary-find-subject, gnus-summary-goto-subject) (gnus-summary-limit-to-age, gnus-summary-find-matching) (gnus-summary-mark-article-as-unread, gnus-summary-mark-article) (gnus-summary-save-article): * lisp/gnus/gnus.el (gnus-news-group-p): Use mail-header-p instead of vectorp. 2019-05-16 Lars Ingebrigtsen Declare fileloop-continue in dired-aux to avoid warning * lisp/dired-aux.el (fileloop-continue): Declare to avoid compilation warning. `fileloop-initialize-search' (used before -continue) will load fileloop.el. 2019-05-16 Lars Ingebrigtsen Avoind string-as-multibyte in ps-output-string-prim * lisp/ps-print.el (ps-output-string-prim): Avoid `string-as-multibyte', and encode as utf-8 instead if multibyte. 2019-05-16 Lars Ingebrigtsen (gui-get-selection): Avoid using `string-to-multibyte' * lisp/select.el (gui-get-selection): Avoid using `string-to-multibyte' -- instead encode as `eight-bit' if the string is unibyte. 2019-05-16 Lars Ingebrigtsen Declare two w32 functions to avoid byte compilation warnings * lisp/w32-fns.el (w32-version, w32-read-registry): Declare these functions to avoid byte compilation warnings. The functions should be loaded when `w32--os-description' is called, as far as I can tell. 2019-05-16 Lars Ingebrigtsen Remove obsolete epg functions * lisp/epg.el (epg-start-sign-keys, epg-sign-keys): Remove functions declared obsolete since Emacs 23.1. 2019-05-16 Lars Ingebrigtsen Declare rectangle functions in mouse.el to avoid warnings * lisp/mouse.el (rectangle-dimensions) (rectangle-position-as-coordinates, rectangle-intersect-p): Declare these functions from rect.el to avoid compilation warnings. 2019-05-16 Stefan Monnier * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix docstring of accessors. 2019-05-16 Stefan Monnier * lisp/gnus/nnheader.el (mail-header-*): Define via cl-defstruct This also has the side effect that the accessors are now defined as proper functions rather than as macros, so they can be passed to `mapcar` etc.. * lisp/gnus/nnheader.el (mail-header-number, mail-header-subject) (mail-header-from, mail-header-date, mail-header-id) (mail-header-references, mail-header-chars, mail-header-lines) (mail-header-xref, mail-header-extra): Define via cl-defstruct. (mail-header-set-number, mail-header-set-subject) (mail-header-set-from, mail-header-set-date, mail-header-set-id) (mail-header-set-message-id, mail-header-set-references) (mail-header-set-chars, mail-header-set-lines, mail-header-set-xref) (mail-header-set-extra): Remove, use `setf` instead. All callers adjusted. * lisp/gnus/gnus-sum.el (gnus-select-newsgroup) (gnus-summary-pop-limit, gnus-summary-limit-mark-excluded-as-read) (gnus-summary-find-matching, gnus-find-matching-articles): * lisp/gnus/gnus-kill.el (gnus-apply-kill-file-internal, gnus-execute): * lisp/gnus/gnus-score.el (gnus-score-adaptive): Eta-reduce, now that mail-header-FIELD are functions. 2019-05-16 Katsumi Yamaoka Fix ffap behavior in the Gnus group buffer (bug#35693) * lisp/ffap.el (ffap-file-exists-string, ffap-file-at-point): Don't recognize "" as a path or a file name (bug#35693). 2019-05-16 Stefan Monnier * lisp/international/mule.el (set-buffer-file-coding-system): Don't burp on iso-2022-7bit 2019-05-16 Paul Pogonyshev Make `package' not "uninhibit" messages (Bug#34037) * lisp/emacs-lisp/package.el: Don't let-bind inhibit-message to a different value if it was non-nil. 2019-05-16 Basil L. Contovounesios Fix gnus-summary-expand-window placement of point * lisp/gnus/gnus-win.el (gnus-configure-frame): Replace switch-to-buffer with pop-to-buffer-same-window to avoid messing with point. (bug#35613) 2019-05-16 Basil L. Contovounesios Add docstring to project--read-file-cpd-relative For discussion, see thread starting at: https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00460.html * lisp/progmodes/project.el (project--read-file-cpd-relative): Describe arglist as promised by user option project-read-file-name-function. 2019-05-16 Stefan Monnier * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-test--symbol-macrolet): New test 2019-05-16 Eric Abrahamsen Fix stray call to make-vector * lisp/gnus/gnus-agent.el (gnus-agent-fetch-group-1): This is meant to be a hash table. 2019-05-16 Stefan Monnier * lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand) : Rewrite The previous code had 2 problems: - It converted `setq` to `setf` in unrelated cases such as (cl-symbol-macrolet ((x 1)) (setq (car foo) bar)) - It macroexpanded places before `setf` had a chance to see if they have a gv-expander. 2019-05-16 Paul Eggert Distribute test cases in tarballs by default * INSTALL, INSTALL.REPO, admin/make-tarball.txt: Mention ‘make check’. * configure.ac: Update comment. * etc/NEWS: Say that tarballs have a test directory. * make-dist (with_tests): Default to "yes". Add an option --no-tests to make it "no". 2019-05-16 Lars Ingebrigtsen Make shr-rescale-image respect get-buffer-window again * lisp/net/shr.el (shr-rescale-image): Partially revert previous change -- ressurrect the check for `get-buffer-window'. 2019-05-16 Ivan Shmakov Improve user convenience of the rcirc debug buffer * lisp/net/rcirc.el (rcirc-debug): Ignore rcirc-debug-buffer read-only status. Restore point after insertion unless it was at the end. Ensure a newline before each [lead]. Replace %Y-%m-%d with the equivalent %F in format-time-string; remove useless concat. (Bug#32470) 2019-05-16 Noam Postavsky Accept NO-PROPERTIES in thing-at-point aliases (Bug#35491) * lisp/thingatpt.el (word-at-point, sentence-at-point): Accept and pass NO-PROPERTIES to thing-at-point. * etc/NEWS: Announce change. 2019-05-15 Michael Albinus * lisp/net/tramp.el (tramp-yesno-prompt-regexp): Extend. 2019-05-15 Stefan Monnier * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-rules): Fix typo * test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax): New corresponding test. 2019-05-15 Noam Postavsky Fix merge of sgml-syntax-propertize-rules During the merge of emacs-26, the sgml-syntax-propertize-rules part of 2019-01-17 "* lisp/textmodes/sgml-mode.el: Try and fix bug#33887." got lost in the conflict against 2019-05-09 "Recognize single quote attribute values in nxml and sgml (Bug#35381)". * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-rules): Reapply the 2019-01-17 change to speed up sgml-syntax-propertize-rules, taking into account the 2019-05-09 which means we have to handle single quotes as well. 2019-05-15 Anders Lindgren Fix diff-mode face problem when used in terminals (Bug#35695) In a terminal supporting 256 colors, both diff-added and diff-removed was mapped to the same greyish color. * lisp/vc/diff-mode.el: Modify the colors of diff-removed, diff-added, diff-refine-removed, and diff-refine-added when used in a 256 color environment. 2019-05-15 Stefan Monnier * lisp/gnus/gnus-sum.el: Use lexical-binding (gnus-summary-make-menu-bar, gnus-summary-display-make-predicate) (gnus-summary-refer-thread, gnus-summary-find-matching) (gnus-summary-edit-article, gnus-summary-sort): Replace backquoted lambda with closure. (gnus-summary-article-header): Use define-inline rather than defmacro, so it's also a function. (gnus-save-hidden-threads, gnus-summary-iterate, gnus-with-article): Use `declare`. (gnus-thread-sort-by-random): Simplify. (gnus-summary-display-article, gnus-summary-limit-to-address): Hoist common code outside of `if`. 2019-05-15 Paul Eggert Tune reading of radix integers This improves the performance of (read "%xFF") by about 25% on my platform. * src/lread.c: Include , so that we can better document buffer sizes of arguments. (invalid_radix_integer_format, stackbufsize): New constants. (free_contents): Remove. All uses removed. (invalid_radix_integer): New function. (read_integer): New arg STACKBUF. Assume radix is in range. All uses changed. Use STACKBUF to avoid calling malloc in the usual case. Use grow_read_buffer to simplify. (read1): Tune. Improve quality of diagnostic when MOST_POSITIVE_FIXNUM < radix <= EMACS_INT_MAX. 2019-05-15 Stefan Monnier * lisp/mail/footnote.el (footnote-prefix): Docstring typo. 2019-05-15 Mattias Engdegård Add standard unmatchable regexp Add `regexp-unmatchable' as a standard unmatchable regexp, defined as "\\`a\\`". Use it where such a regexp is needed, replacing slower expressions in several places. From a suggestion by Philippe Schnoebelen. * lisp/subr.el (regexp-unmatchable): New defconst. * etc/NEWS (Lisp Changes): Mention `regexp-unmatchable'. * doc/lispref/searching.texi (Regexp Functions): Document it. * lisp/emacs-lisp/regexp-opt.el (regexp-opt) * lisp/progmodes/cc-defs.el (cc-conditional-require-after-load) (c-make-keywords-re) * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1) (c-forward-<>-arglist-recur, c-forward-decl-or-cast-1) (c-looking-at-decl-block) * lisp/progmodes/cc-fonts.el (c-doc-line-join-re) (c-doc-bright-comment-start-re) * lisp/progmodes/cc-langs.el (c-populate-syntax-table) (c-assignment-op-regexp) (c-block-comment-ender-regexp, c-font-lock-comment-end-skip) (c-block-comment-start-regexp, c-line-comment-start-regexp) (c-doc-comment-start-regexp, c-decl-start-colon-kwd-re) (c-type-decl-prefix-key, c-type-decl-operator-prefix-key) (c-pre-id-bracelist-key, c-enum-clause-introduction-re) (c-nonlabel-token-2-key) * lisp/progmodes/cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end) * lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re) (c-noise-macro-name-re, c-make-noise-macro-regexps) * lisp/progmodes/octave.el (octave-help-mode) * lisp/vc/vc-bzr.el (vc-bzr-log-view-mode, vc-bzr-revision-completion-table) * lisp/vc/vc-git.el (vc-git-log-view-mode) * lisp/vc/vc-hg.el (vc-hg-log-view-mode) * lisp/vc/vc-mtn.el (vc-mtn-log-view-mode): Use `regexp-unmatchable'. * lisp/textmodes/ispell.el (ispell-non-empty-string): Use `regexp-unmatchable', fixing a broken never-match regexp. 2019-05-15 John Shahid Avoid infinitly looping in tramp-interrupt-process (bug#35506) * lisp/net/tramp.el (tramp-interrupt-process): Remove with-timeout. Instead pass a timeout to tramp-accept-process-output. tramp-accept-process-output stops timers from running which makes the with-timeout ineffective. 2019-05-15 Alan Mackenzie CC Mode: fix indentation in switch statement after "case a(1):". * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): Enhance the analysis of case labels to handle parenthesised expressions (e.g. macros). * lisp/progmodes/cc-langs.el (c-nonlabel-nonparen-token-key): New lang const and lang var. 2019-05-15 Lars Ingebrigtsen Describe error data in url-retrieve better * lisp/url/url.el (url-retrieve): Describe the error data more in depth (bug#25735). 2019-05-14 Lars Ingebrigtsen Don't have url-basic-auth bug out when called with an URL string * lisp/url/url-auth.el (url-basic-auth): Pass the parsed URL object to the prompting function instead of the parameter that's possibly a string (bug#26708). Passing url-basic-auth with a string parameter would fail if passed a non-parsed URL. 2019-05-14 Lars Ingebrigtsen Fix obscure HTTP chunked parsing problem * lisp/url/url-http.el (url-http-chunked-encoding-after-change-function): Ensure that we parse the entire initial chunked header as the length (bug#35658). 2019-05-14 Lars Ingebrigtsen Indent url-http-chunked-encoding-after-change-function 2019-05-14 Thomas Fitzsimmons Fix url-auth prompts when realm is empty * lisp/url/url-auth.el (url-get-authentication): When realm is empty, use the entire URL in the prompt (bug#35688). 2019-05-14 Lars Ingebrigtsen Make image scaling work without imagemagick support in eww * lisp/net/shr.el (shr-rescale-image): Emacs has native image scaling now, so images can be rescaled without imagemagick support. 2019-05-14 Glenn Morris Merge from origin/emacs-26 02bee78 Let dir locals for more specific modes override those from less b1235f9 Improve documentation of Hexl mode 32d1813 Fix description of (move-to-column t) when column is ... 0397b7c ; Fix smtpmail-stream-type docstring 7dab3ee Recognize single quote attribute values in nxml and sgml (Bug... e4cde42 Disable extra display of in nxml-mode (Bug#32897) ca14dd1 Fix nxml-get-inside (Bug#32003) e7ab351 Fix positioning client buffer as instructed by emacsclient # Conflicts: # lisp/files.el # lisp/textmodes/sgml-mode.el 2019-05-14 Juri Linkov * lisp/progmodes/project.el (project-read-file-name-function): Fix type. 2019-05-14 Stefan Monnier * lisp/savehist.el: Use lexical-binding Remove redundant :group args. (savehist-no-conversion): Remove constant. (savehist-save): Use savehist-coding-system instead since it's no slower. 2019-05-13 Paul Eggert Default to disabling ImageMagick (Bug#33587) ImageMagick has continuing stability and security problems, suggesting that 'configure' should disable it by default. See Glenn Morris's notes at: https://lists.gnu.org/r/emacs-devel/2018-12/msg00036.html * INSTALL, etc/NEWS, nt/INSTALL.W64: Mention this. * configure.ac (imagemagick): Default to off. 2019-05-13 Dmitry Gutov Allow customizing the display of project file names when reading To hopefully resolve a long-running discussion (https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00162.html). * lisp/progmodes/project.el (project-read-file-name-function): New variable. (project--read-file-absolute, project--read-file-cpd-relative): New functions, possible values for the above. (project-find-file-in): Use the introduced variable. (project--completing-read-strict): Retain just the logic that fits the name. 2019-05-13 YAMAMOTO Mitsuharu Avoid artifacts in ftx and ftcr font backend drivers * src/ftcrfont.c (ftcrfont_open): * src/ftfont.c (ftfont_open2): Make font->height equal to sum of font->ascent and font->descent. Respect :minspace property. (ftfont_open2): Remove redundant assignment. (syms_of_ftfont) : New DEFSYM. 2019-05-13 Basil L. Contovounesios Fix mail-header-separator font lock in message.el * lisp/gnus/message.el (message-font-lock-keywords): Dynamically font lock mail-header-separator, in case it changes. (bug#34898) 2019-05-13 Kévin Le Gouguec Extract common code for adding text properties * lisp/font-lock.el (font-lock--add-text-property): New function. (font-lock-prepend-text-property) (font-lock-append-text-property): Use it. (Bug#35476) 2019-05-13 Kévin Le Gouguec Stop splicing anonymous faces in font-lock-append-text-property This is the same fix as 2019-04-29 "Refrain from splicing anonymous faces in text properties", which was only applied to font-lock-prepend-text-property. * lisp/font-lock.el (font-lock-append-text-property): Distinguish list of faces from property list. * test/lisp/font-lock-tests.el: New test suite. (Bug#35476) 2019-05-13 Basil L. Contovounesios Do not hard-code message-mode keys in docstring * lisp/gnus/message.el (message-mode): Replace hard-coded bindings in docstring with summary of message-mode-map. (bug#31388) 2019-05-13 Basil L. Contovounesios Fix last change to message-signature :type * lisp/gnus/message.el (message-signature): List more specific :type alternatives before more general ones, as per "(elisp) Composite Types". 2019-05-13 Robert Pluim Document nil value of message-signature and mail-signature * lisp/gnus/message.el (message-signature): Allow nil as a customizable value, and describe its effect. * lisp/mail/sendmail.el (mail-signature): Describe effect of nil value (bug#32680). 2019-05-13 Juri Linkov * lisp/vc/log-view.el (log-view-diff-common): Use the previous revision only when the end of the region is on a line after the last entry. (Bug#35624) 2019-05-13 Alexandre Garreau [PATCH 1/1] Adds variable 'eww-accept-content-types' * lisp/gnus/message.el (message-simplify-subject): Decouple simplification from "Re:" adding (bug#33200). (message-reply): Add the "Re:"'s here. (message-followup): And here. 2019-05-13 Lars Ingebrigtsen Make mml respect the "recipient-filename" parameter * lisp/gnus/mml.el (mml-insert-mime-headers): Implement the already-documented "recipient-filename" parameter (bug#34654). 2019-05-13 Lars Ingebrigtsen Make eww understand #fragment URLs at point interactively * lisp/net/eww.el (eww-suggest-uris): Use thing-at-point-url-at-point instead of url-get-url-at-point (bug#31927) because it's much better at guessing what the URL actually is (especially with #fragments). 2019-05-13 Paul Eggert Fix broken build on m68k The GCC + valgrind fix caused the m68k build to fail (Bug#35711). Simplify string allocation a bit to make similar problems less likely in the future. * src/alloc.c (sdata, SDATA_NBYTES, SDATA_DATA) [GC_CHECK_STRING_BYTES]: Use the same implementation as with !GC_CHECK_STRING_BYTES, as the special case is no longer needed. (SDATA_ALIGN): New constant. (SDATA_SIZE): Remove this macro, replacing with ... (sdata_size): ... this new function. All uses changed. Properly account for sizes and alignments even in the m68k case, and even if GC_CHECK_STRING_BYTES is not defined. 2019-05-13 Lars Ingebrigtsen Add a comment about the previous shr change 2019-05-13 Lars Ingebrigtsen Fix problems in shr when indenting tables * lisp/net/shr.el (shr-mark-fill, shr-insert-table): Fix problems when block-quoting/
  • -ing a table -- the indentation/prefix was inserted twice (bug#32277). 2019-05-13 Federico Tedin (tiny change) Use a more specific Accepts header in eww * lisp/net/eww.el (eww-accept-content-types): New variable. (eww): Use it. (eww-reload): Use it. (bug#33002). 2019-05-12 Xu Chunyang (eww-follow-link): Record the location properly when following #links * lisp/net/eww.el (eww-follow-link): Record the location properly when following #links (bug#35445). 2019-05-12 Stefan Monnier * lisp/emacs-lisp/package.el: Add `all` to package-check-signature (package-check-signature): Add `all` option. (package--check-signature-content): Adjust accordingly. 2019-05-12 Noam Postavsky Improve printing for named keyboard macros (Bug#35486) * lisp/macros.el (macros--insert-vector-macro): New function, extracted from insert-kbd-macro. (insert-kbd-macro): Use it and kmacro-extract-lambda to produce nicer expressions for macros produced by kmacro-lambda-form. 2019-05-12 Noam Postavsky Use remapping in ffap-bindings (Bug#35577) * lisp/ffap.el (ffap-bindings): Bind to the [remap COMMAND] instead of hardcoding the default keybindings. This better adapts better if non-default are used. And lets the original keybindings be remembered, so that, e.g., \[find-file] in docstrings will still be substituted with C-x C-f (even though that binding has been remapped to find-file-at-point. 2019-05-12 Basil L. Contovounesios Fix Gnus summary widget navigation across frames * lisp/gnus/gnus-sum.el (gnus-summary-widget-forward) (gnus-summary-widget-backward): Signal more informative error if article window is not found. Consider other frames displaying article buffer, and raise its frame before navigating its widgets. (bug#35565) * lisp/gnus/gnus-win.el (gnus-get-buffer-window): Simplify and add docstring. 2019-05-12 Basil L. Contovounesios Make application/x-patch inlinable in mm-decode.el * lisp/gnus/mm-decode.el (mm-inline-media-tests, mm-inlined-types): Include application/x-patch as a synonym of text/x-patch and text/x-diff. (bug#35236) 2019-05-12 Basil L. Contovounesios Fix some gnus-msg.el variables (bug#35239) * lisp/gnus/gnus-msg.el (gnus-gcc-externalize-attachments): Fix custom :type. (gnus-debug-files, gnus-debug-exclude-variables): Mark variables that have been unused since Emacs 24.1 as obsolete. (gnus-check-before-posting): Remove unused variable. 2019-05-11 Mauro Aranda Use characters, not symbols for table-cell-bindings * lisp/textmodes/table.el (table-cell-bindings): Add missing '?', to avoid confusion between symbols and characters in bindings. (Bug#35533) 2019-05-11 YAMAMOTO Mitsuharu Document font backends for Cairo and/or HarfBuzz * doc/lispref/frames.texi (Font and Color Parameters): Mention xfthb, ftcr, and ftcrhb font backends. 2019-05-11 YAMAMOTO Mitsuharu * src/xfns.c (x_create_tip_frame): Register font drivers as in normal frames. 2019-05-10 Mark Oteiza Generate some repetitive WordStar code with macros * lisp/obsolete/ws-mode.el (ws-set-marker-0, ws-set-marker-1): (ws-set-marker-2, ws-set-marker-3, ws-set-marker-4, ws-set-marker-5): (ws-set-marker-6, ws-set-marker-7, ws-set-marker-8, ws-set-marker-9): (ws-find-marker-0, ws-find-marker-1, ws-find-marker-2, ws-find-marker-3): (ws-find-marker-4, ws-find-marker-5, ws-find-marker-6, ws-find-marker-7): (ws-find-marker-8, ws-find-marker-9): Remove. (ws-set-marker, ws-find-marker): New macros. Use them. 2019-05-10 Alexander Gramiak Convert Free_Pixmap macro into terminal hook * src/termhooks.h (terminal) [HAVE_WINDOW_SYSTEM]: New terminal hook free_pixmap. * src/image.c: Replace Free_Pixmap with free_pixmap. * src/msdos.h (FRAME_X_DISPLAY): * src/nsgui.h (Display): * src/nsterm.h (FRAME_NS_DISPLAY, FRAME_X_DISPLAY, FRAME_X_SCREEN) (FRAME_X_VISUAL): * src/w32term.h (FRAME_X_DISPLAY): Remove unused X-compatibility macros and typedefs. * src/nsterm.m: * src/w32term.c: * src/xterm.c: Implement and set free_pixmap hook. 2019-05-10 Alexander Gramiak Remove display member of glyph_string This member has little value even on X, and it leaks internal backend details to the glyph_string struct. * src/dispextern.h (glyph_string): Remove X display member. * src/xdisp.c (init_glyph_string): Remove initialization of display. * src/xfont.c (xfont_draw): * src/xterm.c: Use FRAME_X_DISPLAY (s->f) instead of display member. 2019-05-10 Stefan Monnier * lisp/help.el (help--read-key-sequence): Handle `switch-frame' events If you do `C-h k ... mouse-1 in other frame` (at least if you have a focus that follows the mouse), then additionally to the down-mouse-1 and mouse-1 events, a `switch-frame` event (and `select-window` event as well sometimes) is generated. When `read-key-sequence` is called with nil for `can-return-switch-frame`, this event is not returned but kept for later, which causes a subsequent `sit-for` to return nil immediately. This interfered without our "wait for double-click" which in turn prevented us from stopping after the mouse-1 click, getting stuck waiting for something else instead. (help--read-key-sequence): Pass a non-nil `can-return-switch-frame`, so the subsequent `sit-for` returns more trustworthy information. 2019-05-10 Michael Albinus Handle subdomains in Tramp ad-hoc proxies * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Add proper regexps to `tramp-default-proxies-alist'. 2019-05-10 Noam Postavsky Stop using message-default-charset (Bug#35370) In 2016-02-14 "Remove compat code for older Emacsen", message-default-charset was obsoleted, and a couple of uses were removed, but others were left behind. * lisp/gnus/message.el (message-send-mail) (message-send-news, message-do-fcc) (message-encode-message-body): * lisp/gnus/mml.el (mml-to-mime): Stop using message-default-charset. 2019-05-10 Alan Mackenzie Optimize CC Mode a bit for repetitive insertion and replace-regexp This is mainly by enhancing a parse-partial-sexp cache to retain recently calculated values. Also, there are several miscellaneous optimizations and bug fixes. * lisp/progmodes/cc-engine.el (c-state-semi-nonlit-near-cache): New buffer local variable. (c-state-semi-trim-near-cache, c-state-semi-get-near-cache-entry) (c-state-semi-put-near-cache-entry, c-state-semi-trim-cache): New functions. (c-state-semi-pp-to-literal, c-state-full-pp-to-literal): Use the new "near" cache. (c-parse-ps-state-below): Use the new function c-state-semi-trim-cache. (c-before-change-check-<>-operators): Check simply for < or > in the neighbourhood before doing more expensive processing. (c-maybe-re-mark-raw-string): Give a backward search limit to an operation which was needlessly lacking one. * lisp/progmodes/cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end): Check a certain regexp is valid before performing the (somewhat expensive) actions of these functions. (c-fl-decl-start): In the search for a C++ lambda capture list, replace (slow) calculation of c-parse-state by a (less slow) c-go-up-list-backward. 2019-05-10 Alan Mackenzie Make uncomment-region remove obtrusive spaces before tabs. These spaces were typically inserted earlier by comment-region. This patch makes these two complementary functions closer to inverses. * lisp/newcomment.el (uncomment-region-default-1): Remove spaces before a tab where the comment opener has just been removed. 2019-05-09 Michael Heerdegen Fix alist-get gv setter not returning VAL This fixes Bug#35546. * lisp/emacs-lisp/gv.el (alist-get): Make setter return the set value to preserve 'setf' semantics. 2019-05-09 Stefan Monnier * lisp/mail/footnote.el: Avoid regexp-opt-charset, which is not autoloaded. (footnote-hebrew-numeric-regex): Use rx-to-string instead. 2019-05-09 Michael Albinus Fix an error in tramp-vc-file-name-handler * lisp/net/tramp.el (tramp-accept-process-output, tramp-send-string): * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band) (tramp-sh-handle-make-process): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-file-acl, tramp-smb-handle-process-file) (tramp-smb-handle-set-file-acl) (tramp-smb-handle-start-file-process): Do not suppress timers. * lisp/net/tramp-sh.el (tramp-vc-file-name-handler): Check, that `tramp-file-name-for-operation' returns a proper Tramp file. 2019-05-09 Michael Albinus * test/lisp/net/tramp-tests.el (cl-lib): Require instead of cl-seq. 2019-05-08 Stefan Monnier * lisp/emacs-lisp/syntax.el (syntax-propertize): `ignore` is like nil (syntax-ppss-after-change-function): Mark it as obsolete. * lisp/font-lock.el (font-lock-apply-syntactic-highlight): Use syntax-ppss-flush-cache instead. 2019-05-08 Paul Eggert Port LIBRSVG_CHECK_VERSION fix to picky cpp * src/image.c (LIBRSVG_CHECK_VERSION): Define to yield false if it isn’t already defined. (svg_load_image): Port to C preprocessors that check the syntax of the entire preprocessing expression before evaluating any of it. 2019-05-08 Glenn Morris Merge from origin/emacs-26 1c6484e (origin/emacs-26) Fix incorrect cloning of eieio-instance-inh... 37436fe Fix cloning of eieio-named objects (Bug#22840) fb65a36 Fix ibuffer-unmark-backward synopsis (bug#35572) f77bd2b ; * src/lisp.h (DEFSYM): Fix inaccurate comment. 3b86e0b Clarify handling of long options (Bug#24949) 04340a8 Improve documentation of the daemon and emacsclient 3e29de2 * etc/NEWS.24: Belatedly announce delete-consecutive-dups. 2019-05-08 Glenn Morris Merge from origin/emacs-26 ec02c73 Update process filter example (Bug#35044) 2019-05-08 Eli Zaretskii Fix compilation with old versions of librsvg * src/image.c (svg_load_image): Use LIBRSVG_CHECK_VERSION only if it's defined; it isn't in old versions of librsvg. 2019-05-08 Michael Albinus Skip tramp-test10-write-region-file-precious-flag for Emacs < 27 * test/lisp/net/tramp-tests.el (tramp-test10-write-region-file-precious-flag): Skip for Emacs < 27. 2019-05-08 Jonathan Tomer Don't rewrite buffer contents after saving by rename (Bug#35497) * lisp/files.el (basic-save-buffer-2): Don't rewrite file contents after saving-by-renaming. (Bug#35497) * test/lisp/files-tests.el (files-tests-dont-rewrite-precious-files): * test/lisp/net/tramp-tests.el (tramp-test10-write-region-file-precious-flag): Regression tests for this change. 2019-05-07 Eli Zaretskii Add an assertion to xdisp.c * src/xdisp.c (display_mode_element): Add an assertion where we assume that 'string' returned by decode_mode_spec is always either a Lisp string or nil. 2019-05-07 Juri Linkov * lisp/progmodes/flymake.el: Obsolete variable flymake-start-on-newline (flymake-start-syntax-check-on-newline): Mark it obsolete. (flymake-after-change-function): Remove obsolete variable flymake-start-syntax-check-on-newline (temporarily renamed to flymake-start-on-newline). (Bug#34294) * doc/misc/flymake.texi: Remove obsolete variable. 2019-05-07 Paul Eggert Pacify GCC 9.1 * src/intervals.c (set_intervals_multibyte_1): Omit unused temps. * src/xdisp.c (display_mode_element): Use !NILP instead of STRINGP. This convinces GCC we’re not dereferencing a possibly-null pointer, and should be a bit faster anyway. 2019-05-07 John Shahid Fix setting and resetting of scroll-with-delete The start and end lines of the scroll region must to be in the range [0,term-height). There are few placees that incorrectly set the end line of the scroll region to term-height which is outside the valid range. Combined with another off-by-one error in term-set-scroll-region's clamping logic, this would cause term-scroll-with-delete to be unnecessarily turned on. * lisp/term.el (term-scroll-start,term-scroll-end): Use defvar-local to define the variables and document the valid range of values that the variables can take. (term--last-line): New function to calculate the 0-based index of the last line. (term--reset-scroll-region): New function to reset the scroll region to the full height of the terminal. (term-mode,term-reset-size,term-reset-terminal): Call term--reset-scroll-region to reset the scroll region. (term-set-scroll-region): Fix the off-by-one error in the clamping logic which allowed term-scroll-end to have values outside the valid range [0,term-height). 2019-05-07 Stefan Monnier * src/marker.c (buf_bytepos_to_charpos): Re-add the CHAR_HEAD_P assertion This assertion was removed in 1c349c62305d432abf0fa2b6e3f5d754fe4cab79 because the assumption was invalid during set_intervals_multibyte_1. So we change set_intervals_multibyte_1 to solve the problem in the same way as in the rest of Fset_buffer_multibyte, which actually simplifies the code. * src/buffer.c (advance_to_char_boundary): Not static any more. * src/buffer.h (advance_to_char_boundary): Add prototype. * src/intervals.c (set_intervals_multibyte_1): Use it. 2019-05-07 Glenn Morris * doc/emacs/text.texi (Fill Commands): Use pxref in parentheses. * doc/emacs/files.texi (Auto Revert): Fix makeinfo-4.13 compilation. 2019-05-07 Basil L. Contovounesios Clarify what constitutes an event (bug#35238) * doc/lispref/commands.texi (Input Events): Specify that events are non-nil and remove vestiges of bug#10190. * doc/lispref/os.texi (Recording Input): Document optional argument of recent-keys. * lisp/subr.el (eventp): Check that the car of conses is non-nil. * etc/NEWS: Announce it as an incompatible change. * src/keyboard.c (Frecent_keys): Clarify that returned "events" are not real events. 2019-05-07 Eli Zaretskii Fix 'load-average' on MS-Windows * src/w32.c (getloadavg): Always return at least one element of the array. 2019-05-06 Wilson Snyder Fix verilog-mode module backticks; whitespace from prev commits. * lisp/progmodes/verilog-mode.el (verilog-read-inst-module-matcher): Work when point is near backtick. Reported by Mattias Engdegard. 2019-05-06 Juri Linkov * lisp/emacs-lisp/lisp.el (insert-pair-alist): Turn defvar into defcustom. Revert to old default value. (Bug#35480) 2019-05-06 Stefan Monnier Make combine-after-change-calls work in the common case again * src/insdel.c (signal_after_change): Allow combine_after_change_calls even when syntax-ppss-flush-cache is on before-change-functions. 2019-05-06 John Shahid Prevent accidental edits in the ansi-term buffer from breaking resizing * lisp/term.el (term-unwrap-line, term-emulate-terminal): Prevent the `term-line-wrap` property of newlines from spreading accidentally when inserting text next to it. 2019-05-06 Alan Mackenzie c-beginning-of-statement-1: Handle syntactic WS macros properly. * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): The variable before-sws-pos should record the position of a closing paren/brace/bracket before moving backwards over a sexp. When there is a syntactic WS macro between the starting point and the closing p/b/b, setq before-sws-pos again after moving backward over the macro. 2019-05-06 Stefan Monnier * lisp/custom.el: Avoid adding vars to load-history multiple times Avoid the abuse of (eval `(defvar ...)) which tends to end up adding redundant entries in `load-history`, as discussed in https://lists.gnu.org/r/help-gnu-emacs/2019-03/msg00237.html (custom-initialize-default): Don't add to load-history. (custom-declare-variable): Use internal--define-uninitialized-variable and only add the var to load-history once. Do it before calling `initialize` so the special-variable-p flag is set. * src/eval.c (Finternal__define_uninitialized_variable): New function. (Fdefvar, Fdefconst): Use it. (syms_of_eval): Defsubr' it. 2019-05-06 Michael Albinus Use lambda in tramp-compat-* functions * lisp/net/tramp-compat.el (tramp-handle-temporary-file-directory): Declare. (tramp-compat-temporary-file-directory-function): Use function symbol. (tramp-compat-file-attribute-type) (tramp-compat-file-attribute-link-number) (tramp-compat-file-attribute-user-id) (tramp-compat-file-attribute-group-id) (tramp-compat-file-attribute-modification-time) (tramp-compat-file-attribute-size) (tramp-compat-file-attribute-modes) (tramp-compat-directory-name-p, tramp-compat-file-local-name) (tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote) (tramp-compat-file-name-unquote, tramp-compat-exec-path) (tramp-compat-time-equal-p, tramp-compat-flatten-tree): Make them lambdas. 2019-05-05 Paul Eggert Use simpler way to print function pointers The module code can’t possibly work on weird platforms where function pointers are wider than data pointers, so there’s no need to bother with the stackoverflow-like approach that is intended only for portability to such platforms. Besides, the stackoverflow-like approach does not work well on weird platforms where CHAR_BIT is not a multiple of 4. * src/lisp.h (pMx): New macro. * src/print.c (data_from_funcptr) [HAVE_MODULES]: New function. (print_vectorlike) [HAVE_MODULES]: Use it. (print_object): Make sure buf is big enough for this. 2019-05-05 Juri Linkov * lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode. Check for the value of flymake-mode after hooks are finished (bug#34294) 2019-05-05 Juri Linkov * lisp/progmodes/flymake.el: Rename flymake-start-on-newline (bug#34294) * lisp/progmodes/flymake.el (flymake-start-on-newline): Rename from flymake-start-syntax-check-on-newline. (flymake-start-syntax-check-on-newline): Define obsolete alias. (flymake-no-changes-timeout): Add customization option nil. * doc/misc/flymake.texi (Using Flymake): Rename variable. 2019-05-05 Juri Linkov * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map): Remove Git prefixes. Strip possible source/destination prefixes such as a/ and b/ from directory names. (Bug#35420) (ediff-fixup-patch-map, ediff-dispatch-file-patching-job) (ediff-patch-file-internal): Replace string-match with string-match-p. 2019-05-05 Juri Linkov Use ngettext instead of dired-plural-s in Dired (bug#35287) * lisp/dired-aux.el (dired-map-over-marks-check): Use ngettext instead of dired-plural-s. (dired-create-files): Also add colon after operation name. (dired-compare-directories): Use ngettext and format-message. (dired-do-compress-to): Use ngettext. * lisp/dired.el (dired-internal-do-deletions) (dired-clean-up-after-deletion): Use ngettext instead of dired-plural-s. 2019-05-05 Juri Linkov * lisp/emacs-lisp/lisp.el (insert-pair-alist): Precompute default value. Use unicode-property-table-internal with 'paired-bracket to append pairs of open/close characters to the default value (bug#35480). 2019-05-05 Juri Linkov Rename shell-command-width to async-shell-command-width (bug#35055) * lisp/simple.el (async-shell-command-width): * lisp/net/tramp.el (tramp-handle-shell-command): * test/lisp/net/tramp-tests.el (tramp-test32-shell-command): * doc/misc/tramp.texi (Remote processes): Rename this variable. * doc/emacs/misc.texi (Single Shell): Add async-shell-command-width. 2019-05-05 Paul Eggert Port mod-test to --enable-gcc-warnings * test/data/emacs-module/mod-test.c (NDEBUG): Undef, to prevent GCC from complaining “error: unused variable ‘dummy’” and failing to build the test, if --enable-gcc-warnings. 2019-05-05 Eli Zaretskii Fix compilation of mod-test.c on MinGW * test/data/emacs-module/mod-test.c (Fmod_test_nanoseconds) [__MINGW32__]: Use _Static_assert, not static_assert, as the latter is not available in mingw.org's MinGW's assert.h. 2019-05-05 Jimmy Aguilar Mena Fixed fill-column-indicator face removing background. *lisp/faces.el: Removed background in default fill-column-indicator face. *src/xdisp.c: fill-column-indicator face merged with saved face. 2019-05-05 Jimmy Aguilar Mena ;Corrected display-fill-column-indicator mode. Small corrections in the documentation and code format to merge into master. 2019-05-05 Jimmy Aguilar Mena *src/xdisp.c: Fixed fill column indicator position in terminal mode. 2019-05-05 Jimmy Aguilar Mena display-fill-column-indicator interface corrections *lisp/display-fill-column-indicator.el: Fixed character selection for the indicator based in the current faces. Extended condition to set display-fill-column-indicator-character in graphical displays. *src/xdisp.c: Fixed some long lines. 2019-05-05 Jimmy Aguilar Mena ;Small changes in the documentation *src/xdisp.c: Fixed docstring for display-fill-column-indicator-column *etc/NEWS: Concordance fix in the display-fill-column-indicator part. *doc/emacs/display.texi: Name mismatch fix. 2019-05-05 Jimmy Aguilar Mena Added correction in the texinfo manual. *doc/emacs/text.texi: Added a reference to the display-fill-column-indicator section. 2019-05-05 Jimmy Aguilar Mena Added fill-column-indicator manual documentation *etc/NEWS: reduced the comments about fill-column-indicator *doc/emacs/display.texi: Added documentation for fill-column-indicator in this section in the manual 2019-05-05 Jimmy Aguilar Mena Fixed fill-column-indicator for continuation lines *src/xdisp.c: Grouped the test conditions for display-fill-column-indicator mode in a macro to simplify future modifications. 2019-05-05 Jimmy Aguilar Mena Display-fill-column-indicator NEWS info. *etc/NEWS: Added information about the fill-column-indicator mode. *lisp/faces.el: Added a face for the display fill column indicator. 2019-05-05 Jimmy Aguilar Mena Start display-fill-column-indicator-mode. 2019-05-05 Michael Albinus Describe, how to adapt shell command output width in Tramp * doc/misc/tramp.texi (Quick Start Guide, GVFS based methods): Fix @cindex. (Remote processes): Add some @vindex. Describe shell command output width. 2019-05-05 Eli Zaretskii Avoid compiler warning in print.c * src/print.c (print_vectorlike): Don't use %hh, as that is not portable enough; we don't yet assume a C99-compliant library. 2019-05-05 Eli Zaretskii Avoid crashes in read_integer * src/lread.c (read_integer): Always allocate a buffer, since we need to use it even when the radix is invalid. (Bug#35576) 2019-05-05 Stefan Monnier * lisp/files.el (hack-local-variables): Don't burp when files-x isn't loaded 2019-05-05 Michael Albinus Adapt tests for recent file-notification changes in Tramp * lisp/net/tramp.el (tramp-file-notify-process-sentinel): Pacify byte compiler. * test/lisp/autorevert-tests.el (auto-revert-test02-auto-revert-deleted-file): * test/lisp/filenotify-tests.el (file-notify-test03-events) (file-notify-test05-file-validity) (file-notify-test09-watched-file-in-watched-dir): Adapt for remote files. 2019-05-05 Mattias Engdegård Reorganise (auto-)revert nodes in the manual Put all information about auto-revert into a section of its own, and organise the text in a more logical way. Previously it was mainly described in the section about reverting (bug#35418). * doc/emacs/files.texi (Files): Adjust menu. (Reverting, Auto Revert, Autorevert): Add node `Auto Revert' and move text on that topic from `Reverting', rearranged. Turn the old `Autorevert' node into a subsection under `Auto Revert'. * doc/emacs/arevert-xtra.texi (Autorevert): Rename and turn into subsubsection. * doc/emacs/buffers.texi (Several Buffers): Adjust references. * doc/emacs/emacs.texi (Top): Adjust menu. * doc/emacs/emacs-xtra.texi (Top): Adjust menu. (Non-File Buffers): Add node and section lines. 2019-05-04 YAMAMOTO Mitsuharu Fix last changes in src/ftfont.c * src/ftfont.c (ftfont_shape): Add missing argument direction. (fthbfont_shape) [HAVE_HARFBUZZ]: Remove unused variable ftfont_info. (fthbfont_driver) [HAVE_HARFBUZZ]: Remove redundant redeclaration. 2019-05-04 Philipp Stephani Avoid suppressing -Wcast-function-type warning. GCC special-cases the type ‘void (*)(void)’ to not emit warnings when cast, see https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcast-function-type. Make use of this to remove a warning suppression. * src/dynlib.h: Use void (*)(void) as generic function pointer type. * src/emacs-module.c: Remove warning suppression. 2019-05-04 Philipp Stephani Fix compilation of test module. Because all other objects are compiled without -fPIC, we can’t use them when linking the test module. Instead, use the source files directly. * test/Makefile.in (HYBRID_MALLOC, LIBEGNU_ARCHIVE): Remove. ($(test_module)): Use source files instead of objects and archives. 2019-05-04 Philipp Stephani Use extract_time in test module. * test/data/emacs-module/mod-test.c (Fmod_test_sleep_until): Use extract_time for time argument. (signal_wrong_type_argument): Remove unused function. * test/src/emacs-module-tests.el (mod-test-sleep-until): Remove unnecessary ‘float-time’. 2019-05-04 YAMAMOTO Mitsuharu Add new font backend drivers for text shaping by HarfBuzz * etc/NEWS: Mention new font backend drivers xfthb and ftcrhb. * src/font.h [HAVE_HARFBUZZ]: Include hb.h. (struct font_driver) [HAVE_HARFBUZZ]: New members begin_hb_font and end_hb_font. (ftfont_match, ftfont_list): Remove externs. (ftfont_match2, ftfont_list2): (fthbfont_combining_capability, fthbfont_begin_hb_font) (fthbfont_shape) [HAVE_HARFBUZZ]: (xfthbfont_driver) [HAVE_XFT && HAVE_HARFBUZZ]: (ftcrhbfont_driver) [USE_CAIRO && HAVE_HARFBUZZ]: Add externs. * src/ftcrfont.c (ftcrfont_list): Use ftfont_list2. (ftcrfont_match): Use ftfont_match2. (ftcrfont_open): Get font type from entity. (ftcrfont_open) [HAVE_HARFBUZZ]: Use HarfBuzz version of driver if specified. (ftcrfont_shape) [HAVE_HARFBUZZ]: Make shaping fail. (ftcrhbfont_list, ftcrhbfont_match) (ftcrhbfont_begin_hb_font) [HAVE_HARFBUZZ]: New functions. (ftcrhbfont_driver) [HAVE_HARFBUZZ]: New variable. (syms_of_ftcrfont_for_pdumper) [HAVE_HARFBUZZ]: Initialize and register it. (syms_of_ftcrfont) [HAVE_HARFBUZZ]: New symbol Qftcrhb. * src/ftfont.c: Include math.h for lround. (fthbfont_driver) [HAVE_HARFBUZZ]: New variable. (ftfont_get_hb_font) [HAVE_HARFBUZZ]: Remove function. (ftfont_list, ftfont_match): Make static. (ftfont_list2, ftfont_match2): New functions. (ftfont_open2) [HAVE_HARFBUZZ]: Use HarfBuzz version of driver if specified. (ftfont_open): Get font type from entity. (ftfont_shape, ftfont_combining_capability, ftfont_driver) [HAVE_HARFBUZZ]: Move HarfBuzz specific part from here ... (fthbfont_shape, fthbfont_combining_capability) (fthbfont_driver) [HAVE_HARFBUZZ]: ... to here. New functions and variable. (fthbfont_begin_hb_font) [HAVE_HARFBUZZ]: New function. (fthbfont_shape_by_hb) [HAVE_HARFBUZZ]: Rename from ftfont_shape_by_hb. Don't take FreeType specific arguments ft_face and matrix. Use begin_hb_font and end_hb_font font driver functions. Use text_extents font driver functions instead of ftfont_glyph_metrics. (syms_of_ftfont) [HAVE_HARFBUZZ]: New symbol Qfreetypehb. (syms_of_ftfont_for_pdumper) [HAVE_HARFBUZZ]: Initialize and register fthbfont_drivert. * src/ftxfont.c (ftxfont_list): Use ftfont_list2. (ftxfont_match): Use ftfont_match2. (ftxfont_driver) [HAVE_HARFBUZZ]: Don't initialize shape member explicitly. * src/xfns.c (Fx_create_frame) [USE_CAIRO && HAVE_HARFBUZZ]: (Fx_create_frame) [HAVE_XFT && HAVE_HARFBUZZ]: Register HarfBuzz versions of font drivers. * src/xftfont.c (xftfont_list): Use ftfont_list2. (xftfont_match): Use ftfont_match2. (xftfont_open): Get font type from entity. (xftfont_open) [HAVE_HARFBUZZ]: Use HarfBuzz version of driver if specified. (xftfont_shape) [HAVE_HARFBUZZ]: Make shaping fail. (xfthbfont_list, xfthbfont_match, xfthbfont_begin_hb_font) (xfthbfont_end_hb_font) [HAVE_HARFBUZZ]: New functions. (xftfont_driver) [HAVE_HARFBUZZ]: Don't initialize shape member explicitly. (xfthbfont_driver) [HAVE_HARFBUZZ]: New variable. (syms_of_xftfont_for_pdumper) [HAVE_HARFBUZZ]: Initialize and register it. (syms_of_xftfont) [HAVE_HARFBUZZ]: New symbol Qxfthb. 2019-05-04 Philipp Stephani * test/Makefile.in (src/emacs-module-tests.elc): Require test module 2019-05-04 Philipp Stephani Refactoring: Factor out a function to set an mpz_t from a Lisp int. * src/bignum.h (mpz_set_integer): New function. * src/emacs-module.c (module_make_big_integer): Use it. 2019-05-04 Philipp Stephani Avoid undefined behavior when printing function pointers. * src/print.c (print_vectorlike): Don’t pass a function pointer to ‘snprintf’, as that is undefined behavior. Instead, print the individual bytes making up the function pointer. 2019-05-04 Michael Albinus Notify broken file notification from Tramp * lisp/net/tramp.el (tramp-file-notify-process-sentinel): New defun. * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch): * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch): Set process sentinel. 2019-05-04 Paul Eggert Port new fingerprinting scheme to clang + LTO * lib-src/make-fingerprint.c (main): Don't consider multiple instances of the fingerprint to be an error, as this can happen with clang and -flto. Instead, replace all instances of the fingerprint. There is a tiny chance that this will silently corrupt the Emacs executable. This patch suggests that we should go back to fingerprinting the inputs to the linker instead of its output, as the new fingerprinting scheme is unnecessarily complicated and this complexity reduces reliability. The old scheme (i.e., before commit 2019-05-14T23:31:24Z!eggert@cs.ucla.edu) was simpler and more portable and good enough, and it's looking like it would be less trouble in practice than the new scheme. 2019-05-04 Noam Postavsky Avoid slow overlay ansi coloring in eshell (Bug#29854) * lisp/ansi-color.el (ansi-color-apply-on-region): Reset temporary markers after finishing with them. (ansi-color-apply-text-property-face): New function. * lisp/eshell/esh-mode.el (eshell-handle-ansi-color): * lisp/man.el (Man-fontify-manpage): Use it as the `ansi-color-apply-face-function' while calling `ansi-color-apply-on-region'. Use `font-lock-face' to propertize instead of `face'. 2019-05-04 Paul Eggert Fix bytecode optimization typo Problem reported by Simon Frankau (Bug#35562). * src/bytecode.c (exec_byte_code): Fix typo when optimizing varset. 2019-05-04 John Shahid Fix Bug#35506 * lisp/net/tramp.el (tramp-interrupt-process): Kill the entire process group. (Bug#35506) 2019-05-04 Eli Zaretskii Minor fix in .gdbinit * src/.gdbinit (xprintsym): Don't attempt to print the symbol's name if it is not yet set. This happens with built-in symbols at the beginning of 'main'. 2019-05-03 Paul Eggert Skip tests if test subdir is missing Problem reported by Jeffrey Walton in: https://lists.gnu.org/r/emacs-devel/2019-05/msg00041.html * Makefile.in (CHECK_TARGETS): New macro; use it to simplify 'check' and similar rules. ($(CHECK_TARGETS)): If tests are missing, do not fail after issuing a diagnostic. Just skip the tests. 2019-05-03 Paul Eggert Modernize INSTALL a bit * INSTALL: Omit filesystem space estimates. These estimates were (1) wrong and (2) no longer important nowadays, as people have plenty of space. Instead, start with how to get and unpack an Emacs tarball. Don’t say "disk" as it’s often not disk nowadays. Update URLs. 2019-05-03 Paul Eggert Simplify use of NDEBUG in etags.c * lib-src/etags.c [!DEBUG]: Do not define NDEBUG, as that’s conf_post.h’s job now. [NDEBUG]: Do not redefine ‘assert’, as that works around ancient bugs (e.g., sunos4 pcc) that don’t matter any more, as can be seen that other Emacs source files that successfully use assert.h without this workaround. 2019-05-03 Paul Eggert Pacify librsvg 2.45.1 and later * src/image.c (svg_load_image): Pacify librsvg 2.45.1 and later, and add a FIXME comment about the deprecated librsvg functions. 2019-05-03 Paul Eggert Simplify xd_signature to pacify GCC 9 * src/dbusbind.c (xd_signature): Use simpler way to set up the subsignature. This also pacifies GCC 9 on Fedora 30 x86-64. 2019-05-03 Paul Eggert Update from Gnulib This incorporates: 2019-05-03 Port manywarnings to GCC 9 * m4/manywarnings.m4: Copy from Gnulib. 2019-05-03 Michael Albinus Add tests for remote files in auto-revert-tests * lisp/autorevert.el (auto-revert-debug): New defvar. (auto-revert-notify-handler): Write traces. * lisp/filenotify.el (file-notify-debug): New defvar. (file-notify-handle-event, file-notify-callback): Write traces. * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered): Handle nil `vc-handled-backends'. * test/lisp/autorevert-tests.el (auto-revert-test-remote-temporary-file-directory): New defconst. Handle also $REMOTE_FILE_NOTIFY_LIBRARY. (auto-revert--test-enabled-remote-checked): New defvar. (auto-revert--test-enabled-remote): New defun. (auto-revert--wait-for-revert): Rewrite without timeout. (auto-revert--deftest-remote): New defmacro. (auto-revert-test01-auto-revert-several-files): (auto-revert-test02-auto-revert-deleted-file): Adapt for remote files. (auto-revert-test02-auto-revert-deleted-file): Use `auto-revert-debug' for debug messages. (auto-revert-test00-auto-revert-mode-remote) (auto-revert-test01-auto-revert-several-files-mode-remote) (auto-revert-test02-auto-revert-deleted-file-mode-remote) (auto-revert-test03-auto-revert-tail-mode-mode-remote) (auto-revert-test04-auto-revert-mode-dired-mode-remote): New tests. * test/lisp/filenotify-tests.el (file-notify--test-event-handler): Use `file-notify-debug' for debug messages. 2019-05-03 Basil L. Contovounesios Fix Gnus inline attachment decoding (bug#35507) Proposed by Andy Moreton and Noam Postavsky . * lisp/gnus/mm-view.el (mm-display-inline-fontify): Always decode handle text, falling back on 'undecided' coding system. 2019-05-03 Stefan Monnier * lisp/server.el: Cosmetic changes Remove redundant :group args. (server-temp-file-regexp): Fix ^$ to \`\'. 2019-05-03 Eli Zaretskii Improve documentation of 'isearch-regexp-function' * lisp/isearch.el (isearch-regexp-function): Doc fix. (Bug#35498) 2019-05-02 Alexander Gramiak Refactor update_window_begin and update_window_end hooks Bug#35464. * src/dispnew.c (gui_update_window_begin, gui_update_window_end): New procedures implementing common functionality. * src/nsterm.m: (ns_update_window_begin, ns_update_window_end): * src/xterm.c: (x_update_window_begin, x_update_window_end): Remove in favor of only using the new generic versions. * src/w32term.c: (w32_update_window_begin, w32_update_window_end): Remove duplicated and unused code. 2019-05-02 Dmitry Gutov xref--find-ignores-arguments: Return "" if IGNORES is nil 2019-05-02 Dmitry Gutov Allow project-find-regexp'ing inside an ignored dir * lisp/progmodes/project.el (project-find-regexp): Don't pass project's ignores to project--files-in-directory. The FILES glob should be enough, and we don't want to prohibit searching inside ignored directories this way (it can be counter-intuitive). 2019-05-02 Dmitry Gutov (xref--mouse-2): Fix not to jump to the next line * lisp/progmodes/xref.el (xref--mouse-2): Fix not to jump to the next line. 2019-05-02 Dmitry Gutov Fix an "empty identifier" problem * lisp/progmodes/xref.el (xref--read-identifier): Abort on empty input if there is no default (https://lists.gnu.org/archive/html/help-gnu-emacs/2019-05/msg00012.html). 2019-05-02 Alan Mackenzie Fix fontification of first item in CC Mode macro without parentheses * lisp/progmodes/cc-engine.el (c-find-decl-prefix-search): Handle the new matching possibility (of a #define construct) in the new c-decl-prefix-or-start-re. (c-find-decl-spots): Allow the initial search for an in-macro starting point settle on the # of #define, to facilitate the regexp matching in c-find-decl-prefix-search. * lisp/progmodes/cc-langs.el (c-anchored-hash-define-no-parens): New lang const. (c-literal-start-regexp): Correct what was always supposed to be a "generic string" regexp element. (c-decl-prefix-or-start-re): Enhance also to match "#define ". (c-dposr-cpp-macro-depth): New lang variable and lang constant. 2019-05-02 Stefan Monnier * lisp/mail/footnote.el: Add TEXT and POINTERS together Rather than adding POINTERS and TEXT separately to footnote--markers-alist, add them together, so we don't need footnote--first-text-marker because the TEXT part is never nil. (footnote--insert-numbered-footnote): Return marker. (footnote--insert-text-marker, footnote--insert-pointer-marker): Delete functions. (footnote--insert-markers): New function to replace them. (footnote--insert-footnote): Adjust accordingly. Simplify pointless `unless`. (footnote--first-text-marker): Remove. Replace all calls by (cadr (car footnote--markers-alist)) or just footnote--markers-alist. 2019-05-02 Alan Mackenzie CC Mode: Fix multiline block comments in macros. In particulr, handle multiline block comments whose newlines are not escaped. There is an example of this in #define EXTRA_CONTEXT_FIELDS in editfns.c. * lisp/progmodes/cc-engine.el (c-beginning-of-macro, c-end-of-macro): Enclose the loops scanning escaped newlines with outer loops which check heuristically for, respectively, a block comment ender and a block comment starter on the lines we end up on. (A rigorous syntactic check would be too slow, here.) * lisp/progmodes/cc-langs.el (c-last-c-comment-end-on-line-re) (c-last-open-c-comment-start-on-line-re): New language constants/variables. 2019-05-02 Stefan Monnier * lisp/mail/footnote.el: Tweak markers convention Instead of using markers that are sometimes before and sometimes after the [...] and using `insert-before-markers` to make sure those that are are before stay before, always place them before, and make them "move after"so they stay with their [...] without the need for insert-before-markers. (footnote--current-regexp): Add arg to match previous style. Include the start/end "tags" in the regexp. Adjust all callers. (footnote--markers-alist): Change position of POINTERS. (footnote--refresh-footnotes, footnote--renumber) (footnote--make-hole, footnote-delete-footnote) (footnote-back-to-message): Adjust accordingly, mostly by using `looking-at` instead of `looking-back`. (footnote--make-hole): Always return footnote nb to use. (footnote-add-footnote): Simplify call accordingly. * test/lisp/mail/footnote-tests.el: New file. 2019-05-02 Sam Steingold use view-mode on score file for ease of scrolling and quitting tetris-null-map: bind "q" to `quit-window` 2019-05-02 Mattias Engdegård Small code clean-up of file-notify-add-watch * lisp/filenotify.el (file-notify-add-watch): Clearly separate backend-specific code from the rest, and simplify. (file-notify--add-watch-inotify, file-notify--add-watch-kqueue) (file-notify--add-watch-w32notify, file-notify--add-watch-gfilenotify): New functions. 2019-05-02 Stefan Monnier * lisp/mail/footnote.el: Use dolist and hoist regexps out of loops (footnote--refresh-footnotes): Use pcase-dolist; compute regexp once outside of the loops. Use less confusing `literal` arg to `replace-match` and specify `fixedcase` since footnote--index-to-string already chose the proper case for us. (footnote--renumber): Use dolist; compute regexp once outside of the loops; shortcircuit when number is unchanged. (footnote--text-under-cursor): Rewrite. (footnote--make-hole): Use dolist. (footnote-add-footnote): CSE. (footnote-delete-footnote): Use dolist; compute regexp once outside of the loop. (footnote-delete-footnote): Don't renumber if there's no footnote left. (footnote-renumber-footnotes): Use dolist. 2019-05-02 Michael Albinus Fix tramp-compat-file-name-quoted-p * lisp/net/tramp-compat.el (tramp-compat-file-local-name) (tramp-compat-file-name-quoted-p): Declare them. (top): Do not use `eval-and-compile'. (tramp-compat-file-name-quoted-p): Check also func-arity of `file-name-quoted-p'. 2019-05-01 YAMAMOTO Mitsuharu Fix NS build * src/macfont.m: Fix prototype of macfont_shape. (mac_font_shape): Fix type of 5th argument. 2019-05-01 Stefan Monnier * lisp/mail/footnote.el: Consolidate the two marker-alists Consolidate footnote-text-marker-alist and footnote-pointer-marker-alist into a single footnote--markers-alist. (footnote--markers-alist): New var. (footnote-text-marker-alist, footnote-pointer-marker-alist): Delete vars. (footnote--refresh-footnotes, footnote--text-under-cursor) (footnote--calc-fn-alignment-column, footnote-add-footnote) (footnote-goto-footnote, footnote-back-to-message): Adjust accordingly. (footnote--make-hole, footnote-delete-footnote) (footnote-renumber-footnotes): Simplify accordingly. (footnote-cycle-style): Indicate style name in echo area. (footnote--renumber): Take a single `alist-elem` arg instead of `pointer-alist` and `text-alist`. (footnote--insert-text-marker, footnote--insert-pointer-marker): Add to footnote--markers-alist instead. (footnote--first-text-marker): New function. (footnote--get-area-point-min): Use it. footnote--goto-first): New function. (footnote--insert-footnote): Use it. (footnote-style-number): Use defvar-local. 2019-05-01 Stefan Monnier * lisp/mail/footnote.el: Minor simplifications Remove redundant :group args. (footnote-mode-hook): Let define-minor-mode define it. (footnote--style-p): Delete function. (footnote--index-to-string): Inline it instead, and simplify. (footnote-cycle-style): Use a pointer into the alist as the "index" instead of a number. (footnote-set-style): Use footnote-style-alist as the completion table. Prefer `assq` over `footnote--assoc-index`. (footnote--assoc-index): Delete function. (footnote--renumber): Remove first (unused) argument; Adjust all callers. (footnote--sort): Use car-less-than-car. 2019-05-01 Lars Ingebrigtsen Restore previous calling signature of gnus-set-info 2019-05-01 Stefan Monnier * lisp/emacs-lisp/edebug.el: Better handle instrumentation of `end-of-defun` Remove redundant :group args. (edebug-read-top-level-form): Let-bind edebug-active. (edebug-active): Move before this new first use. 2019-05-01 Stefan Monnier * lisp/help.el (function-called-at-point): Use Elisp's forward-sexp-function 2019-04-30 Basil L. Contovounesios Minor region-noncontiguous-p simplification * lisp/simple.el (region-noncontiguous-p): Don't needlessly traverse region-bounds. 2019-04-30 Stefan Monnier * lisp/progmodes/cc-engine.el: Silence minor compiler warnings (c-restricted-<>-arglists, c-parse-and-markup-<>-arglists): Move declaration before first use. (c-after-change-unmark-raw-strings): Remove unused var `found-end`. 2019-04-30 Paul Eggert Fix decode-time/encode-time roundtrip on macOS * src/timefns.c (Fencode_time): Ignore DST flag when the zone is numeric or is a cons, as the doc string says it’s ignored in that case, and not ignoring it causes encode-time to not invert decode-time on some platforms (Bug#35502). * test/src/timefns-tests.el (encode-time-dst-numeric-zone): New test. 2019-04-30 Stefan Monnier * lisp/progmodes/cc-fonts.el: Silence some compiler warnings (c-font-lock-declarators): Mark `id_end` and `not-top` as unused. 2019-04-30 Paul Eggert Update from Gnulib * build-aux/config.guess, doc/misc/texinfo.tex: * lib/mktime-internal.h, lib/mktime.c, lib/timegm.c: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2019-04-30 Mattias Engdegård * lisp/autorevert.el (auto-revert-avoid-polling): Fix :set form. 2019-04-30 Alan Mackenzie CC Mode: in certain font lock loops, check point is not beyond limit. * lisp/progmodes/cc-fonts.el (c-font-lock-enum-body) (autodoc-font-lock-line-markup): As part of the `while' condition, check that the previous iteration of the loop hasn't moved point past `limit', thus obviating "wrong side of point" errors in re-search-forward, etc. 2019-04-30 Mattias Engdegård Don't poll auto-revert files that use notification (bug#35418) It is a waste to periodically poll files that use change notification in auto-revert mode; stop doing that. If no files need polling, turn off the periodic execution entirely to further avoid wasting power. Use a timer to inhibit immediate reversion for some time after a notification, for throttling. This change does not apply to files in global-auto-revert-mode, where polling is still necessary. It is disabled by default, and enabled by setting `auto-revert-avoid-polling' to non-nil. * lisp/autorevert.el (toplevel): Require cl-lib. (auto-revert-avoid-polling, auto-revert--polled-buffers) (auto-revert--need-polling-p, auto-revert--lockout-interval) (auto-revert--lockout-timer, auto-revert--end-lockout): New. (global-auto-revert-mode): Keep notifiers for buffers in auto-revert mode. (auto-revert-set-timer): Use auto-revert--need-polling-p. (auto-revert-notify-handler): Restart polling if notification stopped. Use new lockout timer. (auto-revert-buffers): Use auto-revert--polled-buffers and auto-revert--need-polling-p. (auto-revert-buffers-counter, auto-revert-buffers-counter-lockedout): Remove. * etc/NEWS (Changes in Specialized Modes and Packages): Describe the new auto-revert-avoid-polling variable. * doc/emacs/files.texi (Reverting): Add paragraph describing auto-revert-avoid-polling. 2019-04-29 Stefan Monnier Refrain from splicing anonymous faces in text properties * lisp/font-lock.el (font-lock-prepend-text-property): Distinguish list of faces from property lists. (font-lock-ensure-function): Remove redundant code. 2019-04-29 Stefan Monnier * lisp/international/mule-util.el: Avoid setq; clarify meaning of -1. 2019-04-29 Paul Eggert Sync latest SKK-JISYO.L Problem reported by Tsuyoshi Kitamoto (Bug#35442). * leim/SKK-DIC/README: Update to current URL. * leim/SKK-DIC/SKK-JISYO.L: Sync to current upstream version. 2019-04-29 Paul Eggert Disable __attribute__ ((cold)) on MinGW * src/conf_post.h (ATTRIBUTE_COLD) [__MINGW32__]: Define to empty on this platform. 2019-04-29 Glenn Morris Merge from origin/emacs-26 c26d452 (origin/emacs-26) * src/macfont.m (macfont_shape): Use conven... 140e7f8 Recommend using font-lock-face over face (Bug#35044) 7cb5364 Check if mouse_face_overlay was deleted (Bug#35273) # Conflicts: # src/macfont.m 2019-04-29 Glenn Morris Merge from origin/emacs-26 0e8d452 ; * doc/lispref/nonascii.texi (Coding System Basics): Fix gra... 25a2ff7 ; Add missing space in custom.texi 9ec18fb * admin/admin.el (set-version): Check for increase in version... 93912ba Be more careful about indent-sexp going over eol (Bug#35286) 2019-04-29 Paul Eggert Replace ‘/* FALLTHROUGH! */’ with ‘break;’ * src/data.c (set_internal, set_default_internal): Replace obsolescent /* FALLTHROUGH! */ comments with ‘break;’, as ‘FALLTHROUGH;’ is not needed here. 2019-04-29 Michael Albinus * test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Instrument. 2019-04-29 Eli Zaretskii Avoid compilation warnings in w32.c * src/w32.c (unsetenv, readlink): Use memcpy instead of strncpy, to avoid a compiler warning about calculating the bound of the copy. 2019-04-28 Noam Postavsky Replace use of obsolete string-make-unibyte * lisp/image-file.el (insert-image-file): Use encode-coding-region instead of string-make-unibyte. * test/lisp/image-file-tests.el: New test. 2019-04-28 Tommi Komulainen (tiny change) python.el: Fix close paren indentation to match pep8 (Bug#20742) * lisp/progmodes/python.el (python-indent--calculate-indentation): When opening paren is followed by newline the closing paren should follow the current indentation. Otherwise the closing paren should be aligned with the opening paren. This fixes the latter case. 2019-04-28 Paul Eggert Update from GMP * admin/update-copyright (updatable_files): Don’t update copyright year on files copied from GMP, so that they’re identical to upstream. * src/mini-gmp.c, src/mini-gmp.h: Copy from GMP development versions as of 2019-01-01 20:15:39 UTC. 2019-04-28 Philipp Stephani Export major version of latest Emacs supported by emacs-module.h. This is useful if module authors want to support multiple versions of emacs-module.h. * configure.ac (emacs_major_version): Define substitution. * src/emacs-module.h.in (EMACS_MAJOR_VERSION): Define macro. * doc/lispref/internals.texi (Module Initialization): Document EMACS_MAJOR_VERSION preprocessor macro. * test/data/emacs-module/mod-test.c (emacs_module_init): Verify behavior of EMACS_MAJOR_VERSION. 2019-04-28 Philipp Stephani Fix another compilation warning. * test/src/emacs-module-tests.el (multiply-string): Remove unused variable ‘i’. 2019-04-28 Philipp Stephani Also regenerate emacs-module.h if module-env-*.h changes. * Makefile.in (CONFIG_STATUS_FILES_IN): Add versioned environment header fragments. 2019-04-28 Philipp Stephani * src/emacs-module.c (funcall_module): Add a nontrivial assertion 2019-04-28 Philipp Stephani Fix a few minor compilation and Checkdoc warnings. * test/src/emacs-module-tests.el: Add package name and standard sections. (multiply-string): Add a docstring. 2019-04-28 Philipp Stephani * test/src/emacs-module-tests.el: Switch to lexical binding. 2019-04-28 Eli Zaretskii Fix names of functions in last commit * src/coding.h (build_string_from_utf8): Rename from build_utf8_string. All callers changed. * src/coding.c (make_string_from_utf8): Rename from make_utf8_string. All callers changed. 2019-04-28 Philipp Stephani Refactoring: move UTF-8 decoding functions into coding.h. json_make_string and json_build_string are generally useful and not JSON-specific. Move them to coding.[ch]. * src/coding.h (build_utf8_string): Move from json.c. * src/coding.c (make_utf8_string): Move from json.c. * src/json.c (json_make_string, json_build_string): Move to coding.[ch]. Split out JSON-specific comment. (json_parse_error, Fjson_serialize, json_to_lisp): Fix callers. * src/emacs-module.c (module_make_function, module_make_string): Use new functions. (module_decode, module_decode_copy): Remove. 2019-04-27 Alan Mackenzie Fix slow scrolling in C++ buffers with lots of template delimiters. * lisp/progmodes/cc-engine.el (c-update-brace-stack): bind c-parse-and-markup-<>-arglists and c-restricted-<>-arglists to t around the call to c-forward-<>-arglist, to force the marking of template delimiters with syntax-table text properties. 2019-04-27 YAMAMOTO Mitsuharu Merge branch 'master' into harfbuzz 2019-04-27 Eli Zaretskii Fix -nw sessions on MS-Windows broken by a recent commit * src/w32console.c: Include dispextern.h. (initialize_w32_display): Populate defined_color_hook. 2019-04-27 Eli Zaretskii Fix MS-Windows build broken by a recent commit * src/w32term.c (w32_new_focus_frame): Fix a typo in a recent commit. 2019-04-26 YAMAMOTO Mitsuharu Fix --with-x-toolkit=no build breakage * oldXMenu/Create.c (XMenuCreate): Add const modifier to variable def_val. * oldXMenu/Create.c: * src/frame.h: Add const modifier to return type of x_get_resource_string. * src/frame.c (x_get_resource_string): Exempt x_get_string_resource from renaming generic x_* identifiers. 2019-04-26 YAMAMOTO Mitsuharu Update multicolor font support status * etc/NEWS: Mention multicolor font support on Cairo and NS. * src/macfont.m (macfont_list): Re-enable color bitmap fonts. 2019-04-26 Alexander Gramiak * src/frame.c (x_get_resource_string): Fix typo * src/xdisp.c: Only check FRAME_RIF for graphical frames 2019-04-26 Alexander Gramiak Rename x_highlight_frame property to highlight_frame * src/nsterm.h: * src/nsterm.m: * src/w32term.c: * src/w32term.h: * src/xdisp.c: * src/xterm.c: * src/xterm.h: Rename. 2019-04-26 Alexander Gramiak Check for existence of terminal hooks before use This should not be necessary, and is merely a precaution. For background, see: https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg00639.html * src/frame.c: * src/xdisp.c: Check for existence of terminal hooks before use. 2019-04-26 Alexander Gramiak Add terminal hook query_frame_background_color * src/termhooks.h (query_frame_background_color): New terminal hook. * src/image.c (image_query_frame_background_color): Remove. Use the terminal hook instead. * src/nsterm.m: * src/w32term.c: * src/xterm.c: Implement and set the new terminal hook. 2019-04-26 Alexander Gramiak Add terminal hook defined_color_hook * src/termhooks.h (defined_color_hook): New terminal hook. * src/xterm.c: * src/nsterm.m: * src/term.c: * src/w32term.c: Set defined_color_hook. * src/xfaces.c: Use defined_color_hook. (defined_color): Remove. * src/image.c: Remove redefinitions of x_defined_color, and use defined_color_hook. 2019-04-26 Alexander Gramiak Rename generic x_* identifiers * src/image.c: Rename x_* procedures to image_*. * src/frame.c: Rename x_* procedures to gui_*. Rename xrdb_get_resource to gui_display_get_resource. Rename x_get_arg to gui_display_get arg. * src/frame.h: Rename can_x_set_window_size to can_set_window_size. * src/xfaces.c: Rename realize_x_face to realize_gui_face. Rename x_supports_face_attributes_p to gui_supports_face_attributes_p. * src/keyboard.c: * src/lisp.h: * src/nsterm.m: * src/w32term.c: * src/xterm.c: Rename x_get_keysym_name to get_keysym_name. * src/nsfns.m: * src/nsterm.m: Rename x_* procedures to ns_*. * src/w32fns.c: * src/w32term.c: Rename x_* procedures to w32_*. * src/termhooks.h (query_colors, get_focus_frame, focus_frame_hook) (frame_visible_invisible_hook, iconify_frame_hook) (set_window_size_hook, set_frame_offset_hook, set_frame_alpha_hook) (set_new_font_hook, set_bitmap_icon_hook, implicit_set_name_hook) (activate_menubar_hook, change_tool_bar_height_hook) (set_scroll_bar_default_width_hook) (set_scroll_bar_default_height_hook, get_string_resource_hook): New terminal hooks to replace backend-specific x_* procedures. * src/dispextern.h (clear_under_internal_border): New RIF procedure. * src/alloc.c: * src/frame.c: * src/xdisp.c: Use FRAME_OUTPUT_DATA instead of FRAME_X_OUTPUT. * src/frame.c: * src/w32term.c: * src/w32fns.c: Use FRAME_NATIVE_WINDOW instead of FRAME_X_WINDOW. 2019-04-26 Alexander Gramiak Add prefixes to some window system-dependent procedures * src/nsterm.m (note_mouse_movement): * src/w32fns.c (construct_console_modifiers): * src/w32inevt.c: * src/w32term.c (frame_highlight, frame_unhighlight) (construct_mouse_click, construct_mouse_wheel, construct_drag_n_drop) (lispy_file_action, queue_notifications, note_mouse_movement): * src/w32term.h: * src/xterm.c (frame_highlight, frame_unhighlight) (construct_mouse_click, note_mouse_movement, get_current_wm_state): Add and use window system prefixes. 2019-04-26 Alexander Gramiak Rename generic x_* procedures in xdisp.c * src/xdisp.c (x_consider_frame_title, x_get_glyph_overhangs) (x_produce_glyphs, x_write_glyphs, x_insert_glyphs) (x_clear_end_of_line), x_fix_overlapping_area) (x_update_cursor, x_clear_cursor, x_clear_window_mouse_face) (x_draw_vertical_border, x_draw_right_divider, x_draw_bottom_divider) (x_intersect_rectangles): Rename with a gui prefix to indicate non-X-specific functionality. * src/composite.c: * src/dispextern.h: * src/nsfns.m: * src/nsterm.m: * src/w32fns.c: * src/w32term.c: * src/window.c: * src/xfns.c: * src/xterm.c: Use the renamed procedures. 2019-04-26 Eli Zaretskii Avoid assertion violations in calculating line-number width * src/indent.c (line_number_display_width): Don't use the window's start marker if it belongs to a different buffer. (Bug#35429) 2019-04-26 Stefan Monnier * lib-src/profile.c: Delete long-obsolete file This auxiliary executable was used by the old `profile.el` which later inspired `elp.el`. It was made obsolete when Emacs acquired native timers. * lib-src/Makefile.in (UTILITIES): Remove profile. (profile${EXEEXT}): Delete rule. 2019-04-26 Michael Albinus Handle quoted file names in tramp-archive.el * lisp/net/tramp-archive.el (tramp-archive-file-name-p): Suppress quoted file names. (tramp-archive-file-name-handler): Handle quoted file names. * lisp/net/tramp-compat.el (tramp-compat-file-name-quoted-p): Add optional TOP argument. 2019-04-26 Eli Zaretskii Avoid compiler warning in dynlib.c * src/dynlib.c (dynlib_addr) [WINDOWSNT]: Rename the first argument to be consistent with other platforms. Cast it to 'void *' to avoid compiler warning as result of changing the function's signature as part of the last recent change in dynlib.c. 2019-04-25 Glenn Morris * test/lisp/progmodes/sql-tests.el (sql-tests-buffer-naming-harness): Fix previous for TEST_LOAD_EL=no. 2019-04-25 Alan Mackenzie Fix the formatting of '\' (including apostrophes) in CC Mode. In particular, the second apostrophe must also get font-lock-warning-face. * lisp/progmodes/cc-mode.el (c-parse-quotes-before-change) (c-parse-quotes-after-change): Add cond arms to recognize and handle the anomalous construct '\'. Correct the handling of c-new-BEG in c-parse-quotes-before-change. 2019-04-25 Glenn Morris * test/lisp/progmodes/sql-tests.el (sql-tests-buffer-naming-harness): Skip if no sqlite program. 2019-04-25 Stephen Leake Fix Bug#33618; define search path variables for grep, byte-compile * etc/NEWS: Mention new variables. * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-search-path): New. * lisp/progmodes/grep.el (grep-search-path): New. 2019-04-25 Paul Eggert Minor tweaks to recent UBSan-related fix * src/alloc.c: No need to include stdalign.h; it’s pervasive. (GC_STRING_OVERRUN_COOKIE_SIZE): Align to sdata’s alignment, so that the code works even if alignof (sdata) exceeds 8. Don’t require the cookie size to be 8, as this overly fattens 32-bit platforms and one DEADBEEF should be enough. (GC_STRING_EXTRA): Omit now-unnecessary ‘verify’. (allocate_string_data): Omit unnecessary cast. 2019-04-25 Paul Eggert Port to Oracle Developer Studio 12.6 This compiler is a bit pickier about checking conformance to the C standard, ranging from syntax trivia (no extra ";" at the top level) to portability trivia (warnings re conversion between function and data pointers) to more-important stuff like lack of support for some __attribute__ usages. * src/dynlib.c (dynlib_addr): First argument is a function pointer, not a data pointer. All callers changed. * src/emacs-module.c (module_function_address): Return module_funcptr, not void *. All uses changed. * src/lisp.h (module_funcptr) [HAVE_MODULES]: New type. * src/lread.c (union ieee754_double): Don’t assume the usual semantics for converting signed to unsigned int when initializing a bitfield, as the Oracle compiler complains and the C standard is unclear. * src/pdumper.c (ALLOW_IMPLICIT_CONVERSION): Make it clearer that -Wsign-conversion is disabled everywhere in this file. (dump_trace, dump_tailq_prepend, dump_tailq_append): Don’t assume __attribute__. (dump_object_self_representing_p): Don’t disable conversion warnings; it’s not needed here. (DEFINE_FROMLISP_FUNC): Avoid possible signal in integer conversion from unsigned to signed. (DEFINE_FROMLISP_FUNC, finish_dump_pvec): Avoid warning about unreachable statements on platforms not supporting the __attribute__. (intmax_t_from_lisp, intmax_t_to_lisp, dump_off_from_lisp) (dump_off_to_lisp, dump_emacs_reloc_immediate_lv) (dump_emacs_reloc_immediate_ptrdiff_t) (dump_emacs_reloc_immediate_intmax_t) (dump_emacs_reloc_immediate_int, dump_emacs_reloc_immediate_bool): Omit stray semicolon that violates C standard. (dump_metadata_for_pdumper): Add cast to pacify compiler complaining about conversion from function pointer to data pointer. (Fdump_emacs_portable): Do not use CALLN to call a function with zero arguments, as C99 prohibits empty initializers. * src/xdisp.c (syms_of_xdisp): Do not nest calls to pure_list, to work around a bug in Oracle Developer Studio 12.6. 2019-04-25 Stefan Monnier * lisp/simple.el (eval-expression): Fix paren typo. 2019-04-25 Philipp Stephani Make sure that ‘sdata’ objects in ‘sblock’ objects are aligned. Issue found by Clang’s UBSan. * src/alloc.c (GC_STRING_OVERRUN_COOKIE_SIZE): Increase to 8. (string_overrun_cookie): Extend accordingly. (GC_STRING_EXTRA): Ensure that it’s properly aligned for ‘sdata’. (allocate_string_data): Verify that ‘sdata’ blocks remain aligned. 2019-04-25 Stefan Monnier Use lexical-binding by default for M-:, --eval, and *scratch* * lisp/startup.el (command-line): Default to lexical-binding in *scratch*. (normal-no-mouse-startup-screen, command-line-1): Use startup--get-buffer-create-scratch. (command-line-1): * lisp/simple.el (eval-expression): * lisp/server.el (server-eval-and-print): Use lexical-binding to evaluate the expression. (server-execute): Use startup--get-buffer-create-scratch. * lisp/ielm.el (inferior-emacs-lisp-mode): Default to lexical-binding. 2019-04-25 Alan Mackenzie Restore fontification of delimiters of multiline CC Mode strings. E.g., on typing the closing delimiter of a string continued onto a second line, the opening delimiter retained its font-lock-warning-face. * lisp/progmodes/cc-defs.el (c-c++-raw-string-opener-re) (c-c++-raw-string-opener-1-re): New constants. (c-sub-at-c++-raw-string-opener, c-at-c++-raw-string-opener): New macros. * lisp/progmodes/cc-engine.el (c-raw-string-pos) (c-depropertize-raw-strings-in-region, c-after-change-unmark-raw-strings): Replace uses of open-coded raw string regexps by the new constants and macros in cc-defs.el. * lisp/progmodes/cc-fonts.el (c-font-lock-raw-strings): Ditto * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Set c-new-BEG to the beginning of the string when we encounter its closing ". When not in a raw string, but in a string, clear syntax-table properties from its delimiters and set c-new-BEG/END to its limits. (c-after-change-mark-abnormal-strings): When applying syntax-table properties to string delimiters, also set c-new-BEG/END to ensure subsequent fontification. 2019-04-25 Stephen Berman Make wdired-mode ignore ls file indicators * lisp/wdired.el (wdired--restore-dired-filename-prop): When dired-listing-switches includes "F" or "classify", don't treat appended indicator characters as part of the file name (bug#34915). * test/lisp/wdired-tests.el (wdired-test-bug34915): New test. 2019-04-25 Paul Eggert Port emacsclient euidaccess to Solaris 10 Without this fix, linking emacsclient fails with ‘Undefined symbol eaccess’ on Solaris 10 sparc. * lib-src/Makefile.in (LIB_EACCESS): New macro. (emacsclient${EXEEXT}, emacsclientw${EXEEXT}): Use it. 2019-04-25 Alan Mackenzie Fix some corner cases in the recognition of C++ raw strings. These are where changing the identifier in a raw string delimiter causes different delimiters to match eachother. * lisp/progmodes/cc-engine.el (c-raw-string-end-delim-disrupted): New variable. (c-before-change-check-raw-strings): Use new variable. (c-after-change-unmark-raw-strings): When typing into an opening delimiter or altering its close delimiter causes the opening delimiter to match a later closing delimiter, clear all syntax-table char properties from the opening delimiter onwards, and set c-new-END to point max. Also, when changing a closing delimiter, check whether its new value matches a previously open opening delimiter earlier in the buffer, and amend the syntax-table text properties appropriately. 2019-04-24 Michael R. Mauger * lisp/progmodes/sql.el (sql-is-sqli-buffer-p): New function. (sql-generate-unique-sqli-buffer-name): Refactor and use it. (sql-product-interactive): Simplify name logic. * test/lisp/progmodes/sql-tests.el (sql-tests-placeholder-filter-harness): New macro. (sql-tests-placeholder-filter-simple) (sql-tests-placeholder-filter-ampersand) (sql-tests-placeholder-filter-period): Refactored tests and use macro. (sql-tests-buffer-naming-harness): New macro. (sql-tests-buffer-naming-default) (sql-tests-buffer-naming-multiple) (sql-tests-buffer-naming-explicit) (sql-tests-buffer-naming-universal-argument) (sql-tests-buffer-naming-existing): New tests. 2019-04-24 Paul Eggert Improve port to platforms lacking euidaccess (Bug#35406) * lib-src/emacsclient.c (set_local_socket): Use faccessat with AT_EACCESS instead of using euidaccess. * admin/merge-gnulib, lib/gnulib.mk.in, m4/gnulib-comp.m4: Revert previous change. 2019-04-24 Paul Eggert Port to platforms lacking euidaccess (Bug#35406) * admin/merge-gnulib (GNULIB_MODULES): Add euidaccess. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. 2019-04-24 Paul Eggert Merge from gnulib 2019-04-24 Mark Oteiza Fix some strings in wordstar mode * lisp/obsolete/ws-mode.el (ws-search-direction, ws-error, ws-end-block): (ws-mark-word, ws-undo, ws-goto-last-cursorposition, ws-last-error): (ws-kill-bol): Remove full stops from message string endings. Minor formatting tweaks. 2019-04-24 Mark Oteiza Change WordStar emulation into a minor mode (Bug#35148) * lisp/obsolete/ws-mode.el: Turn on lexical-binding. Update commentary. (wordstar): New custom group. (wordstar-mode-lighter): New custom variable. (wordstar-mode): Declare with define-minor-mode. (turn-on-wordstar-mode): New function. (global-wordstar-mode): New function. Use previous new function. 2019-04-24 Dmitry Gutov Fix project-find-regexp search for '--' * lisp/progmodes/project.el (project--find-regexp-in-files): Add an explicit '-e' before the pattern. Fixing the ability to search for '--'. Reported by Juri Linkov . 2019-04-24 Juri Linkov * lisp/windmove.el (windmove-display-in-direction): Support consecutive calls Remember action and delete it from display-buffer-overriding-action afterwards 2019-04-24 Philipp Stephani Unbreak build when building without GMP support. Add support for a new preprocessor macro EMACS_MODULE_HAVE_MPZ_T to emacs-module.h. If this macro is defined, assume that mpz_t is already defined and don’t include gmp.h. Don’t document the new macro for now, as it’s unclear whether we want to support this in modules outside the Emacs tree. * src/emacs-module.h.in: Allow user to prevent inclusion of gmp.h. * src/emacs-module.c: Use mini-gmp if GMP is unavailable. Don’t include gmp.h. * src/lisp.h: Don’t require gmp.h. It’s not needed for lisp.h. * test/Makefile.in (GMP_LIB, GMP_OBJ): New variables. ($(test_module)): Use them. * test/data/emacs-module/mod-test.c: Use mini-gmp if GMP is unavailable. 2019-04-24 Philipp Stephani Add missing GMP library to test module. * test/Makefile.in (GMP_LIB): Define variable. ($(test_module)): Use it. 2019-04-24 Philipp Stephani Move definition of Lisp_Module_Function to emacs-module.c. * src/lisp.h: Remove include of emacs-module.h. Remove definition of Lisp_Module_Function structure. * src/emacs-module.c (module_function_documentation) (module_function_address): New accessor functions for module function fields. (emacs_subr, struct Lisp_Module_Function): Move from lisp.h. * src/print.c (print_vectorlike): * src/doc.c (Fdocumentation): Use the new accessor functions. 2019-04-24 Paul Eggert Simplify thread initialization and GC * src/lisp.h (PVECHEADERSIZE): New macro. (XSETPVECTYPESIZE): Use it. * src/search.c (syms_of_search): No need to initialize or staticpro last_thing_searched or saved_last_thing_searched, as the thread code arranges for initialization and GC. * src/thread.c (main_thread): Initialize statically. (Fmake_mutex, Fmake_condition_variable, Fmake_thread): Use ALLOCATE_ZEROED_PSEUDOVECTOR rather than zeroing by hand. (mark_one_thread): No need to mark Lisp_Object members. (init_main_thread, init_threads_once): Remove. All uses removed. 2019-04-24 Eli Zaretskii Regenerate src/emacs-module.h when emacs-module.h.in changes * Makefile.in (CONFIG_STATUS_FILES_IN): Add src/emacs-module.h.in. 2019-04-24 Eli Zaretskii Fix rescheduling timers after suspension * lisp/emacs-lisp/timer.el (timer-event-handler): Fix the comparison between next invocation time and current time. 2019-04-24 Eli Zaretskii Fix posn-at-point with line-number display and display properties * src/xdisp.c (pos_visible_p): Account for line-number display width when CHARPOS is covered by display property that begins at the 2nd display element of a screen line. (Bug#35404) 2019-04-24 Eli Zaretskii Fix a typo in a recent commit * src/timefns.c (timespec_to_lisp): Fix a typo in function definition. 2019-04-24 Philipp Stephani * doc/lispref/internals.texi (Module Values): Add a GMP example 2019-04-24 Philipp Stephani Clarify rounding mode when converting to struct timespec. * doc/lispref/internals.texi (Module Values): Clarify that the truncation is towards negative infinity. * test/data/emacs-module/mod-test.c (Fmod_test_nanoseconds): Add test function. (emacs_module_init): Define it. * test/src/emacs-module-tests.el (mod-test-nanoseconds): New unit test. 2019-04-24 Philipp Stephani Fix return type of make_time. make_time is documented to return a (TICKS . HZ) pair, so we can’t use make_lisp_time. Introduce a new conversion function instead. * src/emacs-module.c (module_make_time): Use timespec_to_lisp to correct return type. * src/timefns.c (timespec_to_lisp): New function. (make_lisp_time): Use it. * test/src/emacs-module-tests.el (mod-test-add-nanosecond/valid): Check return type. 2019-04-24 Philipp Stephani Add module functions to convert from and to big integers. * src/module-env-27.h: Add new module functions to convert big integers. * src/emacs-module.h.in (emacs_mpz): Define if GMP is available. * src/emacs-module.c (module_extract_big_integer) (module_make_big_integer): New functions. (initialize_environment): Use them. * test/data/emacs-module/mod-test.c (Fmod_test_double): New test function. (emacs_module_init): Define it. * test/src/emacs-module-tests.el (mod-test-double): New unit test. * doc/lispref/internals.texi (Module Values): Document new functions. 2019-04-24 Philipp Stephani Add conversions to and from struct timespec to module interface. Time values are a fundamental data type, and such conversions are hard to implement within modules because of the various forms of time values in Emacs Lisp. Adding dedicated conversion functions can significantly simplify module code dealing with times. This approach uses nanosecond precision. While Emacs in theory has support for higher-precision time values, in practice most languages and standards, such as POSIX, C, Java, and Go, have settled on nanosecond-precision integers to represent time. * src/emacs-module.h.in: Add header for struct timespec. * src/module-env-27.h: Add module functions for time conversion. * src/emacs-module.c (module_extract_time, module_make_time): New functions. (initialize_environment): Use them. * test/data/emacs-module/mod-test.c (Fmod_test_add_nanosecond): New test function. (emacs_module_init): Define it. * test/src/emacs-module-tests.el (mod-test-add-nanosecond/valid) (mod-test-add-nanosecond/nil, mod-test-add-nanosecond/invalid): New unit tests. * doc/lispref/internals.texi (Module Values): Document time conversion functions. 2019-04-23 Eli Zaretskii Revert "Remove font.c code commented out for a decade" This reverts commit 64d0cd9810af6bd0c378fc6bc666c76ddfa97e40. Rationale: any font-related code and comments, even if unused for decades, serves as important source of useful information in an area of Emacs code that is notoriously under-documented. Please do NOT remove this stuff until we have an active expert in this are on board, who will then decide whether this can be retired. 2019-04-23 YAMAMOTO Mitsuharu Don't link libXft when using cairo * configure.ac: Check cairo early. Don't try Xft if cairo is used. * lwlib/lwlib-utils.h [USE_CAIRO]: Include cairo.h and fontconfig.h. (XftFont, XftDraw, XftColor, XGlyphInfo) [USE_CAIRO]: New typedefs. (XftFontOpenName, XftFontClose, XftDrawCreate, XftDrawDestroy) (XftDrawRect, XftDrawStringUtf8, XftTextExtentsUtf8) [USE_CAIRO]: New macros. (crxft_font_open_name, crxft_font_close, crxft_draw_create) (crxft_draw_rect, crxft_draw_string, crxft_text_extents) [USE_CAIRO]: New externs. * lwlib/lwlib-utils.c [USE_CAIRO]: Include math.h, cairo-ft.h, and cairo-xlib.h. (crxft_font_open_name, crxft_font_close, crxft_draw_create) (crxft_set_source_color, crxft_draw_rect, crxft_draw_string) (crxft_text_extents) [USE_CAIRO]: New Xft compatibility functions. * lwlib/xlwmenuP.h [USE_CAIRO]: Include lwlib-utils.h. * lwlib/xlwmenu.c (display_menu_item) [USE_CAIRO]: Call cairo_surface_mark_dirty and cairo_surface_flush. * lwlib/lwlib-Xaw.c [USE_CAIRO]: Include stdlib.h and lwlib-utils.h. (draw_text) [USE_CAIRO]: Call cairo_surface_flush. * src/xsettings.c [USE_CAIRO]: Include fontconfig.h (apply_xft_settings) [!HAVE_XFT]: Don't call XftDefaultSubstitute or XftDefaultSet. * lwlib/lwlib-Xaw.c: * lwlib/lwlib-int.h: * lwlib/xlwmenu.c: * lwlib/xlwmenuP.h: * src/xrdb.c: * src/xsettings.c: * src/xterm.c: Replace all #ifdef HAVE_XFT with #if defined USE_CAIRO || defined HAVE_XFT. * src/xfns.c (x_default_font_parameter): Replace #ifdef HAVE_XFT with #if defined USE_CAIRO || defined HAVE_XFT. 2019-04-23 Stefan Monnier * lisp/emacs-lisp/timer-list.el: Fix header-line alignment Enable lexical-binding. (cl-print-compiled, cl-print-compiled-button): Declare. (timer-list-mode): Add spacing to align the header. 2019-04-23 Philipp Stephani * src/emacs-module.c: Add an additional requirement for API changes. 2019-04-23 Paul Eggert Remove some unnecessary #ifdef directives These directives are in files that are compiled only if the symbols are defined. * src/gfilenotify.c: Remove unnecessary ‘#ifdef HAVE_GFILENOTIFY’. * src/inotify.c: Remove unnecessary ‘#ifdef HAVE_INOTIFY’. * src/kqueue.c: Remove unnecessary ‘#ifdef HAVE_KQUEUE’. 2019-04-23 Stefan Monnier * etc/package-keyring.gpg: Add the 2019 key 2019-04-23 Paul Eggert Remove font.c code commented out for a decade * src/font.c (LSTRING_HEADER_SIZE, LSTRING_GLYPH_SIZE, check_gstring) (check_otf_features, otf_list, otf_tag_symbol, otf_open) (font_otf_capability, generate_otf_features) (font_otf_DeviceTable, font_otf_ValueRecord) (font_otf_Anchor, Ffont_drive_otf, Ffont_otf_alternates) (Fdraw_string, syms_of_font): Remove "experimental and not tested much" code that has been "#if 0"-ed out for more than a decade and which was getting in the way of maintenance. 2019-04-23 Philipp Stephani Use three-argument form for out-of-range errors. This provides more debugging hints for callers. * src/emacs-module.c (module_copy_string_contents): Use three-argument form of args-out-of-range. 2019-04-23 Philipp Stephani Use high-level integer conversion macro in a few cases. INT_TO_INTEGER is more obviously correct and means we don’t have to worry about data type sizes and signedness. * src/json.c (json_parse_error): Use INT_TO_INTEGER. The tiny performance gain of make_fixed_natnum isn’t worth the trouble then signaling an error. 2019-04-23 Mattias Engdegård Rename auto-revert-notify-watch-descriptor-hash-list * lisp/autorevert.el (auto-revert-notify-watch-descriptor-hash-list): Rename to auto-revert--buffers-by-watch-descriptor. Improved doc string. (auto-revert-notify-rm-watch, auto-revert-notify-add-watch, auto-revert-notify-handler): Use new name. 2019-04-23 Michael Albinus Remote processes cannot use a pipe process for stderr * doc/lispref/processes.texi (Asynchronous Processes): (Accepting Output): Remote processes cannot use a pipe process for stderr. 2019-04-23 Philipp Stephani * src/json.c (json_make_string): Add missing cast. 2019-04-23 Eli Zaretskii Speed up JSON parsing Thanks to Dmitry Gutov for running many benchmarks and for useful discussions. * src/json.c (json_make_string): Speed up parsing of JSON strings by optimizing the normal case of a valid UTF-8 string being returned from libjansson. (Bug#31138) 2019-04-23 Philipp Stephani Small fix for a JSON unit test. * test/src/json-tests.el (json-parse-string/null): Make JSON object syntactically valid. This test is supposed to check whether an escaped null character causes an error, but without quoting the string it would be syntactically invalid in any case. 2019-04-23 Alan Mackenzie Optimize for typing characters into long C++ raw strings. * lisp/progmodes/cc-fonts.el (c-font-lock-complex-decl-prepare) (c-font-lock-objc-methods) (c-font-lock-declarations, c-font-lock-enum-tail) (c-font-lock-cut-off-declarators, c-font-lock-enclosing-decls): If the chunk been fontified consists entirely of comments and strings, don't attempt to perform the function's action. * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Don't expand (c-new-BEG c-new-END) unnecessarily to the entire raw string being fontified. (c-fl-decl-start, c-fl-decl-end): When in a (raw or otherwise) string, don't return a position outside of the string (which used to cause unneeded fontification). 2019-04-23 YAMAMOTO Mitsuharu Release xft_data in widget destroy callback to avoid visual distraction * lwlib/lwlib-int.h (struct _widget_instance) [HAVE_XFT]: Remove nr_xft_data. * lwlib/lwlib-Xaw.c (find_xft_data, xaw_update_one_widget) [HAVE_XFT]: Loop while widget member is not NULL instead of using nr_xft_data. (xaw_destroy_instance) [HAVE_XFT]: Move xft_data release code from here ... (destroy_xft_data) [HAVE_XFT]: ... to here. (make_dialog) [HAVE_XFT]: Add destroy_xft_data as destroy callback for dialog. 2019-04-22 Paul Eggert Let plain ‘make’ work even not GNU Make * Makefile.in (top_distclean): Clean makefile as well as Makefile. * configure.ac: If not using plain ‘make’, create a makefile so that plain ‘make’ simply calls $(MAKE). 2019-04-22 Paul Eggert Revert Vinternal_interpreter_environment tweak Stefan Monnier pointed out examples like (funcall `(closure ,(let ((cycle (list nil))) (setcdr cycle cycle)) () a)), where the user can set Vinternal_interpreter_environment indirectly. * src/eval.c (Fsetq): Revert recent change, going back to Fassq. 2019-04-22 Paul Eggert Improve UBSan discussion in etc/DEBUG * etc/DEBUG: Improve -gdwarf-N documentation. Go into more detail about UndefinedBehaviorSanitizer. 2019-04-22 Paul Eggert Tweak Vinternal_interpreter_environment lookup * src/eval.c (Fsetq, eval_sub): Use assq_no_quit instead of Fassq for a list that cannot contain cycles or be that long. 2019-04-22 Paul Eggert Improve wur coverage on older GCCs * src/conf_post.h (__has_attribute_warn_unused_result): New macro for compilers lacking __has_attribute. * src/systhread.h (__has_attribute): Remove ineffective define. (ATTRIBUTE_WARN_UNUSED_RESULT): Work better on GCC 3.4 thru 4. 2019-04-22 Paul Eggert Go back to old way of checking json int range Although the lisp.h macros really need improvement, INTEGER_TO_INT is not the right way to go about it, as it causes conversion from intmax_t to uintmax_t and back again, which can cause a signal if the value is negative. * src/lisp.h (INTEGER_TO_INT, ranged_integer_to_int) (ranged_integer_to_uint): Remove, reverting recent changes to this file. * src/json.c (lisp_to_json): Revert to previous code, as the change messes up with uintmax_t<->intmax_t conversion. 2019-04-22 Philipp Stephani * src/lisp.h (INTEGER_TO_INT): Fix bug. 2019-04-22 Mattias Engdegård Precise handling of filenotify `stopped' events * lisp/autorevert.el (auto-revert-notify-handler): When getting a `stopped' event, deal with it for the buffers it applies to, rather than for all buffers in auto-revert mode. 2019-04-22 Mattias Engdegård * lisp/autorevert.el (auto-revert-notify-rm-watch): Simplify. 2019-04-22 Mattias Engdegård Revert "Don't remove notify descriptor that is already gone" This reverts commit e9e807e9317ca7aa99a5dd220ee8586f8f4331bf, which is no longer necessary as `file-notify-rm-watch' has been made robust against reentry. 2019-04-22 Mattias Engdegård Make file-notify-rm-watch robust against reentry Allow file-notify callbacks to call `file-notify-rm-watch', harmlessly, after receiving a `stopped' event without triggering recursion. * lisp/filenotify.el (file-notify--watch): Note that `callback' can be nil. (file-notify--rm-descriptor): Set the `callback' field to nil before sending `stopped'. (file-notify-rm-watch): Don't do anything if the `callback' field is nil. 2019-04-22 Philipp Stephani Introduce a helper macro to convert a Lisp integer to a C integer. This is similar to CONS_TO_INTEGER. The inverse (INT_TO_INTEGER) already exists. * src/lisp.h (INTEGER_TO_INT): New macro. (ranged_integer_to_int, ranged_integer_to_uint): New functions. * src/json.c (lisp_to_json): Use helper macro. 2019-04-22 Philipp Stephani Improve documentation around standard error pipes (Bug#35328). * doc/lispref/processes.texi (Asynchronous Processes): Document existence and properties of the standard error process. (Accepting Output): Document that one has to accept output from the standard error process separately. 2019-04-22 Philipp Stephani Module API: Don’t require null-terminated strings in make_string. * src/emacs-module.c (module_make_string): Use make_unibyte_string, which doesn’t require its argument to be null-terminated. Since it always returns a heap-allocated string, we don’t have to copy it any more while decoding. (module_decode): New helper function. 2019-04-22 Philipp Stephani Use utf-8-unix for coding system conversions in the module API. Factor out conversions into helper functions to provide a simpler interface. * src/emacs-module.c (module_encode, module_decode_copy): New helper functions. (module_make_function, module_copy_string_contents) (module_make_string): Use them. 2019-04-22 Basil L. Contovounesios Improve pure and side-effect-free docs For discussion, see thread starting at: https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg00316.html * doc/lispref/customize.texi (Composite Types): Do not overspecify :match-alternatives predicates. * doc/lispref/eval.texi (Intro Eval): Anchor definition of "side effect" for cross-referencing... * doc/lispref/functions.texi (What Is a Function): ...from here. Define what a pure function is. * doc/lispref/internals.texi (Writing Emacs Primitives): Describe currently preferred approach to marking primitives as pure and side-effect-free. * doc/lispref/symbols.texi (Standard Properties): Expand description of pure and side-effect-free properties. 2019-04-22 Philipp Stephani Refactoring: Inline a few macros. Now that CATCHER_ALL catches signals as well, we can simplify MODULE_HANDLE_NONLOCAL_EXIT a bit. * src/emacs-module.c (MODULE_SETJMP, MODULE_SETJMP_1): Remove. (MODULE_HANDLE_NONLOCAL_EXIT): Inline MODULE_SETJMP and MODULE_SETJMP_1. 2019-04-22 Michael Albinus Some changes in tramp-tests * test/lisp/net/tramp-tests.el (tramp-test32-shell-command): Check for backward compatibility. (tramp-test33-environment-variables): Apply a better check for unset variable. 2019-04-21 Paul Eggert Mention AddressSanitizer etc. in etc/DEBUG * etc/DEBUG: Modernize for AddressSanitizer etc. * etc/NEWS: Defer to etc/DEBUG for this. 2019-04-21 Paul Eggert Remove --enable-checking=xmallocoverrun It doesn’t work anymore, and these days ‘gcc -fsanitize=address’ does a better job anyway. * configure.ac: Remove the option. * configure.ac (ac_xmalloc_overrun, XMALLOC_OVERRUN_CHECK): * src/alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD) (XMALLOC_OVERRUN_CHECK_SIZE, XMALLOC_OVERRUN_SIZE_SIZE) (xmalloc_overrun_check_header, xmalloc_overrun_check_trailer) (xmalloc_put_size, xmalloc_get_size, overrun_check_malloc) (overrun_check_realloc, overrun_check_free): Remove. All uses removed. * etc/NEWS: Mention this. 2019-04-21 Paul Eggert Remove --enablechecking=conslist configure option * configure.ac: Remove the option. * configure.ac (ac_gc_check_cons_list, GC_CHECK_CONS_LIST): * src/alloc.c (check_cons_list) [GC_CHECK_CONS_LIST]: * src/lisp.h (lisp_h_check_cons_list, check_cons_list): Remove. All uses removed. * etc/NEWS: Mention this. 2019-04-21 Paul Eggert Simplify XPNTR Because XPNTR now uses ATTRIBUTE_NO_SANITIZE_UNDEFINED, it can be simplified. * src/alloc.c (macro_PNTR_ADD, PNTR_ADD, macro_XPNTR): Remove. (XPNTR): Open-code rather than using the removed macros and functions. Also, simplify by using LISP_WORD_TAG. 2019-04-21 Paul Eggert Fix drain_reloc_list alignment bug * src/pdumper.c (dump_charset): Use alignof (struct charset), not alignof (int), since struct charset might be more strictly aligned than int. I think this is just a minor performance issue, but we might as well use the correct alignment. (drain_reloc_list): Use an alignment instead of a size for the output alignment. This prevents undefined behavior when alignof (struct emacs_reloc) == 8 and sizeof (dump_off) == 4 when building on x86-64 with gcc -fsanitize=undefined. 2019-04-21 Paul Eggert Port dump_bitset_clear to -fsanitize=undefined * src/pdumper.c (dump_bitset_clear): Pacify -fsanitize=undefined by avoiding memset (NULL, x, 0), which strictly speaking has undefined behavior although it works on all production platforms I know. 2019-04-21 Paul Eggert Port to recent gcc -fsanitize=undefined * src/alloc.c (XPNTR): Add ATTRIBUTE_NO_SANITIZE_UNDEFINED and remove ATTRIBUTE_UNUSED. Do not define as a macro, so that ATTRIBUTE_NO_SANITIZE_UNDEFINED works. * src/lisp.h (lisp_h_XSYMBOL): Remove. All uses removed. With recent GCC the macro does not work with -fsanitize=undefined, and the macro can be omitted as its only function is to optimize -O0. 2019-04-21 Basil L. Contovounesios Move side-effect-free from unsafep.el to subr.el * lisp/emacs-lisp/unsafep.el: Move side-effect-free property setting from here... * lisp/subr.el: ...to here, as function declarations for modularity. 2019-04-21 Paul Eggert Fix double-free in pdumper Revert the double-free bug that I introduced in 2019-03-11T15:20:54Z!eggert@cs.ucla.edu. * src/pdumper.c (dump_mmap_reset): Do not free the private member; that’s the release function’s job. (dump_mm_heap_cb_release): Free cb if its refcount goes to zero. (dump_mmap_contiguous_heap): Mention memory leak in comment. 2019-04-21 Glenn Morris Merge from origin/emacs-26 9d7e08d (origin/emacs-26) Avoid false positives and false negatives o... 75b589c Fix markup related to quoting in Info fd6ff29 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emac... cd2204f Add a package: line to c-submit-bug-report. a992dca ; Remove empty NEWS sections ea67270 ; Add NEWS sections for 26.3 45b0946 ; Bump Emacs version to 26.2.50 aae8cc3 * admin/admin.el (set-version): Add NEWS headers for a .50 ve... 2019-04-21 Glenn Morris Merge from origin/emacs-26 cd2204f Add a package: line to c-submit-bug-report. a992dca ; Remove empty NEWS sections ea67270 ; Add NEWS sections for 26.3 Conflicts: etc/NEWS 2019-04-21 Glenn Morris Merge from origin/emacs-26 aae8cc3 * admin/admin.el (set-version): Add NEWS headers for a .50 ve... 2019-04-21 Glenn Morris Merge from origin/emacs-26 037970f Document insert-image-file's return value (Bug#32978) 598b45a Autoload cua-toggle-rectangle-mark (Bug#34947) 95bd56d Tell xclip not to expect job-control under eshell (Bug#35257) 9997bbb ; * src/emacs.c: Fix typo in comment (Bug#35320). a4ad7be Fix off-by-one-link error in image--set-property 2019-04-20 Paul Eggert Port make-fingerprint to LeakSanitizer * lib-src/make-fingerprint.c (buf): Now static, to pacify LeakSanitizer. 2019-04-20 Michael R. Mauger Fix Bug#35307. * lisp/progmodes/sql.el(sql-product-alist): Added :prompt-cont-regexp for ms. Looking for experience with Microsofts SQLCMD interpreter and adjustments needed for Emacs to support it. 2019-04-20 Michael R. Mauger Fix Bug#24483. * lisp/progmodes/sql.el (sql-interactive-remove-continuation-prompt): Properly protect `sql-prompt-cont-regexp'. (sql-interactive-mode): Same. * lisp/progmodes/sql.el (sql-product-alist): Corrected :terminator defns. (sql-debug-send): New variable. (sql-send-string): Use it and correct buffer context. (sql-send-magic-terminator): Use `sql-input-sender'. (sql-placeholders-filter): Bug#11481 Don't recursively replace placeholders * test/lisp/progmodes/sql-tests.el (sql-test-placeholder-filter): Test placeholder functionality. 2019-04-20 YAMAMOTO Mitsuharu Fix text metrics calculation in Xft support for lwlib * lwlib/lwlib-Xaw.c (get_text_width_and_height) [HAVE_XFT]: * lwlib/xlwmenu.c (string_width) [HAVE_XFT]: Use xOff member instead of width. 2019-04-20 Alexander Gramiak * src/configure.ac: Check for GTK 2 features only on GTK 2 2019-04-20 YAMAMOTO Mitsuharu * lwlib/lwlib-Xaw.c (draw_text) [HAVE_XFT]: Fix memory leak. 2019-04-20 Dmitry Gutov Support amending the last commit using VC-Hg * lisp/vc/log-edit.el (log-edit--toggle-amend): Extract from vc-git-log-edit-toggle-amend (bug#34944). * lisp/vc/vc-hg.el (vc-hg-log-edit-toggle-amend): New function. Use the aforementioned. (vc-hg-log-edit-mode-map): New variable. (vc-hg-log-edit-mode): New major mode. 2019-04-20 Michael Albinus Mark different-diagnostic-types as failed on emba. * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Expect also failure on emba.gnu.org. 2019-04-20 Paul Eggert Improve XDG_RUNTIME_DIR diagnostic * lib-src/emacsclient.c (set_local_socket): If there appears to be an XDG runtime directory for the user but XDG_RUNTIME_DIR is unset, suggest setting it while warning about potential security issues (Bug#35300). 2019-04-20 Alan Mackenzie Fix Pike Mode's autodoc doc comments style's continued lines. * lisp/progmodes/cc-engine.el (c-forward-sws, c-backward-sws): Recognize matches of c-doc-line-join-re as syntactic whitespace. (c-find-decl-prefix-search): Recognize and move over matches of c-doc-line-join-re as whitespace. (c-find-decl-spots): Before moving backward a char, check (bobp). Before moving forward over a comment, check it isn't possibly a "bright" comment. * lisp/progmodes/cc-fonts.el (c-get-doc-comment-style): New function, extracted from c-compose-keywords-list. (c-compose-keywords-list): Call the above new function. (pike-font-lock-keywords, pike-font-lock-keywords-2) (pike-font-lock-keywords-3): Call c-set-doc-comment-res. (c-doc-line-join-re, c-doc-bright-comment-start-re, c-doc-line-join-end-ch): New variables. (c-set-doc-comment-re-element, c-set-doc-comment-char-list): New macros. (c-set-doc-comment-res): New function. (c-font-lock-doc-comments): For consistency and repeatability, in a sequence of C++ style doc comments, don't fontify the region between BOL and the comment marker. (autodoc-line-join-re, autodoc-bright-comment-start-re) (autodoc-line-join-end-ch): New variables. * lisp/progmodes/cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end): New functions. (c-change-expand-fl-region, c-context-expand-fl-region): Call the above two new functions for extra possibilities for the start and end of a construct. * doc/misc/cc-mode.texi (Doc Comments): Add a sentence drawing attention to the possibility of fontifying constructs within a doc comment. 2019-04-19 Stefan Monnier * lisp/emacs-lisp/smie.el (smie-indent-comment-continue): Single-char case. Make it so the comment-continue is aligned with the comment-start when comment-start is a single-char. 2019-04-19 YAMAMOTO Mitsuharu * src/ftcrfont.c (ftcrfont_shape): Fix last change. 2019-04-19 YAMAMOTO Mitsuharu Use bitmap strikes as fallbacks for ftcr font backend * src/ftfont.h (struct font_info): New member bitmap_strike_index. * src/ftfont.c (ftfont_open2): Try bitmap strikes as fallbacks. (ftfont_open): Discard bitmap strikes. * src/ftcrfont.c (ftcrfont_open): Recalculate metrics for bitmap strikes. (ftcrfont_get_bitmap, ftcrfont_anchor_point, ftcrfont_shape): New functions. (struct font_driver): Use them. 2019-04-19 Stefan Monnier * lisp/emacs-lisp/radix-tree.el (pcase-defmacro): Improve docstring * lisp/emacs-lisp/byte-run.el (define-obsolete-variable-alias): Tweak doc * lisp/calendar/time-date.el (date-to-time): 'signal' only takes 2 args * lisp/calendar/parse-time.el (parse-time-string): Use functionp and setf 2019-04-19 Paul Eggert Fix GC_CHECK_STRING_BYTES false alarm with pdumper * src/alloc.c (string_bytes): Don’t abort on strings taken from the dumped file. 2019-04-19 Paul Eggert Fix another hash false alarm * src/pdumper.c (dump_vectorlike): Fix hash. 2019-04-19 Paul Eggert * src/emacs-module.c (value_storage_contains_p): Fix typo. 2019-04-19 Philipp Stephani Remove some ineffective #ifdefs. Since DEFSYM doesn't by itself do anything and make-docfile ignores preprocessor statements, conditional compilation of DEFSYMs is ineffective. * src/data.c (syms_of_data): Remove ineffective #ifdefs. 2019-04-19 Philipp Stephani Remove some #ifdefs for user pointers. Even if Emacs is compiled without module support, we don't have to comment out every bit of user pointer support. Defining the basic structures and functions and detecting user pointers in switch statements is harmless, and we're already doing the same for module functions. Removing these #ifdefs makes the code a bit easier to read. * src/lisp.h (PVEC_USER_PTR, struct Lisp_User_Ptr, USER_PTRP) (XUSER_PTR): Define unconditionally. * src/data.c (Ftype_of): * src/alloc.c (cleanup_vector): * src/print.c (print_vectorlike): * src/pdumper.c (dump_vectorlike): Remove #ifdef for user pointers. 2019-04-19 Philipp Stephani Remove special-casing of tagged pointers. This partially reverts commit 09b2b8a5ce5b542856f93b645db51eb11cf9855a. * src/alloc.c (mark_maybe_pointer): Remove special-casing of tagged pointers. After commit 09d746dad36e4780d379f975a84b1b076da78c50, modules no longer rely on tagged pointers. 2019-04-19 Philipp Stephani Refactoring: Reduce code duplication * src/emacs-module.c (value_storage_contains_p): New function. (module_free_global_ref, value_to_lisp): Use it. 2019-04-19 Mattias Engdegård Remove subsumed regexp branches * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings) (c-after-change-mark-abnormal-strings): Remove `\r' subsumed by `.'. 2019-04-19 Paul Eggert Fix Fload dangling pointer * src/lread.c (Fload): Expand decl’s lifetime to match its use. Bug found by gcc -fsanitize=address. 2019-04-19 Paul Eggert Fix comment and tweak eval_sub * src/eval.c (eval_sub): Check whether Fassq returns Qnil, not whether it returns a cons, as NILP is faster than CONSP nowadays. Remove incorrect comment “only original_fun and original_args have values that will be used below”; instead, move declarations around so that the set of variables with useful values is obvious. 2019-04-19 Paul Eggert Fix dump_map_file on unusual platforms * src/pdumper.c (dump_map_file): Fix recently-introduced typo on platforms that support neither POSIX nor MS-Windows VM. 2019-04-19 Paul Eggert Minor lread.c tweaks * src/lread.c (load_warn_unescaped_character_literals): Use AUTO_STRING to help the GC. (Fload): Use bool for boolean. 2019-04-19 Eric Abrahamsen Clear gnus-group-list when the newsrc-hashtb is recreated * lisp/gnus/gnus-start.el (gnus-make-hashtable-from-newsrc-alist): This routine also happens when re-sorting groups; make sure we're clearing the group list. 2019-04-19 Philipp Stephani Make warning about unescaped character literals more helpful. See Bug#31676. * lisp/emacs-lisp/byte-run.el (byte-run--unescaped-character-literals-warning): New defun. * src/lread.c (load_warn_unescaped_character_literals): Use new defun. (syms_of_lread): Define symbol for new defun. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Use new defun. * test/src/lread-tests.el (lread-tests--unescaped-char-literals): test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--unescaped-char-literals): Adapt unit tests. 2019-04-19 Philipp Stephani Refactoring: simplify definition of some internal variables. In some cases, we never specbind internal objects, so they don't have to be symbols. Rather than using DEFSYM/DEFVAR and then uninterning the symbols, use plain static variables. Call staticpro for all of them, to protect them from the garbage collector. * src/eval.c (syms_of_eval): Use a static variable for Qcatch_all_memory_full. * src/emacs-module.c (syms_of_module): Use static variables for Vmodule_refs_hash, Vmodule_runtimes, and Vmodule_environments. 2019-04-19 Eric Abrahamsen Don't check for group existence in gnus-group-goto-group * lisp/gnus/gnus-group.el (gnus-group-goto-group): Just look for the string. 2019-04-19 Paul Eggert Fix regexp branches that subsume other branches Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-04/msg00803.html * lisp/arc-mode.el (archive-rar-summarize): * lisp/eshell/em-hist.el (eshell-hist-word-designator): * lisp/info.el (Info-dir-remove-duplicates): * lisp/international/ja-dic-cnv.el (skkdic-convert-postfix) (skkdic-convert-prefix, skkdic-collect-okuri-nasi): * lisp/progmodes/cc-awk.el (c-awk-esc-pair-re): * lisp/xml.el (xml-att-type-re): Omit regexp branches that subsume other branches. * lisp/progmodes/cperl-mode.el (cperl-beautify-regexp-piece): $ and ^ aren’t simple-codes. 2019-04-19 Paul Eggert Fix mail-extr regexp typo with ".". Problem reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-04/msg00543.html * lisp/mail/mail-extr.el (mail-extr-telephone-extension-pattern): Escape the trailing optional period after an abbreviation. 2019-04-19 Michael Albinus * lisp/net/tramp-adb.el (tramp-adb-prompt): Remove repetition of expression matching an empty string. 2019-04-19 Michael Albinus Do not handle :stop in tramp-*-handle-make-process * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Do not handle :stop anymore. 2019-04-19 Philipp Stephani Remove :stop key from make-process. This has never worked and caused issues such as Bug#30460. * src/process.c (Fmake_process): Don't accept :stop key any more. (syms_of_process): Define needed symbol 'null'. * test/src/process-tests.el (make-process/stop): New unit test. * doc/lispref/processes.texi (Asynchronous Processes): Remove :stop key from manual. 2019-04-19 Michael Albinus Adapt tramp-test32-shell-command * test/lisp/net/tramp-tests.el (tramp-test32-shell-command): Check "tput" before running `shell-command-width' test. 2019-04-19 Philipp Stephani Add a new user option 'ido-big-directories'. This provides an alternative to 'ido-max-directory-size', for directories that are statically known to be too big for Ido completion. * lisp/ido.el (ido-big-directories): New user option. (ido-directory-too-big-p): Use it. * test/lisp/ido-tests.el (ido-directory-too-big-p): New unit test. 2019-04-19 Philipp Stephani Use eassume (false) for branch that's never taken. * src/json.c (json_handle_nonlocal_exit): Use eassume (false) since this branch is never taken. 2019-04-19 Eli Zaretskii Fix compilation warning due to a recent change * src/json.c (json_handle_nonlocal_exit): Always return a value. 2019-04-18 YAMAMOTO Mitsuharu * src/ftcrfont.c (ftcrfont_glyph_extents): Activate ft_size_draw. * src/ftcrfont.c (ftcrfont_open): Avoid returning while blocking input. 2019-04-18 Philipp Stephani Refactoring: have CATCHER_ALL also catch signals. In all cases where we use a CATCHER_ALL handler we also want to catch signals. Therefore have 'signal' respect CATCHER_ALL. Adapt internal interfaces so that handlers can distinguish among the two types of nonlocal exits in CATCHER_ALL handlers. * src/lisp.h (enum nonlocal_exit): New enum. (struct handler): Add member 'nonlocal_exit' to hold the type of nonlocal exit during stack unwinding. * src/eval.c (signal_or_quit): Also respect CATCHER_ALL handlers. (unwind_to_catch): Store nonlocal exit type in catch structure. (Fthrow, signal_or_quit): Adapt callers. (internal_catch_all): Install only one handler. Give handler a nonlocal exit type argument. (internal_catch_all_1): Remove, no longer needed. * src/emacs-module.c (MODULE_SETJMP): Install only one handler. (module_handle_nonlocal_exit): New function to handle all nonlocal exits. (MODULE_SETJMP_1): Pass nonlocal exit type to handler function. (module_handle_signal, module_handle_throw): Remove, no longer needed. * src/json.c (json_handle_nonlocal_exit): New helper function. (json_insert_callback): Adapt to change in 'internal_catch_all'. 2019-04-18 Philipp Stephani Update module documentation for bignum support. * doc/lispref/internals.texi (Module Values): Update documentation for 'make_integer' and 'extract_integer' for bignum support. 2019-04-18 Philipp Stephani * lib-src/make-fingerprint.c (main): Properly initialize 'prog' * src/emacs-module.c: Add instructions how to change the module API 2019-04-18 Paul Eggert Fix make-fingerprint off-by-one bug Problem reported by Alex Gramiak in: https://lists.gnu.org/r/emacs-devel/2019-04/msg00784.html * lib-src/make-fingerprint.c (main): Fix recently-introduced off-by-one bug when accessing args after -r. 2019-04-18 Eric Abrahamsen Only encode Gnus group names if they come from symbol-name * lisp/gnus/gnus-start.el (gnus-active-to-gnus-format): Names that were strings to begin with should already be properly encoded. 2019-04-18 Paul Eggert Mark _Noreturn error functions as cold On my platform this made ‘make compile-always’ 1.3% faster. Suggested by Alex Gramiak in: https://lists.gnu.org/r/emacs-devel/2019-04/msg00684.html * configure.ac (nw): Don’t use -Wsuggest-attribute=cold. * lib-src/make-docfile.c (write_globals): Mark noreturn functions as cold. * src/callproc.c (exec_failed): * src/data.c (wrong_length_argument, wrong_type_argument): * src/emacs-module.c (module_abort): * src/emacs.c (terminate_due_to_signal): * src/eval.c (unwind_to_catch): * src/image.c (my_png_error, my_error_exit): * src/json.c (json_out_of_memory, json_parse_error): * src/keyboard.c (quit_throw_to_read_char, user_error): * src/lisp.h (die, wrong_type_argument, wrong_choice) (args_out_of_range, args_out_of_range_3, circular_list) (buffer_overflow, memory_full, buffer_memory_full) (string_overflow, xsignal, xsignal0, xsignal1, xsignal2) (xsignal3, signal_error, overflow_error, error, verror) (nsberror, report_file_errno, report_file_error) (report_file_notify_error, terminate_due_to_signal) (emacs_abort, fatal): * src/lread.c (load_error_old_style_backquotes) (end_of_file_error, invalid_syntax): * src/pdumper.c (error_unsupported_dump_object): * src/puresize.h (pure_write_error): * src/search.c (matcher_overflow): * src/sound.c (sound_perror, alsa_sound_perror): * src/sysdep.c (handle_arith_signal): * src/systime.h (time_overflow): * src/term.c (maybe_fatal, vfatal): * src/textprop.c (text_read_only): * src/timefns.c (invalid_time_zone_specification) (time_error, invalid_hz): * src/xterm.c (x_connection_closed): Use AVOID instead of _Noreturn void, so that it’s marked cold. * src/conf_post.h (__has_attribute_cold) [!__has_attribute]: New macro. (ATTRIBUTE_COLD): New macro. * src/frame.h (WINDOW_SYSTEM_RETURN): Add ATTRIBUTE_COLD. * src/lisp.h (AVOID): New macro. * src/xterm.c: Omit unnecessary static decls, so that we needn’t worry about which functions should be marked cold. (x_io_error_quitter): Mark as cold. 2019-04-17 YAMAMOTO Mitsuharu * src/ftcrfont.c (ftcrfont_glyph_extents): Fix last change. 2019-04-17 Philipp Stephani Add ERT explainer for 'tramp--test-file-attributes-equal-p' * test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p): Use ERT explainer for 'equal' to improve failure messages. 2019-04-17 Michael Albinus Fix tramp-test32-shell-command * test/lisp/net/tramp-tests.el (tramp-test32-shell-command): Run only if "tput" exist. 2019-04-17 Glenn Morris Merge from origin/emacs-26 a1c53d4 (origin/emacs-26) * admin/admin.el (make-manuals-dist--1): Up... d0f745f Document some compilation-mode faces 23ccba0 Mention the assignment form in "Copyright Assignment" 0f5568e Fix confusing wording in the user manual 70ec392 Fix the MSDOS build when running under CWSDPMI 7a608fc * lisp/progmodes/python.el: Be more careful about temp file r... 2019-04-17 Glenn Morris Merge from origin/emacs-26 266c622 Downcase charset 92f3459 Update for Emacs-26 beb4eac * doc/lispref/display.texi (Showing Images): Fix a typo. (Bu... 2019-04-17 Michael Albinus Fix Bug#35241 * lisp/files.el (executable-find): Quote default-directory. (Bug#35241) * test/lisp/files-tests.el (files-tests-executable-find): New test. 2019-04-17 Michael Albinus * test/lisp/files-tests.el: Unify test names * test/lisp/files-tests.el (files-tests-local-variables) (files-tests-bug-18141, files-tests-make-temp-file-empty-prefix) (files-tests-bug-21454) (files-tests-save-buffers-kill-emacs--confirm-kill-processes) (files-tests-read-file-in-~) (files-tests-file-name-non-special--subprocess) (files-tests-file-name-non-special--buffers) (files-tests-insert-directory-wildcard-in-dir-p) (files-tests-make-directory, files-tests-no-file-write-contents) (files-tests-copy-directory, files-tests-abbreviated-home-dir): Unify test names. 2019-04-17 Michael Albinus Test `shell-command-width' in Tramp * test/lisp/net/tramp-tests.el (tramp--test-shell-command-to-string-asynchronously): Move up. (tramp-test32-shell-command): Test `shell-command-width'. 2019-04-16 YAMAMOTO Mitsuharu Use cairo_scaled_font_t object for text drawing and metrics calculation * src/ftfont.h (struct font_info): Replace member cr_font_face of type cairo_font_face_t * with cr_scaled_font of type cairo_scaled_font_t *. * src/ftcrfont.c: Include math.h for floor, ceiling, and lround. (ftcrfont_glyph_extents): Use cairo_scaled_font_glyph_extents. (ftcrfont_open): Create cairo_scaled_font_t object and set it to cr_scaled_font member of struct font_info. (ftcrfont_close): Use cairo_scaled_font_destroy. (ftcrfont_draw): Use cairo_set_scaled_font. 2019-04-16 Andrii Kolomoiets (tiny change) Make python-shell-prompt-block-regexp match IPython prompt * lisp/progmodes/python.el (python-shell-prompt-block-regexp): Match also IPython's multiline prompt. It allows to correctly disable non-native completions during multiline statement in inferior-python-mode that runs IPython interpreter (Bug#34582). 2019-04-16 Juri Linkov * etc/NEWS: Mention new xref faces (bug#23179) 2019-04-16 Juri Linkov * lisp/vc/diff-mode.el (diff-syntax-fontify-hunk): Erase buffer before inserting file contents to *diff-syntax-file*. Use absolute file names. 2019-04-16 Paul Eggert * GNUmakefile: Update comment. 2019-04-16 Glenn Morris * make-dist (possibly_non_vc_files): Remove recently deleted file. 2019-04-15 Paul Eggert Fix uninit var in widget.c * src/widget.c (EmacsFrameQueryGeometry): Avoid use of uninitialized variables ok_width, ok_height (Bug#35277). 2019-04-15 Paul Eggert Remove Vparam_value_alist * src/xfaces.c (Vparam_value_alist): Remove. All uses removed. (Finternal_set_lisp_face_attribute): Simplify by using AUTO_FRAME_ARG. 2019-04-15 Noam Postavsky Properly bracket concat of comment-start-skip (Bug#34805) * lisp/emacs-lisp/smie.el (smie-indent-fixindent): * lisp/cedet/semantic/doc.el (semantic-doc-snarf-comment-for-tag): * lisp/progmodes/fortran.el (fortran-previous-statement) (fortran-next-statement) (fortran-fill-statement): * lisp/progmodes/vhdl-mode.el (vhdl-beginning-of-statement): Bracket comment-start-skip and comment-end-skip to avoid unexpected regexp operator precedence. 2019-04-15 Eli Zaretskii Minor change in a comment * test/src/callproc-tests.el (call-process-w32-debug-spawn-error): Minor copyedits of the commentary. 2019-04-15 Eli Zaretskii Fix MS-Windows build broken by make-fingerprint changes * lib-src/make-fingerprint.c (fseeko) [WNDOWSNT]: Define to fseeko64 for non-MinGW64 MinGW. * lib-src/ntlib.c (stat): Fix calculation of file size. (fstat): New function, a subset of src/w32.c:fstat. This is needed because make-fingerprint.c now calls 'fstat', and the MS version will fail to produce reliable results because nt/inc/sys/stat.h redefines 'struct stat'. 2019-04-15 Michael Albinus * .gitlab-ci.yml (test-filenotify-gio): Add autorevert changes. 2019-04-15 Mattias Engdegård Don't remove notify descriptor that is already gone * lisp/autorevert.el (auto-revert-use-notify, auto-revert-mode, global-auto-revert-mode, auto-revert-notify-rm-watch, auto-revert-notify-add-watch, auto-revert-notify-handler, auto-revert-notify-rm-watch-callback): Don't remove a notify descriptor after receiving a `stopped' notification event, because the descriptor is then already gone and any attempt to remove it causes a recursive call to `auto-revert-notify-handler'. 2019-04-15 Michael Albinus * doc/misc/tramp.texi: Fix direntry. 2019-04-14 Paul Eggert Remove static var system_eol_type * src/coding.c (system_eol_type): Remove. (coding_inherit_eol_type, syms_of_coding): Simplify to avoid the need for system_eol_type. 2019-04-14 YAMAMOTO Mitsuharu Avoid compiler warnings on cairo build * src/image.c (jpeg_load_body) [USE_CAIRO]: #ifdef out USE_SAFE_ALLOCA and SAFE_FREE. * src/xterm.c (x_composite_image) [USE_CAIRO]: #ifdef out unused function. (x_draw_image_glyph_string) [USE_CAIRO]: #ifdef out unused variable pixmap. 2019-04-14 Noam Postavsky Let debugger handle process spawn errors on w32 (Bug#33016) Since child_setup() is called between block_input()...unblock_input(), when an error is signaled the Lisp debugger is prevented from starting. Therefore, let the callers signal the error instead (which they already do for non-w32 platforms, just the error message needs an update). * src/callproc.c (child_setup) [WINDOWSNT]: Don't call report_file_error here. (call_process) [WINDOWNT]: * src/process.c (create_process) [WINDOWSNT]: Call report_file_errno here instead, after the unblock_input() call, same as for !WINDOWSNT. * src/lisp.h (CHILD_SETUP_ERROR_DESC): New preprocessor define. Flip the containing ifndef DOS_NT branches so that it's ifdef DOS_NT. * src/eval.c (when_entered_debugger): Remove. (syms_of_eval) : Define it as a Lisp integer variable instead. (maybe_call_debugger): Update comment. * test/src/process-tests.el (make-process-w32-debug-spawn-error): * test/src/callproc-tests.el (call-process-w32-debug-spawn-error): New tests. 2019-04-14 Alexander Gramiak Bump minimum GTK versions to 2.24 and 3.10 * configure.ac: Bump required GTK 2 and GTK 3 versions and the associated GLib versions. Remove obsolete AC_CHECK_FUNCS calls. These check for functions available in later GTK 2 versions. These checks and can safely be removed with the exception of gtk_window_set_has_resize_grip, which according to a comment in gtkutil.c causes an issue in Ubuntu's GTK 2. * src/gtkutil.c: * src/xfns.c: * src/xterm.c: * src/xterm.h: Remove now unused conditional blocks. Use HAVE_GTK3 instead of GTK_CHECK_VERSION where now applicable. Remove checks of now always true USE_GTK_TOOLTIP. 2019-04-14 Paul Eggert Replace executable’s fingerprint in place * admin/merge-gnulib (GNULIB_MODULES): Add memmem-simple. (AVOIDED_MODULES): Add memchr. * configure.ac (HAVE_PDUMPER): AC_SUBST it, too, for use in makefiles. * lib/Makefile.in (libgnu_a_OBJECTS): Add fingerprint.o. * lib/fingerprint.c: New file. * lib/memmem.c, lib/str-two-way.h, m4/memmem.m4: New files, copied from Gnulib. * lib/fingerprint.h: Rename from src/fingerprint.h. * lib-src/make-fingerprint.c: Include limits.h, sys/stat.h, fingerprint.h, intprops.h, min-max.h. (SSIZE_MAX): New macro, if not already defined. (main): Without -r, Replace the fingerprint in the input file instead of generating a fingerprint.c. * lib/Makefile.in (libgnu_a_OBJECTS): Add fingerprint.o. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * src/Makefile.in (HAVE_PDUMPER, MAKE_PDUMPER_FINGERPRINT): New macros. (temacs$(EXEEXT)): Use them to replace the fingerprint instead of precalculating it. (mostlyclean, ctagsfiles1): Do not worry about fingerprint.c. 2019-04-14 Paul Eggert * m4/utimbuf.m4: Remove unused file. 2019-04-14 Dmitry Gutov Sort files in the default impl of project-files alphabetically * lisp/progmodes/project.el (project--files-in-directory): Sort the files alphabetically (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23179#296). 2019-04-14 Michael Albinus Some rearragements for remote tests in filenotify-tests.el * test/lisp/filenotify-tests.el (file-notify--deftest-remote): Change argument list, EXPECTED is not needed. (file-notify-test07-many-events-remote) (file-notify-test09-watched-file-in-watched-dir-remote): Adapt declaration accordingly. 2019-04-14 Michael Albinus Explain ad-hoc multi-hop in the Tramp Quick Start Guide * doc/misc/tramp.texi (Quick Start Guide): New section "Combining @option{ssh} or @option{plink} with @option{su} or @option{sudo}". 2019-04-14 Michael Albinus Fix Bug#35055 * lisp/net/tramp.el (tramp-handle-shell-command): Handle `shell-command-width'. (Bug#35055) 2019-04-14 Alexander Gramiak * lisp/frame.el (frame--size-history): Fix infloop. (Bug#35272) 2019-04-14 Stephen Leake Merge commit '890440a44cd5f4f09742f521c7783785d114fffc' 2019-04-14 Stephen Leake Rename new user variable `next-error-verbosity' to `next-error-verbose' * etc/NEWS: Update entry to match renaming. * lisp/simple.el (next-error-verbose): Rename. (next-error, next-error-internal): Match rename. 2019-04-14 Alexander Gramiak Simplify gdk_monitor_get_model string duplication * src/xfns.c (x-display-monitor-attributes-list): Use dupstring over explicit if/xstrdup. * src/frame.c (free_monitors): Remove redundant check for NULL. 2019-04-14 Eli Zaretskii Improve documentation of a recent commit * etc/NEWS: Fix the description of 'shell-command-width'. Mark the entry as not needing the manual update. * lisp/simple.el (shell-command-width): Doc fix. (Bug#35055) 2019-04-13 Paul Eggert Update from Gnulib This incorporates: 2019-04-07 Add copyright notices in several files * build-aux/config.sub, doc/misc/texinfo.tex, lib/_Noreturn.h: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2019-04-13 Basil L. Contovounesios Fix gnus-group-describe-all-groups (bug#35233) This fixes oversights from 2018-04-26T16:26:27-07:00!eric@ericabrahamsen.net and 2016-02-13T18:45:11+11:00!larsi@gnus.org. * lisp/gnus/gnus-group.el (gnus-group-describe-all-groups): Insert group name and description instead of group name twice. Do not pass a hash-table to intern. Call sort with correct number of arguments. 2019-04-13 Alexander Gramiak Fix segmentation fault with gdk_monitor_get_model (Bug#35259) * src/frame.c (free_monitors): Check if NULL before freeing. * src/xfns.c: (x-display-monitor-attributes-list): Check if NULL before copying. 2019-04-13 Juri Linkov * lisp/vc/log-edit.el (log-edit-insert-changelog): Add field "Summary" explicitly after adding field "Author". (Bug#34972) 2019-04-13 Juri Linkov New faces in xref (bug#23179) * lisp/progmodes/xref.el (xref-file-header, xref-line-number) (xref-match): New faces. (xref--insert-xrefs, xref--collect-matches-1): Use them. 2019-04-13 Juri Linkov * lisp/simple.el (shell-command-width): New defcustom. (shell-command): Use it. (Bug#35055) 2019-04-13 Alan Mackenzie * lisp/progmodes/cc-langs.el (c-class-id-suffix-ws-ids-kwds): Correct a typo 2019-04-13 Alan Mackenzie Implement "final" before C++ class inheritance lists. * lisp/progmodes/cc-langs.el (c-class-id-suffix-ws-ids-kwds) (c-class-id-suffix-ws-ids-key): New lang const/var. * lisp/progmodes/cc-engine.el (c-guess-basic-syntax CASE 5D.4): Check for and skip over any matches for c-class-id-suffix-ws-ids-key (i.e. "final") before ":". 2019-04-13 Michael Albinus Fix error in tramp-sh.el * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Revert "simplification", which was an error. 2019-04-13 Michael Albinus * doc/misc/tramp.texi: Fix minor glitches. Fix last patch 2019-04-13 Michael Albinus Replace (skip-unless nil) by tag :unstable in test packages * test/lisp/filenotify-tests.el (file-notify--deftest-remote): Use tag :unstable if SKIP is non-nil. * test/lisp/net/tramp-tests.el (tramp-test36-vc-registered): Use ert-skip instead of (skip-unless nil). * test/lisp/progmodes/python-tests.el (python-tests--python-nav-end-of-statement--infloop): Use tag :unstable instead of (skip-unless nil). 2019-04-13 Eli Zaretskii Minor cleanup in 'x_set_frame_alpha' * src/xterm.c (x_set_frame_alpha): Remove redundant parts of testing of value of 'alpha'. Suggested by Konstantin Kharlamov . (Bug#35062) 2019-04-13 Eli Zaretskii Improve documentation of JSONRPC * doc/lispref/text.texi (JSONRPC Overview) (Process-based JSONRPC connections) (JSONRPC JSON object format): Fix wording and markup. Add indexing. 2019-04-13 Eli Zaretskii Improve documentation changes of a recent commit * doc/lispref/text.texi (Parsing JSON): Improve wording of the documentation of 'json-parse-string' and 'json-parse-buffer'. * src/json.c (Fjson_parse_string, Fjson_parse_buffer): Doc fix. (Bug#34763) 2019-04-12 Paul Eggert Omit/rewrite useless regexp repetitions Problem reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-04/msg00527.html * lisp/align.el (align-rules-list): * lisp/cedet/srecode/srt-mode.el (srecode-font-lock-keywords): * lisp/emacs-lisp/copyright.el (copyright-regexp): * lisp/erc/erc-backend.el (JOIN): * lisp/erc/erc-goodies.el (erc-unmorse): * lisp/mail/mail-extr.el (mail-extr-telephone-extension-pattern): * lisp/net/tramp-adb.el (tramp-adb-prompt): * lisp/org/org-table.el (org-table-range-regexp): * lisp/progmodes/idlwave.el (idlwave-where): * lisp/progmodes/verilog-mode.el (verilog-declaration-re-2-no-macro) (verilog-declaration-re-2-macro, verilog-delete-auto-buffer) (verilog-auto-inst-port): * lisp/url/url-misc.el (url-data): Omit or rewrite useless repetitions that risk being very slow in the backtracking regexp engine in Emacs. 2019-04-12 Dmitry Gutov Don't signal error from url debug functions * lisp/url/url-http.el (url-http-debug): Don't signal error. * lisp/url/url-util.el (url-debug): Same (bug#34763). 2019-04-12 Dmitry Gutov Add :array-type option to json-parse-string * src/json.c (enum json_array_type): New type. (struct json_configuration): New field array_type. (json_parse_args): Rename the last argument. Handle the :array-type keyword argument (bug#32793). (Fjson_parse_string): Update the docstring accordingly. (json_to_lisp): Handle the case of :array-type being `list'. Add a call to 'rarely_quit' inside the loop. (syms_of_json): Define new symbols. (Fjson_serialize, Fjson_insert, Fjson_parse_string) (Fjson_parse_buffer): Update the config struct initializers. 2019-04-12 Alan Mackenzie Analyze C++ method with & or && ref-qualifier as defun, not brace list Also firm up detection of beginning of brace list in c-looking-at-or-maybe-in-bracelist. * lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): On detection of such a ref-qualifier, set braceassignp to nil. When this variable has a nil value, return nil as the value of the function. On encountering a } when scanning backwards, recognise this as the end of a previous construct and stop the scan. 2019-04-12 Stefan Monnier * lisp/help-fns.el (help-fns-describe-variable-functions): New hook (help-fns--compiler-macro, help-fns--parent-mode, help-fns--obsolete) (help-fns--interactive-only): Indent output by 2 spaces. (help-fns--side-effects): New function extracted from describe-function-1. (help-fns-describe-function-functions): Use it. (help-fns--first-release, help-fns--mention-first-release): New functions. (help-fns-function-description-header): Keymaps and macros can't be interactive. (help-fns--ensure-empty-line): New function. (describe-function-1): Use it. (help-fns--var-safe-local, help-fns--var-risky) (help-fns--var-ignored-local, help-fns--var-file-local) (help-fns--var-watchpoints, help-fns--var-obsolete) (help-fns--var-alias, help-fns--var-bufferlocal): New functions, extacted from describe-variable. (describe-variable): Run help-fns-describe-variable-functions instead. 2019-04-12 Glenn Morris Merge from origin/emacs-26 818a68b * etc/HISTORY: Update for Emacs 26.2 release. e04aa5a ; ChangeLog.3 update 8297e97 * etc/AUTHORS: Update. 8582936 Improve documentation of 'read-command' dc81c05 ; * CONTRIBUTE: Mention where to ask for the copyright assign... b77723a Fix an outdated URL in a comment 2019-04-12 Glenn Morris Merge from origin/emacs-26 cb5a340 Update nxml-mode.texi: completion now gives xmlns="-!-" 2019-04-12 Basil L. Contovounesios Move proper-list-p tests to fns-tests.el This follows the move of proper-list-p from lisp/subr.el to src/fns.c in 2018-07-24T15:58:46-07:00!eggert@cs.ucla.edu. * test/lisp/subr-tests.el (subr-tests--proper-list-p): Move from here... * test/src/fns-tests.el (test-proper-list-p): ...to here. 2019-04-12 Basil L. Contovounesios Optimize byte-compilation of proper-list-p For discussion, see thread starting at: https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg00316.html * lisp/emacs-lisp/byte-opt.el: Optimize proper-list-p as a predicate. * lisp/subr.el: Mark proper-list-p as pure, and side-effect and error free. 2019-04-12 Alex Murray (tiny change) Pop to originating erc buffer when clicking desktop notification * lisp/erc/erc-desktop-notifications.el: Switch to lexical-binding. (erc-notifications-notify): Add a default action to the desktop notification which pops to the buffer from which the notification originated. (Bug#35141) 2019-04-12 Basil L. Contovounesios Always set gnus-group property to a group name * lisp/gnus/gnus-group.el (gnus-group-prepare-flat-list-dead): Set gnus-group property to a group name, not active info. (bug#33653) Simplify surrounding logic. (gnus-group-prepare-flat, gnus-group-goto-group): Use accessor macros. (gnus-group-insert-group-line, gnus-group-new-mail) (gnus-group-mark-group): Write ?\s instead of ? . (gnus-group-group-name, gnus-group-list-active): Simplify. 2019-04-11 Stefan Monnier * lisp/vc/diff-mode.el: Avoid re-initializing buffer in diff-syntax (diff--syntax-file-attributes): New var. (diff-syntax-fontify-hunk): Detect when we're reusing the same buffer as last time, to avoid re-initializing it. Skip the diff-syntax-fontify-revisions hash-table, since buffer-alist plays the same role. (diff-syntax-fontify-revisions): Delete var. 2019-04-11 Stephen Leake Merge commit 'de238b39e335c6814283faa171b35145f124edf2' 2019-04-11 Stephen Leake Make `next-error' output fewer messages about locus * lisp/simple.el (next-error-verbosity): New user variable. (next-error, next-error-internal): Use it to control only outputting locus message if locus changed. 2019-04-11 Christopher Thorne (tiny change) Fix rgrep in dired using directory for search file pattern * lisp/progmodes/grep.el (grep-read-files): Allow major modes to define file name to use for default search pattern. Add non-directory file at point as default search pattern candidate. * lisp/dired.el (dired-grep-read-files): Use non-directory file at point for grep file name pattern. (Bug#34621) 2019-04-10 Jackson Ray Hamilton Add extra text property to fix issue with js2-mode integration * lisp/progmodes/js.el (js-jsx--put-syntax-table): New function for consistently ensuring smooth js2-mode integration. js2-mode sets syntax-table temporarily while parsing buffers—seemingly to recover from parsing interruptions—and then it later clears syntax-table blindly. When integrating with js-mode, this means that unterminated string quotes are re-broken in JSX (i.e., they become strings again, often stringifying large regions of the buffer which should not be strings). We try to treat quotes in JSXText as non-strings by setting syntax-table to a non-“string quote” syntax class, but that stops working if we lose the property. On the js2-mode end, by scanning for this second js-jsx-syntax-table property, we can recover the syntax-table property there. (js-jsx--text-range, js-jsx--syntax-propertize-tag): Use js-jsx--put-syntax-table for above reason. (js-jsx--text-properties): Clear the js-jsx-syntax-table property too. 2019-04-10 Paul Eggert Bring back dmpstruct.h Bring back the dmpstruct.h checking, and use it when --enable-checking=structs is specified. The checking can be helpful to some developers, although it gets in the way of others and is not needed for ordinary tarball builds. * src/dmpstruct.awk: Restore this file, with mode 644 not 755. * configure.ac: New option-arg --enable-checking=structs, implied by --enable-checking. (CHECK_STRUCTS): New macro and var. * src/Makefile.in (CHECK_STRUCTS): New macro. (dmpstruct_headers, dmpstruct.h, dmpstruct.h): Restore these macros and rules. (pdumper.o): Restore this dependency if $(CHECK_STRUCTS) is true. (mostlyclean): Remove dmpstruct.h. * src/pdumper.c [CHECK_STRUCTS]: Include dmpstruct.h, and restore checks against hashes. 2019-04-10 Katsumi Yamaoka Enable message saving to work when first use of Gnus (bug#35208) * lisp/gnus/gnus-group.el (gnus-group-goto-group); Use gnus-active-hashtb in addition to gnus-newsrc-hashtb to check if a group exists since some kinds of groups are registered in only one of them (bug#35208). 2019-04-10 Juri Linkov (tiny change) Inhibit displaying help buffer in main window in perform-replace * lisp/replace.el (perform-replace): Use display-buffer-overriding-action with inhibit-same-window to prevent the help buffer from being displayed in the main window. (Bug#34972) Author: Michał Krzywkowski 2019-04-10 Paul Eggert Fix $(MAKE) -C for out-of-tree bootstraps Problem reported by Andy Moreton in: https://lists.gnu.org/r/emacs-devel/2019-04/msg00359.html * src/Makefile.in (${charsets}, $(lispsource)/loaddefs.el): Revert incorrect changes to $(MAKE) -C invocations when the target is in the source tree not the build tree. 2019-04-10 Glenn Morris Merge from origin/emacs-26 5999401 (origin/emacs-26) Note that choose-completion-string-function... 8d2f1df Address name conflicts in EIEIO documentation (bug#31660) 2019-04-10 Glenn Morris Merge from origin/emacs-26 a5da653 * src/editfns.c (Fnarrow_to_region): Doc fix. (Bug#35163) 646d33d Fix doc strings of 'vc-version-diff' and 'vc-version-ediff' a30a6c3 Improve documentation of set-window-start 92ce2dd Improve documentation of window parameters 6dc42c5 Improve commentary in frame.el a8cffcf Fix typo in a doc string 9e79f19 (emacs-26) ; * src/fontset.c (set-fontset-font): Use uppercas... # Conflicts: # lisp/vc/vc.el 2019-04-10 Stefan Monnier * test/lisp/progmodes/python-tests.el: "Fix" failing test (python-tests--python-nav-end-of-statement--infloop): Disable. 2019-04-10 Stefan Monnier Eshell dependencies: Fix recent regressions * lisp/dired.el (dired-insert-directory): Tweak bug#27817's ugly hack. * lisp/eshell/em-ls.el: Refine 'require's. * lisp/eshell/esh-opt.el: Require esh-util on behalf of its clients. 2019-04-09 Jackson Ray Hamilton * etc/NEWS: Document js-jsx-align->-with-< 2019-04-09 Jackson Ray Hamilton Add new defcustom js-jsx-align->-with-< * lisp/progmodes/js.el (js-jsx-align->-with-<): New variable for users to control one opinionated aspect of JSX indentation. It defaults to the style seen in the React docs, which many users expected as the “correct” indentation. Still, the old SGML-style of indentation could be desirable too, especially since it was the old default. This ensures users have a way of getting back the old behavior. (js-jsx--contextual-indentation): Respect js-jsx-align->-with-<. * test/manual/indent/jsx-align-gt-with-lt.jsx: New test for js-jsx-align->-with-<. 2019-04-09 Jackson Ray Hamilton * etc/NEWS: Document way to revert to old JSX indentation behavior 2019-04-09 Jackson Ray Hamilton Add new defcustom js-jsx-indent-level * lisp/progmodes/js.el (js-jsx-indent-level): New variable for users to set JSX indentation differently than JS, like before. (js-jsx--contextual-indentation): Respect js-jsx-indent-level when it’s set. * test/manual/indent/jsx-indent-level.jsx: New test for js-jsx-indent-level. 2019-04-09 Paul Eggert Remove the need for temacs.in Instead of building a file temacs.in used only to compute a fingerprint, compute the fingerprint directly from the .o and .a files that go into temacs.in. This speeds up the build by avoiding the need to link temacs twice, once with a dummy fingerprint. * lib-src/make-fingerprint.c (main): No need to generate a fingerprint file that includes config.h, now that fingerprint.c depends on all the .o files. * src/Makefile.in ($(libsrc)/make-fingerprint$(EXEEXT)): Use the same rule as $(libsrc)/make-docfile$(EXEEXT). * src/fingerprint-dummy.c: Remove. * src/Makefile.in (${charsets}, $(libsrc)/make-docfile$(EXEEXT)) ($(LIBEGNU_ARCHIVE), $(lwlibdir)/liblw.a, $(oldXMenudir)/libXMenu11.a) (../config.status, ${ETAGS}, ../lisp/TAGS, $(lwlibdir)/TAGS) ($(lispsource)/loaddefs.el): Prefer ‘$(MAKE) -C $(dir $@)’ to ‘${MAKE} -C SOMESTRING’ when either will do, as the former is more regular and lets us coalesce rules better. (EMACS_DEPS_PRE, EMACS_DEPS_POST, BUILD_EMACS_PRE) (BUILD_EMACS_POST, temacs.in$(EXEEXT)): Remove. (FINGERPRINTED): New macro. (fingerprint.c): Use it instead of temacs.in$(EXEEXT), to avoid the need to build temacs.in at all. (temacs$(EXEEXT)): No need to depend on other .o files now; fingerprint.o is enough, since it depends on the rest. Spell out what used to be in BUILD_EMACS_PRE and BUILD_EMACS_POST. (mostlyclean): No need to remove temacs.in. 2019-04-09 Paul Eggert Remove assumption of uint64_t etc. in portable code C11 doesn’t guarantee the existence of types like uint64_t, so avoid these types in portable code, as it’s easy to do so. There’s no need to avoid the types in w32-specific code, since w32 is guaranteed to have them. * lib-src/make-fingerprint.c (main): * src/fingerprint-dummy.c: * src/fingerprint.h: * src/pdumper.c (dump_fingerprint, struct dump_header): Prefer unsigned char to uint8_t in portable code, as either will do. Put an "#include " in fingerprint.c files, so that the corresponding .o file is rebuilt after ./configure is run. * lib-src/make-fingerprint.c (main): Simplify loop. * src/Makefile.in (fingerprint.c): Update atomically. * src/pdumper.c: Omit unnecessary check that off_t is the same size as int32_t or int64_t, as the code does not rely on this assumption. (dump_off): Use int_least32_t, not int32_t. (struct dump_reloc): Use unsigned int, not uint32_t. (dump_anonymous_allocate_w32, dump_anonymous_allocate_posix) (dump_anonymous_allocate, dump_map_file_w32, dump_map_file_posix) (dump_map_file: Do the sanity checks at compile time, not at run-time, to avoid usage of uint64_t etc. on non-w32 platforms. 2019-04-09 Paul Eggert Remove dmpstruct.h The hassles of updating the dmpstruct.h-using code bit me again. These updates are more trouble than they’re worth. See: https://lists.gnu.org/r/emacs-devel/2019-03/msg00122.html As I’m the main person who’s made changes in this area since dmpstruct.h was introduced, I’m the most motivated to clean up the situation. * make-dist (possibly_non_vc_files): Remove src/dmpstruct.h. * src/Makefile.in (dmpstruct_headers, dmpstruct.h): Remove. (pdumper.o): Do not depend on dmpstruct.h. (mostlyclean): Do not remove dmpstruct.h. * src/dmpstruct.awk: Remove. * src/pdumper.c: Do not include dmpstruct.h. (CHECK_STRUCTS): Remove. All uses removed. 2019-04-09 Stefan Monnier diff-font-lock-syntax: clarify distinction between t and hunk-also * lisp/vc/diff-mode.el (diff-font-lock-syntax): Rework docstring. (diff-syntax-fontify-hunk): Never use the hunk method when diff-font-lock-syntax is just t. 2019-04-09 Alex Branham Use lexical-binding in bug-reference.el * .dir-locals.el: Set bug-reference-url-format in all modes, not just changelog mode. Use (eval . (bug-reference-mode)) as described in (info "(emacs) Specifying File Variables") * lisp/progmodes/bug-reference.el: Use lexical binding. (bug-reference-unfontify): (bug-reference-fontify): Mention args in docstring. Bug#35123 2019-04-09 Basil L. Contovounesios Fix Gnus duplicate suppression guards (bug#34987) * lisp/gnus/gnus-dup.el (gnus-dup-enter-articles) (gnus-dup-suppress-articles): Use gnus-dup-hashtb as an indicator of initialization instead of gnus-dup-list, which may happen to be nil. (gnus-dup-unsuppress-article): Do nothing if gnus-dup-hashtb is uninitialized. 2019-04-09 Stefan Monnier * lisp/printing.el: Use lexical-binding Require easy-menu instead of adding declarations. Remove backward compatiblity. Remove redundant ':group' args. (pr-region-active-p): Use use-region-p. (pr-set-keymap-name): Delete function and callers. (pr-set-keymap-parents): Delete function; use set-keymap-parent instead. (pr-read-string): Delete function; use read-string instead. (pr-menu-char-height): Delete function; use frame-char-height instead. (pr-menu-char-width): Delete function; use frame-char-width instead. (pr-menu-position): Merge the two definitions. (pr-get-symbol): Delete function; use easy-menu-intern instead. (pr-update-mode-line): Delete function; use force-mode-line-update instead. (pr-do-update-menus): Turn local save-var into dynbound pr--save-var. (pr-menu-alist): Use setf. Simplify since we don't keep key-bindings in the menus any more. (pr-dosify-file-name): Remove interactive spec. (pr-filename-style): Rename from pr-path-style. (pr-unixify-file-name): Delete function. (pr-standard-file-name): Don't turn \ into / under POSIX. (pr-temp-dir): Don't dosify. Use temporary-file-directory unconditionally. (pr-save-file-modes): Delete macro. (pr-ps-directory-using-ghostscript, pr-ps-directory-print) (pr-ps-directory-ps-print, pr-ps-mode-using-ghostscript, pr-ps-print) (pr-ps-mode-preview, pr-ps-mode-print, pr-printify-directory) (pr-txt-directory, pr-ps-file-up-preview, pr-ps-directory-preview) (pr-ps-file-up-ps-print, pr-ps-preview, pr-ps-using-ghostscript): Use properly prefixed, declared, and explicitly let-bound dynamically bound variables around calls to pr-ps-utility-args and pr-set-dir-args. (pr-ps-file-using-ghostscript): Only dosify when passing to suprocess. (pr-expand-file-name): Delete function; use expand-file-name instead. (pr-ps-file-print): Properly dosify. (pr-menu-create): Use backquotes. (pr-eval-alist, pr-eval-local-alist): Use dolist. (pr-ps-utility-args): Don't dosify here. (pr-ps-utility-process): Dosify here instead. (pr-ps-file, pr-command): Don't dosify here either. (pr-interface-map): Move initialization into declaration. (pr-insert-section-1): Use 'push'. (pr-insert-toggle): Use closure instead of backquoted lambda. (pr-insert-menu): Use apply i.s.o eval. (pr-insert-radio-button): Avoid 'eval'. 2019-04-09 Stefan Monnier quail.el: Use delete-and-extract-region * lisp/international/quail.el (quail-overlay-region-events): Use delete-and-extract-region. (quail-activate): Use setq-local. 2019-04-09 Stefan Monnier python.el: don't syntax-propertize single/double quoted strings * lisp/progmodes/python.el (python-syntax-propertize-function): Only mark triple-quoted strings, let the normal syntax-table handle the rest. (python-syntax-stringify): Adjust accordingly. 2019-04-09 Stefan Monnier * lisp/progmodes/js.el (js-mode): Don't set comment-start-skip globally! 2019-04-09 Stefan Monnier Fix up Eshell 'require's after previous dependency reshuffle. * lisp/eshell/em-unix.el: * lisp/eshell/em-script.el: * lisp/eshell/em-pred.el: * lisp/eshell/em-dirs.el: * lisp/eshell/em-alias.el: Fix up 'require's to silence byte-compiler. * lisp/eshell/esh-util.el (eshell-read-hosts-file): Don't limit number of entries per line. Preserve the structure. (eshell-read-hosts): Adjust accordingly. 2019-04-09 Stefan Monnier * lisp/gnus/mm-view.el (mm-display-inline-fontify): Simplify. Remove hacks that were needed before font-lock-ensure. Don't use switch-to-buffer. Don't assume point-min == 1. 2019-04-09 Stefan Monnier * lisp/vc/diff-mode.el: Cosmetic changes in diff-syntax-fontify-hunk (diff-default-directory): Use defvar-local. (diff-syntax-fontify-hunk): Use 'setq' less. Fit within 80 columns. Simplify some looking-at tests. (diff-syntax-fontify-props): Don't check the buffer-local part of find-file-hook. 2019-04-09 Mattias Engdegård Clarify the TESTFN argument to `alist-get' * lisp/subr.el (alist-get): Rephrase the initial text to clarify the meaning of the TESTFN argument. It's an equality predicate, not a look-up function (Bug#35206). 2019-04-09 Eli Zaretskii Fix "M-x eshell" * lisp/eshell/em-dirs.el (eshell-variable-aliases-list) (eshell-directory-name, eshell-mode): Defvar them. (eshell-dirs-initialize): Require esh-var. (Bug#35203) (eshell-apply-indices): Declare. 2019-04-09 Jackson Ray Hamilton * etc/NEWS: Document new and improved JSX support in js-mode 2019-04-08 Jackson Ray Hamilton Explain reasonings for JSX syntax support design decisions * lisp/progmodes/js.el: Throughout the code, provide explanations for why JSX support was implemented in the way that it was; in particular, address the overlap between syntax-propertize-function, font-lock, and indentation (as requested by Stefan). 2019-04-08 Jackson Ray Hamilton Move curly functions closer to where they’re used * lisp/progmodes/js.el (js-jsx--enclosing-curly-pos) (js-jsx--goto-outermost-enclosing-curly): As the code evolved, these functions’ definitions ended up being far away from the only places where they were used. Move them there. 2019-04-08 Jackson Ray Hamilton Add open/close parenthesis syntax to “<” and “>” in JSX * lisp/progmodes/js.el (js-jsx--syntax-propertize-tag): Like in sgml-mode, treat “<” and “>” like open/close parenthesis, making the text more navigable via forward-sexp, etc. 2019-04-08 Jackson Ray Hamilton Permit non-ASCII identifiers in JS * lisp/progmodes/js.el (js--name-start-re): Generally allow identifiers to begin with non-ASCII letters. This is of particular importance to JSX parsing. * test/manual/indent/jsx-unclosed-2.jsx: Add test to ensure non-ASCII characters are parsed properly. 2019-04-08 Jackson Ray Hamilton Identify JSX strings (for js2-mode) * lisp/progmodes/js.el (js-jsx--syntax-propertize-tag): Derived modes like js2-mode may use font-lock-syntactic-face-function to apply faces to JSX strings (and only JSX strings). Apply the js-jsx-string text property to such strings so they can be distinctly identified. (js-jsx--text-properties): Ensure the js-jsx-string text property gets cleaned up, too. 2019-04-08 Jackson Ray Hamilton Properly set a dynamic, syntactic mode name Use mode-line-format constructs to properly set mode-name, rather than use the very hacky solution that was filling-in for my lack of knowledge of this feature. * lisp/progmodes/js.el (js--update-mode-name) (js--idly-update-mode-name): Remove. (js--syntactic-mode-name-part): New helper function for mode-name. (js-use-syntactic-mode-name): Helper to set up the dynamic mode-name. (js-jsx-enable): Don’t need to call any extra functions now. (js-mode): Use the new setup function rather than the old ones. (js-jsx-mode): Use the same initial mode name as js-mode so the final one is identical for both modes. 2019-04-08 Jackson Ray Hamilton Improve whitespace and unary keyword parsing * lisp/progmodes/js.el (js--name-start-chars): Remove, adding these chars back to js--name-start-re. (js--name-start-re): Add chars back from js--name-start-chars. (js-jsx--tag-start-re): Improve regexp to capture the tag name (so it can be disambiguated from a unary keyword), to match newlines (which are common in this spot), and to require at least one whitespace character before the attribute name. (js-jsx--matched-tag-type): Ensure the “tag name” isn’t possibly a unary keyword. (js-jsx--self-closing-re, js-jsx--matching-close-tag-pos): Allow whitespace around “<” and “>”. * test/manual/indent/jsx-unclosed-2.jsx: Add tests for unary keyword and whitespace parsing. 2019-04-08 Jackson Ray Hamilton Optimize js-jsx--enclosing-tag-pos * lisp/progmodes/js.el (js-jsx--enclosing-tag-pos): Update docstring to be more precise. Also, remember close tag positions after they’ve been calculated once to avoid many redundant calls to js-jsx--matching-close-tag-pos. (js-jsx--text-properties): Ensure js-jsx-close-tag-pos text properties get cleaned up, too. 2019-04-08 Jackson Ray Hamilton Optimize js-jsx--matching-close-tag-pos This function’s performance was having a noticeable impact when editing large JSX structures. Improve its performance slightly (elapsed time will be cut in half according to ELP). * lisp/progmodes/js.el (js-jsx--tag-re): Remove. (js-jsx--matched-tag-type): Simplify implementation with respect to the new implementation of js-jsx--matching-close-tag-pos. (js-jsx--self-closing-re): Simplify regexp slightly in sync with a generally simpler matching algorithm. (js-jsx--matching-close-tag-pos): Optimize matching algorithm by using multiple simple regexp searches, rather than one big complex search. * test/manual/indent/jsx-unclosed-2.jsx: Use the term “inequality” and add a test for a possible parsing foible. 2019-04-08 Jackson Ray Hamilton Add tests for miscellaneous JSX parsing feats * test/manual/indent/jsx.jsx: Add tests for JSXMemberExpression names and JSXOpeningFragment/JSXClosingFragment support (already supported). 2019-04-08 Jackson Ray Hamilton Split JSX indentation calculation into several functions * lisp/progmodes/js.el (js-jsx--contextual-indentation) (js-jsx--expr-attribute-pos, js-jsx--expr-indentation): Extract logic from js-jsx--indentation, and improve the logic’s documentation. (js-jsx--indentation): Simplify by splitting into several functions (see above) and improve the logic’s documentation. 2019-04-08 Jackson Ray Hamilton Indent expressions in JSXAttributes relative to the attribute’s name * lisp/progmodes/js.el (js-jsx--syntax-propertize-tag): Refer to the beginning of a JSXExpressionContainer’s associated JSXAttribute (so line numbers can be calculated later). (js-jsx--text-properties): Also clear the new text property js-jsx-expr-attribute. (js-jsx--indenting): Remove. (js-jsx--indent-col, js-jsx--indent-attribute-line): New variables. (js-jsx--indentation): Instead of alternating between two separate column calculations, neither necessarily correct, bind the JSX column such that the second call to js--proper-indentation can use it as a base column. (js--proper-indentation): Use JSX as the base column for some indents while indenting JSX. * test/manual/indent/jsx.jsx: Add more tests for expression indents. 2019-04-08 Jackson Ray Hamilton Fix counting of nested self-closing JSXOpeningElements * lisp/progmodes/js.el (js-jsx--matching-close-tag-pos): Fix bug where self-closing JSXOpeningElements might be missed if one was nested within another. * test/manual/indent/jsx-self-closing.jsx: Add test for bug concerning self-closing JSXOpeningElement counting. 2019-04-08 Jackson Ray Hamilton Indent broken arrow function bodies as an N+1th arg * lisp/progmodes/js.el (js--line-terminating-arrow-re): Revise regexp for use with re-search-backward. (js--looking-at-broken-arrow-function-p): Remove. (js--broken-arrow-terminates-line-p): Replacement for js--looking-at-broken-arrow-function-p. Don’t consider whether an arrow appears at point (in an arglist); instead, just look for an arrow that terminates the line. (js--proper-indentation): Use js--broken-arrow-terminates-line-p. * test/manual/indent/js.js: Add test for a broken arrow as an N+1th arg. 2019-04-08 Jackson Ray Hamilton Rename tests to use the “.jsx” file extension * test/manual/indent/js-jsx-quote.js: Renamed to “jsx-quote.jsx”. * test/manual/indent/js-jsx-unclosed-1.js: Renamed to “jsx-unclosed-1.jsx”. * test/manual/indent/js-jsx-unclosed-2.js: Renamed to “jsx-unclosed-2.jsx”. * test/manual/indent/js-jsx.js: Renamed to “jsx.jsx”. * test/manual/indent/jsx-quote.jsx: Renamed from “js-jsx-quote.js”. * test/manual/indent/jsx-unclosed-1.jsx: Renamed from “js-jsx-unclosed-1.js”. * test/manual/indent/jsx-unclosed-2.jsx: Renamed from “js-jsx-unclosed-2.js”. * test/manual/indent/jsx.jsx: Renamed from “js-jsx.js”. 2019-04-08 Jackson Ray Hamilton Improve JSX syntax propertization * lisp/progmodes/js.el (js-jsx--attribute-name-re): New variable. (js-jsx--syntax-propertize-tag): Allow “-” in JSXAttribute names. Fix “out of range” error when typing at the end of a buffer. Fix/improve future propertization of unfinished JSXBoundaryElements. * test/manual/indent/js-jsx-unclosed-2.js: Add tests for allowed characters in JSX. 2019-04-08 Jackson Ray Hamilton Automatically detect JSX in JavaScript files * lisp/files.el (auto-mode-alist): Simply enable javascript-mode (js-mode) when opening “.jsx” files, since the “.jsx” file extension will be used as an indicator of JSX syntax by js-mode, and more code is likely to work in js-mode than js-jsx-mode, and we probably want to guide users to use js-mode (with js-jsx-syntax) instead. Code that used to work exclusively in js-jsx-mode (if anyone ever wrote any) ought to be updated to work in js-mode too when js-jsx-syntax is set to t. * lisp/progmodes/js.el (js-jsx-detect-syntax, js-jsx-regexps) (js-jsx--detect-and-enable, js-jsx--detect-after-change): New variables and functions for detecting and enabling JSX. (js-jsx-syntax): Update docstring with respect to the widened scope of the effects and use of this variable. (js-syntactic-mode-name, js--update-mode-name) (js--idly-update-mode-name, js-jsx-enable): New variable and functions for indicating when JSX is enabled. (js-mode): Detect and enable JSX. Print all enabled syntaxes after the mode name whenever Emacs goes idle; this ensures lately-enabled syntaxes are evident. (js-jsx-mode): Update mode name for consistency with the state in which JSX is enabled in js-mode. Update docstring to suggest alternative means of using JSX without this mode. Going forward, it may be best to gently guide users away from js-jsx-mode, since a “one mode per syntax extension” model would not scale well if more syntax extensions were to be simultaneously supported (e.g. Facebook’s “Flow”). 2019-04-08 Jackson Ray Hamilton Finish replacing SGML-based JSX detection with js-mode’s parsing This removes the last dependency on sgml-mode for JSX-related logic. * lisp/progmodes/js.el (js-jsx--start-tag-re) (js-jsx--end-tag-re): Remove. (js-jsx--looking-at-start-tag-p) (js-jsx--looking-back-at-end-tag-p): Reimplement using text properties, using syntax information which ought to be slightly more accurate than regexps since it was found by complete parsing. 2019-04-08 Jackson Ray Hamilton Indent JSX as parsed in a JS context Fixes the following issues (and re-fixes indentation issues initially fixed but later re-broken by previous commits in the process of adding comprehensive JSX support): - https://github.com/mooz/js2-mode/issues/389#issuecomment-390766873 - https://github.com/mooz/js2-mode/issues/482 - Bug#32158 - https://github.com/mooz/js2-mode/issues/462 Previously, we delegated to sgml-mode functions for JSX indentation. However, there were some problems with this approach: - sgml-mode does not anticipate tags inside attributes when indenting, which compromises JSX indentation inside JSXExpressionContainers inside JSXAttributes. - In previous iterations to provide comprehensive JSX support, it proved tedious to disambiguate “<” and “>” as JS inequality operators and arrow functions from opening and closing angle brackets as part of SGML tags. That code evolved into a more complete JSX parsing implementation for syntax-propertize rules for font-locking, discarding the superfluous “<”/“>” disambiguation in anticipation of using the improved JSX analysis for indentation. - Using sgml-mode functions, we controlled JSX indentation using SGML variables. However, JSX is a different thing than SGML; referencing SGML in JS was a leaky abstraction. To resolve these issues, use the text properties added by the JSX syntax-propertize code to determine the boundaries of various aspects of JSX syntax, and reimplement the sgml-mode indentation code in js-mode with better respect to JSX indentation conventions. * lisp/progmodes/js.el (js-jsx-attribute-offset): New variable to provide a way for users to still control JSX attribute offsets as they could with sgml-attribute-offset before. The value of this feature is dubious IMO, but it’s trivial to keep it, so let’s do it just in case. (js-jsx--goto-outermost-enclosing-curly): New function. (js-jsx--enclosing-tag-pos): Refactor to be unbounded by curlies, so this function can be used to find JSXExpressionContainers within JSX. Fix bug where an enclosing JSXElement couldn’t be found when point was at the start of its JSXClosingElement. Return the JSXClosingElement’s position as well, so the JSXClosingElement can be indentified when indenting and be indented like the matching JSXOpeningElement. (js-jsx--at-enclosing-tag-child-p): js-jsx--enclosing-tag-pos now returns a list rather than a cons, so retrieve the JSXOpeningElement’s end position from a list. (js-jsx--context, js-jsx--indenting): New function and variable. (js-jsx--indentation): New function replacing the prior js-jsx--indent* functions and js-jsx-indent-line’s implementation. Use the JSX parsing performed in a JS context to more accurately calculate JSX indentation than by delegating to sgml-mode functions. (js--proper-indentation): Use js-jsx--indentation as yet another type of indentation. (js-jsx--as-sgml, js-jsx--outermost-enclosing-tag-pos) (js-jsx--indentation-type, js-jsx--indent-line-in-expression) (js-jsx--indent-n+1th-line): Remove obsolete functions. (js-jsx-indent-line): Refactor nearly-obsolete function to behave the same as it usually would before these changes, without respect to the binding of js-jsx-syntax. (js-jsx-mode): Remove obsolete documentation about the use of SGML variables to control indentation, and don’t bind indent-line-function any more, because it is no longer necessary given the new implementation of js-jsx-indent-line. 2019-04-08 Jackson Ray Hamilton Update expectations for JSX indentation in JSXAttribute space * test/manual/indent/js-jsx.js: Align expectations for dangling closing constructs with other places in the tests. 2019-04-08 Jackson Ray Hamilton Propertize and font-lock JSXText and JSXExpressionContainers This completes highlighting support for JSX, as requested in: - https://github.com/mooz/js2-mode/issues/140 - https://github.com/mooz/js2-mode/issues/330 - https://github.com/mooz/js2-mode/issues/409 * lisp/progmodes/js.el (js--name-start-chars): Extract part of js--name-start-re so it can be reused in another regexp. (js--name-start-re): Use js--name-start-chars. (js-jsx--font-lock-keywords): Use new matchers. (js-jsx--match-text, js-jsx--match-expr): New matchers to remove typical JS font-locking and extend the font-locked region, respectively. (js-jsx--tag-re, js-jsx--self-closing-re): New regexps matching JSX. (js-jsx--matched-tag-type, js-jsx--matching-close-tag-pos) (js-jsx--enclosing-curly-pos, js-jsx--enclosing-tag-pos) (js-jsx--at-enclosing-tag-child-p): New functions for parsing and analyzing JSX. (js-jsx--text-range, js-jsx--syntax-propertize-tag-text): New functions for propertizing JSXText. (js-jsx--syntax-propertize-tag): Propertize JSXText children of tags. (js-jsx--text-properties): Remove JSXText-related text properties when repropertizing. (js-mode): Extend the syntax-propertize region with syntax-propertize-multiline; we are now adding the syntax-multiline text property to buffer ranges that are JSXText to ensure the whole multiline JSX construct is reidentified. 2019-04-08 Jackson Ray Hamilton Font-lock JSX while editing it by extending regions * lisp/progmodes/js.el (js-jsx--font-lock-keywords): Call tag beginning and end matchers. (js-jsx--match-tag-beg, js-jsx--match-tag-end): New functions. (js-jsx--syntax-propertize-tag): Record buffer positions of JSXElement beginning and end for font-locking. (js--syntax-propertize-extend-region) (js-jsx--syntax-propertize-extend-region): New functions for extending the syntax-propertize region backwards to the start of a JSXElement so its JSXAttribute children on its n+1th lines can be parsed as such while editing those lines. (js-mode): Add js--syntax-propertize-extend-region to syntax-propertize-extend-region-functions. 2019-04-08 Jackson Ray Hamilton Add basic JSX font-locking Font-lock JSX from the beginning of the buffer to the end. Tends to break temporarily when editing lines, because the parser doesn’t yet look backwards to determine if the end of a tag in the current range starts before the range. This also re-breaks some tests fixed by previous commits, as we begin to take a different direction in our parsing code, looking for JSX, rather than for non-JSX. The parsing code will eventually provide information for indentation again. * lisp/progmodes/js.el (js--dotted-captured-name-re) (js-jsx--disambiguate-beginning-of-tag) (js-jsx--disambiguate-end-of-tag, js-jsx--disambiguate-syntax): Remove. (js-jsx--font-lock-keywords): New variable. (js--font-lock-keywords-3): Add JSX matchers. (js-jsx--match-tag-name, js-jsx--match-attribute-name): New functions. (js-jsx--syntax-propertize-tag): New function to aid in JSX font-locking and eventually indentation. (js-jsx--text-properties): New variable. (js-syntax-propertize): Propertize JSX properly using syntax-propertize-rules. 2019-04-08 Jackson Ray Hamilton Use js-jsx- prefix for functions and variables * lisp/progmodes/js.el (js--disambiguate-beginning-of-jsx-tag): Rename to js-jsx--disambiguate-beginning-of-tag. (js--disambiguate-end-of-jsx-tag): Rename to js-jsx--disambiguate-end-of-tag. (js--disambiguate-js-from-jsx): Rename to js-jsx--disambiguate-syntax. (js--jsx-start-tag-re): Rename to js-jsx--start-tag-re. (js--looking-at-jsx-start-tag-p): Rename to js-jsx--looking-at-start-tag-p. (js--jsx-end-tag-re): Rename to js-jsx--end-tag-re. (js--looking-back-at-jsx-end-tag-p): Rename to js-jsx--looking-back-at-end-tag-p. (js--as-sgml): Rename to js-jsx--as-sgml. (js--outermost-enclosing-jsx-tag-pos): Rename to js-jsx--outermost-enclosing-tag-pos. (js--jsx-indentation): Rename to js-jsx--indentation-type. (js--indent-line-in-jsx-expression): Rename to js-jsx--indent-line-in-expression. (js--indent-n+1th-jsx-line): Rename to js-jsx--indent-n+1th-line. 2019-04-08 Jackson Ray Hamilton js-syntax-propertize: Disambiguate JS from JSX, fixing some indents Fix some JSX indentation bugs: - Bug#24896 / https://github.com/mooz/js2-mode/issues/389 - Bug#30225 - https://github.com/mooz/js2-mode/issues/459 * lisp/progmodes/js.el (js--dotted-captured-name-re) (js--unary-keyword-re, js--unary-keyword-p) (js--disambiguate-beginning-of-jsx-tag) (js--disambiguate-end-of-jsx-tag) (js--disambiguate-js-from-jsx): New variables and functions. (js-syntax-propertize): Additionally clarify when syntax is JS so that ‘(with-syntax-table sgml-mode-syntax-table …)’ does not mistake some JS punctuation syntax for SGML parenthesis syntax, namely ‘<’ and ‘>’. * test/manual/indent/js-jsx-unclosed-2.js: Add additional test for unary operator parsing. 2019-04-08 Jackson Ray Hamilton Add new (failing) unclosed JSX test and separate such tests * test/manual/indent/js-jsx.js: Move test with intentional scan error to its own file, js-jsx-unclosed-1.js. * test/manual/indent/js-jsx-unclosed-1.js: New file. * test/manual/indent/js-jsx-unclosed-2.js: New file with test for regression caused by new ambiguous parsing of JS/JSX. 2019-04-08 Jackson Ray Hamilton Refactor JSX indentation code to improve enclosing JSX discovery Fix a number of bugs reported for JSX indentation (caused by poor JSX detection): - https://github.com/mooz/js2-mode/issues/140#issuecomment-166250016 - https://github.com/mooz/js2-mode/issues/490 - Bug#24896 / https://github.com/mooz/js2-mode/issues/389 (with respect to comments) - Bug#26001 / https://github.com/mooz/js2-mode/issues/389#issuecomment-271869380 - https://github.com/mooz/js2-mode/issues/411 / Bug#27000 / https://github.com/mooz/js2-mode/issues/451 Potentially manifest some new bugs (due to false positives with ‘<’ and ‘>’ and SGML detection). Slow down indentation a fair bit. * lisp/progmodes/js.el (js-jsx-syntax, js--jsx-start-tag-re) (js--looking-at-jsx-start-tag-p, js--looking-back-at-jsx-end-tag-p): New variables and functions. (js--jsx-find-before-tag, js--jsx-after-tag-re): Deleted. (js--looking-at-operator-p): Don’t mistake a JSXOpeningElement for the ‘<’ operator. (js--continued-expression-p): Don’t mistake a JSXClosingElement as a fragment of a continued expression including the ‘>’ operator. (js--as-sgml): Simplify. Probably needn’t bind forward-sexp-function to nil (sgml-mode already does) and probably shouldn’t bind parse-sexp-lookup-properties to nil either (see Bug#24896). (js--outermost-enclosing-jsx-tag-pos): Find enclosing JSX more accurately than js--jsx-find-before-tag. Use sgml-mode’s parsing logic, rather than unreliable heuristics like paren-wrapping. This implementation is much slower; the previous implementation was fast, but at the expense of accuracy. To make up for all the grief we’ve caused users, we will prefer accuracy over speed from now on. That said, this can still probably be optimized a lot. (js--jsx-indented-element-p): Rename to js--jsx-indentation, since it doesn’t just return a boolean. (js--jsx-indentation): Refactor js--jsx-indented-element-p to simplify the implementation as the improved accuracy of other code allows (and to repent for some awful stylistic choices I made earlier). (js--expression-in-sgml-indent-line): Rename to js--indent-line-in-jsx-expression, since it’s a private function and we can give it a name that reads more like English. (js--indent-line-in-jsx-expression): Restructure point adjustment logic more like js-indent-line. (js--indent-n+1th-jsx-line): New function to complement js--indent-line-in-jsx-expression. (js-jsx-indent-line): Refactor. Don’t bind js--continued-expression-p to ignore any more; instead, rely on the improved accuracy of js--continued-expression-p. (js-jsx-mode): Set js-jsx-syntax to t. For now, this will be the flag we use to determine whether ‘JSX is enabled.’ (Maybe later, we will refactor the code to use this variable instead of requiring js-jsx-mode to be enabled, thus rendering the mode obsolete.) 2019-04-08 Jackson Ray Hamilton Add failing tests for JSX indentation bugs * test/manual/indent/js-jsx.js: Add failing tests for all the js-mode and js2-mode JSX indentation bugs reported over the years that I could find. Some may be duplicates, so I have grouped similar reports together, for now; we’ll see for certain which distinct cases we need once we start actually implementing fixes. * test/manual/indent/js-jsx-quote.js: New file with a nasty test. 2019-04-08 Katsumi Yamaoka Restore .dir-locals.el accidentally deleted But this way -- git add/commit/push -- is probably wrong, sorry. 2019-04-08 Katsumi Yamaoka Fix last commit message 2019-04-08 Katsumi Yamaoka Make `jump to group' work even if it is not activated (bug#33653) * lisp/gnus/gnus-group.el (gnus-group-goto-group): Use gnus-newsrc-hashtb instead of gnus-active-hashtb to check if a group exists even if its server is not activated (bug#33653). 2019-04-08 Katsumi Yamaoka Make `jump to group' work even if it is not activated (bug#33653) * lisp/gnus/gnus-group.el (gnus-group-goto-group): Use gnus-newsrc-hashtb instead of gnus-newsrc-hashtb to check if a group exists even if its server is not activated (bug#33653). 2019-04-08 Eric Abrahamsen Fix encoding and access of Gnus group names * lisp/gnus/gnus-start.el (gnus-active-to-gnus-format): Encode group names as 'latin-1. * lisp/gnus/nnmail.el (nnmail-parse-active): Ditto. * lisp/gnus/nnml.el (nnml-request-group, nnml-request-create-group, nnml-request-expire-articles, nnml-request-delete-group, nnml-request-rename-group, nnml-deletable-article-p, nnml-active-number, nnml-open-incremental-nov): Use assoc-string with nnml-group-alist. * lisp/gnus/nnrss.el (nnrss-request-delete-group, nnrss-retrieve-groups, nnrss-read-group-data, nnrss-check-group, nnrss-generate-download-script): Use assoc-string with nnrss-group-alist. 2019-04-08 Katsumi Yamaoka Make `move article' work again (bug#33653) * lisp/gnus/gnus-sum.el (gnus-summary-move-article): Back to while loop m dolist that blocks nov and active from saving (bug#33653). 2019-04-08 Stefan Monnier * lisp/gnus/gnus-sum.el: Prepare for lexical-binding Add defvars for all the gnus-tmp-*. (gnus-summary-make-local-variables): Move let binding to avoid setq. (gnus-set-global-variables): Use dolist. (gnus-summary-from-or-to-or-newsgroups, gnus-summary-insert-line) (gnus-summary-insert-dummy-line): Avoid dynbind args. (gnus-build-old-threads): Remove unused var 'id'. (gnus-nov-parse-line): Remove unused var 'buffer'. (gnus-thread-header): Prepare it for a lexbind world. (gnus-adjust-marked-articles): Remove unused var 'marks'. (gnus-mark-xrefs-as-read): Remove unused var 'idlist'. (gnus-summary-display-article): Erase&widen before mm-enable-multibyte. (gnus-summary-better-unread-subject): Remove unused var 'score'. (gnus-summary-find-matching): Remove unused var 'd'. (ps-right-header, ps-left-header, shr-ignore-cache): Declare vars. (gnus-summary-idna-message, gnus-summary-morse-message) (gnus-summary-sort-by-original): Fix interactive spec since we don't actually use any prefix arg. (gnus-summary-move-article, gnus-read-move-group-name): Use user-error. (gnus-summary-move-article): Use dolist. (gnus-summary-edit-article): Fix unquoting. (gnus-summary-highlight-line-0, gnus-summary-highlight-line): Declare dynbind vars documented in gnus-summary-highlight. 2019-04-08 Juri Linkov * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Check both buffer-local and default value of find-file-hook. 2019-04-08 Paul Eggert Allow gap before first non-Lisp pseudovec member Problem reported by Keith David Bershatsky in: https://lists.gnu.org/r/emacs-devel/2019-04/msg00259.html Solution suggested by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2019-04/msg00282.html * src/buffer.h (BUFFER_LISP_SIZE): Simplify by using PSEUDOVECSIZE. (BUFFER_REST_SIZE): Simplify by using VECSIZE and BUFFER_LISP_SIZE. * src/lisp.h (PSEUDOVECSIZE): Base it on the last Lisp field, not the first non-Lisp field. All callers changed. Callers without Lisp fields changed to use ALLOCATE_PLAIN_PSEUDOVECTOR. (ALLOCATE_PLAIN_PSEUDOVECTOR): New macro. 2019-04-08 Stefan Monnier * lisp/gnus/gnus-agent.el (gnus-agent-fetch-articles): Use match-string (gnus-agent-expire-group-1): Dial down on the 'setq'. 2019-04-08 Stefan Monnier * lisp/emacs-lisp/nadvice.el: Add ourselves to package--builtin-versions 2019-04-08 Stefan Monnier Eshell: Try to untangle the dependencies; move 'provide's to the end * lisp/eshell/esh-arg.el: Move defsubst and vars before first use. Don't require `esh-mode but esh-util instead. * lisp/eshell/esh-cmd.el: Require esh-module and esh-io. * lisp/eshell/esh-ext.el: Don't require esh-proc nor esh-cmd. (eshell-external-command): Require esh-proc for eshell-gather-process-output. * lisp/eshell/esh-mode.el: Don't require esh-io nor esh-var, but require esh-arg. (eshell-directory-name): Move from eshell.el. * lisp/eshell/esh-module.el: Don't require eshell. * lisp/eshell/esh-opt.el: Don't require esh-ext at top-level. (eshell--do-opts, eshell-show-usage): Require it here instead. * lisp/eshell/esh-proc.el: Don't require esh-cmd, but require esh-io. (eshell-reset-after-proc, eshell-record-process-object) (eshell-gather-process-output, eshell-send-eof-to-process): Require esh-mode and esh-var here. * lisp/eshell/esh-var.el: Require esh-module, esh-arg, and esh-io. * lisp/eshell/eshell.el: Require esh-module, esh-proc, esh-io, and esh-cmd. But don't require esh-mode. (eshell-directory-name): Move to esh-mode. (eshell-return-exits-minibuffer): Don't bind 'return' and 'M-return' since we already bind RET and M-RET. 2019-04-08 Michael Albinus Fix file-readable-p and file-executable-p in some Tramp backends * lisp/net/tramp-archive.el (tramp-archive-handle-file-readable-p): Use tramp-gvfs. * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-executable-p): Check that FILENAME exists. (tramp-gvfs-handle-file-readable-p): Check that FILENAME exists. Use heuristic in case it cannot be determined correctly. 2019-04-07 Mattias Engdegård Rename variable for clarity * lisp/progmodes/verilog-mode.el (verilog-sk-define-signal): Rename sig-re to sig-chars, to make it clear that it isn't a regexp. 2019-04-07 Alexander Gramiak Plug memory leak in GTK x-display-monitor-attributes-list * src/frame.c (free_monitors) [USE_GTK]: Define in the GTK case as well. * src/xfns.c (x-display-monitor-attributes-list) [USE_GTK]: Plug memory leak. * src/frame.h (MonitorInfo): Declare name as pointing to const char. 2019-04-07 Paul Eggert Simplify fill_gstring_header * src/composite.c (fill_gstring_header): Omit first argument HEADER, since in practice it is always nil. Change caller to match. Help the compiler by telling it LEN is nonnegative. Problem found with --enable-gcc-warnings and gcc -O2 -Og. 2019-04-07 Paul Eggert Help the compiler with byte order * src/xsettings.c (parse_settings): Help the compiler by letting it deduce the native endianness at compile-time. 2019-04-07 Paul Eggert Fix more regexp oddities Problems reported by Mattias Engdegård in: https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg00178.html * lisp/progmodes/sh-script.el (sh-get-indent-info): Reorder skip-chars-forward arg so that it does not look like a regexp. * lisp/progmodes/verilog-mode.el (verilog-sk-define-signal): Fix typo: the string is not a regexp. * lisp/vc/log-edit.el (log-edit-goto-eoh): Fix typo: stray ‘:’. * lisp/xml.el (xml-parse-dtd): Avoid ‘-’ right after char class. 2019-04-07 Michael Albinus Fix typo in tramp.texi * doc/misc/tramp.texi (Change file name syntax) (Frequently Asked Questions): '.' or ',' must follow xref. 2019-04-07 Michael Albinus * lisp/net/tramp.el (tramp-parse-group): Rename third arg to SKIP-CHARS. (tramp-parse-sconfig-group): Fix thinko. 2019-04-06 Alexander Gramiak * lisp/frame.el (display-planes): Use logb over truncate + log Suggested by Basil L. Contovounesios: https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-03/msg01052.html 2019-04-06 Alexander Gramiak Introduce new defcustom for terminal CUA rectangle commands This allows a user to set a non-meta modifier for their terminal should his/her terminal support it. See bug#35058 for background on this change. * lisp/emulation/cua-base.el (cua-rectangle-terminal-modifier-key): New defcustom. * lisp/emulation/cua-base.el (cua--shift-control-x-prefix): Use new defcustom. 2019-04-06 Alexander Gramiak Define and use new procedure display-symbol-keys-p * lisp/frame.el (display-symbol-keys-p): Define. * lisp/simple.el (normal-erase-is-backspace-setup-frame): Use eq instead of memq. (normal-erase-is-backspace-mode): Use display-symbol-keys-p. 2019-04-06 Alexander Gramiak Define and use new alias display-blink-cursor-p display-graphic-p is not used in this case because it may be possible in the future for terminals to allow control over cursor blinking. For details, see bug#35058. * lisp/frame.el (blink-cursor-mode): Use display-blink-cursor-p. 2019-04-06 Alexander Gramiak Use display-graphic-p and display-multi-frame-p in more cases * lisp/disp-table.el: * lisp/faces.el: * lisp/frame.el: * lisp/info.el (Info-fontify-node): * lisp/window.el (handle-select-window): Use display-graphic-p and display-multi-frame-p instead of explicit memq calls. 2019-04-06 Basil L. Contovounesios Distinguish buttons from widgets (bug#34506) * lisp/button.el (button-at): * lisp/wid-edit.el (widget-at): Avoid returning a false positive when looking for a button and finding a widget, or vice versa. * test/lisp/button-tests.el: * test/lisp/wid-edit-tests.el: New files. 2019-04-06 Stefan Monnier * src/buffer.c (Fget_buffer_create): Apply booleans's eta-reduction 2019-04-06 Stefan Monnier * lisp/subr.el (setq-default): Fix thinko Reported by Johan Bockgård 2019-04-06 Glenn Morris * doc/misc/tramp.texi (Remote processes): '.' or ',' must follow xref. 2019-04-06 Eli Zaretskii Encode the FILENAME argument of 'file-locked-p' * src/filelock.c (Ffile_locked_p): Encode the file name, before passing it to system APIs. (Bug#35171) 2019-04-06 Basil L. Contovounesios Don't leave inhibit_buffer_hooks uninitialized * src/buffer.c (Fget_buffer_create): Explicitly initialize inhibit_buffer_hooks. (bug#34847) 2019-04-06 Michael Albinus Fix Bug#34847 * lisp/autorevert.el (auto-revert-remove-current-buffer): Add optional argument BUFFER. (auto-revert-notify-rm-watch): Remove local hook. (auto-revert-buffers): Check `buffer-live-p' in time. (Bug#34847) 2019-04-05 Alex Branham Update documentation for indent-relative functions * lisp/indent.el (indent-relative): Document what happens when there is no previous nonblank line. * doc/lispref/text.texi (Relative Indent): Document indent-relative-first-indent-point instead of obsolete indent-relative-maybe. Fix documentation of which argument from 'indent-relative' is used. Bug#34858 2019-04-05 Michał Krzywkowski Small elide-head.el update * lisp/elide-head.el (elide-head-headers-to-hide): Also match https for GPL. (Bug#34919) 2019-04-05 Glenn Morris * doc/emacs/emacs.texi (Acknowledgments): Remove duplicate. 2019-04-05 Michael Albinus Adapt tramp-tests.el * test/lisp/net/tramp-tests.el (tramp-test30-make-process): Instrument test. Adapt check string. (tramp-test34-explicit-shell-file-name) (tramp-test43-asynchronous-requests): Skip tests for tramp-adb with older Emacsen. 2019-04-05 Konstantin Kharlamov Minor cleanup in widget.c * src/widget.c (update_wm_hints): Remove variables that are always zero, and simplify all expressions which used them. (Bug#35062) 2019-04-05 Konstantin Kharlamov Minor cleanup in gtkutil.c * src/gtkutil.c (x_wm_set_size_hint): Remove variables that are always zero, and simplify all expressions which used them. (Bug#35062) 2019-04-04 Katsumi Yamaoka Make `move article' work again (bug#33653) * lisp/gnus/gnus-sum.el (gnus-summary-move-article): Back to while loop m dolist that blocks nov and active from saving (bug#33653). 2019-04-04 Troy Hinckley Don't check comp-buffer-name-function in derived mode (Bug#34956) * lisp/progmodes/compile.el (define-compilation-mode): Remove 'compilation-buffer-name-function' from the list of overridden variables to ensure that it is not mistaken for a variable that can be major mode specific. 'compilation-buffer-name-function' is used before the major mode is loaded, therefore overriding it here is ineffectual. Also, the function 'compilation-start' takes an optional argument name-function, so there is already a mechanism to override it. 2019-04-04 Basil L. Contovounesios Fix comment-empty-lines docstring (bug#35152) * lisp/newcomment.el (comment-empty-lines): Consistently use US commas in docstring. Fix indentation of and typo in custom :type. 2019-04-04 Stefan Monnier * lisp/progmodes/compile.el (compilation-error-regexp-alist): Typo Reported by Kévin Le Gouguec 2019-04-04 Stefan Monnier * lisp/desktop.el (desktop--v2s): Add case for defstructs (bug#35131) 2019-04-04 Michael Albinus * test/lisp/net/tramp-tests.el (tramp-test43-asynchronous-requests): Make it fit for tramp-adb. Apply better check in process filter. 2019-04-03 Mauro Aranda Avoid recursive load of eshell * lisp/eshell/eshell.el: Provide eshell before requiring esh-mode to avoid a recursive load when esh-mode requires esh-module (which in turn requires eshell). (Bug #34954) The double loading can be noticed by entries in 'eshell-load-hook' or forms passed to (with-eval-after-load 'eshell ...). 2019-04-03 Mauro Aranda Fix repeated 'custom-add-option' in esh-mode.el (Bug#34993) * lisp/eshell/esh-mode.el: Call 'custom-add-option' with the right argument. 2019-04-03 Michael Albinus Work on asynchronous processes for tramp-adb.el * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): Simplify. Remove echoed first line. (tramp-adb-send-command): Add NEVEROPEN and NOOUTPUT. * lisp/net/tramp-sh.el (tramp-process-sentinel): Remove. (tramp-sh-handle-make-process): Simplify. * lisp/net/tramp.el (tramp-process-sentinel): New defun, taken from tramp-sh.el. Delete trailing shell prompt. * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process): Run also for tramp-adb. (tramp-test32-shell-command): Remove tramp-adb restrictions. (tramp-test34-explicit-shell-file-name): Rework. Remove :unstable tag. 2019-04-03 Glenn Morris * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Expect failure on hydra.nixos. 2019-04-03 Eli Zaretskii Improve commentary in 'field_relpos' * src/pdumper.c (PDUMPER_MAX_OBJECT_SIZE): New macro. (field_relpos): Use PDUMPER_MAX_OBJECT_SIZE, and comment on why we require that relpos be not too large. 2019-04-03 Eli Zaretskii Restore process-environment after portable dumping * src/pdumper.c (struct dump_context): New member old_process_environment. (Fdump_emacs_portable): Record the original value of process-environment. (dump_unwind_cleanup): Restore the original values of process-environment and post-gc-hook. 2019-04-03 Stephen Leake Fix bug in gud-gdb-marker-filter: first marker does not start with \n 2019-04-03 Basil L. Contovounesios Avoid using obsolete indent-relative-maybe * lisp/electric.el (electric-indent-functions-without-reindent): * lisp/indent.el (indent-according-to-mode): Check for indent-relative-first-indent-point in addition to its obsolete alias indent-relative-maybe. * lisp/obsolete/vi.el (vi-com-map): Use indent-relative-first-indent-point in place of its obsolete alias indent-relative-maybe. 2019-04-03 Stefan Monnier * lisp/progmodes/compile.el: Use non-nil values for *-function (compilation-parse-errors-filename-function,compilation-exit-message-function) (compilation-process-setup-function, compilation-buffer-name-function): Give them non-nil default values. (compilation-buffer-name): Restructure slightly. (compilation--default-buffer-name): New function, extracted from it. Use `name-of-mode` instead of `mode-command` to check if the current buffer is already in the appropriate mode. 2019-04-03 Stefan Monnier * lisp/progmodes/compile.el: Allow 'line' functions in error-regexp-alist (compilation-error-properties): Allow 'line' and 'end-line' to be functions, like 'col' and 'end-col'. (compilation-error-regexp-alist): Document this. (compilation-parse-errors): Drop support for old undocumented feature where 'line' was a function of 2 arguments. (compilation--compat-error-properties): Delete function. 2019-04-02 Noam Postavsky Allow partial decompression (Bug#33133) * src/decompress.c (Fzlib_decompress_region): Add optional ALLOW-PARTIAL parameter. * lisp/url/url-http.el (url-handle-content-transfer-encoding): Use it. * doc/lispref/text.texi (Decompression): Document it. * etc/NEWS: Announce it. 2019-04-02 Basil L. Contovounesios * lisp/gnus/gnus-dup.el: Use lexical-binding (gnus-dup-list-dirty): Add docstring. (gnus-dup-open): Allocate gnus-dup-hashtb more conservatively now that it is no longer an obarray. (gnus-dup-enter-articles): Fix off-by-one error. (gnus-dup-suppress-articles): DRY. For discussion, see thread starting at: https://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00974.html 2019-04-02 Wilson Snyder Fix verilog-mode vmm statements and AUTOINPUTREG ignores. * lisp/progmodes/verilog-mode.el (verilog-vmm-statement-re): Fix vmm statement regexps. Reported by Mattias Engdegard. (verilog-auto-reg-input) (verilog-auto-reg-input-assigned-ignore-regexp): For AUTOINPUTREG, allow ignoring assignments with new `verilog-auto-reg-input-assigned-ignore-regexp' variable, bug1401. Reported by David Rogoff. 2019-04-02 Paul Eggert Improve regexp advice again, and unchain ranges * doc/lispref/searching.texi (Regexp Special): Mention char classes earlier, in a more-logical place. Advise sticking to ASCII letters and digits in ranges. Reword negative advice to make it clearer that it’s negative. * lisp/files.el (make-auto-save-file-name): * lisp/gnus/message.el (message-mailer-swallows-blank-line): * lisp/gnus/nndoc.el (nndoc-lanl-gov-announce-type-p) (nndoc-generate-lanl-gov-head): * lisp/org/org-eshell.el (org-eshell-open): * lisp/org/org.el (org-deadline-time-hour-regexp) (org-scheduled-time-hour-regexp): * lisp/progmodes/bat-mode.el (bat-font-lock-keywords): * lisp/progmodes/bug-reference.el (bug-reference-bug-regexp): * lisp/textmodes/less-css-mode.el (less-css-font-lock-keywords): * lisp/vc/vc-cvs.el (vc-cvs-valid-symbolic-tag-name-p): * lisp/vc/vc-svn.el (vc-svn-valid-symbolic-tag-name-p): Avoid attempts to chain ranges, as this can be confusing. For example, instead of [0-9-_.], use [0-9_.-]. 2019-04-02 Eli Zaretskii Fix documentation of last change * doc/misc/cl.texi (Structures): Document :noinline. * etc/NEWS: Mark the entry for :noinline as documented. 2019-04-02 Stefan Monnier * lisp/emacs-lisp/cl-macs.el: Don't always inline struct functions (cl--struct-inline): New var. (cl-defstruct): Obey it along with a new :noinline keyword argument. 2019-04-02 Stefan Monnier * lisp/subr.el (prog2): Define as a macro * src/eval.c (Fprog2): Delete function. (syms_of_eval): Don't register it. * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): * lisp/emacs-lisp/generator.el (cps--transform-1): Remove `prog2` case. * lisp/emacs-lisp/bytecomp.el (prog2): Remove handlers. (byte-compile-prog2): Delete. * lisp/emacs-lisp/lisp-mode.el (prog2): Remove property. 2019-04-02 Michael Albinus Suppress timers in tramp-send-string * lisp/net/tramp.el (tramp-send-string): Suppress timers. Use `with-local-quit'. 2019-04-02 Michael Albinus Give example for configuration in tramp.texi * doc/misc/tramp.texi (Configuration): Explain how to call Tramp configuration functions in the init file. 2019-04-02 Paul Eggert More regexp advice and clarifications * doc/lispref/searching.texi (Regexp Special): Simplify style advice for order of ], ^, and - in character alternatives. Stick with saying that it’s not a good idea to put ‘-’ after a range. Remove the special case about raw 8-bit bytes and unibyte characters, as this documentation is confusing and seems to be incorrect in some cases. Say that z-a is the preferred style for reversed ranges, since it’s clearer and is typically what’s used in practice. Mention some bad styles: duplicates in character alternatives, ranges that denote <=3 characters, and ‘-’ as the first character. 2019-04-01 Paul Eggert Merge from origin/emacs-26 0924b27bca Say which regexp ranges should be avoided # Conflicts: # doc/lispref/searching.texi 2019-04-01 Eric Abrahamsen Refactor Gnus group name extraction in group completing read * lisp/gnus/gnus-group.el (gnus-group-completing-read): Only do the unibyte check once; make sure it applies to hash table keys as well. 2019-04-01 Paul Eggert Make struct Lisp_Objfwd etc. objects read-only Initialize these objects statically, and make them constants. This is a bit safer and more efficient. * src/data.c (XBOOLFWD, XKBOARD_OBJFWD, XFIXNUMFWD, XOBJFWD): * src/lisp.h (XBUFFER_OBJFWD): Return a pointer-to-const instead of an unrestricted pointer. (lispfwd): fwdptr is now a pointer-to-const instead of an unrestricted pointer. All uses changed. (SET_SYMBOL_FWD): Accept pointer-to-const instead of an unrestricted pointer. (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT) (DEFVAR_KBOARD): Initialize static structures statically instead of dynamically, and make them const. * src/lread.c (defvar_int, defvar_bool, defvar_lisp_nopro) (defvar_lisp, defvar_kboard): Accept pointer-to-const instead of an unrestricted pointer; it’s now the caller’s responsibility to initialize the pointed-to storage. No need for a separate address argument any more. All callers changed. 2019-04-01 Paul Eggert Fix union Lisp_Fwd * alignment bug It's not portable to cast (e.g.) struct Lisp_Objfwd * to union Lisp_Fwd * and then back again, because the compiler can then assume that the pointer is aligned for union Lisp_Fwd * when accessing the struct Lisp_Objfwd * components, and this assumption might be incorrect becase we don't force that alignment. * src/lisp.h (lispfwd): New type, replacing ... (union Lisp_Fwd): ... this type, which was removed. All uses changed. (SET_SYMBOL_FWD): 2nd arg is now void *, not lispfwd. All uses changed (casts no longer needed; they were not portable anyway). 2019-04-01 Stefan Monnier * lisp/subr.el (setq-default): Define as a macro * lisp/emacs-lisp/bytecomp.el (byte-compile-setq-default): Delete. (byte-compile-set-default): Inline the part that it used. * lisp/emacs-lisp/edebug.el (setq-default): Remove the debug spec. * src/data.c (Fsetq_default): Delete. (syms_of_data): Don't register. 2019-04-01 Eli Zaretskii Fix a typo in xterm.c and w32term.c * src/xterm.c (x_window_to_scroll_bar): * src/w32term.c (x_window_to_scroll_bar): Fix a typo. 2019-03-31 Paul Eggert Use update-game-score more often with Tetris * lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score): Go back to previous way of deciding whether to invoke update-game-score, except do not try to invoke it if file-modes fails on it (Bug#35056). 2019-03-31 Basil L. Contovounesios Do not set indent-line-function in text-mode * lisp/textmodes/text-mode.el (text-mode): Do not reset indent-line-function to its global default value of indent-relative. * doc/lispref/modes.texi (Example Major Modes): * etc/NEWS: Document change accordingly. 2019-03-31 Basil L. Contovounesios Do not set indent-line-function in text-mode For discussion, see thread starting at: https://lists.gnu.org/archive/html/emacs-devel/2019-03/msg01012.html * lisp/textmodes/text-mode.el (text-mode): Do not reset indent-line-function to its global default value of indent-relative. * doc/lispref/modes.texi (Example Major Modes): * etc/NEWS: Document change accordingly. 2019-03-31 Basil L. Contovounesios Use lexical-binding in text-mode.el * lisp/textmodes/text-mode.el: Use lexical-binding. (text-mode, paragraph-indent-minor-mode, text-mode-hook-identify): Use setq-local. (toggle-text-mode-auto-fill): Quote function symbols as such. (center-line): Minor simplification. * doc/lispref/modes.texi (Example Major Modes): Update code example for these changes to text-mode. 2019-03-31 Alan Third Use the correct filename for dump file in NS * nextstep/Makefile.in (all): (${ns_appbindir}/Emacs.pdmp): (links): Use mixed case 'Emacs.pdmp' to match the executable name. 2019-03-31 Basil L. Contovounesios Fix recently extended delete-indentation behavior * doc/lispref/text.texi (User-Level Deletion): Document new optional arguments of delete-indentation. * lisp/simple.el (delete-indentation): Do not barf if called interactively when region is inactive. (bug#35021) Do not skip blank lines. (bug#35036) Consistently deactivate mark even when no text was changed. Handle active region spanning a single line. * test/lisp/simple-tests.el (simple-test--buffer-substrings): New convenience function. (simple-test--dummy-buffer, simple-test--transpositions): Use it. (simple-delete-indentation-no-region) (simple-delete-indentation-inactive-region): Update commentary. Call delete-indentation interactively when testing for behavior with inactive region and region is not explicitly defined. (simple-delete-indentation-blank-line) (simple-delete-indentation-boundaries) (simple-delete-indentation-region) (simple-delete-indentation-prefix): New tests. 2019-03-31 Eric Abrahamsen Check gnus-newsgroup-dependencies is hash table in gnus-id-to-thread * lisp/gnus/gnus-sum.el (gnus-id-to-thread): If dependencies haven't been initialized yet, don't blow up. Mimicks previous (non hasht table) behavior. 2019-03-31 Mattias Engdegård Fix typo in regexp-opt example code * doc/lispref/searching.texi (Regexp Functions): Fix typo in example code (Bug#34596). 2019-03-30 Alan Mackenzie Allow a CC Mode derived mode to have strings delimited by single quotes. Also fix the bug where the delimiters of '\033', etc. got the error face. * lisp/progmodes/cc-langs.el (c-single-quotes-quote-strings): Enhance the docr string. (c-string-delims): Change doc string to doc comment. * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): In searches and comparisons, take account of the string delimiters possibly being '. Fix argument in call of c-before-change-check-unbalanced-strings. (c-parse-quotes-before-change, c-parse-quotes-after-change): Bind case-fold-search to nil. Analyze escape constructs inside character constants more accurately, in particular accepting as valid more than one character after /[0-7], /x, /u, and /U. Amend calculations to account for this extra length. 2019-03-30 Eli Zaretskii Fix a thinko in a recent commit * src/buffer.c (Fkill_buffer): Fix last change. (Bug#31138) Reported by Mattias Engdegård . 2019-03-30 Mattias Engdegård Release regexp before signaling overflow error * src/search.c (looking_at_1, search_buffer_re): Unfreeze the regexp buffer before signaling a matcher overflow, since the error processing may require quite some regexp use as well (Bug#34910). 2019-03-30 Mattias Engdegård Fix spurious regexp reentrancy error * src/search.c (compile_pattern): Don't give up if the last regexp cache entry is busy. Instead, use the last (least recently used) non-busy entry, and only signal a reentrancy error if there is no free entry at all (Bug#34910). 2019-03-30 Eli Zaretskii Don't run buffer-related hooks in " *code conversion work*" buffers Note: portions of this change were mistakenly pushed as part of an unrelated commit a35a1f6a9. * src/buffer.c (Fget_buffer_create): Set inhibit_buffer_hooks non-zero for temporary buffers created by coding.c. Don't run buffer-list-update-hook for such buffers. (Frename_buffer, Fkill_buffer, record_buffer) (Fbury_buffer_internal): Don't run hooks for buffers whose inhibit_buffer_hooks flag is set. * src/buffer.h (struct buffer): New member inhibit_buffer_hooks. * src/pdumper.c (dump_buffer): Dump the new field. Update the hash value in HASH_buffer_XXX. * src/coding.c (make_conversion_work_buffer): Function deleted; code moved to code_conversion_save. (code_conversion_save): Insert code from make_conversion_work_buffer, but arrange for unwind-protecting the current buffer before switching to the work buffer. This avoids leaving reused_workbuf_in_use set if user presses C-g during encoding/decoding. (Vcode_conversion_workbuf_name): Now external variable. * src/coding.h (Vcode_conversion_reused_workbuf): Declare. 2019-03-29 Michael Albinus Extend comment about scope of tramp-test05-expand-file-name-relative 2019-03-29 Stefan Monnier Gnus: Automatically render text/calendar in a human-friendly way * lisp/gnus/mm-decode.el (mm-inline-media-tests): Add text/calendar entry. Use (fboundp 'device-sound-enabled-p) rather than fishing for features. (mm-automatic-display): Add text/calendar entry. * lisp/gnus/gnus-icalendar.el: Use lexical-binding. Remove redundant :group args. (gnus-icalendar-mm-inline): Add autoload cookie. 2019-03-29 Alan Mackenzie Fix (again) regexp bug in CC Mode. * lisp/progmodes/cc-mode.el (c-after-change-mark-abnormal-strings): "|\\\r" -> "\\|\r". 2019-03-28 Mattias Engdegård Use memql instead of memq in pcase * lisp/emacs-lisp/pcase.el (pcase--u1): Use memql instead of memq to work with bignums (Bug#34781). * test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-member): Test the above. 2019-03-28 Eric Abrahamsen Initiate gnus-active-hashtb before making ephemeral group * lisp/gnus/gnus-group.el (gnus-group-read-ephemeral-group): Needs to be a hash table, not nil. 2019-03-28 Eli Zaretskii Fix display of sliced images on MS-Windows * src/w32term.c (x_draw_image_foreground): Fix detection of scaled images for sliced images. Scale the original width of a slice and its coordinates of origin as well. 2019-03-28 Michael Albinus * lisp/net/tramp.el (tramp-accept-process-output): Use `push'. 2019-03-27 Paul Eggert Simpler way to export HAVE_X_WINDOWS to GDB * src/.gdbinit: Simplify by removing dependency on globals implementation. This is useful for a future performance improvement that I have in mind. * src/alloc.c (enum defined_HAVE_X_WINDOWS, defined_HAVE_X_WINDOWS): New enum and constant. (gdb_make_enums_visible) [__GNUC__]: Use it, to make defined_HAVE_X_WINDOWS visible to GDB. 2019-03-27 Paul Eggert Tweak re_registers allocation * src/regex-emacs.c (re_match_2_internal): No need to allocate one extra trailing search register; Emacs does not use it. Avoid quadratic behavior on reallocation. 2019-03-27 Paul Eggert No need for m_search_regs_saved in thread.h * src/search.c (save_search_regs, restore_search_regs): Don’t use m_search_regs_saved; it’s equivalent to saved_search_regs.num_regs != 0. * src/thread.h (struct thread_state): Remove m_search_regs_saved. 2019-03-27 Paul Eggert Fix search_regs memory leak when thread destroyed * src/thread.c (free_search_regs): New function. (finalize_one_thread): Use it. 2019-03-27 Juri Linkov * lisp/frame.el (make-frame-on-monitor): Add default value. (Bug#34516) 2019-03-27 Michael Albinus * lisp/net/tramp.el (tramp-accept-process-output): Let progress reporter run. 2019-03-27 Charles A. Roelli * test/lisp/mail/rmail-tests.el (rmail-autoload): Fix its doc. 2019-03-27 Paul Eggert Tune css-mode regexp * lisp/textmodes/css-mode.el (css--font-lock-keywords): Omit unnecessary \(?: \) in regexp. Suggested by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg01042.html 2019-03-27 Michael Heerdegen Improve documentation of 'alist-get' (Bug#34708) * lisp/subr.el (alist-get): Enhance part of docstring explaining usage in place expressions. 2019-03-27 Paul Eggert Use regexp-opt-charset to improve regexp tweaks * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Reword confusing sentence in doc string. * lisp/erc/erc.el (erc-lurker-maybe-trim): * lisp/mail/footnote.el (footnote-hebrew-numeric-regex): Improve by using regexp-opt-charset. 2019-03-27 Eli Zaretskii Attempt to fix crashes under GDB on Windows 10 * src/pdumper.c (dump_discard_mem) [VM_SUPPORTED == VM_MS_WINDOWS]: Don't pass NULL pointer as last argument to VirtualProtect. Reported by Martin Rudalics . 2019-03-27 Paul Eggert Minor xml.el tweaks * lisp/xml.el (xml-name-start-char-re, xml-name-char-re): No need to call concat. (xml-name-char-re): Use \u escapes rather than chars inline, so that the code matches the comments better and is easier to audit. 2019-03-27 Michael Albinus Use connection-local setting for tramp-remote-path * doc/misc/tramp.texi (Remote programs): Mention connection-local settings for `tramp-remote-path'. * lisp/net/tramp-sh.el (tramp-get-remote-path): Expand connection-local variables. 2019-03-27 Basil L. Contovounesios Avoid recently obsolete seq-contains in css-mode * lisp/textmodes/css-mode.el (css--join-nested-selectors): Replace recently obsolete seq-contains with new predicate seq-contains-p. 2019-03-27 Mattias Engdegård * lisp/xml.el (xml-name-char-re): Remove superfluous `-' in regexp. 2019-03-27 Alan Mackenzie Improve C++ raw string fontification. Integrate the handling of raw string and ordinary string fontification. * lisp/progmodes/cc-defs.el (c-font-lock-flush) (c-search-forward-char-property-without-value-on-char): new macros. (c-point): In the 'eoll arm, check for eobp. (c-search-forward-char-property-with-value-on-char): Handle the &optional limit argument being nil. (c-clear-char-property-with-value-on-char-function) (c-clear-char-property-with-value-on-char): Return the position of the first cleared property. * lisp/progmodes/cc-engine.el (c-find-decl-prefix-search): Don't spuriously recognize the change of face at a ) as the start of a string (a "pseudo match"). (c-old-beg-rs c-old-end-rs): New variables. (c-raw-string-pos): Analyze raw string delimiters more carefully. (c-raw-string-in-end-delim): New function. (c-depropertize-raw-string): Largely rewritten. (c-before-change-check-raw-strings): New functionality: only remove the syntax-table text properties from raw strings whose delimiters are about to change. (c-propertize-raw-string-id): New function. (c-after-change-re-mark-raw-strings): Remove, incorporating functionality into other functions. (c-propertize-raw-string-opener): Largely rewritten. (c-after-change-re-mark-raw-strings): Removed. (c-after-change-unmark-raw-strings, c-after-change-unmark-raw-strings): New functions. * lisp/progmodes/cc-fonts.el (c-font-lock-raw-strings): Largely rewritten. * lisp/progmodes/cc-langs.el (c-before-font-lock-functions): Replace c-after-change-re-mark-unbalanced-strings by c-after-change-mark-abnormal-strings in the t, c+objc, c++ and java sections. Add c-after-change-unmark-raw-strings and remove c-after-change-re-mark-raw-strings from the c++ section. * lisp/progmodes/cc-mode.el (c-old-BEG c-old-END): Remove. (c-old-END-literality): New variable. (c-depropertize-CPP): Remove syntax-table properties from raw strings within macros. (c-before-change-check-unbalanced-strings): Call c-truncate-semi-nonlit-pos-cache to preserve the integrity of the cache. (c-before-change-check-unbalanced-strings): Call c-truncate-semi-nonlit-pos-cache, largely rewritten. (c-after-change-re-mark-unbalanced-strings): Renamed to c-after-change-mark-abnormal-strings. Call c-maybe-re-mark-raw-string. 2019-03-27 Andreas Schwab * lisp/calc/calc-forms.el (calc-hms-notation): Fix interactive prompt. 2019-03-27 Nicolas Petton * lisp/emacs-lisp/map.el (map-inplace): Fix the message of the error. 2019-03-26 YAMAMOTO Mitsuharu Support native image resizing on cairo * src/xterm.c (x_cr_draw_image): Add arguments image_width and image_height and support scaling. All callers changed. * src/image.c (Fimage_scaling_p): Return t when USE_CAIRO. (x_set_image_size) [USE_CAIRO]: Record the scaled dimensions in the image struct. * src/dispextern.h (HAVE_NATIVE_SCALING): Define when USE_CAIRO as well. * etc/NEWS: Update the announcement of native image scaling. 2019-03-26 YAMAMOTO Mitsuharu Fix cairo image drawing with box * src/xterm.c (x_cr_draw_image): Don't call cr_clip for non-mask case. (x_draw_image_foreground) [USE_CAIRO]: Draw image here ... (x_draw_image_glyph_string) [USE_CAIRO]: ... instead of here. (x_draw_image_foreground, x_draw_image_foreground_1) (x_draw_image_glyph_string) [USE_CAIRO]: Ifdef away unused code path. 2019-03-26 Paul Eggert 2019-03-26 regex cleanup Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg01028.html * lisp/align.el (align-rules-list): * lisp/speedbar.el (speedbar-check-read-only, speedbar-check-vc): * lisp/vc/diff-mode.el (diff-add-change-log-entries-other-window): * lisp/woman.el (woman-parse-numeric-arg): Put "-" at end of character alternatives, since a range was not intended. * lisp/erc/erc.el (font-lock): * lisp/mail/footnote.el (cl-seq): Avoid duplicate character alternatives by using cl-seq API. * lisp/mail/footnote.el (footnote--current-regexp): * lisp/textmodes/css-mode.el (css--font-lock-keywords): Avoid repetition of repetition. * lisp/net/webjump.el (webjump-url-encode): Add ~ to character alternatives, and rewrite confusing range. * lisp/progmodes/verilog-mode.el (verilog-compiler-directives) (verilog-assignment-operator-re): Remove duplicate. * lisp/progmodes/verilog-mode.el (verilog-preprocessor-re): * lisp/textmodes/css-mode.el (css--font-lock-keywords): Don’t escape a char that doesn’t need it. * lisp/textmodes/picture.el (picture-tab-chars): In docstring, do not say regexp characters will be quoted; merely say in another way that the syntax is that of character alternatives. (picture-set-tab-stops, picture-tab-search): Don’t attempt to regexp-quote picture-tab-chars. (picture-tab-search): Quote \ in picture-tab-chars for skip-chars-backwards, which treats \ differently than regexp character alternatives do. 2019-03-26 Stefan Monnier * lisp/emacs-lisp/easy-mmode.el: simplify via custom-current-group * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Don't try and guess a default :group, defcustom does it better anyway. 2019-03-26 YAMAMOTO Mitsuharu Use cairo image surface instead of pattern for fringe bitmap * src/xterm.c (fringe_bmp, x_cr_define_fringe_bitmap) (x_cr_destroy_fringe_bitmap, x_cr_draw_image) [USE_CAIRO]: Change type of fringe bitmap. 2019-03-26 YAMAMOTO Mitsuharu Fix cairo scrolling for left scroll bars case * src/xterm.c (x_scroll_run) [USE_CAIRO]: Fix scrolling by unusing WINDOW_LEFT_EDGE_X. (Bug#31288) 2019-03-25 YAMAMOTO Mitsuharu Support tool bar icon image on GTK+ >= 3.10 with cairo * src/gtkutil.c (xg_get_image_for_pixmap) [USE_CAIRO]: Use cairo image surface for GtkImage source. (xg_tool_item_stale_p, update_frame_tool_bar) [USE_CAIRO]: Use cairo image surface instead of pixmap for data associated with tool bar item. 2019-03-25 YAMAMOTO Mitsuharu Simplify cairo image surface creation and destruction * src/dispextern.h (struct image) [USE_CAIRO]: Remove member cr_data2. * src/image.c (set_cairo_image_surface): New function split from original create_cairo_image_surface. Call cairo_surface_mark_dirty. (create_cairo_image_surface): Just create image surface and return it. (x_clear_image): Don't free cr_data2. (xpm_load, pbm_load, png_load_body, jpeg_load_body, tiff_load) (gif_load, imagemagick_load_image, svg_load_image) [USE_CAIRO]: Use new create_cairo_image_surface and cairo_image_surface_get_data instead of xmalloc. Use set_cairo_image_surface instead of old create_cairo_image_surface. (pbm_load) [USE_CAIRO]: Call cairo_surface_destroy for surface instead of xfree for data. (gif_load) [USE_CAIRO]: Multiply y-coordinate value by width instead of subimg_width. 2019-03-25 Paul Eggert Port recent ngettext stub to non-glibc * src/editfns.c: Don’t try to call glibc ngettext; we’re not ready for that yet. (Fngettext): Do not restrict integer arguments to fixnums. Improve doc string a bit. 2019-03-25 Paul Eggert Update from Gnulib. This incorporates: 2019-03-23 Support cross-compilation to musl libc 2019-03-23 noreturn: In C++ mode with clang, use _Noreturn as fallback 2019-03-22 _Noreturn: beware of C's _Noreturn in C++ pre C++11 2019-03-19 Help making signal handlers more reliable 2019-03-18 _Noreturn: clang and MSVC do support [[noreturn]] in C++11 2019-03-17 _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 2019-03-14 all: Update URLs to msdn.microsoft.com * doc/misc/texinfo.tex, lib/_Noreturn.h, lib/gettimeofday.c: * lib/mktime.c, lib/regcomp.c, lib/regexec.c, lib/stat-time.h: * lib/utimens.c, m4/fdopendir.m4, m4/getgroups.m4: * m4/gettimeofday.m4, m4/gnulib-common.m4, m4/putenv.m4, m4/utimes.m4: Update from gnulib. 2019-03-25 Juri Linkov * lisp/vc/vc.el (vc-diff-mergebase, vc-log-mergebase): New commands. * lisp/vc/vc-git.el (vc-git-mergebase): New function. (vc-git-print-log): Interpret string value of arg LIMIT as an end-revision. * lisp/vc/vc-hooks.el (vc-prefix-map): Bind 'vc-log-mergebase' to 'C-x v M L', and 'vc-diff-mergebase' to 'C-x v M D'. (Bug#33950) 2019-03-25 Paul Eggert Fix alignment bug with pure bignums Problem found on 32-bit sparc, which has stricter alignment checking than x86-64. * src/alloc.c (pure_alloc): When TYPE is negative it now specifies the negation of the required alignment of the result. (make_pure_bignum): Specify bignum limb alignment. 2019-03-25 Juri Linkov * lisp/international/mule-cmds.el (ngettext): Move to editfns.c. * src/editfns.c (Fngettext): Move from mule-cmds.el and use gettext's ngettext when available. 2019-03-25 Eric Abrahamsen Fix text property bug in gnus-group-list-active * lisp/gnus/gnus-group.el (gnus-group-list-active): The property value should be the group name, not the value of gethash. Ie, it should be the key, not the value. 2019-03-25 Eric Abrahamsen Don't save Gnus' dummy.group to the .newsrc.eld file * lisp/gnus/gnus-start.el (gnus-gnus-to-quick-newsrc-format): Remove the "dummy.group" element. 2019-03-25 Eric Abrahamsen Handle multiple possible types for Gnus group names * lisp/gnus/gnus-start.el (gnus-active-to-gnus-format): Numbers, symbols, and strings. 2019-03-25 Paul Eggert Fix a dns-mode reentrancy bug * lisp/textmodes/dns-mode.el (dns-mode-ipv6-to-nibbles): Don’t assume kill-new does no matching. 2019-03-25 Basil L. Contovounesios Fix non_local_exit_get signature in Elisp manual * doc/lispref/internals.texi (Module Nonlocal): Fix typo in return type of non_local_exit_get. 2019-03-25 Michael Albinus Explain messages with patches in CONTRIBUTE * CONTRIBUTE: A message shall contain the string "[PATCH]" in the subject if there's a patch in the message. 2019-03-25 Paul Eggert Support ./configure --with-gif=ifavailable etc. Suggested by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00789.html * INSTALL, etc/NEWS: Document this. * configure.ac: Implement this. 2019-03-25 Stefan Monnier * lisp/vc/diff-mode.el: Better handle empty lines in context diffs (diff-end-of-hunk): Obey diff-valid-unified-empty-line for context style. (diff--refine-hunk): Don't look further than the end. 2019-03-25 Paul Eggert Fix some integer issues in regex-emacs Also, remove some duplicate comments related to thread.h. * src/regex-emacs.h (struct re_registers): * src/regex-emacs.c (SIGN_EXTEND_CHAR): Remove. (TALLOC, RETALLOC): Remove. All uses replaced by usual allocators, which check for integer overflow. (extract_number): Redo without using ‘unsigned’. (CHARSET_RANGE_TABLE_EXISTS_P): Clearly return a boolean. (print_fastmap, print_partial_compiled_pattern, CHECK_INFINITE_LOOP) (regex_compile, analyze_first, bcmp_translate, mutually_exclusive_p) (re_match_2_internal): Use bool for booleans. (print_fastmap, regex_compile, execute_charset): Prefer int to unsigned where either will do. (print_double_string): Prefer ptrdiff_t to ssize_t, since the latter can in theory be narrower than the former. Use fwrite instead of repeated putchar. (emacs_re_max_failures, fail_stack_type, compile_stack_type) (re_wctype_parse, regex_compile, re_search, re_search_2) (re_match_2, re_match_2_internal, re_compile_pattern): Prefer ptrdiff_t to size_t where either will do. (union fail_stack_elt, PUSH_FAILURE_REG, POP_FAILURE_REG_OR_COUNT): Make the integer an intptr_t, not long. (GET_BUFFER_SPACE, EXTEND_BUFFER, regex_compile): Use xpalloc to simplify allocation. (regex_compile): Check for integer overflow when calculating register numbers. * src/regex-emacs.c (re_set_registers, re_match_2_internal): * src/regex-emacs.h (struct re_registers, struct re_pattern_buffer): * src/search.c (Freplace_match): Prefer ptrdiff_t to unsigned where either will do. * src/regex-emacs.h (struct re_pattern_buffer): Prefer bool_bf to unsigned where either will do. 2019-03-25 Paul Eggert * src/regex-emacs.c (regex_compile): Fix comments. 2019-03-25 João Távora Avoid occasional confusion of Flymake C/C++ backend The regexp would sometimes match non-errors and create a diagnostic with nil severity, which would have consequences for the Flymake engine (these should eventually be addressed, too). * lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics): Tighten regexp. 2019-03-25 João Távora Make bundled Flymake C backend work for C++, too * lisp/progmodes/flymake-cc.el (flymake-cc-use-special-make-target): Pass -x flag according to major-mode. 2019-03-24 Juri Linkov i18n: Add function ngettext for pluralization. * lisp/international/mule-cmds.el (ngettext): New function. https://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00586.html * lisp/replace.el (flush-lines, how-many, occur-1, occur-engine) (perform-replace): Use ngettext. * lisp/progmodes/grep.el (grep-exit-message): Use ngettext. (grep-mode-font-lock-keywords): Match both singular and plural form of "matches". 2019-03-24 Juri Linkov * lisp/progmodes/xref.el (xref--show-xrefs): Push mark. (Bug#34908) 2019-03-24 Basil L. Contovounesios Fix Gnus duplicate article unsuppression * lisp/gnus/gnus-sum.el (gnus-summary-mode-group): Declare before first use to silence byte-compiler. (gnus-summary-select-article): Simplify boolean expression. (gnus-summary-move-article): Do not try to unsuppress article when duplicate suppression is disabled. (bug#34973, bug#34974) 2019-03-24 Paul Eggert * src/lisp.h (primary_thread): Remove unused decl. 2019-03-24 Michael Albinus Bind `enable-local-variables' in `hack-connection-local-variables' * lisp/files-x.el (hack-connection-local-variables): Bind `enable-local-variables', instead of re-declaring `safe-local-variable-p'. 2019-03-23 Eli Zaretskii * src/Makefile.in ($(AM_V_GEN)POSIXLY_CORRECT): Use AM_V_GEN. 2019-03-23 Michael Albinus Fix Bug#34943 * lisp/files-x.el (cl-lib): Require when compiling. (hack-connection-local-variables): Regard connection-local variables as safe. (Bug#34943) * lisp/shell.el (shell): Use `with-connection-local-variables' for the whole code block. (Bug#34943) * lisp/net/tramp-adb.el (tramp-connection-local-safe-shell-file-names): Do not set values. * lisp/net/tramp-integration.el (tramp-connection-local-safe-shell-file-names): Remove. (shell-file-name, shell-command-switch): Do not add safe-local-variable property. * lisp/net/tramp.el (tramp-handle-shell-command): Use proper buffer name. * test/lisp/net/tramp-tests.el (tramp-test34-explicit-shell-file-name): Tag it :unstable. 2019-03-23 Eli Zaretskii Avoid compiler warning in w32proc.c * src/w32proc.c (w32_executable_type): Avoid compiler warnings about potential NULL pointer dereferencing. 2019-03-22 Michael R. Mauger Fix Bug#25424. * lisp/progmodes/sql.el (sql-end-of-statement): default terminator as semicolon. 2019-03-22 Stephen Leake Fix bug in delete-indentation when region is inactive * test/lisp/simple-tests.el: Add tests for delete-indentation. (simple-delete-indentation-no-region): Works with no region. (simple-delete-indentation-inactive-region): Was broken with inactive region; now fixed. * lisp/simple.el (delete-indentation): Check (use-region-p) before using BEG. 2019-03-22 Eric Abrahamsen Change Gnus hash tables into real hash tables Gnus has used obarrays as makeshift hash tables for groups: group names are coerced to unibyte and interned in custom obarrays, and their symbol-value set to whatever value needs to be stored. This patch replaces those obarrays with actual hash tables. * lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size): Remove functions. (gnus-make-hashtable): Change to return a real hash table. (gnus-text-property-search): Utility similar to `text-property-any', but compares on `equal'. Needed because the 'gnus-group text property is now a string. * lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash): Remove macros. (gnus-group-list): New variable holding all group names as an ordered list. Used because `gnus-newsrc-hashtb' used to preserve `gnus-newsrc-alist' ordering, but now doesn't. * lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to alist. (nnmaildir--up2-1): Remove function. * lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use of Gnus obarrays, replace with a cond that can handle many different possibilities. * lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove gnus-backlog-hashtb, which wasn't doing anything. Just keep a list of ident strings in gnus-backlog-articles. (gnus-backlog-setup): Delete unnecessary function. (gnus-backlog-enter-article, gnus-backlog-remove-oldest-article, gnus-backlog-remove-article, gnus-backlog-request-article): Alter calls accordingly. * lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from `gnus-duplicate-list-length', for accuracy. * lisp/gnus/gnus-start.el (gnus-active-to-gnus-format, gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group names as strings. (gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using the ordering in `gnus-group-list'. * lisp/gnus/gnus-agent.el: * lisp/gnus/gnus-async.el: * lisp/gnus/gnus-cache.el: * lisp/gnus/gnus-group.el: * lisp/gnus/gnus-score.el: * lisp/gnus/gnus-sum.el: * lisp/gnus/gnus-topic.el: * lisp/gnus/message.el: * lisp/gnus/mml.el: * lisp/gnus/nnagent.el: * lisp/gnus/nnbabyl.el: * lisp/gnus/nnvirtual.el: * lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables, and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash', `mapatoms' for `maphash', etc. * test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table, gnus-headers-loop-dependencies): New tests to make sure we're building `gnus-newsgroup-dependencies' correctly. 2019-03-22 Michael Albinus Fix Bug#24394, Bug#34172 * lisp/subr.el (process-file-shell-command): Use `with-connection-local-variables'. Do not set "/bin/sh" for remote buffers, trust settings of `shell-file-name'. * lisp/net/tramp-adb.el (tramp-methods) : * lisp/net/tramp-smb.el (tramp-methods) : Remove `tramp-remote-shell' and `tramp-remote-shell-args'. * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch) (tramp-maybe-open-connection): Use proper read syntax for function names. * lisp/net/tramp.el (tramp-handle-shell-command): Do not use shell file names from `tramp-methods'. Respect `async-shell-command-buffer'. (Bug#24394, Bug#34172) Use `start-file-process-shell-command' and `process-file-shell-command'. * test/lisp/net/tramp-tests.el (tramp-test32-shell-command): Let it run partly for tramp-adb. 2019-03-22 Nicolas Petton Fix the error message when modifying maps in-place (Bug#34941) * lisp/emacs-lisp/map.el (map-not-inplace): Fix the message of the error. (map-put!): When signaling map-no-inplace error, output the map that cannot be updated inplace. 2019-03-22 Eli Zaretskii Minor fixes for the last change * lisp/simple.el (delete-indentation): * doc/emacs/indent.texi (Indentation Commands): * etc/NEWS: Fix last change. (Bug#34796) 2019-03-22 Łukasz Stelmach If the region is active, join all the lines it spans * lisp/simple.el (delete-indentation): Join lines in the active region. (Bug#34796) * doc/misc/org.texi: Describe the arguments of delete-indentation. * etc/NEWS: Mention region support in delete-indentation. 2019-03-22 Eli Zaretskii Revert "Revert "Revert "Rely on conservative stack scanning to find "emacs_value"s""" This reverts commit 093d3e78d21d3d6c718997368ef4b31f9884401c, which reverted ee7ad83f20903208404a84b58b7a478b62924570, which reverted 3eb93c07f7a60ac9ce8a16f10c3afd5a3a31243a. 2019-03-21 Federico Tedin Correctly handle packages without description in describe-package * lisp/emacs-lisp/package.el (describe-package-1): Do not call insert if package description is nil (Bug#34147). 2019-03-21 Federico Tedin Make edebug-eval-expression support code completion * lisp/emacs-lisp/edebug.el (edebug-eval-expression): Use read--expression instead of read-from-minibuffer. (Bug#34065) 2019-03-21 Stefan Monnier Fix misuses of NULL when talking about the NUL character * lisp/subr.el (inhibit-null-byte-detection): Make it an obsolete alias. * src/coding.c (setup_coding_system): Use new name. (detect_coding): Rename null_byte_found => nul_byte_found. (detect_coding_system): Use new name. Rename null_byte_found => nul_byte_found. (Fdefine_coding_system_internal): Use new name. (syms_of_coding): Rename inhibit-null-byte-detection to inhibit-nul-byte-detection. * src/w16select.c (get_clipboard_data): null_char => nul_char. * src/json.c (check_string_without_embedded_nuls): Rename from check_string_without_embedded_nulls. (Fjson_parse_string): Adjust accordingly. * src/coding.h (enum define_coding_undecided_arg_index) (enum coding_attr_index): ...null_byte... => ...nul_byte.... * lisp/info.el (info-insert-file-contents, Info-insert-dir): * lisp/international/mule.el (define-coding-system): * lisp/vc/vc-git.el (vc-git--call): * doc/lispref/nonascii.texi (Lisp and Coding Systems): Use the new name. 2019-03-21 Nicolas Petton * etc/NEWS: Document seq-contains-p. * lisp/emacs-lisp/seq.el (seq-difference): Inverse a conditional for clarity. 2019-03-21 Nicolas Petton New seq-contains-p predicate (Bug#34852) * lisp/emacs-lisp/seq.el (seq-contains-p): New predicate function. It is a replacement for seq-contains which cannot be used as a predicate when a sequence contains nil values as it returns the element found. (seq-contains): Make obsolete. * test/lisp/emacs-lisp/seq-tests.el (test-seq-contains-p): (test-seq-intersection-with-nil, test-seq-set-equal-p-with-nil, test-difference-with-nil): Add regression tests. * doc/lispref/sequences.texi (Sequence Functions): Document seq-contains-p. 2019-03-21 Eli Zaretskii Revert "Revert "Rely on conservative stack scanning to find "emacs_value"s"" This reverts commit ee7ad83f20903208404a84b58b7a478b62924570. There was no consensus on reverting 3eb93c07f7a60ac9ce8a16f10c3afd5a3a31243a, so doing that will have to wait until the discussion ends. 2019-03-21 Philipp Stephani Revert "Rely on conservative stack scanning to find "emacs_value"s" This reverts commit 3eb93c07f7a60ac9ce8a16f10c3afd5a3a31243a. There was no consensus for that commit, see https://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00150.html. Also, reverting this commit should fix Bug#31238. 2019-03-21 Eli Zaretskii Avoid duplicate entries in process-environment after re-dumping * src/pdumper.c (Fdump_emacs_portable): Reset process-environment to nil. (Bug#34936) 2019-03-21 Stefan Monnier * doc: Recommend putting '-' as last char in Emacs charset regexps * doc/lispref/searching.texi (Regexp Special): * doc/emacs/search.texi (Regexps): Recommend - as last char in [...]. 2019-03-20 Glenn Morris Merge from origin/emacs-26 24b6e6e (origin/emacs-26) * etc/AUTHORS: Update. 2f22a17 * ; ChangeLog.3 update 0f523de Improve indexing of the user manual bd5795e Fix url-copy-file arglist eaa188a ; * admin/notes/bugtracker: Minor additions and updates. 5ed05fb Fix downloading updates for packages with non-ASCII descriptions e9f2d1f * etc/NEWS: Remove temporary markers. 24fc133 * doc/misc/cc-mode.texi (Config Basics): in @itemize, @asis -... 0f325d1 Don't clobber 'comint-input-autoexpand' in 'read-shell-command' bc75589 Document restrictions when setting window margins, fringes or... cc4cebf More improvements for 'read-buffer's doc string d026d9a * lisp/progmodes/cc-defs.el: Update c-version to 5.33.2 for E... 5dbf08b * src/minibuf.c (Fread_buffer): Minor doc fixes. (Bug#34749) # Conflicts: # etc/NEWS # lisp/url/url-handlers.el 2019-03-20 Stefan Monnier Eshell: Mostly cosmetic changes to be more explicit about dynbind * lisp/eshell/em-dirs.el (eshell-dirs-initialize): Reveal the lambdas. (eshell-expand-multiple-dots): Fix ^+$ => \`+\' in the regexp. * lisp/eshell/esh-cmd.el (eshell-this-command-hook): Declare as dynamically scoped. (eshell-trap-errors): Use `mapc funcall` since this can't have global/local settings like a true hook. (eshell-do-eval): Split the `let` case from the rest so we can use `cl-progv` rather than `eval` for it. (eshell/which): Use `fboundp` test instead of ugly gymnastics to try and hide the function call from the compiler. * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Reveal the lambdas. (eshell-parse-variable-ref): Use backquotes. 2019-03-20 Stefan Monnier * lisp/pcomplete.el: Improve heuristic to rely less on c-t-subvert. (pcomplete-completions-at-point): Try and take \ escapes into account when guessing the beginning of the text we're completing. 2019-03-20 Paul Eggert Fix pcomplete typo in recent regex typo fix Problem reported by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00682.html * lisp/pcomplete.el (pcomplete-parse-comint-arguments): Restore the trailing backslash (but two of them this time). 2019-03-20 Stefan Monnier * test/lisp/minibuffer-tests.el (completion-table-subvert-test): New test * lisp/minibuffer.el (completion-table-subvert): Fix typo from rev 5697ca55cb 2019-03-20 Mattias Engdegård Repair eshell-query-kill-processes * lisp/eshell/esh-proc.el (eshell-query-kill-processes): Remove invalid `format-message' call; `eshell-round-robin-kill' wants just the format string. 2019-03-20 Eli Zaretskii Fix defining keyboard macros in CUA mode * lisp/emulation/cua-base.el (cua--prefix-override-replay): Push the key to replace wrapped in '(no-record . KEY)', so that it doesn't get recorded more than once. (Bug#34901) * src/keyboard.c (read_char): Handle the '(no-record . KEY)' event by substituting KEY for it. (syms_of_keyboard) : New DEFSYM. : Update the doc string. * doc/lispref/commands.texi (Event Input Misc): Document the '(no-record . EVENT)' form. 2019-03-19 Stefan Monnier * lisp/eshell/em-cmpl.el: Use completion-at-point i.s.o pcomplete (eshell-cmpl-initialize): Refrain from binding to the `tab` key, which prevents the tab -> TAB remapping. Use completion-at-point and completion-help-at-point. (eshell-complete-commands-list): Use `fboundp` test instead of ugly gymnastics to try and hide the function call from the compiler. (eshell-pcomplete): Make it an alias of completion-at-point. * doc/misc/eshell.texi (Completion): Change wording to reflect different default behavior. 2019-03-19 Paul Eggert More minor regex cleanup Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00643.html plus a few others that I noticed. * lisp/auth-source-pass.el (auth-source-pass--parse-data): * lisp/org/org-datetree.el (org-datetree--find-create): * lisp/org/org-pcomplete.el (org-thing-at-point): * lisp/progmodes/js.el (js--end-of-do-while-loop-p): * lisp/textmodes/sgml-mode.el: (sgml-electric-tag-pair-before-change-function): * lisp/textmodes/texnfo-upd.el (texinfo-menu-copy-old-description): * lisp/url/url-http.el (url-http-parse-response): Fix regular expression and similar syntax. 2019-03-19 Juri Linkov * lisp/vc/vc.el (vc-diff-build-argument-list-internal): Add arg fileset. (vc-root-version-diff): Set vc-diff-build-argument-list-internal's optional arg 'fileset' to the root directory. (Bug#34532) 2019-03-19 Juri Linkov * lisp/frame.el (frame-monitor-attributes): Fall back to the last monitor when frames monitor attributes is still uninitialized. (Bug#34680) 2019-03-19 Juri Linkov * lisp/frame.el (make-frame-on-monitor): Don't set height and width. Don't use x-parse-geometry. Delete nil from completions (Bug#34516) 2019-03-19 Paul Eggert Use ‘const’ to clarify GC marking Add ‘const’ to make the GC marking code a bit clearer. This can also help the compiler in some cases, I think because GCC can now determine more often that the value of a static C variable can be cached when its address is now converted to ‘Lisp Object const *’ before escaping. * src/alloc.c (staticvec, mark_maybe_objects, mark_memory) (mark_stack, staticpro, mark_object_root_visitor) (garbage_collect_1): * src/pdumper.c (dump_ptr_referrer, dump_emacs_reloc_to_lv) (dump_emacs_reloc_to_emacs_ptr_raw, dump_root_visitor): * src/lisp.h (vcopy, struct gc_root_visitor): * src/sysdep.c (stack_overflow): * src/thread.c (mark_one_thread): * src/thread.h (struct thread_state): Use pointer-to-const instead of plain pointer in some GC-related places where either will do. 2019-03-19 Mattias Engdegård Disallow reversed char ranges in `rx' (any "a-Z0-9") generated "[0-9]", and (any (?9 . ?0)) generated "[9-0]". Reversed ranges are either mistakes or abuse. Neither should be allowed. etc/NEWS: Explain the change. lisp/emacs-lisp/rx.el (rx): Document. (rx-check-any-string, rx-check-any): Add error checks for reversed ranges. test/lisp/emacs-lisp/rx-tests.el (rx-char-any-range-bad): New test. 2019-03-18 Paul Eggert Remove buggy regexp use in comint-output-filter This reverts commit 2012-07-02T16:18:02!monnier@iro.umontreal.ca which perhaps could be rethought and recommitted, and perhaps it’s no longer needed now that comint-use-prompt-regexp is almost always nil. * lisp/comint.el (comint-output-filter): Don’t try to skip repeated prompts, since comint-prompt-regexp typically begins with "^" and the resulting "^^" in the regular expression does not have the desired effect. Noted by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00380.html 2019-03-18 Paul Eggert Fix more regular expression typos Problem reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00548.html except that I didn’t address the issues involving Hebrew, or involving comint-prompt-regexp. * lisp/align.el (align-rules-list, align-exclude-rules-list): * lisp/auth-source-pass.el (auth-source-pass--parse-secret) (auth-source-pass--parse-data): * lisp/cedet/data-debug.el (data-debug-next) (data-debug-prev, data-debug-expand-or-contract): * lisp/comint.el (comint-within-quotes): * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): * lisp/emulation/viper-ex.el (ex-cmd-complete): * lisp/gnus/gnus-cite.el (gnus-message-search-citation-line): * lisp/gnus/nnir.el (nnir-imap-end-of-input): * lisp/mail/mail-extr.el (mail-extr-all-letters): * lisp/minibuffer.el (minibuffer-maybe-quote-filename): * lisp/nxml/rng-nxml.el (rng-complete-tag) (rng-complete-end-tag, rng-complete-attribute-name): * lisp/obsolete/vip.el (vip-get-ex-token, vip-get-ex-pat): * lisp/org/org-pcomplete.el (org-thing-at-point): * lisp/org/org.el (org-set-tags) (org-increase-number-at-point) (org-fill-line-break-nobreak-p): * lisp/pcomplete.el (pcomplete-parse-comint-arguments): * lisp/progmodes/ada-mode.el (ada-compile-goto-error): * lisp/progmodes/cperl-mode.el (cperl-highlight-charclass) (cperl-find-pods-heres, cperl-not-bad-style-regexp) (cperl-regext-to-level-start): * lisp/progmodes/ebnf-yac.el (ebnf-yac-skip-spaces): * lisp/progmodes/flymake-proc.el (flymake-proc-master-tex-init): * lisp/progmodes/flymake.el (flymake-diag-region): * lisp/progmodes/fortran.el (fortran-current-line-indentation): * lisp/progmodes/idlw-complete-structtag.el: (idlwave-complete-structure-tag): * lisp/progmodes/idlwave.el (idlwave-complete-sysvar-or-tag): * lisp/progmodes/prolog.el (prolog-pred-end) (prolog-clause-info): * lisp/progmodes/ruby-mode.el (ruby-forward-sexp) (ruby-backward-sexp): * lisp/progmodes/verilog-mode.el (verilog-repair-open-comma): * lisp/term.el (term-within-quotes): * lisp/textmodes/bib-mode.el (bib-capitalize-title-stop-words): * lisp/textmodes/refbib.el (r2b-capitalize-title-stop-words): * lisp/textmodes/reftex-parse.el (reftex-nth-arg): * lisp/textmodes/rst.el (rst-svn-rev): * lisp/url/url-http.el (url-http-parse-response): * test/lisp/progmodes/f90-tests.el (f90-test-bug3730): Fix regular expression typos. 2019-03-18 Stefan Monnier * src/fileio.c: Don't convert \r to \n just because of C-x $ (choose_write_coding_system): Setup the \r to \n conversion only if selective-display is t. 2019-03-18 Stefan Monnier * lisp/locate.el (locate-mode): Setup invisibility for Dired commands Also, use lexical-binding. 2019-03-18 Stefan Monnier Ebrowse: Use invisibility-spec instead of selective-display * lisp/progmodes/ebrowse.el: Use lexical-binding. (ebrowse-tree-mode): Set invisibility-spec instead of selective-display. (ebrowse--hidden-p, ebrowse--hide, ebrowse--unhide): New functions. (ebrowse-expand-all, ebrowse-unhide-base-classes, ebrowse-hide-line) (ebrowse-mouse-1-in-tree-buffer): Use them. (ebrowse-output): Remove macro, use with-silent-modifications instead. (ebrowse-save-selective): Remove macro, not needed any more. (ebrowse-trim-string, ebrowse-read, ebrowse-collapse-fn): No need to pay attention to \r. (ebrowse-files-list): Use push. (ebrowse-view/find-file-and-search-pattern): Use add-hook here... (ebrowse-find-pattern): ...and remove-hook here. (ebrowse-view/find-position): Use add/remove-hook. 2019-03-17 Stefan Monnier Dired: Use invisibility-spec instead of selective-display * lisp/dired.el (dired-subdir-regexp): No need to pay attention to \r. (dired-remember-hidden): Use pcase-dolist and dired--hidden-p. (dired-mode): Set invisibility-spec instead of selective-display. (dired--hidden-p, dired--hide, dired--unhide, dired--find-hidden-pos): New functions. (dired-move-to-end-of-filename): Use dired--hidden-p. (dired-next-subdir): No need to pay attention to \r. (dired-fun-in-all-buffers): Use push. * lisp/dired-aux.el (dired-unhide-subdir, dired-hide-subdir, dired-hide-all): Use the new functions and with-silent-modifications. (dired-add-entry): Use dired--hidden-p. (dired-goto-subdir): No need to pay attention to \r. (dired-hide-check): Remove. (dired-subdir-hidden-p): Use dired--hidden-p. (dired-do-find-regexp): Use file-name-as-directory. 2019-03-17 Stefan Monnier * doc/lispref/display.texi (Selective Display): Declare it deprecated 2019-03-17 Eli Zaretskii Fix 'define-charset' after dumping with pdumper * src/charset.h: * src/charset.c (charset_table_used): Now static. (charset_table_size): Now extern. * src/pdumper.c (dump_charset_table): Dump the entire charset_table, not just its used slots. (Bug#34826) 2019-03-16 Stefan Monnier * lisp/subr.el (combine-change-calls-1): Don't combine syntax-ppss flushes 2019-03-16 Alexander Gramiak Define macros to abstract support for external menu/tool-bars * src/lisp.h (HAVE_EXT_MENU_BAR) (HAVE_EXT_TOOL_BAR): Define. *src/dispnew.c: *src/frame.c: *src/frame.h: *src/keyboard.c: *src/menu.c: *src/menu.h: *src/window.c: *src/window.h: *src/xdisp.c: *src/xfns: Use the new macros. 2019-03-16 Paul Eggert Fix regexp typo in vc-git--program-version * lisp/vc/vc-git.el (vc-git--program-version): Require a period after ".windows", instead of allowing any char. 2019-03-16 Mattias Engdegård Fix some ineffective backslashes in string literals Deal with lone backslashes that have no effect in string literals, but indicate that something is amiss. * lisp/auth-source-pass.el (auth-source-pass-entries): * lisp/textmodes/artist.el (artist-figlet-get-font-list-windows): * lisp/org/ob-abc.el (org-babel-expand-body:abc, org-babel-execute:abc): * lisp/org/ob-forth.el (org-babel-forth-session-execute): * lisp/vc/vc-git.el (vc-git--program-version): Add backslash in regexp for correctness. * lisp/gnus/nnmail.el (nnmail-split-abbrev-alist): Replace `\||' with `\\|' to follow the obvious regexp intent. * lisp/org/org-list.el (org-plain-list-ordered-item-terminator): Add backslash in doc comment so that it appears as intended. * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1, c-end-of-decl-1): * lisp/progmodes/f90.el (f90-font-lock-keywords-2): * lisp/progmodes/etags.el (etags-tags-completion-table): * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-1): Remove superfluous backslashes from regexp. * test/lisp/emacs-lisp/rx-tests.el (rx-char-any): Remove superfluous backslash from doc comment. 2019-03-16 Eli Zaretskii Improve locale and language environment setting at startup * lisp/international/mule-cmds.el (locale-language-names): Add more locales and their language environments. (set-locale-environment): Use w32-multibyte-code-page, if non-zero, as locale-coding-system. (Bug#34684) * src/w32fns.c (globals_of_w32fns) : New variable. * etc/NEWS: Mention w32-multibyte-code-page. 2019-03-15 Paul Eggert Bring back Emacs 26 compatibility to flymake.el * lisp/progmodes/flymake.el (flymake--schedule-timer-maybe): Revert to using seconds-to-time, since this file is part of ELPA and needs to work on Emacs 26 too. 2019-03-15 Paul Eggert Use bool for menu_items_inuse * src/menu.c (menu_items_inuse): Now bool, instead of a Lisp_Object that is always Qt or Qnil. All uses changed. 2019-03-15 Philippe Vaucher Customize tabulated-list sort indicators This allows the user to customize the sorting indicators displayed near the current column. * lisp/emacs-lisp/tabulated-list.el (tabulated-list): New group. (tabulated-list-gui-sort-indicator-asc) (tabulated-list-gui-sort-indicator-desc) (tabulated-list-tty-sort-indicator-asc) (tabulated-list-tty-sort-indicator-desc): New defcustomd. (tabulated-list-glyphless-char-display): Remove. (tabulated-list-make-glyphless-char-display-table): New function. * doc/lispref/modes.texi (Tabulated List Mode): Add documentation for new options. * etc/NEWS: Mention the new options. 2019-03-15 Eli Zaretskii * etc/NEWS: Document Sami input methods. (Bug#34866) 2019-03-15 Wojciech Gac Add notice and fix missing character Add remaining Sami input methods Add Skolt Sami and Inari Sami input methods 2019-03-13 Stefan Monnier * lisp/doc-view.el (doc-view--text-view-mode): Derive from text-mode. 2019-03-13 Basil L. Contovounesios Fix file attribute accessor typo in Elisp manual This was introduced in 662bee7d70ccd3903e123b08c7ec9108a1a2ce0b 2018-09-24T01:30:46Z!eggert@cs.ucla.edu. * doc/lispref/files.texi (File Attributes): Fix typo referring to wrong file attribute accessor. 2019-03-13 Glenn Morris * test/lisp/progmodes/python-tests.el (python-syntax-after-python-backspace): Expect failure again. 2019-03-13 Stefan Monnier * lisp/emacs-lisp/easy-mmode.el: Fix most obvious bug#34723 (easy-mmode-define-navigation): Don't scroll in the opposite direction of the movement. 2019-03-13 Stefan Monnier * lisp/mail/hashcash.el (hashcash-insert-payment-async): Fix last change 2019-03-13 Stefan Monnier * lisp/progmodes/python.el (python-rx-constituents): Fix ordering in `or` The previous code worked earlier because of a bug in `rx` (which used `regexp-opt` without passing it to `keep-order` argument), but now that `rx` has been fixed the underlying bug here reared its ugly head. 2019-03-13 Eli Zaretskii Avoid gratuitous errors in 'url-retrieve-synchronously' * lisp/url/url-http.el (url-http-debug): * lisp/url/url-util.el (url-debug): Don't signal an error if quit-flag is non-nil, but not t. This could happen because some unrelated code is running inside while-no-input. (Bug#34763) 2019-03-13 Stefan Monnier * lisp/battery.el (battery-bsd-apm): Group indices together; use pcase 2019-03-13 Ahmed Khanzada (tiny change) * lisp/battery.el (battery-bsd-apm): Make it work on FreeBSD Use flag "t" to get remaining time, and adjust to different output order. 2019-03-12 Christopher Wellons (tiny change) * lisp/mail/hashcash.el: Get rid of backquoted lambdas (hashcash-generate-payment-async): η-reduce. (hashcash-insert-payment-async): Use proper closure. 2019-03-12 Michael Albinus * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): Use proper range when deleting the region. 2019-03-12 Alan Mackenzie Correct the indentation of CC Mode brace lists while preserving the indentation of nested C++ uniform initialization. * lisp/progmodes/cc-align.el (c-lineup-2nd-brace-entry-in-arglist) (c-lineup-class-decl-init-+, c-lineup-class-decl-init-after-brace): New indentation functions. * lisp/progmodes/cc-engine.el (c-forward-class-decl): New function. (c-do-declarators): New function, partially extracted from c-font-lock-declarators, which now calls the new function. (c-inside-bracelist-p): Amend the introductory comment. (c-add-stmt-syntax): Add code to prevent the spurious recognition of a 'defun-block-intro when a brace pair is used as an initializer. (c-evaluate-offset): No longer ignore vectors of length >= 2. (c-calc-offset): Refactor clumsily nested `if'/`or' into a cond form. * lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Replace the bulk of this function by a call to the new c-forward-class-decl. * lisp/progmodes/cc-langs.el (c-type-decl-prefix-key): Recognize "~" as a type decl operator. * lisp/progmodes/cc-mode.el (c-fl-decl-start): While searching backward for a "}" at an EOD, deal with actually finding the end of a brace list. * doc/misc/cc-mode.texi (List Line-Up): document c-lineup-2nd-brace-entry-in-arglist, c-lineup-class-decl-init-+, and c-lineup-class-decl-init-after-brace. * lisp/progmodes/cc-styles.el (c-style-alist): In styles "gnu", "bsd", "stroustrup", "python", and "java", change the offset for brace-list-intro from the default value or c-lineup-arglist-intro-after-paren to a list beginning with the symbol first, followed by two of the new alignment functions, followed by +. * lisp/progmodes/cc-vars.el (c-offset-alist): Change the default value of brace-list-entry from c-lineup-under-anchor back to 0. 2019-03-12 Martin Rudalics Revert last tweak in 'comint-output-filter' * lisp/comint.el (comint-output-filter): Revert last tweak because it can hang gdb indefinitely. 2019-03-11 Paul Eggert Reindent pdumper per usual Emacs style * src/pdumper.c, src/pdumper.h: Reindent. 2019-03-11 Eli Zaretskii Fix show-trailing-whitespace in R2L text * src/xdisp.c (highlight_trailing_whitespace): Allow for stretch glyphs at the left edge of R2L lines, when skipping glyphs inserted by the display engine. This unbreaks show-trailing-whitespace in R2L lines. 2019-03-11 Paul Eggert Fix a small pdumper memory leak * src/pdumper.c (dump_mmap_reset): Free the private area here ... (dump_mm_heap_cb_release): ... instead of here. (dump_mmap_release_heap): Simplify by avoiding a local. (dump_mmap_contiguous): Reindent GNU style. 2019-03-11 Martin Rudalics Rewrite minibuffer window resizing code * src/frame.c (resize_mini_frames): New variable. * src/window.c (resize_mini_window_apply): New function. (grow_mini_window, shrink_mini_window): Remove PIXELWISE argument. Call resize_mini_window_apply to apply changes. (Fresize_mini_window_internal): Call resize_mini_window_apply to apply changes. (Qwindow__resize_mini_frame): New symbol. * src/window.h (grow_mini_window, shrink_mini_window): Adjust external declarations. * src/xdisp.c (resize_mini_window): For minibuffer-only frames call 'window--resize-mini-frame' if resize_mini_frames is non-nil. Offload parts of logic to grow_mini_window and shrink_mini_window which are now called without the PIXELWISE argument. (Vresize_mini_windows): Mention 'resize-mini-frames' in doc-string. * lisp/cus-start.el (resize-mini-frames): Add customization support. * lisp/window.el (window--resize-mini-window): Simplify code. (window--resize-mini-frame): New function. * doc/lispref/minibuf.texi (Minibuffer Windows): Describe new option 'resize-mini-frames'. * etc/NEWS: Mention new option 'resize-mini-frames'. 2019-03-10 Paul Eggert * src/editfns.c: Fix docstring typo. 2019-03-10 Paul Eggert Improve binary-as-unsigned treatment (Bug#34792) * etc/NEWS: * src/editfns.c (Fformat, binary_as_unsigned): Update now that we always have bignums. (syms_of_editfns) [!defined lisp_h_FIXNUMP]: Remove now-obsolete code, since lisp_h_FIXNUMP is always defined now. * test/src/editfns-tests.el (read-large-integer): Simplify, now that we can assume binary-as-unsigned defaults to nil. 2019-03-10 Paul Eggert More regexp corrections and tweaks Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00247.html * lisp/align.el (align-rules-list): * lisp/comint.el (comint-output-filter): * lisp/language/china-util.el (encode-hz-region): * lisp/progmodes/cperl-mode.el (cperl-indent-exp): * lisp/progmodes/idlwave.el (idlwave-is-pointer-dereference): * lisp/progmodes/scheme.el (dsssl-font-lock-keywords): * lisp/textmodes/texinfmt.el (texinfo-accent-commands): * test/src/regex-emacs-tests.el (regex-tests-re-even-escapes): Fix some regular-expression typos. 2019-03-10 Paul Eggert Update from Gnulib This incorporates: 2019-03-10 alloca-opt: Fix conflict mingw's new file 2019-03-03 getloadavg: Write NULL for the null pointer Reported by Michal Privoznik . * lib/getloadavg.c (getloadavg): Write NULL instead of 0. * build-aux/config.guess, build-aux/move-if-change: * doc/misc/texinfo.tex, lib/alloca.in.h, lib/getloadavg.c: * m4/alloca.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2019-03-10 Dmitry Gutov (ruby-add-log-current-method): Recognize methods ending with ? or ! * lisp/progmodes/ruby-mode.el (ruby-add-log-current-method): Recognize method names ending with ? or !. 2019-03-10 Dmitry Gutov project--find-regexp-in-files: Use 'grep -E' * lisp/progmodes/project.el (project--find-regexp-in-files): Use 'grep -E' because we convert the regexp to extended already. 2019-03-10 Michael Albinus Changes in Tramp adb process handling * lisp/net/tramp-adb.el (tramp-methods) : Add `tramp-remote-shell' and `tramp-remote-shell-args'. (tramp-adb-file-name-handler-alist): Use `tramp-handle-shell-command' rather than `tramp-adb-handle-shell-command'. (tramp-adb-handle-shell-command): Remove. (tramp-adb-handle-make-process): Use a proper prompt. (tramp-adb-wait-for-output): Simplify. 2019-03-10 Ken Brown Use a runtime test for timerfd on Cygwin (Bug#34618) * src/atimer.c [HAVE_TIMERFD] (have_buggy_timerfd): New function. (init_atimer) Use it. 2019-03-09 Stefan Monnier * lisp/speedbar.el: Minor tweaks (speedbar-directory-buttons-follow): Use file-name-as-directory. (speedbar-ignored-directory-expressions) (speedbar-supported-extension-expressions): Use `sym` in the setter. (speedbar-frame-mode): Use with-current-buffer. (speedbar-item-info-tag-helper): Use 'cond'. (speedbar-highlight-one-tag-line): Don't use position beyond EOB. 2019-03-09 Tassilo Horn Make doc-view work with text-mode as default major-mode (bug#34451) * lisp/doc-view.el (doc-view--text-view-mode): New alias for view-mode. (doc-view-open-text): Use it. (doc-view-toggle-display): Use it. 2019-03-09 Christopher Wellons (tiny change) * lisp/emulation/viper.el: Use user-error for "Viper bell" * lisp/emulation/viper-init.el (viper-ViperBell): New constant. * lisp/emulation/viper-cmd.el (viper-prefix-arg-com) (viper-forward-char, viper-backward-char, viper-goto-col) (viper-find-char, viper-paren-match, viper-put-back, viper-Put-back) (viper-delete-char, viper-mark-point, viper-goto-mark-subr): * lisp/emulation/viper-ex.el (ex-delete): Use it and `user-error`. 2019-03-09 Tassilo Horn Name buffer according to attachment filename (bug#34478). * lisp/gnus/mm-decode.el (mm-display-external): Name buffer showing the attachment according to the attachment's filename, i.e. "*mm* " instead of " *mm*12345". 2019-03-09 Ken Brown Re-enable the timerfd interface on Cygwin * configure.ac (emacs_cv_have_timerfd): No longer set this to "no" on Cygwin. (Bug#34618) 2019-03-09 Ivan Andrus Mention `binary-as-unsigned' in `format' docstring (Bug#34792) * src/editfns.c (format): Update docstring to mention binary-as-unsigned (Bug#34792) 2019-03-09 Glenn Morris Merge from origin/emacs-26 0589de5 (origin/emacs-26) Fix markup of fake keys in the ELisp manual 82d4b98 Avoid errors in Auto Revert mode a3b1935 Mention empty strings in file name expansion, emacs lisp refe... a38da0d cc-mode.texi: Work around makeinfo alignment bug. Fix proble... 464ee80 Warn against recursive invocations of 'buffer-list-update-hoo... 60b5c10 Provide more details in doc-string of 'delete-windows-on' (Bu... f0be0f1 Improve documentation of 'delete-windows-on' f1bddc7 * lisp/frame.el (make-frame-command): Doc fix. (Bug#34715) 2848623 Avoid undefined behavior in gdb-mi.el dbf1837 * lisp/window.el (fit-frame-to-buffer): Make doc-string more ... 099ef44 Minor spelling and grammar fixes (bug#34756) 52fd400 Minor improvement of documentation of '(when CONDITION . SPEC)' f872b65 Improve documentation of 'auto-coding-functions' 04cad5e Fix visiting XML files with non-Unix EOL format a89fabe Update example major mode code in Elisp manual # Conflicts: # lisp/autorevert.el # lisp/window.el 2019-03-09 Eli Zaretskii Consult 'face-remapping-alist' for 'internal-border' face * src/xterm.c (x_clear_under_internal_border) (x_after_update_window_line): * src/w32fns.c (x_clear_under_internal_border): * src/w32term.c (x_after_update_window_line): Consult 'face-remapping-alist' when using the 'internal-border' face. 2019-03-09 Alan Mackenzie CC Mode: Correct some incorrect regular expressions: * lisp/progmodes/cc-awk.el (c-awk-regexp-char-list-re): "^" -> "\\^". R*x?R* -> \(R*x\)?R*. * lisp/progmodes/cc-mode.el (c-after-change-re-mark-unbalanced-strings): "|" -> "\\|". 2019-03-09 Michael Albinus Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 * doc/emacs/custom.texi (Connection Variables): New node. * doc/emacs/emacs.texi (Top): Add entry for Connection Variables. * doc/emacs/misc.texi (Single Shell): Mention default value for remote buffers. * doc/lispref/variables.texi (Connection Local Variables): Describe `with-connection-local-variables' instead of `with-connection-local-profiles'. * doc/misc/tramp.texi (Remote processes): Refer to Emacs manual. Mention default connection-local settings for `shell-file-name' and `shell-command-switch'. * etc/NEWS: Mention connection-local variables changes. * lisp/files-x.el (hack-connection-local-variables): Push connection-local variables to `file-local-variables-alist'. (connection-local-criteria-for-default-directory): New defsubst. (with-connection-local-variables): Rename from `with-connection-local-profiles'. Adapt implementation. * lisp/files.el (hack-local-variables): Call `hack-connection-local-variables'. * lisp/shell.el (shell): Use `with-connection-local-variables'. * lisp/subr.el (start-file-process-shell-command): * lisp/progmodes/compile.el (compilation-start): Use `with-connection-local-variables'. Do not set "/bin/sh" for remote buffers, trust settings of `shell-file-name'. (Bug#24338), (Bug#29723) * lisp/net/ange-ftp.el (ange-ftp-compress, ange-ftp-uncompress): Use `shell-command-switch'. * lisp/net/tramp-adb.el (tramp-adb-connection-local-default-profile): New defvar. Add it to connection-local profiles after loading "shell". * lisp/net/tramp-integration.el (tramp-compat): Require tramp-compat. (tramp-compat-exec-path): Do not declare anymore. (tramp-connection-local-safe-shell-file-names): New defvar. (tramp-connection-local-default-profile): New defconst. Activate it after loading "shell". (shell-file-name, shell-command-switch): Add safe-local-variable property. * lisp/net/tramp-sh.el (tramp-display-escape-sequence-regexp): Add tramp-autoload cookie. * test/lisp/files-x-tests.el (remote-shell-file-name): Add safe-local-variable property to remote-* variables. (tramp-connection-local-default-profile): Declare. (files-x-test-with-connection-local-variables): Rename from `files-x-test-with-connection-local-profiles'. Adapt implementation. * test/lisp/net/tramp-tests.el (tramp-test34-connection-local-variables): New test. (tramp-test34-explicit-shell-file-name): Run it also for tramp-adb. Bind connection-local-{profile,criteria}-alist. Use tramp-adb specific `shell-file-name'. Add safe-local-variable property to `explicit-shell-file-name' and `explicit-sh-args'. 2019-03-09 Charles A. Roelli Make help for file supersession more readable * lisp/userlock.el (ask-user-about-supersession-help): Use 'substitute-command-keys' to show the command key for "\\[revert-buffer]" properly. 2019-03-09 Eli Zaretskii Import Unicode 12.0 data files * admin/unidata/copyright.html: * admin/unidata/UnicodeData.txt: * admin/unidata/SpecialCasing.txt: * admin/unidata/NormalizationTest.txt: * admin/unidata/Blocks.txt: * admin/unidata/BidiMirroring.txt: * admin/unidata/BidiBrackets.txt: New versions from Unicode 12.0. * admin/unidata/unidata-gen.el (unidata-gen-file): * admin/unidata/blocks.awk (name2alias): Adapt to changes in new data files. * admin/notes/unicode: Update and improve instructions for importing a new Unicode Standard. * lisp/international/characters.el (char-width-table): Update lists of characters according to Unicode 12.0. * lisp/international/fontset.el (script-representative-chars): Add characters from new scripts to 'script-representative-chars'. (otf-script-alist): Update according to data on the MS site. * lisp/international/mule-cmds.el (ucs-names): Update unused ranges of codepoints according to Unicode 12.0. * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-tests--failing-lines-part1) (ucs-normalize-tests--failing-lines-part2): Update for the new NormalizationTest.txt file. * test/manual/BidiCharacterTest.txt: Update with the new version from Unicode 12.0. 2019-03-09 Martin Rudalics Further redesign of window change functions * doc/lispref/windows.texi (Window Hooks): Revise description of window change functions. Add documentation for 'window-state-change-hook' and window state change flag. * etc/NEWS: Update entry for window change functions. * src/frame.c (Fframe_window_state_change) (Fset_frame_window_state_change): New functions. * src/frame.h (struct frame): New boolean window_state_change. (FRAME_WINDOW_STATE_CHANGE): New macro. * src/window.c (window_change_record_frames): New static boolean. (window_change_record_frame): Remove function - code moved to window_change_record. (window_change_record): Record frame changes here taking window_change_record_frames into account. (run_window_change_functions_1): Set window_change_record_frames whenever we run one of our hooks. (run_window_change_functions): Run hooks also when FRAME_WINDOW_STATE_CHANGE has been set. Run Vwindow_state_change_hook. Leave decision whether to record changes for all frames to window_change_record. (Vwindow_state_change_functions): Update doc-string. (Vwindow_state_change_hook): New normal hook. 2019-03-09 Alan Third Don't redraw the glyph on top of bar cursors * src/nsterm.m (ns_draw_window_cursor): Limit when we redraw the glyph. 2019-03-08 Stefan Monnier * lisp/emacs-lisp/autoload.el (make-autoload): Don't add useless doc More specifically, don't add a useless '(fn)' to the docstring for functions which take no arguments. This should fix the 'No docstring slot for pcase--make-docstring' warning during bootstrap. 2019-03-08 Stefan Monnier * lisp/emacs-lisp/cursor-sensor.el: Fix sensor behavior with overlays (cursor-sensor--detect): Also consult overlay properties when checking to see if we just moved inside the same "element" as opposed to changing from one to another of the same type. 2019-03-08 Tassilo Horn New command ido-switch-to-completions. * lisp/ido.el (ido-switch-to-completions): New command. 2019-03-08 Paul Eggert More regexp corrections and tweaks From suggestions by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00131.html * lisp/arc-mode.el (archive-rar-summarize): * lisp/gnus/gnus-art.el (gnus-button-valid-localpart-regexp): * lisp/language/ethio-util.el (ethio-fidel-to-tex-buffer): * lisp/nxml/rng-uri.el (rng-file-name-uri): * lisp/org/org-mobile.el (org-mobile-apply): * lisp/progmodes/cperl-mode.el (cperl-init-faces): * lisp/progmodes/fortran.el (fortran-fill): * lisp/progmodes/mantemp.el (mantemp-remove-comments) (mantemp-remove-memfuncs, mantemp-insert-cxx-syntax): * lisp/speedbar.el (speedbar-directory-buttons-follow): * lisp/vc/add-log.el (change-log-font-lock-keywords): Fix more regular expressions that seem to be typos or infelicities. 2019-03-08 Mark Diekhans (tiny change) Improve ispell.el diagnostics if Hunspell dictionaries aren't found * lisp/textmodes/ispell.el (ispell-set-spellchecker-params): Set ispell-last-program-name only at the end, so as to produce useful diagnostics when Hunspell dictionaries are not found. (Bug#34640) 2019-03-07 Paul Eggert * lisp/net/rcirc.el: Undo previous change; it was a typo. 2019-03-07 Paul Eggert Be safer about "%" in message formats * lisp/calc/calc-store.el (calc-copy-special-constant): * lisp/net/rcirc.el (rcirc-handler-PART, rcirc-handler-KICK): * lisp/org/org-agenda.el (org-agenda): * lisp/org/org-clock.el (org-clock-out, org-clock-display): * lisp/org/org.el (org-refile): * lisp/progmodes/ada-xref.el (ada-goto-declaration): * lisp/progmodes/idlwave.el (idlwave-scan-library-catalogs): Don’t trust arbitrary strings to not contain "%" or "`" in (message (concat STRING1 STRING2 ...)). 2019-03-06 Mattias Engdegård Rename regexp-opt argument noreorder to keep-order * doc/lispref/searching.texi (Regular Expression Functions): * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Rename newly added `noreorder' argument to `keep-order', to avoid a negative in the name. Suggested by Phil Sainty (Bug#34641). 2019-03-06 Eli Zaretskii Fix OBJECT binding in conditional display specs * src/xdisp.c (compute_display_string_pos): Pass OBJECT1, not OBJECT to handle_display_spec, as the latter doesn't expect a window object. (Bug#34771) 2019-03-06 Paul Eggert Fix typo in fix for Bug#33498 * src/frame.c (delete_frame): Fix typo in previous patch, which caused GCC to complain about the use of an uninitialized variable. 2019-03-06 Michael Albinus Handle empty strings in Tramp's expand-file-name implementations * lisp/net/tramp.el (tramp-handle-expand-file-name): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name): * lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name): * lisp/net/tramp-smb.el (tramp-smb-handle-expand-file-name): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-expand-file-name): Handle empty NAME. * test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax) (tramp-test01-file-name-syntax-simplified) (tramp-test01-file-name-syntax-separate): Use neutral IPv4 address. (tramp-test05-expand-file-name): Check also "." and "". 2019-03-06 Martin Rudalics * lisp/window.el (fit-frame-to-buffer): Make doc-string more accurate. 2019-03-06 Martin Rudalics In unwind_with_echo_area_buffer use set_marker_restricted_both * src/xdisp.c (unwind_with_echo_area_buffer): Use set_marker_restricted_both instead of set_marker_both to avoid spurious assertion failures. 2019-03-06 Martin Rudalics Fix handling of 'window-combination-resize' with fixed-size windows * lisp/window.el (window-combinations): New optional argument IGNORE-FIXED. (window--combination-resizable): New function. (split-window): Fix handling of 'window-combination-resize' in the presence of fixed-size windows. 2019-03-06 Martin Rudalics Fix initialization of Vwindow_state_change_functions * src/window.c (Vwindow_state_change_functions): Initialize the right variable. 2019-03-05 Glenn Morris * doc/misc/gnus-coding.texi: Remove no longer relevant sections. * doc/misc/gnus.texi (New Features): Refer to NEWS for newer items. 2019-03-05 Glenn Morris Remove doc/misc/gnus-news.texi * doc/misc/gnus.texi (No Gnus): Merge in gnus-news.texi. * doc/misc/gnus-news.texi: Remove. 2019-03-05 Glenn Morris Remove etc/GNUS-NEWS (bug#34662) It is not relevant since Gnus stopped being distributed separately. * etc/GNUS-NEWS: Remove this generated file. * etc/NEWS.26: Relocate an entry mistakenly added to GNUS-NEWS. * doc/misc/gnus-coding.texi (Gnus Maintenance Guide): No longer mention GNUS-NEWS. * doc/misc/gnus-news.el: Remove. * doc/misc/gnus-news.texi: Update a comment. * lisp/Makefile.in (update-gnus-news): Remove this phony target. 2019-03-05 Glenn Morris Remove gnus-overrides.texi * doc/misc/gnus-overrides.texi: Remove. * doc/misc/auth.texi, doc/misc/emacs-mime.texi: * doc/misc/gnus.texi, doc/misc/message.texi, doc/misc/pgg.texi: * doc/misc/sasl.texi, doc/misc/sieve.texi: Do not include gnus-overrides.texi. 2019-03-05 Wilson Snyder Fix regexp issues introduced in last trunk commit. * lisp/progmodes/verilog-mode.el (verilog-coverpoint-re): Fix regexp issues introduced in last trunk commit. 2019-03-05 Eli Zaretskii Remove unreliable assertion in buf_bytepos_to_charpos * src/marker.c (buf_bytepos_to_charpos): Remove the assertion regarding bytepos always at the head byte of a multibyte sequence. For the reasons, see http://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00100.html http://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00102.html 2019-03-05 Wilson Snyder Fix regular-expression glitches and typos. Update verilog-mode from upstream. * lisp/progmodes/verilog-mode.el (verilog-read-decls): Fix AUTO vectors with double brackets, msg2839. (verilog-read-auto-template-middle): Fix AUTO_TEMPLATE with regexp capture group reference, but1379. Reported by David Rogoff. 2019-03-05 Martin Rudalics Fix interactive spec of some functions in window.el (Bug#34749) * lisp/window.el (delete-windows-on, quit-windows-on) (display-buffer-other-frame): Interactively, permit existing buffers only (Bug#34749). 2019-03-05 Martin Rudalics Fix handling of minibuffer-only child frames (Bug#33498) * doc/lispref/frames.texi (Buffer Parameters): Describe how to make a minibuffer-only child frame. (Child Frames): Describe how minbuffer child frames are deleted. * src/frame.c (delete_frame): Handle deletion of minibuffer child frames (Bug#33498). In the course, fix reassigning of 'default-minibuffer-frame' with minibuffer-only frames. * lisp/frame.el (frame-notice-user-settings): Handle creation of initial minibuffer-only child frame. (make-frame): Handle creation of frame with a minibuffer-only child frame. 2019-03-05 Michael Albinus Test an IPv4 mapped IPv6 address in Tramp * test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax) (tramp-test01-file-name-syntax-simplified) (tramp-test01-file-name-syntax-separate): Check also an IPv4 mapped IPv6 address. 2019-03-04 Paul Eggert Fix regular-expression glitches and typos Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00085.html * admin/admin.el (set-version): * lisp/allout.el (allout-latexify-one-item): * lisp/arc-mode.el (archive-arc-rename-entry) (archive-rar-summarize): * lisp/calc/calc-graph.el (calc-graph-set-styles) (calc-graph-hide): * lisp/calc/calc-help.el (calc-describe-key): * lisp/calc/calc-lang.el (math-compose-tex-func, eqn): * lisp/calc/calc.el (calcDigit-key): * lisp/cedet/ede/makefile-edit.el (makefile-macro-file-list): * lisp/cedet/ede/speedbar.el (ede-tag-expand): * lisp/cedet/semantic/sb.el (semantic-sb-show-extra) (semantic-sb-expand-group): * lisp/comint.el (comint-substitute-in-file-name): * lisp/dired.el (dired-actual-switches): * lisp/emacs-lisp/chart.el (chart-rmail-from): * lisp/emacs-lisp/eieio-opt.el (eieio-sb-expand): * lisp/emacs-lisp/eieio-speedbar.el (eieio-speedbar-object-expand): * lisp/emacs-lisp/rx.el (rx-not, rx-atomic-p): * lisp/emulation/viper-ex.el (viper-get-ex-token) (viper-get-ex-pat, ex-set-read-variable): * lisp/epg.el (epg--status-SIG_CREATED): * lisp/erc/erc-speedbar.el (erc-speedbar-expand-user): (erc-speedbar-expand-channel, erc-speedbar-expand-server) * lisp/erc/erc.el (erc-is-message-ctcp-and-not-action-p) (erc-banlist-update): * lisp/eshell/em-dirs.el (eshell-parse-drive-letter, eshell/pwd): * lisp/find-dired.el (find-dired): * lisp/frame.el (frame-set-background-mode): * lisp/generic-x.el (apache-log-generic-mode): * lisp/gnus/gnus-art.el (gnus-button-valid-localpart-regexp): * lisp/gnus/gnus.el (gnus-short-group-name): * lisp/gnus/message.el (message-mailer-swallows-blank-line): * lisp/ibuffer.el (ibuffer-fontification-alist): * lisp/ido.el (ido-set-matches-1): * lisp/info-xref.el (info-xref-lock-file-p): * lisp/info.el (Info-dir-remove-duplicates) (Info-unescape-quotes, Info-split-parameter-string) (Info-speedbar-expand-node): * lisp/international/mule.el (sgml-html-meta-auto-coding-function): * lisp/isearch.el (isearch-pre-command-hook): * lisp/language/ethio-util.el (ethio-fidel-to-tex-buffer): * lisp/mail/rmail.el (rmail-collect-deleted): * lisp/mh-e/mh-alias.el (mh-alias-suggest-alias): * lisp/mh-e/mh-comp.el (mh-forward): * lisp/mh-e/mh-search.el (mh-index-next-folder) (mh-index-create-imenu-index): * lisp/mh-e/mh-xface.el (mh-picon-get-image): * lisp/minibuffer.el (completion--embedded-envvar-re): * lisp/net/ange-ftp.el (ange-ftp-ls-parser): * lisp/net/goto-addr.el (goto-address-mail-regexp) (goto-address-find-address-at-point): * lisp/net/pop3.el (pop3-read-response, pop3-user) (pop3-pass, pop3-apop): * lisp/net/tramp.el (tramp-ipv6-regexp) (tramp-replace-environment-variables): * lisp/nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set): * lisp/nxml/rng-uri.el (rng-uri-escape-multibyte): * lisp/nxml/rng-xsd.el (rng-xsd-convert-any-uri): * lisp/obsolete/pgg.el (pgg-fetch-key): * lisp/obsolete/vip.el (vip-get-ex-token): * lisp/org/ob-core.el (org-babel-string-read): * lisp/org/org-agenda.el: (org-agenda-add-entry-to-org-agenda-diary-file): * lisp/org/org-element.el (org-element-keyword-parser): * lisp/org/org-list.el (org-list-indent-item-generic): * lisp/org/org-mhe.el (org-mhe-get-message-folder-from-index): * lisp/org/org-mobile.el (org-mobile-apply): * lisp/org/org-mouse.el (org-mouse-context-menu): * lisp/org/org-plot.el (org-plot/gnuplot): * lisp/org/org-protocol.el (org-protocol-flatten-greedy): * lisp/org/org-table.el (org-table-copy-down) (org-table-formula-make-cmp-string) (org-table-get-stored-formulas, org-table-recalculate) (org-table-edit-formulas): * lisp/org/org.el (org-translate-link-from-planner) (org-fill-line-break-nobreak-p): * lisp/org/ox-ascii.el (org-ascii-item): * lisp/org/ox-latex.el (org-latex-clean-invalid-line-breaks): * lisp/org/ox.el (org-export-expand-include-keyword): * lisp/progmodes/ada-xref.el (ada-treat-cmd-string): * lisp/progmodes/cfengine.el (cfengine2-font-lock-keywords): * lisp/progmodes/cperl-mode.el (cperl-to-comment-or-eol) (cperl-find-pods-heres, cperl-fix-line-spacing) (cperl-have-help-regexp, cperl-word-at-point-hard) (cperl-make-regexp-x): * lisp/progmodes/dcl-mode.el (dcl-option-value-offset): * lisp/progmodes/etags.el (tag-implicit-name-match-p): * lisp/progmodes/fortran.el (fortran-fill): * lisp/progmodes/gdb-mi.el (gdb-speedbar-expand-node) (gdb-locals-handler-custom): * lisp/progmodes/grep.el (grep-mode-font-lock-keywords): * lisp/progmodes/gud.el (gud-jdb-find-source-using-classpath): * lisp/progmodes/js.el (js--continued-expression-p): * lisp/progmodes/m4-mode.el (m4-font-lock-keywords): * lisp/progmodes/meta-mode.el (meta-indent-level-count): * lisp/progmodes/mixal-mode.el (mixal-font-lock-keywords): * lisp/progmodes/opascal.el (opascal-find-unit-in-directory): * lisp/progmodes/pascal.el (pascal-progbeg-re): * lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re) (ruby-expr-beg, ruby-parse-partial) (ruby-toggle-string-quotes, ruby-font-lock-keywords): * lisp/progmodes/sql.el (sql--make-help-docstring): * lisp/progmodes/verilog-mode.el (verilog-coverpoint-re) (verilog-skip-forward-comment-p) (verilog-read-sub-decls-gate) (verilog-read-auto-template-middle): * lisp/progmodes/vhdl-mode.el (vhdl-resolve-env-variable) (vhdl-speedbar-expand-project, vhdl-speedbar-expand-entity) (vhdl-speedbar-expand-architecture) (vhdl-speedbar-expand-config, vhdl-speedbar-expand-package) (vhdl-speedbar-dired): * lisp/speedbar.el (speedbar-dired, speedbar-tag-file) (speedbar-tag-expand): * lisp/textmodes/dns-mode.el (dns-mode-font-lock-keywords): * lisp/textmodes/flyspell.el (flyspell-debug-signal-word-checked): * lisp/textmodes/ispell.el (ispell-process-line): * lisp/textmodes/reftex-cite.el (reftex-end-of-bib-entry): * lisp/textmodes/reftex-ref.el (reftex-replace-prefix-escapes): * lisp/url/url-parse.el (url-generic-parse-url): * lisp/url/url-util.el (url-truncate-url-for-viewing): * lisp/vc/diff-mode.el (diff-unified->context): * lisp/vc/vc-bzr.el (vc-bzr-error-regexp-alist): * lisp/vc/vc-cvs.el (vc-cvs-parse-status): * lisp/woman.el (woman0-el, woman-if-ignore) (woman-change-fonts): * lisp/xdg.el (xdg--substitute-home-env): Fix regular-expression infelicities and typos. Fix regular expression typos Fix typos reported by Mattias Engdegård in: that occurred in preloaded modules. * lisp/frame.el (frame-set-background-mode): * lisp/international/mule.el (sgml-html-meta-auto-coding-function): * lisp/isearch.el (isearch-pre-command-hook): * lisp/minibuffer.el (completion--embedded-envvar-re): 2019-03-04 Charles A. Roelli Fix diff-mode tests after renaming diff-font-lock-refine This fixes tests broken in my last change, "Merge diff-font-lock-refine and diff-auto-refine-mode into diff-refine" from 2019-02-24. * test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock): Bind diff-refine to symbol 'font-lock' instead of binding diff-font-lock-refine to t. (diff-mode-test-font-lock-syntax-one-line): Bind diff-refine to nil instead of binding diff-font-lock-refine to nil. 2019-03-04 Eli Zaretskii Avoid assertion violations in buf_bytepos_to_charpos * src/marker.c (buf_bytepos_to_charpos): Disable the assertion regarding bytepos always at the head byte of a multibyte sequence. 2019-03-04 Eli Zaretskii Fix invocation with -rv on the command line * lisp/frame.el (frame-set-background-mode): Avoid errors from 'face-spec-match-p' when the face was not yet realized for FRAME. (Bug#34725) 2019-03-04 Nicolas Petton * lisp/emacs-lisp/map.el: Bump version to 2.0. 2019-03-04 Martin Rudalics Prevent introducing invalid scroll bar width/height values (Bug#34569) * src/frame.c (store_frame_param): Don't store invalid values for scroll_bar_width/height. (x_report_frame_params): Don't report invalid values for scroll_bar_width/height. (x_set_scroll_bar_width, x_set_scroll_bar_height): Don't set invalid values for scroll_bar_width/height. 2019-03-04 Martin Rudalics Fix minibuffer resizing with temporarily selected frames (Bug#34317) * src/keyboard.c (command_loop_1): Resize echo area exactly only if the echo area window is the minibuffer window of the selected frame (Bug#34317). * src/xdisp.c (x_consider_frame_title): Inhibit redisplay also when restoring the selected window/frame to avoid that resize_mini_window sizes back the minibuffer window of a temporarily selected frame (Bug#34317). 2019-03-04 Paul Eggert * src/alloc.c (gcstat): Now static. * src/gfilenotify.c: Fix indenting. * src/font.h: Fix commentary. 2019-03-04 Paul Eggert Simplify list creation in C code The main new thing here is that C code can now say ‘list (a, b, c, d, e, f)’ instead of ‘listn (CONSTYPE_HEAP, 6, a, b, c, d, e, f)’, thus relieving callers of the responsibility of counting arguments (plus, the code feels more like Lisp). The old list1 ... list5 functions remain, as they’re probably a bit faster for small lists. * src/alloc.c (cons_listn, pure_listn): New functions. (listn): Omit enum argument. All callers changed to use either new ‘list’ or ‘pure_list’ macros. * src/charset.c (Fdefine_charset_internal): * src/coding.c (detect_coding_system) (Fset_terminal_coding_system_internal): * src/frame.c (frame_size_history_add, adjust_frame_size): * src/gtkutil.c (xg_frame_set_char_size): * src/keyboard.c (command_loop_1): * src/nsfns.m (frame_geometry): * src/widget.c (set_frame_size): * src/xfaces.c (Fcolor_distance): * src/xfns.c (frame_geometry): * src/xterm.c (x_set_window_size_1): * src/xwidget.c (Fxwidget_size_request): Prefer list1i, list2i, etc. to open-coding them. * src/charset.c (Fset_charset_priority): * src/nsterm.m (append2): * src/window.c (window_list): * src/xfaces.c (Fx_list_fonts): Use nconc2 instead of open-coding it. * src/eval.c (eval_sub, backtrace_frame_apply): * src/kqueue.c (kqueue_generate_event): * src/nsterm.m (performDragOperation:): * src/pdumper.c (Fpdumper_stats): * src/w32.c (init_environment): Prefer list1, list2, etc. to open-coding them. * src/font.c (font_list_entities): Parenthesize to avoid expanding new ‘list’ macro. * src/gtkutil.c (GETSETUP): Rename from MAKE_FLOAT_PAGE_SETUP to get lines to fit. Move outside the ‘list’ call, since it’s now a macro. * src/keymap.c (Fmake_keymap): Simplify. * src/lisp.h (list, pure_list): New macros. (list1i): New function. 2019-03-03 Charles A. Roelli Merge diff-font-lock-refine and diff-auto-refine-mode into diff-refine This change was discussed in Bug#32991. * admin/gitmerge.el (gitmerge-resolve): Bind 'diff-refine' instead of 'diff-auto-refine-mode' to nil. * doc/emacs/files.texi (Diff Mode): Explain 'diff-refine' instead of 'diff-auto-refine-mode' in the documentation of 'diff-hunk-next' and 'diff-hunk-prev'. Mention in the documentation of 'diff-refine-hunk' that refining is already done by default. * etc/NEWS (Diff mode): Explain renamed 'diff-refine' variable and mention deprecation and disabling of 'diff-auto-refine-mode'. * lisp/vc/diff-mode.el (diff-font-lock-refine): Rename to 'diff-refine' and allow choices nil, 'font-lock' and 'navigation'. (diff-auto-refine-mode): Disable it by default, make it obsolete and make it set 'diff-refine' appropriately to keep backward compatibility. (diff-hunk-next, diff-hunk-prev): Adapt to rename of diff-auto-refine-mode and ensure that refining only happens when calling these commands interactively. (diff--font-lock-refined): Adapt to rename of diff-font-lock-refine. * lisp/vc/smerge-mode.el (smerge-next, smerge-prev): Check that 'diff-refine' is set instead of checking 'diff-auto-refine-mode' when deciding whether to refine a conflict. 2019-03-03 Alan Mackenzie Correct some slightly incorrect regular expressions: * lisp/progmodes/cc-awk.el (c-awk-harmless-char-re) (c-awk-harmless-line-char-re, c-awk-_-harmless-nonws-char-re): [...\\\\...] -> [...\\...]. * lisp/progmodes/cc-engine.el (c-literal-limits): "*/" -> "\\*/". * lisp/progmodes/cc-mode.el (c-after-change-re-mark-unbalanced-strings): "\\\r" -> "\r". 2019-03-03 Eli Zaretskii Fix starting temacs interactively * src/dispnew.c (init_display_interactive): Don't call init_faces_initial if we aren't initialized, since tty-set-up-initial-frame-faces is not available then. This restores the ability to start "temacs -nw" and also avoids bad crashes in "emacs -nw" if the pdumper file is not found. (Bug#34707) 2019-03-02 Paul Eggert Fix typo in previous change * src/alloc.c (memory_full_cons_threshold): Move to after definition of struct cons_block. Problem reported by Basil L. Contovounesios in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00067.html 2019-03-02 Glenn Morris * test/lisp/progmodes/python-tests.el (python-syntax-after-python-backspace): Expect success. 2019-03-02 Paul Eggert memory_full_cons_threshold is a constant * src/alloc.c (memory_full_cons_threshold): Now const. (memory_full): Omit no-longer-needed initialization. 2019-03-02 Paul Eggert Avoid staticvec duplicates * src/alloc.c (staticpro) [ENABLE_CHECKING]: Check for duplicates. * src/keyboard.c (syms_of_keyboard): Define while-no-input-ignore-events and inhibit--record-char here ... (syms_of_keyboard_for_pdumper): ... instead of here. This avoids duplicates in staticvec. 2019-03-02 Alan Mackenzie Check by eassert that a bytepos argument isn't in the middle of a character * src/marker.c (buf_bytepos_to_charpos): Add an eassert to check that the parameter bytepos is at the beginning of a character or EOB. 2019-03-02 Eli Zaretskii Fix DND on MS-Windows with files from UNC directories * lisp/dnd.el (dnd-get-local-file-uri): Always return nil on MS-Windows, as this method cannot possibly work there: URIs that begin with the local system's name are UNCs, where the //SERVER part cannot be removed. (Bug#34675) 2019-03-02 Phillip Lord Revert "Add hook for all events" This reverts commit 7b31de4d107302ed91ce7519cd778b340a9880ee. 2019-03-02 Phillip Lord Revert "; Fix typos in NEWS" This reverts commit d52bc534d799c255f24ff2a56e8bed830d8f68ca. 2019-03-02 Phillip Lord Revert "; Document input-event-functions" This reverts commit 27fffb2701c38090916e077d28a4a6b9e2bc09d2. 2019-03-02 Mattias Engdegård Correct regexp-opt return value for empty string list When regexp-opt is called with an empty list of strings, return a regexp that doesn't match anything instead of the empty string (Bug#20307). * doc/lispref/searching.texi (Regular Expression Functions): * etc/NEWS: Document the new behaviour. * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Return a never-match regexp for empty inputs. 2019-03-02 Mattias Engdegård rx: fix `or' ordering by adding argument to regexp-opt The rx `or' form may reorder its arguments in an unpredictable way, contrary to user expectation, since it sometimes uses `regexp-opt'. Add a NOREORDER option to `regexp-opt' for preventing it from producing a reordered regexp (Bug#34641). * doc/lispref/searching.texi (Regular Expression Functions): * etc/NEWS (Lisp Changes in Emacs 27.1): Describe the new regexp-opt NOREORDER argument. * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Add NOREORDER. Make no attempt at regexp improvement if the set of strings contains a prefix of another string. (regexp-opt--contains-prefix): New. * lisp/emacs-lisp/rx.el (rx-or): Call regexp-opt with NOREORDER. * test/lisp/emacs-lisp/rx-tests.el: Test rx `or' form match order. 2019-03-02 Eli Zaretskii Fix 'end-of-visual-line' with overlay strings with newlines * src/indent.c (Fvertical_motion): Get out of overlay strings with embedded newlines even if moving within the same screen line. See https://github.com/emacs-lsp/lsp-mode/issues/677 for more details. Fix test for IT_CHARPOS being at the beginning of the accessible portion of the buffer. 2019-03-01 Stefan Monnier * src/syntax.c (update_syntax_table): Prefer 'else' to 'goto' * lisp/Makefile.in (leim): Fix void-function pinyin-convert 2019-03-01 Alan Mackenzie Maintain interval ->position fields correctly in update_interval Also fix some anomalies in the handling of byte positions in regexp-emacs.c This fixes bug #34525. * src/intervals.c (SET_PARENT_POSITION): New macro. (update_interval): When moving to an interval's parent, set that parent's ->position field, to maintain the consistency of the tree. * src/intervals.h (struct interval): Amend the comment describing when ->position is valid. * src/pdumper.c: Update the hash associated with struct interval. * src/regex-emacs.c: (re_match_2_internal): Only invoke POINTER_TO_OFFSET on a known character boundary. Only perform arithmetic on character positions, not on byte positions. Correct the argument to an invocation of UPDATE_SYNTAX_TABLE_FORWARD by adding 1 to it (in case wordend:). * src/syntax.c: (update_syntax_table): Remove the now redundant code that set the ->position field of all parents of the interval found by update_interval. 2019-03-01 Glenn Morris Merge from origin/emacs-26 9df1365 Fix a typo in the Calc manual f3dab02 Minor improvement in cross-references of the ELisp manual 560c84b Fix last change on 'compilation-parse-errors' 2019-03-01 Glenn Morris Merge from origin/emacs-26 dee3cdc Minor improvement for docs of completion c86d419 ; * src/image.c (imagemagick_load, svg_load): Fix typos in co... 6d46fa9 Disable the timerfd interface on Cygwin 3707ea4 Fix a typo in the doc string of 'regex-opt' d9905d5 Document bash 5.0.0 misbehavior in tramp.texi (Bug#34192) # Conflicts: # doc/misc/tramp.texi 2019-03-01 Paul Eggert Suppress GC stats when obviously not needed This should help future improvements where these stats can be bignums that do not fit into intmax_t. * src/alloc.c (struct gcstat, gcstat): New type and static var, to package up GC statistics into one C object. It replaces ... (total_free_intervals, total_intervals, total_strings) (total_free_strings, total_string_bytes, total_vectors) (total_vector_slots, total_free_vector_slots): ... these removed static vars. All uses changed. (garbage_collect_1): Accept a struct gcstat *, not a void * which was not used anymore anyway. Return a bool indicating success, instead of a Lisp object. All callers changed. (garbage_collect): New function. All C callers of Fgarbage_collect changed to use it, since none of them use the return value. Now, only Lisp code uses Fgarbage_collect. (Fgarbage_collect): No longer noinline. Cons up the return value here, not in garbage_collect_1. 2019-03-01 Eli Zaretskii Don't signal Quit from 'while-no-input' on TTY frames * src/keyboard.c (read_char): Don't inject quit-char after longjmp if while-no-input is in effect. (Bug#34535) 2019-03-01 Evan Moses (tiny change) Add 'breakpoint' to builtins for Python * lisp/progmodes/python.el (python-font-lock-keywords-level-2) (python-font-lock-keywords-maxiumum-decoration): Add 'breakpoint' to the list of builtins, it's new as of Python 3.7. 2019-03-01 Eli Zaretskii Be more defensive regarding elements of 'load-history' * lisp/loadhist.el (file-dependents): * lisp/apropos.el (apropos-library): * lisp/help-fns.el (help-fns--autoloaded-p, help--loaded-p): * lisp/emacs-lisp/package.el (package--list-loaded-files): Don't assume 'load-history' elements must have a string as their 'car'. (Bug#34462) 2019-03-01 Alan Mackenzie * src/pdumper.c: Clarify the message about updating hash values 2019-03-01 Federico Tedin Allow control on the threshold for using 'distant-foreground' * src/xfaces.c (NEAR_SAME_COLOR_THRESHOLD): Macro deleted. (load_face_colors): Compare against face_near_same_color_threshold instead of NEAR_SAME_COLOR_THRESHOLD. (syms_of_xfaces) : New variable. (Bug#34001) * etc/NEWS: Announce the change. 2019-02-28 Juri Linkov * lisp/replace.el (flush-lines): Return the number of deleted lines. When called interactively, also print the number. (Bug#34520) * doc/emacs/search.texi (Other Repeating Search): Update flush-lines that prints the number of deleted lines. 2019-02-28 Eli Zaretskii Avoid rare crashes in xbacktrace * src/eval.c (backtrace_thread_p, backtrace_top): Don't segfault in "xbacktrace" if called before the specpdl machinery is initialized in pdumped Emacs. 2019-02-28 Michael Albinus Adapt test names in tramp-archive-tests.el * test/lisp/net/tramp-archive-tests.el (tramp-archive-test39-make-nearby-temp-file) (tramp-archive-test42-file-system-info) (tramp-archive-test45-auto-load) (tramp-archive-test45-delay-load): Rename. 2019-02-28 Michael Albinus Use proper read syntax for all function names in Tramp * lisp/net/tramp.el: * lisp/net/tramp-adb.el: * lisp/net/tramp-archive.el: * lisp/net/tramp-cache.el: * lisp/net/tramp-cmds.el: * lisp/net/tramp-compat.el: * lisp/net/tramp-ftp.el: * lisp/net/tramp-gvfs.el: * lisp/net/tramp-integration.el: * lisp/net/tramp-rclone.el: * lisp/net/tramp-sh.el: * lisp/net/tramp-smb.el: * lisp/net/tramp-sudoedit.el: * test/lisp/net/tramp-archive-tests.el: * test/lisp/net/tramp-tests.el: Use proper read syntax for all function names. 2019-02-27 Paul Eggert Escape HTML NUL as � in eww * lisp/net/eww.el (eww-display-html): Escape NUL as � as this is more appropriate for HTML. 2019-02-27 Juri Linkov * lisp/vc/vc-annotate.el: Better error handling (bug#34532) * lisp/vc/vc-annotate.el (vc-annotate-revision-previous-to-line): Print message when prev-rev is nil. 2019-02-27 Juri Linkov Directional window swap states (bug#34656) * lisp/windmove.el (windmove-swap-states-in-direction) (windmove-swap-states-left, windmove-swap-states-up) (windmove-swap-states-down, windmove-swap-states-right) (windmove-swap-states-default-keybindings): New functions. 2019-02-27 Juri Linkov * doc/emacs/frames.texi (Multiple Displays): Add make-frame-on-monitor. * doc/lispref/frames.texi (Multiple Terminals): Add make-frame-on-monitor. (Bug#34516) 2019-02-27 Arash Esbati Improve matching of key-val labels (bug#34629) * lisp/textmodes/reftex-vars.el (reftex-label-regexps): Improve regexp for key-val labels in order to skip over content in braces. 2019-02-27 Robert Pluim Replace NUL characters when calling into libxml 2019-02-27 Robert Pluim * lisp/net/eww.el (eww-display-html): Replace NUL characters with "\0", as libxml can't handle embedded NULLs. (Bug#34469) 2019-02-27 Stefan Monnier * lisp/emacs-lisp/pcase.el (pcase--make-docstring): Autoload 2019-02-27 John Shahid Add text properties to newlines used to unwrap long lines. * lisp/term.el (term-emulate-terminal): do it. 2019-02-27 Paul Eggert DEFVAR_INT variables are now intmax_t Formerly they were fixnums, which led to problems when dealing with values that might not fit on 32-bit platforms, such as string-chars-consed or floats_consed. 64-bit counters should be good enough for these (for a while, anyway...). While we’re at it, fix some unlikely integer overflow bugs that have been in the code for a while. * lib-src/make-docfile.c (write_globals): * src/data.c (do_symval_forwarding, store_symval_forwarding): * src/eval.c (restore_stack_limits, call_debugger): * src/frame.h (struct frame.cost_calculation_baud_rate): * src/keyboard.c (last_auto_save, bind_polling_period, read_char): * src/lisp.h (struct Lisp_Intfwd.intvar): * src/lread.c (defvar_int): * src/pdumper.c (dump_fwd_int): * src/thread.h (struct thread_state.m_lisp_eval_depth): * src/undo.c (truncate_undo_list): * src/xselect.c (wait_for_property_change) (x_get_foreign_selection): * src/xterm.c (x_emacs_to_x_modifiers): DEFVAR_INT variables now have the C type intmax_t, not EMACS_INT. * src/data.c (store_symval_forwarding): * src/gnutls.c (Fgnutls_boot): * src/keyboard.c (bind_polling_period): * src/macros.c (pop_kbd_macro, Fexecute_kbd_macro): * src/undo.c (truncate_undo_list): Allow any integer that fits into intmax_t, instead of requiring it to be a Lisp fixnum. * src/dispnew.c (update_window): * src/frame.c (x_figure_window_size): * src/gnutls.c (init_gnutls_functions) (emacs_gnutls_handle_error): * src/keyboard.c (make_lisp_event): * src/nsterm.m (ns_dumpglyphs_image): * src/profiler.c (make_log): * src/scroll.c (calculate_scrolling) (calculate_direct_scrolling): * src/termcap.c (tputs): * src/xterm.c (x_draw_image_relief): Avoid implementation-defined behavior on conversion of out-of-range integers. * src/eval.c (when_entered_debugger): Now intmax_t. (max_ensure_room): New function, that avoids signed integer overflow. (call_debugger, signal_or_quit): Use it. * src/fileio.c (Fdo_auto_save): * src/keyboard.c (make_lisp_event): * src/term.c (calculate_costs): * src/xdisp.c (build_desired_tool_bar_string) (hscroll_window_tree, try_scrolling, decode_mode_spec) (x_produce_glyphs): Avoid signed integer overflow. * src/lisp.h (clip_to_bounds): Generalize to intmax_t. * src/pdumper.c (dump_emacs_reloc_immediate_emacs_int): Remove, ... (dump_emacs_reloc_immediate_intmax_t): ... replacing with this function. All uses changed. * src/profiler.c (make_log): Omit args. All callers changed. * src/termcap.c: Include stdlib.h, for atoi. Include intprops.h. * src/window.c (sanitize_next_screen_context_lines): New function. (window_scroll_pixel_based, window_scroll_line_based): Use it to avoid signed integer overflow. 2019-02-25 Paul Eggert Fix mod-test build failure Problem reported by Glenn Morris in: https://lists.gnu.org/r/emacs-devel/2019-02/msg00739.html * test/Makefile.in (HYBRID_MALLOC, LIBEGNU_ARCHIVE): New macros, taken from ../src/Makefile.in. (MODULE_CFLAGS): Add -I$(srcdir)/../lib. ($(test_module)): Link $(LIBEGNU_ARCHIVE) too. 2019-02-25 Juri Linkov * lisp/vc/diff-mode.el (diff-font-lock-keywords): Add more Git headers. * lisp/gnus/mm-view.el (mm-display-inline-fontify): Set mode to the selected major-mode, so diff-mode could be detected afterwards. 2019-02-25 Juri Linkov * lisp/frame.el (make-frame-on-monitor): New command. (Bug#34516) (make-frame-on-display): Add completion on available display names. 2019-02-25 Paul Eggert format-time-string: document new '+' flag * doc/lispref/os.texi (Time Parsing), etc/NEWS: * src/timefns.c (Fformat_time_string): Document the new behavior, added for compatibility with POSIX.1-2017. 2019-02-25 Paul Eggert Update from Gnulib This incorporates: 2019-02-24 nstrftime: support the ‘+’ flag 2019-02-24 stat, lstat: fix conflict with relocatable-prog-wrapper 2019-02-23 nstrftime: tweak arg order 2019-02-21 nstrftime: merge glibc strftime changes 2019-02-02 vla: add commentary about VLA_ELEMS * build-aux/config.guess, doc/misc/texinfo.tex, lib/fstatat.c: * lib/lstat.c, lib/nstrftime.c, lib/vla.h: Copy from Gnulib. 2019-02-25 Michael Albinus Adapt hooks in Tramp * lisp/net/tramp-archive.el (tramp-archive-cleanup-hash): Remove autoload cookie. (tramp-cleanup-all-connections-hook): Add `tramp-archive-cleanup-hash'. * lisp/net/tramp-cmds.el (tramp-cleanup-connection-hook) (tramp-cleanup-all-connections-hook): New hook variables. (tramp-cleanup-connection): Set `tramp-current-connection' always to nil. (tramp-cleanup-connection): Do not call `tramp-recentf-cleanup'. Run ´tramp-cleanup-connection-hook`. (tramp-cleanup-all-connections): Do not call `tramp-archive-cleanup-hash' and ´tramp-recentf-cleanup'. Run `tramp-cleanup-all-connections-hook'. * lisp/net/tramp-ftp.el (top): Simply call `tramp-disable-ange-ftp'. * lisp/net/tramp-integration.el (tramp-recentf-cleanup-all): New defun. (top): Adapt `tramp-integration-unload-hook', `tramp-cleanup-connection-hook' and `tramp-cleanup-all-connections-hook'. 2019-02-24 Alex Branham * lisp/comint.el (comint-skip-input): Set inhibit-read-only to t Bug#33975 2019-02-24 Philipp Stephani Ignore pending_signals when checking for quits. pending_signals is often set if no quit is pending. This results in bugs in module code if the module returns but no quit is actually pending. As a better alternative, add a new process_input environment function for Emacs 27. That function processes signals (like maybe_quit). * configure.ac: Add module snippet for Emacs 27. * src/module-env-27.h: New file. * src/emacs-module.h.in: Add process_input function to environment interface. * src/emacs-module.c (module_should_quit): Use QUITP macro to check whether the caller should quit. (module_process_input): New function. (initialize_environment): Use it. * src/eval.c: Remove obsolete comment. * test/data/emacs-module/mod-test.c (signal_wrong_type_argument) (signal_errno): New helper functions. (Fmod_test_sleep_until): New test module function. * test/src/emacs-module-tests.el (mod-test-sleep-until): New unit test. * doc/lispref/internals.texi (Module Misc): Document process_input. 2019-02-24 Stefan Monnier * lisp/term.el: Fix minor compilation issues with cl-lib and lexbind Remove left-over comment from the bulk comint->term query/replace. (term-command-function): Rename from term-command-hook. Give it a global default value. (term-suppress-hard-newline): Mark it as generally obsolete. (term-mode): Don't manually make hooks buffer-local. (term--remove-fake-newlines): Fix assert -> cl-assert. (term-char-mode): Use add-function. (term-send-input): Use run-hook-with-args. (term-dynamic-complete): Use run-hook-with-args-until-success. (term-dynamic-simple-complete): Completion tables can be plain lists. (serial-read-name): Simplify and fix misuse of `set`. 2019-02-24 John Shahid Adjust line wrapping on window resize and killing text * lisp/term.el (term-mode): Advice filter-buffer-substring-function to remove line unwrapping from killed text. (term-reset-size): Add or remove line unwrapping depending on the new terminal width. (term-suppress-hard-newline): Mark obsolete. (term-unwrap-line): Use text properties to be able to find the newlines later. 2019-02-24 Eric Abrahamsen Make pinyin to Chinese character mapping available to elisp * leim/Makefile.in: Build the file pinyin.el from pinyin.map. * lisp/international/titdic-cnv.el (pinyin-convert): New function that writes the library pinyin.el, containing a new constant `pinyin-character-map'. * .gitignore: Ignore the generated pinyin.el file. 2019-02-24 Richard Stallman fix rmail armor decryption problems * lisp/mail/rmail.el (rmail-epa-decrypt): Don't decrypt an armor that was copied into the message from a message it is a reply to. (rmail-epa-decrypt-1): Catch and ignore errors in epa-decrypt-region. Make armor-start and armor-end markers. 2019-02-24 Richard Stallman Don't clobber epa-mail-aliases * lisp/epa-mail.el (epa-mail-default-recipients): Copy elements of epa-mail-aliases; don't clobber them. 2019-02-24 Eli Zaretskii * doc/lispref/text.texi (Replacing): Fix a typo in recent change. 2019-02-24 Michael Albinus Cleanup also recentf files in Tramp * doc/misc/tramp.texi (Cleanup remote connections): Mention also recentf cache. * lisp/net/tramp-cmds.el (tramp-cleanup-connection) (tramp-cleanup-all-connections): Call `tramp-recentf-cleanup'. * lisp/net/tramp-integration.el: New package. * lisp/net/tramp.el (tramp-rfn-eshadow-overlay) (tramp-rfn-eshadow-setup-minibuffer) (tramp-rfn-eshadow-update-overlay-regexp) (tramp-rfn-eshadow-update-overlay): (tramp-eshell-directory-change): Move to tramp-integration.el 2019-02-23 Paul Eggert Don’t assume timersub and gettimeofday POSIX does not specify timersub, and marks gettimeofday as obsolescent. Avoid porting problems by using timespec.h functions instead. * src/editfns.c: Include systime.h instead of sys/time.h. (EXTRA_CONTEXT_FIELDS): Replace start and max_secs with time_limit. All uses changed. This removes the need to call gettimeofday or timersub. * src/term.c (timeval_to_Time): Remove. Replace all uses with ... (current_Time): ... this new function, removing the need to call gettimeofday. 2019-02-23 Tassilo Horn Improve replace-buffer-contents/replace-region-contents * src/editfns.c (Freplace_buffer_contents): Add two optional arguments for mitigating performance issues. * lisp/emacs-lisp/subr-x.el (replace-region-contents): Move from subr.el. Add the same two arguments as for replace-buffer-contents. * lisp/json.el (json-pretty-print-max-secs): New variable holding the default MAX-SECS value json-pretty-print passes to replace-buffer-contents. (json-pretty-print): Use it. * doc/lispref/text.texi (Replacing): Add documentation for replace-buffer-contents two new optional arguments. Document replace-region-contents. 2019-02-23 Michael Albinus Make last Tramp change backward compatible to Emacs 24 * lisp/net/tramp-cache.el (tramp-get-file-property): * lisp/net/tramp-sh.el (tramp-maybe-open-connection): * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): Make them backward compatible to Emacs 24. 2019-02-23 Felicián Németh Jump to the current error in xref with zero prefix arg * lisp/progmodes/xref.el (xref--next-error-function): Handle the corner case of n == 0. (Bug#34462) 2019-02-22 Paul Eggert Avoid some double-rounding of Lisp timestamps Also, simplify some time-related Lisp timestamp code while we’re in the neighborhood. * lisp/battery.el (battery-linux-proc-acpi) (battery-linux-sysfs, battery-upower, battery-bsd-apm): * lisp/calendar/timeclock.el (timeclock-seconds-to-string) (timeclock-log, timeclock-last-period) (timeclock-entry-length, timeclock-entry-list-span) (timeclock-find-discrep, timeclock-generate-report): * lisp/cedet/ede/detect.el (ede-detect-qtest): * lisp/completion.el (cmpl-hours-since-origin): * lisp/ecomplete.el (ecomplete-decay-1): * lisp/emacs-lisp/ert.el (ert--results-update-stats-display) (ert--results-update-stats-display-maybe): * lisp/emacs-lisp/timer-list.el (list-timers): * lisp/emacs-lisp/timer.el (timer-until) (timer-event-handler): * lisp/erc/erc-backend.el (erc-server-send-ping) (erc-server-send-queue, erc-handle-parsed-server-response) (erc-handle-unknown-server-response): * lisp/erc/erc-track.el (erc-buffer-visible): * lisp/erc/erc.el (erc-lurker-cleanup, erc-lurker-p) (erc-cmd-PING, erc-send-current-line): * lisp/eshell/em-pred.el (eshell-pred-file-time): * lisp/eshell/em-unix.el (eshell-show-elapsed-time): * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event:org-timestamp): * lisp/gnus/gnus-int.el (gnus-backend-trace): * lisp/gnus/gnus-sum.el (gnus-user-date): * lisp/gnus/mail-source.el (mail-source-delete-crash-box): * lisp/gnus/nnmaildir.el (nnmaildir--scan): * lisp/ibuf-ext.el (ibuffer-mark-old-buffers): * lisp/gnus/nnmaildir.el (nnmaildir--scan): * lisp/mouse.el (mouse--down-1-maybe-follows-link) (mouse--click-1-maybe-follows-link): * lisp/mpc.el (mpc--faster-toggle): * lisp/net/rcirc.el (rcirc-handler-ctcp-KEEPALIVE) (rcirc-sentinel): * lisp/net/tramp-cache.el (tramp-get-file-property): * lisp/net/tramp-sh.el (tramp-sh-handle-file-newer-than-file-p) (tramp-maybe-open-connection): * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): * lisp/org/org-clock.el (org-clock-resolve): (org-resolve-clocks, org-clock-in, org-clock-out, org-clock-sum): * lisp/org/org-timer.el (org-timer-start) (org-timer-pause-or-continue, org-timer-seconds): * lisp/org/org.el (org-evaluate-time-range): * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src): * lisp/pixel-scroll.el (pixel-scroll-in-rush-p): * lisp/play/hanoi.el (hanoi-move-ring): * lisp/proced.el (proced-format-time): * lisp/progmodes/cpp.el (cpp-progress-message): * lisp/progmodes/flymake.el (flymake--handle-report): * lisp/progmodes/js.el (js--wait-for-matching-output): * lisp/subr.el (progress-reporter-do-update): * lisp/term/xterm.el (xterm--read-event-for-query): * lisp/time.el (display-time-update, emacs-uptime): * lisp/tooltip.el (tooltip-delay): * lisp/url/url-cookie.el (url-cookie-parse-file-netscape): * lisp/url/url-queue.el (url-queue-prune-old-entries): * lisp/url/url.el (url-retrieve-synchronously): * lisp/xt-mouse.el (xterm-mouse-event): Avoid double-rounding of time-related values. Simplify. * lisp/calendar/icalendar.el (icalendar--decode-isodatetime): When hoping for the best (unlikely), use a better decoded time. (icalendar--convert-sexp-to-ical): Avoid unnecessary encode-time. * lisp/calendar/timeclock.el (timeclock-when-to-leave): * lisp/cedet/ede/detect.el (ede-detect-qtest): * lisp/desktop.el (desktop-create-buffer): * lisp/emacs-lisp/benchmark.el (benchmark-elapse): * lisp/gnus/gnus-art.el (article-lapsed-string): * lisp/gnus/gnus-group.el (gnus-group-timestamp-delta): * lisp/gnus/nnmail.el (nnmail-expired-article-p): * lisp/gnus/nnmaildir.el (nnmaildir-request-expire-articles): * lisp/nxml/rng-maint.el (rng-time-function): * lisp/org/org-clock.el (org-clock-get-clocked-time) (org-clock-resolve, org-resolve-clocks, org-resolve-clocks-if-idle): * lisp/org/org-habit.el (org-habit-insert-consistency-graphs): * lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info) (vhdl-fix-case-region-1): Use time-since instead of open-coding most of it. * lisp/erc/erc-dcc.el (erc-dcc-get-sentinel): * lisp/erc/erc.el (erc-string-to-emacs-time, erc-time-gt): Now obsolete. All uses changed. (erc-time-diff): Accept all Lisp time values. All uses changed. * lisp/gnus/gnus-demon.el (gnus-demon-idle-since): * lisp/gnus/gnus-score.el (gnus-score-headers): * lisp/gnus/nneething.el (nneething-make-head): * lisp/gnus/nnheader.el (nnheader-message-maybe): * lisp/gnus/nnimap.el (nnimap-keepalive): * lisp/image.el (image-animate-timeout): * lisp/mail/feedmail.el (feedmail-rfc822-date): * lisp/net/imap.el (imap-wait-for-tag): * lisp/net/newst-backend.el (newsticker--image-get): * lisp/net/rcirc.el (rcirc-handler-317, rcirc-handler-333): * lisp/obsolete/xesam.el (xesam-refresh-entry): * lisp/org/org-agenda.el (org-agenda-show-clocking-issues) (org-agenda-check-clock-gap, org-agenda-to-appt): * lisp/org/org-capture.el (org-capture-set-target-location): * lisp/org/org-clock.el (org-clock-resolve-clock) (org-clocktable-steps): * lisp/org/org-colview.el (org-columns-edit-value) (org-columns, org-agenda-columns): * lisp/org/org-duration.el (org-duration-from-minutes): * lisp/org/org-element.el (org-element-cache-sync-duration) (org-element-cache-sync-break) (org-element--cache-interrupt-p, org-element--cache-sync): * lisp/org/org-habit.el (org-habit-get-faces) * lisp/org/org-indent.el (org-indent-add-properties): * lisp/org/org-table.el (org-table-sum): * lisp/org/org-timer.el (org-timer-show-remaining-time) (org-timer-set-timer): * lisp/org/org.el (org-babel-load-file, org-today) (org-auto-repeat-maybe, org-2ft, org-time-stamp) (org-read-date-analyze, org-time-stamp-to-now) (org-small-year-to-year, org-goto-calendar): * lisp/org/ox.el (org-export-insert-default-template): * lisp/ses.el (ses--time-check): * lisp/type-break.el (type-break-time-warning) (type-break-statistics, type-break-demo-boring): * lisp/url/url-cache.el (url-cache-expired) (url-cache-prune-cache): * lisp/vc/vc-git.el (vc-git-stash-snapshot): * lisp/erc/erc-match.el (erc-log-matches-come-back): Simplify. 2019-02-22 Paul Eggert Remove some timestamp format assumptions Don’t assume that current-time and plain encode-time return timestamps in (HI LO US PS) format. * lisp/gnus/gnus-art.el (article-make-date-line) (article-lapsed-string): * lisp/gnus/gnus-demon.el (gnus-demon-time-to-step): * lisp/gnus/gnus-diary.el (gnus-user-format-function-d): * lisp/gnus/nnmaildir.el (nnmaildir-request-expire-articles): * lisp/net/pop3.el (pop3-uidl-dele): * lisp/org/ox-publish.el (org-publish-sitemap): * lisp/vc/vc-hg.el (vc-hg-state-fast): Simplify and remove assumptions about timestamp format. * lisp/gnus/gnus-art.el (article-lapsed-string): * lisp/gnus/gnus-diary.el (gnus-user-format-function-d): Do not worry about time-subtract returning nil; that's not possible. * lisp/gnus/gnus-diary.el (gnus-user-format-function-d): Avoid race due to duplicate current-time calls. * lisp/vc/vc-hg.el (vc-hg--time-to-integer): Remove; no longer used. 2019-02-22 Alex Branham which-function: Do not display outdated imenu information * lisp/progmodes/which-func.el (which-function): Check `add-log-current-defun' before imenu. Update `imenu--index-alist' if needed. Bug#33695 2019-02-21 Nicholas Drozd Handle HTML 'ol' start attribute in shr.el * lisp/net/shr.el (shr-tag-ol): Don't automatically assume 1-indexing for all ordered lists, use
      if given. * etc/NEWS: Announce change in shr behavior. * test/data/shr/ol.html: * test/data/shr/ol.txt: New test data files. 2019-02-21 Stefan Monnier * lisp/vc/diff-mode.el: Reduce redundancy in diff-syntax-fontify code (diff--iterate-hunks): New function extracted from diff--font-lock-refined. (diff--font-lock-refined, diff--font-lock-syntax): Use it. (diff--overlay-auto-delete): Rename from diff--font-lock-refine--refresh. (diff--font-lock-syntax--refresh): Delete. (diff-syntax-fontify-hunk): Don't completely silence errors. (diff-syntax-fontify-props): Remove `no-init` arg, testing if `file` is nil instead. Adjust all callers. (diff-syntax-fontify-props): Remove redundant code since we don't modify the buffer. 2019-02-21 Mattias Engdegård Replace 8-bit-specific case-manipulation * lisp/completion.el (cmpl-coerce-string-case): Rewrite case-changing code written for ASCII or latin-1 but not valid in generally today. 2019-02-20 Michael R. Mauger Correct implementation of `sql-set-product-feature' (Bug#30494). * lisp/progmodes/sql.el (sql-add-product): Correct argument spec. (sql-set-product-feature): Handle all cases as intended. (sql-get-product-feature): Fetch varaiable value by `eval'. * test/lisp/progmodes/sql-tests.el (sql-test-feature-value-[a-d]): New test variables. (sql-test-product-feature-harness): New test macro. (sql-test-add-product, sql-test-add-existing-product) (sql-test-set-feature, sql-test-set-indirect-feature) (sql-test-set-existing-feature) (sql-test-set-existing-indirect-feature) (sql-test-set-missing-product, sql-test-get-feature) (sql-test-get-indirect-feature, sql-test-get-missing-product) (sql-test-get-missing-feature) (sql-test-get-missing-indirect-feature): New ERT tests 2019-02-20 Glenn Morris Merge from origin/emacs-26 ff9c962 ; * lisp/ldefs-boot.el: Update. b4a251c * ; ChangeLog.3 update d3104e3 * etc/AUTHORS: Update. a19bfb7 Remove .art from the default list of ImageMagick extensions 6985caa Fix input after setting x-wait-for-event-timeout nil 715388a Fix two warnings in eshell.texi d49cdd9 * lisp/minibuffer.el (completion-table-dynamic): Improve docs... 5dc4e51 * lisp/emacs-lisp/debug.el (debug-on-variable-change): Doc fi... 76ef805 Fix a typo in ELisp manual b5e66f4 Update citations of Internet RFCs 57ece2a Fix handling of manpage references divided by hyphenation 7ad0cd6 * doc/misc/eshell.texi: Fix some @ref's. 12b7940 Fix a typo in lispref/syntax.texi # Conflicts: # lisp/gnus/nnrss.el # lisp/mail/ietf-drums.el 2019-02-20 Tassilo Horn Fix missing interactive spec * lisp/json.el (json-pretty-print-buffer-ordered): Add interactive spec "P" which has been missing. 2019-02-20 Michael Albinus Improve connection hand-shaking in tramp-adb.el * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection): Send an additional RET. 2019-02-20 Stefan Monnier * lisp/progmodes/sql.el (sql-is-indent-available): Remove (sql-indent-enable): Check (fboundp 'sqlind-minor-mode) without wondering which file might provide it. (sql-read-connection): η-reduce 'car'. 2019-02-20 Martin Rudalics Fix handling of MINIBUF argument in 'walk-window-tree' * lisp/window.el (walk-window-tree): Handle MINIBUF argument as advertised when FRAME is minibuffer-only. (window--resize-apply-p, window--sanitize-window-sizes) (delete-other-windows, split-window-sensibly): Call 'walk-window-tree' with suitable MINIBUF argument. 2019-02-19 Glenn Morris * lisp/progmodes/sql.el: Fix use of string-empty-p in recent change. 2019-02-19 Charles A. Roelli Simplify easy-mmode-define-navigation * lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation): Simplify a one-argument call to "or" and use buffer-narrowed-p instead of checking that condition by hand. 2019-02-19 Michael Albinus Implement access-file in Tramp * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist): * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist) * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist): Add `access-file'. * lisp/net/tramp-archive.el (tramp-archive-handle-access-file): * lisp/net/tramp.el (tramp-handle-access-file): New defun. (tramp-condition-case-unless-debug): Add declaration. (tramp-handle-insert-directory): * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory): Check, whether directory is accessible. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test17-insert-directory) (tramp-archive-test18-file-attributes): * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory) (tramp-test18-file-attributes): Test error cases. 2019-02-19 João Távora cycle-sort-function prevails in completion-all-sorted-completions * lisp/minibuffer.el (completion-all-sorted-completions): If completion table has cycle-sort-function, that prevails over other sorting strategies. 2019-02-19 João Távora switch-to-buffer's completion table uses its own sorting * src/minibuf.c (Finternal_complete_buffer): Add Qcycle_sort_function to completion table's metadata. (syms_of_minibuf): New symbol Qcycle_sort_function. 2019-02-18 Michael R. Mauger Merge branch 'wallet' * lisp/progmodes/sql.el: Added password wallet using `auth-source' package. (sql-auth-source-search-wallet): New function. (sql-password-wallet): New variable. (sql-password-search-wallet-function): New variable. (sql-get-login): Handle password wallet search. (sql-product-interactive): Handle password function. * test/lisp/progmodes/sql-tests.el: Test wallet changes. (sql-test-login-params): New test variable. (with-sql-test-connect-harness): New macro to wrap test configuration around calls to `sql-connect'. (sql-test-connect, sql-test-connect-password-func) (sql-test-connect-wallet-server-database) (sql-test-connect-wallet-database) (sql-test-connect-wallet-server): New ERT tests. * etc/NEWS: Updated SQL Mode descriptions. 2019-02-18 Stefan Monnier * lisp/mh-e/mh-acros.el (mh-defstruct): Minor simplification * lisp/erc/erc.el (erc-version-string): Remove, unused 2019-02-18 Michael R. Mauger * lisp/progmodes/sql.el defensive programming (sql-statement-regexp): if 'ansi' dialect is not defined, use "select" (sql-interactive-mode): establish process sentinel iff there is a process. Default values for :prompt-regexp and :prompt-length. (sql-product-interactive): only check process status iff there is a process. 2019-02-18 Stefan Monnier * lisp/elec-pair.el: Do modify+undo more carefully (electric-pair-inhibit-if-helps-balance): Use the undo system instead of undoing by hand. 2019-02-18 Paul Eggert Speed up cl-list-length * lisp/emacs-lisp/cl-extra.el (cl-list-length): Use ‘length’ to do the real work; this is simpler and uses a better algorithm. 2019-02-18 Paul Eggert Minor profiler improvements * src/profiler.c (evict_lower_half, record_backtrace) (setup_cpu_timer, cmpfn_profiler, hashfn_profiler): Assume C99. Use bool for boolean. (timer_getoverrun): Remove; simplify use to not need it. (Fprofiler_cpu_start): Any negative return from setup_cpu_timer fails. (Fprofiler_cpu_stop): Simplify initialization. 2019-02-18 Stefan Monnier * lisp/emacs-lisp/cl-lib.el (cl-endp): Move to cl-seq.el Use 'cl-check-type'. 2019-02-18 Ken Brown Use 'timer_getoverrun' on Cygwin when possible * configure.ac: Add a check for the 'timer_getoverrun' function. * src/profiler.c [CYGWIN] : Define 'timer_getoverrun' as a macro only on versions of Cygwin where it is not already defined as a function. 2019-02-18 Stefan Monnier * lisp/vc/smerge-mode.el (smerge-change-buffer-confirm): New var (smerge-vc-next-conflict): Obey it. Save buffer before going to the next. Don't emit message when vc-find-conflicted-file can't find other conflicted file. * lisp/vc/vc-hooks.el: Use lexical-binding. * lisp/vc/vc.el: Remove redundant :groups. (vc-find-conflicted-file): Autoload. 2019-02-18 Konstantin Kharlamov (tiny change) * lisp/vc/smerge-mode.el (smerge-vc-next-conflict): New command 2019-02-18 Michael Albinus Increase timeout on emba for Tramp * test/lisp/net/tramp-tests.el (tramp--test-shell-command-to-string-asynchronously): Increase timeout on emba. 2019-02-18 Paul Eggert * src/fns.c: Fix comment. 2019-02-17 Paul Eggert emacs-init-time outputs more digits now * lisp/time.el (emacs-init-time): Output more digits; formerly this was always outputting "0.0 seconds" for me because the number of seconds was less than 0.1. 2019-02-17 Paul Eggert * lisp/emacs-lisp/cl-lib.el (cl-endp): Remove stray 'x. 2019-02-17 Juri Linkov * lisp/tar-mode.el (tar--try-jka-compr): Remove. (Bug#34251) (tar-extract): Call archive-try-jka-compr instead of tar--try-jka-compr. * lisp/arc-mode.el (archive-try-jka-compr): Call set-buffer-multibyte after erase-buffer. 2019-02-17 Alan Mackenzie Fontify C function identifiers in parentheses correctly (e.g. in lisp.h) Fix handling of CC Mode's syntactic WS cache. Make noise-macro option variables buffer local. * lisp/progmodes/cc-engine.el (c-put-is-sws, c-put-in-sws, c-remove-is-sws) (c-remove-in-sws c-remove-is-and-in-sws): Add edebug specs. (c-invalidate-sws-region-before): Add a `beg' parameter. Handle noise macros like other literals. (c-invalidate-sws-region-after-del): Move the adjustment of (cdr c-sws-lit-limits) due to buffer change to c-invalidate-sws-region-after. (c-invalidate-sws-region-after-ins): Move (goto-char end) to the correct place. (c-invalidate-sws-region-after): Adjust (cdr c-sws-lit-limits) due to buffer change. Handle noise macros. (c-backward-sws): Set simple-ws-beg appropriately when the start point is in the middle of a noise macro. (c-forward-decl-or-cast-1): Recognize a function identifier being declared in parentheses. * lisp/progmodes/cc-mode.el (c-before-change): Supply a `beg' argument to c-invalidate-sws-region-before. * lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re) (c-noise-macro-name-re, c-noise-macro-names, c-noise-macro-with-parens-names): Make these buffer local variables. 2019-02-17 Alan Mackenzie * Put INLINE and ATTRIBUTE_NO_SANITIZE_UNDEFINED into c-noise-macro-names * .dir-locals.el (entry for c-mode): Put the two strings into c-noise-macro-names. 2019-02-16 Paul Eggert * src/lread.c (readevalloop): Simplify via suffix_p. 2019-02-16 Eli Zaretskii * lisp/startup.el (load--user-init-file): Support early-init.elc as well. 2019-02-16 Stefan Monnier * lisp/startup.el: Rename load-user-init-file Remove redundant :groups. (startup--load-user-init-file): Rename from load-user-init-file. 2019-02-16 Mattias Engdegård Prevent over-eager rx character range condensation `rx' incorrectly considers character ranges between ASCII and raw bytes to cover all codes in-between, which includes all non-ASCII Unicode chars. This causes (any "\000-\377" ?Å) to be simplified to (any "\000-\377"), which is not at all the same thing: [\000-\377] really means [\000-\177\200-\377] (Bug#34492). * lisp/emacs-lisp/rx.el (rx-any-condense-range): Split ranges going from ASCII to raw bytes. * test/lisp/emacs-lisp/rx-tests.el (rx-char-any-raw-byte): Add test case. * etc/NEWS: Mention the overall change (Bug#33205). 2019-02-16 Paul Eggert Port tramp-adb to various 'touch' platforms * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times): Try nanoseconds first, then plain seconds, then touch -t. 2019-02-15 Eli Zaretskii Fix 'early-init-file' value when file is missing * lisp/startup.el (command-line): Pass 'early-init.el', with an explicit .el extension, to load-user-init-file. Reported by Radon Rosborough in http://lists.gnu.org/archive/html/emacs-devel/2019-01/msg00314.html. 2019-02-15 Stefan Monnier * lisp/progmodes/cc-engine.el: Remove unneeded require of 'cl' Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs into trunk * src/lread.c (readevalloop): Use filename to decide macroexpansion 2019-02-15 Glenn Morris * test/lisp/textmodes/conf-mode-tests.el (conf-test-align-assignments): Fix whitespace. 2019-02-15 Glenn Morris Merge from origin/emacs-26 f721084 (origin/emacs-26) Avoid errors in erc-dcc.el when erc-dcc-ver... 3cba92d Fix faces in compilation messages 2019-02-15 Glenn Morris Merge from origin/emacs-26 25d9fe2 Work for empty MIME attachments (related to bug#34387) 2019-02-15 Glenn Morris Merge from origin/emacs-26 3f4b8e9 * src/data.c (Fmake_local_variable): Fix bug#34318 b384996 Minor fixes in ELisp manual wrt syntax-table properties 71fc6d2 * admin/notes/emba: New file. 3aaa2d2 Fix Hunspell invocation for discovering its dictionaries # Conflicts: # test/src/data-tests.el 2019-02-15 Stefan Monnier * lisp/progmodes/compile.el: Remove redundant :groups (compilation-shell-minor-mode, compilation-minor-mode): Use :lighter rather than the old positional args. (compilation-next-error): Make "No error here" into a user-error. 2019-02-15 Eli Zaretskii Make ls-lisp.el behave like Posix hosts when directory doesn't exist * lisp/ls-lisp.el (ls-lisp-insert-directory): For a directory that cannot be accessed, signal an error, like insert-directory does on Posix systems. This causes files-tests.el to pass on MS-Windows. 2019-02-15 Eli Zaretskii Support ~USER for some names on MS-Windows * src/w32.c (getpwnam): Support usernames provided through LOGNAME or USERNAME environment variables, to mimic what editfns.c:init_editfns does. 2019-02-15 Alex Branham Add basic conf-mode tests * test/lisp/textmodes/conf-mode-tests.el: New file with tests for conf-mode. Mostly taken from conf-mode docstrings. (Bug#34419) 2019-02-15 Alex Branham Use lexical binding for conf-mode * lisp/textmodes/conf-mode.el: Use lexical binding. (conf-align-assignments, conf-quote-normal, conf-mode-initialize): Doc fix. (Bug#34419) 2019-02-15 Eli Zaretskii Add documentation for last change in eww.el * doc/misc/eww.texi (Basics): Document the prefix arg effect on "M-x eww". (Bug#34374) * etc/NEWS: Mention the change in behavior of 'eww'. 2019-02-15 İ. Göktuğ Kayaalp * lisp/net/eww.el (eww): With prefix arg, open url in new buffer. Bug#34374 2019-02-14 João Távora Change scoring strategy for 'flex' completion style The previous strategy had problems comparing scores of matches to strings of different lengths. This one seems slightly more sensible, and uses a new constant `flex-score-match-tightness' instead of the more abstract `flex-score-falloff'. It's not completely without problems, and I think it shouldn't count "holes" at the front and at the back, but that needs a different "pattern-to-regexp" conversion in completion-pcm--hilit-commonality. (defun test () (mapcar (lambda (a) (cons (substring-no-properties a) (get-text-property 0 'completion-score a))) (sort (completion-pcm--hilit-commonality '(prefix "f" star "o" star "o" point) '("foo" "barfoobaz" "foobarbaz" "barbazfoo" "fabrobazo" "foot" "foto" "fotttttttttttttttttttttttto")) (lambda (a b) (> (get-text-property 0 'completion-score a) (get-text-property 0 'completion-score b)))))) (let ((flex-score-match-tightness 100)) (test)) => (("foo" . 1.0) ("foot" . 0.375) ("foto" . 0.375) ("foobarbaz" . 0.16260162601626016) ;; one hole ("barbazfoo" . 0.16260162601626016) ;; one hole ("barfoobaz" . 0.10964912280701755) ;; two holes ("fabrobazo" . 0.10964912280701755) ;; two holes ("fotttttttttttttttttttttttto" . 0.04982561036372696)) (let ((flex-score-match-tightness 0.1)) (test)) => (("foo" . 1.0) ("foot" . 0.375) ("foto" . 0.375) ("barfoobaz" . 0.007751937984496124) ;; two holes ("fabrobazo" . 0.007751937984496124) ;; two holes ("foobarbaz" . 0.00641025641025641) ;; one hole ("barbazfoo" . 0.00641025641025641) ;; one hole ("fotttttttttttttttttttttttto" . 0.0004789272030651341)) * lisp/minibuffer.el (flex-score-falloff): Rename to flex-score-match-tightness. (completion-pcm--hilit-commonality): Update function. 2019-02-14 Mattias Engdegård Add categories L, R, SPC and . to `rx' doc string * lisp/emacs-lisp/rx.el (rx): Add new categories to doc string. 2019-02-14 Mattias Engdegård Use lexical-binding in rx.el * lisp/emacs-lisp/rx.el: Use lexical-binding. (rx-form): Use `let' to bind the dynamic variable `rx-parent' instead of binding it as an argument. 2019-02-14 João Távora * lisp/minibuffer.el (completion-styles-alist): Tweak flex's docstring 2019-02-14 Michael Albinus Adapt tramp-adb-handle-set-file-times * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times): Use 'touch -d', 'touch -t' does not seem to work. Use Universal Time. 2019-02-13 Dmitry Gutov Rename project-query-replace to project-query-replace-regexp * lisp/progmodes/project.el (project-query-replace): Rename to project-query-replace-regexp. 2019-02-13 Gregor Zattler * doc/misc/eshell.texi (Built-ins): Fix alias description Dear eamcs developers, eshells current documentation first states that alias definitions are not saved to an alias file, later that they are saved to an alias file. I tested it and the latter is correct. Please find attached a patch which fixes this. Thanks for working on emacs which is really great, Gregor >From 1fe51cc769ab7a30d0896fb3d6105c0561243fa7 Mon Sep 17 00:00:00 2001 From: Gregor Zattler Date: Wed, 13 Feb 2019 20:19:38 +0100 Subject: * doc/misc/eshell.texi (Built-ins): Fix alias description. Bring description of built-in 'alias' in line with (info "(eshell) Aliases"), which describes the actual behaviur. 2019-02-13 Paul Eggert Add missing dependency to ucs-normalize.el * lisp/international/ucs-normalize.el: Require regexp-opt when compiling. Problem reported by hx in: https://lists.gnu.org/r/emacs-devel/2019-02/msg00334.html 2019-02-13 João Távora Score flex-style completions according to match tightness The new completion style needs to score completion matches so that we can use it later on when sorting the completions. This is because "foo" can flex-match "foobar", "frodo" and "barfromsober" but we probably want "foobar" to appear at the top of the completion list. This change introduces a scoring formula and adds scoring hints in the candidate string's `completion-score' property. * lisp/minibuffer.el (completion-pcm--hilit-commonality): Propertize completion with 'completion-score (flex-score-falloff): New variable. 2019-02-13 João Távora Add a new 'flex' completion style * lisp/minibuffer.el (completion-styles-alist): Add flex. (completion-substring--all-completions): Accept transform-pattern-fn arg. (completion-flex-all-completions, completion-flex-try-completion) (completion-flex--make-flex-pattern): New functions. 2019-02-13 Eli Zaretskii Avoid crashes upon C-g in nested invocations of 'read_char' * src/keyboard.c (read_char, read_event_from_main_queue): Ensure the global value of getcjmp is restored when the stack is unwound by the likes of 'throw', by calling record_unwind_protect_ptr instead of restoring the value manually. (Bug#34394) (restore_getcjmp): Argument is now 'void *', to match the signature of record_unwind_protect_ptr. 2019-02-13 Paul Eggert Don’t assume CURRENT_TIME_LIST * lisp/progmodes/cc-cmds.el (c-progress-init) (c-progress-update): * lisp/progmodes/cperl-mode.el (cperl-time-fontification): * lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info) (vhdl-fix-case-region-1): Don’t assume (current-time) returns a list. Fix unlikely bug if we’re called 65536 seconds apart. 2019-02-13 Paul Eggert Don’t assume CURRENT_TIME_LIST * lisp/url/url-util.el (url-lazy-message): Don’t assume (current-time) returns a list. Fix unlikely bug if we’re called 65536 seconds apart. 2019-02-12 Paul Eggert Simplify nnspool-request-newgroups arithmetic * lisp/gnus/nnspool.el (nnspool-request-newgroups): Simplify by compute time stamps as integers, not floats, since integers don’t overflow any more. 2019-02-12 Jackson Ray Hamilton Felipe Ochoa Indent arrows’ expression bodies like function bodies (Bug#25904) * lisp/progmodes/js.el (js--continued-expression-p): Don’t confuse ‘=>’ for a ‘>’ operator. (js--line-terminating-arrow-re): New variable. (js--looking-at-broken-arrow-function-p): New function. (js--proper-indentation): Don’t align arrow functions’ expression bodies starting on new lines like list continuations, instead align them like function bodies (js-indent-align-list-continuation need not be nil). * test/manual/indent/js.js: Add test for Bug#25904. 2019-02-12 Jackson Ray Hamilton js-indent-align-list-continuation: Make variable safe * lisp/progmodes/js.el (js-indent-align-list-continuation): Indicate variable is safe as a file-local variable. This fixes the js-indent-align-list-continuation-nil test when run with make. 2019-02-12 Paul Eggert Make xterm-mouse-truncate-wrap obsolete * lisp/xt-mouse.el (xterm-mouse-truncate-wrap): Now obsolete, since we no longer need to worry about integer overflow. (xterm-mouse-event): Use plain ‘truncate’ instead. 2019-02-12 Glenn Morris * admin/notes/hydra: Small updates. 2019-02-11 Mattias Engdegård Add missing categories L, R, . and SPC to rx * lisp/emacs-lisp/rx.el (rx-categories): Add missing categories L, R, . and SPC. (Bug#34436) 2019-02-11 Paul Eggert Simplify url-digest-auth-make-cnonce * lisp/url/url-auth.el (url-digest-auth-make-cnonce): Simplify by using encode-time instead of round-tripping through a format-time-string and ‘read’. 2019-02-10 Paul Eggert Don’t assume CURRENT_TIME_LIST Use timestamp accessors instead of delving into a timestamp format that is planned to change in a future version. * lisp/find-lisp.el (find-lisp-format-time): * lisp/gnus/gnus-group.el (gnus-group-set-timestamp): * lisp/gnus/gnus-icalendar.el (gnus-icalendar-show-org-agenda): Use encode-time instead of delving into timestamp format. * lisp/gnus/gnus-group.el (gnus-group-timestamp-delta): Use float-time instead of delving into timestamp format. * lisp/gnus/nnmaildir.el (nnmaildir-request-accept-article): Use format-time-string instead of delving into timestamp format. * lisp/gnus/nnmaildir.el (nnmaildir-request-expire-articles): Use time-less-p instead of delving into timestamp format. * lisp/ido.el (ido-wash-history, ido-file-name-all-completions): Use time-equal-p instead of delving into timestamp format. * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times): Use format-time-string to generate POSIX ‘test -t’ format instead of timestamp-format-dependent code along with shell arithmetic that can’t possibly do the right thing on a POSIX platform. 2019-02-10 Paul Eggert Simplify use of encode-time Most uses of (apply #'encode-time foo) can now be replaced with (encode-time foo). Make similar simplifications. * lisp/calendar/time-date.el (date-to-time): * lisp/calendar/timeclock.el (timeclock-when-to-leave) (timeclock-day-base, timeclock-generate-report): * lisp/emacs-lisp/timer.el (timer-set-idle-time): * lisp/eshell/esh-util.el (eshell-parse-ange-ls): * lisp/gnus/gnus-art.el (article-make-date-line): * lisp/gnus/gnus-delay.el (gnus-delay-article) (gnus-delay-send-queue): * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event--decode-datefield): * lisp/gnus/gnus-logic.el (gnus-advanced-date): * lisp/gnus/message.el (message-make-expires-date): * lisp/gnus/nndiary.el (nndiary-compute-reminders): * lisp/mail/ietf-drums.el (ietf-drums-parse-date): * lisp/net/tramp-adb.el (tramp-adb-ls-output-time-less-p): * lisp/org/org-agenda.el (org-agenda-get-timestamps) (org-agenda-get-progress, org-agenda-show-clocking-issues): * lisp/org/org-capture.el (org-capture-set-target-location): * lisp/org/org-clock.el (org-clock-get-sum-start, org-clock-sum) (org-clocktable-steps): * lisp/org/org-colview.el (org-colview-construct-allowed-dates) * lisp/org/org-macro.el (org-macro--vc-modified-time): * lisp/org/org-table.el (org-table-eval-formula): * lisp/org/org.el (org-current-time, org-store-link) (org-time-today, org-read-date, org-read-date-display) (org-display-custom-time, org-time-string-to-time) (org-timestamp-change, org-timestamp--to-internal-time): * lisp/url/url-dav.el (url-dav-process-date-property): * lisp/vc/vc-cvs.el (vc-cvs-annotate-current-time) (vc-cvs-parse-entry): Simplify use of encode-time. * lisp/org/org-clock.el (org-clock-get-clocked-time): (org-clock-resolve, org-resolve-clocks, org_clock_out) (org-clock-update-time-maybe): Avoid some rounding problems with encode-time and float-time. * lisp/org/org-clock.el (org-clock-in, org-clock-update-time-maybe): * lisp/org/org-colview.el (org-columns--age-to-minutes): * lisp/org/org.el (org-get-scheduled-time, org-get-deadline-time) (org-add-planning-info, org-2ft, org-time-string-to-absolute) (org-closest-date): Use org-time-string-to-time instead of doing it by hand with encode-time. * lisp/org/org.el (org-current-time): Simplify rounding. (org-read-date): Avoid extra trip through encode-time. 2019-02-10 Paul Eggert Fix doc string treatment of integer overflow * lisp/calendar/cal-dst.el (calendar-dst-find-startend): Fix doc string. 2019-02-10 Paul Eggert Prefer encode-time to its alias * lisp/calendar/icalendar.el, lisp/calendar/timeclock.el: * lisp/emacs-lisp/timer.el, lisp/gnus/gnus-delay.el: * lisp/gnus/gnus-sum.el, lisp/gnus/nndiary.el: * lisp/gnus/nnrss.el, lisp/net/newst-backend.el: * lisp/net/rcirc.el, lisp/obsolete/xesam.el: * lisp/org/org-agenda.el, lisp/org/org-clock.el: * lisp/org/org-element.el, lisp/org/org-timer.el: * lisp/org/org.el, lisp/progmodes/flymake.el: * lisp/url/url-cache.el, lisp/url/url-cookie.el: Use encode-time instead of its alias seconds-to-time. 2019-02-10 Stefan Monnier * test/lisp/emacs-lisp/package-tests.el: Allow extra extras (package-test--compatible-p): New function. (package-test-desc-from-buffer, package-test-install-single): Use it. (package-x-test-upload-buffer, package-x-test-upload-new-version): Don't burp in presence of extra extras. 2019-02-10 Mattias Engdegård Document that [:cntrl:] does not match DEL (Bug#34391) * doc/lispref/searching.texi (Character Classes): * lisp/emacs-lisp/rx.el (rx): Document that [:cntrl:] excludes DEL. * test/src/regex-emacs-tests.el (regex-tests-PTESTS-whitelist): Swap misplaced comments and fix wrong code for DEL. 2019-02-10 João Távora Properly remove stale Flymake diagnostics on :region reports Among other bugs fixed, modifying a list structure while iterating it is a no-no. This would again cause duplicate diagnostics. See https://github.com/joaotavora/eglot/issues/223 for an example. * lisp/progmodes/flymake.el (Version): Bump to 1.0.5 (flymake--handle-report): Use cl-loop. 2019-02-10 Eli Zaretskii Unbreak the Cygw32 build * src/emacs.c (main) [HAVE_NTGUI]: Remove code that is only for WINDOWSNT or condition it on WINDOWSNT. (Bug#34409) 2019-02-10 João Távora Cleanup stale diagnostics on Flymake restart Not doing so would cause duplicate diagnostics. See https://github.com/joaotavora/eglot/issues/223 for an example. * lisp/progmodes/flymake.el (Version): 1.0.4 (flymake-mode): Cleanup overlays before starting Flymake. 2019-02-09 Paul Eggert * lisp/ecomplete.el (ecomplete-add-item): Simplify. 2019-02-09 Paul Eggert Don’t assume CURRENT_TIME_LIST * lisp/gnus/gnus-delay.el (gnus-delay-send-queue): * lisp/gnus/nnmail.el (nnmail-activate): * lisp/mh-e/mh-alias.el (mh-alias-tstamp): * lisp/net/newst-backend.el (newsticker--cache-item-compare-by-time): Use time-less-p instead of assuming timestamp format. 2019-02-08 Alex Branham Fix byte compile warnings in checkdoc.el * lisp/emacs-lisp/checkdoc.el (checkdoc-file-comments-engine): Fix byte compile warnings by requiring lisp-mnt top-level, remove XEmacs compatibility code. Bug#34290 2019-02-08 Tassilo Horn Impl. json-pretty-print with replace-region-contents + minimization * lisp/json.el (json-pretty-print): Use the new replace-region-contents. Add prefix arg for minimzation. (json-pretty-print-buffer): Add prefix arg for minimzation. (json-pretty-print-buffer-ordered): Add prefix arg for minimzation. (json-pretty-print-ordered): Add prefix arg for minimzation. 2019-02-08 Tassilo Horn Add new function replace-buffer-contents * src/editfns.c (Freplace_buffer_contents): Use lower value of too_expensive and enable heuristic. * lisp/subr.el (replace-region-contents): New convenient wrapper function around replace-buffer-contents. 2019-02-08 Stefan Monnier * lisp/emacs-lisp/package.el: Improve generated foo-pkg.el (package-generate-description-file): Make first line more informative. (package-buffer-info): Include keywords, to more closely match elpa.git's archive--metadata. 2019-02-08 Glenn Morris Merge from origin/emacs-26 0cd7b52 (origin/emacs-26) Minor improvements to do strings in callproc.c b8c7017 Improve documentation of 'date-to-time' and 'parse-time-string' 46095a7 Fix downloading of URLs that end in a slash 3b60a0a * doc/misc/eww.texi (Basics): Fix eww keybindings. (Bug#34291) 8e22025 Fix process-thread docstring 459b669 Fix failures of vc-find-revision with non-ASCII file names e9ff190 * doc/lispref/tips.texi (Documentation Tips): Fix quotes. (B... 3e49a08 ; * src/coding.h (struct coding_system): Fix a typo in a comm... b657286 Add documentation for tabulated-list functions in the elisp m... 6e0f67b Fix URL in ucs-normalize.el ce3ae1f * etc/PROBLEMS: Amend entry for profiler bug #34235 to mentio... # Conflicts: # doc/lispref/os.texi 2019-02-08 Glenn Morris Merge from origin/emacs-26 9d87ba1 * etc/PROBLEMS: Mention profiler-report bug (Bug#34235). 2019-02-08 Robert Pluim Unify three font info structures * src/ftfont.h (struct font_info): New type, unifies similar types from ftcrfont.c, ftfont.c and xftfont.c * src/xftfont.c (struct xftfont_info): Remove, replace with struct font_info. Adjust all uses. * src/ftcrfont.c (struct ftcrfont_info): Likewise. * src/ftfont.c (struct ftfont_info): Likewise. (cherry picked from commit 9e0d69b5a17a0fa3b0dd099a51584a85f3ddb5bf) 2019-02-08 Robert Pluim Unify three font info structures * src/ftfont.h (struct font_info): New type, unifies similar types from ftcrfont.c, ftfont.c and xftfont.c * src/xftfont.c (struct xftfont_info): Remove, replace with struct font_info. Adjust all uses. * src/ftcrfont.c (struct ftcrfont_info): Likewise. * src/ftfont.c (struct ftfont_info): Likewise. 2019-02-07 Eli Zaretskii Minor fixes for last change * etc/NEWS: Announce the change in EWW download behavior. * lisp/net/eww.el (eww-download): Doc fix. (Bug#34291) 2019-02-07 Nick Drozd Download of URL in EWW falls back on current URL * lisp/net/eww.el (eww-download): If there's no URL at point, download the current URL instead. Previous behavior was to signal an error if there was no URL at point. (Bug#34291) * doc/misc/eww.texi (Basics): Update documentation. 2019-02-07 Eli Zaretskii Minor fix for unexec builds. * src/emacs.c (main): Fix assertions and logic for pdump loading in builds that can both unexec and pdump. 2019-02-07 Eli Zaretskii Avoid segfaults on MS-Windows in enexec'ed Emacs * src/emacs.c (main) [WINDOWSNT]: Fix logic of using dynamic heap in unexec case. (Bug#34277) 2019-02-07 Dmitry Gutov Avoid unnecessary consing in project--files-in-directory * lisp/progmodes/project.el (project--remote-file-names): New function. (project--files-in-directory): Use it. 2019-02-07 Ian Dunn Add vc-hg-revert-switches * lisp/vc/vc-hg.el (vc-hg-revert-switches): New option. (vc-hg-revert): Use it. 2019-02-07 Dmitry Gutov Rename multifile.el to fileloop.el * lisp/multifile.el: Rename to fileloop.el as discussed in https://lists.gnu.org/archive/html/emacs-devel/2018-12/msg00475.html. Update symbol prefixes and all callers 2019-02-07 Aurelien Aptel Revert "Fix typo in add-hook doc string" This reverts commit 7fd2ad755e7fa599697648ac4c971e834de75bf3. 2019-02-06 Juri Linkov João Távora Make window choice in xref commands configurable Previously, it wasn't easy to tell xref.el commands like xref-find-definitions or xref-find-definitions-other-window how to choose a window for the *xref* buffer or how to find windows for displaying the results after choosing a candidate. This patch makes that task easier, but keeps the current behaviour intact. * lisp/progmodes/xref.el (xref--show-pos-in-buf): Simplify. 2019-02-06 Robert Pluim Add dwim function for inserting @ref variants * lisp/textmodes/texinfo.el (texinfo-insert-dwim-@ref): New function. Insert @ref variant based on surrounding context. (texinfo-mode-map): Add binding for texinfo-insert-dwim-@ref. * etc/NEWS: Describe new texinfo dwim reference functionality. 2019-02-06 Aurelien Aptel Fix typo in add-hook doc string * lisp/subr.el (add-hook): fix typo in doc string. 2019-02-06 Eli Zaretskii Unbreak interactive invocation of temacs on MS-Windows * src/emacs.c (main) [WINDOWSNT]: Allow to invoke temacs interactively without the --temacs= option. 2019-02-06 Eli Zaretskii Prevent segfaults when running inside docker * src/coding.c (syms_of_coding): New symbol Qus_ascii. (reset_coding_after_pdumper_load): Call set-safe-terminal-system-internal to set up safe_terminal_coding after restoring from pdump file. Reported by Philippe Vaucher . 2019-02-06 Michael Albinus Fix Bug#34196 * lisp/autorevert.el (auto-revert-buffers): Handle buffers with a remote default-directory only, when they are connected. (Bug#34196) * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection): Set "connected" property. * lisp/net/tramp.el (tramp-process-actions): Revert change from 2019-02-04. Bug#34196 will be solved in autorevert.el. 2019-02-05 Robert Pluim Fix network stream tests * test/lisp/net/network-stream-tests.el (make-ipv6-tcp-server-with-unspecified-port): Skip if IPv6 is not available. (make-ipv6-tcp-server-with-specified-port): Likewise. (echo-server-with-local-ipv6): Likewise. 2019-02-04 Glenn Morris * make-dist: Prefer a temporary manifest file. This prevents the manifest cluttering up the build tree, and possibly getting stale if --no-update is used. 2019-02-04 Eli Zaretskii Avoid segfaults due to image cache being cleared during redisplay * src/xdisp.c (redisplay_internal): Set the inhibit_clear_image_cache flag of a frame while its windows are being redisplayed, and reset the flag after the call top update_frame returns. * src/image.c (clear_image_cache): Do nothing if the frame's inhibit_clear_image_cache flag is set. (Bug#34256) * src/frame.h (struct frame): New flag inhibit_clear_image_cache. 2019-02-04 Robert Pluim Don't map imaps to 993 anymore except on old Windows versions 'open-network-stream' will do the imaps service lookup itself, and using 993 forced the user to use the numeric value in .authinfo for certificate lookups. * lisp/gnus/nnimap.el (nnimap-map-port): Only do mapping for Windows XP or earlier. * etc/NEWS: Describe imaps mapping change. 2019-02-04 Eli Zaretskii Support (locale-info 'paper) on MS-Windows * src/w32proc.c (LOCALE_IPAPERSIZE): Define if undefined. (nl_langinfo): Support _NL_PAPER_WIDTH and _NL_PAPER_HEIGHT like glibc does. * src/fns.c (Flocale_info): Update the doc string. * nt/inc/langinfo.h: Add _NL_PAPER_WIDTH and _NL_PAPER_HEIGHT to the enumeration. (_NL_PAPER_WIDTH, _NL_PAPER_HEIGHT): Define namesake macros. * nt/mingw-cfg.site (emacs_cv_langinfo__nl_paper_width): Set to 'yes'. * doc/lispref/nonascii.texi (Locales): Update the documentation of 'locale-info' for the argument of 'paper'. * etc/NEWS: Update the locale-info entry. 2019-02-04 Federico Tedin Allow doc-view to open password-protected PDF files (bug#33684) * lisp/doc-view.el (doc-view-ghostscript-options): Removed "-sDEVICE" option. (doc-view-ghostscript-device): New customizable variable, passed as "-sDEVICE" option to GhostScript. (doc-view-pdf-password-protected-ghostscript-p): New function. (doc-view-pdf->png-converter-ghostscript): Can now open password-protected PDF files. (doc-view-pdfdraw-program-subcommand): New function. (doc-view-pdf-password-protected-pdfdraw-p): New function. (doc-view-pdf->png-converter-mupdf): Can now open password-protected PDF files. * etc/NEWS: Mention new doc-view-mode feature. 2019-02-04 Michael Albinus Fix Bug#34196 * lisp/net/tramp.el (tramp-process-actions): Disable `global-auto-revert-mode' temporarily. (Bug#34196) 2019-02-04 Michael Albinus Improve Tramp host name completion * lisp/net/tramp-rclone.el (tramp-default-host-alist): Add empty host. * lisp/net/tramp.el (tramp-parse-auth-sources): Require :port. 2019-02-04 Robert Pluim Use IPv6 localhost when family is 'ipv6 This fixes Bug#34193 * src/process.c (Fmake_network_process): Explicitly use ::1 when using IPv6 with 'local. Update docstring. * test/lisp/net/network-stream-tests.el (make-ipv6-tcp-server-with-unspecified-port): (make-ipv6-tcp-server-with-specified-port): Test creating ipv6 local server. (make-server): Add optional family argument, default ipv4 (echo-server-with-local-ipv4): Test connecting to 'local ipv4 (echo-server-with-local-ipv6): Test connecting to 'local ipv6 * doc/lispref/processes.texi (Network Processes): Describe behavior when using 'local. * etc/NEWS: Document new 'make-network-process' behavior when connecting to 'local with ipv6. 2019-02-03 Juri Linkov * lisp/tar-mode.el (tar-extract): Call tar--try-jka-compr (bug#34251) * lisp/tar-mode.el (tar--try-jka-compr): New function copied from archive-try-jka-compr. * lisp/arc-mode.el (archive-try-jka-compr): Set buffer-multibyte to t instead of let-binding coding-system-for-read to 'no-conversion. * test/data/decompress/tg.tar.gz: * test/data/decompress/zg.zip: New fixtures. * test/lisp/arc-mode-tests.el (arc-mode-test-zip-extract-gz): * test/lisp/tar-mode-tests.el (tar-mode-test-tar-extract-gz): New tests. * test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock) (diff-mode-test-font-lock-syntax-one-line): Skip unless shell and diff executables are found. 2019-02-03 Michael Albinus Work on accept-process-output in Tramp * lisp/net/tramp.el (tramp-accept-process-output): Rework timer handling. (tramp-call-process): Adapt VEC if nil. (tramp-interrupt-process): Use `tramp-accept-process-output'. (tramp-process-lines): New defun. * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): Use it. * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch): Use timeout 0 in `tramp-accept-process-output'. * test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Move up. (tramp-test29-start-file-process, tramp-test30-make-process) (tramp-test32-shell-command) (tramp--test-shell-command-to-string-asynchronously): Use it. (tramp-test35-remote-path): Suppress warning. (tramp--test-asynchronous-requests-timeout): New defconst. (tramp-test43-asynchronous-requests): Skip if not the only test. Use `tramp--test-asynchronous-requests-timeout'. Remove instrumentation. Use `start-process-shell-command' for watchdog. Add timeout in timer function. Print status messages. Remove file operations from sentinel. Suppress timers in `accept-process-output'. 2019-02-02 Paul Eggert Support (locale-info 'paper) on GNU platforms * configure.ac (HAVE_LANGINFO__NL_PAPER_WIDTH): New macro. * src/fns.c (Flocale_info) [HAVE_LANGINFO__NL_PAPER_WIDTH]: Get paper width and height from locale. 2019-02-02 Juri Linkov * test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock): New test. (diff-mode-test-font-lock-syntax-one-line): New test for one line. * test/data/vc/diff-mode/hello_world.c: * test/data/vc/diff-mode/hello_world_1.c: * test/data/vc/diff-mode/hello_emacs.c: * test/data/vc/diff-mode/hello_emacs_1.c: New fixtures. * lisp/vc/diff-mode.el (diff-syntax-fontify): Move remove-overlays from diff-syntax-fontify-hunk. (Bug#33567) (diff-syntax-fontify-hunk): Remove VISIT arg from insert-file-contents. 2019-02-02 Paul Eggert Update from Gnulib This incorporates: 2019-02-02 dtoastr, ftoastr, ldtoastr: port to c-strtod changes 2019-02-01 c-strtod, c-strtold: use the bug fixes 2019-01-30 strtold: New module * doc/misc/texinfo.tex, lib/ftoastr.c, lib/regexec.c, lib/stdlib.in.h: * m4/stdlib_h.m4: Copy from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * m4/c-strtod.m4: Remove. 2019-02-02 Paul Eggert Fix unlikely user-full-name integer overflow * src/editfns.c (Fuser_full_name): Don’t assume uid fits into fixnum. 2019-02-02 Eli Zaretskii Prevent segfault in bootstrap-emacs on MinGW * src/emacs.c (main) [WINDOWSNT]: Fix logic of determining by argv[0] whether to use the static heap. (Bug#34277) 2019-02-02 Felicián Németh Fix Bug#34221 * lisp/progmodes/project.el (project--files-in-directory): Support remote files. (Bug#34221) 2019-02-02 Martin Rudalics Fix window splitting behavior of 'display-buffer-at-bottom' * lisp/window.el (display-buffer-at-bottom): Never split an arbitrary bottom window. Try to split the frame's main window instead (Bug#33870). 2019-02-02 Martin Rudalics Fix bugs caused by running window change functions during redisplay * src/xdisp.c (redisplay_internal): Run window change functions before updating the display so changes induced by these functions can get caught by redisplay (Bug#34138). * src/window.c (run_window_change_functions): Bind Qinhibit_redisplay to avoid that the minibuffer window gets resized while running window change functions (Bug#34179, Bug#34260). 2019-02-01 Glenn Morris * .gitignore: Add MANIFEST. * make-dist: Avoid "Bad fd number" error with dash. 2019-02-01 Glenn Morris * make-dist: Remove references to src/stamp-h.in. This file was removed two years ago in 2f89350. 2019-02-01 Glenn Morris * make-dist: Fix --no-update with no pre-existing MANIFEST. 2019-02-01 Paul Eggert Restore SETFATTR substitution * configure.ac (SETFATTR): Restore the AC_SUBST of this that was inadvertently removed when pdumper support was added. Need for ./configure --with-dumping=unexec on Fedora 29. 2019-02-01 Paul Eggert Make make-dist more automatic Simplify make-dist maintenance by having it generate its list of files more automatically. Put the list of distributed files into a file MANIFEST that can be used in the unusual situations when you’re making a distribution without having access to a Git repository. * make-dist (top_level_ChangeLog): Now nonempty if the distribution tarball will contain a ChangeLog, instead of being nonempty when a ChangeLog is requested, Git is present and a readable ChangeLog exists. The new interpretation makes the script a bit easier to follow. (possibly_non_vc_files, info_files, mkdir_verbose) (file_to_skip, MANIFEST_subdir_sed, tempsubdirs): New variables. (MANIFEST): Update and use this file, which now records what files are distributed. (top_level, subdir, files, file): Remove. 2019-02-01 Glenn Morris * configure.ac (emacs_config_features): Add pdumper and unexec. 2019-02-01 Paul Eggert Rename CANNOT_DUMP to HAVE_UNEXEC * configure.ac (CANNOT_DUMP): Remove. All uses removed, or changed to the negative of with_unexec. (HAVE_UNEXEC): New macro. All uses of CANNOT_DUMP changed to the negative of this macro. 2019-02-01 Paul Eggert Omit some linker hacks if not doing unexec * configure.ac (LDFLAGS, LD_SWITCH_SYSTEM_TEMACS): Omit some funky linker flags if not supporting unexec. Use macOS linker hacks only if needed * configure.ac: On darwin, link with -fno-pie and -headerpad only if configuring with unexec. 2019-02-01 Paul Eggert Stop using macOS -prebind option * configure.ac (LD_SWITCH_SYSTEM_TEMACS): Remove -prebind, which has been obsolete and ineffective since Mac OS X 10.4 (2005), which was never necessary for correct operation, and which now generates annoying warnings. Problem reported by Robert Pluim in: https://lists.gnu.org/r/emacs-devel/2019-01/msg00761.html 2019-02-01 Paul Eggert Merge from origin/emacs-26 6c6b540711 Correct the docs of inserting kmacro counter 32555daf4c * doc/misc/calc.texi (Algebraic Tutorial): Fix a typo. (B... 2019-02-01 Paul Eggert Merge from origin/emacs-26 7ba8f80398 Avoid errors in 'rmail-get-new-mail' 9c8412a0b8 Fix process-contact bug with TCP connections # Conflicts: # src/process.c 2019-02-01 Mattias Engdegård Make the rx operators \? and \?? behave correctly * lisp/emacs-lisp/rx.el (rx-kleene): Treat \? and \?? like ? and ?? (Bug#34100). * test/lisp/emacs-lisp/rx-tests.el: Add tests for all repetition operators. 2019-01-31 Dmitry Gutov js--re-search-backward-inner: Fix infloop Fix JS indentation infloop reported in https://github.com/mooz/js2-mode/issues/513. * lisp/progmodes/js.el (js--re-search-backward-inner): Account for multiline string literals. * test/manual/indent/js.js: New test example. 2019-01-31 Paul Eggert Prefer static to extern where either will do * src/charset.c (charset_table_size): * src/pdumper.c (dump_private): * src/sysdep.c (init_sigsegv): * src/window.c (old_selected_window): Now static. * src/charset.c (charset_table_size): Now int, since the value always fits in int. * src/gtkutil.c (xg_gtk_initialized): Now present only if HAVE_XWIDGETS, to make it clearer that this is an xwidgets hack. All uses changed. * src/lread.c (ndefsubr): Remove; unused. * src/pdumper.h: Use usual GNU indenting style for functions, since my static-vs-extern checking hack relies on it. (dump_public): Always declare; simpler and doesn’t hurt. (pdumper_handle_page_fault): Remove unused decl. 2019-01-31 Paul Eggert Widen modiff counts to avoid wraparound Widen modification counts to at least 64 bits, to make wraparound practically impossible. * doc/lispref/buffers.texi (Buffer Modification): Don’t say the modification-count can wrap around. * src/buffer.c (Frestore_buffer_modified_p, Fbuffer_swap_text) (modify_overlay): * src/insdel.c (insert_1_both, insert_from_string_1) (insert_from_gap, insert_from_buffer_1) (adjust_after_replace, replace_range, replace_range_2) (del_range_2, modify_text): * src/textprop.c (modify_text_properties): Use modiff_incr instead of incrementing directly. (Fbuffer_modified_tick, Fbuffer_chars_modified_tick): Don’t assume modification counts fit into fixnums. * src/buffer.h (struct buffer_text, struct buffer): * src/cmds.c (internal_self_insert): * src/fileio.c (Finsert_file_contents): * src/indent.c (last_known_column_modified): * src/keyboard.c (command_loop_1): * src/marker.c (cached_modiff): * src/syntax.c (find_start_modiff, parse_sexp_propertize) (find_defun_start): * src/window.h (struct window): Use modiff_count for modification counts. * src/editfns.c (Fsubst_char_in_region): Copy instead of incrementing modification counts, since integer overflow checking is not needed here. * src/lisp.h (modiff_count): New type. (modiff_incr, modiff_to_integer): New inline functions. * src/pdumper.c (dump_buffer): Update hash. 2019-01-31 Paul Eggert Minor pdumper simplification * src/pdumper.c (dump_roots, pdumper_load): Simplify initialization. (dump_bitset_init, pdumper_load): Omit unnecessary assignments. (dump_bitset_destroy): Remove; never called. All callers removed. (dump_do_dump_relocation, pdumper_load): Add FIXME comment. (pdumper_load): Simplify by assuming C99. Remove unused local. 2019-01-30 Glenn Morris Merge from origin/emacs-26 b94d767 (origin/emacs-26) Minor copyedits in last manual change 73508e6 Improve documentation of face numbers bf235ce * doc/emacs/custom.texi (Authentication): Refer to the "Help ... ceccb3c New node Authentication in the Emacs manual 9078f34 Fix a loop in c-fl-decl-start. This fixes bug #34186. a177fe7 Fix LaTeX output of month and day from cal-tex.el 90177d7 Avoid elisp crash for OpenPGP User IDs with no e-mail address 68e55a0 image-mode: Do not use default scaling (bug#33990) b6c762a create-image: Expand documentation (bug#33990) 928d342 Improve documentation of 'isearch-filter-predicate' 9034dd6 Fix cursor column positioning on Grep hits # Conflicts: # doc/emacs/custom.texi 2019-01-30 Michael Albinus Fix problem in filenotify-tests * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch): Adapt `accept-process-output' argument. * test/lisp/filenotify-tests.el (file-notify--deftest-remote): Remove :unstable tag. 2019-01-30 Michael Albinus * lisp/net/tramp-rclone.el (tramp-rclone-mounted-p): Fix thinko. 2019-01-30 Michael Albinus * test/lisp/net/tramp-tests.el (tramp-test43-asynchronous-requests): Tag it :unstable also for emba. Adapt `accept-process-output' arguments. 2019-01-29 Michael Albinus * test/lisp/filenotify-tests.el (file-notify--deftest-remote): Tag as :unstable. 2019-01-29 Robert Pluim Move some descriptions to the right section * etc/NEWS: Move ibuffer and gnus change descriptions to mode-specific section. 2019-01-29 Eli Zaretskii Fix documentation of pdump file installation * doc/lispref/internals.texi (Building Emacs): Correct the directory where the pdump file is installed. (Bug#34244) 2019-01-29 Michael Albinus Adapt `accept-process-output' arguments in tramp-tests * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process, tramp-test31-interrupt-process) (tramp-test32-shell-command) (tramp--test-shell-command-to-string-asynchronously) (tramp-test43-asynchronous-requests): Adapt `accept-process-output' arguments. 2019-01-28 Juri Linkov Small fixes * lisp/generic-x.el (etc-passwd-generic-mode): Add comment. (Bug#34225) * lisp/vc/diff-mode.el (diff-syntax-fontify-hunk): Set overlay property 'diff-mode to 'syntax. (Bug#33567) (diff-syntax-fontify-props): Reset buffer-file-name to nil. 2019-01-28 Glenn Morris * src/Makefile.in (clean): Delete versioned pdmp files. Else build number increments without limit even in clean builds. 2019-01-28 Juri Linkov More checks for live buffers. * lisp/dired-x.el (dired-jump): Check if archive/tar superior buffer was killed by the user. * lisp/progmodes/ruby-mode.el (ruby-flymake--helper): Check if source buffer was killed by the user immediately after visiting and before process finishes. 2019-01-28 Juri Linkov * lisp/generic-x.el (etc-passwd-generic-mode): Support backups of passwd, group and shadow /etc files. (Bug#34225) 2019-01-28 Eli Zaretskii Fix last change in xfaces.c * src/xfaces.c (init_xfaces): Don't rely of 'face' property of a face to be a natural number. 2019-01-28 Michael Albinus * test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults): Adapt test. 2019-01-28 Michael Albinus Adapt accept-process-output timeouts in Tramp * lisp/net/tramp.el (tramp-accept-process-output): Make timeout optional. Do not set explicit timer. (tramp-action-out-of-band, tramp-process-one-action) (tramp-wait-for-regexp, tramp-interrupt-process): * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch): * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch): * lisp/net/tramp-smb.el (tramp-smb-action-get-acl) (tramp-smb-action-set-acl, tramp-smb-wait-for-output): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-action-sudo): Adapt `accept-process-output' calls wrt timeouts. 2019-01-28 Eli Zaretskii Fix bug with face-id after restoring from pdump * src/xfaces.c (init_xfaces): New function. * src/emacs.c (main) [HAVE_PDUMPER]: If dumped with pdumper, call init_xfaces. (Bug#34226) * src/lisp.h (init_xfaces) [HAVE_PDUMPER]: Add prototype. * test/lisp/faces-tests.el (faces--test-face-id): New test for bug#34226. 2019-01-28 Sam Steingold links: also link pdmp 2019-01-28 Alan Mackenzie Detect when we hit limit in backward search in c-just-after-func-arglist-p This fixes a bug reported by Yasushi SHOJI to emacs-devel on 2018-11-26, where wrong analysis and fontification occurred. * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): Add new parameter HIT-LIM which, if non-nil causes the function to return nil rather than 'same when we reach the backward search limit without finding the beginning of statement. (c-just-after-func-arglist-p): Supply argument t to this new parameter in call to c-beginning-of-statement-1. 2019-01-27 Paul Eggert Update from Gnulib This incorporates: 2019-01-26 getloadavg: Add support for Android 2019-01-24 fchownat: Fix compilation error on Android 4.3 2019-01-24 mbtowc: Fix compilation error on Android 4.3 2019-01-24 random: Fix compilation error on Android 4.3 2019-01-24 renameat: Fix compilation error on Android 4.3 2019-01-24 unlinkat: Fix compilation error on Android 4.3 2019-01-19 gettext: support disabling use of VLAs 2019-01-17 sys_stat: Fix warning on OS/2 kLIBC 2019-01-17 fcntl: Fix syntax error (regression from 2018-10-05) 2019-01-10 verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ 2018-12-22 stdioext: port to newer 32-bit Android 2018-12-16 libc-config: Support HP-UX cc in C99 mode. * build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex: * lib/cdefs.h, lib/fcntl.c, lib/getloadavg.c, lib/gettext.h: * lib/regexec.c, lib/stdio-impl.h, lib/stdio.in.h, lib/stdlib.in.h: * lib/sys_stat.in.h, lib/unistd.in.h, lib/verify.h, m4/stdlib_h.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2019-01-27 Paul Eggert forward-line now works with bignums * src/cmds.c (Fforward_line): Support bignum arg. (scan_newline): Return void since no caller was using the return value. * src/search.c (find_newline, scan_newline_from_point) (find_newline1): Return the number of newlines counted, not the count shortage, so that the return value always fits in ptrdiff_t even if the original count was a bignum. All callers changed. * test/src/cmds-tests.el (forward-line-with-bignum): New test. 2019-01-27 Eli Zaretskii Improve pdump load diagnostics * src/emacs.c (load_pdump): Improve diagnostics when pdump file fails to load correctly. 2019-01-26 Eli Zaretskii * src/emacs.c (load_pdump): Fix a thinko in last change. 2019-01-26 Eli Zaretskii Improve pdump file search and 'pdumper-stats' * src/pdumper.c (pdumper_record_wd): New function. (pdumper_load): Use xstrdup instead of strdup, as on MS-Windows the latter uses the wrong heap. Don't free a NULL pointer. * src/emacs.c (load_pdump): Support the use case where the Emacs binary was renamed: look in exec-directory for the pdump file whose base name is derived from the Emacs binary, in addition to just emacs.pdmp. (main): Call pdumper_record_wd to prepend CWD to the pdump file name. * src/fileio.c (file_name_absolute_p): Now extern. * src/lisp.h (file_name_absolute_p): Add prototype. * src/pdumper.h (pdumper_record_wd): Add prototype. * doc/emacs/cmdargs.texi (Initial Options): Update the documentation of where Emacs looks for the dump file. 2019-01-26 Eli Zaretskii Fix face initializations in pdump'ed Emacs * src/dispnew.c (init_display_interactive): Call init_faces_initial in the daemon if dumped with pdumper. (Bug#34114) 2019-01-25 Stefan Monnier * lisp/loadup.el (load-file-name): Set back to nil 2019-01-25 João Távora Adjust previous electric.el and elec-pair.el change This fixes a serious bug introduced previously electric-pair-inhibit-if-helps-balance and electric-pair-skip-if-helps-balance, whereby "innocent" markers were being pushed by those function's new save-change-and-restore semantics. The fix can probably still be improved. It also adds comments to parts of the code, where deemed necessary. * lisp/elec-pair.el (electric-pair--insert): Add comment. (electric-pair--save-literal-point-excursion): New helper macro. (electric-pair-inhibit-if-helps-balance) (electric-pair-skip-if-helps-balance): Don't use insert-before-markers since it may hurt other markers that have nothing to do with the 'save-excursion'. (electric-pair-post-self-insert-function): Use electric-pair--save-literal-point-excursion. * lisp/electric.el (electric-indent-post-self-insert-function): Remove lexical variable. 2019-01-25 João Távora Use minibuffer-default in completion-all-sorted-completions (bug#34083) * lisp/minibuffer.el (completion-all-sorted-completions): Sort with the default on top. 2019-01-25 Alex Branham Make tabulated-list-mode-map inherit from special-mode-map * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Use 'make-composed-keymap'. Bug #30452 2019-01-25 Benjamin Riefenstahl image-mode: Make parameters buffer-local Image parameters were treated as image specific, but because they actually were global variables, their behaviour transfered to new images. * lisp/image-mode.el (image-transform-resize, image-transform-scale) (image-transform-rotation): Declare with defvar-local. (Bug#33990) 2019-01-24 Michael Albinus Some fixes in tramp-smb.el * lisp/net/tramp-smb.el (tramp-smb-errors): Add "NT_STATUS_NOT_A_DIRECTORY". (tramp-smb-maybe-open-connection): Respect ´non-essential'. Do not record smbserver-version. (tramp-smb-wait-for-output): Improve reading pending output. 2019-01-24 Eli Zaretskii Avoid byte-compiler warning in starttls.el * lisp/net/network-stream.el (starttls-open-stream): Declare to avoid compilation warning. 2019-01-24 Robert Pluim Check for client certificates when using GnuTLS This fixes Bug#33780, and extends the documentation to describe how to enable use of client certificates. * lisp/net/network-stream.el (network-stream-certificate): Correct order of parameters to plist-get. (network-stream-open-tls): Pass all received parameters to open-gnutls-stream as plist, not just :nowait. * lisp/net/gnutls.el (open-gnutls-stream): Change optional nowait arg to be plist. Derive nowait and client certificate(s) and keys(s) from plist (maybe via auth-source) and pass to gnutls-boot-parameters and gnutls-negotiate. (network-stream-certificate): Add declare-function form for it. * doc/misc/auth.texi (Help for users): Describe format to use for client key/cert specification. * doc/misc/emacs-gnutls.texi (Help For Developers): Describe usage of optional plist argument. Add crossreference to description of .authinfo format for client key/cert specification. * etc/NEWS: Describe new client certificate functionality for 'open-network-stream'. * test/lisp/net/network-stream-tests.el: Add require of network-stream. (connect-to-tls-ipv4-nowait): Bind network-security-level to 'low in order to bypass nsm prompting. (connect-to-tls-ipv6-nowait): Likewise. (open-network-stream-tls-wait): New test. (open-network-stream-tls-nowait): New test. (open-network-stream-tls): New test. (open-network-stream-tls-nocert): New test. (open-gnutls-stream-new-api-default): New test. (open-gnutls-stream-new-api-wait): New test. (open-gnutls-stream-old-api-wait): New test. (open-gnutls-stream-new-api-nowait): New test. (open-gnutls-stream-old-api-nowait): New test. (open-gnutls-stream-new-api-errors): New test. The new tests exercise 'open-network-stream' and the old and new api of 'open-gnutls-stream'. 2019-01-24 Michael Albinus Fix error in Tramp's encoding check * lisp/net/tramp-sh.el (tramp-find-inline-encoding): Use `tramp-get-connection-buffer'. 2019-01-23 Stefan Monnier doc-view-presentation, doc-view-fit-window-to-page, and use mutool * lisp/doc-view.el (doc-view-pdfdraw-program): Use "mutool" if available. (doc-view-mode-map): Keep default 'g' binding of 'revert-buffer'. Change 'r' binding to 'revert-buffer'. (doc-view-revert-buffer): Make it an obsolete alias. (doc-view--revert-buffer): Rename from doc-view-revert-buffer, change calling convention for use in add-function. (doc-view-fit-window-to-page): New command. (doc-view-pdf->png-converter-mupdf): Make it work with "mutool". (doc-view-mode): Use add-function for revert-buffer-function. (doc-view-presentation-mode-map, doc-view-presentation--src-data): New vars. (doc-view-presentation-exit, doc-view-presentation-mode) (doc-view-presentation--propagate-pn, doc-view-presentation): New functions. 2019-01-23 Stefan Monnier Avoid having to build src/emacs when we just want to `make tags` * Makefile.in (TAGS tags): Remove `src` from the dependencies. * src/Makefile.in (ctagsfiles1): Strip macuvs.h and fingerprint.c. 2019-01-23 Eli Zaretskii Fix build errors with pdump fingerprint on macOS * src/Makefile.in ($(lispsource)/international/charprop.el): Remove macuvs.h from the target list, to avoid circular dependency on macOS. Reported by Alan Third . 2019-01-23 Stefan Monnier Rework last commit to icomplete and minibuffer.el. Rather than let minibuffer-force-complete set up cycling and then undoing it, better tell it directly not to setup cycling. Also be a bit more careful to remove the transient map. Additionally to bug#34077 and bug#34116, this also relates to bug#25644. * lisp/minibuffer.el (completion--flush-all-sorted-completions): Also take down the transient cycling map if applicable. (minibuffer-force-complete): New arg dont-cycle. Set completion-cycling to the actual function that takes down the transient map rather than just t. (minibuffer-force-complete-and-exit): * lisp/icomplete.el (icomplete-force-complete): Use new dont-cycle arg. 2019-01-23 João Távora Force completion in icomplete with C-M-i, but don't cycle (bug#34077) Cycling after forcing a completion with C-M-i in icomplete can be confusing, as it leaves rotated prospects in the minibuffer. In C-x C-f, for example it is very difficult to understand if the prospects refer to subdirectories of the directory being completed to, which happens naturally when the completion is unique; or if they are a cycled version of prospects that match the new completion pattern, in case the completion happens to still match other items. To resolve this confusion, never cycle with C-M-i in icomplete: non-ambiguous cycling can be achieved with C-. and C-, The former behaviour can still be restored with: (define-key icomplete-minibuffer-map (kbd "C-M-i") 'minibuffer-force-complete) * lisp/icomplete.el (icomplete-force-complete): New command. (icomplete-minibuffer-map): Bind C-M-i to icomplete-force-complete. 2019-01-23 João Távora Avoid cycling in minibuffer-force-complete-and-exit (bug#34116) * lisp/minibuffer.el (minibuffer-force-complete-and-exit): Check completion-cycling before minibuffer-force-complete. 2019-01-23 Paul Eggert * src/keyboard.c (read_char): Use CALLN. 2019-01-23 Stefan Monnier * src/emacs.c (load_pdump): Minor simplification. 2019-01-23 Eli Zaretskii Fix compilation of pdumper.c with old buggy GCC * src/pdumper.c (emacs_ptr_at): Renamed from emacs_ptr, to avoid compilation errors with GCC 4.7. Reported by Martin Rudalics . All callers changed. 2019-01-23 Michael Albinus * lisp/net/tramp.el (tramp-set-file-uid-gid): Fix thinko. * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case): Adapt docstring. 2019-01-22 Stefan Monnier * lisp/emacs-lisp/package.el (package--alist): New (package-activate-all): Use it so we only initialize the local part of package.el (this reduces the impact of bug#24467 and speeds up startup). (package-installed-p): Use it so it works even if package is not fully initialized. (package-delete): Use it so we only initialize the local part of package.el. 2019-01-22 Phillip Lord Add hook for all events * lisp/subr.el (input-event-functions): Add input-event-functions * src/keyboard.c (read_char): Call input-event-functions on all hooks 2019-01-22 João Távora electric-layout-mode kicks in before electric-pair-mode This aims to solve problems with indentation. Previously in, say, a js-mode buffer with electric-layout-rules set to (?\{ before after) (?\} before) would produce an intended: function () { } The initial state function () { Would go immediately to the following by e-p-m function () {} Only then would e-l-m be applied to } first, and then again to {. This makes lines indent in the wrong order, which can be a problem in some modes. The way we fix this is by reversing the order of e-p-m and e-l-m in the post-self-insert-hook (and also fixing a number of details that this uncovered). In the end this changes the sequence from function () { By way of e-l-m becomes: function () { The e-p-m inserts the pair function () { } And then e-l-m kicks in for the pair again, yielding the desired result function () { } * lisp/elec-pair.el (electric-pair--insert): Bind electric-layout-no-duplicate-newlines. (electric-pair-inhibit-if-helps-balance) (electric-pair-skip-if-helps-balance): Use insert-before-markers, playing nice with save-excurion. (electric-pair-post-self-insert-function): Go to correct position before checking electric-pair-inhibit-predicate and electric-pair-skip-self predicate. (electric-pair-post-self-insert-function): Increase priority to 50. * lisp/electric.el (electric-indent-post-self-insert-function): Delete trailing space in reindented line only if line was really reindented. Rewrite comment. (electric-layout-allow-duplicate-newlines): New variable. (electric-layout-post-self-insert-function-1): Rewrite comments. Honours electric-layout-allow-duplicate-newlines. Don't reindent previous line because racecar. * test/lisp/electric-tests.el: New test. (plainer-c-mode): Move up. (electric-modes-int-main-allman-style) (electric-layout-int-main-kernel-style): Simplify electric-layout-rules. (electric-layout-for-c-style-du-jour): New helper. (electric-layout-plainer-c-mode-use-c-style): New test. 2019-01-22 João Távora Remove tests of electric-pair-mode and CC-based modes The behaviour previously observed in cc-mode-based-modes (and every other major-mode) when electric-pair-mode or electric-layout-mode is turned on may no longer be observed: this because CC-mode goes around the generic implementation of electric-pair-mode. An alternative is to bind every delimiter key like '{', '}', etc to 'self-insert-command, like most major modes already do, at the cost of losing c-auto-newline functionality (which was incompatible anyway before the recent changes of bug#33794). * test/lisp/electric-tests.el (electric-pair-test-for): No longer set it. (define-electric-pair-test): Use js-mode instead of c++ mode, which broke recently. (whitespace-chomping-2): Add failing C++ test explicitly. (electric-layout-int-main-kernel-style): Use plainer-c-mode. (electric-layout-int-main-allman-style): Deleted. (electric-modes-int-main-allman-style): Renamed from electric-layout-int-main-allman-style. 2019-01-22 Alan Mackenzie Extend electric-pair-mode actions to < and >, and also to ( and ) in literals * lisp/progmodes/cc-cmds.el (c-electric-lt-gt): Actuate electric-pair-mode if a < or > is typed in a context where this is meaningful (#include, or template). (c-electric-paren): Allow electric-pair-mode activity in a comment or string. * lisp/progmodes/cc-defs.el (c-make-keywords-re): Fix a bug where lists of source symbols could get overwritten when parameter adorn is set to 'appendable. * lisp/progmodes/cc-langs.el (c-cpp-include-key): New lang const and var. 2019-01-22 Alan Mackenzie Revert "Fix electric-pair-tests by disabling bug#33794's fix with a variable" This reverts commit be505726b68d407a44fdcd9c7ac1ef722398532d. 2019-01-22 Michael Albinus Make Tramp tests more robust * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name): Bind `tramp-default-method'. (tramp--test-file-attributes-equal-p): New defsubst. (tramp-test19-directory-files-and-attributes): Use it. 2019-01-22 Michael Albinus Respect setgid bit of the upper directory in Tramp * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.4.2-pre". * lisp/net/tramp.el: Bump version to 2.4.2-pre. (tramp-set-file-uid-gid): Respect setgid bit of the upper directory. (tramp-default-file-modes, tramp-handle-insert-file-contents) (tramp-mode-string-to-int, tramp-make-tramp-temp-file): * lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy) (tramp-adb-handle-write-region): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly) (tramp-sh-handle-write-region): Use octal constants. 2019-01-21 Stefan Monnier * lisp/international/titdic-cnv.el: Use lexical-binding (tit-process-body): Remove unused vars 'template' and 'second'. (tsang-quick-converter): Remove unused args 'name' and 'title'. Remove unused var 'slot'. (tsang-b5-converter, quick-b5-converter, tsang-cns-converter) (quick-cns-converter, py-converter, ziranma-converter) (ctlau-converter, ctlau-gb-converter, ctlau-b5-converter): Remove unused args 'name' and 'title'. (miscdic-convert): Remove unused var 'dicbuf'. Don't pass 'name' and 'title' to the conversion function. 2019-01-21 Paul Eggert Simplify pdumper-load via timespectod Suggested by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2019-01/msg00458.html * src/pdumper.c (pdumper_load): Simplify. 2019-01-21 Stefan Monnier * src/pdumper.c (dump_string) [CHECK_STRUCTS]: Fix copy&paste error * lisp/electric.el: Fix typo in last change. 2019-01-21 Stefan Monnier (electric--sort-post-self-insertion-hook): Accept non-symbol functions * lisp/electric.el (electric--sort-post-self-insertion-hook): Don't burp on non-symbol functions. 2019-01-21 Alan Third Fix occasional pdumper/bootstrap error * src/Makefile.in (emacs$(EXEEXT)): Copy the new executable over bootstrap-emacs. 2019-01-21 Michael Albinus * lisp/net/tramp-sh.el (tramp-set-remote-path): Fix usage of tmpfile. 2019-01-21 Michael Albinus Use `inhibit-read-only' in Tramp * lisp/net/tramp.el (tramp-process-actions, tramp-accept-process-output) (tramp-send-string): * lisp/net/tramp-adb.el (tramp-adb-handle-make-process) (tramp-adb-send-command-and-check, tramp-adb-wait-for-output): * lisp/net/tramp-sh.el (tramp-sh-handle-make-process) (tramp-wait-for-output, tramp-send-command-and-check): * lisp/net/tramp-smb.el (tramp-smb-wait-for-output): Use `inhibit-read-only'. 2019-01-20 Michael Albinus Use POSIX "df" in Tramp, if available * lisp/net/tramp-sh.el (tramp-get-remote-df): Support also POSIX.1 "df". (tramp-sh-handle-file-system-info): Adapt accordingly. 2019-01-20 Eli Zaretskii Support native image resizing on MS-Windows * src/w32term.c (x_draw_image_foreground): Scale the image if the requested dimensions are different from the bitmap dimensions. * src/image.c (Fimage_scaling_p): Return t when HAVE_NTGUI. (x_set_image_size) [HAVE_NTGUI]: Record the scaled dimensions in the image struct. * src/dispextern.h (HAVE_NATIVE_SCALING): Define when HAVE_NTGUI as well. * etc/NEWS: Update the announcement of native image scaling. 2019-01-19 Philipp Stephani Improve error data when passing a wrong type to 'sort' (Bug#34104) * src/fns.c (Fsort): Use 'list-or-vector-p' for error message. (syms_of_fns): Define 'list-or-vector-p'. * test/src/fns-tests.el (fns-tests-sort): Extend unit test. 2019-01-19 Paul Eggert pdumper-stats now returns s, not ms * doc/lispref/internals.texi (pdumper-stats): * src/pdumper.c (pdumper_load): Return seconds, not milliseconds. Minimize rounding errors in the usual case. 2019-01-19 Eli Zaretskii Minor cleanup in pdumper.c * src/pdumper.c (subtract_timespec): Function removed. (pdumper_load): Use timespec_sub instead of subtract_timespec. 2019-01-19 Eli Zaretskii Improve 'pdumper-stats' and its documentation * src/pdumper.c (Fpdumper_stats): Improve formatting and wording of the doc string. Decode the pdump file name and expand-file-name it. * doc/lispref/internals.texi (Building Emacs): Document 'pdumper-stats'. 2019-01-19 Eli Zaretskii Unbreak the macOS NS build * src/xdisp.c (expose_window_tree): Declare and define 'f' on NS as well. Reported by Herbert J. Skuhra . 2019-01-18 Dmitry Gutov Misc ignore-related project.el changes * lisp/progmodes/project.el (project-ignores): Don't append the default ignores list, just use vc-directory-exclusion-list. (project--dir-ignores): Use the default ignores if the dir is outside of the current project. (project-files): Use project--dir-ignores to support external roots better. 2019-01-18 João Távora Revert "Remove leftover from previous electric-layout-rules API" This is a backward-incompatible change, and removing it isn't really necessary. This reverts commit 942dad2b519cabddf6caea7641517507dc06944b. 2019-01-18 Stefan Monnier (electric-layout-post-self-insert-function-1): Simplify. Call electric--after-char-pos right from the start, and take advantage of the fact that it guarantees to return the right position or nil. 2019-01-18 João Távora Ensure fns in electric-layout-rules are called in right position * lisp/electric.el (electric-layout-rules): Ensure rules are called from right spot. 2019-01-18 João Távora Remove leftover from previous electric-layout-rules API An element of electric-layout-rules is either a function or a pair (CHAR . WHERE), and WHERE can't be a function anymore. * lisp/electric.el (electric-layout-post-self-insert-function-1): Remove leftover line. 2019-01-18 Paul Eggert Port to platforms where NULL is a pointer * src/image.c (x_create_x_image_and_pixmap): The Picture type is an integer, not a pointer. Come to think of it, Picture is really XID, and as far as I can tell, all-bits-one is the invalid XID, not all-bits-zero. However that is a bigger issue; for now, this patch just unbreaks the build. 2019-01-18 Eli Zaretskii Improve documentation of portable dumping * src/pdumper.c (Fdump_emacs_portable): Improve the doc string and the error messages. * doc/lispref/internals.texi (Building Emacs): Document portable dumping and the 'dump-emacs-portable' function. 2019-01-18 Glenn Morris Merge from origin/emacs-26 b6d78a0 (origin/emacs-26) Fix a typo in ELisp manual c9f6f86 Prevent redrawing if frame is garbaged 00ba226 Attempt to fix hangs on MS-Windows due to C-g b26d637 Fix Calc graph output on MS-Windows 03818b0 Fix a minor mistake in ELisp manual 6ac5985 ; Fix some trivial doc typos 21b9026 * etc/tutorials/TUTORIAL: Fix typo (bug#34049) d223727 Fix UI of Buffer-menu 0f71655 Reinitialize ispell-really-enchant when changing the speller 9845044 Speed up loading css-mode 2019-01-18 Eli Zaretskii Clean up memory allocation and unexec support on MS-Windows * src/w32heap.c (report_temacs_memory_usage): Condition on !CANNOT_DUMP, in addition to ENABLE_CHECKING. (init_heap): Accept an argument, which tells us what heap allocation method to use. (DUMPED_HEAP_SIZE) [CANNOT_DUMP]: Define to a small value, as we don't use dumped_data[] in this case. * src/w32heap.h (init_heap): Adjust prototype. : Remove declaration. * src/emacs.c (main) [WINDOWSNT]: Determine heap allocation method based on whether we are in temacs and whether unexec will be used to dump Emacs. Pass the heap allocation method to init_heap, which is now called after parsing the --temacs=METHOD option. * src/unexw32.c (unexec): Don't fiddle with using_dynamic_heap. : Remove definition. * src/w32proc.c (malloc_before_init, realloc_before_init) (free_before_init): New functions, to catch memory allocation before heap allocation method is set up. 2019-01-17 Dmitry Gutov Rebase project-find-regexp on top of project-files * lisp/progmodes/project.el (project--files-in-directory): New function. (project-files, project-find-regexp): Use it. (project--dir-ignores): New function. (project--find-regexp-in): Remove. (project--process-file-region): New function. (project--find-regexp-in-files): New function. (project-find-regexp, project-or-external-find-regexp): Use it, and project-files as well. 2019-01-17 Dmitry Gutov Make 'project-files' the "canonical" generic of the two * lisp/progmodes/project.el (project-files): Move the actual command building and invocation here. (project-file-completion-table): Delegate to 'project-files'. 2019-01-17 Stefan Monnier * lisp/textmodes/sgml-mode.el: Try and fix bug#33887. Remove redundant :group args. (sgml-syntax-propertize-rules): Speed up processing of most double quotes. 2019-01-17 João Távora Fix electric-pair-tests by disabling bug#33794's fix with a variable The variable c--disable-fix-of-bug-33794, which should be removed in the short term in favor of a permanent solution, is introduced. It is bound to nil by default. This means that breakage is still happening in actual c-mode and c++-mode usage, though the tests no longer show it. To get around this breakage, put (setq c--disable-fix-of-bug-33794 t) In your init file. Evidently, you will lose the fix for bug#33794, but that only affects a small corner case of c-toggle-auto-newline, which is not turned on by default. See https://lists.gnu.org/archive/html/emacs-devel/2019-01/msg00360.html for more information. * lisp/progmodes/cc-cmds.el (c--disable-fix-of-bug-33794): New variable. (c--with-post-self-insert-hook-maybe): New macro. (c-electric-pound, c-electric-brace, c-electric-slash) (c-electric-star, c-electric-semi&comma, c-electric-colon) (c-electric-lt-gt, c-electric-paren): Use it. (c-electric-paren, c-electric-brace): Check c--disable-fix-of-bug-33794. * test/lisp/electric-tests.el (c--disable-fix-of-bug-33794): Forward declare. (electric-pair-test-for) (electric-layout-int-main-kernel-style) (electric-modes-in-c-mode-with-self-insert-command): Use it. 2019-01-17 João Távora Revert "Temporarily comment out CC Mode from tests..." This reverts commit 54f297904e0c641fcfd81f16e9a87177124a27be. 2019-01-17 Martin Rudalics Fix wording in Window Hooks section of Elisp manual * doc/lispref/windows.texi (Window Hooks): Fix wording in description of window change functions. Suggested by Robert Pluim . 2019-01-17 Alan Third Be more specific with XRender bit-depths (bug#34051) * src/image.c (x_create_x_image_and_pixmap): Fail gracefully if a bit depth is requested that XRender doesn't support. 2019-01-17 João Távora Simplify ignored extensions filtering in Icomplete (bug#34070) * lisp/icomplete.el: Use lexical binding. (icomplete-completions): Use minibuffer-completion-predicate to filter out completion-ignored-extensions. 2019-01-17 João Távora Revert "Fix icomplete's cycling when filename filtering kicks in" This reverts commit cdb082322d4209c5104bc1a98b21bf3dd75e8f17, which was a fix for bug#34070. A much better fix to be added soon. 2019-01-17 João Távora Fix flymake-proc--delete-temp-directory if temp dir ends in slash (Bug#34074) Reported by 林宝龙 . * lisp/progmodes/flymake-proc.el (flymake-proc--delete-temp-directory): Use directory-file-name. 2019-01-17 Alan Mackenzie Temporarily comment out CC Mode from tests which are incompatible with it. * test/lisp/electric-tests.el (electric-pair-test-for): comment out c++-mode from the list of modes to be used in tests. (electric-pair-whitespace-chomping-2-at-point-4-in-c++-mode-in-strings) (ert-deftest electric-layout-int-main-kernel-style) (ert-deftest electric-layout-int-main-allman-style): Comment out. 2019-01-17 Glenn Morris Fix --enable-profiling builds (bug#34099) * src/profiler.c (syms_of_profiler_for_pdumper): Only set cpu_log if CPU profiling is enabled. 2019-01-17 Martin Rudalics Expand spectrum of window change functions * src/window.c (run_window_change_functions): Run window change functions for Qwindow_state_change_functions. (resize_frame_windows): Set frame's window_change slot when single-window frames change size. (Qwindow_state_change_functions): New symbol. (Vwindow_state_change_functions): New Lisp variable. * doc/lispref/windows.texi (Selecting Windows): Mention 'window-selection/state-change-functions' and add reference to Window Hooks. (Window Hooks): Document 'window-state-change-functions'. * etc/NEWS: Mention new hook 'window-state-change-functions'. 2019-01-16 Paul Eggert Port pdumper to older GNU/Linux Problem reported by Colin Baxter in: https://lists.gnu.org/r/emacs-devel/2019-01/msg00321.html * src/alloc.c (my_heap_start): Also define if GNU_LINUX && CANNOT_DUMP && DOUG_LEA_MALLOC. 2019-01-16 Daniel Colascione Fix segfault in profiler after pdump load Move initialization of the profiler's hash test to static initialization from the syms function so that pdumper doesn't need to bother capturing it in any special way. * src/profiler.c (cmpfn_profiler, hashfn_profiler): forward declare. (hashtest_profiler): statically initialize. (syms_of_profiler): remove dynamic initialization of hashtest_profiler. 2019-01-16 Paul Eggert * doc/lispref/processes.texi (Accepting Output): Simplify. 2019-01-16 Daniel Colascione Fix previous change: use correct pdumper function 2019-01-16 Daniel Colascione Fix crash in charset detection after pdumper load * src/coding.c: (reset_coding_after_pdumper_load): new function re-init character classes after pdumper load. (syms_of_coding): Call it. 2019-01-16 Andy Moreton Avoid compilation warnings in MS-Windows build * src/pdumper.c (dump_cold_bignum): * src/emacs.c(load_pdump) [WINDOWSNT]: Avoid compiler warnings due to 64-bit vs 32-bit data type mismatches. 2019-01-16 Eli Zaretskii Improve documentation of pdumper; minor code cleanup * src/emacs.c (usage_message): Add the --dump-file option. (string_starts_with_p, find_argument): Functions removed; use 'argmatch' instead. (PDUMP_FILE_ARG): Macro removed; use literal strings instead, as with other command-line options. Use HAVE_PDUMPER for cpp conditionals which used PDUMP_FILE_ARG. (load_pdump, main): Use 'argmatch' for "--dump-file" and "--temacs" arguments, thus supporting the "-dump-file" and "-temacs" variants, for consistency with other options. (main): Remove the extra fatal error for using --dump-file in unexec'ed Emacs: load_pdump does that anyway. (standard_args): Add --dump-file and --temacs, with appropriate priorities. * etc/NEWS: Expand on the pdumper support. * doc/emacs/cmdargs.texi (Initial Options): Document the '--dump-file' command-line option. 2019-01-16 Eli Zaretskii Fix minor glitch with producing 'emacs' executable * src/Makefile.in (LC_ALL) [!DUMPING]: Don't overwrite previous emacs-X.Y.Z executables with new ones. 2019-01-16 Michael Albinus Some accept-process-output cleanups in Tramp * lisp/net/tramp.el (tramp-action-out-of-band): Read process output in a loop. (tramp-accept-process-output): Return result. (tramp-interrupt-process): * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): Remove FIXME. * lisp/net/tramp-sh.el (tramp-local-coding-commands): Fix docstring. * lisp/net/tramp-smb.el (tramp-smb-wait-for-output): Adapt docstring. Simplify code. * lisp/net/tramp-sudoedit.el (tramp-sudoedit-action-sudo): Adapt docstring. Read process output in a loop. * test/lisp/net/tramp-tests.el (tramp-test43-asynchronous-requests): Remove :unstable tag on emba. 2019-01-16 Glenn Morris * make-dist: Include src/dmpstruct.awk. 2019-01-15 Paul Eggert Fix unlikely races with GnuTLS, datagrams Retry some calls if interrupted at inopportune times. These were found by code inspection. * src/gnutls.c (gnutls_try_handshake): Simplify by using new emacs_gnutls_handle_error API. (emacs_gnutls_write): Remove GNUTLS_E_AGAIN hack since emacs_gnutls_handle_error now does that. Use emacs_gnutls_handle_error only on errors. (emacs_gnutls_read): Retry if gnutls_record_recv returns GNUTLS_E_INTERRUPTED, to be consistent with emacs_read. (emacs_gnutls_handle_error): Return 0 on fatal errors, -1 (setting errno) on ordinary errors, to simplify callers. Assume that ERR is negative, since it always is now. Map non-fatal GnuTLS errors to errno values as best we can. * src/process.c (read_process_output) [DATAGRAM_SOCKETS]: Retry recvfrom if it is interrupted, to be consistent with how things are handled when not a datagram channel. (send_process) [DATAGRAM_SOCEKTS]: If sendto is interrupted, process pending signals and retry it, to be consistent with how things are handled when not a datagram channel. 2019-01-15 Daniel Colascione Make sure dump-mode is nil after dump * lisp/loadup.el (dump-mode): Bind dump-mode to nil before dumping 2019-01-15 Daniel Colascione Add NEWS for pdumper 2019-01-15 Daniel Colascione Add portable dumper Add a new portable dumper as an alternative to unexec. Use it by default. * src/dmpstruct.awk: New file. * src/doc.c (get_doc_string): use will_dump_p(). * src/editfns.c (styled_format): silence compiler warning with UNINIT. * src/emacs-module.c (syms_of_module): staticpro ltv_mark. * src/emacs.c (gflags): new variable. (init_cmdargs): unwrap (string_starts_with_p, find_argument, dump_error_to_string) (load_pdump): new functions. (main): detect pdumper and --temacs invocation; actually load portable dump when detected; set gflags as appropriate; changes to init functions throughout to avoid passing explicit 'initialized' argument. * src/eval.c (inhibit_lisp_code): remove unused variable. (init_eval_once_for_pdumper): new function. (init_eval_once): call it. * src/filelock.c: CANNOT_DUMP -> will_dump_p() * src/fingerprint-dummy.c: new file * src/fingerprint.h: new file * src/fns.c: CANNOT_DUMP -> will_dump_p(), etc. (weak_hash_tables): remove (hashfn_equal, hashfn_eql): un-staticify (make_hash_table): set new 'next_weak' hash table field; drop global weak_hash_tables logic. (copy_hash_table): drop global weak_hash_tables logic. (hash_table_rehash): new function. (hash_lookup, hash_put, hash_remove_from_table, hash_clear): rehash if needed. (sweep_weak_table): un-staticify; explain logic; bool-ify. (sweep_weak_hash_tables): remove function. * src/font.c (syms_of_font): remember pdumper stuff. * src/fontset.c (syms_of_fontset): remember pdumper stuff. * src/frame.c (make_initial_frame): don't reset Vframe_list. (init_frame_once_for_pdumper, init_frame_once): new functions. (syms_of_frame): remove redundant staticpro. * src/fringe.c (init_fringe_once_for_pdumper): new functin. (init_fringe_once): call it. * src/ftcrfont.c (syms_of_ftcrfont_for_pdumper): new function. (syms_of_ftcrfont): call it. * src/ftfont.c (syms_of_ftfont_for_pdumper): new function. (syms_of_ftfont): call it. * src/ftxfont.c (syms_of_ftxfont_for_pdumper): new function. (syms_of_ftxfont): call it. * src/gmalloc.c: adjust for pdumper througout (DUMPED): remove weird custom dumped indicator. * src/gnutls.c (syms_of_gnutls): pdumper note for gnutls_global_initialized. * src/image.c (syms_of_image): add pdumper comment, initializer note. * src/insdel.c (prepare_to_modify_buffer_1): account for buffer contents possibly being in dump image. * src/keyboard.c (syms_of_keyboard_for_pdumper): new function. (syms_of_keyboard): staticpro more; call pdumper syms function. * src/lisp.h: add comments throughout (gflags): declare. (will_dump_p, will_bootstrap_p, will_dump_with_pdumper_p) (dumped_with_pdumper_p, will_dump_with_unexec_p) (dumped_with_unexec_p, definitely_will_not_unexec_p): new functions. (POWER_OF_2, ROUNDUP): move macros. (PSEUDOVECTOR_TYPE, PSEUDOVECTOR_TYPEP): take vectorlike header pointer instead of vector; constify. (Lisp_Hash_Table): add comment about need to rehash on access; add comment for next_weak. (HASH_KEY, HASH_VALUE, HASH_HASH, HASH_TABLE_SIZE): const-ify. (hash_table_rehash): declare. (hash_rehash_needed_p, hash_rehash_if_needed): new functions. (finalizers, doomed_finalizers): declare extern. (SUBR_SECTION_ATTRIBUTE): new macro. (staticvec, staticidx): un-static-ify. (sweep_weak_hash_tables): remove declaration. (sweep_weak_table): declare. (hashfn_eql, hashfn_equal): declare. (number_finalizers_run): new variable. (Vdead): externify when ENABLE_CHECKING. (gc_root_type): new enumeration. (gc_root_visitor): new struct. (visit_static_gc_roots): declare. (vectorlike_nbytes): declare. (vector_nbytes): define as trivial inline function wrapper for vectorlike_nbytes. (init_obarray_once): change signature. (primary_thread): extern-ify. (init_buffer): change signature. (init_frame_once): declare. * src/lread.c (readevalloop): adjust for new dumped predicates. (init_obarray_once): new function. (ndefsubr): new variable. (defsubr): increment it. (load_path_check): adjust for pdumper. (load_path_default): use pdumper functions; adjust for dump search. * src/macfont.m (macfont_init_font_change_handler): avoid shadowing global. (syms_of_macfont_for_pdumper): new function. (syms_of_macfont): call it. * src/menu.c (syms_of_menu): staticpro more stuff. * src/minibuf.c (Ftry_completion): rehash if needed. (init_minibuf_once_for_pdumper): new function. (init_minibuf_once): call it. * src/nsfont.m (syms_of_nsfns): staticpro more. * src/nsfont.m (syms_of_nsfont_for_pdumper): new function. (syms_of_nsfont): call it. * src/nsterm.m (syms_of_nsfont): remember pdumper stuff. * src/pdumper.c: new file. * src/pdumper.h: new file. * src/process.c (init_process_emacs): use new pdumper functions instead of CANNOT_DUMP. * src/profiler.c (syms_of_profiler_for_pdumper): new function. (syms_of_profiler_for_pdumper): call it. * src/search.c (syms_of_search_for_pdumper): new function. (syms_of_search_for_pdumper): call it. * src/sheap.c (bss_sbrk_did_unexec): remove. * src/sheap.h (bss_sbrk_did_unexec): remove. * src/syntax.c (syms_of_syntax): don't redundantly staticpro re_match_object. * src/sysdep.c: use will_dump_with_unexec_p() instead of bss hack thing. * src/syssignal.h (init_sigsegv): declare. * src/systime.h (init_timefns): remove bool from signature. * src/textprop.c (syms_of_textprop): move staticpro. * src/thread.c (main_thread_p): constify. * src/thread.h (main_thread_p): constify. * src/timefns.c (init_timefns): remove bool from signature. (syms_of_timefns_for_pdumper): new function. (syms_of_timefns): call it. * src/w32.c: rearrange code. * src/w32.h (w32_relocate): declare. * src/w32fns.c (syms_of_w32fns): add pdumper note. * src/w32font.c (syms_of_w32font_for_pdumper): new function. (syms_of_w32font): call it. * src/w32heap.c (using_dynamic_heap): new variable. (init_heap): use it. * src/w32menu.c (syms_of_w32menu): add pdumper note. * src/w32proc.c (ctrl_c_handler, mainCRTStartup, _start, open_input_file) (rva_to_section, close_file_data): move here. * src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): new function. (syms_of_w32uniscribe): call it. * src/window.c (init_window_once_for_pdumper): new function. (init_window_once): call it; staticpro more stuff. * src/xfont.c (syms_of_xfont_for_pdumper): new function. (syms_of_xfont): call it. * src/xftfont.c (syms_of_xftfont_for_pdumper): new function. (syms_of_xftfont): call it. * src/xmenu.c (syms_of_xmenu_for_pdumper): new function. (syms_of_xmenu): call it. * src/xselect.c (syms_of_xselect_for_pdumper): new function. (syms_of_xselect): call it. * src/xsettings.c (syms_of_xsettings): add more pdumper notes. * src/term.c (syms_of_xterm): add pdumper note. * src/dispnew.c (init_faces_initial): new function. (init_display_interactive): rename from init_display; use will_dump_p instead of !initialized. Initialize faces early for pdumper if needed. (init_display): new function. (syms_of_display_for_pdumper): new function. (syms_of_display): call it. * src/dbusbind.c (syms_of_dbusbind): Add TODO for bus reset on pdumper load. * src/data.c (Fdefalias): Use will_dump_p instead of Vpurify_flag. (Fmake_variable_buffer_local): silence compiler warning with -Og by making valcontents UNINIT. (arith_driver): silence compiler warning with UNINIT. * src/conf_post.h (ATTRIBUTE_SECTION): new macro. * src/composite.c (composition_gstring_put_cache): rehash hash table if needed. * src/coding.c (init_coding_once, syms_of_coding): remember pdumper stuff. * src/charset.h (charset_table_size, charset_table_user): declare. * src/charset.c (charset_table_used, charset_table_size): un-static. (init_charset_oncem, syms_of_charset): remember pdumper stuff. * src/category.c (category_table_version): remove obsolete variable. * src/callint.c (syms_of_callint): staticpro 'preserved_fns' (init_callproc): use will_dump_p instead of !CANNOT_DUMP. * src/bytecode.c (exec_byte_code): rehash table tables if needed * src/buffer.c (alloc_buffer_text, free_buffer_text): account for pdumper (init_buffer_once): add TODO; remember stuff for pdumper. (init_buffer): don't take initialized argument; adjust for pdumper. * src/atimer.c (init_atimer): initialize subr only if !initialized. * src/alloc.c: (vector_marked_p, set_vector_marked) (vectorlike_marked_p, set_vectorlike_marked, cons_marked_p) (set_cons_marked, string_marked_p, set_string_marked) (symbol_marked_p, set_symbol_marked, interval_marked_p) (set_interval_marked): new accessor routines. Use them instead of raw GC access throughout. (Vdead): make non-static when ENABLE_CHECKING. (vectorlike_nbytes): rename of 'vector_nbytes'; take a vectorlike header as input instead of a vector. (number_finalizers_run): new internal C variable. (mark_maybe_object): check for pdumper objects. (valid_pointer_p): don't be gratuitously inefficient under rr(1). (make_pure_c_string): add support for size_byte = -2 mode indicating that string data points into Emacs image rodata. (visit_vectorlike_root): visits GC roots embedded in vectorlike objects. (visit_buffer_root): visits GC roots embedded in our totally-not-a-buffer buffer global objects. (visit_static_gc_roots): visit GC roots in the Emacs data section. (mark_object_root_visitor): root callback used for conventional GC marking (weak_hash_tables): new internal variable for tracking found weak hash tables during GC. (mark_and_sweep_weak_table_contents): new weak hash table marking. (garbage_collect_1): use new GC root visitor machinery. (mark_vectorlike): accept a vectorlike_header instead of a Lisp_Vector. (mark_frame, mark_window, mark_hash_table): new functions. (mark_object): initialize 'm'; check for pdumper objects and use new mark-bit accessors throughout. Remove some object-specific marking code and move to helper functions above. (survives_gc_p): check for pdumper objects. (gc-sweep): clear pdumper mark bits. (init_alloc_once_for_pdumper): new helper function for early init called both during normal init and pdumper load. (init_alloc_once): pdumper integration. * src/Makefile.in: Rewrite dumping for pdumper; add pdumper.o; invoke temacs with --temacs command line option; build dmpstruct.h from dmpstruct.awk; stop relying on CANNOT_DUMP; clean up pdumper intermediate files during build. * nextstep/Makefile.in: build emacs.pdmp into NS packages * lisp/startup.el: account for new '--temacs' and '--dump-file' command line option. * lisp/loadup.el: rewrite early init to account for pdumper; use injected 'dump-mode' variable (set via the new '--temacs' option) instead of parsing command line. * lisp/cus-start.el: Check 'dump-mode' instead of 'purify-flag', since the new 'dump-mode' * lib-src/make-fingerprint.c: new program * lib-src/Makefile.in: built make-fingerprint utility program * configure.ac: Add --with-pdumper toggle to control pdumper support; add --with-unexec toggle to control unexec support. Add --with-dumping option to control which dumping strategy we use by default. Adjust for pdumper throughout. Check for posix_madvise. * Makefile.in: Add @DUMPING@ substitution; add pdumper mode. * .gitignore: Add make-fingerprint, temacs.in, fingerprint.c, dmpstruct.h, and pdumper dump files. 2019-01-15 Paul Eggert Avoid using obsolete accept-process-output arg * lisp/gnus/nnheader.el (nnheader-accept-process-output): * lisp/net/dns.el (dns-query): * lisp/net/imap.el (imap-wait-for-tag): * lisp/net/network-stream.el (network-stream-get-response): * lisp/net/pop3.el (pop3-accept-process-output): * lisp/obsolete/starttls.el (starttls-negotiate-gnutls) (starttls-open-stream-gnutls): * lisp/server.el (server-eval-at): * lisp/textmodes/ispell.el (ispell-accept-output): Do not depend on the obsolete milliseconds argument of accept-process-output. 2019-01-15 Paul Eggert Fix accept-process-output/process-live-p confusion * doc/lispref/processes.texi (Accepting Output): Document the issue. * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): * lisp/net/tramp-smb.el (tramp-smb-wait-for-output): * lisp/net/tramp.el (tramp-interrupt-process): * test/src/process-tests.el (make-process/mix-stderr): Fix code that uses accept-process-output and process-live-p. Add FIXME comments as necessary. * lisp/net/tramp-sudoedit.el (tramp-sudoedit-action-sudo): * lisp/net/tramp.el (tramp-action-out-of-band): Add FIXME comments as necessary. 2019-01-15 Alan Mackenzie Make CC Mode and electric-pair-mode work together. This fixes bug #33794 * lisp/progmodes/cc-cmds.el (c-electric-pound, c-electric-slash) (c-electric-star, c-electric-semi&comma, c-electric-colon, c-electric-lt-gt): Bind post-self-insert-hook to nil around calls to self-insert-command to protect against arbitrary functionality confusing CC Mode. (c-do-brace-electrics): New function, extracted from c-electric-brace and enhanced. (c-electric-brace): Bind post-self-insert-hook to nil around the call to self-insert-command. When electric-pair-mode is configured, call electric-pair-post-self-insert-function. Handle any deletion done by this function. Call c-do-brace-electrics for the inserted brace, and perhaps for a brace inserted by electric-pair-self-insert-function. (c-electric-paren): Bind post-self-insert-hook to nil around the call to self-insert-command. When electric-pair-mode is configured, call electric-pair-post-self-insert-function. 2019-01-14 Philipp Stephani Disable electric quotes for most files in the Emacs codebase. * .dir-locals.el: Disable electric quotes in comments and strings for C, Emacs Lisp, and Texinfo, as the Emacs codebase doesn't use them. 2019-01-14 Stefan Monnier * lisp/emacs-lisp/package.el (package-activate-all): Fix last change * lisp/emacs-lisp/package.el (package-activate-all): Silence load msg 2019-01-14 João Távora Fix icomplete's cycling when filename filtering kicks in (Bug#34070) * lisp/icomplete.el (icomplete--filtered-completions): New variable. (icomplete-forward-completions, icomplete-backward-completions): Use it. (icomplete-completions): Set it. 2019-01-14 Robert Pluim Improve some of the breve/caron/cedilla mappings * lisp/leim/quail/latin-pre.el ("latin-prefix"): Describe new 'c with cedilla mapping'. Extend caron description. Correct dot above description. Add new mappings for 'a with breve' and 'c with caron'. Add additional mapping for 'c with cedilla'. Delete ~o mapping for 'g with dot above'. 2019-01-14 Robert Pluim Fix some breve and dot above related doc strings * lisp/leim/quail/latin-pre.el ("romanian-prefix"): Correct description of 'a with breve'. ("romanian-alt-prefix"): Correct description of 'a with breve'. Reformat other entries for consistency. ("latin-3-prefix"): Correct 'dot above' description. 2019-01-13 Paul Eggert Fix translation-region bug with MAX_CHAR Also, clean up the code a bit. Actually I discovered the bug while cleaning up the code. * src/editfns.c (Fsubst_char_in_region) (Ftranslate_region_internal): Use bool for booleans. (Ftranslate_region_internal): Fix off-by-1 bug when a translation table translates the maximum char. Assume C99 decl-after-statement, similar minor cleanups. * test/src/editfns-tests.el (test-translate-region-internal): New test. 2019-01-13 Paul Eggert Minor overflow fix in translate-region-internal * src/editfns.c (Ftranslate_region_internal): Use ptrdiff_t, not int, for a count that might exceed INT_MAX. 2019-01-12 Pierre Téchoueyres Check that feature exist in `sql-set-product-feature' (Bug#30494). * lisp/progmodes/sql.el (sql-set-product-feature): Add test for feature existence. 2019-01-11 Glenn Morris Remove some obsolete stub files from etc/ * etc/CENSORSHIP, etc/FTP, etc/GNU, etc/LINUX-GNU, etc/MORE.STUFF: * etc/ORDERS, etc/THE-GNU-PROJECT, etc/WHY-FREE: Remove stub files that were marked obsolete 5 years ago. 2019-01-11 Martin Rudalics Run window change functions during redisplay * doc/lispref/windows.texi (Window Sizes): Move (and rename) descriptions of 'window-pixel-height-before-size-change' and 'window-pixel-width-before-size-change' to Window Hooks section. (Window Configurations): Remove warning against use of 'save-window-excursion' in 'window-size-change-functions'. (Window Hooks): Rewrite section according to redesign of window change functions. * lisp/erc/erc-track.el (erc-window-configuration-change) (erc-modified-channels-update): Call latter directly from 'window-configuration-change-hook' instead via 'post-command-hook'. * lisp/frame.el (frame-size-changed-p): Change nomenclature in let bindings. * lisp/net/rcirc.el (rcirc-window-configuration-change) (rcirc-window-configuration-change-1): Call latter directly from 'window-configuration-change-hook' instead via 'post-command-hook'. * lisp/window.el (window-pixel-width-before-size-change) (window-pixel-height-before-size-change): Defalias. (window--resize-mini-window, window-resize) (adjust-window-trailing-edge, delete-window) (delete-other-windows, balance-windows): Don't run 'window-configuration-change-hook' any more from here. (split-window): Don't run 'window-configuration-change-hook' from here. 'run-window-scroll-functions' from here. (window--adjust-process-windows): Run from 'window-configuration-change-hook' only. * src/frame.c (old_selected_frame): New Lisp variable. (make_frame): Initialize frame's change_stamp slot. (Fold_selected_frame): New function. * src/frame.h (struct frame): New slots old_selected_window, window_change, change_stamp and number_of_windows. (fset_old_selected_window): New inlined function. (FRAME_WINDOW_CHANGE, FRAME_OLD_SELECTED_WINDOW): New macros. * src/window.c (old_selected_window): New Lisp variable. (wset_old_buffer): New inlined function. (Fframe_old_selected_window, Fold_selected_window) (Fwindow_old_buffer): New functions. (Fwindow_old_pixel_width, Fwindow_old_pixel_height): Rename from Fwindow_pixel_width_before_size_change and Fwindow_pixel_height_before_size_change. Update doc-strings. (Fwindow_old_body_pixel_width, Fwindow_old_body_pixel_height): New functions. (Fdelete_other_windows_internal): Set frame's window_change slot instead of running 'window-configuration-change-hook'. (Frun_window_configuration_change_hook): In doc-string tell that this function is no more needed. (Frun_window_scroll_functions): Amend doc-string. Run with window's buffer current. (window_sub_list, window_change_record_windows) (window_change_record_frame, window_change_record) (run_window_change_functions_1, run_window_change_functions): New functions. (set_window_buffer): Set frame's window_change slot instead of running 'window-configuration-change-hook'. (make_window): Don't initialize pixel_width_before_size_change and pixel_height_before_size_change slots. (window_resize_apply, Fdelete_window_internal): Set frame's window_change slot. (Fsplit_window_internal): Set frame's window_change slot. Don't run 'window-scroll-functions' from here. * src/window.h (struct window): New slots old_buffer, change_stamp, old_pixel_width (renamed from pixel_width_before_size_change), old_pixel_height (renamed from pixel_height_before_size_change), old_body_pixel_width and old_body_pixel_height. * src/xdisp.c (init_iterator): Set frame's window_change slot when the body height or width changes. (prepare_menu_bars): Don't run_window_size_change_functions. (redisplay_internal): Don't run_window_size_change_functions, run_window_change_functions instead. 2019-01-10 Paul Eggert List lengths are always fixnums now Without this patch, it was theoretically possible for a list length to be a bignum, which means that safe-length could signal an error (due to generating a too-large bignum) contrary to its documentation. Fix things to remove the theoretical possibility, so that list lengths are always fixnums (and so that list lenghts are always ptrdiff_t values too, since that is assumed internally anyway). * src/alloc.c (Fcons): Do not allocate so many conses that a list length won’t fit into ptrdiff_t or into fixnum. This matters only on weird platforms; on typical platforms, list lengths always fit anyway. * src/fns.c (list_length, Fsafe_length, proper-list-p): Remove integer overflow checks that are no longer needed. 2019-01-10 Paul Eggert Minor tweaks to HAVE_NATIVE_SCALING code This mostly just reindents. * src/image.c (x_set_image_size): Always define, but to a no-op if !HAVE_NATIVE_SCALING, to avoid an #ifdef elsewhere. (x_create_x_image_and_pixmap): Move decl to avoid an #ifdef. (image_create_x_image_and_pixmap): Move #ifdef outside of call. * src/xterm.c (x_composite_image): Avoid ‘else #endif’. 2019-01-10 Alan Third Add native image scaling (bug#33587) * configure.ac: Test for XRender outside of xft checks. * src/Makefile.in (XRENDER_LIBS): List XRender libs separately from xft libs. * lisp/image.el (image--get-imagemagick-and-warn): Allow resizing if native scaling is available. * src/dispextern.h: Add XRender and image scaling stuff. (struct image): Add XRender Pictures. * src/image.c (x_create_bitmap_mask): (image_create_x_image_and_pixmap): Handle XRender Picture. (scale_image_size): (compute_image_size): Make available when any form of scaling is enabled. (x_set_image_size): New function. (lookup_image): Set image size. (x_create_x_image_and_pixmap): Create XRender Picture when necessary. (x_put_x_image): Handle the case where desired size != actual size. (free_image): Free XRender Pictures. (Fimage_scaling_p): New function. (syms_of_image): Add image-scaling-p. * src/nsimage.m (ns_load_image): Remove NS specific resizing. ([EmacsImage setSizeFromSpec:]): Remove method. (ns_image_set_size): New function. * src/nsterm.m (ns_draw_fringe_bitmap): Cocoa and GNUstep both have the same compositing functions, so remove unnecessary difference. * src/xterm.c (x_composite_image): New function. (x_draw_image_foreground): Use new x_composite_image function. * doc/lispref/display.texi (Image Descriptors): Document image-scaling-p and add resizing descriptors. (ImageMagick Images): Remove resizing descriptors. 2019-01-10 Alan Third Fix drag and drop behaviour on NS (bug#30929) * doc/emacs/macos.texi (Mac / GNUstep Events): Describe the new drag and drop behaviour. * lisp/term/ns-win.el (ns-drag-n-drop): Handle the new event format. (ns-drag-n-drop-other-frame): (ns-drag-n-drop-as-text): (ns-drag-n-drop-as-text-other-frame): Remove functions and key bindings. * src/nsterm.m ([EmacsView performDragOperation:]): Send Emacs event in new format without setting any modifiers. 2019-01-10 Michael Albinus New test custom--test-theme-variables * test/lisp/custom-tests.el (custom--test-user-option) (custom--test-variable): New variables. (custom--test-theme-variables): New test. * test/lisp/custom-resources/custom--test-theme.el (custom--test): New file. 2019-01-10 Martin Rudalics Handle dedicated status in 'window--display-buffer' (Bug#33870) * lisp/window.el (display-buffer-record-window): Rewrite doc-string. (window--display-buffer): Remove fifth argument DEDICATED and either directly use a 'dedicated' entry in ALIST or the value of 'display-buffer-mark-dedicated' instead. (display-buffer-in-atom-window, display-buffer-use-some-frame) (display-buffer-pop-up-frame, display-buffer-pop-up-window) (display-buffer-below-selected, display-buffer-at-bottom): Adjust callers of 'window--display-buffer'. (window--make-major-side-window) (display-buffer-in-side-window): Handle dedicated status of the chosen side window via a 'dedicated' alist entry and adjust 'window--display-buffer' call. (display-buffer-in-child-frame): Set up TYPE correctly for and adjust 'window--display-buffer' call. (display-buffer-in-previous-window): Handle dedicated status of a previous window already showing BUFFER. * doc/lispref/windows.texi (Buffer Display Action Alists): New action alist entry 'dedicated'. (Dedicated Windows): Mention new buffer display action alist entry 'dedicated'. * etc/NEWS: Mention new buffer display action alist entry 'dedicated'. 2019-01-09 Paul Eggert Mention Japanese change in documentation 2019-01-09 Yasuhiro KIMURA Change preferred Japanese coding system to UTF-8 * lisp/language/japan-util.el (setup-japanese-environment-internal): Use utf-8 as preferred coding system instead of japanese-iso-8bit when system is not MS-Windows. And while I'm at it, fix comment to fit current implementation. (Bug#28705) 2019-01-09 Paul Eggert Use shortcuts for Flength When calculating the length of a Lisp object whose type is known, use a specialized length operation on it to save a bit of runtime overhead. * src/callint.c (Fcall_interactively): * src/minibuf.c (read_minibuf_unwind): Use ASIZE rather than Flength on values that must be vectors. * src/charset.c (Fsort_charsets): * src/coding.c (detect_coding_sjis): (Fdefine_coding_system_internal): * src/data.c (wrong_choice): * src/eval.c (Flet, eval_sub, Fapply, apply_lambda): * src/fns.c (sort_list): * src/font.c (font_vconcat_entity_vectors) (font_find_for_lface): * src/frame.c (Fmodify_frame_parameters): * src/fringe.c (get_logical_fringe_bitmap): * src/ftfont.c (ftfont_get_open_type_spec): * src/gtkutil.c (xg_print_frames_dialog): * src/lread.c (read1, read_vector): * src/keymap.c (Fkey_description): * src/kqueue.c (Fkqueue_add_watch): * src/macfont.m (macfont_get_open_type_spec): * src/menu.c (parse_single_submenu, x_popup_menu_1): * src/minibuf.c (Finternal_complete_buffer): * src/nsfont.m (ns_findfonts, nsfont_list_family): * src/process.c (Fmake_process): * src/search.c (Fset_match_data): * src/xfaces.c (Fx_family_fonts): Use list_length rather than Flength on values that must be lists. * src/fns.c (list_length): New function. (Flength): Use it. * src/nsfont.m (ns_findfonts): Use !NILP (x) rather than XFIXNUM (Flength (x)) != 0. * src/xdisp.c (store_mode_line_string): Use SCHARS rather than Flength on values that must be strings. 2019-01-08 Stefan Monnier * src/window.c (save_window_save): Revert part of d82e73f ...made unnecessary by a058edae. 2019-01-08 Paul Eggert * admin/notes/unicode: Update to match recent changes. 2019-01-08 Stefan Monnier * lisp/emacs-lisp/map.el: Prepare for addition to GNU ELPA * lisp/help-fns.el (help--load-prefixes): Demote errors from files. 2019-01-08 Michael Albinus Fix nasty cut'n'waste error in Tramp * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file): Remove weird code, resulting from cut'n'waste. 2019-01-08 Michael Albinus Adapt .gitlab-ci.yml * .gitlab-ci.yml (variables): Move outside jobs. Use "GIT_STRATEGY: fetch". (before_script): Install git. (test-all): Rename from test. Install inotify-tools. Run "make check-expensive". (test-filenotify-gio): New job. 2019-01-07 Leo Liu * lisp/progmodes/js.el: Remove unused (require 'thingatpt). 2019-01-07 Stefan Monnier Use utf-8 coding system for all our Elisp files * lisp/international/ja-dic-cnv.el: * lisp/international/ja-dic-utl.el: * lisp/international/kinsoku.el: * lisp/international/kkc.el: * lisp/language/japan-util.el: * lisp/language/japanese.el: * lisp/leim/quail/cyril-jis.el: * lisp/leim/quail/hanja-jis.el: * lisp/leim/quail/japanese.el: * lisp/leim/quail/py-punct.el: * lisp/leim/quail/pypunct-b5.el: Use utf-8 coding system. * lisp/international/titdic-cnv.el: Use utf-8-emacs coding system. 2019-01-07 Stefan Monnier * lisp/international/titdic-cnv.el: Save generated files with utf-8 (titdic-convert, miscdic-convert): Use utf-8 when writing and don't bother putting a `coding:` tag since utf-8 is the default anyway. 2019-01-07 Glenn Morris Merge from origin/emacs-26 f1ce72b ; ChangeLog.3 update 5b59cf0 * etc/AUTHORS: Update. 2cf20b6 * lisp/textmodes/mhtml-mode.el: Avoid loading flyspell. (Bug... # Conflicts: # ChangeLog.3 # lisp/textmodes/mhtml-mode.el 2019-01-07 Glenn Morris Merge from origin/emacs-26 0ecff00 Improve commentary in font.h a058eda Fix definition of Qwindow_point_insertion_type (Bug#33871) 2019-01-07 Glenn Morris Merge from origin/emacs-26 5f2aa32 Update Unicode copyright notice 2019-01-07 Michael Albinus Adapt tests for emba * test/lisp/filenotify-tests.el (file-notify-test03-events) (file-notify-test05-file-validity) (file-notify-test06-dir-validity) (file-notify-test07-many-events) (file-notify-test09-watched-file-in-watched-dir): Adapt tests for emba. 2019-01-06 Paul Eggert Minor INFINITY/NAN cleanup * src/lread.c (INFINITY): Use a more-portable way to specify this macro on non-C99 platforms that lack it. (NAN): Remove; unused. 2019-01-06 Paul Eggert Fix logb on zero, infinite, NaN args Change logb to return -infinity, +infinity, and NaN respectively. Formerly logb returned an extreme fixnum to represent infinity, but this is no longer the right thing to do now that we have bignums and there is no extreme integer. * doc/lispref/numbers.texi (Float Basics), etc/NEWS: Document. * src/floatfns.c (Flogb): Implement this. 2019-01-06 Paul Eggert Use integers for syntax-pps-stats * lisp/emacs-lisp/syntax.el (syntax-ppss-stats): Use integers, not floating-point, for stats, now that integers are unbounded. Almost always these should be fixnums. Add 1 to last slot’s car so that this addition need not be done at runtime. (syntax-pps-stats, syntax-ppss): Use integers for calculations. (syntax-ppss--update-stats): New convenience function. (syntax-ppss): Use it. 2019-01-06 Michael Albinus Adapt filenotify-tests for emba * test/lisp/filenotify-tests.el (file-notify-test03-events) (file-notify-test05-file-validity) (file-notify-test06-dir-validity) (file-notify-test07-many-events) (file-notify-test09-watched-file-in-watched-dir): Adapt tests for emba. 2019-01-05 Khaled Hosny Always set explicit HarfBuzz buffer direction If no direction was given by the caller, I assume the text will be drawn left to right, if this is not the case then callers must provide sensible direction. Letting HarfBuzz guess the direction is not appropriate since shaping and drawing must use the same direction. Also move hb_buffer_guess_segment_properties() call to the end, so it only guessing unset properties, until we completely get rid of it. 2019-01-05 Khaled Hosny We need the bidi level not the paragraph direction 2019-01-05 Paul Eggert Port to platforms where tputs is in libtinfow * configure.ac (tputs_library): Also try tinfow, ncursesw (Bug#33977). 2019-01-05 João Távora New flymake-supress-zero-counters defcustom A feature suggested by Yuri Khan . * lisp/progmodes/flymake.el (flymake-suppress-zero-counters): New variable. (flymake--mode-line-format): Use it. 2019-01-05 João Távora Fix Flymake tests for GCC 8.2.0 (Bug#33872) "Now you have two problems..." * lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics): Adjust regexp. 2019-01-05 John Shahid (tiny change) Unbreak Flymake's diagnostics buffer when revisiting source (Bug#33881) * lisp/progmodes/flymake.el (flymake-show-diagnostics-buffer): Set flymake--diagnostics-buffer-source before reverting. 2019-01-05 Drew Adams Don't signal error from "C-x C-k l" about mouse events * lisp/edmacro.el (edmacro-fix-menu-commands): Ignore mouse events instead of signaling an error. Display unsupported events in the error message. (Bug#33930) 2019-01-05 Joel Rosdahl (tiny change) Fix electric indent bug in python-mode after dedenting colon * lisp/progmodes/python.el (python-indent-post-self-insert-function): Use markers instead of positions when reindenting statement(s) after inserting electric colon to avoid reindenting too many statements (bug#22663). * test/lisp/progmodes/python-tests.el (python-indent-electric-colon-2): Improve test case to also verify the fix of bug#22663. 2019-01-04 Eli Zaretskii Improve documentation of 'server-name' * doc/emacs/misc.texi (Emacs Server, TCP Emacs server) (emacsclient Options): * lisp/server.el (server-name): Document the usage of 'server-name' to specify the server file as an absolute file name. (Bug#33934) 2019-01-03 Michael Albinus Mark some filenotify tests unstable on emba * .gitlab-ci.yml (test): Add EMACS_EMBA_CI variable. * test/lisp/filenotify-tests.el (file-notify-test03-events) (file-notify-test05-file-validity) (file-notify-test06-dir-validity) (file-notify-test07-many-events) (file-notify-test09-watched-file-in-watched-dir): Mark them as :unstable on emba. 2019-01-03 Michael Albinus Adapt test/README * test/README: Speak about continous integration tests on hydra and emba. 2019-01-03 Andrey Kotlarski Fix EBROWSE parsing of classes declared final. 2019-01-02 Philipp Stephani Avoid a compiler warning on macOS. * src/xdisp.c (expose_window_tree): Define variable f only if used. 2019-01-02 Nicolas Petton Document the new functions of seq.el * etc/NEWS: New section documenting the addition of `seq-first' and `seq-rest'. 2019-01-02 Eli Zaretskii Fix text direction of the HarfBuzz shaping buffer * src/indent.c (scan_for_column, compute_motion): * src/xdisp.c (CHAR_COMPOSED_P): Pass PDIR argument to composition_reseat_it. * src/composite.c (composition_reseat_it): Accept an additional argument PDIR that provides the current paragraph's base direction; all callers changed. Use PDIR to fix calculation of the DIRECTION argument to autocmp_chars. (Bug#33944) * src/composite.h: Include dispextern.h. (composition_reseat_it): Update prototype. 2019-01-02 João Távora Extend electric-layout-mode to handle more complex layouts (bug#33794) Entries in electric-layout-rules can specify multiple newline-related actions which are executed in order of appearance. Also, have it play nice with electric-pair-mode when inserting a newlines, particularly with electric-pair-open-newline-between-pairs. Entries in electric-layout-rules can also be functions. Among other things, the logic behind electric-pair-open-newline-between-pairs could now be moved to electric-layout-mode, but this commit doesn't do that yet. This change was motivated by bug#33794 and is an alternative solution to the problem reported in that bug. * lisp/electric.el (electric-layout-rules): Adjust docstring. (electric-layout-post-self-insert-function): Call electric-layout-post-self-insert-function-1. (electric-layout-post-self-insert-function-1): Rename from electric-layout-post-self-insert-function. Redesign. (electric-layout-local-mode): New minor mode. * test/lisp/electric-tests.el (electric-layout-int-main-kernel-style) (electric-layout-int-main-allman-style) (electric-modes-in-c-mode-with-self-insert-command) (electric-pair-mode-newline-between-parens) (electric-layout-mode-newline-between-parens-without-e-p-m) (electric-layout-mode-newline-between-parens-without-e-p-m-2): New tests. (plainer-c-mode): New helper. 2019-01-01 Paul Eggert Don’t limit range error reports to fixnums * src/lisp.h (CHECK_RANGED_INTEGER): When signaling an error, don’t arbitrarily limit the reported valid range to fixnums. 2019-01-01 Paul Eggert Bignums from garbage-collect, memory-use-counts Do not limit the results of garbage-collect and memory-use-counts to fixnums, as they might be bignums now on 32-bit hosts. * src/lisp.h (byte_ct): New type. * src/alloc.c (object_ct): New type. (consing_since_gc, gc_relative_threshold) (memory_full_cons_threshold, total_string_bytes): Now byte_ct, not EMACS_INT. (total_conses, total_symbols, total_buffers, total_free_conses) (total_free_symbols, total_free_floats, total_floats) (total_free_intervals, total_intervals, total_strings) (total_free_strings, total_vectors, total_vector_slots) (total_free_vector_slots): Now object_ct, not EMACS_INT. (bounded_number): Remove. All uses removed. (object_bytes): New function. (total_bytes_of_live_objects, garbage_collect_1): Use byte_ct, not size_t, to count total GC bytes where multiple objects are involved. (garbage_collect_1, Fmemory_use_counts): Do not limit returned counts to fixnums. (sweep_conses, sweep_floats, sweep_intervals, sweep_symbols): Use object_ct, not EMACS_INT, to count GC objects. 2019-01-01 Paul Eggert Be consistent about list length fixnum overflow * src/fns.c (Flength, Fproper_list_p): Use overflow_error to report the (typically impossible) fixnum overflow. 2019-01-01 Paul Eggert Fix woman.el to not confuse scan-sexps * lisp/woman.el (woman-unpadded-space-char): Escape the close-bracket (Bug#33940). 2019-01-01 Paul Eggert decode-time: allow bignum years * src/timefns.c (TM_YEAR_BASE): Now a constant as it need not be a macro. (Fdecode_time): Do not signal an overflow merely because the Gregorian year number does not fix in a fixnum (which can happen on hosts with 64-bit time_t and with 32-bit int and EMACS_INT). 2018-12-31 Paul Eggert Fix integer overflow check in json code * src/json.c (json_to_lisp): Check for ptrdiff_t overflow, not fixnum overflow. 2018-12-31 Paul Eggert Update more copyright years Update some other copyright years automatically, by running: Run 'UPDATE_COPYRIGHT_YEAR=2019 \ UPDATE_COPYRIGHT_USE_INTERVALS=1 \ UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79 admin/update-copyright' followed by 'admin/merge-gnulib'. 2018-12-31 Paul Eggert Update from Gnulib This incorporates mostly just copyright-year changes, plus recent minor updates from glibc for the non-Emacs regular expression code. 2018-12-31 Paul Eggert Merge from origin/emacs-26 2fcf2df Fix copyright years by hand 26bed8b Update copyright year to 2019 2814292 Fix value of default frame height. (Bug#33921) 2018-12-31 Paul Eggert Remove UCHAR typedef * src/lisp.h (_UCHAR_T, UCHAR): Remove. This workaround for circa-1993 old-AIX has evidently not been needed for decades. Tested on AIX 7.1, the oldest AIX version IBM still supports. 2018-12-31 Michael Albinus Reset `tramp-default-proxies-alist' in case of errors * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Reset `tramp-default-proxies-alist' in case of errors. 2018-12-31 Michael Albinus Precise documentation of Tramp ad-hoc proxies * doc/misc/tramp.texi (Ad-hoc multi-hops): Remove superfluous first entry about %h and %u. Describe, how to remove ad-hoc proxy definitions. (Cleanup remote connections): Mention, that also ad-hoc proxy definitions are removed. * etc/NEWS: Mention default host names in Tramp ad-hoc proxies. 2018-12-31 Michael Albinus * lisp/files.el (locate-file, files--splice-dirname-file): Fix docstring. 2018-12-30 Paul Eggert Fix assertion-violations on non-integers These bugs were introduced after bignums were added. * src/data.c (cons_to_unsigned, cons_to_signed): * src/xdisp.c (calc_line_height_property): Invoke integer_to_intmax and integer_to_uintmax only on integers. 2018-12-30 Glenn Morris Merge from origin/emacs-26 82c82b1 (origin/emacs-26) In user manual fix value of default frame h... 2e8825d Improve documentation of 'file-local-name' and related APIs 11f0635 ; Remove comment in esh-proc.el # Conflicts: # lisp/simple.el 2018-12-30 Glenn Morris Merge from origin/emacs-26 3abebeb * lisp/files.el (cd): Fix last change. (Bug#33791) 7a60a4f Fix remote directories in Eshell on MS-Windows 822a2d0 Fix :type 'group' in defcustom a731c56 Fix NS fringe bitmap drawing bug (bug#33864) 0c52459 Fix commentary in dispnew.c c9fdd1b Improve accept-process-process doc 9578c2a Fix a simple bug in display-buffer-use-some-frame 0f9be72 Clarify thread switching while waiting for process output 24ddea0 Improve process doc. with respect to handling of large input ... 2931016 ; Cosmetic changes in etc/NEWS 85516b8 Minor copyedits in landmark.el # Conflicts: # etc/NEWS 2018-12-30 Alan Mackenzie CC Mode - use font-lock-comment-delimiter-face on block comment end delimiters In particular when the default comment type is currently line comments. Do this by setting font-lock-comment-end-skip. * lisp/progmodes/cc-cmds.el (c-font-lock-comment-end-skip): New lang const. (font-lock-comment-end-skip): New c-lang-setvar. 2018-12-30 Martin Rudalics Handle 'unbound' like nil for 'window-point-insertion-type' (Bug#33871) * src/window.c (save_window_save): When setting the marker insertion type of saved window points treat a buffer local value of 'unbound' for 'window-point-insertion-type' like nil (Bug#33871). 2018-12-29 Dmitry Gutov Skip 'basic' completion style for project-find-file * lisp/minibuffer.el (completion-category-defaults): Skip 'basic' for 'project-file', in order not to prefer files at the top of the directory tree. 2018-12-29 Mattias Engdegård Handle raw bytes, and LF in ranges, in rx `any' argument strings * lisp/emacs-lisp/rx.el (rx-check-any-string): Rewrite to handle raw bytes in unibyte strings and accept LF as range endpoints (Bug#33205). * test/lisp/emacs-lisp/rx-tests.el: Add tests for the above. 2018-12-29 Eli Zaretskii Provide text directionality and language to HarfBuzz shaper * lisp/language/tv-util.el (tai-viet-composition-function): * lisp/language/ethio-util.el (ethio-composition-function): * lisp/language/japanese.el (compose-gstring-for-variation-glyph): * lisp/language/thai-util.el (thai-composition-function): * lisp/language/misc-lang.el (arabic-shape-gstring): * lisp/language/lao-util.el (lao-composition-function): * lisp/language/hebrew.el (hebrew-shape-gstring): * lisp/composite.el (compose-gstring-for-graphic) (compose-gstring-for-dotted-circle, auto-compose-chars) (compose-gstring-for-terminal): Accept 2nd argument DIRECTION; all callers changed. * src/composite.c (composition_reseat_it): Call auto-composition-function with one more argument DIRECTION. (syms_of_composite) : Update the doc string. * src/ftfont.c (ftfont_shape_by_hb): Compute language and direction, and set buffer properties accordingly. * src/composite.c (autocmp_chars): * src/w32uniscribe.c (uniscribe_shape): * src/xftfont.c (xftfont_shape): * src/ftfont.c (ftfont_shape, ftfont_shape_by_hb): * src/font.c (Ffont_shape_gstring): Accept an additional argument DIRECTION. * src/macfont.m (lgstring_direction): New enum. (mac_font_shape_1, mac_screen_font_shape, mac_font_shape): Accept an additional argument specifying text direction. All callers changed. * src/font.c (syms_of_font): New symbols QL2R and QR2L. * src/font.h (shape): Accept new argument DIRECTION. All implementations changed. (Bug#33729) (ftfont_shape): Update prototype. 2018-12-29 Martin Rudalics Avoid that unwind_format_mode_line messes up buffer points (Bug#32777) * src/xdisp.c (format_mode_line_unwind_data): Before temporarily selecting a window on another frame, separately save the point of that window's buffer too. (unwind_format_mode_line): After undoing the temporary selection of a window on another frame, separately restore the buffer point of that window. This is needed since the operation that deselects that window will have stored back the point of that window into its buffer's point which is wrong since that window was never "officially" selected (Bug#32777). 2018-12-28 Dmitry Gutov project-find-file: Move the common parent directory to the prompt * lisp/progmodes/project.el (project--completing-read-strict): Extract the common parent directory of all files first (https://lists.gnu.org/archive/html/emacs-devel/2018-12/msg00444.html). 2018-12-28 Michael Albinus * lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf. 2018-12-27 Paul Eggert Improve motivations in gomoku messages * lisp/play/gomoku.el (gomoku-terminate-game): Don't make six-year-old children cry (Bug#33803). 2018-12-27 Paul Pogonyshev Accept 1-arg 'substring' calls in byte compiler Those have been supported by the function implementation since commit 2014-03-31T12:06:34Z!dmantipov@yandex.ru (Bug#33807). * lisp/emacs-lisp/bytecomp.el: substring has 1-3 args, not 2-3. 2018-12-27 Paul Eggert Update from Gnulib * build-aux/config.guess, lib/regcomp.c, lib/regex.c: * lib/regex_internal.h, lib/regexec.c: Copy from Gnulib. 2018-12-27 Eli Zaretskii Avoid assertion violation in directory-files * src/dired.c (directory_files_internal): Make sure MATCH is either nil or a string. (Bug#33889) 2018-12-27 Michael Albinus Bump Tramp version to 2.4.1 * doc/misc/trampver.texi: * lisp/net/tramp.el: * lisp/net/trampver.el: Change version to "2.4.1". 2018-12-27 Martin Rudalics Fix last change of debug.el * lisp/emacs-lisp/debug.el (debug): In noninteractive calls do the buffer text truncation in the debugger buffer. 2018-12-26 Dmitry Gutov Tone down diff-refine-removed and diff-refine-added as well * lisp/vc/diff-mode.el (diff-refine-removed, diff-refine-added): Change backgrounds in light backgrounds themes (bug#33567). 2018-12-26 Paul Eggert Port message-checksum to bignums * lisp/gnus/message.el (message--rotate-fixnum-left): New function. (message-checksum): Use it instead of assuming fixnum-only arithmetic. This should fix Bug#33083. 2018-12-26 Martin Rudalics Set up debugger buffer earlier and fit window to it (Bug#32825) * lisp/emacs-lisp/debug.el (debug): Set up debugger buffer before displaying it and advise 'display-buffer' to fit the window to it (Bug#32825). 2018-12-25 Dmitry Gutov Tone down diff-added and diff-removed in light themes * lisp/vc/diff-mode.el (diff-removed, diff-added): Tone down light background colors (bug#33567). 2018-12-25 Juri Linkov * lisp/isearch.el (isearch-done): Reset isearch-lazy-highlight-last-string to nil (bug#33838). (isearch-lazy-highlight-new-loop) (isearch-lazy-highlight-buffer-update): Don't set arg ELLIPSIS of isearch-message to t to not reset the value of isearch-error. 2018-12-25 Juri Linkov * lisp/vc/diff-mode.el (diff-syntax-fontify-hunk): Add `*' to names of ephemeral buffers like in " *org-src-fontification:%s*" from `org-src-font-lock-fontify-block'. (Bug#33567) (diff-header, diff-file-header): Tone down light background colors. 2018-12-25 Dmitry Gutov Prepend 'rubocop' with 'bundle exec' when appropriate 2018-12-25 Dmitry Gutov Use rubocop --lint when no .rubocop.yml * lisp/progmodes/ruby-mode.el (ruby-flymake-rubocop): When no config file found, only run lint cops (bug#31760). 2018-12-25 Michael Albinus Provide tramp-adb-handle-make-process * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): Add `tramp-adb-handle-make-process' and `tramp-handle-start-file-process'. (tramp-adb-handle-make-process): New defun, derived from `tramp-adb-handle-start-file-process'. (Bug#28691) 2018-12-24 Michael Albinus Provide tramp-sh-handle-make-process * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add `tramp-sh-handle-make-process' and `tramp-handle-start-file-process'. (tramp-sh-handle-make-process): New defun, derived from `tramp-sh-handle-start-file-process'. (Bug#28691) * lisp/net/tramp.el (tramp-handle-start-file-process): New defun. * test/lisp/net/tramp-tests.el (tramp-test30-make-process): New test. (tramp-test31-interrupt-process, tramp-test32-shell-command) (tramp-test33-environment-variables) (tramp-test33-environment-variables-and-port-numbers) (tramp-test34-explicit-shell-file-name, tramp-test35-exec-path) (tramp-test35-remote-path, tramp-test36-vc-registered) (tramp-test37-make-auto-save-file-name) (tramp-test38-find-backup-file-name) (tramp-test39-make-nearby-temp-file) (tramp-test40-special-characters) (tramp-test40-special-characters-with-stat) (tramp-test40-special-characters-with-perl) (tramp-test40-special-characters-with-ls, tramp-test41-utf8) (tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl) (tramp-test41-utf8-with-ls, tramp-test42-file-system-info) (tramp-test43-asynchronous-requests, tramp-test44-auto-load) (tramp-test44-delay-load, tramp-test44-recursive-load) (tramp-test44-remote-load-path, tramp-test45-unload): Rename. 2018-12-23 Dmitry Gutov xref-goto-xref: Highlight the exact symbol after the jump * lisp/progmodes/xref.el (xref-goto-xref): Bind 'xref--current-item' to highlight the exact symbol after the jump and not the whole line. 2018-12-23 Dmitry Gutov execute-extended-command: Skip waiting in more cases * lisp/simple.el (execute-extended-command): Don't wait when there's no binding the current command, and the user doesn't want to see "shorter" suggestions, or TYPED is nil anyway. 2018-12-23 Khaled Hosny Clarify one FIXME a bit 2018-12-23 Khaled Hosny Cache HarfBuzz buffer Potentially faster and less memory allocations. I did not do any measurements though, so possibly a micro optimization. 2018-12-23 Khaled Hosny Remove one more FIXME 2018-12-23 Michael Albinus Handle `make-process' in Tramp and ange-ftp * doc/lispref/processes.texi (Asynchronous Processes): Explain, that not all file name handlers support `make-process'. * lisp/net/ange-ftp.el: * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist): * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist): * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist): * lisp/net/tramp.el (tramp-file-name-for-operation): Add `make-process'. * lisp/vc/ediff-util.el: * src/process.c: * test/src/process-tests.el: Use "file name handler" consequently. 2018-12-22 Juri Linkov * lisp/simple.el (next-error-no-select): Use save-selected-window. Let-bind display alist of display-buffer-overriding-action to `(inhibit-same-window . t)'. (Bug#32607) 2018-12-22 Philipp Stephani Add file name handler support for 'make-process' (Bug#28691) * src/process.c (Fmake_process): Add new keyword argument ':file-handler'. (syms_of_process) : Define new symbols. * lisp/files.el (file-name-non-special): Add support for 'make-process'. * test/src/process-tests.el (make-process/file-handler/found) (make-process/file-handler/not-found) (make-process/file-handler/disable): New unit tests. (process-tests--file-handler): New helper function. * test/lisp/files-tests.el (files-tests-file-name-non-special-make-process): New unit test. * doc/lispref/files.texi (Magic File Names): Document that 'make-process' can invoke file name handlers. * doc/lispref/processes.texi (Asynchronous Processes): Document ':file-handlers' argument to 'make-process'. * etc/NEWS (Lisp Changes in Emacs 27.1): Mention new :file-handler argument for 'make-process'. 2018-12-22 Eli Zaretskii * etc/HELLO: Add missing charset properties for Japanese and Korean. 2018-12-22 Charles A. Roelli Macroexpand before evaluating in eval-expression (bis) * lisp/simple.el (eval-expression): Macroexpand before evaluating. This repeats the fix made for Bug#20730 in another branch of the code a few lines down. 2018-12-22 Khaled Hosny Replace another FIXME with a TODO and expanded comment Replace a FIXME with an expanded comment 2018-12-22 Thomas Fitzsimmons ldap.el: Do not set process-connection-type * lisp/net/ldap.el (ldap-search-internal): Leave process-connection-type at its default value. (Bug#33050) 2018-12-22 Michael Albinus Use "file name handler" consequently * doc/lispref/files.texi: * doc/lispref/processes.texi: * doc/misc/ediff.texi: * lisp/simple.el: * lisp/vc/ediff-ptch.el: * src/buffer.c: * src/dired.c: * src/fileio.c: * src/image.c: * src/insdel.c: * src/w32fns.c: Use "file name handler" consequently. 2018-12-22 Khaled Hosny Subclass default HarfBuzz Unicode functions Instead of creating new functions from scratch, subclass the default implementation and override the selected functions we want/can override. (Bug#33729) 2018-12-22 Khaled Hosny Fix previous commit 2018-12-22 Khaled Hosny Properly fix building with HarfBuzz and without libotf HarfBuzz support does not depend on libotf, the build breakage when libotf is missing was because code guarded with: #if defined HAVE_M17N_FLT && defined HAVE_LIBOTF was incorrectly changed to: #if defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ this is now properly fixed by making it: #if (defined HAVE_M17N_FLT && defined HAVE_LIBOTF) || defined HAVE_HARFBUZZ Other changes in previous commits were reverted. 2018-12-21 Michael Albinus Fix Bug#33735 * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter): Delete empty lines. (Bug#33735) (tramp-sh-inotifywait-process-filter): Use `string-match'. (tramp-set-remote-path): Check for PIPE_BUF but PATH_MAX. * test/lisp/filenotify-tests.el: Handle $REMOTE_FILE_NOTIFY_LIBRARY. (file-notify--deftest-remote): Suppress vc-handled-backends. (file-notify-test08-backup): Do not expect failure on hydra. (Bug#33735). 2018-12-21 Michael Albinus * test/lisp/filenotify-tests.el, test/lisp/shadowfile-tests.el: Don't require tramp-sh, bug#33781 is fixed. 2018-12-20 Juri Linkov * lisp/emacs-lisp/debug.el (debug): Add display-buffer-below-selected to display actions of pop-to-buffer, and `(window-min-height . 10)' to display alist. (Bug#32825) 2018-12-20 Juri Linkov * lisp/windmove.el (windmove-delete-in-direction): Change prefix arg C-u to kill the buffer. Add prefix arg M-0 to delete the selected window. (Bug#32790) 2018-12-20 Juri Linkov * lisp/window.el (switch-to-buffer-obey-display-actions): New defcustom. (switch-to-buffer): Use it. (Bug#32790) (switch-to-buffer-preserve-window-point): Mention it in docstring. * lisp/windmove.el (windmove-display-in-direction): Mention it in docstring. * doc/lispref/windows.texi (Switching Buffers): Document switch-to-buffer-obey-display-actions. 2018-12-20 Juri Linkov * lisp/hi-lock.el (hi-salmon, hi-aquamarine): New faces. (Bug#33398) (hi-lock-face-defaults): Add them. (hi-green-b, hi-red-b): Tone down foreground colors. 2018-12-20 Glenn Morris Merge from origin/emacs-26 081fb69 (origin/emacs-26) Check result from c-backward-token-2 to avo... f4ea746 cl-make-random-state was not copying its arg 2018-12-20 Glenn Morris Merge from origin/emacs-26 4c6c327 Restrict downcasing in elisp xref tests (bug#25534) ab8ed41 Avoid test failures if directory name looks like a regexp 2018-12-20 Glenn Morris Merge from origin/emacs-26 5825279 * doc/lispintro/emacs-lisp-intro.texi (Finding More): Fix xref. 2018-12-20 Stefan Monnier * lisp/emacs-lisp/map.el: Add support for plists (map--plist-p, map--plist-delete): New functions. (map-elt, map-delete, map-length, map-into, map-put!, map-insert) (map-apply, map-do): Handle the plist case. * test/lisp/emacs-lisp/map-tests.el (with-maps-do): Add sample plist. (test-map-put!): The behavior of map-put! is not the same for plists as for alists. 2018-12-20 Michael Albinus * test/lisp/net/tramp-tests.el (tramp-test32-environment-variables): Remove expected failure. 2018-12-20 Michael Albinus Fix Bug#33781 * lisp/net/tramp-sh.el (tramp-set-remote-path): Use a temporary file for setting $PATH, if it exceeds PATH_MAX on the remote system. (tramp-send-command-and-read): Ignore errors if NOERROR. (Bug#33781) * test/lisp/net/tramp-tests.el (tramp-test34-remote-path): New test. 2018-12-19 Glenn Morris Skip rather than fail in flymake tests * test/lisp/progmodes/flymake-tests.el (flymake-tests--wait-for-backends): Skip rather than fail if backends are slow to respond. This always seems like a temporary system glitch and not something that should be reported as a failure. 2018-12-19 Eric Abrahamsen Make gnus-newsgroup-name local var available to gnus-summary-mode * lisp/gnus/gnus-sum.el (gnus-summary-mode-group): New defvar for passing gnus-newsgroup-name (a local variable) into the body of gnus-summary-mode, so that it's available to gnus-summary-mode-hook. 2018-12-19 Juri Linkov * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure unconditionally. (Bug#33798) 2018-12-19 Paul Eggert Minor fixes/simplifications to time functions * doc/lispintro/emacs-lisp-intro.texi (Files List): Simplify. * doc/lispref/os.texi (Time of Day): Mention format-time-string as an alternative to current-time-string. * lisp/arc-mode.el (archive-unixdate, archive-unixtime): Port better to future versions of Emacs where (COUNT . HZ) will take precedence to (HI . LO). * lisp/arc-mode.el (archive-unixtime): * lisp/calendar/todo-mode.el (todo-insert-item--basic) (todo-item-done, todo-read-time): Prefer format-time-string to substringing current-time-string. * lisp/calc/calc-forms.el (calc-time, calcFunc-now): Prefer decode-time to parsing the output of current-time-string. * lisp/emacs-lisp/cl-extra.el (cl--random-time): Prefer encode-time to hashing the output of current-time-string. * lisp/gnus/gnus-score.el (gnus-score-headers) (gnus-score-adaptive): Avoid stringifying and then reparsing timestamp. * src/timefns.c (Fencode_time): Omit redundant assignment. 2018-12-19 Michael Albinus * lisp/net/tramp-sh.el (tramp-set-remote-path): Send a warning, if $PATH exceeds PATH_MAX on the remote system. 2018-12-19 Nicholas Drozd * src/editfns.c (Finsert_char): Skip unnecessary fixnum check. 2018-12-18 Glenn Morris Skip a remote filenotify test on hydra * test/lisp/filenotify-tests.el (file-notify--deftest-remote): Add optional argument to skip test. (file-notify-test07-many-events-remote): Skip on hydra.nixos.org. 2018-12-18 Stefan Monnier * lisp/font-lock.el: Use lexical-binding (font-lock-initial-fontify, font-lock-compile-keywords): Silence compiler warning. (font-lock-ensure-function): Fix some problems in last commit. 2018-12-18 Stefan Monnier * lisp/font-lock.el (font-lock-ensure-function): Fix bug#33798 2018-12-18 Juri Linkov More font-lock improvements for diff-mode * lisp/vc/diff-mode.el (diff-font-lock-keywords): Use diff-header face for git index lines (like already used for bzr index lines). Use diff-file-header face for binary file headers. (diff-find-source-location): Use expand-file-name for vc-find-revision. (diff--font-lock-prettify): Use diff-indicator-* faces for left-fringe indicators. (diff-syntax-fontify-props): Optimize to not use text-property-not-all for font-lock-ensure. * lisp/replace.el (occur-engine-line): Simplify to use font-lock-ensure without text-property-not-all. 2018-12-18 Juri Linkov Fontify one-line diffs without the final newline (bug#33567) * lisp/vc/diff-mode.el (diff-hunk-text, diff-syntax-fontify-hunk): Skip lines beginning with backslash like "\ No newline at end of file". (diff-syntax-fontify-hunk): Use string-trim-right. For one-line diffs use 1 explicitly in the list of line numbers. 2018-12-18 Paul Eggert Support (ash INTEGER BIGNUM) * src/data.c (emacs_mpz_mul_2exp): 2nd arg is now a nonnegative EMACS_INT not mp_bitcnt_t, to simplify checking. (Fash): Support COUNT values that are bignums or that exceed mp_bitcnt_t range. * test/src/data-tests.el (data-tests-ash-lsh): Test this. 2018-12-18 Eli Zaretskii Fix one last compilation warning in ftfont.c * src/ftfont.c (ftfont_get_hb_font): Only define if HAVE_LIBOTF is defined. (Bug#33771) 2018-12-18 Glenn Morris Expect tramp environment test to fail on hydra * test/lisp/net/tramp-tests.el (tramp-test32-environment-variables): Expect failure on hydra.nixos.org. 2018-12-18 Glenn Morris A filenotify test now passes on hydra * test/lisp/filenotify-tests.el (file-notify-test04-autorevert): Remote test now passes on hydra.nixos.org, since PATH workaround for bug#33781. 2018-12-18 Eli Zaretskii Condition some more hb_* functions on HAVE_LIBOTF. 2018-12-18 Michael Albinus Fix Bug#33781 * lisp/net/tramp-cache.el (tramp-connection-properties): * lisp/net/tramp-sh.el (tramp-remote-path) (tramp-remote-process-environment, tramp-sh-extra-args): Reinsert autoload cookie. (Bug#33781) * test/lisp/net/tramp-tests.el: Do not require tramp-sh before changing tramp-remote-path. 2018-12-18 Nicolas Petton New convenience functions in seq.el Functions to access the first or all but the first elements of sequences have been repeatedly asked for (the last occurrence being https://github.com/NicolasPetton/seq.el/issues/9). * lisp/emacs-lisp/seq.el (seq-first, seq-rest): New functions. * test/lisp/emacs-lisp/seq-tests.el (test-seq-first, test-seq-rest): New tests for seq-first and seq-rest. 2018-12-17 Glenn Morris Tiny ert-summarize-tests-batch-and-exit improvement * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): Report the details of unexpected passes as well as failures. 2018-12-17 Juri Linkov Syntactic fontification of diff hunks (bug#33567) * lisp/vc/diff-mode.el (diff-font-lock-syntax): New defcustom. (diff-default-directory): New buffer-local variable. (diff-indicator-removed, diff-indicator-added) (diff-indicator-changed): Set foreground to distinctive colors. (diff-context): Remove colors to make room for syntax highlighting. (diff-font-lock-keywords): Add diff--font-lock-syntax. (diff--font-lock-cleanup): Remove diff-mode syntax overlays. (diff--font-lock-syntax, diff--font-lock-syntax--refresh) (diff-syntax-fontify-revisions, diff-syntax-fontify-hunk) (diff-syntax-fontify-props): New functions. * lisp/vc/diff.el (diff-no-select): Set diff-default-directory to default-directory. * doc/emacs/files.texi (Diff Mode): Document diff-font-lock-syntax. 2018-12-17 Paul Eggert Make org-protocol-flatten always an alias * lisp/org/org-protocol.el (org-protocol-flatten): Rewrite as top-level alias, as per Stefan’s suggestion, to avoid compiler warnings. 2018-12-17 Stefan Monnier * lisp/emacs-lisp/map.el: Avoid special casing lists. (map-not-inplace, map-inplace): New errors. (map-insert): New generic function. (map-put!): Signal map-not-inplace rather than a generic 'error'. (map-elt): Use map-not-inplace and map-insert to avoid hardcoding a special case for lists. * test/lisp/emacs-lisp/map-tests.el (test-map-put!): Rename from test-map-put. Also test the errors signaled. 2018-12-17 Glenn Morris Avoid tests failures on hydra due to Tramp autoload changes * test/lisp/filenotify-tests.el, test/lisp/shadowfile-tests.el: * test/lisp/net/tramp-tests.el: Require tramp-sh before changing tramp-remote-path. 2018-12-17 Paul Eggert One more flatten-tree test * test/lisp/subr-tests.el (subr-tests-flatten-tree): Add a test for lots of nothing. 2018-12-17 Paul Eggert Some more flatten-tree aliases * lisp/allout.el (allout-flatten): * lisp/progmodes/hideif.el (hif-flatten): Now an obsolete alias for flatten-tree. All callers changed. * lisp/org/org-protocol.el (org-protocol-flatten): Make it an alias for flatten-tree if available. * lisp/progmodes/js.el (js--flatten-list): Remove alias. We shouldn’t need obsolete function aliases for private functions. 2018-12-17 Paul Eggert Improve flatten-tree documentation * doc/lispref/lists.texi (Building Lists): * lisp/subr.el (flatten-tree): Don’t imply that flatten-tree modifies its argument. Clarify wording. 2018-12-17 Paul Eggert Improve flatten-tree performance * lisp/subr.el (flatten-tree): Improve performance by calling ‘cons’ once rather than twice when a cons cell is popped. 2018-12-17 Eli Zaretskii Avoid compilation warning in ftfont.c * src/ftfont.c (ftfont_shape_by_hb): Compile only if HAVE_LIBOTF is defined. (Bug#33771) 2018-12-17 Paul Eggert Assume ‘emacs’ is defined in Emacs-only code * src/charset.c, src/coding.c, src/coding.h, src/gmalloc.c: * src/ralloc.c, src/regex-emacs.c: Simplify slightly by assuming that ‘emacs’ is defined. These modules have long been specific to Emacs, and are not used elsewhere. 2018-12-17 Eli Zaretskii Fix last change. 2018-12-17 Mike Kupfer * src/ftcrfont.c (ftcrfont_driver): Really commit last change. 2018-12-17 Mike Kupfer More fixes for build without libotf * src/xftfont.c (xftfont_driver): * src/ftxfont.c (ftxfont_driver): * src/ftcrfont.c (ftcrfont_driver): Set the .shape member only if HAVE_LIBOTF is defined. (Bug#33771) 2018-12-17 Eli Zaretskii Fix compilation errors when building without libotf * src/ftfont.c (ftfont_shape): Only compile if HAVE_LIBOTF is defined. (ftfont_driver): Set the .shape member only if HAVE_LIBOTF is defined. (Bug#33771) 2018-12-17 Michael Albinus Use `flatten-tree' in Tramp * lisp/net/tramp-compat.el (tramp-compat-flatten-tree): New defun. (tramp-compat-flatten-list): Remove. * lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command): Use it. 2018-12-17 Alex Branham Basil L. Contovounesios New function flatten-tree * doc/lispref/lists.texi: Document `flatten-tree'. * lisp/progmodes/js.el (js--maybe-join): * lisp/printing.el (pr-switches): * lisp/lpr.el (lpr-print-region): * lisp/gnus/nnimap.el (nnimap-find-wanted-parts): * lisp/gnus/message.el (message-talkative-question): * lisp/gnus/gnus-sum.el (gnus-remove-thread) (gnus-thread-highest-number, gnus-thread-latest-date): * lisp/eshell/esh-util.el (eshell-flatten-and-stringify): * lisp/eshell/esh-opt.el (eshell-eval-using-options): * lisp/eshell/esh-ext.el (eshell-external-command): * lisp/eshell/em-xtra.el (eshell/expr): * lisp/eshell/em-unix.el (eshell/rm, eshell-mvcpln-template) (eshell/cat, eshell/make, eshell-poor-mans-grep, eshell-grep) (eshell/du, eshell/time, eshell/diff, eshell/locate): * lisp/eshell/em-tramp.el (eshell/su, eshell/sudo): * lisp/eshell/em-term.el (eshell-exec-visual): * lisp/eshell/em-dirs.el (eshell-dirs-substitute-cd, eshell/cd): * lisp/eshell/em-basic.el (eshell/printnl): Use new flatten-tree. * lisp/progmodes/js.el (js--flatten-list): * lisp/lpr.el (lpr-flatten-list): * lisp/gnus/message.el (message-flatten-list): * lisp/eshell/esh-util.el (eshell-flatten-list): Obsolete in favor of Emacs-wide `flatten-tree'. * lisp/subr.el (flatten-list): Alias to `flatten-tree' for discoverability. * lisp/subr.el (flatten-tree): New defun. * test/lisp/subr-tests.el (subr-tests-flatten-tree): New test. 2018-12-17 Michael Albinus Fix Bug#33524 * lisp/progmodes/flymake-proc.el (flymake-proc-create-temp-with-folder-structure): Unquote file-name. (Bug#33524) 2018-12-17 Michael Albinus Reduce autoloaded objects in Tramp * lisp/net/tramp-adb.el (tramp-adb-program) (tramp-adb-connect-if-not-connected, tramp-adb-prompt): Remove autoload cookie. * lisp/net/tramp-cache.el (tramp-connection-properties) (tramp-persistency-file-name): Remove autoload cookie. * lisp/net/tramp-ftp.el (tramp-ftp-enable-ange-ftp): Use `tramp-autoload' cookie. * lisp/net/tramp-gvfs.el (tramp-gvfs-zeroconf-domain): Remove autoload cookie. * lisp/net/tramp-rclone.el (tramp-rclone-program): Remove autoload cookie. (tramp-set-completion-function): Use `tramp--with-startup'. * lisp/net/tramp-sh.el (tramp-inline-compress-start-size) (tramp-copy-size-limit, tramp-histfile-override) (tramp-use-ssh-controlmaster-options, tramp-remote-path) (tramp-remote-process-environment, tramp-sh-extra-args): Remove autoload cookie. (tramp-stat-marker, tramp-stat-quoted-marker): Move to tramp.el. * 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): Remove autoload cookie. * lisp/net/tramp-sudoedit.el (server, tramp-sh): Do not require. * lisp/net/tramp.el (tramp--startup-hook): Define. (tramp-stat-marker, tramp-stat-quoted-marker): New defconsts, taken from tramp-sh.el. * test/lisp/net/tramp-archive-tests.el (tramp-copy-size-limit) (tramp-persistency-file-name): Declare. * test/lisp/net/tramp-tests.el (tramp-connection-properties) (tramp-display-escape-sequence-regexp) (tramp-inline-compress-start-size, tramp-remote-path): Declare. 2018-12-16 Stefan Monnier * lisp/emacs-lisp/macroexp.el: Don't hide backtrace (macroexp--compiler-macro): Use condition-case-unless-debug. 2018-12-16 João Távora Jsonrpc error handlers can now safely call jsonrpc-shutdown Previously, if an error handler called jsonrpc-shutdown, and if that error handler was being called from the process sentinel, jsonrpc-shutdown would infloop waiting for jsonrpc-sentinel-done to be set. Rename the process property jsonrpc-sentinel-done to jsonrpc-sentinel-cleanup-started, arrange for it to be set earlier in the sentinel, and also check for it earlier in jsonrpc-shutdown. * lisp/jsonrpc.el (Version): Bump to 1.0.7. (jsonrpc--process-sentinel): Set jsonrpc-sentinel-cleanup-started a bit earlier than previous jsonrpc-sentinel-done. (jsonrpc-shutdown): Query jsonrpc-sentinel-cleanup-started 2018-12-16 Paul Eggert Update from Gnulib This incorporates: 2018-12-16 regex: propagate fix for glibc bug 18040 2018-12-16 obstack, libc-config: Support HP-UX cc in C99 mode 2018-12-15 regex: work around a bug in glibc-2.27 and prior 2018-12-13 localtime-buffer: Avoid endless recursion * build-aux/config.guess, build-aux/config.sub, lib/cdefs.h: * lib/gettext.h, lib/localtime-buffer.c, lib/regexec.c, m4/regex.m4: Copy from Gnulib. 2018-12-16 Stefan Monnier * lisp/net/tramp.el: Rework mutual dependencies Functionally split tramp-loaddefs.el into two parts: one part run while loading it at the very beginning of loading tramp.el (holding plain autoloads and declarations), and another run at the very end of loading tramp.el (holding setup code). This should reduce infinite-recursion problems while loading. * lisp/net/tramp.el: Require tramp-loaddefs at beginning. Run (new and internal) tramp--startup-hook at the end. Remove all tramp-autoloads. Prefer tramp--with-startup over eval-after-load. (tramp--with-startup): New macro. (tramp-set-syntax): Show the new value rather than the old value in the error message. (tramp-syntax-values): Explicitly return 'values'. (tramp-prefix-format, tramp-prefix-regexp, tramp-method-regexp) (tramp-postfix-method-format, tramp-postfix-method-regexp) (tramp-prefix-ipv6-format, tramp-prefix-ipv6-regexp) (tramp-postfix-ipv6-format, tramp-postfix-ipv6-regexp) (tramp-postfix-host-format, tramp-postfix-host-regexp) (tramp-remote-file-name-spec-regexp, tramp-file-name-structure) (tramp-completion-file-name-regexp): Don't initialize in the declaration, since it's recomputed at the end anyway. (tramp-time-dont-know, tramp-time-doesnt-exist): Move before first use. * lisp/net/tramp-compat.el: Don't require tramp-loaddefs any more. (tramp-compat-tramp-syntax): Declare tramp-syntax. * lisp/net/tramp-smb.el: * lisp/net/tramp-rclone.el: * lisp/net/tramp-gvfs.el: * lisp/net/tramp-ftp.el: * lisp/net/tramp-adb.el: Wrap all autoloaded setup operations within tramp--with-startup. * lisp/net/tramp-sh.el: Wrap all autoloaded setup operations within tramp--with-startup. (tramp-display-escape-sequence-regexp) (tramp-device-escape-sequence-regexp): Don't tramp-autoload any more. (tramp-stat-marker): Use eval-and-compile rather than tramp-autoload. * lisp/net/tramp-sudoedit.el: Wrap all autoloaded setup operations within tramp--with-startup. Require tramp-sh at compile-time to precompute some regexps based on tramp-stat-marker. 2018-12-16 Michael Albinus Add Tramp sudoedit method * doc/misc/tramp.texi (Quick Start Guide): New section "Using sudoedit". (External methods) : Describe. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist): * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist) * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler. * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-uid-gid): Rename from `tramp-sh-handle-set-file-uid-gid'. Handle only remote file names. * lisp/net/tramp-sudoedit.el: New file. * lisp/net/tramp.el (tramp-file-name-for-operation): Handle also `tramp-set-file-uid-gid'. (tramp-set-file-uid-gid): New defun. (tramp-get-local-uid, tramp-get-local-gid): Cache result. * test/lisp/net/tramp-tests.el (tramp--test-sudoedit-p): New defun. (tramp-test20-file-modes, tramp-test22-file-times) (tramp--test-sudoedit-p): Use it. 2018-12-16 João Távora Rephrase a confusing sentence in the jsonrpc.el manual * doc/lispref/text.texi (JSONRPC Overview): Rephrase first sentence on building JSONRPC applications. 2018-12-15 Glenn Morris Expect two epg tests to fail on hydra * test/lisp/epg-tests.el (epg-decrypt-1, epg-roundtrip-1): These currently fail for unknown reasons on hydra.nixos.org. 2018-12-15 Glenn Morris Merge from origin/emacs-26 fa953b5 (origin/emacs-26) Fix an epg test for recent GnuPG versions (... 3015636 Document font structure layout constraints f14d574 Document font structure layout constraints f519aa1 Fix display of line numbers in empty lines beyond EOB 24b5026 Fix redisplay when a window's scroll bar or fringes are changed 5d1b158 Tiny markup fix in Elisp manual 2018-12-15 Glenn Morris Ensure flymake tests use gcc rather than $CC * test/lisp/progmodes/flymake-resources/Makefile: Force use of gcc. This seems to be what the tests expect. (Bug#33735) 2018-12-15 Glenn Morris Suppress filenotify remote test failures on hydra.nixos.org * test/lisp/filenotify-tests.el (file-notify--deftest-remote): Add optional argument to pass expected-result. (file-notify-test04-autorevert-remote) (file-notify-test08-backup-remote): Expect failure on hydra (bug#33735). 2018-12-15 Glenn Morris Fix an eshell ls dired test for non-recent files * test/lisp/eshell/em-ls-tests.el (em-ls-test-bug27844): Work around an eshell issue with non-recent files. (Bug#33734) 2018-12-14 Paul Eggert Assume hb_ft_font_create_referenced if HarfBuzz * configure.ac (HAVE_HB_FT_FONT_CREATE_REFERENCED): Remove test, since we now require 0.9.42 and hb_ft_font_create_referenced has been present since 0.9.38. * src/ftfont.c (ft_face_destroy, hb_ft_font_create_referenced): Remove; no longer needed. 2018-12-14 Glenn Morris * configure.ac: Guess at minimum harfbuzz version. (Bug#33748) * make-dist: Improve no-byte-compile check. 2018-12-14 Glenn Morris * make-dist: Improve tempfile handling. Prompted by /tmp/out existing and being owned by another user. 2018-12-14 Glenn Morris * make-dist: Silence test of tar functionality. 2018-12-14 Basil L. Contovounesios * lisp/emacs-lisp/map.el: Fix recent changes (map-empty-p): Add method for lists which avoids computing their entire length. (map-contains-key): Check for alist membership by comparing against DEFAULT argument returned by alist-get. (map-put!): Reconcile argument name with that used in docstring. 2018-12-14 Ari Roponen Fix crash in the Cairo build * src/ftcrfont.c (struct ftcrfont_info) [HAVE_HARFBUZZ]: New member 'hb_font'. (Bug#33739) 2018-12-13 Glenn Morris * test/lisp/eshell/em-ls-tests.el (em-ls-test-bug27844): Remove debug. 2018-12-13 Stephen Leake Get long package description for installed packages from installed files * doc/lispref/package.texi (Archive Web Server): New; document web server interface. * lisp/emacs-lisp/package.el (package--get-description): New; get long description from installed files. (describe-package-1): Use it, improve comments. No longer writing NAME-readme.txt. * test/lisp/emacs-lisp/package-tests.el: (package-test-describe-package): There is now a description for an installed package. (package-test-describe-installed-multi-file-package): New test. 2018-12-13 Stephen Leake Merge commit 'd08b75abe0f0cf9ade812b189c374809a2c7836e' 2018-12-13 Paul Eggert Fix stray CHECK_FIXNUM_COERCE_MARKER * src/xdisp.c (Fbidi_resolved_levels): Don’t allow a marker arg; markers are character positions not vertical positions. 2018-12-13 Paul Eggert Default to --with-harfbuzz * configure.ac: By default, configure with HarfBuzz if available. 2018-12-13 Paul Eggert Simplify mainline Harfbuzz-using code * src/ftfont.c (ft_face_destroy): Omit unnecessary cast. (hb_ft_font_create_referenced) [!HAVE_HB_FT_FONT_CREATE_REFERENCED]: New function. (ftfont_get_hb_font): Use it. 2018-12-13 Glenn Morris * test/lisp/eshell/em-ls-tests.el (em-ls-test-bug27844): Add debug. 2018-12-13 Michael Albinus * doc/misc/tramp.texi (Ad-hoc multi-hops): Reinsert lost line. 2018-12-12 João Távora Allow per-diagnostic overlay properties in Flymake * lisp/progmodes/flymake.el (Version): Bump to 1.0.3. (flymake--diag): Add new field overlay-properties. (flymake-make-diagnostic): New optional arg overlay-properties. (flymake--highlight-line): Use it. 2018-12-12 Juri Linkov * lisp/vc/vc.el (vc-find-revision-no-save): Use decode-coding-inserted-region and after-insert-file-set-coding. Don't let-bind coding-system-for-read and coding-system-for-write. For non-interactive use, let-bind enable-local-variables to :safe and ignore errors from set-auto-mode call. (Bug#33567) 2018-12-12 Glenn Morris Improve em-ls-test-bug27844 * test/lisp/eshell/em-ls-tests.el (em-ls-test-bug27844): Skip if source-directory absent. 2018-12-12 Paul Eggert Simplify validate_interval_range and callers * src/textprop.c (validate_interval_range): Remove useless code. Fix comment to match current behavior. (set_text_properties, copy_text_properties): Simplify, as validate_interval_range has not incremented START or END for quite some time. (copy_text_properties): Assume C99. Fix an unlikely integer overflow bug if WIDE_EMACS_INT. 2018-12-12 Paul Eggert set_text_properties_1 can assume START <= END * src/textprop.c (set_text_properties_1): Do not swap START and END. All callers do that already, and the test for swapping here is redundant. 2018-12-12 Eli Zaretskii Fix regression in expand-file-name with drive-relative HOME * src/fileio.c (get_homedir) [DOS_NT]: Expand drive-relative $HOME to begin with "X:/". * test/src/fileio-tests.el (fileio-tests--relative-HOME): Add testing of drive-relative value of $HOME on MS-Windows and MS-DOS. 2018-12-12 Michael Albinus Fix Bug#33568 * test/lisp/net/secrets-tests.el (secrets-test02-collections) (secrets-test03-items): Do not expect "login" collection to exist. (Bug#33568) 2018-12-11 Stefan Monnier * lisp/emacs-lisp/map.el: Make the functions generic Make them document their delegation relationship, to clarify when a method is needed. (map--dispatch): Give more info in the error message. (map-elt): Make it generic and deprecate the 'testfn' arg. (map-put): Make it obsolete. (map-length): Make it work on hash-tables. (map-apply): Define it in terms of map-do. (map-do, map-into): Use cl-generic dispatch instead of map--dispatch. (map-empty-p): Define it in terms of map-length. (map-contains-key): Deprecate 'testfn'. Make it return a boolean, so it can return non-nil even if 'key' is nil. Improve implementation to avoid constructing an intermediate list of all keys. (map-merge-with): Use 'eql' rather than `eq'. (map-put!): Rename from map--put and make it generic, to replace map-put. (map--apply-alist, map--apply-hash-table, map--apply-array): Turn them into methods of map-apply. (map--do-alist, map--do-array): Turn them into methods of map-do. (map--into-hash-table): Turn it into a method of map-into. 2018-12-11 Stephen Leake Fix bug in display-buffer-use-some-frame * lisp/window.el (display-buffer-use-some-frame): Pass 'reuse, not 'frame, to window--display-buffer. 2018-12-10 Martin Rudalics Fix typo in 'dired-restore-positions' * lisp/dired.el (dired-restore-positions): Fix typo in last change fixing Bug#33458. 2018-12-10 Glenn Morris Add test/Makefile machinery to exclude test .el files * test/Makefile.in (EXCLUDE_TESTS): New variable. (ELFILES): Filter out any specified exclude files. 2018-12-10 Nobuyoshi Nakada Support Ruby block arguments ending with , or * * lisp/progmodes/ruby-mode.el (ruby-smie--forward-token): Recognize punctuation before "closing-|" as a separate token. (ruby-smie--backward-token): Same (bug#33487). * test/lisp/progmodes/ruby-mode-tests.el (ruby-forward-sexp-jumps-do-end-block-with-no-args) (ruby-backward-sexp-jumps-do-end-block-with-no-args) (ruby-forward-sexp-jumps-do-end-block-with-empty-args) (ruby-backward-sexp-jumps-do-end-block-with-empty-args) (ruby-forward-sexp-jumps-do-end-block-with-args) (ruby-backward-sexp-jumps-do-end-block-with-args) (ruby-forward-sexp-jumps-do-end-block-with-any-args) (ruby-forward-sexp-jumps-do-end-block-with-expanded-one-arg) (ruby-forward-sexp-jumps-do-end-block-with-one-and-any-args) (ruby-backward-sexp-jumps-do-end-block-with-one-and-any-args): New tests. 2018-12-10 Juri Linkov * lisp/isearch.el (isearch-pre-command-hook): Support `isearch-move' command properties with values `enabled' and `disabled' also for the value `shift' of isearch-yank-on-move. (Bug#15839) 2018-12-10 Juri Linkov * lisp/vc/vc.el (vc-root-version-diff): New command (bug#33650). (vc-root-diff): Call it interactively on a prefix argument. 2018-12-10 Matthias Meulien Support git commit --no-verify * lisp/vc/vc-git.el (vc-git-log-edit-toggle-no-verify): New function. (vc-git-log-edit-mode-map): Add binding. (vc-git-checkin): Add an entry for that header. 2018-12-10 Paul Eggert Fix bug when hashing reversed buffer regions * src/fns.c (extract_data_from_object): When checking file-coding-system-alist, calculate the coding system correctly even if START and END are out of order. Use bool for booleans. 2018-12-10 Glenn Morris Merge from origin/emacs-26 2075864 (origin/emacs-26) CC Mode: stop extra parens on expression ca... 2018-12-10 Glenn Morris Merge from origin/emacs-26 5a7451c CC Mode: stop wrongly recognizing "func(a * 9)" as "pointer t... b0ed9d1 * lisp/emacs-lisp/cursor-sensor.el: Add motivation 2018-12-10 Glenn Morris Merge from origin/emacs-26 908af9d Indexing followup to recent changes 505ac9a Improve documentation of cursor-sensor.el (bug#33664) d817d2c * doc/lispref/commands.texi (Adjusting Point): Bug#33662 18442da Tramp multi-hop methods must be inline 1e3e24d ; * src/xterm.c (x_update_begin): Fix whitespace. 1d743d2 Fix scaling problem in Cairo builds 2b9e993 ; * doc/lispref/text.texi (Special Properties): Fix wording. ... e568202 * lisp/simple.el (next-line-or-history-element): Use current-... c7897c2 A few further fixes of window internals description # Conflicts: # doc/misc/tramp.texi 2018-12-10 Glenn Morris * admin/gitmerge.el (gitmerge-skip-regexp): Add yet another variant. 2018-12-10 Michael Albinus * lisp/net/tramp-compat.el (tramp-compat-flatten-list): New defun. 2018-12-10 Stefan Monnier * lisp/Makefile.in (compile-main): Use a more selective regexp. 2018-12-09 Paul Eggert Remove CHECK_FIXNUM_CAR etc. * src/coding.c (CHECK_FIXNAT_CAR, CHECK_FIXNAT_CDR): * src/lisp.h (CHECK_FIXNUM_CAR, CHECK_FIXNUM_CDR): Remove. All uses removed. These seem to have been based on the assumption that the argument cons needs to be modified, an assumption that is incorrect for fixnums. (Fdefine_coding_system_internal): Use CHECK_RANGED_INTEGER instead of a special diagnostic for graphic register numbers. 2018-12-09 Glenn Morris * test/lisp/eshell/eshell-tests.el (with-temp-eshell): Avoid permanently changing HISTFILE. 2018-12-09 Juri Linkov Fix occur for non-nil list-matching-lines-jump-to-current-line (bug#33476) * lisp/replace.el (occur-engine): Move orig-line let-binding higher. Don't use start-line in forward-line. 2018-12-09 Khaled Hosny Fix uni_combining() WIP: implement some Unicode callback functions 2018-12-09 Khaled Hosny Set cluster level to one Makes to possible to edit combining marks separately as now they get a different cluster value from the base glyph. 2018-12-09 Khaled Hosny Cache hb_font_t Not sure if the xftfont.c changes are really needed, but followed the libotf code just in case. 2018-12-09 Khaled Hosny Allow turning HarfBuzz off at run time Useful for comparing the shaping result with that of m17n. 2018-12-09 Khaled Hosny First attempt at HarfBuzz shaping Barely works, and unoptimized! 2018-12-09 Khaled Hosny Add support for building with HarfBuzz Not used yet. 2018-12-09 Michael Albinus * test/lisp/net/tramp-tests.el (tramp-test03-file-name-host-rules): Use proper error symbol. 2018-12-09 Alan Mackenzie Don't create *Compile-Log* due to byte-compile. Amend message to it. This fixes bug #33602 and is a partial reversion of a commit from 2018-11-28T13:15:50. * lisp/emacs-lisp/bytecomp.el (byte-compile-log-file): Don't create buffer *Compile-Log* because it doesn't already exist. Amend message "Compiling no file" to be clearer (?and less irritating). 2018-12-09 Paul Eggert Add make_vector and make_nil_vector This makes the callers a bit easier to read, and doubtless improves efficiency very slightly. It also simplifies possible future changes to allow bignum indexes to buffers. * src/alloc.c (allocate_vectorlike): Prefer ptrdiff_t to size_t when either will do. (make_vector): New function. (Fmake_vector): Use it. * src/buffer.c (syms_of_buffer): * src/bytecode.c (syms_of_bytecode): * src/category.c (Fmake_category_table, init_category_once): * src/ccl.c (syms_of_ccl): * src/character.c (syms_of_character): * src/charset.c (Fdefine_charset_internal) (Ffind_charset_region, Ffind_charset_string): * src/chartab.c (copy_char_table): * src/coding.c (Fdefine_coding_system_internal, syms_of_coding): * src/composite.c (get_composition_id, Fcomposition_get_gstring): * src/composite.h (LGLYPH_NEW): * src/fns.c (concat, Flocale_info, make_hash_table): * src/font.c (font_otf_ValueRecord, font_otf_anchor) (build_style_table, syms_of_font): * src/fontset.c (RFONT_DEF_NEW, fontset_find_font) (dump_fontset, syms_of_fontset): * src/image.c (xpm_make_color_table_v): * src/keyboard.c (modify_event_symbol, menu_bar_items) (parse_menu_item, parse_tool_bar_item, init_tool_bar_items) (syms_of_keyboard): * src/keymap.c (Fdefine_key, describe_map, describe_vector): * src/lread.c (read_vector): * src/macfont.m (macfont_shape): * src/menu.c (init_menu_items): * src/nsfns.m (ns_make_monitor_attribute_list): * src/process.c (conv_sockaddr_to_lisp, network_interface_info): * src/profiler.c (make_log): * src/window.c (Fcurrent_window_configuration): * src/xdisp.c (with_echo_area_buffer_unwind_data) (format_mode_line_unwind_data): * src/xfaces.c (Finternal_make_lisp_face) (Fface_attributes_as_vector): * src/xfns.c (x_make_monitor_attribute_list) (Fx_display_monitor_attributes_list): * src/xfont.c (syms_of_xfont): * src/xselect.c (x_handle_dnd_message): * src/xwidget.c (save_script_callback): Prefer make_nil_vector (N) to Fmake_vector (make_fixnum (N), Qnil). * src/callint.c (Fcall_interactively): * src/charset.c (load_charset_map): * src/chartab.c (Fmake_char_table, uniprop_encode_value_numeric): * src/composite.c (get_composition_id) * src/dispnew.c (Fframe_or_buffer_changed_p) (syms_of_display): * src/fns.c (make_hash_table, maybe_resize_hash_table): * src/font.c (font_style_to_value): * src/fontset.c (FONTSET_ADD, fontset_add): * src/json.c (json_to_lisp): * src/keymap.c (syms_of_keymap): * src/lread.c (init_obarray): * src/profiler.c (make_log, Fprofiler_cpu_log): * src/term.c (term_get_fkeys_1): Prefer make_vector (N, V) to Fmake_vector (make_fixnum (N), V). * src/font.c (build_style_table): * src/macfont.m (macfont_shape): * src/process.c (conv_sockaddr_to_lisp, network_interface_info): Prefer make_uninit_vector if the vector will be initialized soon. * src/lisp.h (make_nil_vector): New function. 2018-12-08 Eli Zaretskii Fix resolving symlinks in Eshell history file names * lisp/eshell/em-dirs.el (eshell-write-last-dir-ring): * lisp/eshell/em-hist.el (eshell-write-history): Don't call file-truename with argument of nil. (Bug#33477) * test/lisp/eshell/eshell-tests.el (with-temp-eshell): Remove HISTFILE from the environment, to make sure the Eshell history file is nil. 2018-12-08 Paul Eggert * src/alloc.c (VECTOR_ELTS_MAX): Make sure it’s signed. 2018-12-08 Paul Eggert Port VECTOR_ELTS_MAX to older GCC etc. Problem reported by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2018-12/msg00182.html * src/alloc.c (VECTOR_ELTS_MAX): Now a macro. Needed for portability to older GCC and non-GCC. 2018-12-08 Paul Eggert Streamline and fix vector-size checks * src/alloc.c (VECTOR_ELTS_MAX): New constant. (allocate_vectorlike): LEN now must be positive. Assume LEN is in range. All callers changed. (allocate_vector): Arg is now ptrdiff_t, not EMACS_INT. All callers changed. Return zero vector here, not in allocate_vectorlike. * src/lisp.h (make_uninit_vector): Simplify. * src/xwidget.c (webkit_js_to_lisp): Check for overflow in ptrdiff_t calculations. 2018-12-08 Paul Eggert Suppress WebKitGTK+ 2.21.1 diagnostics * src/xwidget.c: Suppress deprecation warnings (Bug#33679). 2018-12-08 Michael Heerdegen Fix quote in the copyright skeleton Revert replacing a backquote in the "copyright" skeleton with a quote done in "Replace insignificant backquotes" which broke the skeleton. * lisp/emacs-lisp/copyright.el (copyright): Restore the correct version of the skeleton that used a backquote. 2018-12-08 Paul Eggert Fix integer overflow in oversize vectors * src/alloc.c (allocate_vector): Fix integer overflow when allocating very large vectors, by taking large_vector_offset into account. Assume C99. 2018-12-08 Paul Eggert * src/alloc.c (allocate_vectorlike): Simplify. 2018-12-08 Eli Zaretskii Honor 'vc-bzr-log-switches' in 'vc-bzr-revision-table' * lisp/vc/vc-bzr.el (vc-bzr-revision-table): Honor 'vc-bzr-log-switches'. 2018-12-08 Steven De Herdt (tiny change) Honor 'vc-bzr-log-switches' in 'vc-bzr-expanded-log-entry' * lisp/vc/vc-bzr.el (vc-bzr-expanded-log-entry): Honor 'vc-bzr-log-switches'. (Bug#33494) 2018-12-08 Eli Zaretskii Document that Eshell follows symlinks in history file names * etc/NEWS: Mention that Eshell now follows symlinks in history file names. 2018-12-08 Philip Hudson Follow links in Eshell last-dir-ring * lisp/eshell/em-hist.el (eshell-write-last-dir-ring): Follow symlinks in 'eshell-last-dir-ring-file-name'. (Bug#33477) 2018-12-08 Philip Hudson Follow symlink in Eshell history * lisp/eshell/em-hist.el (eshell-write-history): Follow symlinks in 'eshell-history-file-name'. (Bug#33460) 2018-12-08 Martin Rudalics New buffer display action alist entry 'window-min-height' (Bug#32825) * lisp/window.el (display-buffer-below-selected): Handle 'window-min-height' action alist entry (Bug#32825). * doc/lispref/windows.texi (Buffer Display Action Functions) (Buffer Display Action Alists): Add documentation for 'window-min-height' action alist entries. * etc/NEWS: Mention 'window-min-height' action alist entry. 2018-12-08 Martin Rudalics Adjust windows' previous buffers when reverting dired buffers (Bug#33458) * lisp/dired.el (dired-save-positions, dired-restore-positions): For each window that showed the reverted buffer before, fix the point positions in its list of previously shown buffers the way these routines handle window point for all windows currently showing the buffer (Bug#33458). 2018-12-08 Martin Rudalics Improve how 'balance-windows' handles fixed-size windows (Bug#33254) * lisp/window.el (balance-windows-2): When a child window has fixed size, don't count it as resizable (Bug#33254). Handle case where a window has no resizable child windows. 2018-12-07 Alan Mackenzie CC Mode: Compensate for backward-sexp ignoring trailing commas after {...} This fixes bug #32808. * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): New variable comma-delimited, set when we're about to scan backward over a comma. Do not reckon a brace block as bounding a statement when it is followed or preceded by a comma (except when argument comma-delim is non-nil). (c-guess-basic-syntax, CASE 9C): Call c-beginning-of-statement-1 with argument comma-delim changed to non-nil. 2018-12-07 Michael Albinus Refactor some Tramp functions * lisp/net/tramp-compat.el (tramp-compat-file-local-name): New defsubst. (tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote) (tramp-compat-file-name-unquote): * lisp/net/tramp.el (tramp-handle-file-name-case-insensitive-p) (tramp-handle-file-truename, tramp-get-remote-tmpdir): * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file) (tramp-adb-handle-rename-file, tramp-adb-handle-exec-path): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly) (tramp-sh-handle-exec-path, tramp-find-inline-encoding) (tramp-get-remote-touch): Use it. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): Use `tramp-handle-expand-file-name'. (tramp-adb-handle-expand-file-name): Move to tramp.el. (tramp-adb-handle-file-writable-p): Adapt docstring. * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Use `tramp-handle-file-local-copy', `tramp-handle-file-writable-p' and `tramp-handle-write-region'. (tramp-gvfs-handle-file-local-copy) (tramp-gvfs-handle-file-writable-p) (tramp-gvfs-handle-write-region): Move to tramp.el. * lisp/net/tramp-rclone.el: Dont't require `tramp-adb' and `tramp-gvfs' anymore. (tramp-rclone-file-name-handler-alist): Use `tramp-handle-expand-file-name', `tramp-handle-file-local-copy', `tramp-handle-file-writable-p' and `tramp-handle-write-region'. (tramp-rclone-handle-directory-files): Simplify. * lisp/net/tramp.el (tramp-methods): Extend docstring. (tramp-parse-netrc): Require `netrc'. (tramp-handle-expand-file-name, tramp-handle-file-local-copy) (tramp-handle-file-writable-p, tramp-handle-write-region): New defuns. 2018-12-07 Eli Zaretskii Fix the value of default-directory upon startup on MS-Windows * src/w32.c (w32_get_current_directory): New function. (GetCachedVolumeInformation, init_environment): Use it. (w32_init_current_directory): New function. * src/w32.h (w32_init_current_directory): Add prototype. * src/emacs.c (main) [WINDOWSNT]: Use w32_init_current_directory to get the accurate value of cwd. This is needed to record the correct directory in emacs_wd, which is now initialized way earlier in the startup process, when init_environment was not yet called. For details, see the problems reported in http://lists.gnu.org/archive/html/emacs-devel/2018-12/msg00068.html. Reported by Angelo Graziosi . 2018-12-06 Juri Linkov * lisp/vc/vc.el (vc-find-revision-no-save): Add optional arg BUFFER. (Bug#33567) 2018-12-06 Paul Eggert Mention EMACS_SOCKET_NAME, not XDG_RUNTIME_DIR. Mention unsetting XDG_RUNTIME_DIR in doc. 2018-12-06 Paul Eggert emacsclient: avoid background chatter * lib-src/emacsclient.c (process_grouping): New function. (act_on_signals, main): Use it. (main): Omit "Waiting for Emacs..." and later "\n" messages if in background, since that messes up the screen. 2018-12-06 Paul Eggert Fix emacsclient hang when backgrounded Problem reported by Kaushal Modi in: https://lists.gnu.org/r/emacs-devel/2018-12/msg00083.html The tcdrain call replaced an fdatasync call which had no effect on the tty, so removing it entirely shouldn’t cause problems. The fdatasync call replaced an fsync call which also had no effect on the tty, and the fsync call seems to be badly-merged revenant of emacsclient’s old (circa 2004) way of communicating to and from Emacs via FILE * streams, where fsync was apparently needed when talking to sockets. * lib-src/emacsclient.c [!DOS_NT]: Don’t include termios.h. (flush_stdout): Remove. All callers removed. (main): Do not drain the tty after "Waiting for Emacs..." message. There should be no need to drain, and draining it might send us a SIGTTOU. Do not fflush stdout just before exiting, as exiting does that for us. 2018-12-06 Paul Eggert struct image_type layout is private to image.c * src/dispextern.h (struct image_type): Move from here ... * src/image.c (struct image_type): ... to here. 2018-12-06 Eli Zaretskii Avoid an error on exit in a build without threads * lisp/simple.el (list-processes--refresh): Avoid signaling an error in a build --without-threads. (Bug#33629) 2018-12-06 Michael Albinus Add missing handler to tramp-rclone.el, improve robustness * lisp/net/tramp-rclone.el (tramp-adb): Require. (tramp-rclone-file-name-handler-alist): Use `tramp-adb-handle-expand-file-name'. (tramp-rclone-flush-directory-cache): New defun, derived from `tramp-rclone-flush-mount'. (tramp-rclone-do-copy-or-rename-file) (tramp-rclone-handle-delete-directory) (tramp-rclone-handle-delete-file) (tramp-rclone-handle-make-directory): Use it. (tramp-rclone-handle-directory-files) (tramp-rclone-local-file-name): Use `tramp-compat-file-name-quoted-p', `tramp-compat-file-name-quote' and ´tramp-compat-file-name-unquote'. (tramp-rclone-handle-file-executable-p) (tramp-rclone-handle-file-readable-p): Cache result. (tramp-rclone-handle-file-name-all-completions) (tramp-rclone-mounted-p, tramp-rclone-remote-file-name) (tramp-rclone-maybe-open-connection): Rewrite. * test/lisp/net/tramp-tests.el (tramp--test-rclone-p): New defun. (tramp-test05-expand-file-name-relative) (tramp--test-special-characters): Use it. 2018-12-06 Michael Albinus Rework Tramp wrt string-match-p, looking-at-p, save-match-data * lisp/net/tramp.el (tramp-find-method, tramp-find-user) (tramp-find-host, tramp-dissect-file-name, tramp-make-tramp-file-name) (tramp-completion-make-tramp-file-name, tramp-debug-message) (tramp-message, tramp-progress-reporter-update) (tramp-set-completion-function) (tramp-rfn-eshadow-update-overlay) (tramp-find-file-name-coding-system-alist) (tramp-file-name-for-operation) (tramp-use-absolute-autoload-file-names) (tramp-get-completion-methods, tramp-get-completion-user-host) (tramp-handle-directory-files) (tramp-handle-file-name-case-insensitive-p) (tramp-handle-file-name-completion, tramp-handle-file-truename) (tramp-handle-insert-directory, tramp-handle-load) (tramp-handle-shell-command, tramp-action-yesno) (tramp-action-yn, tramp-process-actions) (tramp-mode-string-to-int, tramp-get-local-locale) (tramp-local-host-p): * lisp/net/tramp-adb.el (tramp-adb-handle-file-system-info) (tramp-adb-handle-directory-files-and-attributes) (tramp-adb--gnu-switches-to-ash, tramp-adb-sh-fix-ls-output) (tramp-adb-handle-file-name-all-completions) (tramp-adb-handle-shell-command) (tramp-adb-handle-start-file-process): * lisp/net/tramp-archive.el (tramp-archive-dissect-file-name): * lisp/net/tramp-cache.el (tramp-get-hash-table) (tramp-flush-directory-properties, tramp-flush-file-function): * lisp/net/tramp-cmds.el (tramp-reporter-dump-variable) (tramp-append-tramp-buffers): * lisp/net/tramp-compat.el (tramp-compat-process-running-p): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name) (tramp-gvfs-get-file-attributes) (tramp-gvfs-handle-file-attributes) (tramp-gvfs-monitor-process-filter) (tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec-entry) (tramp-gvfs-mount-spec, tramp-gvfs-maybe-open-connection): * lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls) (tramp-do-file-attributes-with-stat) (tramp-sh-handle-file-selinux-context) (tramp-sh-handle-directory-files-and-attributes) (tramp-do-directory-files-and-attributes-with-stat) (tramp-sh-handle-file-name-all-completions) (tramp-sh-handle-dired-compress-file) (tramp-sh-handle-insert-directory) (tramp-sh-handle-expand-file-name) (tramp-sh-handle-start-file-process) (tramp-sh-handle-process-file, tramp-sh-handle-write-region) (tramp-sh-handle-file-notify-add-watch) (tramp-sh-gio-monitor-process-filter) (tramp-sh-gvfs-monitor-dir-process-filter) (tramp-sh-inotifywait-process-filter) (tramp-sh-handle-file-system-info, tramp-maybe-send-script) (tramp-find-executable, tramp-open-shell, tramp-find-shell) (tramp-open-connection-setup-interactive-shell) (tramp-find-inline-encoding, tramp-call-local-coding-command) (tramp-compute-multi-hops, tramp-maybe-open-connection) (tramp-convert-file-attributes) (tramp-make-copy-program-file-name, tramp-get-remote-locale) (tramp-get-test-nt-command, tramp-get-remote-stat) (tramp-get-inline-coding): * lisp/net/tramp-smb.el (tramp-smb-handle-directory-files) (tramp-smb-action-get-acl, tramp-smb-handle-file-attributes) (tramp-smb-handle-file-name-all-completions) (tramp-smb-handle-file-system-info) (tramp-smb-handle-file-writable-p) (tramp-smb-handle-insert-directory) (tramp-smb-handle-make-directory) (tramp-smb-handle-make-directory-internal) (tramp-smb-handle-start-file-process, tramp-smb-get-localname) (tramp-smb-read-file-entry): Use `string-match-p' and `looking-at-p'. Remove superfluous `save-match-data'. Apply `eval-when-compile' on constant concat data. * lisp/net/tramp-compat.el (tramp-compat-file-name-quoted-p-p): Use `string-prefix-p'. (tramp-compat-file-name-unquote): Do not use match data. 2018-12-06 Michael Albinus Make stronger tests for Tramp multi hops * lisp/net/tramp.el (tramp-dissect-file-name, tramp-dissect-hop-name): Check, that method is capable of multi hops. * test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect) (tramp-test02-file-name-dissect-simplified) (tramp-test02-file-name-dissect-separate): Suppress check for multihops. (tramp-test03-file-name-method-rules): Check for error if multi hops cannot be applied. 2018-12-06 João Távora Keep Flymake compatible with Emacs 26.1 builds --without-x * lisp/progmodes/flymake.el (flymake-double-exclamation-mark): Don't define if 'define-fringe-bitmap isn't fbound. (Version): Bump to 1.0.2 2018-12-05 Glenn Morris * admin/unidata/uvs.el (uvs-print-table-ivd): Add more header detail. 2018-12-04 João Távora Prepare lisp/progmodes/flymake.el for distribution in GNU ELPA * lisp/progmodes/flymake.el (Package-Requires): Require Emacs 26.1. (Version): Bump to 1.0.1 2018-12-04 João Távora Allow custom load paths in elisp's byte-compilation Flymake * lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile-load-path): New variable. (elisp-flymake-byte-compile): Use new variable 2018-12-04 Stefan Monnier * lisp/emacs-lisp/eldoc.el: Let the user interrupt the search (eldoc-print-current-symbol-info): Use while-no-input and non-essential. 2018-12-04 Eli Zaretskii Support IBM038 (a.k.a. "EBCDIC-INT") encoding * lisp/international/mule-conf.el (ibm038): New charset. (ebcdic-int, cp038): Alias charsets of ibm038. * lisp/language/english.el (ibm038): New coding-system. (ebcdic-int, cp038): Alias coding-systems of ibm038. (Bug#33612) * etc/NEWS: Announce the new coding system ibm038. 2018-12-04 Glenn Morris Skip an autorevert test on hydra.nixos.org (bug#32645) * test/lisp/autorevert-tests.el (auto-revert-test02-auto-revert-deleted-file): Skip on hydra. 2018-12-04 Stefan Monnier * lisp/shell.el (shell--parse-pcomplete-arguments): Stop at semi-colon * test/lisp/shell-tests.el (shell-tests-completion-before-semi): New corresponding test. 2018-12-03 Juri Linkov * lisp/isearch.el (isearch-yank-on-move): New defcustom with shift-move related options extracted from `search-exit-option'. (isearch-pre-command-hook): Rename search-exit-option to isearch-yank-on-move in shift-move related places. (isearch-post-command-hook): Check for isearch-pre-move-point instead of search-exit-option. (Bug#15839) * doc/emacs/search.texi (Not Exiting Isearch): Rename search-exit-option to isearch-yank-on-move. * lisp/menu-bar.el (menu-bar-i-search-menu): Add more isearch commands. 2018-12-03 Juri Linkov * lisp/isearch.el (isearch-allow-scroll): New option `unlimited'. (isearch-pre-command-hook): Call isearch-pre-scroll-point unless isearch-allow-scroll is 'unlimited'. (isearch-post-command-hook): Use `when' instead of `cond'. Call isearch-lazy-highlight-new-loop when isearch-allow-scroll is 'unlimited'. (Bug#15839) 2018-12-03 Juri Linkov * lisp/vc/vc-git.el (vc-git-stash): Call vc-dir-marked-files only in vc-dir-mode. 2018-12-03 Paul Eggert emacsclient: fix typo on recent socket-leak change This ports to POSIXish platforms like macOS that lack SOCK_CLOEXEC. Fix suggested by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2018-12/msg00055.html * lib-src/emacsclient.c (set_local_socket): Don’t use SOCK_CLOEXEC; that’s cloexec_socket’s job. 2018-12-03 Eli Zaretskii Fix WINDOWSNT/DOS_NT build Recent changes in sysdep.c and emacsclient unnecessarily removed useful code from DOS_NT builds. This changeset reinstates that code. * nt/inc/ms-w32.h (tcdrain): Redirect to _commit. (fdatasync): No need to redirect anymore. * lib-src/emacsclient.c (flush_stdout): Don't avoid calling tcdrain on DOS_NT platforms. * src/sysdep.c (reset_sys_modes): Don't ifdef away the call to tcdrain on DOS_NT platforms. 2018-12-02 Paul Eggert emacsclient: don’t leak socket to child processes * lib-src/emacsclient.c [!WINDOWSNT]: Include fcntl.h. (cloexec_socket): New function. (set_tcp_socket, set_local_socket): Use it. 2018-12-02 Paul Eggert Use tcdrain, not fdatasync, to drain ttys fdatasync is for storage devices, not ttys. * admin/merge-gnulib (GNULIB_MODULES): Remove fdatasync. * lib/fdatasync.c, m4/fdatasync.m4: Remove. * lib-src/Makefile.in (LIB_FDATASYNC): * src/Makefile.in (LIB_FDATASYNC): Remove. All uses removed. * lib-src/emacsclient.c [!DOS_NT]: Include , for tcdrain. * lib-src/emacsclient.c (flush_stdout): * src/sysdep.c (reset_sys_modes): On ttys, use tcdrain instead of fdatasync (except don’t use either function if DOS_NT). * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. 2018-12-02 Paul Eggert Update from Gnulib This incorporates: 2018-11-30 memrchr: port better to clang 2018-11-21 mktime: add libc-config dependency * build-aux/config.guess, build-aux/config.sub, lib/memrchr.c: Copy from Gnulib. * m4/gnulib-comp.m4: Regenerate. 2018-12-02 Paul Eggert emacsclient: fix symlink/socket race * lib-src/emacsclient.c (socket_status): New arg UID. All uses changed. (set_local_socket): Don’t create the unbound socket unless the initial sanity checks on the socket file succeed; this simplifies cleaning it up. Check socket ownership again after connecting, to fix a race (Bug#33366). 2018-12-02 Glenn Morris Merge from origin/emacs-26 745c9c0 (origin/emacs-26) Revert "Revert "Fix infloop in GC mark_kboa... c418c85 Revert "Fix infloop in GC mark_kboards" 8fa0d96 * lisp/emacs-lisp/subr-x.el (if-let, when-let): Doc fix: acti... 2018-12-02 Glenn Morris Merge from origin/emacs-26 317b354 ; Add notes about cross-compiling macOS versions 4b176eb Fix macOS run-time feature check c03574b * etc/NEWS-*: Fix capitalization of "Emacs" # Conflicts: # etc/NEWS 2018-12-02 Glenn Morris Merge from origin/emacs-26 e06562c Fix "M-x man" when there's no 'man' program on PATH 2018-12-02 Glenn Morris Merge from origin/emacs-26 cc3ad9a ; * CONTRIBUTE: Clarify rules for committing to release branc... a89dbe2 * doc/misc/dbus.texi (Type Conversion): Fix typo. (Bug#33551) 03ee726 ; Add comment to `customize-package-emacs-version-alist' bce1d1a Improve documentation of gdb-mi.el 2018-12-01 Paul Eggert emacsclient: prefer XDG_RUNTIME_DIR (Bug#33367) * lib-src/emacsclient.c: Disable -Wformat-truncation=2, to avoid false alarms about the new snprintf calls. (local_sockname): New function. (set_local_socket): Use it. Prefer XDG_RUNTIME_DIR (if set) for location of socket directory. Avoid unnecessary memory allocation by using snprintf to destination. * lisp/server.el (server-socket-dir): Prefer XDG_RUNTIME_DIR if set. 2018-12-01 Stefan Monnier * lisp/calendar/holidays.el: Use lexical-binding Remove redundant :group arguments. (holiday-sexp): Bind 'year' and 'date' dynamically for 'sexp' and 'string'. 2018-11-30 Paul Eggert Fix infloop in GC mark_kboards * src/keyboard.c (KBD_BUFFER_SIZE): Now a constant, not a macro. (kbd_fetch_ptr, kbd_store_ptr): These now always point somewhere into kbd_buffer, instead of sometimes pointing just past the end which led to serious bugs (Bug#33547). All uses changed. (kbd_store_ptr): No longer volatile. This variable has not been accessed by a signal handler for some time, it seems. (next_kbd_event, prev_kbd_event): New functions. (kbd_buffer_nr_stored, process_special_events): Simplify. 2018-11-30 Michael Albinus Fix Bug#33556 * lisp/autorevert.el (auto-revert-notify-add-watch): Assert that a key in `auto-revert-notify-watch-descriptor-hash-list' is a valid file notification descriptor. (Bug#33556) 2018-11-29 Robert Pluim Convert NS face colors to RGBA when comparing with frame values The NS port uses indexes into a color table to specify the colors of faces, whereas frames use RGBA pixel values. In extend_face_to_end_of_line the two needed to be compared to ensure that the backgrounds of certain faces are not extended to the edge of the window, which was failing because of this difference, thus causing a visual difference with other platforms. Convert from index to RGBA when doing such comparisons. * src/dispextern.h (FACE_COLOR_TO_PIXEL) [HAVE_NS]: New macro. Call ns_color_index_to_rgba under NS only. * src/nsgui.h: Add prototype for ns_color_index_to_rgba. * src/nsterm.m (ns_color_index_to_rgba): New function. Converts a color_table entry to corresponding RGBA pixel value. * src/xdisp.c (extend_face_to_end_of_line): Call FACE_COLOR_TO_PIXEL on face background color when comparing with frame color. 2018-11-29 Filipp Gunbin LDAP: Set process-connection-type to t * lisp/net/ldap.el (ldap-search-internal): Set process-connection-type to t. (Bug#33050) 2018-11-28 Glenn Morris * lisp/emacs-lisp/bytecomp.el: Don't load compile at runtime. It isn't needed and slows down compiling other files. 2018-11-28 Eric Abrahamsen Further small tweaks to Gnus modes cleanup * lisp/gnus/gnus-sum.el: Remove explicit definition of `gnus-summary-mode-hook', this is now created automatically. * lisp/gnus/nnir.el (nnir-open-server): Attach `nnir-mode' to the `gnus-summary-prepared-hook', instead of `gnus-summary-mode-hook'. The latter no longer has access to the buffer-local value of `gnus-newsgroup-name', which `nnir-mode' needs. 2018-11-28 Glenn Morris Merge from origin/emacs-26 74a3a79 (origin/emacs-26) Fix a typo in a doc string 911766d Minor markup fix in frames.texi 19ed1e9 * lisp/net/trampver.el (customize-package-emacs-version-alist... d7132ad * lisp/mh-e/mh-e.el (customize-package-emacs-version-alist): ... 5f39260 * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Pass format to m... a291f62 Don't call xwidget functions until GTK has been initialized f0531b8 Improve documentation of Ediff wordwise commands 2925ce5 Support Hunspell 1.7.0 in ispell.el 03bb7a8 Avoid clearing echo-area message by auto-save-visited-file-name 2018-11-28 Glenn Morris Merge from origin/emacs-26 094fcf6 Fix more drawing bugs in NS port (bug#32932) 2018-11-28 Michael Albinus Tramp cleanup * lisp/net/tramp-sh.el (tramp-sh-handle-file-name-all-completions) * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-name-all-completions): * lisp/net/tramp-smb.el (tramp-smb-read-file-entry): Use `string-match-p'. * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection): Set file properties more robust. * lisp/net/tramp-sh.el (tramp-stat-marker) (tramp-convert-file-attributes): Add tramp-autoload cookie. 2018-11-28 Alan Mackenzie Make compilation mode work with warnings from compiled buffer functions In particular, warning messages from compile_defun now contain the source buffer name and line and column numbers. Typing CR on such a warning now moves to the pertinent place in the source buffer. This fixes bug #33475 * lisp/emacs-lisp/bytecomp.el (top-level): Require compile.elc?. (emacs-lisp-compilation-file-name-or-buffer) (emacs-lisp-compilation-parse-errors-filename-function): New variables/constants. (emacs-lisp-compilation-mode): New mode derived from compilation-mode. (byte-compile-log-file): Check byte-compile-current-file for being a string, not merely non-nil. Change wording in message from "buffer" to "in buffer". Go into emacs-lisp-compilation-mode rather than the plain compilation-mode. (compile-defun): Bind byte-compile-current-file to current-buffer, not nil. * lisp/progmodes/compile.el (compilation-parse-errors-filename-function): Amend comments to specify that this function may return a buffer, and that it need not save the match data. (Several places): Amend comments to allow for the use of a buffer rather than a file name. (compilation-next-error-function): If the "file name" in file struct is actually a buffer, use it rather than compilation-find-file's result. (compilation-get-file-structure): save-match-data around the call to compilation-parse-errors-filename-function. Only call command-line-normalize-file-name when `filename' is a string. 2018-11-27 Paul Eggert Fix core dump in dbus-message-internal * src/dbusbind.c (Fdbus_message_internal): Don’t go past array end (Bug#33530). 2018-11-27 Michael Albinus Fixes in tramp-clone.el * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): Wrap by connection property "rclone-device-names". (tramp-rclone-maybe-open-connection): Do not check for `non-essential'. 2018-11-26 Michael Heerdegen Revert "Replace insignificant backquotes" for Org files Revert everything of commit 1808d254a5 "Replace insignificant backquotes" that touches Org source files since these should not have been changed. * lisp/org/ob-C.el: * lisp/org/ob-core.el: * lisp/org/ob-exp.el: * lisp/org/ob-groovy.el: * lisp/org/ob-haskell.el: * lisp/org/ob-io.el: * lisp/org/ob-lisp.el: * lisp/org/ob-lob.el: * lisp/org/ob-lua.el: * lisp/org/ob-octave.el: * lisp/org/ob-perl.el: * lisp/org/ob-python.el: * lisp/org/ob-ref.el: * lisp/org/ob-ruby.el: * lisp/org/ob-sql.el: * lisp/org/org-agenda.el: * lisp/org/org-capture.el: * lisp/org/org-clock.el: * lisp/org/org-colview.el: * lisp/org/org-duration.el: * lisp/org/org-element.el: * lisp/org/org-entities.el: * lisp/org/org-gnus.el: * lisp/org/org-indent.el: * lisp/org/org-info.el: * lisp/org/org-inlinetask.el: * lisp/org/org-lint.el: * lisp/org/org-list.el: * lisp/org/org-mouse.el: * lisp/org/org-plot.el: * lisp/org/org-src.el: * lisp/org/org-table.el: * lisp/org/org.el: * lisp/org/ox-ascii.el: * lisp/org/ox-html.el: * lisp/org/ox-latex.el: * lisp/org/ox-man.el: * lisp/org/ox-md.el: * lisp/org/ox-org.el: * lisp/org/ox-publish.el: * lisp/org/ox-texinfo.el: * lisp/org/ox.el: Undo changes made by commit "Replace insignificant backquotes". 2018-11-26 Eli Zaretskii Unbreak compilation of emacsclient on MS-Windows * lib-src/emacsclient.c (main): Make "-suspend" handling conditional on !WINDOWSNT, as there's no SIGSTOP nor 'kill' there. 2018-11-26 Paul Eggert emacsclient: assume HAVE_INET_SOCKETS * configure.ac (HAVE_INET_SOCKETS): Remove. * lib-src/emacsclient.c: Simplify by assuming HAVE_SOCKETS and HAVE_INET_SOCKETS, which are always true nowadays, except perhaps for MS-DOS and if so this program shouldn’t be built there anyway. Don’t bother including sys/types.h, as it’s not needed on modern systems (and syswait.h does it for us anyway). (main): Simplify by assuming SIGSTOP (which is always defined if SIGCONT is), and by assuming HAVE_SOCKETS && HAVE_INET_SOCKETS. 2018-11-26 Paul Eggert emacsclient: negate NO_SOCKETS_IN_FILE_SYSTEM * lib-src/emacsclient.c (SOCKETS_IN_FILE_SYSTEM): Rename from NO_SOCKETS_IN_FILE_SYSTEM, with inverted sense. All uses changed. All uses were of the form ‘#ifndef NO_SOCKETS_IN_FILE_SYSTEM’, and it’s easier to read ‘#ifdef SOCKETS_IN_FILE_SYSTEM’. 2018-11-26 Paul Eggert emacsclient: fix some races on POSIX systems Fix some longstanding race conditions due to emacsclient’s use of ‘signal’ instead of ‘sigaction’ and its use of nested signal handlers. These races could cause premature exit or incorrect commands sent to Emacs. * lib-src/emacsclient.c (signal) [!WINDOWSNT]: Do not undef. (emacs_socket): Remove this static variable. It is now a parameter. (send_to_emacs): Do not exit merely because ‘send’ was interrupted. Instead, act on the signal if possible, and then retry the ‘send’. (pass_signal_to_emacs): Remove; now done by act_on_signals. (reinstall_handler_if_needed, handle_sigttou, handle_sigwinch) (install_handler): New functions. (got_sigcont, got_sigtstp, got_sigttou, got_sigwinch): New globals, used for more-portable signal handling. (handle_sigcont, handle_sigtstp): Just set the static var; other actions are now done later by act_on_signals. (install_handler): New function that arranges for signals to never be reset to default, on modern POSIX platforms. This fixes some races. (act_on_signals): New function. When acting on SIGCONT, don’t bother calling getpgrp if tcgetpgrp fails. (start_daemon_and_retry_set_socket): Return the socket rather than setting a global variable. All uses changed. (flush_stdout): New function that acts on signals received while flushing. (main): Use it. emacs_socket is now a local var. Act on signals received during recv. 2018-11-26 Michael Albinus Rework tramp-rclone-mounted-p * lisp/net/tramp-rclone.el (tramp-rclone-mounted-p): Rewrite. (tramp-rclone-maybe-open-connection): Set "mounted" file property. 2018-11-26 Wilson Snyder Update verilog-mode with upstream patches. * lisp/progmodes/verilog-mode.el (verilog-auto-templated-rel) (verilog-load-file-at-point, verilog-read-arg-pins) (verilog-read-auto-constants, verilog-read-auto-params) (verilog-read-auto-template-middle, verilog-read-decls) (verilog-read-includes, verilog-read-inst-pins) (verilog-read-instants, verilog-read-sub-decls-gate): Don't copy properties when parsing AUTOs. (verilog-font-lock-keywords): Fix SystemVerilog font lock keywords to be more consistent with IEEE 1364 keywords. Reported by Jeff Riley. (verilog-highlight-p1800-keywords): Now ignored. (verilog-simplify-range-expression): Simplify shifts in auto wire declarations, bug1346. Reported by Maghawan Punde. (verilog-read-always-signals-recurse): Fix AUTORESET with pattern assignments. Reported by Bhargava Narumanchi. (verilog-at-constraint-p): Fix indentation of replicate with parameter. Reported by Yun He. (verilog-read-defines, verilog-read-includes) (verilog-substitute-include-name): Fix handling define names in includes, bug1324. Reported by John DeRoo. (verilog-imenu-generic-expression): Fix speedbar for signed functions, bug1312. Reported by Ian Perryman. (verilog-indent-buffer): Fix verilog-batch-indent not honoring top mode line. Reported by James Claffey. (verilog-set-auto-endcomments): Fix end comments when have variables starting with class_, bug1259. Reported by Andrea Fedeli. (verilog-read-decls): Fix AUTOINST for parameterized interfaces, bug1253. Reported by David Rogoff. (verilog-read-sub-decls-line, verilog-signals-combine-bus): Fix AUTOOUTPUT not including nested array references, msg2417. (verilog-at-constraint-p): begin/end are illegal inside constraint blocks, so use that knowledge to make smarter indentation decisions. (verilog-auto-simplify-expressions, verilog-simplify-range-expression): Add `verilog-auto-simplify-expressions' to disable range simplifications. (verilog-auto-save-check, verilog-batch-execute-func): Fix .* causing Emacs batch to always re-save files with no changes, bug1239. Reported by Brian Etscheid. 2018-11-25 Juri Linkov * lisp/windmove.el: Directional window deletion (bug#32790) * lisp/windmove.el (windmove-delete-in-direction) (windmove-delete-left, windmove-delete-up) (windmove-delete-right, windmove-delete-down) (windmove-delete-default-keybindings): New functions. 2018-11-25 Michael Heerdegen Replace insignificant backquotes Replace most insignificant occurrences of '`' with a straight quote, sharp quote or nothing. This includes backquotes in 'pcase' patterns. * admin/admin.el: * lisp/apropos.el: * lisp/arc-mode.el: * lisp/auth-source.el: * lisp/avoid.el: * lisp/bindings.el: * lisp/bs.el: * lisp/calculator.el: * lisp/calendar/todo-mode.el: * lisp/cedet/semantic.el: * lisp/cedet/semantic/analyze/debug.el: * lisp/cedet/semantic/bovine.el: * lisp/cedet/semantic/dep.el: * lisp/cedet/semantic/grammar.el: * lisp/cedet/semantic/wisent/comp.el: * lisp/cedet/semantic/wisent/grammar.el: * lisp/cedet/srecode/mode.el: * lisp/cus-edit.el: * lisp/doc-view.el: * lisp/elec-pair.el: * lisp/electric.el: * lisp/emacs-lisp/autoload.el: * lisp/emacs-lisp/benchmark.el: * lisp/emacs-lisp/byte-opt.el: * lisp/emacs-lisp/bytecomp.el: * lisp/emacs-lisp/cconv.el: * lisp/emacs-lisp/cl-extra.el: * lisp/emacs-lisp/cl-generic.el: * lisp/emacs-lisp/cl-macs.el: * lisp/emacs-lisp/copyright.el: * lisp/emacs-lisp/debug.el: * lisp/emacs-lisp/eieio-compat.el: * lisp/emacs-lisp/ert.el: * lisp/emacs-lisp/generator.el: * lisp/emacs-lisp/inline.el: * lisp/emacs-lisp/macroexp.el: * lisp/emacs-lisp/map.el: * lisp/emacs-lisp/package-x.el: * lisp/emacs-lisp/package.el: * lisp/emacs-lisp/radix-tree.el: * lisp/emacs-lisp/smie.el: * lisp/epa.el: * lisp/erc/erc-dcc.el: * lisp/erc/erc-track.el: * lisp/erc/erc.el: * lisp/eshell/em-ls.el: * lisp/eshell/esh-cmd.el: * lisp/files.el: * lisp/filesets.el: * lisp/font-lock.el: * lisp/frameset.el: * lisp/gnus/gnus-agent.el: * lisp/gnus/gnus-art.el: * lisp/gnus/gnus-cite.el: * lisp/gnus/gnus-group.el: * lisp/gnus/gnus-msg.el: * lisp/gnus/gnus-salt.el: * lisp/gnus/gnus-srvr.el: * lisp/gnus/gnus-sum.el: * lisp/gnus/gnus-topic.el: * lisp/gnus/gnus-util.el: * lisp/gnus/gnus.el: * lisp/gnus/message.el: * lisp/gnus/mm-util.el: * lisp/gnus/mml.el: * lisp/gnus/nnheader.el: * lisp/gnus/nnimap.el: * lisp/gnus/nnmairix.el: * lisp/gnus/spam.el: * lisp/hexl.el: * lisp/hi-lock.el: * lisp/ibuf-ext.el: * lisp/ibuffer.el: * lisp/ido.el: * lisp/info.el: * lisp/international/mule-cmds.el: * lisp/international/mule-util.el: * lisp/json.el: * lisp/jsonrpc.el: * lisp/language/cyrillic.el: * lisp/language/european.el: * lisp/language/georgian.el: * lisp/language/tibetan.el: * lisp/language/utf-8-lang.el: * lisp/language/vietnamese.el: * lisp/ldefs-boot.el: * lisp/mail/mail-extr.el: * lisp/man.el: * lisp/menu-bar.el: * lisp/mh-e/mh-acros.el: * lisp/mh-e/mh-folder.el: * lisp/mh-e/mh-mime.el: * lisp/mh-e/mh-show.el: * lisp/mh-e/mh-speed.el: * lisp/minibuffer.el: * lisp/mpc.el: * lisp/net/ange-ftp.el: * lisp/net/hmac-def.el: * lisp/net/newst-backend.el: * lisp/net/quickurl.el: * lisp/net/tramp-archive.el: * lisp/net/tramp-compat.el: * lisp/notifications.el: * lisp/obsolete/pgg-parse.el: * lisp/obsolete/vc-arch.el: * lisp/obsolete/xesam.el: * lisp/org/ob-C.el: * lisp/org/ob-core.el: * lisp/org/ob-exp.el: * lisp/org/ob-groovy.el: * lisp/org/ob-haskell.el: * lisp/org/ob-io.el: * lisp/org/ob-lisp.el: * lisp/org/ob-lob.el: * lisp/org/ob-lua.el: * lisp/org/ob-octave.el: * lisp/org/ob-perl.el: * lisp/org/ob-python.el: * lisp/org/ob-ref.el: * lisp/org/ob-ruby.el: * lisp/org/ob-sql.el: * lisp/org/org-agenda.el: * lisp/org/org-capture.el: * lisp/org/org-clock.el: * lisp/org/org-colview.el: * lisp/org/org-duration.el: * lisp/org/org-element.el: * lisp/org/org-entities.el: * lisp/org/org-gnus.el: * lisp/org/org-indent.el: * lisp/org/org-info.el: * lisp/org/org-inlinetask.el: * lisp/org/org-lint.el: * lisp/org/org-list.el: * lisp/org/org-mouse.el: * lisp/org/org-plot.el: * lisp/org/org-src.el: * lisp/org/org-table.el: * lisp/org/org.el: * lisp/org/ox-ascii.el: * lisp/org/ox-html.el: * lisp/org/ox-latex.el: * lisp/org/ox-man.el: * lisp/org/ox-md.el: * lisp/org/ox-org.el: * lisp/org/ox-publish.el: * lisp/org/ox-texinfo.el: * lisp/org/ox.el: * lisp/play/bubbles.el: * lisp/play/gamegrid.el: * lisp/progmodes/autoconf.el: * lisp/progmodes/cc-defs.el: * lisp/progmodes/cc-engine.el: * lisp/progmodes/cc-fonts.el: * lisp/progmodes/cc-langs.el: * lisp/progmodes/cperl-mode.el: * lisp/progmodes/ebrowse.el: * lisp/progmodes/elisp-mode.el: * lisp/progmodes/flymake-cc.el: * lisp/progmodes/flymake.el: * lisp/progmodes/fortran.el: * lisp/progmodes/grep.el: * lisp/progmodes/gud.el: * lisp/progmodes/idlwave.el: * lisp/progmodes/js.el: * lisp/progmodes/m4-mode.el: * lisp/progmodes/make-mode.el: * lisp/progmodes/mixal-mode.el: * lisp/progmodes/modula2.el: * lisp/progmodes/octave.el: * lisp/progmodes/opascal.el: * lisp/progmodes/prolog.el: * lisp/progmodes/ps-mode.el: * lisp/progmodes/python.el: * lisp/progmodes/ruby-mode.el: * lisp/progmodes/sh-script.el: * lisp/progmodes/sql.el: * lisp/progmodes/verilog-mode.el: * lisp/ps-mule.el: * lisp/rtree.el: * lisp/ruler-mode.el: * lisp/ses.el: * lisp/simple.el: * lisp/startup.el: * lisp/subr.el: * lisp/term/ns-win.el: * lisp/textmodes/bibtex.el: * lisp/textmodes/conf-mode.el: * lisp/textmodes/css-mode.el: * lisp/textmodes/refill.el: * lisp/textmodes/sgml-mode.el: * lisp/textmodes/tex-mode.el: * lisp/tutorial.el: * lisp/url/url-dav.el: * lisp/url/url-gw.el: * lisp/url/url-http.el: * lisp/url/url-methods.el: * lisp/url/url-privacy.el: * lisp/vc/cvs-status.el: * lisp/vc/diff-mode.el: * lisp/vc/ediff-init.el: * lisp/vc/ediff-ptch.el: * lisp/vc/log-edit.el: * lisp/vc/log-view.el: * lisp/vc/pcvs-info.el: * lisp/vc/pcvs.el: * lisp/vc/smerge-mode.el: * lisp/vc/vc-git.el: * lisp/vc/vc-hg.el: * lisp/vc/vc-mtn.el: * lisp/vc/vc-rcs.el: * lisp/whitespace.el: * lisp/window.el: * test/lisp/electric-tests.el: * test/lisp/emacs-lisp/cl-lib-tests.el: * test/lisp/emacs-lisp/ert-tests.el: * test/lisp/epg-tests.el: * test/lisp/jsonrpc-tests.el: * test/src/data-tests.el: * test/src/json-tests.el: Replace most insignificant backquotes. 2018-11-25 Stephen Berman Handle narrowing when marking entries of included diary files * lisp/calendar/diary-lib.el (diary-mark-entries): Widen before marking entries (bug#33423). 2018-11-24 Juri Linkov Add new Isearch commands to new Isearch menu (bug#29321, bug#32990) * lisp/isearch.el (isearch-menu-bar-map): Add menu items for isearch-beginning-of-buffer and isearch-end-of-buffer. (isearch-forward): Add them to docstring. 2018-11-24 Glenn Morris Merge from origin/emacs-26 9877c03 (origin/emacs-26) Fix bug #33416, where typing a ) in a comme... 2018-11-24 Glenn Morris Merge from origin/emacs-26 56e3e4f Improve indexing in the ELisp manual 7a4992a More Symbola-related extensions for default fontset 4ae0a75 Better support for display of U+1F900..U+1F9FF block 8f0c788 Improve documentation of 'edit-abbrevs-mode' 3c643e7 ; NEWS tweak 477414a Improve documentation of 'dired-do-compress' 9c09b1d ; * etc/NES: Minor change in the description of Dired's 'Z'. 52715e3 Improve doc string and display of 'describe-character' 93242b1 * etc/NEWS: Clarify what 'Z' does in Dired. (Bug#33450) 0d59ae3 Update the docs of object internals Conflicts: etc/NEWS 2018-11-24 Michael Albinus Add Tramp rclone method * doc/misc/tramp.texi (Top): Remove "History". (History): Remove node. (Quick Start Guide): New section "Using rclone". (External methods) : Describe. * etc/NEWS: Mention Tramp rclone method. * lisp/net/tramp-rclone.el: New file. 2018-11-24 Michael Albinus Revert patch in tramp-equal-remote * lisp/net/tramp-sh.el (tramp-timeout-session): Use `tramp-file-name-equal-p'. * lisp/net/tramp.el (tramp-equal-remote): Revert patch. 2018-11-24 Charles A. Roelli Add tool-bar and menu-bar menu for Isearch (Bug#32990) * etc/NEWS (Search and Replace): Mention this change. * lisp/isearch.el: Declare the new, non-autoloaded function 'tmm-menubar-keymap'. (isearch-tmm-menubar): New function. (isearch-menu-bar-commands): New variable. (isearch-menu-bar-yank-map, isearch-menu-bar-map): New variables. (isearch-mode-map): Define a menu-bar search menu and remap 'tmm-menubar' bindings to point to 'isearch-tmm-menubar'. (isearch-tool-bar-old-map): New variable. (isearch-tool-bar-image): New function. (isearch-tool-bar-map): New variable. (minor-mode-map-alist): Add an entry for Isearch so that 'isearch-menu-bar-map' shows during search. (isearch-mode, isearch-done): Save and restore possible buffer-local 'tool-bar-map' using 'isearch-tool-bar-old-map'. (iseacrh-mouse-commands): New variable. (isearch-mouse-leave-buffer): Allow commands in isearch-mouse-commands. (with-isearch-suspended): Only push changed states of Isearch after running the body argument of this macro. (isearch-pre-command-hook): Additionally allow bindings in 'isearch-tool-bar-map' to pass through, as well as commands in isearch-menu-bar-commands. (isearch-post-command-hook): Call 'force-mode-line-update' at its end to make sure the menu- and tool-bars are up-to-date. * lisp/tmm.el (tmm-menubar-keymap): New function factored out from 'tmm-menubar'. (tmm-menubar): Use 'tmm-menubar-keymap'. (tmm-prompt): New optional argument 'no-execute'. 2018-11-24 Michael Albinus Remove find-file-noselect in Tramp, it was handled in XEmacs * lisp/net/tramp.el (tramp-file-name-for-operation): Remove `find-file-noselect'. 2018-11-23 Eric Abrahamsen Provide new gnus-mode, derive all gnus major modes from this * lisp/gnus/gnus.el (gnus-mode): New do-nothing major mode, derived from special mode. * lisp/gnus/gnus-sum.el (gnus-summary-mode): Change from a function to a major mode, derive from gnus-mode. (gnus-summary-setup-buffer): Change call a bit -- can no longer pass an argument to the mode function. * lisp/gnus/gnus-srvr.el (gnus-browse-mode): Derive from gnus-mode. (gnus-server-setup-buffer): Remove unnecessary function. (gnus-enter-server-buffer): Call gnus-server-mode here, and call it whether the server buffer already existed or not. (gnus-server-mode): Change from a function to a major mode. (gnus-server-mode-hook): Delete custom option, this is automatically created. * lisp/gnus/gnus-salt.el (gnus-tree-mode): Derive from gnus-mode. (gnus-tree-mode-hook): Delete custom option, this is automatically created. * lisp/gnus/gnus-kill.el (gnus-kill-file-mode-hook): Delete custom option. * lisp/gnus/gnus-group.el (gnus-group-mode): * lisp/gnus/gnus-art.el (gnus-article-mode): * lisp/gnus/gnus-agent.el (gnus-category-mode): Derive from gnus-mode. (gnus-category-mode-hook): Delete custom option. (Bug#33263) 2018-11-23 Filipp Gunbin search.texi fix for leftover from C-M-w to C-M-d change * doc/emacs/search.texi: Replace C-M-w with C-M-d. 2018-11-23 Eli Zaretskii Avoid compilation warning in emacsclient.c * lib-src/emacsclient.c (set_tcp_socket): Avoid compilation warning in MS-Windows build. 2018-11-23 Paul Eggert emacsclient: fix child exit when exec fails * lib-src/emacsclient.c (start_daemon_and_retry_set_socket): If the execvp of Emacs fails exit instead of having the child run on and do the work of the parent. Coalesce duplicate code. 2018-11-23 Paul Eggert emacsclient: one ‘main’ function * lib-src/emacsclient.c (main): Simplify by having just one ‘main’ function instead of two. Don’t assume argc is positive (!). 2018-11-22 Paul Eggert emacsclient: tidy socket failure cleanup * lib-src/emacsclient.c (set_tcp_socket, set_local_socket): Close socket (instead of leaking it) when ‘connect’ fails. (socket_status): Return errno if stat fails and -1 if we don’t own. (set_local_socket): Simplify based on socket_status change. 2018-11-22 Juri Linkov Add Isearch commands for going to absolute occurrence of matches (bug#29321) * lisp/isearch.el (isearch-mode-map): Bind 'M-s M-<' to 'isearch-beginning-of-buffer' and 'isearch-end-of-buffer' to 'M-s M->'. (isearch-beginning-of-buffer, isearch-end-of-buffer): New commands. 2018-11-22 Paul Eggert emacsclient: coalesce WINDOWSNT-specific code * lib-src/emacsclient.c (sock_err_message) [WINDOWSNT]: Do nothing if w32_window_app () && alternate_editor. Both callers changed. 2018-11-22 Paul Eggert emacsclient: sockaddr portability fixes * lib-src/emacsclient.c (get_server_config, set_tcp_socket) (set_local_socket): Initialize any platform-specific extensions of struct to zero, just in case. (set_tcp_socket, set_local_socket): Don’t assume struct layout details that POSIX does not specify. Use union to sidestep some problems with strict aliasing. Remove unnecessary casts. 2018-11-22 Michael Albinus Some minor Tramp cleanups * lisp/net/tramp-adb.el (tramp-adb-file-name-p): * lisp/net/tramp-ftp.el (tramp-ftp-file-name-p): * lisp/net/tramp-smb.el (tramp-smb-file-name-p): Make it more robust. * lisp/net/tramp.el (tramp-handle-file-truename): Cache only the localname. 2018-11-21 Paul Eggert emacsclient: getopt minor cleanup * lib-src/emacsclient.c (shortopts): New constant. (decode_options): Use it. Do not assume EOF == -1. 2018-11-21 Paul Eggert emacsclient: omit EXTRA_SPACE guesswork * lib-src/emacsclient.c: Include . (EXTRA_SPACE): Remove; code no longer guesses this is enough. (open_config): New function. (get_server_config): Use it. (set_local_socket): Compute upper bound of buffer size instead of guessing via EXTRA_SPACE. 2018-11-21 Juri Linkov Add prefix arg to isearch-forward-symbol-at-point (bug#29321) * lisp/isearch.el (isearch-forward-symbol-at-point): Add optional arg. 2018-11-21 Paul Eggert emacsclient: take more care with int width * lib-src/emacsclient.c: Include inttypes.h, stddef.h. (emacs_pid, main): Don’t assume pid fits in int. (fail): Don’t assume pointer difference fits in int. (set_local_socket): Don’t assume uid fits in long. 2018-11-21 Paul Eggert emacsclient.c: use C99 to avoid {} * lib-src/emacsclient.c (set_local_socket): Assume C99 decl-after-statement and reindent. 2018-11-21 Paul Eggert emacsclient: improve use of locals * lib-src/emacsclient.c (main): Use smaller scopes for some locals. 2018-11-21 Paul Eggert emacsclient: fix unlikely crash with "&" * lib-src/emacsclient.c (quote_argument): Mention *DATA in comment so it’s clear DATA must be non-null. (quote_argument, unquote_argument): Simplify. (unquote_argument): Don’t crash if the string ends in "&". 2018-11-21 Eric Abrahamsen Fix "Allow use of Gnus search groups as notmuch path: search term" * lisp/gnus/nnir.el (nnir-notmuch-filter-group-names-function): Default to nil -- getting correct behavior requires user intervention too often to have this enabled by default. * lisp/gnus/nnir.el (nnir-run-notmuch): If the user has turned this on, then also hardcode `gnus-group-short-name' as a filter -- things will never work without it. Also move leading space to before the opening parenthesis. * doc/misc/gnus.texi: Document option. (Bug#33122) 2018-11-21 Eric Abrahamsen Check Gnus group names when reading from browse server * lisp/gnus/gnus-srvr.el (gnus-browse-read-group): If the group in question belongs to the native server, the name has to be shortened before we check it with `gnus-get-info'. It might work otherwise with nntp, but for backends like nnmaildir that have their own accounting system, creating an ephemeral group won't work. 2018-11-21 Michael Albinus * doc/misc/tramp.texi: Fix last commit. 2018-11-21 Michael Albinus Let Tramp sudo sessions expire after a timeout * doc/misc/tramp.texi (Inline methods) : Both methods expire the underlying session per default. (Predefined connection information): Explain "session-timeout". * etc/NEWS: Mention Tramp session expiration. * lisp/net/tramp-sh.el (tramp-methods) : Add `tramp-session-timeout'. (tramp-timeout-session): New defun. (tramp-maybe-open-connection): Handle session timeout. * lisp/net/tramp.el (tramp-methods): Adapt docstring. (tramp-equal-remote): Extend. 2018-11-20 Juri Linkov Add prefix arg to isearch-repeat-forward/backward (bug#14563, bug#29321) * lisp/isearch.el (isearch-repeat): Add optional arg COUNT. Add a while-loop that calls `isearch-search' COUNT times. (isearch-repeat-forward, isearch-repeat-backward): Add optional prefix ARG passed down to `isearch-repeat'. Handle reversed directions. 2018-11-20 Stefan Monnier calc.el, calc-(ext|poly), calccomp: Use lexical-binding * lisp/calc/calc-ext.el: Use lexical-binding, silence warnings. (calc-init-extensions): Remove a few functions which can't be called directly since they depend on dynamically scoped vars. (calc-embedded-quiet): Declare. (math-defcache): Use 'declare'. (math-normalize-a): Remove declaration. (math-normalize-nonstandard): Receive 'a' as arg instead. (math-defintegral): Use 'declare'. (math-exp-pos, math-exp-old-pos, math-exp-keep-spaces, math-rb-h2) (math-read-big-baseline, math-read-big-h2, math-read-big-err-msg) (math-exp-token, math-expr-data, math-exp-str): Declare. (math-map-tree, math-read-expr): Avoid dynvars as formal arguments. * lisp/calc/calc-poly.el: Use lexical-binding, silence warnings. Turn some comments into docstrings. (math-poly-div): Avoid dynvars as formal arguments. (math-poly-base-top-expr): Move declaration before first use. (calcFunc-factors, math-factor-expr, math-factor-expr-try) (calcFunc-factor): Avoid dynvars as formal arguments. * lisp/calc/calc.el: Use lexical-binding, silence warnings. (math-normalize-a): Remove. (math-normalize): Use lexical var 'a' instead. (math-svo-c): Remove. (math-stack-value-offset): Pass 'c' explicitly as arg to math-stack-value-offset-fancy instead. * lisp/calc/calccomp.el: Use lexical-binding, silence warnings. (math-svo-c): Remove. (math-stack-value-offset-fancy): Use new arg 'c' instead. (math-comp-to-string-flat): Avoid dynvars as formal arguments. 2018-11-20 Glenn Morris Merge from origin/emacs-26 d667318 (origin/emacs-26) Fix two Edebug defcustoms (bug#33428) 2018-11-20 Glenn Morris Merge from origin/emacs-26 070e82b ; * src/window.c (window_scroll): Improve commentary. 60457d7 Improve documentation of the window tree ea1a014 Fix window scrolling on TTY frames when there's no mode line df7ed10 Fix decoding XML files encoded in ISO-8859 7851ae8 (tag: emacs-26.1.90) ; ChangeLog.3 update 1958808 * etc/AUTHORS: Update. 7252507 Fix description of some window hooks 88762b4 Run 'window--adjust-process-windows' when frame size changes ... d6542ea Avoid errors in zone.el when there's overlay at EOB 2018-11-20 Stefan Monnier * lisp/calc/calc-alg.el: Use lexical-binding and silence warnings * lisp/calc/calc-alg.el: Use lexical-binding and silence warnings. (math-defsimplify): Let-bind 'expr' instead of math-simplify-expr. Adjust all users. (math-simplify-expr): Don't declare any more. (math--simplify-divide-expr): New dynbound var. (math-simplify-divide): Bind it when needed. (math-simplify-divisor): Use it instead of math-simplify-expr. (math-simplify-divisor): Only bind math-simplify-divisor-[nd]over around the calls to math-simplify-one-divisor. (math-expr-subst, math-is-polynomial): Don't use dynbound vars as formal arguments. (math-polynomial-base): Move binding of math-poly-base-pred. Don't bind math-poly-base-top-expr any more... * lisp/calc/calc-poly.el (math-total-polynomial-base): Bind it here instead! * lisp/calc/calc-units.el: Use lexical-binding and silence warnings. Adjust to the new 'expr' name in math-defsimplify. (math-find-base-units, math-to-standard-units, math-convert-units): Don't use dynbound vars as formal arguments. (math-simplify-expr): Don't declare any more. 2018-11-20 Robert Pluim Remove space from end of coding cookie * lisp/bookmark.el (bookmark-insert-file-format-version-stamp): Remove unnecessary space from end of coding cookie. 2018-11-19 Eli Zaretskii Fix last change * lib-src/emacsclient.c (start_daemon_and_retry_set_socket) [!WINDOWSNT]: Condition usage of socket_name on NO_SOCKETS_IN_FILE_SYSTEM being undefined. 2018-11-19 Eli Zaretskii Avoid compiler warning in emacsclient.c * lib-src/emacsclient.c (socket_name): Define only if NO_SOCKETS_IN_FILE_SYSTEM is not defined, to avoid a compiler warning. 2018-11-19 Paul Eggert emacsclient.c: file name component fixes * lib-src/emacsclient.c: Include . (file_name_absolute_p): Remove, as a code duplicate. All uses replaced by IS_ABSOLUTE_FILE_NAME. (set_local_socket): Don’t treat \ as a file name separator on GNU and POSIX hosts. 2018-11-19 Paul Eggert emacsclient.c: reindent to fit in 80 * lib-src/emacsclient.c: Reindent slightly. 2018-11-19 Paul Eggert emacsclient.c: use C99 better * lib-src/emacsclient.c (get_current_dir_name) (send_to_emacs, set_tcp_socket, set_local_socket, main): Take advantage of C99 stmt before decl. 2018-11-19 Paul Eggert emacsclient.c: use STDOUT_FILENO * lib-src/emacsclient.c (find_tty, handle_sigcont, main): Use STDOUT_FILENO instead of fileno (stdout) or magic 1. 2018-11-19 Paul Eggert emacsclient.c: use bool for boolean * lib-src/emacsclient.c (nowait, quiet, suppress_output, eval, tty) (decode_options, file_name_absolute_p, get_server_config) (strprefix, find_tty, set_socket, main): Use bool for boolean. (create_frame): New static var, replacing the old current_frame and with inverted sense, as this is clearer. 2018-11-19 Paul Eggert emacsclient.c: make identifiers more local * lib-src/emacsclient.c (progname, main_argc, main_argv): (nowait, quiet, suppress_output, eval, current_frame, display): (alt_display, parent_id, tty, alternate_editor, socket_name): (server_file, tramp_prefix, emacs_pid, frame_parameters): (longopts, xstrdup, send_bufffer, sblen, emacs_socket): Now static. (SEND_BUFFER_SIZE, send_buffer, sblen): Now local to send_to_emacs. 2018-11-19 Paul Eggert emacsclient.c: clean up preprocessing directives * lib-src/emacsclient.c [WINDOWSNT]: Omit duplicate stdlib.h include. Include min-max.h. (EXIT_SUCCESS, EXIT_FAILURE, min): Remove; no longer needed. (AUTH_KEY_LENGTH, SEND_BUFFER_SIZE): Now constants instead of macros. 2018-11-19 Ulrich Müller Update the calc units table On 2018-11-16, the 26th meeting of the General Conference on Weights and Measures (CGPM) has redefined the International System of Units by adopting fixed values for the Planck constant, the elementary charge, the Boltzmann constant, and the Avogadro constant: https://www.bipm.org/utils/en/pdf/CGPM/Draft-Resolution-A-EN.pdf * lisp/calc/calc-units.el (math-standard-units): Update according to redefinition of the SI in 2018. 2018-11-19 Stefan Monnier * lisp/mouse.el (mouse-posn-property): Add comment 2018-11-18 Stefan Monnier Remove uses of obsolete 'CUA' symbol property * lisp/emulation/cua-base.el (cua-scroll-up, cua-scroll-down): * lisp/progmodes/subword.el (subword-forward, subword-backward): * lisp/obsolete/crisp.el (crisp-home, crisp-end): Remove 'CUA' prop; not used any more. 2018-11-17 Juri Linkov * lisp/vc/diff-mode.el (diff-find-source-location): Use vc-working-revision when diff shows changes in working revision. (Bug#33319) (diff-goto-source): Rename variables to avoid ambiguity. 2018-11-17 Juri Linkov Don't exit Isearch while resizing windows with mouse (bug#32990) * lisp/isearch.el (isearch-mouse-leave-buffer): New function. (isearch-mode): Use isearch-mouse-leave-buffer instead of isearch-done for mouse-leave-buffer-hook. (isearch-done): Remove isearch-mouse-leave-buffer from mouse-leave-buffer-hook. (enlarge-window-horizontally, shrink-window-horizontally) (shrink-window, mouse-drag-mode-line, mouse-drag-vertical-line): Put property isearch-scroll with t. (isearch-mode): Reset isearch-pre-scroll-point and isearch-pre-move-point to nil for the case when Isearch exits between isearch-pre-command-hook (that sets these values) and isearch-post-command-hook (that used to reset them). 2018-11-17 Stefan Monnier * src/cmds.c (Fself_insert_command): Get last-command-event via (new) arg. 2018-11-16 Glenn Morris Merge from origin/emacs-26 936a8f3 (origin/emacs-26) Document Emacs 26 behavior of Dired's 'Z' o... 99f99a1 ; Minor editing change in windows.texi 13bb665 Fix a typo in the Emacs manual # Conflicts: # etc/NEWS 2018-11-16 Glenn Morris Merge from origin/emacs-26 edcd6b7 Small documentation correction. 168a8c2 * src/coding.c (Fcheck_coding_systems_region): Doc fix. (Bug... 3287a7c Fix Bug#33364 acee0a8 ; Cosmetic changes in etc/NEWS a6ef167 * test/README: Explain $REMOTE_TEMPORARY_FILE_DIRECTORY. # Conflicts: # etc/NEWS 2018-11-16 Paul Eggert Update from glibc and Gnulib This incorporates: 2018-11-15 mktime: DEBUG_MKTIME cleanup 2018-11-15 mktime: fix non-EOVERFLOW errno handling 2018-11-15 mktime: fix bug with Y2038 DST transition 2018-11-15 mktime: make more room for overflow 2018-11-15 mktime: simplify offset guess 2018-11-15 mktime: new test for mktime failure 2018-11-15 mktime: fix EOVERFLOW bug 2018-11-13 longlong: fix comment typo * lib/gnulib.mk.in: Regenerate. * lib/mktime.c, m4/longlong.m4: Copy from Gnulib. 2018-11-16 Michael Albinus Mention ELPA packages which add new methods to Tramp * doc/misc/tramp.texi (Customizing Methods): Mention ELPA packages which add new methods to Tramp. 2018-11-15 Juri Linkov * lisp/windmove.el: Directional window display (bug#32790) * lisp/windmove.el (windmove-display-no-select): New defcustom. (windmove-display-in-direction, windmove-display-left) (windmove-display-up, windmove-display-right) (windmove-display-down, windmove-display-same-window) (windmove-display-default-keybindings): New functions. 2018-11-15 Juri Linkov * lisp/windmove.el: Support more prefix args (bug#32790) * lisp/windmove.el (windmove-left, windmove-up, windmove-right) (windmove-down): Use prefix-numeric-value to support more prefix args like 'C-u' and 'M--'. Doc fix. 2018-11-15 Michael Albinus Fix Bug#33394 * lisp/net/trampver.el (tramp-repository-branch) (tramp-repository-version): Handle out-of-tree builds. (Bug#33394) 2018-11-14 Juri Linkov Isearch hit count. (Bug#29321) * lisp/isearch.el (isearch-lazy-count): New defcustom. (lazy-count): New defgroup. (lazy-count-prefix-format, lazy-count-suffix-format): New defcustom. (isearch-lazy-count-format): New function. (isearch-message-prefix, isearch-message-suffix): Use it. (isearch-lazy-highlight-window-start-changed) (isearch-lazy-highlight-window-end-changed) (isearch-lazy-count-current, isearch-lazy-count-total) (isearch-lazy-count-hash): New variables. (isearch-lazy-highlight-new-loop): Reset isearch-lazy-count-total and update isearch-lazy-count-current for isearch-message. (isearch-lazy-highlight-update): Run full-buffer loop for isearch-lazy-count. (isearch-lazy-highlight-buffer-update): Count isearch-lazy-count-total. Set isearch-lazy-count-current at the end. 2018-11-14 Eli Zaretskii Minor copyedits in documentation of HOME handling * etc/NEWS: Reword the recent entry regarding the change in how relative file names are interpreted in $HOME. * doc/emacs/cmdargs.texi (General Variables): Advise against using relative directory names in $HOME. 2018-11-14 Paul Eggert Fix probing for pre-1970 DST * lisp/calendar/cal-dst.el (calendar-next-time-zone-transition): Fix recently-introduced rounding bug when probing for DST transitions before 1970 (Bug#33380). 2018-11-14 Paul Eggert Document recent change to HOME handling * doc/emacs/cmdargs.texi (General Variables): * doc/emacs/custom.texi (Find Init): * doc/lispref/files.texi (File Name Expansion): * etc/NEWS: Document behavior when HOME is a relative file name. 2018-11-14 Eli Zaretskii Fix a thinko in fileio.c * src/fileio.c (get_homedir): Fix last change. Suggested by Paul Eggert . 2018-11-13 Juri Linkov New option vc-find-revision-no-save to not write revision to file * lisp/vc/vc.el (vc-find-revision-no-save): New defcustom (bug#33319). (vc-find-revision): Depending on vc-find-revision-no-save, call either vc-find-revision-no-save or vc-find-revision-save. (vc-find-revision-save): Rename from vc-find-revision. (vc-find-revision-no-save): New function. * lisp/vc/diff-mode.el (diff-find-source-location): Let-bind vc-find-revision-no-save to t. 2018-11-13 Juri Linkov Support VC revisions in diff-goto-source (bug#33319) * lisp/vc/diff-mode.el (diff-vc-revisions): New defvar. (diff-find-source-location): Call vc-find-revision for non-nil values of 'other', diff-vc-backend, diff-vc-revisions. * lisp/vc/vc.el (vc-diff-internal): Set buffer-local diff-vc-revisions to the list of used revisions. * doc/emacs/files.texi (Diff Mode): Update diff-goto-source for VC-related prefix argument. 2018-11-13 Eli Zaretskii Fix recent change in fileio.c * src/fileio.c (get_homedir) [WINDOWSNT]: Convert $HOME to UTF-8. (Fexpand_file_name): Don't convert it here. 2018-11-13 Glenn Morris No need to pass absolute program name to call-process * lisp/doc-view.el (doc-view-revert-buffer): * lisp/net/eudcb-mab.el (eudc-mab-query-internal): Remove superfluous executable-find. 2018-11-13 Paul Eggert Update from Gnulib This incorporates: 2018-11-03 nstrftime: simplify test for mktime failure 2018-11-02 gnulib-common.m4: port _Noreturn to C++ 2018-10-22 std-gnu11: Support Autoconf versions < 2.64 2018-10-22 Assume Autoconf >= 2.63 2018-10-16 Remove support for Ultrix 2018-10-16 getloadavg: Remove support for ConvexOS 2018-10-16 getloadavg: Remove support for Sony NEWS 2018-10-16 Remove support for Dynix/ptx 2018-10-16 fsusage: Remove support for AIX 3 2018-10-16 fsusage, stat-size, getloadavg: Remove support for AIX PS/2 2018-10-16 getloadavg: Remove support for HP-UX on m68k 2018-10-16 fsusage, mountlist: Remove support for DolphinOS 2018-10-16 getloadavg: Remove support for Alliant FX/2800 2018-10-16 getloadavg: Remove support for tek4300 2018-10-16 getloadavg: Remove support for Ardent * build-aux/config.guess, build-aux/config.sub, lib/_Noreturn.h: * lib/fsusage.c, lib/getgroups.c, lib/getloadavg.c: * lib/nstrftime.c, lib/time.in.h, m4/errno_h.m4: * m4/fsusage.m4, m4/getgroups.m4, m4/gnulib-common.m4, m4/longlong.m4: * m4/std-gnu11.m4, m4/stdint.m4: Copy from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate: 2018-11-13 Glenn Morris Root emacsclient no longer connects to non-root sockets * lib-src/emacsclient.c (set_local_socket): Don't ignore socket ownership when run by root. Ref: http://lists.gnu.org/r/emacs-devel/2018-11/msg00019.html 2018-11-13 Eli Zaretskii Avoid byte-compilation warning in emacsbug.el * lisp/mail/emacsbug.el (w32--os-description): Declare it, to avoid byte-compilation warning. Reported by Live System User . 2018-11-13 Paul Eggert Act like POSIX sh if $HOME is relative POSIX says sh ~/foo should act like $HOME/foo even if $HOME is relative, so be consistent with that (Bug#33255). * admin/merge-gnulib (GNULIB_MODULES): Add dosname. * src/buffer.c (init_buffer): Use emacs_wd to get initial working directory with slash appended if needed. (default-directory): Say it must be absolute. * src/emacs.c (emacs_wd): New global variable. (init_cmdargs): Dir arg is now char const *. (main): Set emacs_wd. * src/emacs.c (main) [NS_IMPL_COCOA]: * src/fileio.c (Fexpand_file_name): Use get_homedir instead of egetenv ("HOME"). * src/fileio.c: Include dosname.h, for IS_ABSOLUTE_FILE_NAME. (splice_dir_file, get_homedir): New functions. * src/xrdb.c (gethomedir): Remove. All callers changed to use get_homedir and splice_dir_file. * test/src/fileio-tests.el (fileio-tests--relative-HOME): New test. 2018-11-13 Stefan Monnier * lisp/files.el: Justify binding of read-circle with comments 2018-11-13 Noam Postavsky Fix build fail on files.el change (Bug#32352) * lisp/files.el (dir-locals-read-from-dir): Reduce scope of `read-circle' let-binding to go around the `read' call only. Otherwise it can interfere with loading of files which use the circular read syntax (e.g., executing the setf expression in `dir-locals-set-class-variables' may require loading gv.elc). 2018-11-12 Glenn Morris Merge from origin/emacs-26 189c49e * etc/AUTHORS: Update. 9723c21 ; ChangeLog.3 update 2018-11-12 Glenn Morris Merge from origin/emacs-26 913c001 * lisp/files.el (write-file): Clarify the doc string. (Bug#3... d614b84 Fix typos in midnight.el 8c2778a Improve documentation of 'move-file-to-trash' c7b8a51 ; * doc/lispref/functions.texi (Anonymous Functions): Fix typo. 92296de * src/data.c (Ftype_of): xwidget objects are possible! (bug#3... a3242cc Improve documentation of Diff mode 39e85a0 Note that lex bound lambda forms are not self-quoting (Bug#33... fa605f2 Rewrite buffer display related doc-strings and doc aa55659 Fix call to GlobalMemoryStatusEx in w32.c # Conflicts: # doc/emacs/files.texi # src/data.c 2018-11-12 Sam Steingold maybe_disable_address_randomization always returns "int argc" maybe_disable_address_randomization needs a consistent signature regardless of HAVE_PERSONALITY_ADDR_NO_RANDOMIZE. 2018-11-11 Paul Eggert Fix dumping on GNU/Linux ppc64le Problem reported by Thomas Fitzsimmons (Bug#33174). * src/emacs.c (main): Adjust to sysdep.c changes. * src/sysdep.c (exec_personality): New static var. (disable_address_randomization): Remove, replacing with ... (maybe_disable_address_randomization): ... this new function. Do not set or use an environment variable; use a command-line argument instead, and set the new static var. Migrate the emacs.c personality-change code to here, where it belongs. (emacs_exec_file): Simplify by using new static var. 2018-11-11 Paul Eggert Pacify gcc -Wmaybe-uninitialized without X11-XCB I ran into this problem on Ubuntu 18.04.1 LTS. * src/xterm.c (get_current_wm_state) [!USE_XCB]: Mark reply_data as UNINIT here too. 2018-11-11 Paul Eggert Pacify gcc -Wunused-macros in older GnuTLS I ran into this problem on Ubuntu 18.04.1 LTS. * src/gnutls.c (HAVE_GNUTLS_CIPHER_GET_IV_SIZE) (HAVE_GNUTLS_CIPHER_GET_TAG_SIZE, HAVE_GNUTLS_DIGEST_LIST): New macros. This uses the same style as the other macros that depend on GnuTLS version, as opposed to trying to do things a bit more cleverly. (gnutls_cipher_get_iv_size, gnutls_cipher_get_tag_size) (gnutls_digest_list, gnutls_digest_get_name): Define these macros only if they will be used. 2018-11-11 Simen Heggestøyl Add masking module to CSS property list * lisp/textmodes/css-mode.el (css-property-alist) (css-value-class-alist): Add properties and value classes from CSS Masking Module. 2018-11-10 Glenn Morris * test/src/editfns-tests.el (test-group-name): Improve test. Make more portable and hopefully more robust using getent. (Bug#33195) 2018-11-10 Eli Zaretskii Make 'move-file-to-trash' behave according to the documentation * lisp/files.el (move-file-to-trash): Behave like the doc string says: check whether 'system-move-file-to-trash' is defined before testing that 'trash-directory' is non-nil. (Bug#33335) 2018-11-10 Glenn Morris * test/src/editfns-tests.el (test-group-name): Small fix. Do not assume user 1000 has group name = user name. 2018-11-10 Paul Eggert Dissociate controlling tty better on Darwin * src/process.c (dissociate_controlling_tty): New function. (create_process): Use it to dissociate controlling tty if setsid fails, which happens on Darwin after a vfork (Bug#33154). Do this on all platforms, not just on Darwin, as a similar problem is plausible elsewhere. * src/callproc.c (call_process): Use the new function here, too, for consistency and to avoid duplicate code. 2018-11-10 Michael Albinus Provide branch information for both Emacs and Tramp (Bug#33328) * doc/lispref/intro.texi (Version Info): Document `emacs-repository-version' and `emacs-repository-branch'. * etc/NEWS: Mention `emacs-repository-branch'. * lisp/loadup.el: Initialize `emacs-repository-branch'. * lisp/version.el (emacs-repository-branch): New variable. (emacs-repository-branch-git, emacs-repository-get-branch): New defuns. * lisp/mail/emacsbug.el (report-emacs-bug): Insert `emacs-repository-branch'. * lisp/net/tramp.el (tramp-get-local-gid): Use `group-name' if available. (tramp-debug-message): * lisp/net/tramp-cmds.el (tramp-bug): Report also `tramp-repository-branch' and `tramp-repository-version'. * lisp/net/trampver.el (tramp-repository-branch) (tramp-repository-version): New defconst. (tramp-repository-get-version): Remove. 2018-11-10 Michael Albinus * lisp/net/tramp.el (tramp-get-local-gid): Use `group-name' if available. 2018-11-10 Allen Li Add setter for 'xref-marker-ring-length' * lisp/progmodes/xref.el (xref-marker-ring-length): Add setter. * etc/NEWS: Document last change. (Bug#32849) 2018-11-10 Allen Li Add 'ring-resize' function * lisp/emacs-lisp/ring.el (ring-resize): New function. (Bug#32849) * doc/lispref/sequences.texi (Rings): Document new function 'ring-resize'. * etc/NEWS: Document new function 'ring-resize'. * test/lisp/emacs-lisp/ring-tests.el (ring-test-ring-resize): New tests. 2018-11-10 Eli Zaretskii Fix last commit * doc/lispref/os.texi (User Identification): Fix function name of 'group-name'. 2018-11-10 Eli Zaretskii Fix last change * src/editfns.c (Fgroup_name): Fix the doc string. Move closer to the "group" functions. * src/w32.c (getgrgid): Return NULL if GID is not the group ID of the user of this Emacs session * test/src/editfns-tests.el (test-group-name): Rename from 'group-name'. Add tests for non-Posix hosts. Test error when the argument to group-name is invalid. * etc/NEWS: Fix wording of last added entry. 2018-11-10 Jules Tamagnan src/editfns.c (group-name): New function. 2018-11-09 Eli Zaretskii Improve doc strings generated by 'easy-mmode-define-navigation' * lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation): Include the documentation of prefix argument in the generated doc string. 2018-11-08 Pierre-Yves Luyten Add functions to open a bookmark in another frame * lisp/bookmark.el (bookmark-jump-other-frame): New function. Bind in bookmark-map. (bookmark-bmenu-other-frame): New function. Bind in bookmark-bmenu-mode-map. Patch applied by Karl Fogel. 2018-11-08 Juri Linkov * lisp/windmove.el (windmove-create-window): New defcustom (bug#32790). (windmove-do-window-select): Use it. 2018-11-08 Michael Albinus * doc/misc/tramp.texi (Password handling): Explain Ange FTP case. 2018-11-08 Michael Albinus Get rid of own netrc parsing implementation in Tramp * lisp/net/tramp.el (tramp-parse-netrc): Reimplement, using `netrc-parse'. (tramp-parse-netrc-group): Remove. 2018-11-07 Juri Linkov Support VC single file operations from Dired (bug#32596). * lisp/vc/vc.el (vc-ensure-vc-buffer): Use dired-get-filename for dired-mode. Move error-checking outside of the last branch of cond. (vc-dired-deduce-fileset): Remove unused error signaling. 2018-11-07 Juri Linkov * lisp/vc/log-view.el: Better error handling (bug#33295). * lisp/vc/log-view.el (log-view-find-revision) (log-view-annotate-version): Add condition to signal an error when log-view-vc-fileset contains a directory. Use user-error instead of error. * lisp/dired.el (dired-get-file-for-visit): * lisp/locate.el (locate-do-setup): Use user-error instead of error. 2018-11-07 Juri Linkov Advertise new hi-lock 'M-s h' key prefix in lisp/bindings.el https://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00104.html 2018-11-07 Juri Linkov * lisp/files-x.el (modify-dir-local-variable): Use assoc-delete-all instead of assq-delete-all for cases when mode is a subdirectory name. (dir-locals-to-string): Call pp-to-string and string-trim-right on values. (Bug#32817) 2018-11-07 Juri Linkov * lisp/window.el (window-state-put): Create a new window to replace the existing one on the same frame in case when WINDOW is not live. (Bug#32850) * doc/lispref/windows.texi (Window Configurations): Describe changes related to WINDOW arg of window-state-put. 2018-11-07 Michael Albinus * lisp/net/tramp.el (tramp-get-debug-buffer): Fix error in setting local map. 2018-11-06 Michael Albinus Handle also port and domain in Tramp proxy definitions * doc/misc/tramp.texi (Multi-hops): Exclude ports and domains from pattern expansion. * lisp/net/tramp-cmds.el (tramp-cleanup-all-connections): Remove ad-hoc proxies. * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Handle also port and domain in the proxy. Propertize ad-hoc proxies. * lisp/net/tramp.el (tramp-default-proxies-alist): Adapt docstring. * test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect) (tramp-test02-file-name-dissect-simplified) (tramp-test02-file-name-dissect-separate): Extend tests. 2018-11-05 Juri Linkov Support lazy-highlight-buffer in Info (bug#29321, bug#29360). * lisp/isearch.el (isearch-lazy-highlight-point-min) (isearch-lazy-highlight-point-max): New variables. (isearch-lazy-highlight-new-loop): When lazy-highlight-buffer is non-nil, compare (point-min) with isearch-lazy-highlight-point-min, and (point-max) with isearch-lazy-highlight-point-max, for buffers like Info where narrowing changes the values point-min and point-max. 2018-11-05 Juri Linkov * lisp/image-mode.el (image--imagemagick-wanted-p): Check for nil filename. (Bug#33241) 2018-11-04 Glenn Morris * src/xfaces.c (face_at_buffer_position): Adapt lookup_basic_face call. 2018-11-04 Glenn Morris Merge from origin/emacs-26 6937c35 (origin/emacs-26) Improve recent changes in documentation of ... c04b48c Rewrite documentation of buffer display 7cadb32 ; * doc/lispref/control.texi (pcase Macro): Fix another typo. 963f1d9 ; * doc/lispref/control.texi (pcase Macro): Fix a typo. e824c91 Improve documentation of destructuring-binding macros 2018-11-04 Glenn Morris Merge from origin/emacs-26 bd1d617 Avoid race in rcirc process filter (bug#33145) 88ef31a Avoid file-name errors when viewing PDF from Gnus c939042 Avoid crashes with remapped default face in Org mode 97660fa Doc fix for checkdoc-continue 96f055b Fix a typo in autoload.el 2018-11-04 Glenn Morris Merge from origin/emacs-26 9962cf9 * doc/lispref/control.texi (Destructuring patterns): New subs... 2018-11-04 Eli Zaretskii A further fix for locally remapped fringe face * src/xdisp.c (expose_window): Temporarily switch to the window's buffer, in case the fringe face was remapped locally in that buffer. (Bug#33244) 2018-11-04 Michael Albinus Fix Bug#33194 * lisp/autorevert.el (auto-revert-notify-add-watch): Handle buffers with same descriptor properly. (auto-revert-notify-handler): Handle all buffers with same descriptor. (Bug#33194) * lisp/filenotify.el (file-notify-callback): Simplify. 2018-11-03 Paul Eggert Improve time error reporting * src/timefns.c (emacs_mktime_z): Remove; no longer needed. (time_error): New function, replacing invalid_time. All callers changed. (decode_float_time, decode_ticks_hz, decode_time_components): Return an error number instead of merely a boolean. All callers changed. (decode_lisp_time): Signal an error based on the error number, instead of merely returning a boolean to the caller. All callers changed. (format_time_string, Fdecode_time, Fencode_time) (Fcurrent_time_string): Do not assume that a failure of a system time function must be due to time overflow. (Fencode_time): Don't report an error merely because mktime returned ((time_t) -1), as that may be a valid time_t value. Use a simpler error check. See: https://www.sourceware.org/ml/libc-alpha/2018-11/msg00062.html 2018-11-03 Eli Zaretskii Allow the fringe face to be remapped locally in a buffer * src/fringe.c (draw_window_fringes): Switch to window's buffer to get the local value of face-remapping-alist, if necessary. (Bug#33244) * src/xfaces.c (syms_of_xfaces) : New DEFSYM. 2018-11-03 David Edmondson Add URL truncation support to rcirc (bug#33043) Suggested by David Edmondson . * lisp/net/rcirc.el (rcirc-url-max-length): New user option controlling extent of URL truncation, defaulting to none. (rcirc-markup-urls): Use it. * etc/NEWS: Announce it. 2018-11-03 Pierre Téchoueyres 'minor-mode-menu-from-indicator' now display full minor mode. When there is no menu for a mode, display the mode name after the indicator instead of just the indicator (which is sometime cryptic). Ex: before : SP now : SP - Smartparens Mode * etc/NEWS: Add en entry for this new feature. * lisp/mouse.el (minor-mode-menu-from-indicator): Append the mode name after the indicator when there is no menu defined by the mode. 2018-11-03 Eric Abrahamsen Allow use of Gnus search groups as notmuch path: search term * lisp/gnus/nnir.el (nnir-notmuch-filter-group-names-function): New option governing whether and how to use Gnus' search groups as path: search terms to notmuch. (nnir-run-notmuch): Check and possibly use above variable. (Bug#33122) 2018-11-03 Daniel Pittman Fix interaction between vc-hg find-file-hook and vc state caching Bad assumptions in the `vc-hg-find-file-hook' prevented it from working. This correctly them. (Bug#33129). 2018-10-23 Daniel Pittman * lisp/vc/vc-hg.el (vc-hg-find-file-hook): This function made two assumptions about conflicted files that were not accurate, preventing conflicts in files ever being detected. The first was that the `vc-state' was cache by the time this was invoked, which it is not - at least when visiting the file, or using `vc-refresh-state'. The second was that a file with the ".orig" extension would be present, next to the file being visited. This is the default behavior of Mercurial, but can be overridden by the user. Since the VC mode-line code will shortly calculate the state for display, the optimization of testing for the ".orig" file only delayed this work by a few moments. 2018-11-02 Stefan Monnier * lisp/emacs-lisp/syntax.el (syntax-propertize-rules): Allow empty rules * lisp/help-fns.el (describe-symbol): Use help--symbol-completion-table * src/data.c (Ffset): Don't signal gratuitous errors 2018-11-02 Eric Abrahamsen Obsolete gnus-correct-length in favor of string-width * lisp/gnus/gnus-spec.el: Define an obsolete alias. 2018-11-02 Stefan Monnier * lisp/progmodes/ruby-mode.el: Cosmetic changes Remove redundant :groups. (ruby-font-lock-syntax-table): Delete var. (ruby-mode): Use font-lock-default's syntax-alist instead. 2018-11-01 Stefan Monnier * lisp/progmodes/cc-mode.el: Silence compiler warnings (c-parse-quotes-before-change, c-parse-quotes-after-change): Flag unused args according to convention. 2018-10-31 Michael Albinus Remote file name completion is also performed by auth-sources search * doc/misc/tramp.texi (File name completion): User and host name completion is also performed by auth-sources search. * etc/NEWS: Document remote file name completion using auth-sources. * lisp/net/tramp.el (tramp-completion-use-auth-sources): New user option. (tramp-parse-auth-sources): New defun. (tramp-get-completion-function): Call it. 2018-10-31 Glenn Morris Merge from origin/emacs-26 eb903d8 * lisp/emacs-lisp/pcase.el: Improve docstrings. 86abbb3 * lisp/emacs-lisp/rx.el (rx): Fix typo in doc string. (Bug#3... ced58d3 Improve doc string of 'call-process' 38f88a7 Document that generic functions cannot be commands 5aeddfa * lisp/mail/rmailsum.el (rmail-summary-output): Add lost word... 10e0fd8 Add index entries for more isearch commands/bindings (Bug#32990) de28184 * lisp/simple.el (filter-buffer-substring): Clarify doc (Bug#... d192c16 Fix recent change in lispref/processes.texi. 2018-10-31 Stefan Monnier * lisp/emacs-lisp/cl-generic.el: Clarify we can't define commands (cl--generic-lambda): Warn about the presence of interactive specs. 2018-10-30 Paul Eggert Improve fix for Bug#33014 Although the previously-applied fix worked for its platform, it doesn’t suffice in general. * src/bytecode.c (exec_byte_code): Save VECTOR into stack slot so that it survives GC. The stack slot was otherwise unused, so this doesn’t cost us memory, only a store insn. * src/eval.c (Ffuncall): Do not make FUN volatile, reverting 2018-10-14T19:12:04Z!gazally@runbox.com. Adding ‘volatile’ does not suffice, since storage for a volatile local can be reclaimed after its last access (e.g., by tail recursion elimination), which would make VECTOR invisible to GC. 2018-10-30 Glenn Morris * admin/bzrmerge.el: Remove file, long since replaced by gitmerge.el. 2018-10-30 Michael Heerdegen Don't quote self-quoting pcase patterns * admin/bzrmerge.el: * lisp/char-fold.el: * lisp/dired.el: * lisp/emacs-lisp/derived.el: * lisp/emacs-lisp/easy-mmode.el: * lisp/emacs-lisp/easymenu.el: * lisp/emacs-lisp/eieio-core.el: * lisp/emacs-lisp/package.el: * lisp/emacs-lisp/smie.el: * lisp/faces.el: * lisp/filesets.el: * lisp/progmodes/modula2.el: * lisp/progmodes/octave.el: * lisp/progmodes/opascal.el: * lisp/progmodes/perl-mode.el: * lisp/progmodes/prolog.el: * lisp/progmodes/ruby-mode.el: * lisp/progmodes/sh-script.el: * lisp/server.el: * lisp/subr.el: * lisp/textmodes/css-mode.el: * test/lisp/emacs-lisp/pcase-tests.el: Don't quote self-quoting 'pcase' patterns. 2018-10-30 Alan Mackenzie Fix C++ Mode dynamic error with string delimiters. Fixes bug #33163 * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Use the correct variable `end' in place of the wrong `c-new-END'. (c-after-change-re-mark-unbalanced-strings): Correct a logic error whilst skipping over comments. 2018-10-29 Glenn Morris * configure.ac (emacs_config_features): Add notify backends. 2018-10-29 Juri Linkov * lisp/window.el (window--state-get-1): Check buffer-live-p in next-buffers and prev-buffers. (Bug#32850) 2018-10-29 Gemini Lasswell Keep a stack reference to bytecode objects being executed (Bug#33014) * src/eval.c (Ffuncall): Make local variable 'fun' volatile. * test/src/eval-tests.el (eval-tests-byte-code-being-evaluated-is-protected-from-gc): Add regression test for Bug#33014. (eval-tests-33014-var): New variable. (eval-tests-33014-func, eval-tests-33014-redefine): New functions. 2018-10-29 Michael Albinus Fix Bug#33006 * lisp/cedet/semantic/symref/grep.el (semantic-symref-perform-search): * lisp/progmodes/xref.el (xref-collect-matches) (xref--collect-matches): Handle remote files. (Bug#33006) 2018-10-29 João Távora Fix Flymake's diagnostic count with custom error types (Bug#33187) * lisp/progmodes/flymake.el (flymake--mode-line-format): Replace cl-union with iterative cl-pushnew. 2018-10-27 Juri Linkov * lisp/isearch.el (lazy-highlight-buffer): New defcustom. (Bug#29360) (lazy-highlight-buffer-max-at-a-time): New defcustom. (isearch-lazy-highlight-buffer): New defvar. (isearch-lazy-highlight-new-loop): Don't check changes in window boundaries when lazy-highlight-buffer is non-nil. Move code that extends start/end to match whole string at point here from isearch-lazy-highlight-search. (isearch-lazy-highlight-search): Add args string and bound like in other search functions. Move calculation of bound to isearch-lazy-highlight-update. (isearch-lazy-highlight-match): New function with code extracted from isearch-lazy-highlight-update to be called also from isearch-lazy-highlight-buffer-update. (isearch-lazy-highlight-update): Reuse the values returned from window-group-start and window-group-end. At the end schedule the timer to call isearch-lazy-highlight-buffer-update when isearch-lazy-highlight-buffer is non-nil. (isearch-lazy-highlight-buffer-update): New function. 2018-10-27 Glenn Morris Merge from origin/emacs-26 df64da8 (origin/emacs-26) * lisp/simple.el (region-extract-function):... 520c486 * lisp/simple.el (region-bounds): Doc fix. (Bug#33168) 9193db0 Improve documentation of 'process-connection-type' 106b9e1 Unify prompt for gnupg passphrase between GNU/Linux and MS-Wi... 2a41616 Doc fix of 'gnus-fetch-old-headers' 29a7644 Deactivate incorrect hyperlinking in gnus-build-sparse-thread... 53ae90f Minor copyedits in cmdargs.texi fc2e65a Improve documentation of X resource loading 13132b3 * lisp/net/tramp-sh.el (tramp-inline-compress-commands): 8361292 ; Fix sorting in admin/MAINTAINERS 92de44f Don't error when indenting malformed Lisp (Bug#30891) c3adbc8 Improve 'isearch-delete-char' documentation (Bug#32990) 6ca71ce ; * lisp/help.el (with-help-window): Remove extra space in doc. f5f9583 Improve XPM load failure message (bug#33126) f3d01d4 Avoid infloop in CPerl mode fontification 71a2d50 Fix minibuffer-help-form for lexical binding 7e8eee6 Fix some NS drawing issues (bug#32932) d72975a * lisp/gnus/mm-util.el (mm-decompress-buffer): Fix split-stri... c97a5f1 * doc/misc/calc.texi (Summary): The +/- key is 'p', not 'P'. # Conflicts: # lisp/gnus/mm-util.el 2018-10-27 Daniel Pittman (tiny change) Add support in emacsclient for EMACS_SOCKET_NAME If the '--socket-name' argument is unspecified, the environment variable 'EMACS_SOCKET_NAME' is now consulted with the same semantics. This mirrors the behavior of the '--server-file' argument, and allows for easier configuration of emacsclient when the socket is in a location other than 'TMPDIR' or '/tmp'. * emacsclient.c (set_socket): Add support for the EMACS_SOCKET_NAME environment variable. (Bug#33095) * doc/emacs/misc.texi (emacsclient Options): * emacsclient.1: Document the EMACS_SOCKET_NAME environment variable. * etc/NEWS: Announce the new feature. 2018-10-26 Federico Tedin Subject: (mouse-drag-and-drop-region): Simplify and remove assumptions * lisp/mouse.el (mouse-drag-and-drop-region): Use insert-for-yank for insertion, remove rectangular-region-specific variables. Use text-property-not-all. * lisp/rect.el (rectangle-dimensions): New function. (rectangle-position-as-coordinates): Use the usual 1-origin for lines. 2018-10-26 Stefan Monnier * lisp/files.el (abbreviate-file-name): Avoid save-match-data Also, don't assume homedir doesn't contain special regexp chars. And prefer \` ... \' over ^ ... $. (recover-file): Use user-error. 2018-10-25 Glenn Morris * admin/automerge: Abort if NEWS gets modified. 2018-10-25 Stefan Monnier * lisp/emacs-lisp/pcase.el (pcase--u1): Fix bignums Use 'eql' to compare integers 2018-10-24 Michael Albinus Fix Bug#33141 * lisp/net/tramp.el (tramp-make-tramp-file-name): Avoid check for empty method with simplified `tramp-syntax'. (Bug#33141) 2018-10-24 Glenn Morris * admin/gitmerge.el (gitmerge-resolve): Check NEWS patch exit status. 2018-10-23 Glenn Morris Merge from origin/emacs-26 2efd400 (origin/emacs-26) Correct typo in GNU ELPA url 6239016 * doc/misc/dired-x.texi (Omitting Variables): Fix wording. (B... 1531bca Fix help-form binding in dired-create-files cf79327 Fix a pasto in a Gnus doc string a4e40f6 ; * doc/emacs/files.texi (Reverting): Improve wording in last... f632ecb Update revert-buffer documentation eb67689 * lisp/mail/smtpmail.el (smtpmail-send-queued-mail): Load fil... 433e364 ; * etc/NEWS: Announce that emacs-module.h is now installed. # Conflicts: # lisp/mail/smtpmail.el 2018-10-23 Alan Mackenzie edebug.el: Move window focus switch into edebug-pop-to-buffer * lisp/follow.el (edebug-focus-frame): Remove. (edebug-pop-to-buffer): Call x-focus-frame for GUI frames. (edebug-default-enter, edebug--display-1): Replace call to edebug-focus-frame with x-focus-frame. (edebug-where, edebug-bounce-point, edebug-visit-eval-list): Remove no longer needed calls to edebug-focus-frame. 2018-10-22 Paul Eggert Improve rounding in recent timer fix * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time): Use more-precise arithmetic to handle some boundary cases better when rounding errors occur (Bug#33071). * test/lisp/emacs-lisp/timer-tests.el: (timer-next-integral-multiple-of-time-3): New test, to test one of the boundary cases. (timer-next-integral-multiple-of-time-2): Redo so as to not assume a particular way of rounding 0.01. 2018-10-22 Paul Eggert Fix epg bug with (TICKS . HZ) timestamp Problem reported by Joseph Mingrone in: https://lists.gnu.org/r/emacs-devel/2018-10/msg00380.html * lisp/epg.el (epg--time-from-seconds): Just use a seconds count; don’t generate an obsolete-format timestamp. 2018-10-22 Stefan Monnier * src/minibuf.c (read_minibuf_noninteractive): Remove unused args. 2018-10-22 Michael Albinus Improve Tramp backward compatibility * lisp/net/tramp-compat.el: (tramp-unload-file-name-handlers): Declare it, for backward compatibility. 2018-10-21 Stefan Monnier Always define 'define-fringe-bitmap' * lisp/cus-start.el: Test 'fringe-bitmaps' to see if fringe.c was compiled. * lisp/fringe.el: Use lexical-binding. (define-fringe-bitmap): Provide a fallback implementation. * lisp/progmodes/flymake.el (flymake-double-exclamation-mark): Define unconditionally. * lisp/progmodes/gdb-mi.el (define-fringe-bitmap): Don't declare any more. (breakpoint, hollow-right-triangle): Define unconditionally. 2018-10-21 Stefan Monnier * lisp/vc/diff-mode.el: Improve diff-font-lock-prettify A few tweaks to the previous code for corner case problems, and a new feature, which is to move the +/- signs to the left fringe. (diff--font-lock-cleanup, diff--filter-substring): New functions. (diff-mode): Use them. (diff--font-lock-refined): Mark the overall overlays as `diff-mode fine` as well, so they get properly cleaned up when changing mode. (diff-fringe-add, diff-fringe-del, diff-fringe-rep, diff-fringe-nul): New bitmaps. (diff--font-lock-prettify): Move the +/- signs to the fringe. (diff-wiggle): Use 'user-error'. 2018-10-20 Michael Albinus Expand host names in Tramp's ad-hoc multi-hop file names * doc/misc/tramp.texi (Quick Start Guide): Improve wording. (Change file name syntax): Say, that `tramp-file-name-regexp' is not constant. (Ad-hoc multi-hops): Explain host name expansion. * etc/NEWS: Mention that host names in Tramp ad-hoc multi-hop file names must match the previous hop for methods like "su" or "sudo". Fix typos. * lisp/net/tramp.el (tramp-find-method, tramp-find-user): Adapt docstring. (tramp-find-host): Mark default value. (tramp-dissect-file-name): Expand host name for hops. (tramp-dissect-hop-name, tramp-make-tramp-hop-name): New defuns. (tramp-clear-passwd): Simplify. * test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect) (tramp-test02-file-name-dissect-simplified) (tramp-test02-file-name-dissect-separate) (tramp-test26-file-name-completion): Extend tests. 2018-10-20 Eli Zaretskii Fix 'timer-next-integral-multiple-of-time' * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time): Fix recent change for fractional values of SECS. (Bug#33071) * test/lisp/emacs-lisp/timer-tests.el (timer-next-integral-multiple-of-time-2): New test. 2018-10-19 Stefan Monnier * lisp/mail/smtpmail.el: (smtpmail-send-queued-mail): Avoid 'load' (smtpmail-send-it): Send metadata directly to the files without bothering to write it into a temp buffer. 2018-10-19 Stefan Monnier * lisp/emacs-lisp/package.el (package-get-version): Change into a function (package-quickstart-refresh): Mangle string so it doesn't turn into a false positive for "no-byte-compile: t". 2018-10-19 Alan Mackenzie In edebug in GUIs, move focus to the selected frame. Thus when entering edebug, the focus will be moved to the frame with the source being debugged, and when its finished, the focus will move back. Commands edebug-visit-eval-list (`E') and edebug-bounce-point (`p') have been likewise amended. * src/keyboard.c (readable_events): Handle FOCUS_OUT_EVENT as an invisible event. This prevents input-pending-p returning t when one of these events arrives, and thus obviates an instant termination of sit-for when there's no "real" event waiting. * lisp/emacs-lisp/edebug.el (edebug-focus-frame): New function. (edebug-default-enter, edebug--display-1, edbug-where, edebug-bounce-point) (edebug-visit-eval-list): Call edebug-focus-frame to move focus into the window newly selected by edebug-pop-to-buffer. 2018-10-19 Paul Eggert Fix struct thread alignment on FreeBSD x86 Problem reported by Joseph Mingrone in: https://lists.gnu.org/r/emacs-devel/2018-10/msg00238.html While we’re at it, apply a similar fix to struct Lisp_Subr; this removes the need for GCALIGNED_STRUCT_MEMBER and thus can shrink struct Lisp_Subr a bit. * configure.ac (HAVE_STRUCT_ATTRIBUTE_ALIGNED): Bring back this macro. Although used only for performance (not to actually align structures), we might as well take advantage of it. * src/lisp.h (GCALIGNED_STRUCT_MEMBER): Remove; all uses removed. (union Aligned_Lisp_Subr): New type, like struct Lisp_Subr but aligned. * src/lisp.h (XSUBR, DEFUN): * src/lread.c (defsubr): Use it. All callers changed. * src/thread.c (union aligned_thread_state): New type. (main_thread): Now of this type, so it’s aligned. All uses changed. * src/xmenu.c (syms_of_xmenu) [USE_GTK || USE_X_TOOLKIT]: Adjust to union Aligned_Lisp_Subr change. 2018-10-19 Alan Mackenzie In follow mode windows in a GUI, don't display inactive cursors This is done by setting cursor-in-non-selected-windows buffer locally. * lisp/follow.el (follow-hide-ghost-cursors): New customizable option. (follow-mode): Create and set, or kill buffer-local copy of cursor-in-non-selected-windows when the mode gets enabled or disabled. (follow-prev-buffer): New variable. (follow-adjust-window): Manipulate cursor-in-non-selected-windows when the current buffer changes, to ensure that cursors stay visible in non-selected follow window groups. * etc/NEWS: Add an entry for this change. 2018-10-18 Martin Rudalics Have 'split-window' handle 'up' and 'down' values (Bug#32790) * lisp/window.el (split-window): Handle values of 'up' and 'down' for SIDE argument (Bug#32790). (window-in-direction): Amend doc-string as of yesterday's change. 2018-10-18 Juri Linkov * lisp/emacs-lisp/lisp.el (delete-pair): Add optional prefix arg. (Bug#32896) 2018-10-18 Juri Linkov Use buffer objects for non-writable states in window-state-get. * lisp/window.el (window--state-get-1): Use buffer objects for buffer, next-buffers, prev-buffers if 'writable' is nil. (Bug#32850) 2018-10-18 Stefan Monnier * lisp/emacs-lisp/package.el (package-get-version): New macro 2018-10-18 Martin Rudalics Have 'window-in-direction' handle 'up' and 'down' values (Bug#32790) * lisp/window.el (window-in-direction): Handle values of 'up' and 'down' for DIRECTION argument (Bug#32790). Suggested by Juri Linkov . * lisp/windmove.el (windmove-find-other-window): Don't convert first argument of 'window-in-direction'. 2018-10-17 Paul Eggert Bring back nocombreloc if dumping Without this patch, Emacs dumps core on Fedora 28 x86-64 when configured via "CC='gcc -m32' --enable-gcc-warnings --without-imagemagick --without-gif --with-modules PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/share/pkgconfig". and then when run normally in a windowing system. 'make check' and 'emacs -nw' work OK even without the patch. * configure.ac (LD_SWITCH_SYSTEM_TEMACS): Prepend -znocombreloc if supported and if dumping. This mostly reverts 2018-06-15T21:37:39!eggert@cs.ucla.edu "Remove old combreloc hack". 2018-10-17 Eli Zaretskii Avoid assertion violation when comparing with main-thread * src/thread.c (unmark_main_thread): New function. * src/lisp.h (unmark_main_thread): Prototype it. * src/alloc.c (garbage_collect_1): Call it after sweeping. (Bug#33073) * test/src/thread-tests.el (threads-test-bug33073): New test. 2018-10-16 Federico Tedin Allow two mouse functions to work with Rectangle Mark mode * lisp/mouse.el (mouse-save-then-kill): Make mouse-save-then-kill work with rectangular regions, including when mouse-drag-copy-region is set to t. (Bug#31240) (mouse-drag-and-drop-region): Allow dragging and dropping rectangular regions. (Bug#31240) * lisp/rect.el (rectangle-intersect-p) (rectangle-position-as-coordinates): New functions. 2018-10-16 Juri Linkov Use next-buffers and prev-buffers in window-state-get and window-state-put * lisp/window.el (window--state-get-1): Get next-buffers and prev-buffers. (window--state-put-2): Set next-buffers and prev-buffers. (Bug#32850) 2018-10-16 Michael Albinus Fix Bug#32983 * lisp/net/soap-client.el: Bump version to 3.1.5. (soap-parse-server-response): Handle also "multipart/related" Content-Type. (Bug#32983) 2018-10-16 Glenn Morris Merge from origin/emacs-26 73babba (origin/emacs-26) Clarify documentation of fractional vertica... b20c51d * lisp/isearch.el (isearch-cmds): Recall absent isearch--stat... 700acbd doc/lispref/edebug.texi (Specification List) Remove obstrusiv... 1902450 Fix wording in module API documentation e724a8f Fix redisplay of glyphless characters 8fc892d Update --without-toolkit-scroll-bars doc 80e0bfa Call GTK functions only on GTK scrollbars 91c4c46 Update the description of startup in ELisp manual 18b42c6 Use the 'line-number' face for line-number fields past EOB a6ab8db Ensure NS frame is redrawn correctly after scroll Conflicts: lisp/isearch.el 2018-10-16 Michael Albinus Add process thread to list-processes * lisp/simple.el (process-menu-mode, list-processes--refresh): Add process thread. 2018-10-15 Stefan Monnier * doc/lispref/display.texi (Fringe Bitmaps): Remove redundant items * lisp/image-mode.el (image-toggle-display-image): Avoid string-make-unibyte 2018-10-15 Stefan Monnier * lisp/progmodes/octave.el: Register on auto-mode-alist (octave-maybe-mode): New function. 2018-10-15 Stefan Monnier * etc/NEWS.18: Tweak header to be more like the others 2018-10-15 Juri Linkov * lisp/image-mode.el (image--imagemagick-wanted-p): Check for file extension. (Bug#32994) (image-toggle-display-text): Let-bind create-lockfiles to nil like in image-toggle-display-image. 2018-10-15 Stefan Monnier * lisp/textmodes/tex-mode.el (tex-uptodate-p): Recognize [N.N] pages 2018-10-15 Alan Mackenzie In follow mode, prevent the cursor resting on a partially displayed line This fixes bug #32848 * lisp/follow.el (follow-adjust-window): If point ends up in a partially displayed line in a left hand or middle window, move it one line forward, to prevent unwanted scrolling should make-cursor-line-fully-visible be non-nil. 2018-10-14 Paul Eggert Update lib/regex from glibc via Gnulib This syncs recent refactorings from glibc, and incorporates: 2018-10-15 libc-config: merge from glibc 2018-10-15 regex: depend on libc-config * .gitignore: Do not ignore m4/_*.m4. * lib/cdefs.h: New file, copied from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/libc-config.h, m4/__inline.m4: New files, copied from Gnulib. * lib/regcomp.c, lib/regex.c, lib/regex_internal.c: * lib/regex_internal.h, lib/regexec.c: Copy from glibc via Gnulib. 2018-10-14 Paul Eggert Update from Gnulib This is minor refactoring that should not affect Emacs builds. It incorporates: 2018-10-12 Make better use of Autoconf * m4/environ.m4, m4/fsusage.m4, m4/manywarnings.m4, m4/socklen.m4: Copy from Gnulib. 2018-10-14 Alan Mackenzie Add ~44 edebug specs to CC Mode. * lisp/progmodes/cc-cmds.el, lisp/progmodes/cc-defs.el lisp/progmodes/cc-engine.el, lisp/progmodes/cc-fonts.el lisp/progmodes/cc-langs.el: Add lots of edebug specs. * lisp/progmodes/cc-engine.el (c-state-maybe-marker): Tidy up so as to evaluate an argument only once at runtime. 2018-10-14 Stefan Monnier * src/buffer.c (Fmove_overlay): Don't call Fdelete_overlay ... because the data structure is not in a consistent state. * test/src/buffer-tests.el (overlay-evaporation-after-killed-buffer): New test. 2018-10-14 Paul Eggert Fix lisp_eval_depth in unwind-protect cleanup Problem reported by Paul Pogonyshev (Bug#33034). * src/lisp.h (union specbinding): New member unwind.eval_depth. * src/eval.c (record_unwind_protect, set_unwind_protect): Set it. (do_one_unbind): Use it. 2018-10-13 OGAWA Hirofumi Fix sieve-mode font lock * lisp/net/sieve-mode.el (sieve-font-lock-keywords): Fix the definition of font-lock faces. (Bug#32881) 2018-10-13 OGAWA Hirofumi (tiny change) Fix sieve-upload when sieve-buffer is nil * lisp/net/sieve.el (sieve-upload): Don't rely on sieve-buffer being non-nil. (Bug#32880) 2018-10-13 Eli Zaretskii Improve 'json-insert' so it doesn't cons a string from JSON * src/json.c (struct json_buffer_and_size): New member inserted_bytes. (json_insert): Instead of creating a string and inserting it into the current buffer, copy the unibyte text into the gap. (struct json_insert_data): New member inserted_bytes. (json_insert_callback): Update commentary. Pass the inserted_bytes value to json_insert and on its return copy the updated value back into DATA. (Fjson_insert): Decode the unibyte text inserted into the gap. Call before-change-functions and after-change-functions only once, before and after processing the insertion of the entire JSON representation. * test/src/json-tests.el (json-insert/throw): Adapt to the modified implementation of json-insert: it no longer calls the modification hooks once for each inserted chunk of JSON representation. 2018-10-12 Glenn Morris Merge from origin/emacs-26 643df63 (origin/emacs-26) Avoid byte-compiler warning in em-rebind.el d0eca49 ; * doc/emacs/mark.texi (Disabled Transient Mark): Fix last c... af80b10 Improve indexing of 'C-SPC C-SPC' 89a7301 ; * doc/lispref/internals.texi (Writing Dynamic Modules): Fix... a108eaa Fix bug with precious entries in Gnus registry ce8b458 Document in the ELisp manual how to write loadable modules a7ebc6b dired-do-shell-command: Notify users after abort the command # Conflicts: # lisp/registry.el 2018-10-12 Glenn Morris Merge from origin/emacs-26 6e54762 Fix Apple Script permissions error 19f705c Fix typo in 'timerp' documentation 2018-10-12 Michael Albinus * test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Add docstring. Remove `interactive' call. 2018-10-12 Michael Albinus * lisp/net/trampver.el (customize-package-emacs-version-alist): Adapt Tramp version integrated in Emacs 26.2. 2018-10-12 Michael Albinus Fix error in Tramp loading, uncovered by tramp-test43-* * lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler): New defalias. (tramp-register-archive-file-name-handler): Use it. * lisp/net/tramp.el (tramp-file-name-for-operation): Change it for `expand-file-name'. (tramp-file-name-handler): Unset `file-name-handler-alist' when autoloading a Tramp file name handler. (tramp-autoload-file-name-handler): Always unload Tramp file name handlers. (tramp-register-file-name-handlers) (tramp-unload-file-name-handlers): Simplify. 2018-10-12 Allen Li Rework empty abbrev table omitting There were two problems with the original implementation: 1. It changed the behavior of insert-abbrev-table-description when READABLE is nil to sometimes insert one Emacs Lisp expression and sometimes insert nothing. 2. It broke the tests. This commit reworks this so that insert-abbrev-table-description always inserts an expressions even if no abbrevs need to be saved and making only write-abbrev-file check that a table has any abbrevs to save before calling insert-abbrev-table-description. This duplicates the work of filtering the table for savable abbrevs, but the benefit of keeping the API is worth it. * doc/lispref/abbrevs.texi (Abbrev Tables): Update documentation. * lisp/abbrev.el (write-abbrev-file): Skip tables without user abbrevs (insert-abbrev-table-description): Always insert the define expression. (abbrev--table-symbols): New function. * test/lisp/abbrev-tests.el (abbrev--table-symbols-test): Add test for abbrev--table-symbols. 2018-10-10 Paul Eggert Fix mishandling of symbols that look like numbers * src/bignum.c (make_neg_biguint): New function. * src/lread.c (read1): Do not mishandle an unquoted symbol with name equal to something like "1\0x", i.e., a string of numeric form followed by a NUL byte. Formerly these symbols were misread as numbers. (string_to_number): Change last argument from an integer flag to a pointer to the length. This lets the caller figure out how much of the prefix was used. All callers changed. Add a fast path if the integer (sans sign) fits in uintmax_t. Update comments and simplify now that bignums are present. * src/print.c (print_object): Fix quoting of symbols that look like numbers, by relying on string_to_number for the tricky cases rather than trying to redo its logic, incorrectly. For example, (read (prin1-to-string '\1e+NaN)) formerly returned "1e+NaN", which was wrong: a backslash is needed in the output to prevent it from being read as a NaN. Escape NO_BREAK_SPACE too, since lread.c treats it like SPACE. * test/src/print-tests.el (print-read-roundtrip): Add tests illustrating the abovementioned bugs. 2018-10-10 Stefan Monnier * lisp/auth-source.el: Minor simplification Remove redundant :group args. (auth-source-backend-parse): Use run-hook-with-args-until-success. 2018-10-10 Stefan Monnier * lisp/emacs-lisp/lisp-mnt.el: Use lexical-binding Remove redundant :group 2018-10-09 Glenn Morris Merge from origin/emacs-26 4cf1eb8 (origin/emacs-26) ; * src/data.c (Fkeywordp): Remove inaccura... 3f1470d * doc/emacs/mark.texi (Mark): Index "(de)activating the mark". 2018-10-09 Glenn Morris Merge from origin/emacs-26 14c032d Avoid assertion violations in nonsensical calls to 'signal' b99192f * lisp/simple.el (transient-mark-mode): Correct documentation... 7e42294 Update the locale and language database 8c53d9f Fix a typo in a doc string. 79bda3b Make nneething allow CRLF-encoded files (bug#32940) 2018-10-09 Glenn Morris Merge from origin/emacs-26 86d2169 Avoid ridiculously high stack limit requests on macOS ac3622c Improve documentation of 'read-hide-char' # Conflicts: # src/emacs.c 2018-10-09 Charles A. Roelli * lisp/vc/vc.el (vc-retrieve-tag-hook): Remove autoload cookie. See https://lists.gnu.org/r/emacs-devel/2018-10/msg00108.html. 2018-10-09 Paul Eggert Port --enable-gcc-warnings to recent clang * configure.ac: Disable -Wnull-pointer-arithmetic if clang (Bug#32924). 2018-10-09 Paul Eggert Fix malfunctioning cursor display on 32-bit Gtk This bug on 32-bit platforms was caused by the timespec_hz definition going haywire because the C expression FIXNUM_OVERFLOW_P (MOST_POSITIVE_FIXNUM) did not work in #if. Eventually the numeric problem showed up as a malfunctioning cursor (Bug#32992). Fix the problem with MOST_POSITIVE_FIXNUM. By the way, make_fixnum should check for integer overflow when debugging; this would have made it easier to track this bug down. But one fix at a time. * src/lisp.h (INTTYPEBITS): Now a macro, so usable in #if. (MOST_POSITIVE_FIXNUM): Mention it’s used in #if. 2018-10-09 Stefan Monnier * lisp/replace.el (occur--garbage-collect-revert-args): New function (occur-mode, occur-1): Use it. (occur--region-start, occur--region-end, occur--region-start-line) (occur--orig-line): Remove vars. (occur-engine): Fix left over use of occur--region-start-line. 2018-10-09 Eli Zaretskii Revert part of last commit * lisp/replace.el (occur-revert-function): Revert last change, as it's no longer needed. (Bug#32987) 2018-10-09 Stefan Monnier * lisp/replace.el: Rework implementation of the occur region Put the region info in the "list of buffers" used for multi-occur. (occur--parse-occur-buffer): Remove. (occur): Pass the region to occur-1 as an overlay. (occur-1): 'bufs' is now a list of buffers or overlays. (occur-engine): 'buffers' is now a list of buffers or overlays. 2018-10-09 Eli Zaretskii Unbreak 'revert-buffer' in Occur buffers * lisp/replace.el (occur-revert-function): Use the value of occur-revert-function from the correct buffer. (Bug#32987) * test/lisp/replace-tests.el (replace-occur-revert-bug32543) (replace-occur-revert-bug32987): New tests. 2018-10-08 Stefan Monnier * lisp/calendar/timeclock.el: Use lexical-binding Require cl-lib. Remove redundant :group args. (timeclock-status-string): Avoid 'setq'. (timeclock-ask-for-project, timeclock-ask-for-reason): Completionu tables can be simple lists of strings. (timeclock-read-moment): Doesn't deserve to be defsubst (most of the others don't either, admittedly). (timeclock-entry): New type. (timeclock-entry-begin, timeclock-entry-end, timeclock-entry-project) (timeclock-entry-comment): Define via 'cl-defstruct'. (timeclock-entry-list-projects, timeclock-day-list-projects): Avoid add-to-list on lexical vars. (timeclock-day-list): Use 'push'. (timeclock-log-data): Use 'pcase'. (timeclock-mean): Simplify. (timeclock-generate-report): Use dotimes. 2018-10-08 Paul Eggert Update from Gnulib This incorporates: 2018-10-05 explicit_bzero: make it possible to namespace 2018-10-04 fcntl: make it possible to namespace 2018-10-01 mkostemp, mkostemps: fix C++ compilation on Mac OS X 2018-09-19 maint: mktime.c now shared with glibc 2018-09-18 file-has-acl: fix test failure on Cygwin 2.9 2018-09-18 gettime: nanotime never existed * admin/merge-gnulib (AVOIDED_MODULES): Add mkdir. * doc/misc/texinfo.tex, lib/acl-internal.c, lib/acl-internal.h: * lib/acl_entries.c, lib/explicit_bzero.c, lib/fcntl.c: * lib/get-permissions.c, lib/gettime.c, lib/mktime.c: * lib/set-permissions.c, lib/stdlib.in.h, m4/acl.m4, m4/gettime.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2018-10-08 Stefan Monnier * lisp/net/ntlm.el: Use lexical-binding (ntlm-string-as-unibyte): Remove. (ntlm-build-auth-response): Use encode-coding-string instead. (ntlm-build-auth-request, ntlm-build-auth-response, ntlm-ascii2unicode) (ntlm-smb-owf-encrypt, ntlm-smb-hash, ntlm-smb-dohash, ntlm-md4hash): Use fewer setq more Lisp-style. 2018-10-08 Charles A. Roelli New hook 'vc-retrieve-tag-hook' (Bug#32754) * etc/NEWS: Mention the new variable. * lisp/vc/vc.el (vc-retrieve-tag-hook): New hook. (vc-retrieve-tag): Run the new hook and update its documentation string. 2018-10-07 Eli Zaretskii Fix MinGW compilation problem in timefns.c * src/timefns.c (lisp_to_timespec): Fix a mismatch between time_t and timespec.tv_sec data types. 2018-10-07 Paul Eggert * src/scroll.c (calculate_scrolling): Remove casts. 2018-10-07 Scott Corley (tiny change) Fix overflow lockup with frames > 255 lines * src/scroll.c (struct matrix_elt): Change unsigned char fields to int to handle frames with more than 255 lines (Bug#32951). 2018-10-06 Paul Eggert Improvements on (TICKS . HZ) This patch is in response to Eli's review (Bug#32902#10). * src/systime.h: Doc strings of affected functions now refer to format-time-string instead of to Lisp manual, and format-time-string's doc string covers time values. * test/src/timefns-tests.el (format-time-string-with-zone): Check decode-time too. (decode-then-encode-time, time-arith-tests): New tests. 2018-10-06 Paul Eggert New (TICKS . HZ) timestamp format This follows on a suggestion by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00991.html (Bug#32902). * doc/lispref/buffers.texi (Modification Time): * doc/lispref/os.texi (Processor Run Time, Time Calculations) * doc/lispref/processes.texi (System Processes): * doc/lispref/text.texi (Undo): Let the "Time of Day" section cover timestamp format details. * doc/lispref/os.texi (Time of Day): Say that timestamp internal format should not be assumed. Document new (ticks . hz) format. Omit mention of seconds-to-time since it is now just an alias for encode-time. (Time Conversion): Document encode-time extension. * etc/NEWS: Mention changes. * lisp/calendar/cal-dst.el (calendar-system-time-basis): Now const. * lisp/calendar/cal-dst.el (calendar-absolute-from-time) (calendar-time-from-absolute) (calendar-next-time-zone-transition): * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time): Simplify by using bignums, (TICKS . HZ), and new encode-time. * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time): Simplify by using bignums and new encode-time. * lisp/calendar/parse-time.el (parse-iso8601-time-string): Handle DST more accurately, by using new encode-time. * lisp/calendar/time-date.el (seconds-to-time): * lisp/calendar/timeclock.el (timeclock-seconds-to-time): Now just an alias for encode-time. * lisp/calendar/time-date.el (days-to-time): * lisp/emacs-lisp/timer.el (timer--time-setter): * lisp/net/ntlm.el (ntlm-compute-timestamp): * lisp/obsolete/vc-arch.el (vc-arch-add-tagline): * lisp/org/org-id.el (org-id-uuid, org-id-time-to-b36): * lisp/tar-mode.el (tar-octal-time): Don't assume timestamps default to list form. * lisp/tar-mode.el (tar-parse-octal-long-integer): Now an obsolete alias for tar-parse-octal-integer. * src/keyboard.c (decode_timer): Adjust to changes to time decoding functions elsewhere. * src/timefns.c: Include bignum.h, limits.h. (FASTER_TIMEFNS): New macro. (WARN_OBSOLETE_TIMESTAMPS, CURRENT_TIME_LIST) (timespec_hz, trillion, ztrillion): New constants. (make_timeval): Use TIME_T_MAX instead of its definiens. (check_time_validity, time_add, time_subtract): Remove. All uses removed. (disassemble_lisp_time): Remove; old code now folded into decode_lisp_time. All callers changed. (invalid_hz, s_ns_to_double, ticks_hz_list4, mpz_set_time) (timespec_mpz, timespec_ticks, time_hz_ticks) (lisp_time_hz_ticks, lisp_time_seconds) (time_form_stamp, lisp_time_form_stamp, decode_ticks_hz) (decode_lisp_time, mpz_time, list4_to_timespec): New functions. (decode_float_time, decode_time_components, lisp_to_timespec): Adjust to new struct lisp_time, which does not lose information like the old one did. (enum timeform): New enum. (decode_time_components): New arg FORM. All callers changed. RESULT and DRESULT are now mutually exclusive; no callers need to change because of this. (decode_time_components, lisp_time_struct) (lisp_seconds_argument, time_arith, make_lisp_time, Ffloat_time) (Fencode_time): Add support for (TICKS . HZ) form. (DECODE_SECS_ONLY): New constant. (lisp_time_struct): 2nd arg is now enum timeform, not int. All callers changed. (check_tm_member): Support bignums.m (Fencode_time): Add new two-arg functionality. * src/systime.h (struct lisp_time): Now ticks+hz rather than hi+lo+us+ps, since ticks+hz does not lose info. * test/lisp/time-stamp-tests.el (time-equal-p-nil-nil): New test. 2018-10-06 Paul Eggert Export converting mpz to [u]intmax This refactoring will help improve timestamp handling later (Bug#32902). * src/bignum.c (mpz_set_uintmax): Move to bignum.h, and make inline. (mpz_set_uintmax_slow): Now extern. (mpz_to_intmax, mpz_to_uintmax): New functions, with implementation taken from the old bignum_to_intmax and bignum_to_uintmax. (bignum_to_intmax, bignum_to_uintmax): Use them. 2018-10-06 Paul Eggert Coalesce duplicate make_lisp_timeval etc. * src/sysdep.c (timeval_to_timespec, make_lisp_timeval): Coalesce duplicate definitions (Bug#32902). 2018-10-06 Paul Eggert Move timestamp-related stuff to timefns.c This does not change behavior; it’s just long-overdue refactoring (Bug#32902). * src/emacs.c (main): Call init_timefns, syms_of_timefns. * src/timefns.c: New file, containing timestamp-related stuff from editfns.c and sysdep.c. * src/Makefile.in (base_obj): Add timefns.o. * src/editfns.c: Simplify by moving a big chunk to timefns.c. Do not include systime.h, sys/resource.h, sys/param.h, strftime.h, coding.h. (HAVE_TZALLOC_BUG, TM_YEAR_BASE, HAVE_TM_GMTOFF, tzeqlen) (local_tz, utc_tz, emacs_localtime_rz, emacs_mktime_z) (invalid_time_zone_specification, xtzfree, tzlookup) (TIME_T_MIN, TIME_T_MAX, time_overflow, invalid_time) (check_time_validity, hi_time, lo_time, Fcurrent_time) (time_add, time_subtract, time_arith, Ftime_add) (Ftime_subtract, Ftime_less_p, Fget_internal_run_time) (make_lisp_time, disassemble_lisp_time, decode_float_time) (lisp_to_timespec, lisp_time_struct, lisp_time_argument) (lisp_seconds_argument, Ffloat_time, emacs_nmemftime) (Fformat_time_string, format_time_string, Fdecode_time) (check_tm_member, Fencode_time, Fcurrent_time_string) (tm_gmtoff, Fcurrent_time_zone, Fset_time_zone_rule) (emacs_getenv_TZ, emacs_setenv_TZ): Move to timefns.c. * src/emacs.c (main): Adjust to initialization changes. * src/sysdep.c: Include if it's present. Regularize includes a bit. (Fget_internal_run_time): Move here from editfns.c. (init_timefns, syms_of_timefns): New functions. * src/w32.h (w32_get_internal_run_time): Move decl here so that it need not be cloned. * test/src/editfns-tests.el: * test/src/editfns-tests.el (format-time-string-with-zone) (format-time-string-with-outlandish-zone) (editfns-tests--have-leap-seconds) (format-time-string-with-bignum-on-32-bit): Move to ... * test/src/timefns-tests.el: ... this new file. 2018-10-04 Michael Albinus Some reaarangements in tramp*.texi * doc/misc/trampver.texi (trampfn): Change check for definition of macro. (tramp-bug-report-address): New variable. * doc/misc/tramp.texi (Top, Bug Reports): Use it. 2018-10-03 Paul Eggert Fix emacs_re_safe_alloca calculation Problem and draft fix noted by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2018-10/msg00022.html * src/emacs.c (main): Fix arithmetic used in calculation of emacs_re_safe_alloca. 2018-10-03 Glenn Morris * Makefile.in (uninstall): Remove some stray icon files. 2018-10-03 Glenn Morris Tweak Makefile emacs-module.h handling * Makefile.in (install-arch-indep, uninstall): Respect DESTDIR. Handle whitespace. Remove non-portable mkdir argument. 2018-10-03 Philipp Stephani Install emacs-module.h (Bug#31929) * Makefile.in (includedir): New variable. (install-arch-indep): Install emacs-module.h. (uninstall): Uninstall emacs-module.h. 2018-10-03 Michael Albinus * doc/misc/trampver.texi (trampfn): Call `unmacro' prior defining * doc/misc/trampver.texi (trampfn): Call `unmacro' prior defining. trampver.texi is included several times; it raises an error otherwise. 2018-10-03 Glenn Morris Merge from origin/emacs-26 ea77c65 Revert "Temporary workaround for bug #32848 for branch emacs-26" 2c8ea46 Revert "* etc/NEWS: Note setting make-cursor-line-fully-visib... f8df6f2 * etc/NEWS: Note setting make-cursor-line-fully-visible to ni... cdca208 Fix note about interactive advice (Bug#32905) 508c40e Comple fix for Bug#32550 2018-10-03 Glenn Morris Merge from origin/emacs-26 9c028d6 * lisp/savehist.el (savehist-mode): Doc fix. (Bug#32889) 3a2b5a7 ; * lisp/bindings.el (bindings--define-key): Doc fix. (Bug#3... 6a7a869 Org manual: Rewrite the Org Mobile section # Conflicts: # lisp/savehist.el 2018-10-03 Glenn Morris Merge from origin/emacs-26 7296b6f Improve cl-do, cl-do* docstrings d416109 Avoid returning early in 'while-no-input' due to subprocesses e8a4d94 Cleanup when opening a new terminal fails. (Bug#32794) # Conflicts: # etc/NEWS 2018-10-03 Alan Mackenzie Put follow-mode's engine on pre-redisplay-hook instead of post-command-hook This fixes bug #32874. * lisp/follow.el (follow-mode): Put follow-pre-redisplay-function onto pre-redisplay-function instead of putting follow-post-command-hook onto post-command-hook. Amend the removal operation analogously. (follow-pre-redisplay-function): New function. 2018-10-02 Stefan Monnier * lisp/emacs-lisp/autoload.el (autoload-ignored-definitions): New var (autoload-generate-file-autoloads): Use it. 2018-10-02 Michael Albinus Rearrangements in tramp*.texi * doc/misc/trampver.texi (trampfn): New macro, taken from tramp.texi. * doc/misc/tramp.texi (trampfn): Moved to trampver.texi. (Top): Add sections `System Requirement' and `Basic Installation'. 2018-10-01 Charles A. Roelli * lisp/vc/vc.el (vc-checkin): Simplify 'run-hook' call. 2018-10-01 Michael Albinus Use `float-time' in tramp-sh.el where needed * lisp/net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime): Use `float-time'. 2018-10-01 Michael Albinus Minor edits in tramp.texi * doc/misc/tramp.texi (Password handling): Say "user option". (Remote shell setup): Say "environment variable". (External packages): Add `non-essential' to variable index. 2018-09-30 Michael R. Mauger Automate support for `sql-indent' ELPA package * lisp/progmodes/sql.el (sql-use-indent-support): New variable. (sql-is-indent-available): New function. (sql-indent-enable): Use above. (sql-mode-hook, sql-interactive-mode-hook): Add `sql-indent-enable'. 2018-09-30 Charles A. Roelli * doc/emacs/help.texi (Misc Help): Document 'info-other-window'. 2018-09-30 Sam Steingold Document 2d54710c36: vc-git-stash & *vc-dir* 2018-09-30 Eli Zaretskii Allow 'make-cursor-line-fully-visible' name a function * src/xdisp.c (cursor_row_fully_visible_p): Handle the case of make-cursor-line-fully-visible being a function. Accept a 3rd argument; if non-zero, assume the caller already tested the conditions for the cursor being fully-visible, and don't recheck them. All callers changed. (try_cursor_movement, try_window_id): Call cursor_row_fully_visible_p instead of testing the value of make-cursor-line-fully-visible directly. (syms_of_xdisp) : Update the doc string. Define a symbol Qmake_cursor_line_fully_visible. (Bug#32848) * lisp/cus-start.el (standard): Update the Custom form. * etc/NEWS: Mention the change in possible values of 'make-cursor-line-fully-visible'. 2018-09-29 Alan Third Merge from origin/emacs-26 9ad0f1d15c Fix deprecation warning 7946445962 Make all NS drawing be done from drawRect 41fa88b99b ; Fix some doc typos 2018-09-29 Michael Albinus Rework time-* functions in Tramp * doc/misc/emacs-mime.texi (time-date): Add time-equal-p. * lisp/net/tramp-compat.el (tramp-compat-time-equal-p): New defsubst. * lisp/net/tramp.el (tramp-file-name-handler): Remove `debug' error handler. (tramp-half-a-year): Remove. (tramp-time-dont-know, tramp-time-doesnt-exist): New defconst. (tramp-time-diff): Remove compat code. (tramp-handle-set-visited-file-modtime) (tramp-handle-verify-visited-file-modtime): * lisp/net/tramp-adb.el (tramp-do-parse-file-attributes-with-ls) (tramp-adb-handle-set-file-times): * lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls) (tramp-sh-handle-set-visited-file-modtime) (tramp-sh-handle-verify-visited-file-modtime) (tramp-sh-handle-set-file-times) (tramp-sh-handle-file-newer-than-file-p): Use `tramp-time-dont-know', `tramp-time-doesnt-exist' and `tramp-compat-time-equal-p'. (tramp-sh-handle-verify-visited-file-modtime): Simplify check. * lisp/net/tramp-smb.el (tramp-smb-handle-file-attributes) (tramp-smb-read-file-entry): Use `tramp-time-dont-know'. (tramp-smb-handle-insert-directory): Adapt half-a-year check. * src/editfns.c (Ftime_equal_p): Adapt docstring. * test/lisp/net/tramp-tests.el (tramp-test19-directory-files-and-attributes) (tramp-test22-file-times): Use `tramp-compat-time-equal-p' and `tramp-time-dont-know'. (tramp-test23-visited-file-modtime): Extend test. 2018-09-29 Michael Albinus Fix minor problem in tramp-handle-substitute-in-file-name * lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Suppress cygwin-mount file name handlers. 2018-09-29 Michael Albinus Finish fix for Bug#21559 * lisp/vc/vc-git.el (vc-git--call): If `revert-buffer-in-progress-p' flag is set, prepend "GIT_OPTIONAL_LOCKS=0" to "process-environment". (Bug#21559) 2018-09-29 Tino Calancha Noam Postavsky Ibuffer filter by modes: Accept several mode names Extend all mode filters so that they handle >1 mode. For instance, if the users want to filter all buffers in C or C++ mode, then they can call the filter interactively with input: 'c-mode,c++-mode' (Bug#32731). * lisp/ibuf-macs.el(define-ibuffer-filter): Add key :accept-list. If the value of this key is non-nil, then the filter accepts either a single qualifier or a list of them; in the latter case, the resultant filter is the `or' composition of the individual ones. * lisp/ibuf-ext.el (ibuffer-filter-by-used-mode) (ibuffer-filter-by-mode, ibuffer-filter-by-derived-mode) Set :accept-list value non-nil. Interactively, accept a comma separated list of mode names. * etc/NEWS(Ibuffer): Announce this change. 2018-09-29 Allen Li Avoid writing empty abbrev tables Fixes bug#29923 'insert-abbrev-table-description' with a non-nil READABLE inserts Lisp forms suitable for evaluation to restore the defined abbrevs. We don't have to insert a form for tables that do not have any abbrevs. To implement this, we need to filter out system abbrevs before checking if a table is empty, because system abbrevs were previously skipped in the 'abbrev--write' call, at which point we would already have started inserting the beginning of a table definition form. * lisp/abbrev.el (insert-abbrev-table-description): Skip inserting empty tables when READABLE is non-nil. Clarify behavior in documentation string. (abbrev--write): Remove system abbrev check. * doc/lispref/abbrevs.texi (Abbrev Tables): Document behavior with empty tables. * etc/NEWS: Mention the change in behavior of 'insert-abbrev-table-description'. 2018-09-28 Andrew Schwartzmeyer (tiny change) Support mode aliases in 'provided-mode-derived-p' * lisp/subr.el (provided-mode-derived-p): Check aliases of MODES as well as MODES themselves. (Bug#32795) * test/lisp/subr-tests.el (provided-mode-derived-p): New test. 2018-09-28 Trevor Murphy Allow user customization to affect display of *Find* buffer. * lisp/find-dired.el (find-dired): Use 'pop-to-buffer-same-window' instead of 'switch-to-buffer'. 2018-09-28 Stefan Monnier * etc/NEWS.18: Use outline-mode and a more standard format * etc/NEWS.1-17: Use outline-mode and a more standard format 2018-09-28 Paul Eggert Rename time-equal to time-equal-p This is for consistency with time-less-p. * doc/lispref/os.texi (Time Calculations), etc/NEWS: * src/editfns.c (Ftime_equal_p, syms_of_editfns): * test/lisp/emacs-lisp/timer-tests.el (timer-test-multiple-of-time): Rename. 2018-09-28 Glenn Morris Merge from origin/emacs-26 1908173 (origin/emacs-26) Fix Bug#32828 7f5086d * lisp/net/shr.el (shr-copy-url): Fix docstring. d309994 Fix typos in documentation 25cdd65 ; Spellcheck two more documentation strings c8bda05 ; * lisp/simple.el (save-interprogram-paste-before-kill): Fix... dc7fdee * doc/emacs/kmacro.texi (Basic Keyboard Macro): Mention old b... 17766a1 Improve docs of functions/variables related to 'display-buffer' a363931 * lisp/mouse.el (tear-off-window): Fix non-mouse use (bug#32799) 8b8a4c0 Improve documentation of directory-local variables c9c9756 Don't use obsolete variable 'save-place' in documentation ca208e8 Use save-place-mode instead of save-place 2018-09-28 Sam Steingold lisp/vc/vc-git.el (vc-git-stash): Respect vc-dir marked files 2018-09-27 Paul Eggert time-equal, and time values of infinity and NaN * doc/lispref/os.texi (Time Calculations): Document time-equal, and the behavior on NaNs and infinities of time-less-p, time-add, time-subtract. * etc/NEWS: Mention the change. * src/editfns.c (time_arith): Change last arg from function to bool. All callers changed. Do the right thing with infinities and NaNs. (time_cmp): New function, which handlesx infinities and NaNs. (Ftime_less_p): Use it. (Ftime_equal): New function. * test/lisp/emacs-lisp/timer-tests.el (timer-test-multiple-of-time): Use it. 2018-09-26 Juri Linkov * etc/NEWS: Mention syntax change in add-dir-local-variable (bug#32817) 2018-09-26 Charles A. Roelli * lisp/vc-bzr.el (log-view-current-tag-function): Remove unused defvar. 2018-09-26 Alan Mackenzie CC Mode: consider tails of compound identifiers when seeking found types. * lisp/progmodes/cc-engine.el (c-forward-over-token): New function, extracted from ... (c-forward-over-token-and-ws): Refactor to use the above. (c-forward-type): Use c-check-qualified-type in place of c-check-type (twice). (c-forward-over-compound-identifier): New function. (c-check-qualified-type): New function. 2018-09-25 Juri Linkov Rename add-dir-local-variables-to-string to dir-locals-to-string (bug#32817) 2018-09-24 Paul Eggert Remove some assumptions about timestamp format These changes remove some assumptions of Lisp code on timestamp format. Although we’re not going to change the default format any time soon, I went looking for code that was too intimate about details of timestamp format and removed assumptions where this was easy to do with current Emacs primitives. * lisp/ido.el (ido-wash-history): Fix test for zero timestamp. * lisp/time.el (display-time-event-handler): Use time-less-p rather than doing it by hand. (display-time-update): Simplify by using float-time instead of doing the equivalent by hand. * lisp/url/url-auth.el (url-digest-auth-make-cnonce): * test/lisp/calendar/parse-time-tests.el (parse-time-tests): * test/lisp/emacs-lisp/timer-tests.el (timer-test-multiple-of-time): * test/lisp/net/tramp-tests.el: (tramp-test19-directory-files-and-attributes) (tramp-test22-file-times, tramp-test23-visited-file-modtime): Don’t assume detailed format of returned Lisp timestamps. 2018-09-24 Juri Linkov Output alists with dotted pair notation in .dir-locals.el * lisp/files-x.el (add-dir-local-variables-to-string): New function. (modify-dir-local-variable): Use it. (Bug#32817) 2018-09-24 Paul Eggert Fix ‘make clean’ with a file named ‘-.o’ Problem reported by T.V Raman in: https://lists.gnu.org/r/emacs-devel/2018-09/msg00866.html * Makefile.in (clean, extraclean): * doc/emacs/Makefile.in (mostlyclean): * doc/lispintro/Makefile.in (mostlyclean): * doc/lispref/Makefile.in (mostlyclean): * doc/misc/Makefile.in (mostlyclean, clean): * etc/refcards/Makefile (clean): * lib-src/Makefile.in (mostlyclean, extraclean): * lib/Makefile.in (clean): * lwlib/Makefile.in (clean mostlyclean): * oldXMenu/Makefile.in (clean mostlyclean): * src/Makefile.in (mostlyclean, extraclean): * test/Makefile.in (mostlyclean): Say ‘rm ./*.o’ instead of ‘rm *.o’ to avoid undesirable failure when a file name begins with ‘-’. 2018-09-23 Paul Eggert file-attributes cleanup Mostly, this replaces magic-number calls like (nth 4 A) with more-informative calls like (file-attribute-access-time A). It also fixes some documentation and minor timestamp coding issues that I noticed while looking into this. * doc/lispref/files.texi (File Attributes): * lisp/files.el (file-attribute-size) (file-attribute-inode-number, file-attribute-device-number): * src/dired.c (Fdirectory_files_and_attributes) (Ffile_attributes): Mention which attributes must be integers, or nonnegative integers, as opposed to merely being numbers. Remove no-longer-correct talk about representing large integers as conses of integers. * doc/lispref/files.texi (Magic File Names): * doc/misc/gnus.texi (Low-level interface to the spam-stat dictionary): * lisp/autorevert.el (auto-revert-find-file-function) (auto-revert-tail-mode, auto-revert-handler): * lisp/auth-source.el (auth-source-netrc-parse): * lisp/cedet/ede/files.el (ede--inode-for-dir): * lisp/cedet/semantic/db-file.el (object-write): * lisp/cedet/semantic/db-mode.el (semanticdb-kill-hook): * lisp/cedet/semantic/db.el (semanticdb-needs-refresh-p) (semanticdb-synchronize): * lisp/cedet/srecode/table.el (srecode-mode-table-new): * lisp/desktop.el (desktop-save, desktop-read): * lisp/dired-aux.el (dired-file-set-difference) (dired-do-chxxx, dired-do-chmod, dired-copy-file-recursive) (dired-create-files): * lisp/dired.el (dired-directory-changed-p, dired-readin): * lisp/dos-w32.el (w32-direct-print-region-helper): * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads) (autoload-find-destination, update-directory-autoloads): * lisp/emacs-lisp/shadow.el (load-path-shadows-same-file-or-nonexistent): * lisp/epg.el (epg--start, epg-wait-for-completion): * lisp/eshell/em-ls.el (eshell-ls-filetype-p) (eshell-ls-applicable, eshell-ls-size-string) (eshell-ls-file, eshell-ls-dir, eshell-ls-files) (eshell-ls-entries): * lisp/eshell/em-pred.el (eshell-predicate-alist) (eshell-pred-file-type, eshell-pred-file-links) (eshell-pred-file-size): * lisp/eshell/em-unix.el (eshell-shuffle-files, eshell/cat) (eshell-du-sum-directory, eshell/du): * lisp/eshell/esh-util.el (eshell-read-passwd) (eshell-read-hosts): * lisp/files.el (remote-file-name-inhibit-cache) (find-file-noselect, insert-file-1, dir-locals-find-file) (dir-locals-read-from-dir, backup-buffer) (file-ownership-preserved-p, copy-directory) (read-file-modes): * lisp/find-lisp.el (find-lisp-format): * lisp/gnus/gnus-agent.el (gnus-agent-unfetch-articles) (gnus-agent-read-agentview, gnus-agent-expire-group-1) (gnus-agent-request-article, gnus-agent-regenerate-group) (gnus-agent-update-files-total-fetched-for) (gnus-agent-update-view-total-fetched-for): * lisp/gnus/gnus-cache.el (gnus-cache-read-active) (gnus-cache-update-file-total-fetched-for) (gnus-cache-update-overview-total-fetched-for): * lisp/gnus/gnus-cloud.el (gnus-cloud-file-new-p): * lisp/gnus/gnus-score.el (gnus-score-score-files): * lisp/gnus/gnus-start.el (gnus-save-newsrc-file) (gnus-master-read-slave-newsrc): * lisp/gnus/gnus-sum.el (gnus-summary-import-article): * lisp/gnus/gnus-util.el (gnus-file-newer-than) (gnus-cache-file-contents): * lisp/gnus/mail-source.el (mail-source-delete-old-incoming) (mail-source-callback, mail-source-movemail): * lisp/gnus/nneething.el (nneething-create-mapping) (nneething-make-head): * lisp/gnus/nnfolder.el (nnfolder-read-folder): * lisp/gnus/nnheader.el (nnheader-file-size) (nnheader-insert-nov-file): * lisp/gnus/nnmail.el (nnmail-activate): * lisp/gnus/nnmaildir.el (nnmaildir--group-maxnum) (nnmaildir--new-number, nnmaildir--update-nov) (nnmaildir--scan, nnmaildir-request-scan) (nnmaildir-request-update-info) (nnmaildir-request-expire-articles): * lisp/gnus/nnmh.el (nnmh-request-list-1) (nnmh-request-expire-articles, nnmh-update-gnus-unreads): * lisp/gnus/nnml.el (nnml-request-expire-articles): * lisp/gnus/spam-stat.el (spam-stat-save, spam-stat-load) (spam-stat-process-directory, spam-stat-test-directory): * lisp/ido.el (ido-directory-too-big-p) (ido-file-name-all-completions): * lisp/image-dired.el (image-dired-get-thumbnail-image) (image-dired-create-thumb-1): * lisp/info.el (info-insert-file-contents): * lisp/ls-lisp.el (ls-lisp-insert-directory) (ls-lisp-handle-switches, ls-lisp-classify-file) (ls-lisp-format): * lisp/mail/blessmail.el: * lisp/mail/feedmail.el (feedmail-default-date-generator) (feedmail-default-message-id-generator): * lisp/mail/mailabbrev.el (mail-abbrevs-sync-aliases) (mail-abbrevs-setup): * lisp/mail/mspools.el (mspools-size-folder): * lisp/mail/rmail.el (rmail-insert-inbox-text): * lisp/mail/sendmail.el (sendmail-sync-aliases): * lisp/mh-e/mh-alias.el (mh-alias-tstamp): * lisp/net/ange-ftp.el (ange-ftp-parse-netrc) (ange-ftp-write-region, ange-ftp-file-newer-than-file-p) (ange-ftp-cf1): * lisp/net/eudcb-mab.el (eudc-mab-query-internal): * lisp/net/eww.el (eww-read-bookmarks): * lisp/net/netrc.el (netrc-parse): * lisp/net/newst-backend.el (newsticker--image-get): * lisp/nxml/rng-loc.el (rng-get-parsed-schema-locating-file): * lisp/obsolete/fast-lock.el (fast-lock-save-cache): * lisp/obsolete/vc-arch.el (vc-arch-state) (vc-arch-diff3-rej-p): * lisp/org/ob-eval.el (org-babel--shell-command-on-region): * lisp/org/org-attach.el (org-attach-commit): * lisp/org/org-macro.el (org-macro-initialize-templates): * lisp/org/org.el (org-babel-load-file) (org-file-newer-than-p): * lisp/org/ox-html.el (org-html-format-spec): * lisp/org/ox-publish.el (org-publish-find-date) (org-publish-cache-ctime-of-src): * lisp/pcmpl-gnu.el (pcomplete/tar): * lisp/pcmpl-rpm.el (pcmpl-rpm-packages): * lisp/play/cookie1.el (cookie-snarf): * lisp/progmodes/cmacexp.el (c-macro-expansion): * lisp/ps-bdf.el (bdf-file-mod-time): * lisp/server.el (server-ensure-safe-dir): * lisp/simple.el (shell-command-on-region): * lisp/speedbar.el (speedbar-item-info-file-helper) (speedbar-check-obj-this-line): * lisp/thumbs.el (thumbs-cleanup-thumbsdir): * lisp/time.el (display-time-mail-check-directory) (display-time-file-nonempty-p): * lisp/url/url-cache.el (url-is-cached): * lisp/url/url-file.el (url-file-asynch-callback): * lisp/vc/diff-mode.el (diff-delete-if-empty): * lisp/vc/pcvs-info.el (cvs-fileinfo-from-entries): * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic): * lisp/vc/vc-cvs.el (vc-cvs-checkout-model) (vc-cvs-state-heuristic, vc-cvs-merge-news) (vc-cvs-retrieve-tag, vc-cvs-parse-status, vc-cvs-parse-entry): * lisp/vc/vc-hg.el (vc-hg--slurp-hgignore-1) (vc-hg--ignore-patterns-valid-p) (vc-hg--cached-dirstate-search, vc-hg-state-fast): * lisp/vc/vc-hooks.el (vc-after-save): * lisp/vc/vc-rcs.el (vc-rcs-workfile-is-newer): * lisp/vc/vc-svn.el (vc-svn-merge-news, vc-svn-parse-status): * lisp/vc/vc.el (vc-checkout, vc-checkin, vc-revert-file): * lisp/xdg.el (xdg-mime-apps): Prefer (file-attribute-size A) to (nth 7 A), and similarly for other file attributes accessors. * doc/lispref/files.texi (File Attributes): * doc/lispref/intro.texi (Version Info): * doc/lispref/os.texi (Idle Timers): * lisp/erc/erc.el (erc-string-to-emacs-time): * lisp/files.el (file-attribute-access-time) (file-attribute-modification-time) (file-attribute-status-change-time): * lisp/net/tramp-compat.el: (tramp-compat-file-attribute-modification-time) (tramp-compat-file-attribute-size): * src/buffer.c (syms_of_buffer): * src/editfns.c (Fget_internal_run_time): * src/fileio.c (Fvisited_file_modtime) (Fset_visited_file_modtime): * src/keyboard.c (Fcurrent_idle_time): * src/process.c (Fprocess_attributes): Defer implementation details about timestamp format to the section that talks about timestamp format, to make it easier to change the documentation later if timestamp formats are extended. * lisp/gnus/gnus-util.el (gnus-file-newer-than): * lisp/speedbar.el (speedbar-check-obj-this-line): * lisp/vc/vc-rcs.el (vc-rcs-workfile-is-newer): Prefer time-less-p to doing it by hand. * lisp/ls-lisp.el (ls-lisp-format): Inode numbers are no longer conses. * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic): Use eql, not eq, to compare integers that might be bignums. * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src): Prefer float-time to doing time arithmetic by hand. 2018-09-23 Stefan Monnier * doc/emacs/maintaining.texi: Fix one more occurrence of `next-file` 2018-09-22 Stefan Monnier * lisp/play/bubbles.el: Use lexical-binding 2018-09-22 Paul Eggert Round bignums consistently with other integers * src/bignum.c (mpz_bufsize): New function. (bignum_bufsize): Use it. (mpz_get_d_rounded): New function. (bignum_to_double): Use it. * src/bignum.c (bignum_to_double): * src/data.c (bignum_arith_driver): When converting bignums to double, round instead of truncating, to be consistent with what happens with fixnums. * test/src/floatfns-tests.el (bignum-to-float): Test rounding. 2018-09-22 Stefan Monnier Complement to last commit 2018-09-22 Stefan Monnier * lisp/multifile.el: New file, extracted from etags.el The main motivation for this change was the introduction of project-query-replace. dired's multi-file query&replace was implemented on top of etags.el even though it did not use TAGS in any way, so I moved this generic multifile code into its own package, with a nicer interface, and then used that in project.el. * lisp/progmodes/project.el (project-files): New generic function. (project-search, project-query-replace): New commands. * lisp/dired-aux.el (dired-do-search, dired-do-query-replace-regexp): Use multifile.el instead of etags.el. * lisp/progmodes/etags.el: Remove redundant :groups. (next-file-list): Remove var. (tags-loop-revert-buffers): Make it an obsolete alias. (next-file): Don't autoload (it can't do anything useful before some other etags.el function setup the multifile operation). (tags--all-files): New function, extracted from next-file. (tags-next-file): Rename from next-file. Rewrite using tags--all-files and multifile-next-file. (next-file): Keep it as an obsolete alias. (tags-loop-operate, tags-loop-scan): Mark as obsolete. (tags--compat-files, tags--compat-initialize): New function. (tags-loop-continue): Rewrite using multifile-continue. Mark as obsolete. (tags--last-search-operate-function): New var. (tags-search, tags-query-replace): Rewrite using multifile.el. * lisp/emacs-lisp/generator.el (iter-end-of-sequence): Use 'define-error'. (iter-make): New macro. (iter-empty): New iterator. * lisp/menu-bar.el (menu-bar-search-menu, menu-bar-replace-menu): tags-loop-continue -> multifile-continue. 2018-09-21 Paul Eggert Fix (+ bignum float) bug * src/data.c (bignum_arith_driver): Fix typo: missing ‘return’. * test/src/data-tests.el (data-tests-bignum): Test for the typo. 2018-09-21 Paul Eggert Fix ambiguity in nil DST flag Formerly nil meant both that DST was not in effect and that the DST flag was unknown, and different functions interpreted the flag differently. Now the meaning is consistently nil for DST not in effect, and -1 for DST flag not known. * doc/lispref/os.texi (Time Conversion): The DST slot is now three-valued, not two-. * doc/misc/emacs-mime.texi (time-date): Adjust to new behavior. * etc/NEWS: Mention this. * lisp/calendar/parse-time.el (parse-time-string): * src/editfns.c (Fdecode_time): Return -1 for unknown DST flag. * test/lisp/calendar/parse-time-tests.el (parse-time-tests): Adjust tests to match new behavior, and add a new test for nil vs -1. 2018-09-21 Philipp Stephani Avoid an overflow error in emacs-module.c * src/emacs-module.c (Fmodule_load): Allow creating a bignum to avoid overflow error 2018-09-21 Philipp Stephani Use new function overflow_error in a few places * src/emacs-module.c (module_make_global_ref, module_funcall) (module_make_string, Fmodule_load): * src/json.c (json_to_lisp): Use overflow_error. 2018-09-21 Philipp Stephani Support bignums when serializing JSON * src/json.c (lisp_to_json): Support bignums. * test/src/json-tests.el (json-serialize/bignum): New test. 2018-09-20 Paul Eggert Bindat examples in source, not manual * doc/lispref/processes.texi (Bindat Examples): Remove, fixing a FIXME in the manual. The long example had bitrotted to some extent, compared to the more-up-to-date example in bindat.el commentary, which apparently what people were referring to anyway. The short example was confusing and not that useful and will be obsolescent anyway if we change timestamp format. 2018-09-20 Tino Calancha Fix a previous commit Suggested by Stefan Monnier here: https://lists.gnu.org/archive/html/emacs-devel/2018-09/msg00783.html * lisp/replace.el (occur--parse-occur-buffer): Since point is at the beginning of the buffer, use `point'. (occur-revert-function): Prefer `pcase-let' and `point-min'. Check whether `region-start' or `region-end' are non-nil. 2018-09-20 Glenn Morris Merge from origin/emacs-26 d28d54c (origin/emacs-26) More accurate docs for 'text-char-description' b3baf99 Document synchronous behavior of eshell/make (Bug#32513) 98544ea Fix bs-show with wide characters (Bug#17822) 85af51b Improve Custom menu labels for 2 options 72a2a36 Improve wording of last change in dired-x.texi d4fa83b Fix GnuTLS test suite with GnuTLS versions 3.4.x b5bee6b Fix build with gnutls versions 3.0 to 3.2 (Bug#32446) 67eb80e ; * etc/enriched.txt (hanging-indents): Remove extra indent. c71cfb7 Fix the Bubbles game on TTY frames 3bbf21b Add choice to reshow certificate information (Bug#31877) 6f2c471 * src/alloc.c (Fbool_vector, Flist, Fvector): Doc tweak. 39eecb3 * src/alloc.c (vector): Fix grammatical error in doc string: ... 2018-09-20 Bob Newell New input methods hawaiian-postfix and hawaiian-prefix * lisp/leim/quail/latin-pre.el ("hawaiian-prefix"): * lisp/leim/quail/latin-post.el ("hawaiian-postfix"): New input methods. (Bug#32714) * etc/NEWS: Mention the new input methods. 2018-09-18 Tino Calancha Fix bug 32543 Store the region and orig line into the *Occur* header line. Retrieve this information in `occur-revert-function'. * lisp/replace.el (occur--parse-occur-buffer): New defun. (occur-revert-function): Use it. (occur-engine): Store region and original position as text properties into the *Occur* header line. * lisp/replace.el (occur-engine): Add sensible default values for (occur--orig-line and nlines. 2018-09-17 Stefan Monnier * lisp/emacs-lisp/advice.el: Only use defmacro when needed (ad-get-advice-info): Mark it inlinable. (ad-get-advice-info-macro): Make it an obsolete alias. (ad-copy-advice-info, ad-is-advised, ad-get-advice-info-field) (ad-find-advice, ad-macrofy, ad-lambdafy, ad-lambda-p, ad-advice-p) (ad-compiled-p, ad-compiled-code, ad-get-cache-definition) (ad-get-cache-id, ad-set-cache): Turn macros into defsubsts. (ad-defadvice-flags): Make it into a plain list. (ad-set-advice-info-field): Apply a bit of CSE. 2018-09-17 Stefan Monnier * lisp/emacs-lisp/advice.el (ad-advised-functions): Make it a plain list (ad-read-advised-function, ad-do-advised-functions): Adjust accordingly. (ad-pushnew-advised-function, ad-pop-advised-function): Also make them into functions. 2018-09-16 Paul Eggert Move current_timespec decl to timespec.h This change was motivated by the desire to remove the weird dependency of lib-src/profile.o on src/systime.h. profile.c included systime.h only for current_timespec, and this inclusion required systime.h to have #ifdef emacs in multiple places and complicated further changes I have in mind. The current_timespec decl belongs in timespec.h anyway, and the main effect of this change is to move it there. * lib-src/profile.c (INLINE): Remove. Include timespec.h, not systime.h. * lib/gettime.c (gettime): Prefer clock_gettime to nanotime, and don’t worry about it failing on a CLOCK_REALTIME arg. POSIX requires it to succeed and I don’t know of any counterexamples where the fallbacks would work. (current_timespec): Move here from src/systime.h. Nowadays it seems to be better to not have this function be inline. * lib/timespec.h: Include arg-nonnull.h. (current_timespec): New declaration. (gettime, settime): Declare args to be nonnull. * lib/gettime.c, lib/timespec.h: Copy from Gnulib. * src/systime.h: Simplify by assuming ‘emacs’ is defined, which it always is now. (current_timespec): Move to lib/timespec.h. 2018-09-16 Stefan Monnier * lisp/delsel.el (minibuffer-keyboard-quit): Remove old redundant code. The various minibuffer maps all inherit from minibuffer-local-map nowadays, so a single binding in it is all it takes. 2018-09-16 Noam Postavsky Clarify condition-case docstring * src/eval.c (Fcondition_case): Note that it handles non-error symbols too. 2018-09-16 Pierre Lorenzon (tiny change) Update pconf for compile.el mode-line-process changes * lisp/cedet/ede/pconf.el (ede-proj-configure-synchronize): Check the first list element of mode-line-process (Bug#32564). 2018-09-16 Paul Eggert * src/thread.h: Do not include systime.h; no longer needed. 2018-09-16 Paul Eggert Don’t assume obsolescent setitimer function * src/atimer.c (start_atimer, debug_timer_callback): Don’t assume support for setitimer merely because struct itimerspec works. POSIX no longer requires support for the obsolescent setitimer function. 2018-09-15 Paul Eggert Simplify get_up_time on GNU/Linux * src/sysdep.c (get_up_time) [GNU_LINUX && HAVE_LONG_LONG_INT]: Omit unused locals. 2018-09-15 Paul Eggert Go back to old method for nnmaildir names * lisp/gnus/nnmaildir.el (nnmaildir-request-accept-article): Omit leading 0s after "M" in file name. Problem reported by Glenn Morris in: https://lists.gnu.org/r/emacs-devel/2018-09/msg00660.html 2018-09-15 Paul Eggert Fix icalendar tests to match new behavior * test/lisp/calendar/icalendar-tests.el (icalendar--create-uid): Do not intrude into or rely upon undocumented internal implementation details of icalendar--create-uid. Problem reported by Glenn Morris in: https://lists.gnu.org/r/emacs-devel/2018-09/msg00660.html 2018-09-15 Glenn Morris Merge from origin/emacs-26 e133b63 (origin/emacs-26) Avoid adverse side effects of fixing bug#21824 cc8f334 Document changes called out in NEWS 20ecc52 ; * etc/NEWS: Document recent change in 'thing-at-point'. 1fc5283 ; INSTALL: Fix a typo in the last commit. 24f240d Tiny doc updates re yum/dnf etc 41c2d25 Remove unused variable 1e3b3fa Fix (thing-at-point 'list) regression (Bug#31772) 219893a Clarify meaning of '*' 41cdda2 * etc/PROBLEMS: Document Ubuntu 16.04 issue. 1c22f03 Increase default value for imenu-auto-rescan-maxout ee84389 Improve recent change to ELisp manual ff374e4 * doc/lispref/display.texi (SVG Images): Improve wording. 3a0caf6 * doc/lispref/display.texi (SVG Images): Fix a typo. (Bug#32... Conflicts: doc/lispref/lists.texi etc/NEWS 2018-09-15 Noam Postavsky Don't call modification hooks unprepared Inhibit modification hooks when performing message coalescing because in that case, we aren't doing the necessary preparation for running modification hooks (i.e., we pass PREPARE=false for the insert_1_both and del_range_both calls). See also Bug#30823 and Bug#21824. * src/xdisp.c (message_dolog): Let-bind inhibit-modification-hooks to t around del_range_both calls. 2018-09-15 Wenjamin Petrenko (tiny change) Make 'filesets-save-config' save filesets added by 'filesets-add-buffer' * lisp/filesets.el (filesets-set-config): Use 'customize-set-variable' so that filesets are saved by 'customize-save-customized' in 'filesets-save-config'. (Bug#20630) 2018-09-14 Stefan Monnier * lisp/progmodes/idlw-shell.el: Use lexical-binding (idlwave-shell-source-frame): Remove unused var 'frame'. (idlwave-shell): Remove unused arg 'quick'. (idlwave-shell-complete-filename, idlwave-shell-edit-default-command-line) (idlwave-shell-retall, idlwave-shell-closeall): Remove unused arg 'arg'. (idlwave-shell-move-to-bp): Remove unused var 'got-bp'. (zmacs-regions): Declare. (idlwave-shell-update-bp-overlays): Remove unused var 'win'. (idlwave-shell-delete-expression-overlay) (idlwave-shell-mouse-nop): Delete function. Use 'ignore' instead. (idlwave-shell-delete-output-overlay): Ignore 'ignore' commands rather than idlwave-shell-mouse-nop commands. (idlwave-shell-mode-map, idlwave-shell-electric-debug-mode-map): Move (part of) the initialization into the declaration. (idlwave-shell-electric-debug-mode-on-hook) (idlwave-shell-electric-debug-mode-off-hook): Keep them empty, move code into the minor mode's definition instead. (idlwave-shell-electric-debug-mode): Don't use advice needlessly. 2018-09-14 Stefan Monnier * lisp/progmodes/ada-mode.el (comment-region): Avoid defadvice Don't load 'advice' if it won't be used! 2018-09-14 Stefan Monnier * lisp/eshell/em-dirs.el (eshell-expand-multiple-dots): Avoid defadvice. 2018-09-14 Stefan Monnier * lisp/mail/feedmail.el: Use lexical-binding (feedmail-queue-buffer-file-name): Improve advising example. (feedmail-vm-mail-mode): Improve auto-mode-alist example. (feedmail-queue-runner-prompt): Remove unused function. 2018-09-14 Stefan Monnier * lisp/progmodes/js.el (js--fill-c-advice): New function (c-forward-sws, c-backward-sws, c-beginning-of-macro): Use it. (js-fill-paragraph): Rename from js-c-fill-paragraph. 2018-09-13 Paul Eggert Simplify use of timestamps * lisp/calendar/icalendar.el (icalendar--create-uid): * lisp/gnus/nnmaildir.el (nnmaildir-request-accept-article): Simplify by using format-time-string. * lisp/gnus/nnmaildir.el (nnmaildir--scan): Simplify by using float-time and time-less-p. 2018-09-13 Paul Eggert Fix (floor 54043195528445955 3.0) bug * src/floatfns.c (rounding_driver): Fix rounding error that can occur when both args have values exactly representable as integers but at least one arg is a float. * test/src/floatfns-tests.el (big-round): New test. 2018-09-13 Stephen Berman Fix wdired handling of symlinks when restoring filename property * lisp/wdired.el (wdired--restore-dired-filename-prop): Use dired-permission-flags-regexp instead of dired-filename to test whether the file is a symlink, since calling file-symlink-p on the latter may fail in wdired-mode (bug#32673). 2018-09-12 Stefan Monnier (viper-read-key, viper-read-key-sequence): Remove Ever since the time-dependent ESC handling was moved to input-decode-map, viper-read-key-sequence has been obsolete. Clean up accordingly. * lisp/emulation/viper-keym.el: Use lexical-binding. (viper-overriding-map): Remove. * lisp/emulation/viper-macs.el: Use lexical-binding and 'read-key'. * lisp/emulation/viper-util.el: Use lexical-binding. (viper-read-key, viper-read-key-sequence): Remove. * lisp/emulation/viper.el (viper-non-hook-settings): Remove obsolete advice. 2018-09-12 Katsumi Yamaoka No need to run gnus-article-highlight (bug#32706) * lisp/gnus/deuglify.el (gnus-outlook-display-article-buffer): No need to run gnus-article-highlight (bug#32706). 2018-09-12 Juri Linkov * lisp/vc/vc-git.el (vc-git-grep): Set dir to default-directory when it's not available (like it's implemented in lgrep/rgrep) to prevent error in case of `C-u C-u vc-git-grep'. 2018-09-12 Juri Linkov * lisp/dired-x.el (dired-jump): Support archive-subfile-mode exactly like tar-subfile-mode is already supported. 2018-09-12 Juri Linkov * lisp/simple.el (next-error-no-select): Set display-buffer-overriding-action to display-buffer-reuse-window (bug#32607). 2018-09-12 Katsumi Yamaoka Don't highlight article if gnus-visual-p is nil (bug#32706) * lisp/gnus/deuglify.el (gnus-outlook-display-article-buffer): Don't highlight article if gnus-visual-p is nil (bug#32706). 2018-09-11 Filipp Gunbin Fix incorrect spelling of dabbrev-ignored-buffer-regexps in docstrings. * lisp/dabbrev.el (dabbrev-check-all-buffers, dabbrev-expand): Fix docstrings. 2018-09-11 Paul Eggert Minor rounding_driver simplification * src/floatfns.c (rounding_driver): Omit last arg, which is now unused. All callers changed. Signal overflow-error for bignum overflow 2018-09-11 Paul Eggert Fix (round 1e+INF) core dump * src/bignum.c (double_to_integer): Signal an error if D cannot be converted, instead of dumping core. * test/src/floatfns-tests.el (special-round): New test. 2018-09-11 Paul Eggert Use overflow-error for bignum overflow This better corresponds to what emacs-26 did in the rare cases where it checked for integer overflow. * src/alloc.c (range_error): Remove. All uses changed to overflow_error. * src/eval.c (overflow_error): New function. 2018-09-11 Michael Albinus Precise Secret Service API in auth.texi (Bug#29575) * doc/misc/auth.texi (Secret Service API): Item labels are not unique. Document this. (Bug#29575) 2018-09-10 Paul Eggert Adjust to TIMESPEC_HZ renaming Adjust to lib/timespec.h’s renaming of TIMESPEC_RESOLUTION and LOG10_TIMESPEC_RESOLUTION to TIMESPEC_HZ and LOG10_TIMESPEC_HZ. The old names were misnomers. All uses changed. 2018-09-10 Paul Eggert Update from Gnulib This incorporates: 2018-09-10 timespec: fix resolution confusion 2018-09-09 mktime: simplify in prep for glibc merge 2018-09-07 intprops: minor clarification of code 2018-09-06 stddef: Override max_align_t on NetBSD 8.0/x86 2018-09-06 fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku 2018-09-06 strtoll, strtoull: Rely on limits-h module 2018-09-06 limits-h: Provide numerical limits macros 2018-09-06 fcntl: Don't access nonexistent optional argument 2018-09-02 mktime: fix unlikely race+overflow bug 2018-08-31 mktime, timegm: simplify glibc time64_t 2018-08-31 mktime, timegm: simplify merge to glibc * build-aux/config.guess, build-aux/config.sub: * lib/dtotimespec.c, lib/fcntl.c, lib/intprops.h: * lib/limits.in.h, lib/mktime-internal.h, lib/mktime.c: * lib/stat-time.h, lib/strtol.c, lib/timegm.c: * lib/timespec-add.c, lib/timespec-sub.c, lib/timespec.h: * lib/utimens.c, m4/limits-h.m4, m4/stddef_h.m4: Copy from Gnulib. 2018-09-10 Glenn Morris Merge from origin/emacs-26 7efcdf7 (origin/emacs-26) Clarify completion text in the ELisp manual 30b0b0e Fix handling of abbreviated control command in gdb-mi.el 5cf282d Clarify documentation of functions reading character events 96281c5 Record :version for built-in variables while dumping 82160cf * src/process.c (connect_network_socket): Fix memory leak. (... 6c616e4 * Makefile.in (appdatadir): Use the non-obsolete location "me... 9618e16 Better fix for bug#32550 30d94e4 Fix Bug#32550 57bcdc7 Don't call XGetGeometry for frames without outer X window (Bu... 82fc6b6 * lisp/calculator.el: Fix doc typo. ddc7c64 Standardize calc bug reporting instructions Conflicts: lisp/cus-start.el 2018-09-10 Glenn Morris * lisp/thread.el: Remove more useless runtime requires. 2018-09-10 Glenn Morris Remove useless requires of subr-x at runtime * lisp/thread.el, lisp/net/nsm.el, lisp/erc/erc.el: Don't require subr-x at runtime. 2018-09-10 Karl Fogel Fix build error: use string :version in defcustom * lisp/textmodes/flyspell.el (flyspell-case-fold-duplications): Use a string value for the :version keyword to `defcustom'. Otherwise, building Emacs will fail with an error like this: Scanning ./textmodes for custom Scanning ./url for custom Scanning ./vc for custom Generating ./cus-load.el... Version must be a string make[2]: *** [Makefile:152: cus-load.el] Error 255 This follows up to Reuben Thomas's commit 61f3a4b4fc of 10 Sep 2018. 2018-09-10 Paul Eggert Fix misleading name ‘double_to_bignum’ * src/bignum.c (double_to_integer): Rename from double_to_bignum, since the result is not necessarily a bignum. All uses changed. 2018-09-10 Paul Eggert * src/charset.c (Fencode_char): Tweak comment. 2018-09-10 Reuben Thomas Add flyspell option to ignore duplicates of different case * lisp/textmodes/flyspell.el (flyspell-case-fold-duplications): Add option. 2018-09-10 Eli Zaretskii Avoid compiler warnings due to get_proc_addr * src/w32common.h (get_proc_addr): Add prototype, to shut up GCC compilation warning. Reported by Martin Rudalics . 2018-09-10 Stefan Monnier * src/charset.c (Fencode_char): Explain when/why bignums are used 2018-09-10 Martin Rudalics Fix last change of 'run_window_size_change_functions' * src/window.c (run_window_size_change_functions): Fix two type mixups in last change. Reported by Michael Albinus on emacs-devel. 2018-09-10 Martin Rudalics Handle buffer-local 'window-size-change-functions' specially (Bug#32637) * src/window.c (run_window_size_change_functions): Run a buffer-local value once per each frame and only if at least one window showing the buffer on that frame has changed its size. (Bug#32637) * doc/lispref/windows.texi (Window Hooks): Describe new behavior of buffer-local 'window-size-change-functions'. 2018-09-09 Gemini Lasswell Merge branch 'scratch/list-threads' 2018-09-09 Gemini Lasswell Use thread-live-p instead of obsolete thread-alive-p * lisp/thread.el (thread-list--get-status) (thread-list--send-signal, thread-list-pop-to-backtrace) (thread-list-backtrace--revert-hook-function) (thread-list-backtrace--insert-header): Use thread-live-p instead of thread-alive-p. 2018-09-09 Gemini Lasswell Improve documentation of thread list buffer * doc/lispref/threads.texi (The Thread List): Cross-reference 'Basic Thread Functions'. Use defvar for thread-list-refresh-seconds. Improve descriptions of the backtrace and signal commands. 2018-09-09 Gemini Lasswell Add tests for list-threads and the *Threads* buffer * test/lisp/thread-tests.el: New file. 2018-09-09 Gemini Lasswell Add check in list-threads for --without-threads configuration * lisp/thread.el (list-threads): Signal an error if the Emacs configuration doesn't have threads. 2018-09-09 Gemini Lasswell Document list-threads and its buffer * doc/lispref/threads.texi (Threads): Add menu item. (The Thread List): New node. * doc/lispref/elisp.texi (Top): Add menu item. 2018-09-09 Gemini Lasswell Show backtraces of threads from thread list buffer * src/eval.c (backtrace_thread_p, backtrace_thread_top) (backtrace_thread_next, Fbacktrace_frames_from_thread): New functions. * lisp/thread.el (thread-list-mode-map): Add keybinding and menu item for 'thread-list-pop-to-backtrace'. (thread-list-mode): Make "Thread Name" column wide enough for the result of printing a thread with no name with 'prin1'. (thread-list--get-entries): Use 'thread-list--name'. (thread-list--send-signal): Remove unnecessary calls to 'threadp'. (thread-list-backtrace--thread): New variable. (thread-list-pop-to-backtrace): New command. (thread-list-backtrace--revert-hook-function) (thread-list--make-backtrace-frame) (thread-list-backtrace--insert-header, thread-list--name): New functions. 2018-09-09 Gemini Lasswell Make small fixes to Edebug and debugger documentation * doc/lispref/elisp.texi (Top): Update menu. * doc/lispref/edebug.texi (Edebug Misc): Index edebug-backtrace-show-instrumentation and edebug-backtrace-hide-instrumentation. 2018-09-09 Gemini Lasswell Make list-threads refresh the *Threads* buffer if it already exists * lisp/thread.el (list-threads): Call revert-buffer instead of waiting for the timer function to do it. 2018-09-09 Gemini Lasswell Improve docstrings of thread-list functions * lisp/thread.el (thread-list--timer-func): Change argument from 'buf' to 'buffer'. (thread-list--get-entries, thread-list--get-status): Improve docstring. (thread-list--send-signal): Change argument from 'sgnl' to 'signal'. Tell the user when the thread is no longer alive. 2018-09-09 Gemini Lasswell Make lisp/thread.el the new home for thread-related Lisp functions * lisp/emacs-lisp/thread-list.el: Remove. * lisp/emacs-lisp/thread.el: Remove. * lisp/thread.el: New file. 2018-09-09 Gemini Lasswell Add list-threads command and thread-list-mode * lisp/emacs-lisp/thread-list.el: New file. 2018-09-08 Eli Zaretskii Fix documentation for conversion to bignums * src/xselect.c (selection_data_to_lisp_data): * src/w32fns.c (Fw32_read_registry): * src/process.c (Fprocess_id): * src/font.c (Ffont_variation_glyphs, Finternal_char_font): * src/fns.c (Fsafe_length): * src/editfns.c (Fuser_uid, Fuser_real_uid, Fgroup_gid) (Fgroup_real_gid, Femacs_pid): * src/dired.c (Ffile_attributes): * src/charset.c (Fencode_char): Update commentary and doc strings for recent changes that produce bignums where previously cons cells of integers were produced. 2018-09-07 Paul Eggert * src/puresize.h (BASE_PURESIZE): Bump to 2000000. Needed on Fedora 28 x86. 2018-09-07 Paul Eggert One more GC-aligned struct * src/lisp.h (struct Lisp_Sub_Char_Table): Mark this with GCALIGNED_STRUCT, too. 2018-09-07 Paul Eggert Fix overenthusiastic header size check Problem reported by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2018-09/msg00222.html * doc/lispref/internals.texi (Garbage Collection): Document vector sizes and slot counts more accurately. * src/lisp.h: Omit header_size sanity check that was too picky. Add some less-picky checks. 2018-09-07 Eli Zaretskii Read Windows OS info for report-emacs-bug from Registry * lisp/w32-fns.el (w32--os-description): New function. * lisp/mail/emacsbug.el (report-emacs-bug--os-description): Use 'w32--os-description' instead of launching the 'systeminfo' program, which can be very slow, and is also missing on versions of Windows before XP Professional. 2018-09-06 Paul Eggert Shrink pseudovectors a bit sizeof (struct Lisp_Marker) was 32 on x86, where 24 would do. Problem noted by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2018-09/msg00165.html * src/bignum.h (struct Lisp_Bignum): * src/frame.h (struct frame): * src/lisp.h (struct Lisp_Vector, struct Lisp_Bool_Vector) (struct Lisp_Char_Table, struct Lisp_Hash_Table) (struct Lisp_Marker, struct Lisp_Overlay) (struct Lisp_Misc_Ptr, struct Lisp_User_Ptr) (struct Lisp_Finalizer, struct Lisp_Float) (struct Lisp_Module_Function): * src/process.h (struct Lisp_Process): * src/termhooks.h (struct terminal): * src/thread.h (struct thread_state, struct Lisp_Mutex) (struct Lisp_CondVar): * src/window.c (struct save_window_data): * src/window.h (struct window): * src/xterm.h (struct scroll_bar): * src/xwidget.h (struct xwidget, struct xwidget_view): Add GCALIGNED_STRUCT attribute. * src/lisp.h (GCALIGNED_UNION_MEMBER): Renamed from GCALIGNED_UNION. All uses changed. (GCALIGNED_STRUCT_MEMBER, GCALIGNED_STRUCT, GCALIGNED): New macros. All uses of open-coded GCALIGNED changed to use GCALIGNED. (union vectorlike_header): No longer GC-aligned. (PSEUDOVECSIZE): Yield 0 for pseudovectors without Lisp objects that place a member before where the first Lisp object member would be. 2018-09-06 Michael Albinus Fix Bug#31704 * lisp/eshell/esh-proc.el (eshell-gather-process-output): Do not let `expand-file-name' prefix remote file names with MS Windows volume letter. * lisp/net/tramp.el (tramp-eshell-directory-change): Use `path-separator' as it does eshell. (Bug#31704) 2018-09-06 Michael Albinus * test/lisp/autorevert-tests.el (auto-revert-test02-auto-revert-deleted-file): Extend test. 2018-09-05 Paul Eggert Fix timer.el minor rounding error * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time): Fix rounding error by using integers rather than floats. * test/lisp/emacs-lisp/timer-tests.el (timer-test-multiple-of-time): New test. 2018-09-05 Stephen Gildea Do not call mh-next-msg from mh-junk-process-* fns * lisp/mh-e/mh-junk.el (mh-junk-process-blacklist, mh-junk-process-whitelist): Do not call mh-next-msg. Now that these functions are called from mh-execute-commands, they should not change the current message pointer. The calls to mh-next-msg are probably left over from when blacklist and whitelist message processing was done immediately. 2018-09-05 Paul Eggert Improve (round FIXNUM FIXNUM) performance * src/floatfns.c (rounding_driver): New arg fixnum_divide. All callers changed. (ceiling2, floor2, truncate2, round2): New functions. Not that new, actually; these are essentially taken from Emacs 26. (Fceiling, Ffloor, Fround, Ftruncate): Use them. 2018-09-04 Paul Eggert Fix format-time-string bignum bug The problem can occur on 32-bit platforms with current timestamps. * src/editfns.c (disassemble_lisp_time, decode_time_components): Support seconds counts that are bignums. * test/src/editfns-tests.el (editfns-tests--have-leap-seconds): New function. (format-time-string-with-bignum-on-32-bit): New test. 2018-09-04 Paul Eggert Simplify bignum->intmax conversion * src/lisp.h (integer_to_intmax, integer_to_uintmax): New functions. * src/data.c (cons_to_unsigned, cons_to_signed) (arith_driver): * src/dbusbind.c (xd_extract_signed, xd_extract_unsigned): * src/dispnew.c (sit_for): * src/editfns.c (styled_format): * src/emacs-module.c (module_extract_integer): * src/fileio.c (file_offset): * src/font.c (font_unparse_xlfd, Fopen_font): * src/xdisp.c (calc_line_height_property): * src/process.c (handle_child_signal): 2018-09-04 Federico Tedin Add variable vc-git-grep-template * lisp/vc/vc-git.el (vc-git-grep-template): New variable, allows changing the default arguments passed to git-grep when using 'vc-git-grep'. * etc/NEWS: Mention 'vc-git-grep-template'. (Bug#32549) 2018-09-04 Noam Postavsky Handle non-error signals in emacsclient --eval (Bug#10989) * lisp/server.el (server-process-filter): Handle any signal, not just errors. 2018-09-04 Noam Postavsky Allow t as a catch-all condition-case handler (Bug#24618) * src/eval.c (find_handler_clause): Accept a handler of t as always matching. (Fcondition_case): * doc/lispref/control.texi (Handling Errors): Document this. * etc/NEWS: Announce it. 2018-09-04 Paul Eggert Fix (round FLOAT BIGNUM) bug * src/floatfns.c (rounding_driver): Fix bug when one argument is a float and the other is a bignum. * test/src/floatfns-tests.el (bignum-round): Test for the bug. 2018-09-04 Paul Eggert Tweak nthcdr for bignum efficiency * src/fns.c (Fnthcdr): Use mpz_tdiv_ui and mpz_tdiv_r instead of mpz_mod_ui and mpz_mod, as they are more efficient. Suggested by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2018-09/msg00073.html 2018-09-04 Paul Eggert Fix bignum initialization Problem reported by Andy Moreton in: https://lists.gnu.org/r/emacs-devel/2018-09/msg00072.html and crystal-ball diagnosis by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2018-09/msg00075.html * src/alloc.c (xrealloc_for_gmp, xfree_for_gmp): Move to bignum.c. (init_alloc): Move bignum initialization to init_bignum. * src/bignum.c (init_bignum): Rename from init_bignum_once. All users changed. * src/emacs.c (main): Call init_bignum after init_alloc, instead of calling init_bignum_once after init_bignum. 2018-09-03 Paul Eggert Speed up (+ 2 2) by a factor of 10 Improve arithmetic performance by avoiding bignums until needed. Also, simplify bignum memory management, fixing some unlikely leaks. This patch improved the performance of (+ 2 2) by a factor of ten on a simple microbenchmark computing (+ x 2), byte-compiled, with x a local variable initialized to 2 via means the byte compiler could not predict: performance improved from 135 to 13 ns. The platform was Fedora 28 x86-64, AMD Phenom II X4 910e. Performance also improved 0.6% on ‘make compile-always’. * src/bignum.c (init_bignum_once): New function. * src/emacs.c (main): Use it. * src/bignum.c (mpz): New global var. (make_integer_mpz): Rename from make_integer. All uses changed. * src/bignum.c (double_to_bignum, make_bignum_bits) (make_bignum, make_bigint, make_biguint, make_integer_mpz): * src/data.c (bignum_arith_driver, Frem, Flogcount, Fash) (expt_integer, Fadd1, Fsub1, Flognot): * src/floatfns.c (Fabs, rounding_driver, rounddiv_q): * src/fns.c (Fnthcdr): Use mpz rather than mpz_initting and mpz_clearing private temporaries. * src/bignum.h (bignum_integer): New function. * src/data.c (Frem, Fmod, Fash, expt_integer): * src/floatfns.c (rounding_driver): Use it to simplify code. * src/data.c (FIXNUMS_FIT_IN_LONG, free_mpz_value): Remove. All uses removed. (floating_point_op): New function. (floatop_arith_driver): New function, with much of the guts of the old float_arith_driver. (float_arith_driver): Use it. (floatop_arith_driver, arith_driver): Simplify by assuming NARGS is at least 2. All callers changed. (float_arith_driver): New arg, containing the partly converted value of the next arg. Reorder args for consistency. All uses changed. (bignum_arith_driver): New function. (arith_driver): Use it. Do fixnum-only integer calculations in intmax_t instead of mpz_t, when they fit. Break out mpz_t calculations into bignum_arith_driver. (Fquo): Use floatop_arith_driver instead of float_arith_driver, since the op is known to be valid. (Flogcount, Fash): Simplify by coalescing bignum and fixnum code. (Fadd1, Fsub1): Simplify by using make_int. 2018-09-03 Stephen Berman Make todo-show work when adding and deleting a new todo file * lisp/calendar/todo-mode.el (todo-add-file): Since todo-current-todo-file must be set before calling todo-show, but the buffer is not yet in todo-mode, which makes it buffer local, explicitly set it buffer locally (bug#32627). * test/lisp/calendar/todo-mode-tests.el (todo-test--add-file) (todo-test--delete-file): New functions. (todo-test-add-and-delete-file): New test. 2018-09-01 Stefan Monnier * src/lisp.h: Add explanation in a comment 2018-09-01 Charles A. Roelli * src/process.c (send_process): Fix typo in commentary. 2018-08-31 Paul Eggert Rename Emacs-specific INFINITY constants Although these constants were not erroneous, as they were used only in modules that did not include , it's less confusing to names that cannot be confused with the now-standard INFINITY macro. * src/dispextern.h (SCROLL_INFINITY): New constant. * src/dispnew.c, src/scroll.c (INFINITY): Remove. All uses replaced with SCROLL_INFINITY. * src/process.c (wait_reading_process_output): Rename private constant. 2018-08-31 Paul Eggert Port better to non-IEEE platforms * src/lread.c (string_to_number) [!IEEE_FLOATING_POINT]: Do not use the INFINITY macro, since the C standard requires it to provoke a compile-time error on platforms that do not support infinities. 2018-08-31 Michael Albinus Mark thread-alive-p as obsolete * etc/NEWS (thread-alive-p): * lisp/emacs-lisp/thread.el (thread-alive-p): Mark it as obsolete. * test/src/thread-tests.el (threads-join-error) (threads-signal-main-thread): Use `thread-live-p'. 2018-08-31 Michael Albinus Merge from origin/emacs-26 ac7936cb8f Rename thread-alive-p to thread-live-p 3d09d533d1 rcirc: Document /reconnect as a built-in command (Bug#29656) a1e615618d * test/lisp/calc/calc-tests.el (calc-imaginary-i): New test. 2018-08-31 Paul Eggert Several fixes for formatting bignums * src/bignum.c: Include stdlib.h, for abs. (bignum_bufsize, bignum_to_c_string): New functions. * src/bignum.c (bignum_to_string): * src/print.c (print_vectorlike): Use them. * src/editfns.c (styled_format): Instead of having a separate buffer for sprintf (which does not work for bignums), just append to the main buffer. When formatting bignums, add support for the standard integer flags -, #, 0, + and space. Fix some comments. Capitalize properly when formatting bignums with %X. Use functions like c_isdigit rather than reinventing the wheel. Simplify computation of excess precision. * src/print.c: Do not include bignum.h; no longer needed. (print_vectorlike): Avoid recalculating string length. * test/src/editfns-tests.el (format-bignum): Test some of the above fixes. 2018-08-31 Paul Eggert * src/alloc.c (sweep_vectors): Simplify. 2018-08-31 Michael Albinus Construct a thread_event only if THREADS_ENABLED * src/thread.c (Fthread_signal): Construct a thread_event only if THREADS_ENABLED. 2018-08-30 Paul Eggert Fix bignum FIXME in emacs-module.c * src/emacs-module.c: Do not include bignum.h; no longer needed. (module_extract_integer): Use bignum_to_intmax to avoid incorrectly signaling overflow on platforms where intmax_t is wider than long int. 2018-08-30 Juri Linkov * lisp/vc/vc.el (vc-log-internal-common): Reuse the buffer object. (Bug#32475) 2018-08-30 Juri Linkov * lisp/gnus/mm-view.el (mm-display-inline-fontify): Carry diff-mode overlays to inline MIME attachments from the temp buffer along with text properties. (Bug#32474) 2018-08-30 Paul Eggert Fix off-by-1 typo in recent bignum changes Problem reported by Yuri D’Elia in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00977.html and crucial clue provided by Michael Heerdegen in: https://lists.gnu.org/r/emacs-devel/2018-08/msg01043.html * src/font.c (font_unparse_xlfd): Fix off-by-1 typo. 2018-08-30 Michael Albinus Handle thread-signal towards the main thread (Bug#32502) * doc/lispref/threads.texi (Basic Thread Functions): * etc/NEWS: Document thread-signal towards the main thread. * lisp/emacs-lisp/thread.el: New package. * src/keyboard.c (read_char): Check for Qthread_event. (kbd_buffer_get_event, make_lispy_event): Handle THREAD_EVENT. (syms_of_keyboard): Declare Qthread_event. (keys_of_keyboard): Add thread-handle-event to special-event-map. * src/termhooks.h (enum event_kind): Add THREAD_EVENT. * src/thread.c: Include "keyboard.h". (poll_suppress_count) Don't declare extern. (Fthread_signal): Raise event if THREAD is the main thread. (Bug#32502) * test/src/thread-tests.el (thread): Require it. (threads-signal-main-thread): New test. 2018-08-30 Glenn Morris * configure.ac: Fix goofs in my recent ImageMagick change. 2018-08-30 Paul Eggert Pacify -Wdouble-promotion in ImageMagick code * src/image.c (imagemagick_load_image): Use double division, and eliminate a cast. This avoids a -Wdouble-promotion warning with GCC 7.3 on Ubuntu 18.04. 2018-08-29 Glenn Morris Merge from origin/emacs-26 2670cbf (origin/emacs-26) ; * configure.ac: Remove outdated comment (... 3b71bef admin.el: respect environment settings for makeinfo etc 3764ab4 * etc/PROBLEMS: New entry about GTK+ 3 crash with some X serv... 9d61344 Index profiler commands in elisp manual f088817 Fix math-imaginary-i check fca935e ; Let pre-commit git hook check merged in changes (Bug#29197) fe06fcc Avoid infinite hscrolling loops when line numbers are displayed 63e59c8 Avoid crashes in malformed defvar 785682c * configure.ac (emacs_config_features): Add GLIB, XDBE, XIM. 2695b7e * configure.ac: Doc fixes related to --with-xim. d0d162c Small checkdoc quoting fix (bug#32546) Conflicts: configure.ac 2018-08-29 Stefan Monnier * src/keymap.c: Make better use of access_keymap's functionality (Flookup_key): Allow `keymap' to be a list of keymaps. (Fcommand_remapping, Fkey_binding): Simplify accordingly. (shadow_lookup, describe_map_tree): Simplify. 2018-08-29 Michael Albinus Improve tramp-convert-file-attributes backward compatibility * lisp/net/tramp-sh.el (tramp-convert-file-attributes): Use `seconds-to-time' for {access, modification, status change} time. Simplify check for inode. * test/lisp/net/tramp-tests.el (tramp-test22-file-times): Use `seconds-to-time'. 2018-08-28 Glenn Morris * lisp/mail/emacsbug.el (report-emacs-bug--os-description): Add BSD. * lisp/mail/emacsbug.el (report-emacs-bug--os-description): Add MS Windows. 2018-08-28 Paul Eggert Improve (format "%g" bignum) precision * src/editfns.c (styled_format): When formatting bignums with floating-point conversions like %g, use long double if that would lose less information than double, which is what the code was already doing for fixnums. On Fedora 28 x86-64, for example, (format "%.100g" (1- (ash 1 64))) now yields "18446744073709551615" instead of the numerically incorrect "18446744073709549568". Also, fix a stray INTEGERP that can just be FIXNUMP, since bignums are not possible there. 2018-08-28 Paul Eggert Fix Fnatnump typos Problem reported by Glenn Morris in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00946.html * src/floatfns.c (Fexpt): * src/xselect.c (cons_to_x_long): Don't assume Lisp_Object values are scalars. 2018-08-28 Eli Zaretskii Fix a recent change * src/dispnew.c (sit_for): Don;t treat nil as zero. Reported by Glenn Morris . 2018-08-28 Michael Albinus Add bignum support in Tramp * lisp/net/tramp-adb.el (tramp-adb-handle-file-system-info): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-system-info): * lisp/net/tramp-sh.el (tramp-do-file-attributes-with-stat) (tramp-do-directory-files-and-attributes-with-stat) (tramp-sh-handle-file-system-info): * lisp/net/tramp-smb.el (tramp-smb-handle-file-system-info): Do not add "e0" to integers. * lisp/net/tramp-sh.el (tramp-perl-file-attributes) (tramp-convert-file-attributes): Do not use a consp for the inode if there is bignum support. 2018-08-27 Paul Eggert Improve bignum support for system types Use bignums when Emacs converts to and from system types like off_t for file sizes whose values can exceed fixnum range. Formerly, Emacs sometimes generted floats and sometimes ad-hoc conses of integers. Emacs still accepts floats and conses for these system types, in case some stray Lisp code is generating them, though this usage is obsolescent. * doc/lispref/files.texi (File Attributes): * doc/lispref/hash.texi (Defining Hash): * doc/lispref/nonascii.texi (Character Sets): * doc/lispref/os.texi (User Identification): * doc/lispref/processes.texi (System Processes): * etc/NEWS: Document changes. * src/bignum.c (mpz_set_uintmax, make_biguint) (mpz_set_uintmax_slow, bignum_to_intmax, bignum_to_uintmax): New functions. (mpz_set_intmax_slow): Implement via mpz_limbs_write, to avoid the need for an extra pass through a negative number. * src/charset.c (Fencode_char): * src/composite.h (LGLYPH_SET_CODE): * src/dired.c (file_attributes): * src/dosfns.c, src/w32.c (list_system_processes) (system_process_attributes): * src/editfns.c (init_editfns, Fuser_uid, Fuser_real_uid) (Fgroup_gid, Fgroup_real_gid, Femacs_pid): * src/emacs-module.c (check_vec_index): * src/fns.c (Fsafe_length): * src/process.c (record_deleted_pid, Fprocess_id): * src/sysdep.c (list_system_processes, system_process_attributes): * src/xselect.c (x_own_selection, selection_data_to_lisp_data): * src/xterm.c (set_wm_state): * src/inotify.c (inotifyevent_to_event, add_watch) (inotify_callback): If an integer is out of fixnum range, use a bignum instead of converting it to a float or a cons of integers. * src/coding.c (Fdefine_coding_system_internal): * src/frame.c (frame_windows_min_size) (x_set_frame_parameters): * src/fringe.c (Fdefine_fringe_bitmap): * src/nsterm.m (mouseDown:): * src/syntax.c (find_defun_start): * src/w32fns.c (x_set_undecorated, w32_createwindow) (w32_wnd_proc, Fx_create_frame, Fx_show_tip) (w32_console_toggle_lock_key): * src/w32inevt.c (key_event): * src/w32proc.c (Fw32_get_locale_info): Do not mishandle floats by treating their addresses as their values. * src/data.c (store_symval_forwarding): * src/gnutls.c (Fgnutls_error_fatalp, Fgnutls_error_string): * src/keyboard.c (command_loop_1, make_lispy_event): * src/lread.c (read_filtered_event, read1) (substitute_object_recurse): * src/window.c (Fcoordinates_in_window_p, Fwindow_at) (window_resize_apply, Fset_window_vscroll): * src/xdisp.c (handle_single_display_spec, try_scrolling) (redisplay_window, calc_pixel_width_or_height) (calc_line_height_property, on_hot_spot_p): * src/xfaces.c (check_lface_attrs): * src/xselect.c (x_get_local_selection, cons_to_x_long) (lisp_data_to_selection_data, clean_local_selection_data) (x_check_property_data, x_fill_property_data): (x_send_client_event): Do not reject bignums. * src/data.c (INTBIG_TO_LISP, intbig_to_lisp) (uintbig_to_lisp): Remove. All uses removed. * src/data.c (cons_to_unsigned, cons_to_signed): * src/dbusbind.c (xd_signature, xd_extract_signed) (xd_extract_unsigned): * src/dispnew.c (sit_for): * src/dosfns.c, src/w32.c (system_process_attributes): * src/editfns.c (Fuser_full_name): * src/fileio.c (file_offset): * src/fileio.c (write_region): * src/font.c (font_unparse_xlfd, font_open_for_lface, Fopen_font): * src/frame.c (x_set_screen_gamma): * src/frame.h (NUMVAL, FRAME_PIXEL_X_FROM_CANON_X) (FRAME_PIXEL_Y_FROM_CANON_Y): * src/image.c (parse_image_spec, x_edge_detection) (compute_image_size): * src/json.c (json_to_lisp): * src/lcms.c (PARSE_LAB_LIST_FIELD, Flcms_cie_de2000) (PARSE_XYZ_LIST_FIELD, PARSE_JCH_LIST_FIELD) (PARSE_JAB_LIST_FIELD, PARSE_VIEW_CONDITION_FLOAT) (Flcms_temp_to_white_point): * src/nsimage.m (ns_load_image, setSizeFromSpec): * src/process.c (Fsignal_process, handle_child_signal): * src/sysdep.c (system_process_attributes): * src/xdisp.c (calc_line_height_property): Handle bignums. * src/data.c (Fnumber_to_string): Use proper predicate name in signal if the argument is not a number. * src/lisp.h (make_uint): New function. (INT_TO_INTEGER): New macro. (FIXED_OR_FLOATP, CHECK_FIXNUM_OR_FLOAT) (CHECK_FIXNUM_OR_FLOAT_COERCE_MARKER, INTEGER_TO_CONS) (make_fixnum_or_float): Remove; no longer used. * src/nsfns.m, src/w32fns.c, src/xfns.c (Fx_create_frame): Reject floating-point min-width or min-height. * src/process.c (handle_child_signal): Do not worry about floating-point pids, as they are no longer generated. 2018-08-27 Paul Eggert Modularize bignums better * src/bignum.c, src/bignum.h: New files. Only modules that need to know how bignums are implemented should include bignum.h. Currently these are alloc.c, bignum.c (of course), data.c, emacs.c, emacs-module.c, floatfns.c, fns.c, print.c. * src/Makefile.in (base_obj): Add bignum.o. * src/alloc.c (make_bignum_str): Move to bignum.c. (make_number): Remove; replaced by bignum.c’s make_integer. All callers changed. * src/conf_post.h (ARG_NONNULL): New macro. * src/json.c (json_to_lisp): Use it. * src/data.c (Fnatnump): Move NATNUMP’s implementation here from lisp.h. * src/data.c (Fnumber_to_string): * src/editfns.c (styled_format): Move conversion of string to bignum to bignum_to_string, and call it here. * src/emacs-module.c (module_make_integer): * src/floatfns.c (Fabs): Simplify by using make_int. * src/emacs.c: Include bignum.h, to expand its inline fns. * src/floatfns.c (Ffloat): Simplify by using XFLOATINT. (rounding_driver): Simplify by using double_to_bignum. (rounddiv_q): Clarify use of temporaries. * src/lisp.h: Move decls that need to know bignum internals to bignum.h. Do not include gmp.h or mini-gmp.h; that is now bignum.h’s job. (GMP_NUM_BITS, struct Lisp_Bignum, XBIGNUM, mpz_set_intmax): Move to bignum.h. (make_int): New function. (NATNUMP): Remove; all callers changed to use Fnatnump. (XFLOATINT): If arg is a bignum, use bignum_to_double, so that bignum internals are not exposed here. * src/print.c (print_vectorlike): Use SAFE_ALLOCA to avoid the need for a record_unwind_protect_ptr. 2018-08-27 Glenn Morris * configure.ac, src/image.c: Tweak previous ImageMagick change. 2018-08-27 Karl Otness (tiny change) Support ImageMagick version 7 (bug#25967) * configure.ac, src/image.c: Add support for ImageMagick version 7. 2018-08-27 Paul Eggert Update from Gnulib * build-aux/config.sub, lib/intprops.h, lib/regex_internal.c: * lib/regex_internal.h, lib/unistd.in.h, m4/limits-h.m4: * m4/stdint.m4, m4/unistd_h.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2018-08-27 Alex Branham New commands bibtex-next/previous-entry (Bug#32378) * lisp/textmodes/bibtex.el (bibtex-next-entry) (bibtex-previous-entry): New commands. (bibtex-mode-map): Bind to to forward-paragraph and backward-paragraph. Add to menu under "Moving inside an Entry". 2018-08-27 Noam Postavsky shr: Allow skipping tags with aria-hidden (Bug#32348) * lisp/net/shr.el (shr-discard-aria-hidden): New option. (shr-descend): Suppress aria-hidden=true tags if it's set. * doc/misc/eww.texi (Advanced): Document shr-discard-aria-hidden. * etc/NEWS: Announce it. 2018-08-27 Noam Postavsky Allow setf of buffer-modified-p without argument (Bug#21201) * lisp/emacs-lisp/cl-lib.el (setf buffer-modified-p): Take current buffer if optional argument BUF is not passed. 2018-08-27 Alan Mackenzie CC Mode: Fix syntactic context of BOD sometimes being 'topmost-intro-cont This happened when the type of the previous function was a struct, etc., declaration. * lisp/progmodes/cc-mode.el (c-guess-basic-syntax CASE 5N): Check here (for 'topmost-intro-cont) that the first opening brace after BOD is the opening brace preceding the starting point. 2018-08-27 Alan Mackenzie c-where-wrt-brace-construct: deal with point following a struct's semicolon. More precisely, when point is right after the terminating semicolon of a construct like "struct foo { .... } bar;", the function must return 'at-function-end. * lisp/progmodes/cc-cmds.el (c-where-wrt-brace-construct): Surround an existing test for 'at-function-end with an `or' form, the other arm testing for being after the semicolon above. 2018-08-27 Gemini Lasswell Fix links in backtraces to work on advised built-ins (Bug#25393) * lisp/emacs-lisp/backtrace.el (backtrace--print-func-and-args): Make links to the original definition of advised functions. Handle the case when the function slot of the backtrace frame contains the definition of a built-in function. 2018-08-27 Michael Albinus Bump Tramp version to 2.4.1-pre * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.4.1-pre". * lisp/net/tramp.el: Add "Package-Requires" header. 2018-08-26 Glenn Morris Merge from origin/emacs-26 54fb383 (origin/emacs-26) Fix detection of freed emacs_values (Bug#32... 769d0cd ; Fix out-of-tree build for mod-test.so 9a1329e Avoid crashes with very wide TTY frames on MS-Windows 9a613d3 Prevent `modify-file-local-variable-prop-line' from adding ex... 624e7dc Update GNOME bugtracker URLs 51ef6d5 Clarify in the Emacs manual that ChangeLog files are not used 6e08019 Recognize codepage 65001 as a valid encoding 1a350d7 ; * etc/NEWS: Fix format of first lines of some entries. 22d1f53 Avoid compilation warning in nt/addpm.c 7bc9ce7 Fix duplicate custom group names in bibtex.el a9cf938 Fix outdated text in the Calc manual Conflicts: etc/NEWS etc/PROBLEMS src/emacs-module.c src/gtkutil.c src/image.c src/xterm.c test/Makefile.in 2018-08-26 Eli Zaretskii Fix a typo in alloc.c * src/alloc.c (Fmemory_use_counts): The list we return now has only 7 elements, not 8. (Bug#32531) 2018-08-26 Alan Mackenzie CC Mode: make c-display-defun-name work with a pointer return type. Fixes bug #32403. * lisp/progmodes/cc-cmds.el (c-in-function-trailer-p): No longer insist on c-beginning-of-decl-1 returning 'same. (c-where-wrt-brace-construct): Tighten up the test for looking at a symbol by excluding keywords. When point is after a }, do not return 'at-function-end for a struct/union/class/... (c-defun-name-1): Considerably simplify, by amalgamating the two cond arms which find structs etc., and by using functions like c-forward-declarator rather than the faulty analysis of the source by hand. 2018-08-26 Stefan Monnier * lisp/net/tramp.el: Add "Version" header. 2018-08-25 Paul Eggert Improve format-seconds accuracy * doc/lispref/os.texi (Time Parsing): It works with bignums. * lisp/calendar/time-date.el (format-seconds): Take the floor so that the resulting arithmetic is exact. 2018-08-25 Paul Eggert Prefer CONSP etc. to XTYPE * src/nsmenu.m (process_dialog:): (initFromContents:isQuestion:): Prefer CONSP (x) to XTYPE (x) == Lisp_Cons, and similarly for STRINGP (x). 2018-08-25 Paul Eggert Improve performance of CONSP, FIXNUMP, etc. Optimization opportunity noted by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00828.html On my platform (Fedora 28 x86-64, AMD Phenom II X4 910e, user+system time), this improved ‘make compile-always’ performance by 0.4% and shrank text size by a similar amount. * src/lisp.h (TAGGEDP, lisp_h_TAGGEDP): New macros and function. (lisp_h_CONSP, lisp_h_FLOATP, lisp_h_SYMBOLP) (lisp_h_VECTORLIKEP, make_lisp_ptr, STRINGP): Use them. (lisp_h_FIXNUMP): Use the same idea that lisp_h_TAGGEDP uses. 2018-08-23 Noam Postavsky Detect Chinese sudo password prompts (Bug#31075) * lisp/comint.el (comint-password-prompt-regexp): Allow text between the prompt prefix and password equivalent. * lisp/eshell/esh-mode.el (eshell-password-prompt-regexp): Accept some unicode alternatives to ":". * test/lisp/comint-tests.el (comint-testsuite-password-strings): Add test case. 2018-08-23 Noam Postavsky Fix comint-password-prompt-regexp The change from 2017-12-22 "Support French password prompts in shell" tried to allow nonbreaking space in addition to whitespace syntax characters around the colon, but used square brackets which cause "\s" to be interpreted literally rather than as a backslash construct. * lisp/comint.el (comint-password-prompt-regexp): Use [[:blank:]] instead, which also has the benefit of not relying on the major mode's whitespace syntax setting. * test/lisp/comint-tests.el (comint-testsuite-password-strings): Update French localized entry to have a space before the colon, as reported in Bug#29729. 2018-08-23 Charles A. Roelli Replace 2 checks in rmailsum.el with 'pos-visible-in-window-p' * lisp/mail/rmailsum.el (rmail-summary-scroll-msg-up) (rmail-summary-scroll-msg-down): Use 'pos-visible-in-window-p' instead of checking the condition by hand. 2018-08-23 Lars Ingebrigtsen Fix binding error in nnfolder-read-folder * lisp/gnus/nnfolder.el (nnfolder-read-folder): Fix previous checkin that left `active' unbound before using it. 2018-08-22 Paul Eggert Prune most-positive-fixnum from Lisp source I looked through all instances of most-negative-fixnum and most-positive-fixnum in the Lisp source code, and when it was easy I removed assumptions that integers fit in fixnums. The remaining instances are either nontrivial to fix, or are inherent to the algorithm. * lisp/arc-mode.el (archive-l-e): Do not convert to float, since we have bignums now. All uses changed. * lisp/calc/calc.el (math-bignum): Don’t special-case most-negative-fixnum. * lisp/calendar/parse-time.el (parse-time-string): * lisp/emacs-lisp/edebug.el (edebug-read-special): * lisp/emacs-lisp/package.el (package--remove-hidden): * lisp/gnus/nnfolder.el (nnfolder-read-folder): * lisp/international/mule-util.el (filepos-to-bufferpos--dos): * lisp/menu-bar.el (menu-bar-update-buffers): * lisp/net/rcirc.el (rcirc-handler-317): * lisp/org/org-agenda.el (org-cmp-ts): * lisp/window.el (window--resize-child-windows): Avoid arbitrary limit to most-positive-fixnum or to most-negative-fixnum. * lisp/calendar/time-date.el (days-to-time): * lisp/erc/erc-dcc.el (erc-unpack-int): Don’t worry about integer overflow. * lisp/cedet/semantic/wisent/comp.el (wisent-BITS-PER-WORD): * lisp/gnus/message.el (message-unique-id): * lisp/org/org-footnote.el (org-footnote-new): Simplify. * lisp/erc/erc-dcc.el (erc-most-positive-int-bytes) (erc-most-positive-int-msb): Remove; no longer needed. * lisp/net/imap.el (imap-string-to-integer): Remove; unused. * lisp/org/org-element.el (org-element--cache-generate-key): Document fixnum limitation. 2018-08-22 Paul Eggert Fix bugs when rounding to bignums Also, since Emacs historically reported a range error when rounding operations overflowed, do that consistently for all bignum overflows. * doc/lispref/errors.texi (Standard Errors): * doc/lispref/numbers.texi (Integer Basics): Document range errors. * src/alloc.c (range_error): Rename from integer_overflow. All uses changed. * src/floatfns.c (rounding_driver): When the result of a floating point rounding operation does not fit into a fixnum, put it into a bignum instead of always signaling an range error. * test/src/floatfns-tests.el (divide-extreme-sign): These tests now return the mathematically-correct answer instead of signaling an error. (bignum-round): Check that integers round to themselves. 2018-08-22 Paul Eggert Undo part of previous change Issue spotted by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00758.html * lisp/vc/vc-hg.el (vc-hg--raw-dirstate-search): Go back to using eq on flen, since it must be a fixnum. 2018-08-22 Paul Eggert Make vc-hg safe for bignums * lisp/vc/vc-hg.el (vc-hg--raw-dirstate-search): Use eql, not eq, on integers that could be bignums. (vc-hg--time-to-integer): Rename from vc-hg--time-to-fixnum. All uses changed. (vc-hg-state-fast): Remove test that 32-bit unsigned values must be fixnums. 2018-08-21 Paul Eggert * src/buffer.h (DECODE_POSITION): Remove; unused. 2018-08-21 Paul Eggert Add bignum support to floor, ceiling, etc. Problem reported by Andy Moreton (Bug#32463#35 (d)). * src/floatfns.c (rounding_driver): Change the signature of the integer rounder to use mpz_t rather than EMACS_INT. All uses changed. Support bignums. (ceiling2, floor2, truncate2, round2): Remove. All uses changed to rounddiv_q or to a GMP library function. (rounddiv_q): New function. * test/src/floatfns-tests.el (bignum-round): New test. 2018-08-21 Paul Eggert Move bignump, fixnump from C to Lisp * doc/lispref/objects.texi (Integer Type): Mention most-negative-fixnum and most-positive-fixnum as alternatives to fixnump and bignump. * lisp/subr.el (fixnump, bignump): Now written in Lisp. * src/data.c (Ffixnump, Fbignump): No longer written in C, as these new functions are not crucial for performance. 2018-08-21 Paul Eggert Fix assertion failure when reading 'BIGNUM.' Problem reported by Stefan Monnier (Bug#32476). * src/lread.c (string_to_number): Don't pass leading "+" or trailing "." or junk to make_bignum_str. * test/src/lread-tests.el (lread-string-to-number-trailing-dot): New test. 2018-08-21 Paul Eggert Audit use of lsh and fix glitches I audited use of lsh in the Lisp source code, and fixed the glitches that I found. While I was at it, I replaced uses of lsh with ash when either will do. Replacement is OK when either argument is known to be nonnegative, or when only the low-order bits of the result matter, and is a (minor) win since ash is a bit more solid than lsh nowadays, and is a bit faster. * lisp/calc/calc-ext.el (math-check-fixnum): Prefer most-positive-fixnum to (lsh -1 -1). * lisp/vc/vc-hg.el (vc-hg-state-fast): When testing fixnum width, prefer (zerop (ash most-positive-fixnum -32)) to (zerop (lsh -1 32)) (Bug#32485#11). * lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode): Tighten sanity-check for bytecode overflow, by checking that the result of (ash pc -8) is nonnegative. Formerly this check was not needed since lsh was used and the number overflowed differently. * lisp/net/dns.el (dns-write): Fix some obvious sign typos in shift counts. Evidently this part of the code has never been exercised. * lisp/progmodes/hideif.el (hif-shiftleft, hif-shiftright): * lisp/term/common-win.el (x-setup-function-keys): Simplify. * admin/unidata/unidata-gen.el, admin/unidata/uvs.el: * doc/lispref/keymaps.texi, doc/lispref/syntax.texi: * doc/misc/calc.texi, doc/misc/cl.texi, etc/NEWS.19: * lisp/arc-mode.el, lisp/calc/calc-bin.el, lisp/calc/calc-comb.el: * lisp/calc/calc-ext.el, lisp/calc/calc-math.el: * lisp/cedet/semantic/wisent/comp.el, lisp/composite.el: * lisp/disp-table.el, lisp/dos-fns.el, lisp/edmacro.el: * lisp/emacs-lisp/bindat.el, lisp/emacs-lisp/byte-opt.el: * lisp/emacs-lisp/bytecomp.el, lisp/emacs-lisp/cl-extra.el: * lisp/erc/erc-dcc.el, lisp/facemenu.el, lisp/gnus/message.el: * lisp/gnus/nndoc.el, lisp/gnus/nnmaildir.el, lisp/image.el: * lisp/international/ccl.el, lisp/international/fontset.el: * lisp/international/mule-cmds.el, lisp/international/mule.el: * lisp/json.el, lisp/mail/binhex.el, lisp/mail/rmail.el: * lisp/mail/uudecode.el, lisp/md4.el, lisp/net/dns.el: * lisp/net/ntlm.el, lisp/net/sasl.el, lisp/net/socks.el: * lisp/net/tramp.el, lisp/obsolete/levents.el: * lisp/obsolete/pgg-parse.el, lisp/org/org.el: * lisp/org/ox-publish.el, lisp/progmodes/cc-defs.el: * lisp/progmodes/ebnf2ps.el, lisp/progmodes/hideif.el: * lisp/ps-bdf.el, lisp/ps-print.el, lisp/simple.el: * lisp/tar-mode.el, lisp/term/common-win.el: * lisp/term/tty-colors.el, lisp/term/xterm.el, lisp/vc/vc-git.el: * lisp/vc/vc-hg.el, lisp/x-dnd.el, test/src/data-tests.el: Prefer ash to lsh when either will do. 2018-08-21 Paul Eggert Fix bignum bugs with nth, elt, = * src/bytecode.c (exec_byte_code): Support bignums when implementing nth, elt, and =. * src/lisp.h (SMALL_LIST_LEN_MAX): New constant. * src/fns.c (Fnthcdr): Use it. (Felt): Do not reject bignum indexes. 2018-08-21 Glenn Morris Restore compatibility with Texinfo < 6 * doc/lispref/numbers.texi (Integer Basics, Bitwise Operations): Don't use Texinfo 6.0's "@sup" command. 2018-08-21 Eli Zaretskii Improve documentation of 'integer-width' * etc/NEWS: Minor rewording of the recent addition. * doc/lispref/numbers.texi (Bitwise Operations): Use @dots{} for ellipsis. Improve indexing. 2018-08-21 Paul Eggert Avoid libgmp aborts by imposing limits libgmp calls ‘abort’ when given numbers too big for its internal data structures. The numeric limit is large and platform-dependent; with 64-bit GMP 6.1.2 it is around 2**2**37. Work around the problem by refusing to call libgmp functions with arguments that would cause an abort. With luck libgmp will have a better way to do this in the future. Also, introduce a variable integer-width that lets the user control how large bignums can be. This currently defaults to 2**16, i.e., it allows bignums up to 2**2**16. This should be enough for ordinary computation, and should help Emacs to avoid thrashing or hanging. Problem noted by Pip Cet (Bug#32463#71). * doc/lispref/numbers.texi, etc/NEWS: Document recent bignum changes, including this one. Improve documentation for bitwise operations, in the light of bignums. * src/alloc.c (make_number): Enforce integer-width. (integer_overflow): New function. (xrealloc_for_gmp, xfree_for_gmp): Move here from emacs.c, as it's memory allocation. (init_alloc): Initialize GMP here, rather than in emacs.c. (integer_width): New var. * src/data.c (GMP_NLIMBS_MAX, NLIMBS_LIMIT): New constants. (emacs_mpz_size, emacs_mpz_mul) (emacs_mpz_mul_2exp, emacs_mpz_pow_ui): New functions. (arith_driver, Fash, expt_integer): Use them. (expt_integer): New function, containing integer code that was out of place in floatfns.c. (check_bignum_size, xmalloc_for_gmp): Remove. * src/emacs.c (main): Do not initialize GMP here. * src/floatfns.c (Fexpt): Use expt_integer, which now contains integer code moved from here. * src/lisp.h (GMP_NUMB_BITS): Define if gmp.h doesn’t. 2018-08-21 Paul Eggert Fix glitches introduced by nthcdr changes * src/fns.c (Fnthcdr): Fix recently-introduced bug when nthcdr is supposed to yield a non-nil non-cons. Reported by Glenn Morris and by Pip Cet here: https://lists.gnu.org/r/emacs-devel/2018-08/msg00699.html https://lists.gnu.org/r/emacs-devel/2018-08/msg00708.html Speed up nthcdr for small N, as suggested by Pip Cet here: https://lists.gnu.org/r/emacs-devel/2018-08/msg00707.html * test/src/fns-tests.el (test-nthcdr-simple): New test. 2018-08-20 Paul Eggert Speed up (nthcdr N L) when L is circular Also, fix bug when N is a positive bignum, a problem reported by Eli Zaretskii and Pip Cet in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00690.html * src/fns.c (Fnthcdr): If a cycle is found, reduce the count modulo the cycle length before continuing. This reduces the worst-case cost of (nthcdr N L) from N to min(N, C) where C is the number of distinct cdrs of L. Reducing modulo the cycle length also allows us to do arithmetic with machine words instead of with GMP. * test/src/fns-tests.el (test-nthcdr-circular): New test. 2018-08-20 Andy Moreton Define get_proc_addr in Cygwin-w32 build * src/w32common.h (get_proc_addr, DEF_DLL_FN, LOAD_DLL_FN): Move definitions here from src/w32.h. * src/decompress.c [WINDOWSNT]: * src/gnutls.c [WINDOWSNT]: * src/image.c [WINDOWSNT]: * src/json.c [WINDOWSNT]: * src/lcms.c [WINDOWSNT]: * src/w32font.c [WINDOWSNT]: * src/w32uniscribe.c: * src/xml.c [WINDOWSNT]: Include w32common.h. 2018-08-20 Paul Eggert nthcdr now works with bignums Problem reported by Karl Fogel in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00671.html * src/fns.c (Fnthcdr): Support bignum counts. 2018-08-19 Paul Eggert Fix expt signedness bug --without-wide-int Problem reported by Federico in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00619.html * src/floatfns.c (Fexpt): Use TYPE_RANGED_FIXNUMP, not RANGED_FIXNUMP, to fix bug with unsigned comparison on platforms built --without-wide-int. 2018-08-19 Stefan Monnier * lisp/progmodes/cc-mode.el: Add version header 2018-08-19 Paul Eggert Add bignum support to expt Problem and initial solution reported by Andy Moreton in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00503.html * doc/lispref/numbers.texi (Math Functions): expt integer overflow no longer causes truncation; it now signals an error since bignum overflow is a big deal. * src/floatfns.c (Fexpt): Support bignum arguments. * test/src/floatfns-tests.el (bignum-expt): New test. 2018-08-18 Paul Eggert Fix bug with ‘mod’ and float+bignum Problem reported by Andy Moreton in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00442.html * src/floatfns.c (fmod_float): Work even if an arg is a bignum. * test/src/floatfns-tests.el (bignum-mod): New test. 2018-08-18 Paul Eggert Update from Gnulib This incorporates: 2018-08-18 Avoid -Wcast-function-type warnings from casts * build-aux/config.sub, lib/gettimeofday.c: Copy from Gnulib. 2018-08-18 Paul Eggert Tweak integer division * src/data.c (arith_driver): Reorder to remove unnecessary FIXNUMP. Tighten test for whether to convert the divisor from fixnum to mpz_t. Simplify. 2018-08-18 Paul Eggert Simplify float_arith_driver * src/data.c (float_arith_driver): Simplify, as we needn’t worry about that 30-year-old compiler bug any more. 2018-08-18 Paul Eggert Minor fixups for intmax_t→mpz_t conversion * src/alloc.c (mpz_set_intmax_slow): Tighten assertion. Work even in the unlikely case where libgmp uses nails. * src/data.c (FIXNUMS_FIT_IN_LONG): New constant. (arith_driver): Use it to tighten compile-time checks. * src/lisp.h (mpz_set_intmax): Do not assume that converting an out-of-range value to ‘long’ is harmless, as it might raise a signal. Use simpler expression; compiler can optimize. 2018-08-18 Paul Eggert Improve --with-wide-int mpz_t→fixnum conversion These tuneups and minor simplifications should affect only platforms with EMACS_INT wider than ‘long’. * src/alloc.c (make_number): If the number fits in long but not in fixnum, do not attempt to convert to fixnum again. Tighten the compile-time check for whether the second attempt is worth trying, from sizeof (long) < sizeof (EMACS_INT) to LONG_WIDTH < FIXNUM_BITS. Do not bother computing the sign of the value to tighten the bounds for whether to try the second attempt, as it’s not worth the effort. Do not call mpz_size, which is unnecessary since the number of bits is already known and the loop can iterate over a shift count instead. Avoid unnecessary casts. Use + instead of | where either will do, as + is typically better for optimization. Improve mpz_t to fixnum when --with-wide-int * src/alloc.c (make_number): Avoid undefined behavior when shifting an EMACS_UINT by more than EMACS_UINT_WIDTH bits. Check for integer overflow when shifting. 2018-08-18 Paul Eggert Improve bignum comparison (Bug#32463#50) * src/data.c (isnan): Remove, as we can assume C99. (bignumcompare): Remove, folding its functionality into arithcompare. (arithcompare): Compare bignums directly here. Fix bugs when comparing NaNs to bignums. When comparing a bignum to a fixnum, just look at the bignum’s sign, as that’s all that is needed. Decrease scope of locals when this is easy. * test/src/data-tests.el (data-tests-bignum): Test bignum vs NaN. 2018-08-18 Paul Eggert Document that ‘random’ is limited to fixnums Problem reported by Pip Cet (Bug#32463#20). * doc/lispref/numbers.texi (Random Numbers): * src/fns.c (Frandom): Adjust doc. 2018-08-18 Paul Eggert Restore traditional lsh behavior on fixnums * doc/lispref/numbers.texi (Bitwise Operations): Document that the traditional (lsh A B) behavior is for fixnums, and that it is an error if A and B are both negative and A is a bignum. See Bug#32463. * lisp/subr.el (lsh): New function, moved here from src/data.c. * src/data.c (ash_lsh_impl): Remove, moving body into Fash since it’s the only caller now. (Fash): Check for out-of-range counts. If COUNT is zero, return first argument instead of going through libgmp. Omit lsh code since lsh is now done in Lisp. Add code for shifting fixnums right, to avoid a round trip through libgmp. (Flsh): Remove; moved to lisp/subr.el. * test/lisp/international/ccl-tests.el (shift): Test for traditional lsh behavior, instead of assuming lsh is like ash when bignums are present. * test/src/data-tests.el (data-tests-logand) (data-tests-logior, data-tests-logxor, data-tests-ash-lsh): New tests. 2018-08-17 Eli Zaretskii Avoid compilation warning in w32fns.c * src/w32fns.c (Fw32_read_registry): Avoid compiler warning regarding possible use of 'rootkey' without initializing it first. Reported by Andy Moreton . 2018-08-17 Paul Eggert Improve ‘abs’ performance * src/floatfns.c (Fabs): Improve performance by not copying the argument if it would eql the result. As a minor detail, don't assume fixnums are two’s complement. 2018-08-17 Eli Zaretskii Improve documentation of bignums * etc/NEWS: Enhance the announcement of bignums. * doc/lispref/numbers.texi (Integer Basics): Add a missing period. Reported by Basil L. Contovounesios . 2018-08-17 Andy Moreton Pacify -Wcast-function-type warnings in GCC 8.1 * src/image.c: Move attributes into DEF_DLL_FN call. * src/dynlib.c (dynlib_addr): Use get_proc_addr. * src/w32.h: (get_proc_addr): New function. (LOAD_DLL_FN): Use it. (DEF_DLL_FN): Allow function attributes after argument list. Add function pointer type used by LOAD_DLL_FN. * src/w32.c (open_process_token, get_token_information) (lookup_account_sid, get_sid_sub_authority) (get_sid_sub_authority_count, get_security_info) (get_file_security, set_file_security) (set_named_security_info) (get_security_descriptor_owner, get_security_descriptor_group) (get_security_descriptor_dacl, is_valid_sid, equal_sid) (get_length_sid, copy_sid, get_native_system_info) (get_system_times, create_symbolic_link) (is_valid_security_descriptor, convert_sd_to_sddl) (convert_sddl_to_sd, get_adapters_info, reg_open_key_ex_w) (reg_query_value_ex_w, expand_environment_strings_w) (init_environment, create_toolhelp32_snapshot) (process32_first, process32_next, open_thread_token) (impersonate_self, revert_to_self, get_process_memory_info) (get_process_working_set_size, global_memory_status) (global_memory_status_ex, init_winsock) (maybe_load_unicows_dll, globals_of_w32): Use get_proc_addr. * src/w32fns.c (setup_w32_kbdhook, Ffile_system_info) (get_dll_version, w32_reset_stack_overflow_guard) (w32_backtrace, globals_of_w32fns): Use get_proc_addr. * src/w32font.c (get_outline_metrics_w, get_text_metrics_w) (get_glyph_outline_w, get_char_width_32_w): Use get_proc_addr. * src/w32heap.c (init_heap): Use get_proc_addr. * src/w32menu.c (globals_of_w32menu): Use get_proc_addr. * src/w32proc.c (init_timers, sys_kill, w32_compare_strings): Use get_proc_addr. * src/w32uniscribe.c (syms_of_w32uniscribe): Use get_proc_addr. 2018-08-17 Allen Li Don't include text properties when making autoloads * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads): Ignore text properties when finding autoload defs. Otherwise, autoload generation is less deterministic, as the exact format of the generated autoloads depends on whether the files are visited in Emacs. (Bug#32395) 2018-08-17 Paul Eggert Fix problems with logxor etc. and fixnums These operations incorrectly treated negative fixnums as bignums greater than most-positive-fixnum. * src/alloc.c (mpz_set_intmax_slow): Avoid undefined behavior if signed unary negation overflows, while we’re in the neighborhood. (mpz_set_uintmax_slow): Remove. All uses removed. * src/data.c (arith_driver): Treat fixnums as signed, not unsigned, even for logical operations. * src/lisp.h (mpz_set_uintmax): Remove. All uses removed. * test/src/data-tests.el (data-tests-logand) (data-tests-logior, data-tests-logxor): New tests. 2018-08-16 Paul Eggert Reject outlandishly-wide bignums Do not allow bignums that are so wide that their log base 2 might not fit into a fixnum, as this will cause problems elsewhere. We already have a similar limitation for bool-vectors. * src/emacs.c (check_bignum_size, xmalloc_for_gmp): New function. (xrealloc_for_gmp): Check for too-large bignum. (main): Use xmalloc_for_gmp. 2018-08-16 Paul Eggert Speed up logcount on bignums * src/data.c (Flogcount): Speed up by using the mpz equivalent of ~X instead of -X-1. 2018-08-16 Michael Albinus Fix Bug#32454 * lisp/files.el (find-alternate-file): Handle the wildcards case. (Bug#32454) 2018-08-16 Ken Brown Pacify GCC with -Wunused-but-set-variable * src/unexcw.c (read_exe_header): (fixup_executable): (unexec): Specify the "unused" attribute for variables that are used only in assertions. 2018-08-15 Thomas Fitzsimmons EUDC: Add more BBDB >= 3 support * lisp/net/eudcb-bbdb.el: Declare BBDB >= 3 functions. (eudc-bbdb-field): Add translation from company to organization. (eudc-bbdb-extract-phones, eudc-bbdb-extract-addresses) (eudc-bbdb-format-record-as-result): Call BBDB >= 3 functions. 2018-08-15 Thomas Fitzsimmons EUDC: Remove XEmacs support * lisp/net/eudc.el (eudc-mode, eudc-install-menu): Remove XEmacs support. * lisp/net/eudc-hotlist.el (eudc-hotlist-mode) (eudc-hotlist-emacs-menu): Likewise. * lisp/net/eudc-bob.el (eudc-bob-toggle-inline-display) (eudc-bob-popup-menu, eudc-bob-generic-keymap) (eudc-bob-sound-keymap, eudc-bob-url-keymap) (eudc-bob-mail-keymap): Likewise. * etc/NEWS (EUDC): Mention removal of XEmacs support. 2018-08-15 Thomas Fitzsimmons EUDC: Shorten eudc-tools-menu autoload * lisp/net/eudc.el: Remove XEmacs support from eudc-tools-menu autoload. 2018-08-15 Thomas Fitzsimmons EUDC: Add commentary to eudc-bob.el * lisp/net/eudc-bob.el: Add commentary. 2018-08-14 Eli Zaretskii Improve documentation of last change * lisp/hi-lock.el (hi-lock-set-pattern, hi-lock-face-buffer): Improve the doc strings. (Bug#32365) * etc/NEWS: * doc/emacs/display.texi (Highlight Interactively): Clarify wording. 2018-08-14 Grégory Mounié (tiny change) Interactive Highlighting: prefix argument to select subexp * doc/emacs/display.texi (Highlight Interactively): * etc/NEWS: Document the change. * lisp/hi-lock.el (hi-lock-face-buffer, hi-lock-set-pattern): Use the prefix argument to highlight only the corresponding sub-expression of the regexp (Bug#32365). 2018-08-14 Paul Eggert Rename --without-mini-gmp to --with-libgmp * configure.ac (HAVE_GMP): Rename ‘configure’ option from --without-mini-gmp to --with-libgmp. All uses changed. * doc/lispref/numbers.texi (Predicates on Numbers): Large integers are always available. Clarify how eq works on them. 2018-08-14 Stephen Berman Fix last todo-edit-mode change * lisp/calendar/todo-mode.el (todo-edit-mode): For editing an item instead of the whole file, the current todo-file must be set from todo-global-current-todo-file. * test/lisp/calendar/todo-mode-tests.el (todo-test-current-file-in-edit-mode): New test. 2018-08-14 Stephen Berman Fix exiting from editing todo archive file (bug#32437) * lisp/calendar/todo-mode.el (todo-edit-file): Make the warning also suitable for Todo Archive mode, and add more space to it. (todo-edit-quit): On quitting editing an archive file, return to the Todo Archive mode buffer editing was invoked in. (todo-check-format): Display a warning instead of a message when the categories sexp isn't as expected. (todo-mode-external-set): Remove. (todo-edit-mode): Set buffer local values of todo-current-todo-file and todo-categories from the todo or archive file being edited. (todo-categories-mode): Set buffer local values of todo-current-todo-file and todo-categories as before but directly instead of using superfluous todo-mode-external-set function. * test/lisp/calendar/todo-mode-tests.el (todo-test-edit-quit): New test. 2018-08-14 Paul Eggert Remove more traces of misc (Bug#32405) Remove misc-objects-consed and the misc component of memory-use-count, since misc objects no longer exist. * doc/lispref/internals.texi, etc/NEWS: Mention this, and adjust better to recent removal of misc objects. * src/alloc.c (MEM_TYPE_MISC): Remove; no longer used. (Fmemory_use_counts): Omit misc count, since miscs no longer exist. (misc-objects-consed): Remove. 2018-08-14 Glenn Morris Merge from origin/emacs-26 34e75c1 Add comment about floating point test e73e683 Ibuffer: Add toggle ibuffer-do-toggle-lock 12f7116 Ibuffer: Detect correctly the buffers running a process 2018-08-14 Glenn Morris Merge from origin/emacs-26 614cc65 ; * lisp/simple.el (line-move-visual): Fix typo. d2ad4ba Do not consider external packages to be removable (Bug#27822) ec0995c * src/alloc.c: Remove obsolete comments. ec6f588 Better support utf-8-with-signature and utf-8-hfs in HTML eb026a8 Don't use -Wabi compiler option 2018-08-14 Paul Eggert Port recent changes to older GCC Problem reported by Glenn Morris in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00446.html * src/lisp.h (make_pointer_integer_unsafe): Port to older GCC. 2018-08-13 Paul Eggert Update doc strings for fixnum constants * src/data.c (most-positive-fixnum, most-negative-fixnum): Update doc strings in the light of fixnums. 2018-08-13 Paul Eggert Fix check for unsafe watch descriptor * src/lisp.h (make_pointer_integer_unsafe): New function. (make_pointer_integer): Use it. * src/gfilenotify.c (dir_monitor_callback): Omit redundant eassert. (Fgfile_add_watch): Signal an error instead of failing an assertion if the pointer does not work. 2018-08-13 Raimon Grau Add uuid as allowed thingatpt symbol (Bug#32372) * etc/NEWS: Mention changes in thingatpt.el. * lisp/thingatpt.el (thing-at-point-uuid-regexp): Add regexp for uuid. (top-level): Add 'bounds-of-thing-at-point' operation for 'uuid'. * test/lisp/thingatpt-tests.el: Add tests for uuid at point. 2018-08-12 Paul Eggert Pacify gcc -Og -Wuninitialized This addresses the -Og uninitialized variable warnings I ran into on Fedora 28, which uses 8.1.1 20180712 (Red Hat 8.1.1-5). It also changes some explicit initializations to UNINIT when the variable does not actually need to be initialized. * src/process.c (connect_network_socket): * src/sysdep.c (system_process_attributes): * src/xfns.c (x_real_pos_and_offsets): * src/xterm.c (get_current_wm_state) [USE_XCB]: Add UNINIT. * src/editfns.c (tzlookup): * src/fns.c (Fnconc): * src/font.c (font_parse_fcname): * src/frame.c (x_set_frame_parameters): Prefer UNINIT to explicit initialization. 2018-08-12 Paul Eggert * configure.ac (GMP_LIB): Set to -lgmp if --without-mini-gmp. 2018-08-12 Paul Eggert Port better to x86 -fexcess-precision=fast Problem reported by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00380.html * src/data.c (arithcompare): Work around incompatibility between gcc -fexcess-precision=fast and the C standard on x86, by capturing the results of floating-point comparisons before the excess precision spontaneously decays. Although this fix might not work in general, it does work here and is probably good enough for the platforms we care about. 2018-08-12 Stephen Berman Update and improve todo-mode item insertion and editing code * lisp/calendar/todo-mode.el (todo-insert-item--param-key-alist) (todo-insert-item--keyof, todo-insert-item--this-key) (todo-insert-item--keys-so-far, todo-insert-item--args) (todo-insert-item--argleft. todo-insert-item--argsleft) (todo-insert-item--newargsleft, todo-insert-item--apply-args) (todo-edit-item--param-key-alist, todo-edit-item--prompt) (todo-edit-item--date-param-key-alist) (todo-edit-done-item--param-key-alist): Remove. (todo-insert-item--next-param): Reimplement to take advantage of lexical binding. (todo-insert-item): Adjust to new implementation of the above. (todo-edit-item--next-key): Incorporate now removed global variables, adjust signature accordingly, update use of pcase. (todo-edit-item): Adjust to changed signature of the above. 2018-08-12 Paul Eggert Adjust .gdbinit to removal of misc objects * src/.gdbinit (xtype, xpr): Adjust. (xmisctype, xmiscfree): Remove. 2018-08-12 Paul Eggert Make mini-gmp safe for --enable-gcc-warnings * configure.ac (GMP_OBJ): When building mini-gmp, compile mini-gmp-emacs.c, not mini-gmp.c. * lib-src/etags.c (NDEBUG): Don't attempt to redefine, in case the builder compiles with -DNDEBUG. * src/conf_post.h (NDEBUG) [!ENABLE_CHECKING && !NDEBUG]: Define. This avoids bloat in mini-gmp-emacs.o. * src/mini-gmp-emacs.c: New file, which pacifies --enable-gcc-warnings. 2018-08-12 Paul Eggert Fix typo caught by zsh * lisp/Makefile.in (compile-clean): Fix typo; missing ";" (Bug#32423). 2018-08-12 João Távora jsonrpc-shutdown's cleanup also kills stderr buffer * lisp/jsonrpc.el (Version): Bump to 1.0.6 (jsonrpc-shutdown): Also kill stderr buffer 2018-08-12 João Távora Revert "Make jsonrpc-shutdown a noop if process isn't running" This reverts commit c580443325a3d071625185876a8f28e04793c625. It leads to situations where the sentinel hasn't run yet, which brings problems if the normal process isn't running, but the stderr pseudo-process still is. * lisp/jsonrpc.el (jsonrpc-shutdown): Always enter loop. 2018-08-12 Andreas Schwab Ensure no padding after union vectorlike_header Instead of increasing GCALIGNMENT align union vectorlike_header by adding a Lisp_Object member. * src/lisp.h (GCALIGNMENT): Revert last change. (union vectorlike_header): Add align member. (header_size): Verify the same as sizeof (union vectorlike_header) 2018-08-12 Andreas Schwab Avoid padding after union vectorlike_header The PSEUDOVECTORSIZE macro requires that the first member after union vectorlike_header has the same offset in all pseudo vector structures. * src/lisp.h (GCALIGNMENT) [!USE_LSB_TAG]: Use alignment of Lisp_Object. 2018-08-12 Paul Eggert New 'configure' arg --with-mini-gmp * configure.ac: It lets the builder override default of whther mini-gmp is used. Use AC_SEARCH_LIBS as per Autoconf manual. 2018-08-11 Paul Eggert Update from Gnulib This incorporates: 2018-08-11 verify: port 'assume' to traditional tools * build-aux/config.sub, lib/regcomp.c, lib/verify.h: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2018-08-11 Paul Eggert Remove stray union Lisp_Misc doc (Bug#32405#35). 2018-08-11 Paul Eggert Simplify mark_object for pseudovectors Suggested by Pip Cet (Bug#32405#14). * src/alloc.c (mark_object): Remove unnecessary special cases for PVEC_MARKER, PVEC_BOOL_VECTOR, PVEC_MISC_PTR, PVEC_USER_PTR, and PVEC_FINALIZER. change is to free up an enum Lisp_Type tag value, a scarce 2018-08-11 Paul Eggert Turn misc objects into pseudovectors Eliminate the category of miscellaneous objects, and turn all such objects into pseudovectors. The immediate motivation for this change is to free up an enum Lisp_Type tag value, a scarce resource that can be better used elsewhere. However, this change is worthwhile in its own right, as it improves performance slightly on my platform, 0.3% faster for 'make compile-always' on Fedora 28, and it simplifies the garbage collector and interpreter (Bug#32405). * doc/lispref/internals.texi (Garbage Collection): * etc/NEWS: Document change to garbage-collect return value. * src/alloc.c (total_markers, total_free_markers): (union aligned_Lisp_Misc, MARKER_BLOCK_SIZE) (struct marker_block, marker_block, marker_block_index) (misc_free_list, allocate_misc, live_misc_holding) (live_misc_p, sweep_misc): * src/lisp.h (lisp_h_MARKERP, lisp_h_MISCP, MARKERP, MISCP) (Lisp_Misc, enum Lisp_Misc_Type, Lisp_Misc_Free) (Lisp_Misc_Marker, Lisp_Misc_Overlay, Lisp_Misc_Finalizer) (Lisp_Misc_Ptr, Lisp_Misc_User_Ptr, Lisp_Misc_Limit) (Lisp_Misc_Bignum) (XSETMISC, struct Lisp_Misc_Any, XMISCANY, XMISCTYPE) (struct Lisp_Free, union Lisp_Misc, XMISC): Remove. All uses removed. (cleanup_vector): Clean up objects that were formerly misc and are now pseudovectors. (make_misc_ptr, build_overlay, Fmake_marker, build_marker) (make_bignum_str, make_number, make_pure_bignum) (make_user_ptr, Fmake_finalizer): Build as pseudovectors, not as misc objects. (mark_finalizer_list, queue_doomed_finalizers) (compact_undo_list, mark_overlay, mark_object) (unchain_dead_markers): Mark as vector-like objects, not as misc objects. (mark_maybe_object, mark_maybe_pointer, valid_lisp_object_p) (total_bytes_of_live_objects, survives_gc_p): * src/fns.c (sxhash): No need to worry about misc objects. (garbage_collect_1): Do not generate a 'misc' component. (syms_of_alloc): No need for 'misc' symbol. * src/buffer.c (overlays_at, overlays_in, overlay_touches_p) (overlay_strings, recenter_overlay_lists) (fix_start_end_in_overlays, fix_overlays_before) (Foverlay_lists, report_overlay_modification) (evaporate_overlays): * src/editfns.c (overlays_around): * src/data.c (Ftype_of): * src/fns.c (internal_equal): * src/lisp.h (mint_ptrp, xmint_pointer, FINALIZERP) (XFINALIZER, MARKERP, XMARKER, OVERLAYP, XOVERLAY, USER_PTRP) (XUSER_PTR, BIGNUMP, XBIGNUM): * src/print.c (print_vectorlike, print_object): * src/undo.c (record_marker_adjustments): * src/xdisp.c (load_overlay_strings): Formerly misc objects are now pseudovectors. * src/lisp.h (PVEC_MARKER, PVEC_OVERLAY, PVEC_FINALIZER) (PVEC_BIGNUM, PVEC_MISC_PTR, PVEC_USER_PTR): New constants, replacing their misc versions. All uses changed. (struct Lisp_Marker, struct Lisp_Overlay, struct Lisp_Misc_Ptr) (struct Lisp_Bignum, struct Lisp_User_Ptr, struct Lisp_Finalizer): Make usable as a pseudovector by using a pseudovector header, replacing any DIY components, and putting Lisp_Object members first. All uses changed. 2018-08-11 Paul Eggert Pacify Oracle Studio 12.6 * src/xfns.c (Fx_frame_restack): * src/xterm.c (x_io_error_quitter): Omit unreachable code. 2018-08-11 Paul Eggert Reject old libgmp that lack mpz_roinit_n * configure.ac (HAVE_GMP): Port to RHEL 6.9, which has libgmp 3.5, which predates mpz_roinit_n. 2018-08-11 Tom Tromey Merge branch 'feature/bignum' 2018-08-11 Michael Albinus Fix Bug#32226, hopefully * test/lisp/shadowfile-tests.el: Set Tramp variables for hydra. 2018-08-11 João Távora Fix blunder in last commit for lisp/jsonrpc.el * lisp/jsonrpc.el (jsonrpc-shutdown): Use jsonrpc--process. 2018-08-11 João Távora Add option to cleanup buffers to jsonrpc-shutdown * lisp/jsonrpc.el (Version): Bump to 1.0.5 (jsonrpc-shutdown): Add an option to cleanup process buffer. 2018-08-11 João Távora * lisp/jsonrpc.el (jsonrpc-request): Clarify comment. 2018-08-11 João Távora Make jsonrpc-shutdown a noop if process isn't running * lisp/jsonrpc.el (Version): Bump to 1.0.4 (jsonrpc-shutdown): Noop if server isn't running. 2018-08-11 Andy Moreton Avoid calling vc backend if 'vc-display-status' is nil * lisp/vc/vc-hooks.el (vc-mode-line): Avoid calling VC backend if 'vc-display-status' is nil. (Bug#32225) 2018-08-11 Eli Zaretskii Give auto-save-no-message a proper version attribute * lisp/cus-start.el (standard): Give 'auto-save-no-message' the proper version attribute. (Bug#31039) 2018-08-11 Federico Tedin Add variable auto-save-no-message * src/keyboard.c (auto-save-no-message): New variable, allows suppressing auto-saving message. * lisp/cus-start.el (standard): Add 'auto-save-no-message' variable. * doc/emacs/files.texi (Auto Save): Document 'auto-save-no-message'. * etc/NEWS: Mention 'auto-save-no-message'. (Bug#31039) 2018-08-11 Eli Zaretskii Reinstate the 'tis620-2533' character set This is a partial revert of "Make 'tis620-2533' character set be an alias for 'thai-iso8859-11'" commit from Jul 28, 2018. * lisp/international/mule-conf.el (tis620-2533): No longer an alias for thai-iso8859-11. Instead, reinstate the original definition of tis620-2533, but without eight-bit-control in the :superset attribute. For the details, see http://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00117.html and the surrounding discussions. * lisp/international/fontset.el (font-encoding-alist) (font-encoding-charset-alist): Reinstate tis620-2533 charset. * lisp/language/thai.el (thai-tis620): Restore the original :charset-list. ("Thai"): Restore the original nonascii-translation. * lisp/w32-fns.el: Use tis620-2533 instead of thai-iso8859-11. 2018-08-11 Michael Albinus Editorial changes in tramp.texi * doc/misc/tramp.texi (Bug Reports): Tramp buffers shall be appended as attachments to bug reports. (Frequently Asked Questions): New item, determining remote buffers. 2018-08-11 Nikolaus Rath Make nnimap support IMAP namespaces * lisp/gnus/nnimap.el (nnimap-use-namespaces): Introduce new server variable. (nnimap-group-to-imap, nnimap-get-groups): Transform IMAP group names to Gnus group name by stripping / prefixing personal namespace prefix. (nnimap-open-connection-1): Ask server for namespaces and store them. * lisp/gnus/nnimap.el (nnimap-request-group-scan) (nnimap-request-create-group, nnimap-request-delete-group) (nnimap-request-rename-group, nnimap-request-move-article) (nnimap-process-expiry-targets) (nnimap-request-update-group-status) (nnimap-request-accept-article, nnimap-request-list) (nnimap-retrieve-group-data-early, nnimap-change-group) (nnimap-split-incoming-mail): Use nnimap-group-to-imap. (nnimap-group-to-imap): New function to map Gnus group names to IMAP folder names. (Bug#21057) 2018-08-11 Eli Zaretskii Improve error message when Hunspell dictionaries are misconfigured * lisp/textmodes/ispell.el (ispell-find-hunspell-dictionaries): Produce a meaningful error message if Hunspell dictionaries are misconfigured. (Bug#32319) 2018-08-10 Glenn Morris Merge from origin/emacs-26 71c92d8 Fix copying text properties by 'format' 96be6b6 Improve error messages regarding initial-buffer-choice (Bug#2... 00fb127 * test/lisp/wdired-tests.el (wdired-test-unfinished-edit-01):... Conflicts: lisp/startup.el 2018-08-10 Glenn Morris Merge from origin/emacs-26 5afbf62 Fix emacsclient check for term.el buffer (Bug#21041) 5132a58 Improve documentation of 'set-fontset-font' cd90325 Improve documentation of M-? 155a885 Reinterpret Esperanto characters in iso-transl as iso-8859-3. a0ef733 Fix Flyspell mode when several languages are mixed in a buffer 2018-08-10 Michael Albinus Another try to fix Bug#32226 * test/lisp/shadowfile-tests.el (shadow-test06-literal-groups) (shadow-test07-regexp-groups, shadow-test08-shadow-todo) (shadow-test09-shadow-copy-files): Use `set-visited-file-name' instead of setting the value in `buffer-file-name' directly. (Bug#32226) 2018-08-09 João Távora Allow completely disabling event logging in jsonrpc.el Pretty printing the event sexp can be very slow when very big messages are involved. * lisp/jsonrpc.el (Version): Bump to 1.0.3 (jsonrpc-connection): Tweak docstring for jsonrpc--event-buffer-scrollback-size. (jsonrpc--log-event): Only log if max size is positive. 2018-08-09 Tom Tromey Fix up for bignums after merge from trunk * src/character.c (char_width): Use XFIXNUM. * src/editfns.c (styled_format): Use XFIXNUM, XUFIXNUM. * src/fns.c (Fproper_list_p): Use make_fixnum. 2018-08-09 Tom Tromey Merge remote-tracking branch 'origin/master' into feature/bignum 2018-08-09 Tom Tromey Use mpz_sgn rather than comparisons against 0 * src/data.c (Fmod): Use mpz_sgn. * src/lisp.h (NATNUMP): Use mpz_sgn. 2018-08-09 Andy Moreton Do not use GMP_NUMB_BITS * src/alloc.c (make_number): Use mp_bits_per_limb, not GMP_NUMB_BITS. 2018-08-09 Charles A. Roelli Update src/{ns,mac}*.m to use bignum-compatible macros * src/nsterm.m: * src/nsselect.m: * src/nsmenu.m: * src/nsimage.m: * src/nsfont.m: * src/nsfns.m: * src/macfont.m: Replace "make_number" -> "make_fixnum", "XINT" -> "XFIXNUM", "XFASTINT" -> "XFIXNAT", "TYPE_RANGED_INTEGERP" -> "TYPE_RANGED_FIXNUMP", "RANGED_INTEGERP" -> "RANGED_FIXNUMP", "CHECK_NATNUM" -> "CHECK_FIXNAT", "CHECK_NUMBER" -> "CHECK_FIXNUM", "INTEGERP" -> "FIXNUMP", "NUMBERP" -> "FIXED_OR_FLOATP", as done in the following changes: 2018-07-06 Rename integerp->fixnum, etc, in preparation for bignums (42fe787b) 2018-08-07 More macro renamings for bignum (d1ec3a0a) 2018-08-09 Michael Albinus Fix Bug#32304 * test/lisp/net/tramp-tests.el (tramp-test45-unload): Handle tramp-archive autoloaded objects. Remove tag :unstable. 2018-08-09 João Távora Trim JSONRPC events buffer when it's too large * lisp/jsonrpc.el (Version): Bump to 1.0.2 (jsonrpc--events-buffer-scrollback-size): New jsonrpc-connection slot. (jsonrpc--log-event): Use it to trim buffer. 2018-08-09 João Távora Synchronous JSONRPC requests can be cancelled on user input This allows building more responsive interfaces, such as a snappier completion backend. * lisp/jsonrpc.el (Version): Bump to 1.0.1 (jsonrpc-connection-receive): Don't warn when continuation isn't found. (jsonrpc-request): Add parameters CANCEL-ON-INPUT and CANCEL-ON-INPUT-RETVAL. 2018-08-08 Paul Eggert Minor pseudovector allocation cleanups * src/alloc.c (VECTOR_BLOCK_SIZE, VECTOR_BLOCK_BYTES) (VBLOCK_BYTES_MIN, VBLOCK_BYTES_MAX, VECTOR_MAX_FREE_LIST_INDEX): Prefer enums to macros where either will do. (allocate_vector_from_block): Arg is ptrdiff_t, not size_t. Use eassume instead of eassert. (PSEUDOVEC_STRUCT): New macro, which verifies the already-existing assumption that the vector-like objects are small. (cleanup_vector): Use it. Use if-then-else systematically; this lets GCC do a bit better job. 2018-08-08 Paul Eggert * src/alloc.c (VBLOCK_BYTES_MAX): Use vroundup_ct, not vroundup, so that can be used in static assertions. 2018-08-08 Tom Tromey Fix mod-test-sum-test for bignums * test/src/emacs-module-tests.el (mod-test-sum-test): Update for bignums. 2018-08-08 Tom Tromey Handle leading "+" when converting string to bignum * src/lread.c (string_to_number): Skip leading "+" when calling make_bignum_str. 2018-08-08 Tom Tromey Use mpz_import in mpz_set_uintmax_slow * src/alloc.c (mpz_set_uintmax_slow): Use mpz_import. 2018-08-08 Tom Tromey Make purecopy work for bignums * src/alloc.c (make_pure_bignum): New function. (purecopy): Use it. 2018-08-08 Michael Albinus Fix problems in tramp-tests * test/lisp/net/tramp-tests.el (tramp-test45-unload): Filter out tramp-archive objects. (Bug#32304) * test/lisp/net/tramp-tests.el (tramp-test43-auto-load): Add skip condition. (Bug#32304) (tramp-test43-unload): Tag as :unstable. 2018-08-08 Michael Albinus Filter out tramp-archive objects in tramp-test45-unload * test/lisp/net/tramp-tests.el (tramp-test45-unload): Filter out tramp-archive objects. (Bug#32304) 2018-08-08 Michael Albinus Tag expensive tests in tramp-archive.el (Bug#30807) * test/lisp/net/tramp-archive-tests.el (tramp-archive-test44-auto-load) (tramp-archive-test44-delay-load): Rename. (tramp-archive-test07-file-exists-p) (tramp-archive-test08-file-local-copy) (tramp-archive-test09-insert-file-contents) (tramp-archive-test11-copy-file) (tramp-archive-test15-copy-directory) (tramp-archive-test16-directory-files) (tramp-archive-test17-insert-directory) (tramp-archive-test18-file-attributes) (tramp-archive-test19-directory-files-and-attributes) (tramp-archive-test20-file-modes) (tramp-archive-test21-file-links) (tramp-archive-test26-file-name-completion) (tramp-archive-test44-auto-load) (tramp-archive-test44-delay-load): Tag them as :expensive-test, because they run longer than 10 seconds. (Bug#30807) 2018-08-07 Tom Tromey More macro renamings for bignum * src/alloc.c, src/bidi.c, src/buffer.c, src/buffer.h, src/bytecode.c, src/callint.c, src/callproc.c, src/casefiddle.c, src/casetab.c, src/category.c, src/ccl.c, src/character.c, src/character.h, src/charset.c, src/charset.h, src/chartab.c, src/cmds.c, src/coding.c, src/composite.c, src/composite.h, src/data.c, src/dbusbind.c, src/decompress.c, src/dired.c, src/dispextern.h, src/dispnew.c, src/disptab.h, src/doc.c, src/dosfns.c, src/editfns.c, src/emacs-module.c, src/emacs.c, src/eval.c, src/fileio.c, src/floatfns.c, src/fns.c, src/font.c, src/font.h, src/fontset.c, src/frame.c, src/frame.h, src/fringe.c, src/ftcrfont.c, src/ftfont.c, src/gfilenotify.c, src/gnutls.c, src/gtkutil.c, src/image.c, src/indent.c, src/insdel.c, src/intervals.c, src/json.c, src/keyboard.c, src/keymap.c, src/kqueue.c, src/lcms.c, src/lisp.h, src/lread.c, src/macros.c, src/marker.c, src/menu.c, src/minibuf.c, src/msdos.c, src/print.c, src/process.c, src/profiler.c, src/search.c, src/sound.c, src/syntax.c, src/syntax.h, src/sysdep.c, src/term.c, src/termhooks.h, src/textprop.c, src/undo.c, src/w32.c, src/w32console.c, src/w32fns.c, src/w32font.c, src/w32inevt.c, src/w32proc.c, src/w32select.c, src/w32term.c, src/w32term.h, src/w32uniscribe.c, src/window.c, src/xdisp.c, src/xfaces.c, src/xfns.c, src/xfont.c, src/xftfont.c, src/xmenu.c, src/xml.c, src/xrdb.c, src/xselect.c, src/xsettings.c, src/xterm.c, src/xwidget.c Rename XINT->XFIXNUM, XFASTINT->XFIXNAT, XUINT->XUFIXNUM. 2018-08-07 Eli Zaretskii Avoid segfaults in jason-serialize on MS-Windows * src/json.c (Fjson_serialize): Free the string with 'json_free', not 'free', since it was allocated with 'json_malloc'. (Bug#32381) 2018-08-06 Stephen Berman Fix todo-mode bug involving active region (bug#32379) * lisp/calendar/todo-mode.el (todo-forward-category) (todo-jump-to-category, todo-toggle-view-done-items) (todo-toggle-view-done-only, todo-edit-quit, todo-search) (todo-go-to-source-item, todo-diary-goto-entry): Deactivate the mark when the region is active. 2018-08-06 Stephen Berman Correct and improve part of previous todo-mode.el fix * lisp/calendar/todo-mode.el (todo-jump-to-category): Improve code by using bound-and-true-p. This leaves a byte-compiler warning unsilenced, but ideally, there shouldn't be a warning here (see https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00131.html). (todo--fifiles-history): New variable. (todo-find-filtered-items-file): Use it to fix the filtered items files history list for completing-read. 2018-08-06 Eli Zaretskii Fix the MS-Windows build as followup to Gnulib regex import * lib-src/ntlib.c (nl_langinfo): New function. (Bug#32194) 2018-08-05 Paul Eggert Spruce up some regex-emacs comments * src/regex-emacs.c, src/regex-emacs.h: Update comments. 2018-08-05 Paul Eggert Remove always-0 struct re_pattern_buffer members * src/regex-emacs.h (struct re_pattern_buffer): Remove no_sub, not_bol, not_eol. They are always zero. All uses removed, and code simplified. 2018-08-05 Paul Eggert Simplify regex-emacs by assuming Emacs syntax * src/regex-emacs.c (reg_syntax_t) (RE_BACKSLASH_ESCAPE_IN_LISTS, RE_BK_PLUS_QM) (RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS) (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS) (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE) (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT) (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS) (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES) (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING) (RE_NO_GNU_OPS, RE_FRUGAL, RE_SHY_GROUPS) (RE_NO_NEWLINE_ANCHOR, RE_SYNTAX_EMACS, RE_TRANSLATE_P): Remove. All uses removed and resulting code simplified. (TRANSLATE): Treat nil as an absent translation table, not zero. All uses changed. 2018-08-05 Paul Eggert Simplify regex-emacs code by assuming Emacs * src/regex-emacs.c: Omit no-longer-needed AIX code. Don’t ignore GCC warnings. Include regex-emacs.h immediately after config.h, to test that it’s independent. Omit the "#ifndef emacs" and "#ifdef REGEX_MALLOC" and "#if WIDE_CHAR_SUPPORT" or "#ifdef _REGEX_RE_COMP", code, as we are no longer interested in compiling outside Emacs (with or without debugging or native wide char support) or in avoiding alloca. (REGEX_EMACS_DEBUG, regex_emacs_debug): Rename from DEBUG and debug, to avoid collision with other DEBUGS. All uses changed. In debugging output, change %ld and %zd to %zu when appropriate. No need to include stddef.h, stdlib.h, sys/types.h, wchar.h, wctype.h, locale/localeinfo.h, locale/elem-hash.h, langinfo.h, libintl.h, unistd.h, stdbool.h, string.h, stdio.h, assert.h. All uses of assert changed to eassert. (RE_DUP_MAX, reg_syntax_t, RE_BACKSLASH_ESCAPE_IN_LISTS) (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS) (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS, RE_DOT_NEWLINE) (RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE, RE_INTERVALS) (RE_LIMITED_OPS, RE_NEWLINE_ALT, RE_NO_BK_BRACES) (RE_NO_BK_PARENS, RE_NO_BK_REFS, RE_NO_BK_VBAR) (RE_NO_EMPTY_RANGES, RE_UNMATCHED_RIGHT_PAREN_ORD) (RE_NO_POSIX_BACKTRACKING, RE_NO_GNU_OPS, RE_FRUGAL) (RE_SHY_GROUPS, RE_NO_NEWLINE_ANCHOR, RE_SYNTAX_EMACS) (REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE) (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN) (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT) (REG_EEND, REG_ESIZE, REG_ERPAREN, REG_ERANGEX, REG_ESIZEBR) (reg_errcode_t, REGS_UNALLOCATED, REGS_REALLOCATE, REGS_FIXED) (RE_NREGS, RE_TRANSLATE, RE_TRANSLATE_P): Move here from regex-emacs.h. (RE_NREGS): Define unconditionally. (boolean): Remove. All uses replaced by bool. (WIDE_CHAR_SUPPORT, regfree, regexec, regcomp, regerror): (re_set_syntax, re_syntax_options, WEAK_ALIAS, gettext, gettext_noop): Remove. All uses removed. (malloc, realloc, free): Do not redefine. Adjust all callers to use xmalloc, xrealloc, xfree instead. (re_error_msgid): Use C99 to avoid need to keep in same order as reg_error_t. (REGEX_USE_SAFE_ALLOCA): Simplify by using USE_SAFE_ALLOCA. (REGEX_ALLOCATE, REGEX_REALLOCATE, REGEX_FREE, REGEX_ALLOCATE_STACK) (REGEX_REALLOCATE_STACK, REGEX_FREE_STACK): Remove. All callers changed to use the non-REGEX_MALLOC version. (REGEX_TALLOC): Remove. All callers changed to use SAFE_ALLOCA. (re_set_syntax): Remove; unused. (MATCH_MAY_ALLOCATE): Remove; now always true. All uses simplified. (INIT_FAILURE_ALLOC): Define unconditionally. (re_compile_fastmap): Now static. (re_compile_pattern): Avoid unnecessary cast. * src/regex-emacs.h (EMACS_REGEX_H): Renamed from _REGEX_H to avoid possible collision with glibc. Don’t include sys/types.h. All uses of ssize_t changed to ptrdiff_t. Don’t worry about C++ or VMS. Assume emacs is defined and that _REGEX_RE_COMP and WIDE_CHAR_SUPPORT are not. Define struct re_registers before including lisp.h. (REG_ENOSYS, RE_TRANSLATE_TYPE): Remove; all uses replaced by Lisp_Object. (regoff_t): Remove. All uses replaced with ptrdiff_t. (re_match, regcomp, regexec, regerror, regfree): Remove decl of nonexistent functions. (RE_DEBUG, RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK) (RE_SYNTAX_POSIX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP) (RE_SYNTAX_POSIX_EGREP, RE_SYNTAX_ED, RE_SYNTAX_SED) (_RE_SYNTAX_POSIX_COMMON, RE_SYNTAX_POSIX_BASIC) (RE_SYNTAX_POSIX_MINIMAL_BASIC, RE_SYNTAX_POSIX_EXTENDED) (RE_SYNTAX_POSIX_MINIMAL_EXTENDED, REG_EXTENDED, REG_ICASE) (REG_NEWLINE, REG_NOSUB, REG_NOTBOL, REG_NOTEOL, regmatch_t): Remove; unused. * src/search.c (Fset_match_data): Simplify range test now that we know it’s ptrdiff_t. 2018-08-05 Paul Eggert Use Gnulib regex for lib-src Emacs regular expressions forked from everyone else long ago. This makes it official and should allow simplification later. etags.c now uses the glibc regex API, falling back on a Gnulib-supplied substitute lib/regex.c if necessary. Emacs proper now uses its own regular expression module. Although this patch may look dauntingly large, most of it was generated automatically by admin/merge-gnulib and contains an exact copy of the glibc regex source, and the by-hand changes do not grow the Emacs source code. * admin/merge-gnulib (GNULIB_MODULES): Add regex. (AVOIDED_MODULES): Add btowc, langinfo, lock, mbrtowc, mbsinit, nl_langinfo, wchar, wcrtomb, wctype-h. * lib-src/Makefile.in (regex-emacs.o): Remove; Gnulib does it now. (etags_deps, etags_libs): Remove regex-emacs.o. * lib-src/etags.c: Go back to including regex.h. (add_regex): Use unsigned char translation array, since glibc regex requires that. * lib/Makefile.in (not_emacs_OBJECTS, for_emacs_OBJECTS): New macros. (libegnu_a_OBJECTS): Use them, to avoid building e-regex.o. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c: * lib/regex_internal.h, lib/regexec.c, m4/builtin-expect.m4: * m4/eealloc.m4, m4/glibc21.m4, m4/mbstate_t.m4, m4/regex.m4: New files, copied from Gnulib. * src/regex-emacs.h, src/conf_post.h: (RE_TRANSLATE_TYPE, RE_TRANSLATE, RE_TRANSLATE_P): Move from src/conf_post.h to src/regex-emacs.h, so that they don’t interfere with compiling lib/regex.c. 2018-08-05 Paul Eggert Rename src/regex.c to src/regex-emacs.c. This is in preparation for using Gnulib regex for etags, to avoid collisions in include directives. * src/regex-emacs.c: Rename from src/regex.c. * src/regex-emacs.h: Rename from src/regex.h. All uses changed. * test/src/regex-emacs-tests.el: Rename from test/src/regex-tests.el. 2018-08-05 Paul Eggert Update from gnulib This incorporates: 2018-08-05 Fix link error regarding 'rpl_environ' * build-aux/config.guess, lib/unistd.in.h, lib/warn-on-use.h: * m4/extern-inline.m4: Copy from Gnulib. 2018-08-05 Andy Moreton Fix test and comment in CCL change * lisp/international/ccl.el (ccl-fixnum): Update comment. * test/lisp/international/ccl-tests.el (prog-midi-dump): Add trailing space to expected result. 2018-08-04 Mike Kupfer Jeffrey C Honig Fix mh-redistribute to work with nmh 1.5 and identities (SF#268) * lisp/mh-e/mh-comp.el (mh-redistribute): Add a non-optional identity parameter. Use mh-bare-components to generate a draft, then apply identity-specific settings. Add more details to the "Resent" annotation line. (mh-dist-formfile): New. (mh-bare-components): Add a formfile argument. (mh-edit-again, mh-send-sub): Track the change to mh-bare-components. * lisp/mh-e/mh-identity.el (mh-select-identity) (mh-identity-field): New. 2018-08-04 Tom Tromey Fix hash functions for bignums * src/fns.c (cmpfn_eql, hashfn_eql): Handle bignums. (sxhash_bignum): New function. (sxhash): Use it. * test/src/fns-tests.el (test-bignum-hash): New test. 2018-08-04 Tom Tromey Fix bignum comparisons with NaN * src/data.c (isnan): Move earlier. (bignumcompare): Explicitly handle NaN. * test/src/data-tests.el (data-tests-min): Add NaN tests for bignum. (data-check-sign): Fix for previous patch. * test/src/fns-tests.el (test-bignum-eql): Add NaN test. 2018-08-04 Andy Moreton Make bignums work better when EMACS_INT is larger than long * lisp/international/ccl.el (ccl-fixnum): New function. (ccl-embed-data, ccl-embed-current-address, ccl-dump): Use it. * src/alloc.c (make_number): Handle case where EMACS_INT is larger than long. * src/data.c (bignumcompare): Handle case where EMACS_INT is larger than long. (arith_driver): Likewise. Coerce markers. (float_arith_driver): Coerce markers. (Flogcount): Use mpz_sgn. (ash_lsh_impl): Fix bugs. (Fsub1): Fix underflow check. * src/lisp.h (NUMBERP): Don't check BIGNUMP. (CHECK_FIXNUM_OR_FLOAT_COERCE_MARKER): Fix indentation. * test/lisp/international/ccl-tests.el: New file. 2018-08-04 Stephen Berman Fix assorted todo-mode bugs (bug#32366) * lisp/calendar/todo-mode.el (todo-forward-category): Fix calculation for skipping backward over archived categories. (todo-jump-to-category): When hl-line-mode is enabled, force highlighting to compensate for apparent failure of post-command-hook to run. (todo-insert-item--basic): Prevent inserting a new todo item in an archive category. (todo-delete-item): Ensure done items separator disappears when the last done item is deleted. (todo-edit-item--header): Fix calculation for choosing a month prior to the current one. (todo-find-filtered-items-file): Fix use of completing-read, correcting typo in default value passed to it and confining history to filtered items files. (todo-go-to-source-item): Make a noop when point is not on an item. (todo-save-filtered-items-buffer): Make buffer read-only after saving and improve buffer name. (todo-key-bindings-t+a+f): Remove three mistakenly included bindings. (todo-key-bindings-t+a): Add two mistakenly omitted bindings. 2018-08-04 Noam Postavsky Respect non-saved value of `read-short-answer' (Bug#31782) * lisp/emacs-lisp/map-ynp.el (read-answer-short): Add an `auto' setting. (read-answer): Check the function cell of `yes-or-no-p' when `read-answer-short' is `auto' rather than calling `custom-reevaluate-setting' which would reset the option to its saved value. 2018-08-04 Noam Postavsky Merge from emacs-26 f0b8e64fb7 Avoid assertion violations in maybe_produce_line_number 7669bf7880 Avoid assertion violations in set_text_properties_1 2018-08-04 Noam Postavsky Merge from emacs-26 951c5a127f Fix wdired test failure when byte compiled (bug#32318) 0252f7311f * test/lisp/wdired-tests.el (wdired-test-symlink-name): Ne... dd51434714 Fix url's thing-at-point beginning-op (Bug#32028) 2018-08-04 Michael Albinus * lisp/international/mule-cmds.el (universal-coding-system-argument): Use `current-input-mode' for determining quit char. 2018-08-04 Michael Albinus Rename Tramp method "owncloud" to "nextcloud" In the spirit of freedom, "nextcloud" is preferred over "owncloud". * doc/misc/tramp.texi (Quick Start Guide, GVFS based methods): * etc/NEWS: Rename "owncloud" method to "nextcloud". * lisp/net/tramp-gvfs.el (tramp-gvfs-methods, tramp-goa-methods) (tramp-gvfs-url-file-name, tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec) (tramp-get-goa-accounts): Use "nextcloud" instead of "owncloud". (tramp-gvfs-nextcloud-default-prefix) (tramp-gvfs-nextcloud-default-prefix-regexp): Rename them. Adapt all callees. * test/lisp/net/tramp-tests.el (tramp--test-nextcloud-p): Rename from `tramp--test-owncloud-p'. (tramp-test11-copy-file, tramp-test12-rename-file): Use it. 2018-08-03 Ken Brown Fix a filenotify test failure on Cygwin * test/lisp/filenotify-tests.el (file-notify-test04-autorevert): Increase a sleep-for time from 2 to 3 on Cygwin. This avoids sporadic failures of the test. (Bug#32363) 2018-08-03 Gemini Lasswell Merge branch 'scratch/backtrace-mode' 2018-08-03 Gemini Lasswell Fix some documentation formatting nits * doc/misc/ert.texi (Running Tests Interactively): Correct Elisp manual titile in xref. * doc/lispref/edebug.texi (Edebug Misc): Use single argument form of xref. * doc/lispref/debugging.texi (Backtraces): Add comma and period after xref braces. (Backtraces): Correct Emacs manual title. (Internals of Debugger): Add a space before period. 2018-08-03 Gemini Lasswell Fix typo in edebug-backtrace-hide-instrumentation's docstring. * lisp/emacs-lisp/edebug.el (edebug-backtrace-hide-instrumentation): Fix docstring copypasta. 2018-08-03 Gemini Lasswell Give two backtrace-mode commands better names * lisp/emacs-lisp/backtrace.el (backtrace-mode-map): Update bindings and menu items with new function names. (backtrace-collapse, backtrace-pretty-print) (backtrace--collapse, backtrace--pretty-print): Remove functions. (backtrace-single-line, backtrace-multi-line) (backtrace--single-line, backtrace--multi-line): New functions. (backtrace--reformat-sexp): Remove 'error-message' argument. * test/lisp/emacs-lisp/backtrace-tests.el (backtrace-tests--pretty-print-and-collapse): Remove. (backtrace-tests--single-and-multi-line): New test. (backtrace-tests--verify-pp-and-collapse): Remove. (backtrace-tests--verify-single-and-multi-line): New function. 2018-08-03 Gemini Lasswell Move 'backtrace' from subr.el to backtrace.el * lisp/subr.el (backtrace, backtrace--print-frame): Remove functions. * lisp/emacs-lisp/backtrace.el (backtrace-backtrace): Remove function. (backtrace): New function. (backtrace-to-string): Make argument optional. * doc/lispref/debugging.texi (Internals of Debugger): Update description of 'backtrace' function. 2018-08-03 Gemini Lasswell Add new commands to Edebug backtraces Add commands to go to source if available, and to show and hide Edebug's instrumentation. Make Edebug pop to backtraces instead of displaying them, which makes Edebug consistant with the behavior of ERT and the Lisp Debugger. * doc/lispref/edebug.texi (Edebug Misc): Document when and how you can jump to source code from an Edebug backtrace. Document 'edebug-backtrace-show-instrumentation' and 'edebug-backtrace-hide-instrumentation'. * lisp/emacs-lisp/backtrace.el (backtrace-frame): Add comments to describe the fields. (backtrace-goto-source-functions): New abnormal hook. (backtrace-mode-map): Add keybinding and menu item for backtrace-goto-source. (backtrace--flags-width): New constant. (backtrace-update-flags): Use it. (backtrace-goto-source): New command. (backtrace--print-flags): Print the :source-available flag. * lisp/emacs-lisp/edebug.el (edebug-backtrace-frames) (edebug-instrumented-backtrace-frames): New variables. (edebug-backtrace, edebug--backtrace-frames): Remove functions. (edebug-pop-to-backtrace, edebug--backtrace-goto-source) (edebug--add-source-info): New functions. (edebug-mode-map, edebug-mode-menus): Replace 'edebug-backtrace' with 'edebug-pop-to-backtrace'. (edebug--strip-instrumentation): New function. (edebug--unwrap-and-add-info): Remove. (edebug-unwrap-frame, edebug-add-source-info): New functions. (edebug-backtrace-show-instrumentation) (edebug-backtrace-hide-instrumentation): New commands. * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-check-keymap): Verify keybindings in backtrace-mode-map used by new test. Update with binding for 'edebug-pop-to-backtrace'. (edebug-tests-backtrace-goto-source): New test. * test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el (edebug-test-code-range): Add a new stop point. 2018-08-03 Gemini Lasswell Add a menu for backtrace-mode * lisp/emacs-lisp/backtrace.el (backtrace-mode-map): Add a menu. * lisp/emacs-lisp/debug.el (debugger-mode-map): Change menu text for 'backtrace-help-follow-symbol' to better describe what it does. 2018-08-03 Gemini Lasswell * lisp/emacs-lisp/debug.el (debugger-mode-map): Use easy-menu-define. 2018-08-03 Gemini Lasswell Add new command to expand all "..."s in a backtrace frame * doc/lispref/debugging.texi (Backtraces): Document new keybinding. * lisp/emacs-lisp/backtrace.el (backtrace-line-length): Add the option of unlimited line length. (backtrace--match-ellipsis-in-string): Add a comment to explain why this function is necessary. (backtrace-mode-map): Add keybinding for 'backtrace-expand-ellipses'. (backtrace-expand-ellipsis): Use 'cl-print-to-string-with-limit'. (backtrace-expand-ellipses): New command. (backtrace-print-to-string): Use 'cl-print-to-string-with-limit'. Tag the printed forms with a gensym instead of the values of print-length and print-level. (backtrace--print): Add 'stream' argument. * test/lisp/emacs-lisp/backtrace-tests.el (backtrace-tests--expand-ellipsis): Make the test less dependent on the implementation. (backtrace-tests--expand-ellipses): New test. Move the fitting of a printed representation into a limited number of characters using appropriate values of print-level and print-length from 'backtrace-print-to-string' to cl-print.el for future use by other parts of Emacs. * lisp/emacs-lisp/cl-print.el (cl-print-to-string-with-limit): New function. * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-print-to-string-with-limit): New test. 2018-08-03 Gemini Lasswell Change keybinding for backtrace-collapse from '=' to '-' '+' and '-' make a more intuitive pair of keybindings for backtrace-pretty-print and backtrace-collapse than '+' and '='. * lisp/emacs-lisp/backtrace.el (backtrace-mode-map): * doc/lispref/debugging.texi (Backtraces): Change keybinding for backtrace-collapse. 2018-08-03 Gemini Lasswell Add more tests for backtrace-mode * test/lisp/emacs-lisp/backtrace-tests.el (backtrace-tests--variables) (backtrace-tests--backward-frame, backtrace-tests--forward-frame) (backtrace-tests--pretty-print-and-collapse) (backtrace-tests--verify-pp-and-collapse) (backtrace-tests--print-circle, backtrace-tests--make-regexp) (backtrace-tests--expand-ellipsis): New tests. (backtrace-tests--to-string): Use backtrace-tests--make-backtrace. (backtrace-tests--get-substring): New function. Change the method of generating sample backtraces in backtrace tests to work whether or not the tests are byte-compiled. * test/lisp/emacs-lisp/backtrace-tests.el (backtrace-tests--func1) (backtrace-tests--func2, backtrace-tests--func3) (backtrace-tests--create-backtrace-frames): Remove. (backtrace-tests--uncompiled-functions): New constant. (backtrace-tests--make-backtrace, backtrace-tests--setup-buffer): New functions. (backtrace-tests--backtrace-lines) (backtrace-tests--backtrace-lines-with-locals): New functions. (backtrace-tests--line-count): New constant. (backtrace-tests--result, backtrace-tests--result-with-locals): New functions. (backtrace-tests--header): New constant. (backtrace-tests--insert-header): Use backtrace-tests--header. (backtrace-tests--with-buffer): Remove. 2018-08-03 Gemini Lasswell Add link in backtraces to position in buffer being evaluated (bug#14081) * lisp/emacs-lisp/backtrace.el (backtrace-frame): Add buffer field. (backtrace-get-frames): Set buffer field of frame. (backtrace-buffer-pos): New button type. (backtrace--pop-to-buffer-pos): New function. (backtrace--print-func-and-args): Create a button for the buffer position if it is set. 2018-08-03 Gemini Lasswell Add links in backtraces to functions written in C (bug#25393) * lisp/emacs-lisp/backtrace.el (backtrace--print-func-and-args): Look up file names for built-in functions with evaluated arguments. 2018-08-03 Gemini Lasswell Add prefix argument to backtrace-toggle-print-circle With prefix argument, toggle print-circle for the whole buffer. * lisp/emacs-lisp/backtrace.el (backtrace-toggle-print-circle): Add universal prefix argument. (backtrace--toggle-feature): Add new argument 'all' to toggle all frames. (backtrace--set-feature): New function. (backtrace-mode): Use indent functions from Lisp modes. 2018-08-03 Gemini Lasswell Lazily print backtrace frame local variables Instead of printing the local variables for all frames when the backtrace buffer is created, print them when they are first made visible. Add a prefix argument to backtrace-toggle-locals to toggle local variables display for the entire buffer. * lisp/emacs-lisp/backtrace.el (backtrace-view): Mention :show-locals in docstring. (backtrace-get-section-end): Remove function. (backtrace-toggle-locals): Add prefix argument. (backtrace--with-output-variables): Move before first use. (backtrace--set-frame-locals-visible): New function. (backtrace--set-locals-visible-overlay): New function. (backtrace--set-locals-visible): Remove function. (backtrace-toggle-feature): Remove TODO comment. (backtrace--print-locals): Skip printing the locals if they are not visible. 2018-08-03 Gemini Lasswell Always make buttons from function names in backtraces * lisp/emacs-lisp/backtrace.el (backtrace-view) (backtrace--print-func-and-args, backtrace-mode): Always make buttons. Remove all uses of ':do-xrefs'. * lisp/emacs-lisp/debug.el (debugger-setup-buffer): Modify backtrace-view instead of setting it. * lisp/emacs-lisp/edebug.el (edebug-backtrace): * lisp/emacs-lisp/ert.el (ert-results-pop-to-backtrace-for-test-at-point): Remove initialization of backtrace-view. 2018-08-03 Gemini Lasswell Add backtrace-mode and use it in the debugger, ERT and Edebug * doc/lispref/debugging.texi (Using Debugger): Remove explanation of backtrace buffer. Refer to new node. (Backtraces): New node. (Debugger Commands): Refer to new node. Remove 'v'. * doc/lispref/edebug.texi (Edebug Misc): Refer to new node. * doc/misc/ert.texi (Running Tests Interactively): Refer to new node. * lisp/emacs-lisp/backtrace.el: New file. * test/lisp/emacs-lisp/backtrace-tests.el: New file. * lisp/emacs-lisp/debug.el: (debugger-buffer-state): New cl-defstruct. (debugger--restore-buffer-state): New function. (debug): Use a debugger-buffer-state object to save and restore buffer state. Fix bug#15749 by leaving an unused buffer in debugger-mode, empty, instead of in fundamental-mode, and then when reusing a buffer, not calling debugger-mode if the buffer is already in debugger-mode. (debugger-insert-backtrace): Remove. (debugger-setup-buffer): Use backtrace-mode. (debugger--insert-header): New function. (debugger-continue, debugger-return-value): Change check for flags to use backtrace-frames. (debugger-frame-number): Determine backtrace frame number from backtrace-frames. (debugger--locals-visible-p, debugger--insert-locals) (debugger--show-locals, debugger--hide-locals) (debugger-toggle-locals): Remove. (debugger-mode-map): Make a child of backtrace-mode-map. Move navigation commands to backtrace-mode-map. Bind 'q' to debugger-quit instead of top-level. Make Help Follow menu item call backtrace-help-follow-symbol. (debugger-mode): Derive from backtrace-mode. (debug-help-follow): Remove. Move body of this function to 'backtrace-help-follow-symbol' in backtrace.el. (debugger-quit): New function. * lisp/emacs-lisp/edebug.el (edebug-unwrap-results): Remove warning in docstring about circular results. (edebug-unwrap): Use pcase. (edebug-unwrap1): New function to unwrap circular objects. (edebug-unwrap*): Use it. (edebug--frame): New cl-defstruct. (edebug-backtrace): Call the buffer *Edebug Backtrace* and use backtrace-mode. Get the frames from edebug--backtrace-frames. (edebug--backtrace-frames, edebug--unwrap-and-add-info) (edebug--symbol-not-prefixed-p): New functions. * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-for-backtraces) (lisp-el-font-lock-keywords-for-backtraces-1) (lisp-el-font-lock-keywords-for-backtraces-2): New constants. * lisp/emacs-lisp/ert.el (ert--print-backtrace): Remove. (ert--run-test-debugger): Use backtrace-get-frames. (ert-run-tests-batch): Use backtrace-to-string. (ert-results-pop-to-backtrace-for-test-at-point): Use backtrace-mode. (ert--insert-backtrace-header): New function. * test/lisp/emacs-lisp/ert-tests.el (ert-test--which-file): Use backtrace-frame slot accessor. 2018-08-03 Gemini Lasswell Add methods for strings to cl-print * lisp/emacs-lisp/cl-print.el (cl-print-object) : New method. (cl-print-object-contents) : New method. (cl-print--find-sharing): Look in string property lists. * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-3): Test printing of long strings. (cl-print-tests-4): Test printing of strings nested in other objects. (cl-print-tests-strings, cl-print-tests-ellipsis-string): New tests. 2018-08-03 Gemini Lasswell Support ellipsis expansion in cl-print * lisp/emacs-lisp/cl-print.el (cl-print-object-contents): New generic method. (cl-print-object-contents) : New methods. (cl-print-object) : Use cl-print-insert-ellipsis. (cl-print-object) : Elide whole object if print-level exceeded. Use cl-print-insert-ellipsis. (cl-print-insert-ellipsis, cl-print-propertize-ellipsis) (cl-print-expand-ellipsis): New functions. * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-4): Test printing of objects nested in other objects. (cl-print-tests-strings, cl-print-tests-ellipsis-cons) (cl-print-tests-ellipsis-vector, cl-print-tests-ellipsis-struct) (cl-print-tests-ellipsis-circular): New tests. (cl-print-tests-check-ellipsis-expansion) (cl-print-tests-check-ellipsis-expansion-rx): New functions. 2018-08-01 Tino Calancha New commands to create an empty file Similarly as `create-directory', `dired-create-directory', the new commands create the parent dirs as needed (Bug#24150). * lisp/files.el (make-empty-file): New command. * lisp/dired-aux.el (dired-create-empty-file): New command. (dired--find-topmost-parent-dir): New function extracted from `dired-create-directory'. (dired-create-directory, dired-create-empty-file): Use it. * lisp/dired.el (dired-mode-map): Add menu entry for `dired-create-empty-file'. * doc/emacs/dired.texi (Misc Dired Features) * doc/lispref/files.texi (Create/Delete Dirs): Update manual. 2018-08-01 Paul Eggert Substitute a on hosts lacking it * .gitignore: Add lib/ieee754.h. * admin/merge-gnulib (GNULIB_MODULES): Add ieee754-h. * configure.ac: Remove ieee754.h check, as Gnulib now does that. * etc/NEWS: Mention this. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/ieee754.in.h, m4/ieee754-h.m4: New files, from Gnulib. * src/lisp.h (IEEE_FLOATING_POINT): Now a macro so that it can be used in #if. * src/lread.c, src/print.c: Include if IEEE_FLOATING_POINT, not if HAVE_IEEE754_H. * src/lread.c (string_to_number): * src/print.c (float_to_string): Process NaNs only on IEEE hosts, and assume in that case. 2018-08-01 Michael Albinus Fix Bug#32325 * lisp/net/tramp-sh.el (tramp-sh-handle-make-directory): In case of PARENTS flush also upper directories caches. (Bug#32325) 2018-08-01 Gemini Lasswell Fix Edebug spec for cl-macrolet (bug#29919) Add an Edebug matching function for cl-macrolet which keeps track of its bindings and treats them as macros without Edebug specs when found in the body of the expression. * lisp/emacs-lisp/edebug.el (edebug--cl-macrolet-defs): New variable. (edebug-list-form-args): Use it. (edebug--current-cl-macrolet-defs): New variable. (edebug-match-cl-macrolet-expr, edebug-match-cl-macrolet-name) (edebug-match-cl-macrolet-body): New functions. * lisp/emacs-lisp/cl-macs.el (cl-macrolet): Use cl-macrolet-expr for Edebug spec. * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-cl-macrolet): New test. * test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el (edebug-test-code-use-cl-macrolet): New function. 2018-08-01 Stephen Berman Fix todo-mode commands called on done items separator The done items separator is not reachable by todo-mode navigation commands, but it is e.g. by C-n and C-p. Ensure that invoking todo-mode commands with point on the separator does not result in unexpected results, errors or file corruption (bug#32343). * lisp/calendar/todo-mode.el (todo-insert-item--basic): Make copying item and inserting item "here" noops when invoked on done items separator. Consolidate error handling of these cases. Also restrict "here" insertion to valid positions in the current category, since this is simpler than the previous behavior of inserting as the first item, which was moreover undocumented, counterintuitive and superfluous. (todo-set-item-priority, todo-move-item, todo-item-done) (todo-item-start, todo-item-end): Make noops when invoked on done items separator. * test/lisp/calendar/todo-mode-tests.el: Require ert-x. (todo-test--insert-item): Add formal parameters of todo-insert-item--basic. (todo-test--done-items-separator): New function. (todo-test-done-items-separator01-bol) (todo-test-done-items-separator01-eol) (todo-test-done-items-separator02-bol) (todo-test-done-items-separator02-eol) (todo-test-done-items-separator03-bol) (todo-test-done-items-separator03-eol) (todo-test-done-items-separator04-bol) (todo-test-done-items-separator04-eol) (todo-test-done-items-separator05-bol) (todo-test-done-items-separator05-eol) (todo-test-done-items-separator06-bol) (todo-test-done-items-separator06-eol) (todo-test-done-items-separator07): New tests. 2018-08-01 Paul Eggert Read and print NaN significand if * configure.ac: Check for ieee754.h. * doc/lispref/numbers.texi (Float Basics): Document that NaN string representation digits are machine-dependent. * etc/NEWS: Mention the change. * src/lread.c, src/print.c [HAVE_IEEE754_H]: Include ieee754.h. * src/lread.c (string_to_number) [HAVE_IEEE754_H]: * src/print.c (float_to_string) [HAVE_IEEE754_H]: Read and print NaN significand. 2018-07-31 Paul Eggert Simplify by assuming C99 math.h isnan etc. These should be portable nowadays. * src/data.c (isnan): Remove. * src/floatfns.c (isfinite, isnan): Remove. * src/print.c: Include math.h, for isinf and isnan. (float_to_string): Simplify by using them. 2018-07-31 Stephen Gildea Reset mh-blacklist and mh-whitelist on folder undo * lisp/mh-e/mh-funcs.el (mh-undo-folder): Set mh-blacklist and mh-whitelist to nil, as is done with the other lists of pending operations. 2018-07-30 Michael Albinus Fix Bug#32304 * lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Handle special cas on Cygwin and MS-Windows. (Bug#32304) 2018-07-29 Noam Postavsky * lisp/term.el (term-read-noecho): Mark obsolete. 2018-07-29 Eli Zaretskii Avoid gettimeofday deprecation warnings with MinGW * nt/inc/ms-w32.h (__POSIX_2008_DEPRECATED) [__MINGW32_VERSION >= 5001000L]: Define to nothing, to avoid deprecation warnings about gettimeofday with mingw.org's MinGW runtime 5.1 and later. 2018-07-29 Paul Eggert Merge from origin/emacs-26 39d3e8b Fix last change in 'char_width' 67679f0 Add initial tests for wdired.el 2018-07-29 Tino Calancha Prefer ?* to hide passwords It might be argued that a hidden string is more legible when using ?* as the hidden character instead of ?. For example, the following strings have the same length: "......" "******" It's slighly easier to visually count the number of characters in the second string (Bug#32220). * lisp/subr.el (read-passwd): Prefer ?* as default char instead of ?. * doc/lispref/minibuf.texi (Reading a Password): Update manual. 2018-07-29 Stephen Berman Handle symlinks in wdired.el when restoring filename property * lisp/wdired.el (wdired--restore-dired-filename-prop): If the file name is a symbolic link, only propertize the link name. This prevents wdired-create-parentdirs from turning the link into a directory. 2018-07-28 Stephen Berman Fix bugs in wdired.el involving dired-filename property After every change in wdired-mode, put the dired-filename text property on the file name. This ensures that changing some but not all characters in the name succeeds with non-nil wdired-use-interactive-rename (bug#32173) and it also ensures that changed names can be found (e.g. by dired-isearch-filenames) while still in wdired-mode. * lisp/wdired.el (wdired--restore-dired-filename-prop): New function. (wdired-change-to-wdired-mode): Add it to after-change-functions. (wdired-change-to-dired-mode): Remove it from after-change-functions. (wdired-finish-edit): Move invocation of wdired-change-to-dired-mode below invocation of wdired-do-renames, so that the latter runs wdired--restore-dired-filename-prop, but above the invocation of revert-buffer to avoid using wdired-revert, which changes back to wdired-mode. (wdired-search-and-rename): Wrap renaming in unwind-protect and if user types C-g when prompted to change the file name, make sure we return to dired-mode. 2018-07-28 Eli Zaretskii Make 'tis620-2533' character set be an alias for 'thai-iso8859-11' * lisp/simple.el (what-cursor-position): Revert ad-hoc change to work around tis620-2533 charset. * lisp/w32-fns.el: Use thai-iso8859-11 instead of tis620-2533. * lisp/international/mule-conf.el (tis620-2533): Now an alias for thai-iso8859-11, not a separate character set. * lisp/international/fontset.el (charset-script-alist): Add thai-iso8859-11; fix entries for greek and hebrew. (font-encoding-alist, font-encoding-charset-alist): Use thai-iso8859-11 instead of tis620-2533. * lisp/descr-text.el (describe-char): Remove the ad-hoc code that assigns eight-bit-control characters to the eight-bit charset. 2018-07-28 Glenn Morris Merge from origin/emacs-26 bd52f37 (origin/emacs-26) ; Fix last change: only MinGW runtime 5.0.2... 024d20f Fix compilation with mingw.org's MinGW 5.x headers 38b6748 Update the list of special forms in the ELisp manual 8579105 Don't fail to indent-sexp before a full sexp (Bug#31984) d24c5f2 Fix calls to modifications hooks in replace-buffer-contents 71a9151 * src/character.c (char_width): Support glyphs with faces. (... 0feb673 Display raw bytes as belonging to 'eight-bit' charset 2e2f00f ; * doc/emacs/mule.texi (International Chars): Fix last change. 00561b5 Fix inaccurate text in the user manual 5cfb7a3 Copyedits in tramp.texi, improved example with bash's readline 6f8f358 Minor Tramp doc update 2585fcb File Shadowing is not available on MS Windows 39da592 ; Minor markup change in indent.texi 2f00ffe ; bookmark-jump: Add comment about last change. 2018-07-28 Phil Sainty * lisp/vc/diff.el (diff-buffer-with-file): Support indirect buffers. (Bug#32195) 2018-07-28 João Távora Fix @include directive in Flymake doc again Problem was reintroduced by commit titled: "Mention use of C-h . (display-local-help) in Flymake manual" * doc/misc/flymake.texi: Don't @include a relative path. 2018-07-28 Martin Rudalics Fix problem with 'scroll-bar-adjust-thumb-portion' nil (Bug#32002) * lisp/scroll-bar.el (scroll-bar-drag-1): Do not scroll window when its buffer is fully visible and 'scroll-bar-adjust-thumb-portion' is nil (Bug#32002). 2018-07-27 Ken Brown Fix file-name-case-insensitive-p on non-existent files * src/fileio.c (Ffile_name_case_insensitive_p): If the file doesn't exist, move up the filesystem tree until an existing directory is found. Then test that directory for case-insensitivity. (Bug#32246) 2018-07-27 Stefan Monnier * lisp/simple.el (event-apply-modifier): Map control+[ to C-[ 2018-07-26 Alan Mackenzie Correctly indent C++ brace lists in member init lists. * lisp/progmodes/cc-engine.el (c-guess-basic-syntax; CASE 9B, CASE 9C): Set a limit for a backward search to the ":" introducing the member init list, when there is one, rather than the enclosing "{" or nil. 2018-07-26 Paul Eggert * src/editfns.c (syms_of_editfns): Fix typo in previous change. 2018-07-26 Paul Eggert %o and %x can now format signed integers Optionally treat integers as signed numbers with %o and %x format specifiers, instead of treating them as a machine-dependent two’s complement representation. This option is more machine-independent, allows formats like "#x%x" to be useful for reading later, and is better-insulated for future changes involving bignums. Setting the new variable ‘binary-as-unsigned’ to nil enables the new behavior (Bug#32252). This is a simplified version of the change proposed in: https://lists.gnu.org/r/emacs-devel/2018-07/msg00763.html I simplified that proposal by omitting bitwidth modifiers, as I could not find an any example uses in the Emacs source code that needed them and doing them correctly would have been quite a bit more work for apparently little benefit. * doc/lispref/strings.texi (Formatting Strings): Document that %x and %o format negative integers in a platform-dependent way. Also, document how to format numbers so that the same values can be read back in. * etc/NEWS: Document the change. * src/editfns.c (styled_format): Treat integers as signed numbers even with %o and %x, if binary-as-unsigned is nil. Support the + and space flags with %o and %x, since they’re about signs. (syms_of_editfns): New variable binary-as-unsigned. * test/src/editfns-tests.el (read-large-integer): Test that maximal integers can be read after printing with all integer formats, if binary-as-unsigned is nil. 2018-07-25 Lucas Werkmeister Notify systemd in daemon-initialized and kill-emacs (Bug#31498) With --[bg-]daemon and Type=forking, systemd will only consider the daemon to have fully started up once the original process exits, and will wait until then to start units depending on the Emacs service. To get the same functionality with --fg-daemon, use Type=notify instead of Type=simple and explicitly send a readiness notification to systemd at the point where the forked process would in --bg-daemon mode notify its parent process and cause it to exit. Similarly, notify systemd at the beginning of the shutdown process as well. (Both of these calls are successful no-ops if emacs was not started by systemd.) * etc/emacs.service: Update Type. * src/emacs.c (daemon-initialized) [HAVE_LIBSYSTEMD]: * src/emacs.c (kill-emacs) [HAVE_LIBSYSTEMD]: Call sd_notify(). 2018-07-25 Eric Abrahamsen Fix docstring of gnus-dependencies-add-header * lisp/gnus/gnus-sum.el (gnus-dependencies-add-header): Code is correct, but docs had logic of `gnus-summary-ignore-duplicates' backwards: if it's t, the Message-IDs will not be renamed. 2018-07-25 Michael Albinus Instrument shadowfile{-tests} for error hunting on hydra. * lisp/shadowfile.el (shadow-make-fullname): Use changed `tramp-make-tramp-file-name' from Tramp 2.4. * test/lisp/shadowfile-tests.el (shadow-test08-shadow-todo): Instrument test. Suppress errors in cleanup. (shadow-test09-shadow-copy-files): Suppress errors in cleanup. 2018-07-24 Paul Eggert Move proper-list-p to C Since C code can use it and it’s simple, we might as well use C. * lisp/subr.el (proper-list-p): Move to C code. * src/eval.c (signal_error): Simplify by using Fproper_list_p. * src/fns.c (Fproper_list_p): New function, moved here from Lisp. Simplify signal_error * src/eval.c (signal_error): Simplify by using FOR_EACH_TAIL_SAFE. 2018-07-24 Paul Eggert * etc/NEWS: Omit bug# when not needed. 2018-07-24 Glenn Morris Merge from origin/emacs-26 f64c277 (origin/emacs-26) Let bookmark-jump override window-point (Bu... 1208aaa Omit keymap from subword-mode docstring (Bug#32212) 2b70b54 Prevent line-mode term from showing user passwords 5de4441 Check for special filenames in eshell (Bug#30724) 1b4b965 Fix indent-sexp of #s(...) (Bug#31984) 59e8533 Add save-match-data to abbreviate-file-name (Bug#32201) 47f75b1 Fix last change in editfns.c 671dc5a Fix calls to buffer modification hooks from replace-buffer-co... cc4ceed ; etc/NEWS: Remove unnecessary reference to a bug number. e0f33ea Fix Bug#32226 7308fa0 Improve doc strings of several variables in keyboard.c 2018-07-24 Michael Albinus Fix typo in `find-alternate-file' * lisp/files.el (find-alternate-file): Add missing arguments to `find-file-noselect' call. 2018-07-23 Paul Eggert (format "%#x" 0) yields "0", not "0x0" * doc/lispref/strings.texi (Formatting Strings): * src/editfns.c (Fformat): Document this. 2018-07-23 Paul Eggert 0x%x → %#x in elisp formats * lisp/emacs-lisp/cl-print.el (cl-print-object): * lisp/profiler.el (profiler-format-entry): * lisp/progmodes/hideif.el (hif-evaluate-macro): Prefer %#x to 0x%x in elisp formats when formatting arbitrary integers, as it’ll produce more-readable output with negative args should we change how negative values are printed with %x. 2018-07-23 Paul Eggert positive → nonnegative doc fixes * doc/lispref/numbers.texi (Bitwise Operations) (Math Functions): * doc/lispref/strings.texi (Formatting Strings): * src/editfns.c (Fformat): Correct “positive” with “nonnegative” in some documentation. 2018-07-23 Lars Ingebrigtsen Revert "Make nnimap support IMAP namespaces" This reverts commit 7b5b3ddb2dfa98d640aff7b5b160f777e22cc794. Insufficiently tested before committing -- bugs out several places when not using namespaces. 2018-07-22 Arash Esbati Add \eqref to RefTeX's reference styles (Bug#32203) * lisp/textmodes/reftex-vars.el (reftex-ref-style-alist): Add entry for \eqref provided by amsmath.sty and bind it to "e" key. 2018-07-22 Noam Postavsky Preserve nonblank whitespace when indenting (Bug#32200) * lisp/indent.el (indent-line-to): Remove only spaces and tabs, not any whitespace syntax characters. 2018-07-22 Lars Ingebrigtsen Add further clarifications to gnus-blocked-images * lisp/gnus/gnus-art.el (gnus-blocked-images): Add further clarifications. 2018-07-22 Nikolaus Rath Make nnimap support IMAP namespaces * lisp/gnus/nnimap.el (nnimap-use-namespaces): Introduc new server variable. (nnimap-group-to-imap, nnimap-get-groups): Transform IMAP group names to Gnus group name by stripping / prefixing personal namespace prefix. (nnimap-open-connection-1): Ask server for namespaces and store them. * lisp/gnus/nnimap.el (nnimap-request-group-scan) (nnimap-request-create-group, nnimap-request-delete-group) (nnimap-request-rename-group, nnimap-request-move-article) (nnimap-process-expiry-targets) (nnimap-request-update-group-status) (nnimap-request-accept-article, nnimap-request-list) (nnimap-retrieve-group-data-early, nnimap-change-group) (nnimap-split-incoming-mail): Use nnimap-group-to-imap. (nnimap-group-to-imap): New function to map Gnus group names to IMAP folder names. 2018-07-22 Lars Ingebrigtsen Make async :family 'local failures fail correctly again * src/fileio.c (get_file_errno_data): Refactor out into its own function so that we can reuse the error handling from an async context (bug#31901). * src/process.c (connect_network_socket): When an async :family 'local client fails (with a file error, for instance), mark the process as failed. 2018-07-22 Michael Albinus thread-join returns the result of finished thread * doc/lispref/threads.texi (Basic Thread Functions): * etc/NEWS: Document return value of `thread-join'. * src/thread.c (invoke_thread_function, Fmake_thread) (init_main_thread): Set result. (Fthread_join): Propagate signals, and return result. (Vmain_thread): New defvar. * src/thread.h (struct thread_state): Add `result' field. * test/src/thread-tests.el (threads-join): Test also return value. (threads-join-error): New test. (threads-mutex-signal): Check for propagation of `quit' signal. 2018-07-21 John Shahid Avoid destroying match data in 'setenv' (Bug#32201) * lisp/env.el (setenv,setenv-internal): Replace string-match with string-match-p. 2018-07-21 Ken Brown Pacify GCC 7 with -Wformat-overflow * src/w32term.c (x_draw_glyphless_glyph_string_foreground): Force sprintf to write at most 6 bytes, excluding the terminating null byte. 2018-07-21 Eli Zaretskii Minor rewording of last change * lisp/vc/add-log.el (add-log-dont-create-changelog-file) (add-log--pseudo-changelog-buffer-name) (add-log--changelog-buffer-p, add-change-log-entry): Doc fixes. * etc/NEWS: Improve wording of last change. * doc/emacs/maintaining.texi (Change Log Commands): Improve wording of last change. 2018-07-21 João Távora New option to make 'C-x 4 a' use file-less ChangeLog buffers * doc/emacs/maintaining.texi (Change Log Commands): Document add-log-dont-create-changelog-file. * etc/NEWS (Change Logs Mode): Mention add-log-dont-create-changelog-file. * lisp/vc/add-log.el (add-log-file-name): Add comment. (add-log-dont-create-changelog-file): New variable. (add-log--pseudo-changelog-buffer-name) (add-log--changelog-buffer-p): New helpers. (add-log-find-changelog-buffer): New function. (add-log--pseudo-changelog-buffer-name): Respect add-log-dont-create-changelog-file. * lisp/vc/log-edit.el (log-edit-changelog-entries): Use add-log-find-changelog-buffer. 2018-07-21 Bozhidar Batsov Make ielm accept an optional buffer name param The ielm buffer name was hardcoded which made it hard for programs to interactively create ielm buffers with different names and switch to them (e.g. perhaps you want to have one ielm buffer for each of the Elisp projects you're working on). 2018-07-21 Eli Zaretskii Fix recording keyboard macros when input method is active * lisp/international/quail.el (quail-start-translation) (quail-start-conversion): Bind inhibit--record-char to t for the first character of a translated sequence. * src/keyboard.c (record_char): Don't record events from macros to dribble file, per documentation. (Fopen_dribble_file): Doc fix. (syms_of_keyboard) : New variable. (record_char): Don't record input event if inhibit--record-char is non-nil. (Bug#32108) 2018-07-21 Paul Eggert Report base of out-of-range input fixnums * src/lread.c (string_to_number): Report the base of an out-of-range fixnum. Problem reported by Andy Moreton in: https://lists.gnu.org/r/emacs-devel/2018-07/msg00696.html 2018-07-20 Paul Eggert * src/fns.c (Feql, Fequal): Improve floating-point doc. 2018-07-20 Glenn Morris Merge from origin/emacs-26 3e72298 Improve documentation of 'pcase-defmacro rx' ba9b9bb Fix TTY colors breakage by 'clear-face-cache' f56ad42 * admin/MAINTAINERS: Add files maintained by me (Michael Albi... 7a258fa Adapt shadowfile.el for Tramp (Bug#4526, Bug#4846) cb50077 Fix auth-source-delete (Bug#26184) a4767a6 Avoid assertion violations in gnutls.c 90110f8 Don't use a literal "C-u" in ispell.el help message text f4e7f6d Improve documentation of 'seqp' ed13639 Clarify usage and dependencies between several Flyspell features Conflicts: etc/NEWS test/lisp/auth-source-tests.el 2018-07-20 Paul Eggert Simplify w32cygwinx.c and pacify GCC (Bug#32189) * src/w32cygwinx.c (format_string): New function. (Fw32_battery_status): Use it. 2018-07-20 Michael Albinus * lisp/net/trampver.el (customize-package-emacs-version-alist): Add Tramp version integrated in Emacs 26.2. 2018-07-19 Paul Eggert Prefer NILP (x) to EQ (x, Qnil) This simplifies the code a bit, and also simplifies some potential future changes slightly (e.g., altering eq vs eql). * src/alloc.c (mark_object): * src/callint.c (fix_command): * src/chartab.c (Fchar_table_range, Fset_char_table_range): * src/dbusbind.c (XD_OBJECT_TO_DBUS_TYPE, xd_signature): * src/dired.c (Fsystem_users): * src/fileio.c (Fdo_auto_save): * src/fns.c (concat): * src/frame.c (get_frame_param, frame_inhibit_resize) (store_in_alist, store_frame_param, x_set_autoraise) (x_set_autolower, x_get_arg): * src/image.c (Fclear_image_cache): * src/intervals.c (intervals_equal): * src/intervals.h (DEFAULT_INTERVAL_P): * src/lread.c (substitute_object_recurse): * src/menu.c (digest_single_submenu) (find_and_call_menu_selection) (find_and_return_menu_selection): * src/nsfns.m (x_set_icon_name, Fx_create_frame): * src/nsmenu.m (ns_menu_show): * src/nsselect.m (ns_string_to_pasteboard_internal) (Fns_selection_exists_p, Fns_selection_owner_p): * src/process.c (Faccept_process_output) (wait_reading_process_output): * src/terminal.c (store_terminal_param): * src/textprop.c (verify_interval_modification): * src/xdisp.c (next_element_from_buffer): * src/xfaces.c (Finternal_set_lisp_face_attribute): * src/xfns.c (x_set_icon_type, Fx_synchronize): * src/xmenu.c (x_menu_show): * src/xselect.c (Fx_selection_owner_p) (Fx_selection_exists_p): * src/xwidget.c (xwidget_view_lookup): Prefer NILP (x) to EQ (x, Qnil). 2018-07-19 Tom Tromey Fix bignum creation when EMACS_INT is wider than long * src/alloc.c (mpz_set_intmax_slow, mpz_set_uintmax_slow): New functions. * src/data.c (arith_driver, Frem, Fmod, ash_lsh_impl, Fadd1) (Fsub1): Use mpz_set_intmax, mpz_set_uintmax. * src/emacs-module.c (module_make_integer): Use mpz_set_intmax. * src/floatfns.c (Fabs): Use mpz_set_intmax. * src/lisp.h (mpz_set_intmax, mpz_set_uintmax): New inline functions. (mpz_set_uintmax_slow, mpz_set_intmax_slow): Declare. 2018-07-19 Tom Tromey Add missing @end defun * doc/lispref/numbers.texi (Bitwise Operations): Add missing @end defun. 2018-07-19 Paul Eggert Improve doc for floating point ‘=’ vs ‘eql’ * doc/lispref/numbers.texi (Float Basics, Comparison of Numbers): Improve documentation of ‘=’ vs ‘eq’, ‘eql’ and ‘equal’ when NaNs and signed zeros are involved. 2018-07-19 Charles A. Roelli Add 'font-lock-maximum-decoration' levels for Python * etc/NEWS: New entry under Python mode. * lisp/progmodes/python.el (python-font-lock-keywords-level-1) (python-font-lock-keywords-level-2) (python-font-lock-keywords-maximum-decoration): New variables based off the incumbent 'python-font-lock-keywords'. (python-font-lock-keywords): Change it to a list of the new symbols, for use in the 'car' of 'font-lock-defaults'. (python-mode): Set the 'car' of 'font-lock-defaults' to the value of 'python-font-lock-keywords', instead of the symbol 'python-font-lock-keywords'. 2018-07-18 Paul Eggert * etc/NEWS: Fix eql typo in previous change. 2018-07-18 Stefan Monnier * lisp/comint.el: Clean up namespace (shell-strip-ctrl-m): Mark as obsolete. (comint-send-invisible): Rename from `send-invisible`. (send-invisible): Make it an obsolete alias. * lisp/net/rlogin.el: Adjust accordingly; Use lexical-binding. * lisp/shell.el: Adjust accordingly. 2018-07-18 Filipp Gunbin Fix imenu--generic-function after fix for Bug#32024. * lisp/imenu.el (imenu--generic-function): Restore returning of nconc result from the function. Move filtering out empty menus so it is done before removing dummy element and splicing main element into index-alist. 2018-07-18 Paul Eggert * etc/NEWS: Mention eql etc. NaN fix. 2018-07-18 Paul Eggert Fix bug with eql etc. on NaNs Fix a bug where eql, sxhash-eql, memql, and make-hash-table were not consistent on NaNs. Likewise for equal, sxhash-equal, member, and make-hash-table. Some of these functions ignored NaN significands, whereas others treated them as significant. It's more logical to treat significands as significant, and this typically makes eql a bit more efficient on floats, with just one integer comparison instead of one to three floating-point comparisons. * doc/lispref/numbers.texi (Float Basics): Document that NaNs are never numerically equal, but might be eql. * src/fns.c (WORDS_PER_DOUBLE): Move to top level of this file. (union double_and_words): Now named, and at the top level of this file. (same_float): New function. (Fmemql, Feql, internal_equal, cmpfn_eql): Use it, so that the corresponding functions treat NaNs consistently. (sxhash_float): Simplify based on above-mentioned changes. * test/src/fns-tests.el (fns-tests-equality-nan): New test. 2018-07-17 Stefan Monnier * lisp/net/soap-client.el (soap-type-of): Optimize for Emacs≥26 2018-07-17 Alexander Gramiak Remove menu name from emacs-lisp-mode-map (Bug#27114) * lisp/progmodes/elisp-mode.el (emacs-lisp-mode-map): Don't give a menu name to the top-level map, the menu name is only useful for the menu-map. 2018-07-17 Paul Eggert Update from gnulib This incorporates: 2018-07-17 gnulib-tool: limit line length for git send-email * lib/gnulib.mk.in: Regenerate. 2018-07-17 Robert Pluim Don't check unibyte hostnames for pure-ASCII * src/process.c (network_lookup_address_info_1): Only check multibyte hostnames for pure-ASCII. * test/src/process-tests.el (unibyte-domain-name): Test unibyte domain names with network-lookup-address-info. 2018-07-17 Paul Eggert Update from Gnulib This causes config.guess to assume support for shell functions, a safe assumption nowadays. * build-aux/config.guess, build-aux/config.sub: Copy from Gnulib. 2018-07-17 Robert Pluim Add network-lookup-address-info description * doc/lispref/processes.texi (Misc Network): Document network-lookup-address-info. 2018-07-17 Robert Pluim Add tests for network-lookup-address-info * test/src/process-tests.el (lookup-family-specification): Test network-lookup-address-info api. (lookup-unicode-domains): Test that unicode domains fail. (lookup-google): Test that normal lookups succeed. (non-existent-lookup-failure): Check that known non-existent domains fail. 2018-07-17 Robert Pluim Refactor getaddrinfo usage * src/process.c: (network_lookup_address_info_1): New function, does most of the work to call getaddrinfo. Now checks hostname for pure-ASCII. (Fmake_network_process): Use it. (Fnetwork_lookup_address_info): Likewise. Error check family argument. 2018-07-17 Michael Albinus Add variable main-thread, fix Bug#32169 * doc/lispref/threads.texi (Basic Thread Functions): Add example, how to propagate signals to the main thread. Describe variable `main-thread'. Document optional argument CLEANUP of `thread-last-error'. * src/thread.c (Fthread_last_error): Add optional argument CLEANUP. (Bug#32169) (main-thread): New defvar. * test/src/thread-tests.el (thread-last-error): Adapt declaration. (main-thread): Declare. (threads-main-thread): New test. (threads-errors): Extend test. 2018-07-16 Charles A. Roelli Improve description of window configs in 'register-val-describe' * etc/NEWS: Describe the change. * lisp/register.el (register-val-describe) [(window-configuration-p (car val))]: Include the shown buffers in the return value to make 'register-read-with-preview' more useful. (Bug#30863) 2018-07-16 Charles A. Roelli * configure.ac [$HAVE_NS]: Correct build instructions. Running 'make install' to test a repo build on macOS used to be required, but is no longer needed. 2018-07-16 Robert Pluim Implement hostname->ip lookup function * src/process.c (conv_sockaddr_to_lisp): Add include_port argument. Don't put a port in the result if this is false. (conv_addrinfo_to_lisp, Fprocess_datagram_address) (connect_network_socket, network_interface_list) (network_interface_info, server_accept_connection) (init_process_emacs): Update callers. (Fnetwork_lookup_address_info): New function. Performs hostname to ip address lookups. * src/w32.c (network_interface_get_info): Update callers of conv_sockaddr_to_lisp * etc/NEWS : mention addition of 'network-lookup-address-info' 2018-07-15 Noam Postavsky Reject gpg 2.0 for epg configs by default (Bug#23561) Previously, gpg2 2.0 would be rejected, but the same version installed as "gpg" would be accepted. * lisp/epg-config.el (epg-gpg2-minimum-version): New constant. (epg-config--program-alist) : Require a version in 1.4.3..2.0 or 2.1.6+., not just anything above 1.4.3. (epg-check-configuration): Accept a list of required version intervals, in addtion to just a single minimum. 2018-07-15 Paul Eggert * lisp/format.el (format-proper-list-p): New alias. 2018-07-15 Noam Postavsky Don't test symmetric operations on gpg 2.0 (Bug#23561) On the Hydra test machines, which have gpg 2.0, the symmetric tests fail. * test/lisp/epg-tests.el (with-epg-tests): Pass REQUIRE-PUBLIC-KEY to `epg-tests-find-usable-gpg-configuration' and call it before `epg-make-context' so that the latter uses the resulting cached config. (epg-tests-find-usable-gpg-configuration): Only allow gpg 2.0 for symmetric operations. Clear `epg--configurations' and don't pass NO-CACHE to `epg-find-configuration'. (epg-tests--config-program-alist): Use copy-tree to avoid modifying the epg-config--program-alist cons values. * test/lisp/emacs-lisp/package-tests.el (package-test-signed): Allow running with gpg 2.0. 2018-07-15 Michael Albinus Precise dav/davs in Tramp manual * doc/misc/tramp.texi (GVFS based methods): Mention `owncloud' method for special `dav'/`davs' file names. 2018-07-15 Michael Albinus Fix Bug#32147 * test/lisp/net/secrets-tests.el (secrets-test02-collections) (secrets-test03-items): Test for both "Login" or "login" collection. (Bug#32147) 2018-07-14 Noam Postavsky Update package.el test for message format changes * test/lisp/emacs-lisp/package-tests.el (package-test-signed): Update the expected message. The message was changed in 2018-06-25 "Reformat package.el message strings for future l10n". (with-package-test, with-fake-help-buffer): Add debug declarations. 2018-07-14 Noam Postavsky Fix gpg detection for tests (Bug#23561) * test/lisp/emacs-lisp/package-tests.el (package-test-signed): Stop using epg-check-configuration and ignore-errors, they're redundant because epg-find-configuration already does all that. * test/lisp/epg-tests.el (epg-tests-find-usable-gpg-configuration): Remove tracing. (with-epg-tests): Skip test if no gpg config is found. (epg-decrypt-1 epg-roundtrip-1, epg-sign-verify-1, epg-sign-verify-2) (epg-import-1): Don't check gpg configuration at top-level, rely on `with-epg-tests' instead. Checking the gpg configuration requires a valid HOME (or GNUPGHOME), which is provided by `with-epg-tests'. 2018-07-14 Jimmy Yuen Ho Wong Show full issuer and subject distinguished names CAs like Let's Encrypt do not put O and OU into the Subject's DN. Similarly, O and OU are often used to indicate Domain Validated or Organization Validation as opposed to the actual OU. Issuer CN often contains the issuer's server or as an indication of Extended Validation certificate as opposed to the actual issuer organization. The Hostname part as extracted from the Subject is also confusing, as in the case of a hostname mismatch, the Subject's CN, which `nsm-format-certificate' naively calls the Hostname, will not actually match the hostname in the problem preamble. * lisp/net/nsm.el (nsm-format-certificate): Show full DN of Issuer and Subject. Remove Hostname. (nsm-certificate-part, nsm-parse-subject): Removed. 2018-07-14 Jimmy Yuen Ho Wong Full certificate chain details for NSM * lisp/net/nsm.el (nsm-check-tls-connection): Fix issue with plural problems in message. Prefix every problem with a bullet. (nsm-query-user): Add new view the full certificate chain by pressing d. (nsm-format-certificate): Improve basic certificate and session info formatting. * src/gnutls.c (emacs_gnutls_certificate_export_pem): New function. (gnutls_certificate_details): Rename to emacs_gnutls_certificate_details. Add :pem to result list. (Fgnutls_format_certificate): New function for formatting a PEM to human-readable text. 2018-07-14 Jimmy Yuen Ho Wong Add option to bypass NSM TLS checks on local networks * lisp/net/net-utils.el (nslookup-host-ipv4, nslookup-host-ipv6, ipv6-expand): New functions to lookup IPv4 and IPv6 addresses from DNS. * lisp/net/nsm.el (nsm-trust-local-network, nsm-should-check, nsm-check-tls-connection, nsm-check-plain-connection): New defcustom `nsm-trust-local-network' lets users customize whether NSM should check for TLS problems when connecting to the hosts on their local networks. `nsm-should-check' determines whether `nsm-check-tls-connection' and `nsm-check-plain-connection' should perform checks. localhost is implicitly trusted, thus checks are never performed there. 2018-07-14 Jimmy Yuen Ho Wong Revamp Network Security manager checks for TLS * lisp/net/nsm.el (network-security-level, nsm-level, nsm-new-fingerprint-ok-p): Remove `paranoid' level and related code. * lisp/net/nsm.el (nsm-tls-checks, nsm-tls-check-version, nsm-tls-check-compression, nsm-tls-check-renegotiation-info-ext, nsm-tls-check-verify-cert, nsm-tls-check-same-cert, nsm-tls-check-null-suite, nsm-tls-check-export-kx, nsm-tls-check-anon-kx, nsm-tls-check-md5-sig, nsm-tls-check-rc4-cipher, nsm-tls-check-dhe-prime-kx, nsm-tls-check-sha1-sig, nsm-tls-check-ecdsa-cbc-cipher nsm-tls-check-dhe-kx, nsm-tls-check-rsa-kx, nsm-tls-check-3des-cipher, nsm-tls-check-cbc-cipher, nsm-save-fingerprint-maybe, nsm-tls-post-check-functions): New options and functions for checking TLS handshake problems. * lisp/net/nsm.el (nsm-check-certificate, network-security-protocol-checks, nsm-protocol-check--diffie-hellman-prime-bits, nsm-protocol-check--3des, nsm-protocol-check--rc4, nsm-protocol-check--signature-sha1, nsm-protocol-check--intermediate-sha1, nsm-protocol-check--ssl, nsm-check-protocol): Remove in favor of `nsm-tls-checks' and `nsm-tls-check-*' functions. * lisp/net/nsm.el (nsm-verify-connection): Ensure connection is checked even when `network-security-level' is `low'. * lisp/net/nsm.el (nsm-check-tls-connection): Batch all problems found before querying the user. * lisp/net/nsm.el (nsm--encryption): Renamed to `nsm-cipher-suite'. * lisp/net/nsm.el (nsm-fingerprint-ok-p): No longer prompt when certificate fingerprints mismatch. Returns a boolean instead when the fingerprint of the certificate received matches the saved fingerprints. * lisp/net/nsm.el (nsm-query): Change signature. Accepts a list of problems and a preformatted message instead of just a message format and the arguments for the message. * lisp/net/nsm.el (nsm-query-user): Change signature. Accepts a preformatted message and the peer status of the handshake instead of a message format, its arguments and the certificate for the host. * lisp/net/nsm.el (nsm-save-host): Change signature. Accepts a list of problems after the WHAT parameter. Saves multiple fingerprints for the same host in case the host load balances a TLS server with more than one certificates signed with different keys. Makes sure conditions are not removed when updating a fingerprint. * lisp/net/nsm.el (nsm-format-certificate): Display the TLS handshake's renegotiation info extension, compression level, encrypt-then-MAC extension, and key exchange prime bit length. * src/gnutls.c (gnutls-peer-status-warning-describe, gnutls-peer-status): Check for certificate verification problems introduced since GnuTLS 3.1. * src/gnutls.c (gnutls-peer-status): `:compression', `:encrypt-then-mac' and `:safe-renegotiation' are now contained in the peer status result return value. 2018-07-14 Jimmy Yuen Ho Wong Set standard value of `gnutls-min-primes-bits' to nil * lisp/net/gnutls.el (gnutls-min-prime-bits): Set standard value to nil in order to let GnuTLS manage the minimum DH prime bits accepted. 2018-07-14 Jimmy Yuen Ho Wong Check TLS certs against CRL * lisp/net/gnutls.el (gnutls-boot-parameters): Return `gnutls-crlfiles' in `:crlfiles'. (gnutls-crlfiles): New defcustom. (gnutls--get-files): New defun. (gnutls-trustfiles, gnutls-crlfiles): Delegate to `gnutls--get-files' to return a list of filenames, accepts glob pattern. 2018-07-14 Charles A. Roelli Add to documentation of 'jump-to-register' * lisp/register.el (jump-to-register): * doc/emacs/regs.texi (Position Registers): Document that jumping to a register can push the mark. 2018-07-14 Jonathan Kyle Mitchell Avoid infloop in redisplay due to faulty mode-line properties * src/xdisp.c (safe_set_text_properties): New function. (display_mode_element): Call Fset_text_properties through internal_condition_case_n, using safe_set_text_properties as a wrapper. (Bug#32038) 2018-07-13 Stefan Monnier * lisp/vc/diff-mode.el (diff-font-lock-prettify): New var (diff--font-lock-prettify): New function. (diff-font-lock-keywords): Use it. 2018-07-13 Glenn Morris Merge from origin/emacs-26 17ebb6e (origin/emacs-26) Use consistent function names in thread-tes... 1c86229 Fix format error in Faccept_process_output b38b91a Lessen stack consumption in recursive read1 3eb4603 Match w32 paths in grep sans --null hits (Bug#32051) 5cc7c4b Fix previous make-network-process change d6a1b69 Another documentation improvement in flyspell.el 9b49a8e Improve documentation of Flyspell 3744fda Provide feature 'threads ef9025f Save the server alias on reconnect (Bug#29657) db3874b Refer to "proper lists" instead of "true lists" 35e0305 Avoid turning on the global-minor-mode recursively 51bf4e4 Fix Bug#32085 2018-07-13 Basil L. Contovounesios Tweak subr-x.el substring functions * lisp/emacs-lisp/subr-x.el (string-join): #'-quote function symbol. (string-trim-left, string-trim-right): Make better use of substring for minor speedup. * test/lisp/emacs-lisp/subr-x-tests.el (subr-x-test-string-trim-left, subr-x-test-string-trim-right) (subr-x-test-string-remove-prefix) (subr-x-test-string-remove-suffix): New tests. 2018-07-13 Basil L. Contovounesios Minor cus-theme.el simplifications * lisp/cus-theme.el (custom-new-theme-mode, customize-themes) (custom-theme-choose-mode): Use setq-local. (customize-create-theme): Ditto. Use delete-all-overlays. (describe-theme-1, custom-theme-summary): Simplify logic. 2018-07-13 Basil L. Contovounesios Minor custom.el simplifications * lisp/custom.el (custom-quote): Duplicate macroexp-quote. (custom-load-symbol, customize-mark-to-save, customize-mark-as-set) (custom-theme-name-valid-p, enable-theme, custom-enabled-themes) (disable-theme): Simplify logic. 2018-07-13 Basil L. Contovounesios * lisp/cus-theme.el: Use lexical-binding 2018-07-13 Basil L. Contovounesios * lisp/custom.el: Use lexical-binding Remove duplicate 'Custom Themes' comment heading. (deftheme, custom-declare-theme): Fix advertised calling convention. (custom-enabled-themes): Fix message grammar. 2018-07-13 Basil L. Contovounesios Fix custom-available-themes file expansion For discussion, see thread starting at https://lists.gnu.org/archive/html/emacs-devel/2018-05/msg00222.html. * lisp/custom.el: (custom-available-themes): Use directory-files instead of performing arbitrary wildcard expansion in file names. (custom-theme--load-path): Document return value. * test/lisp/custom-tests.el: New file. (custom-theme--load-path): New test. 2018-07-13 Basil L. Contovounesios Disable no-byte-compile in built-in themes * etc/themes/adwaita-theme.el: * etc/themes/deeper-blue-theme.el: * etc/themes/dichromacy-theme.el: * etc/themes/leuven-theme.el: * etc/themes/light-blue-theme.el: * etc/themes/manoj-dark-theme.el: * etc/themes/misterioso-theme.el: * etc/themes/tango-dark-theme.el: * etc/themes/tango-theme.el: * etc/themes/tsdh-dark-theme.el: * etc/themes/tsdh-light-theme.el: * etc/themes/wheatgrass-theme.el: * etc/themes/whiteboard-theme.el: * etc/themes/wombat-theme.el: Disable no-byte-compile. https://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00614.html https://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00060.html 2018-07-13 Basil L. Contovounesios Improve loading of byte-compiled custom themes * lisp/custom.el (load-theme): Load byte-compiled file of safe themes when available. https://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00614.html https://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00060.html 2018-07-13 Robert Pluim Add GMP to emacs_config_features * configure.ac : Add GMP to emacs_config_features. This allows us to determine whether the built-in gmp-mini is being used or not. 2018-07-12 Tom Tromey Document bignums * doc/lispref/numbers.texi (Numbers, Integer Basics) (Predicates on Numbers, Comparison of Numbers) (Arithmetic Operations, Bitwise Operations): Update for bignums. * doc/lispref/objects.texi (Integer Type, Type Predicates): Update for bignums. * etc/NEWS: Update for bigums. 2018-07-12 Tom Tromey Bignum fixes for byte-compiler and bytecode interpreter * lisp/emacs-lisp/byte-opt.el: Mark bignump and fixnump as side-effect-and-error-free-fns. * src/bytecode.c (exec_byte_code): Handle bignums. 2018-07-12 Tom Tromey Use fixnump rather than integerp in some spots * src/buffer.c (syms_of_buffer): Use Qfixnump, not Qintegerp. * src/data.c (syms_of_data): Define fixnump symbol. * src/lisp.h (lisp_h_CHECK_FIXNUM): Use Qfixnump. (struct Lisp_Buffer_Objfwd): Update comment. 2018-07-12 Tom Tromey Make ash and lsh handle bignums * src/data.c (ash_lsh_impl): Handle bignums. * test/src/data-tests.el (data-tests-ash-lsh): New test. 2018-07-12 Tom Tromey Make logb handle bignums * src/floatfns.c (Flogb): Handle bignums. * test/src/floatfns-tests.el (bignum-logb): New test. 2018-07-12 Tom Tromey Make % and mod handle bignums * src/data.c (Frem, Fmod): Handle bignums. * src/lisp.h (CHECK_INTEGER_COERCE_MARKER): New macro. * test/src/data-tests.el (data-tests-check-sign) (data-tests-%-mod): New tests. 2018-07-12 Tom Tromey Let C modules access bignum values * src/emacs-module.c (module_extract_integer, module_make_integer): Handle bignums. 2018-07-12 Tom Tromey Make min and max handle bignums * src/data.c (minmax_driver): Handle bignums. * test/src/data-tests.el (data-tests-minmax): New test. 2018-07-12 Tom Tromey Make logcount handle bignums * src/data.c (Flogcount): Handle bignums. * test/src/data-tests.el (data-tests-logcount): New test. 2018-07-12 Tom Tromey Make lognot handle bignums * src/data.c (Flognot): Handle bignums. 2018-07-12 Tom Tromey Make 1+ and 1- handle bignums * src/data.c (Fadd1, Fsub1): Handle bignums. * test/src/data-tests.el (data-tests-1+, data-tests-1-): New tests. 2018-07-12 Tom Tromey Make abs handle bignums * src/floatfns.c (Fabs): Handle bignums. * test/src/floatfns-tests.el (bignum-abs): New test. 2018-07-12 Tom Tromey Allow conversion of bignums to floats * src/floatfns.c (extract_float, Ffloat): Handle bignums. * src/lisp.h (XFLOATINT): Handle bignums. * test/src/floatfns-tests.el (bignum-to-float): New test. 2018-07-12 Tom Tromey Make format handle bignums * src/editfns.c (styled_format): Handle bignums. * test/src/editfns-tests.el (read-large-integer): Update. (format-bignum): New test. 2018-07-12 Tom Tromey Make number-to-string work for bignums * src/data.c (Fnumber_to_string): Handle bignum. * test/src/data-tests.el (data-tests-number-to-string): New test. 2018-07-12 Tom Tromey Add some bignum tests * test/src/data-tests.el (data-tests-bignum, data-tests-+) (data-tests-/, data-tests-number-predicates): New tests. * test/src/fns-tests.el (test-bignum-eql): New test. * test/src/lread-tests.el (lread-long-hex-integer): Expect bignum. * test/src/print-tests.el (print-bignum): New test. 2018-07-12 Tom Tromey Make arithmetic work with bignums * src/data.c (free_mpz_value): New function. (arith_driver): Rewrite. (float_arith_driver): Handle bignums. 2018-07-12 Tom Tromey Make comparison operators handle bignums * src/data.c (bignumcompare): New function. (arithcompare): Handle bignums. 2018-07-12 Tom Tromey Make the reader accept bignums * src/data.c (Fstring_to_number): Update. * src/lisp.h (S2N_OVERFLOW_TO_FLOAT): Remove. * src/lread.c (free_contents): New function. (read_integer): Handle bignums. (read1): Update. (string_to_number): Handle bignums. (syms_of_lread): Remove read-integer-overflow-as-float. * src/process.c (Fsignal_process): Update. 2018-07-12 Tom Tromey Make eql work for bignums * src/fns.c (Feql, internal_equal): Handle bignums. 2018-07-12 Tom Tromey Provide new functions to create bignums * src/alloc.c (make_bignum_str, make_number): New functions. * src/lisp.h (make_bignum_str, make_number): Declare. 2018-07-12 Tom Tromey Introduce the bignum type * src/alloc.c (mark_object): Handle Lisp_Misc_Bignum. (sweep_misc): Call mpz_clear for Lisp_Misc_Bignum. * src/data.c (Ftype_of): Handle Lisp_Misc_Bignum. (Fintegerp, Finteger_or_marker_p, Fnatnump, Fnumberp) (Fnumber_or_marker_p): Update for bignum. (Ffixnump, Fbignump): New defuns. (syms_of_data): Update. * src/emacs.c (xrealloc_for_gmp, xfree_for_gmp): New functions. (main): Call mp_set_memory_functions. * src/lisp.h (enum Lisp_Misc_Type) : New constant. (struct Lisp_Bignum): New. (union Lisp_Misc): Add u_bignum. (BIGNUMP, XBIGNUM, INTEGERP, NATNUMP, NUMBERP, CHECK_NUMBER) (CHECK_INTEGER, CHECK_NUMBER_COERCE_MARKER): New functions. * src/print.c (print_object): Handle Lisp_Misc_Bignum. 2018-07-12 Tom Tromey Add configury for GMP library * configure.ac (GMP_LIB, GMP_OBJ): New substs. * src/Makefile.in (GMP_OBJ, GMP_OBJ): New variables. (base_obj): Add GMP_OBJ. (LIBES): Add GMP_LIB. * src/mini-gmp.h: New file. * src/mini-gmp.c: New file. 2018-07-12 Tom Tromey Rename integerp->fixnum, etc, in preparation for bignums * src/json.c, src/keyboard.c, src/keyboard.h, src/keymap.c, src/kqueue.c, src/lcms.c, src/lisp.h, src/lread.c, src/macros.c, src/marker.c, src/menu.c, src/minibuf.c, src/msdos.c, src/print.c, src/process.c, src/profiler.c, src/search.c, src/sound.c, src/syntax.c, src/sysdep.c, src/term.c, src/terminal.c, src/textprop.c, src/undo.c, src/w16select.c, src/w32.c, src/w32console.c, src/w32cygwinx.c, src/w32fns.c, src/w32font.c, src/w32inevt.c, src/w32proc.c, src/w32select.c, src/w32term.c, src/w32uniscribe.c, src/widget.c, src/window.c, src/xdisp.c, src/xfaces.c, src/xfns.c, src/xfont.c, src/xftfont.c, src/xmenu.c, src/xrdb.c, src/xselect.c, src/xterm.c, src/xwidget.c: Rename INTEGERP->FIXNUM, make_number->make_fixnum, CHECK_NUMBER->CHECK_FIXNUM, make_natnum->make_fixed_natum, NUMBERP->FIXED_OR_FLOATP, NATNUMP->FIXNATP, CHECK_NATNUM->CHECK_FIXNAT. 2018-07-12 Noam Postavsky Speed up smerge-refine-regions by avoiding fsync * lisp/vc/smerge-mode.el (smerge-refine-regions): Bind write-region-inhibit-fsync to t. This was reported in https://github.com/magit/magit/pull/2834 to give a noticable speedup. 2018-07-12 Noam Postavsky Don't skip epg-tests even with gpg 2.0 (Bug#23561) * test/lisp/epg-tests.el (epg-tests--config-program-alist): New constant, which allows gpg2 version 2.0+. (epg-tests-find-usable-gpg-configuration): Pass it to epg-find-configuration. 2018-07-12 Stefan Monnier Fix the bootstrap differently, so zerop can be where it belongs Suggested by Robert Pluim . * lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Avoid cadr/cddr. * lisp/subr.el (zerop): Un-revert 2018-07-10T23:08:58-07:00!contovob@tcd.ie. 2018-07-11 Glenn Morris Unbreak bootstrap * lisp/subr.el (zerop): Revert previous change, which caused bootstrap to fail with void function cadr. 2018-07-10 Stefan Monnier * lisp/vc/diff-mode.el: Perform hunk refinement from font-lock Remove redundant :group arguments. (diff-font-lock-refine): New var. (diff--refine-hunk): New function, extracted from diff-refine-hunk. (diff-refine-hunk): Use it. (diff--font-lock-refine--refresh): New function. (diff--font-lock-refined): New function. (diff-font-lock-keywords): Use it. 2018-07-10 Filipp Gunbin Fix Bug#32107 * lisp/progmodes/sql.el (sql-buffer-live-p): Fix handling of optional connection argument. (Bug#32107) 2018-07-10 Jonathan Kyle Mitchell Fix infinite recursion in eshell/clear (Bug#31326) * lisp/eshell/esh-mode.el (eshell/clear): Bind eshell-input-filter-functions to nil to prevent entries like eshell-smart-display-setup from causing infinite recursion. 2018-07-10 Noam Postavsky * lisp/indent.el (indent-line-to): Fix dedenting of tabs. 2018-07-09 Paul Eggert * lisp/format.el (format-annotate-single-property-change): Simplify. 2018-07-09 Basil L. Contovounesios Add predicate proper-list-p For discussion, see emacs-devel thread starting at https://lists.gnu.org/archive/html/emacs-devel/2018-04/msg00460.html. * lisp/subr.el (proper-list-p): New function. Implementation suggested by Paul Eggert in https://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00138.html. * doc/lispref/lists.texi (List Elements): * etc/NEWS: Document proper-list-p. * lisp/org/ob-core.el (org-babel-insert-result): * lisp/emacs-lisp/byte-opt.el (byte-optimize-if): * lisp/emacs-lisp/cl-macs.el (cl--make-usage-args): Use proper-list-p. * lisp/emacs-lisp/ert.el (ert--proper-list-p): Remove. Replaced by proper-list-p in lisp/subr.el. (ert--explain-equal-rec): Use proper-list-length. * lisp/format.el (format-proper-list-p): Remove. Replaced by proper-list-p in lisp/subr.el. (format-annotate-single-property-change): Use proper-list-p. * test/lisp/emacs-lisp/ert-tests.el (ert-test-proper-list-p): Move from here... * test/lisp/subr-tests.el (subr-tests--proper-list-length): ...to here, mutatis mutandis. 2018-07-09 Noam Postavsky Respect field boundaries in indent-line-to (Bug#32014) * lisp/indent.el (indent-line-to): Use the back-to-indentation point as the end-point of whitespace removal, rather than backward-to-indentation which doesn't respect field boundaries. * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-indent-with-read-only-field): Don't expect to fail. 2018-07-09 Noam Postavsky Merge from emacs-26 db3f779780 ; Test for Bug#32014 90d95b000c Explicitly reject :server and :nowait (Bug#31903) 917158f8c9 Fix Bug#32090 # Conflicts: # src/process.c 2018-07-09 Noam Postavsky Merge from emacs-26 65889a6d12 Fix bootstrap infloop in GNU/Linux alpha 48efd1c98b Minor fix of a recent documentation change 3302b7cd7f Mention the NSM in the gnutls variable doc strings 40c2ce743b Remove test code from last commit e02d8e29c6 Fix Bug#32084 da5d6dbe39 Fix (length NON-SEQUENCE) documentation 2018-07-09 Sam Steingold dired-do-find-regexp: Use rgrep-find-ignored-directories. 2018-07-08 Paul Eggert Fix etc/HELLO searching in grep.el * lisp/progmodes/grep.el (grep-compute-defaults): Search for "^Copyright", not "^English", as the latter is no longer present in etc/HELLO and the former is more likely to survive future changes to etc/HELLO (Bug#32093). 2018-07-08 Paul Eggert Fix floating point exceptions on Alpha (Bug#32086) * admin/merge-gnulib (GNULIB_MODULES): Add fpieee. * m4/fpieee.m4: New file, copied from Gnulib. * m4/gnulib-comp.m4: Regenerate. 2018-07-08 Eli Zaretskii Minor improvements in recent NSM documentation changes * doc/emacs/misc.texi (Network Security): Improve wording and markup of last change. * src/gnutls.c (Fgnutls_peer_status): Doc fix. * etc/NEWS: Improve wording of last change. 2018-07-08 Lars Ingebrigtsen Fix typo in sha1-intermediate check * lisp/net/nsm.el (nsm-protocol-check--intermediate-sha1): Allow storing the exception with a correct name. 2018-07-08 Lars Ingebrigtsen Document network-security-protocol-checks better * doc/emacs/misc.texi (Network Security): Rearrange the network-security-protocol-checks documentation and try to explain more what this all means and what checks are triggered. 2018-07-08 Lars Ingebrigtsen NSM-related doc fixes * src/gnutls.c (Fgnutls_peer_status): Mention :certificates in the doc string. * etc/NEWS: Mention how to switch off the additional TLS checks. 2018-07-07 Glenn Morris * lisp/imenu.el: Require cl-lib, not internal components of same. * admin/make-tarball.txt, admin/release-process: Refcard tweaks. 2018-07-07 Glenn Morris Merge from origin/emacs-26 a427de9 (origin/emacs-26) Fix bug #11732 3a04e15 Improve documentation of 'emacs-lock-mode' 9d6ca5a * lisp/imenu.el (imenu-generic-expression): Doc fix. (Bug#32... fdd7e7d Improve indexing of 'eval-defun' in ELisp manual 10af989 Fix (length CIRCULAR) documentation 271d1f7 Tramp editorials 4abf94f Clarify and improve doc strings of 'eval-last-sexp' and friends 6cfc7a7 Automate upload of Emacs manuals to gnu.org b73cde5 Fix MH-E mail composition with GNU Mailutils (SF#485) 0dce5e5 Speed up 'replace-buffer-contents' some more 00fdce0 * doc/emacs/docstyle.texi: Avoid messing up the html output. Conflicts: admin/make-tarball.txt 2018-07-07 Drew Adams Fix 2 minor bugs in 'imenu--generic-function' * lisp/imenu.el (imenu--generic-function): Move point to START before checking whether the current item is inside a comment or a string. Remove any empty menus that could have been added before returning. (Bug#32024) 2018-07-07 John Shahid Keep interactive uses of 'recenter' backward compatible (Bug#31325) * src/window.c (Frecenter): Change the interactive spec to always pass a non-nil value to the REDISPLAY argument when called interactively. * lisp/window.el (recenter-top-bottom): Make sure 'recenter's second argument is non-nil everywhere. * doc/emacs/windows.texi (Textual Scrolling): Update documentation of 'recenter'. 2018-07-07 Eli Zaretskii Documentation followup for bug#32029 * etc/NEWS: Mention 'xref-find-definitions-at-mouse' * doc/emacs/maintaining.texi (Looking Up Identifiers): Document 'xref-find-definitions-at-mouse'. 2018-07-07 Tobias Gerdin (tiny change) New function 'xref-find-definitions-at-mouse' * lisp/progmodes/xref.el (xref-find-definitions-at-mouse): New function. (Bug32029) 2018-07-07 Eli Zaretskii Fix recent change in window.c * src/window.c (scroll_command): Fix minor inefficiency in last change: don't call Fset_buffer if the buffer is already set to be what we want. (Bug#31988) 2018-07-06 Paul Eggert Update from gnulib This incorporates: 2018-07-04 gnulib-tool: minor tweaks for --gnu-make * build-aux/config.guess, build-aux/config.sub: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2018-07-06 Basil L. Contovounesios Fix scrolling * src/window.c (scroll_command): Fix scrolling. 2018-07-04 Michael Albinus * lisp/shell.el (shell-completion-vars): Set `comint-file-name-prefix' to "" for local default directory. 2018-07-03 Paul Eggert Adjust to Gnulib change with -Wswitch-default * configure.ac: Simplify by not bothering to omit -Wswitch-default, as Gnulib no longer enables it by default. 2018-07-03 Paul Eggert Update from Gnulib This incorporates: 2018-07-01 getloadavg: don't redefine WINDOWS32 2018-07-01 manywarnings: omit -Wswitch-default * build-aux/config.sub, lib/getloadavg.c, m4/manywarnings.m4: Copy from Gnulib. 2018-07-03 Tom Tromey Fix Tcl indentation in a namespace Fixes bug#32035 * lisp/progmodes/tcl.el (tcl-proc-list): Add "namespace". * test/lisp/progmodes/tcl-tests.el (tcl-mode-namespace-indent): New test. 2018-07-03 Stefan Monnier * lisp/mail/sendmail.el: Use lexical-binding (mail-recover-1): Declare dired-trivial-filenames. 2018-07-03 Paul Eggert Fix typo in --with-x-toolkit=no code * src/xmenu.c (pop_down_menu) [!USE_X_TOOLKIT && !USE_GTK]: Fix type typo introduced by 2018-06-14T22:59:08!eggert@cs.ucla.edu. 2018-07-03 João Távora Adjust previous jsonrpc change (nth 2) is probably a better alternative to caddr, and in Emacs 26.1 we can pass 0 as :service to automatically find an available port. * lisp/jsonrpc.el (jsonrpc--call-deferred): Use cl-caddr. * test/lisp/jsonrpc-tests.el (jsonrpc--call-with-emacsrpc-fixture): Pass 0 as :service to when making the listen server. 2018-07-02 Glenn Morris * lisp/mail/sendmail.el (mail-from-style): Improve obsolescence message. 2018-07-02 Glenn Morris Merge from origin/emacs-26 fc5cae7 ; Fix ChangeLog typo. e17a5e5 ; make change-history-commit f205928 * etc/HISTORY: Cite Brinkoff on early history. 4e58ca8 Document internal use of 'above-suspended' z-group frame para... 4bd43b0 Increase max-lisp-eval-depth adjustment while in debugger (bu... ab98352 Improve on last change in replace-buffer-contents 2f149c0 Fix a factual error in Introduction to Emacs Lisp 8ad50a3 ; * lisp/files.el (buffer-offer-save): Doc fix. (Bug#32000) c80f31f Minor improvements in documentation of imenu.el 8ebb683 Avoid errors with recentering in 'skeleton-insert' e980a3c * src/lisp.h: Omit obsolete comment re bytecode stack. eec71eb Speed up replace-buffer-contents 93c41ce Remove extra process call from vc-git-find-file-hook 7ea0873 ; Update some commentary 4a7f423 Speed up vc-git-dir-status-files 9134c84 Avoid compiler warning using coding.h Conflicts: src/editfns.c 2018-07-02 Glenn Morris Merge from origin/emacs-26 d008ef3 * src/xdisp.c (Vmouse_autoselect_window): Clarify doc-string ... 6f6d525 Detect a non-list package archive content properly (Bug#22311) 2018-07-02 João Távora Make lisp/jsonrpc.el work with Emacs 25.1 * lisp/jsonrpc.el (Package-Requires): Require Emacs 25.1 (jsonrpc-lambda): Use cl-gensym. (jsonrpc--call-deferred): Caddr doesn't exist in emacs 25.1. * test/lisp/jsonrpc-tests.el (jsonrpc--call-with-emacsrpc-fixture): New function. (jsonrpc--with-emacsrpc-fixture): Use it. (deferred-action-complex-tests): Adjust test for Emacs 25.1 2018-07-01 John Shahid Optionally add argument description in minor mode DOC (bug#10754) Add a paragraph to minor mode's docstring documenting the mode's ARG usage if the supplied docstring doesn't already contain the word "ARG". * lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): New const. (easy-mmode--arg-docstring): New function. (define-minor-mode): Use them. Remove argument documentation from all minor modes. 2018-07-01 Eli Zaretskii Fix last change * src/w32console.c (Fset_screen_color): Call Frecenter with 2 arguments. (Bug#31325) * etc/NEWS: * doc/lispref/windows.texi (Textual Scrolling): Clarify the role of the second argument to 'recenter'. 2018-07-01 John Shahid Add a new argument to 'recenter' to allow finer control of redisplay * src/window.c (recenter): Add a new REDISPLAY argument to allow the caller to control the redisplay behavior. 'recenter' will only redisplay the frame if this new arg and 'recenter-redisplay' are both non-nil. (recenter-top-bottom): Pass an extra non-nil argument to 'recenter' to force a redisplay. (Bug#31325) 2018-07-01 Michael Albinus Minor change in tramp-tests.el * test/lisp/net/tramp-tests.el (tramp-test03-file-name-host-rules): Cleanup before running the test. 2018-06-30 Stefan Monnier * lisp/hexl.el (hexl-follow-ascii-mode): Fix last fix (bug#32021) 2018-06-30 Glenn Morris Unbreak bootstrap * lisp/jsonrpc.el (jsonrpc-connection, jsonrpc-process-connection): Don't autoload defclass, else dumping fails loading loaddefs.el due to trying to autoload eieio-defclass-autoload. 2018-06-30 Glenn Morris * doc/lispref/text.texi (JSONRPC): Add missing menu. 2018-06-30 João Távora * lisp/jsonrpc.el (subr-x): Only require when compiling * lisp/jsonrpc.el: Add "Package-Requires" and "Version" headers 2018-06-30 João Távora Add lisp/jsonrpc.el * doc/lispref/text.texi (Text): Add JSONRPC. (JSONRPC): New node. * etc/NEWS (New Modes and Packages in Emacs 27.1): Mention jsonrpc.el * lisp/jsonrpc.el: New file. * test/lisp/jsonrpc-tests.el: New file. 2018-06-30 Eli Zaretskii * lisp/hexl.el (hexl-follow-ascii-mode): Fix a typo. (Bug#32021) 2018-06-30 Eli Zaretskii Speed up reading sub-process output on MS-Windows * src/w32proc.c (syms_of_ntproc) : Set to zero. For the details, see this discussion: http://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00711.html. * src/w32.c (_sys_read_ahead): Update the commentary for w32-pipe-read-delay usage. * doc/emacs/msdos.texi (Windows Processes): Document w32-pipe-read-delay. * etc/NEWS: Mention the change of the value of w32-pipe-read-delay. 2018-06-30 Eli Zaretskii Speed-up let-binding of automatically-local variables * src/data.c (set_default_internal): Use FOR_EACH_LIVE_BUFFER when binding variables that don't nominally have a local value, to avoid slowing down due to a large number of dead buffers. (Bug#18522) (Bug#31853) 2018-06-29 Paul Eggert Update from Gnulib This incorporates: 2018-06-29 regex: glibc does not use intprops.h 2018-06-28 regex: port to recently proposed glibc regex merge 2018-06-25 Continue to use spaces for indentation, not tabs 2018-06-25 manywarnings: Don't enable -Wjump-misses-init by default 2018-06-25 acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function 2018-06-24 manywarnings: accommodate GCC 9: remove -Wchkp and -Wabi 2018-06-24 maint: clarify comments about sticky EOF 2018-06-24 af_alg: avoid hangs when reading from streams 2018-06-17 crypto: use byteswap 2018-06-17 getloadavg: Return 0 on MS-Windows without Cygwi 2018-06-17 getloadavg: Allow building on MS-Windows without Cygwin * build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex: * lib/acl-internal.c, lib/acl-internal.h, lib/get-permissions.c: * lib/getloadavg.c, lib/gettimeofday.c, lib/md5.c, lib/pselect.c: * lib/set-permissions.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: * lib/time.in.h, m4/getloadavg.m4, m4/gnulib-common.m4: * m4/manywarnings.m4, m4/pthread_sigmask.m4, m4/vararrays.m4: Copy from Gnulib. 2018-06-29 Paul Eggert unbind_to performance tuning * src/alloc.c (which_symbols): * src/dispnew.c (Fredisplay): * src/editfns.c (Fsubst_char_in_region): * src/fileio.c (Fdo_auto_save): * src/indent.c (Fvertical_motion): * src/keymap.c (Fcurrent_active_maps): * src/lread.c (Feval_buffer): * src/minibuf.c (get_minibuffer): * src/sysdep.c (system_process_attributes): * src/textprop.c (Fnext_single_char_property_change) (Fprevious_single_char_property_change): * src/window.c (Fscroll_other_window, Fscroll_other_window_down): * src/xdisp.c (Fformat_mode_line): Help the compiler eliminate tail recursion in call to unbind_to. * src/coding.c (decode_coding_gap): Omit unnecessary unbind_to, as we’re about to call unbind_to anyway. * src/coding.c (Fread_coding_system): * src/eval.c (eval_sub): * src/xdisp.c (handle_single_display_spec, decode_mode_spec): * src/xselect.c (x_get_local_selection): Avoid need to save a machine register when calling unbind_to. * src/minibuf.c (Ftry_completion, Fall_completions): Omit unnecessary assignment. 2018-06-29 Andreas Schwab * lisp/url/url-http.el (url-http-create-request): Doc fix. 2018-06-29 Andreas Schwab Use a non-proxy request when retrieving https URLs via a proxy * lisp/url/url-http.el (url-https-proxy-after-change-function): Bind url-http-proxy to nil around url-http-create-request. 2018-06-29 Michael Albinus Sync with Tramp 2.4.0 * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.4.0". * lisp/net/tramp-gvfs.el (tramp-gvfs-handler-mounted-unmounted): Ignore unknown GVFS methods. * test/lisp/net/tramp-tests.el (tramp-test42-asynchronous-requests): Tag as :unstable. 2018-06-29 Paul Eggert * src/lisp.h: Add comment (Bug#31996#25). 2018-06-28 Noam Postavsky Let ediff '=' compare against ancestor buffer (Bug#11320) * lisp/vc/ediff-util.el (ediff-inferior-compare-regions): Ask user whether to compare against the ancestor or merge buffer. Use read-multiple-choice for A vs B buffer query. 2018-06-28 Paul Eggert Fix recently-introduced SAFE_FREE bug Problem reported by Andy Moreton (Bug#31996). * src/lisp.h (union specbinding.unwind_array): Remove unused member func. Move array after nelts, as this is likely to generate more efficient code in safe_free, which can call xfree with the same value either way. (safe_free): Also handle SPECPDL_UNWIND_AWAY. 2018-06-28 Paul Eggert Tune SAFE_FREE On my platform (Fedora 28 x86-64, AMD Phenom II X4 910e) this sped up a SAFE_FREE-using microbenchmark (string-distance "abc" "abc") by about 18%, and shrank the Emacs text size by about 0.1%. * src/callint.c (Fcall_interactively): * src/callproc.c (call_process): * src/doc.c (get_doc_string, Fsnarf_documentation): * src/editfns.c (Freplace_buffer_contents): * src/emacs-module.c (funcall_module): * src/eval.c (Flet): * src/process.c (Fmake_process): * src/term.c (tty_menu_show): * src/xdisp.c (safe__call): * src/xmenu.c (x_menu_show): Use SAFE_FREE_UNBIND_TO. * src/data.c (wrong_choice): No need to call SAFE_FREE here. * src/lisp.h (USE_SAFE_ALLOCA): * src/regex.c (REGEX_USE_SAFE_ALLOCA): Do not declare sa_must_free local; no longer needed. All uses removed. (SAFE_FREE): Rewrite in terms of safe_free. (safe_free): New function, optimized to use xfree. (SAFE_FREE_UNBIND_TO): New macro. (safe_free_unbind_to): New function. 2018-06-27 João Távora Respect s-s-b-default-predicate when killing terminal Fixes: Bug#31951 * lisp/server.el (server-save-buffers-kill-terminal): Only pass PRED=t to save-some-bufers if ARG in non-nil. 2018-06-27 Vincent Belaïche Allow 'file:' protocol for Info-follow-nearest-node. 2018-06-26 Glenn Morris Merge from origin/emacs-26 12c77f6 (origin/emacs-26) Add ido-fallback special variable (Bug#31707) 826e8d1 Merge branch 'emacs-26' of git.sv.gnu.org:/srv/git/emacs into... c784876 Tighten a cross-reference in documentation 517dc0b Fix last change in tramp-sh.el f43186f Revert previous patch; comment was OK after all. 4c3306e Fix lead comment for count_trailing_zero_bits b419f27 ; * doc/emacs/files.texi (Interlocking): Fix a non-portable @... 7488de4 * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix docstring q... 0b69807 Make a minor update to the CSS mode docstring 9a53b6d Say how to override a primitive interactive spec 1d77078 Fix Bug#31941 2018-06-25 Jean-Christophe Helary Reformat package.el message strings for future l10n * lisp/emacs-lisp/package.el (package-buffer-info) (package--download-one-archive, package-install-selected-packages) (package-autoremove, describe-package-1, package-menu-toggle-hiding) (package-menu-hide-package, package-menu--mark-upgrades-1) (package-menu--list-to-prompt, package-menu--prompt-transaction-p) (package-menu-execute, package-menu--find-and-notify-upgrades): Reformat message strings to remove need for plural computation. Try to put full sentences in source string literals. * test/lisp/emacs-lisp/package-tests.el (package-test-describe-package): Update to match new message format. 2018-06-25 Noam Postavsky Suppress indent errors during electric indentation (Bug#18764) * lisp/electric.el (electric-indent-post-self-insert-function): Suppress errors from indent code, but don't suppress errors from elsewhere in this function. That way, if trouble is encountered with electric indent "not working", the error should be reproducible by calling indent directly (as is the case for Bug#18764), or else it's from the electric indent code and will be reported normally. 2018-06-25 Paul Eggert (format "%d" F) now truncates floating F Problem reported by Paul Pogonyshev (Bug#31938). * src/editfns.c: Include math.h, for trunc. (styled_format): For %d, truncate floating-point numbers and convert -0 to 0, going back to how Emacs 26 did things. * doc/lispref/strings.texi (Formatting Strings): Document behavior of %o, %d, %x, %X on floating-point numbers. * src/floatfns.c (trunc) [!HAVE_TRUNC]: Rename from emacs_trunc and make it an extern function, so that editfns.c can use it. All callers changed. * test/src/editfns-tests.el (format-%d-float): New test. 2018-06-25 Lars Ingebrigtsen Fix spelling of "intermediate" (it's not "intermediary") * doc/emacs/misc.texi (Network Security): Ditto. * lisp/net/nsm.el (network-security-protocol-checks): Fix spelling on "intermediate". (nsm-protocol-check--intermediate-sha1): Ditto. 2018-06-25 Lars Ingebrigtsen Clean up redundant code from previous checkins * src/gnutls.c (gnutls_verify_boot): Remove reduntant setting of p->gnutls_certificates, which is now performed by gnutls_deinit_certificates. 2018-06-25 João Távora Mention use of C-h . (display-local-help) in Flymake manual Fixes: Bug#31921 * doc/misc/flymake.texi (Using Flymake): Mention display-local-help. 2018-06-24 Lars Ingebrigtsen Make the intermediary-sha1 check work * lisp/net/nsm.el (nsm-protocol-check--intermediary-sha1): Make the "skip the root cert" logic work (suggested by Noam Postavsky). 2018-06-24 Lars Ingebrigtsen Don't use XCAR in possibly-nil situations * src/gnutls.c (Fgnutls_peer_status): certs theoretically may be nil, so don't use XCAR. 2018-06-24 Noam Postavsky (Network Security): Fix the description of the 3DES weakness * doc/emacs/misc.texi (Network Security): Fix the description of the 3DES weakness. 2018-06-24 Lars Ingebrigtsen Make more TLS checks trigger on the default `medium' level * doc/emacs/misc.texi (Network Security): Update the doc to say what's on the different levels. * lisp/net/nsm.el (nsm-protocol-check--intermediary-sha1): Check intermediary certificates for SHA1. (nsm-protocol-check--3des): Check for 3DES ciphers. (network-security-protocol-checks): Put most of the checks on `medium'. 2018-06-24 Lars Ingebrigtsen Tweak previous gnutls change for efficiency * src/gnutls.c (Fgnutls_peer_status): Minor optimisation to avoid computing the topmost certificate twice. 2018-06-24 Lars Ingebrigtsen Return the entire TLS certificate chain back to the caller * src/gnutls.c (gnutls_deinit_certificates): New function. (Fgnutls_peer_status): Return all certificates in the chain back to Lisp land. (gnutls_verify_boot): Compute all the x509 certificates in the chain. * src/process.h (struct Lisp_Process): Adjust gnutls fields so that we can keep tracks of all certificates in the chain instead of just the host certificate. 2018-06-24 Tom Tromey Fix two tcl-mode defun-related bugs Fixes bug#23565 * lisp/progmodes/tcl.el (tcl-mode): Set beginning-of-defun-function and end-of-defun-function. (tcl-beginning-of-defun-function, tcl-end-of-defun-function): New defuns. * test/lisp/progmodes/tcl-tests.el: New file. 2018-06-24 Lars Ingebrigtsen Fix reverse test in previous check-in * lisp/net/nsm.el (nsm-check-protocol): Fix reverse test in previous check-in. 2018-06-24 Lars Ingebrigtsen Refactor the protocol NSM checks for flexibility * doc/emacs/misc.texi (Network Security): Mention network-security-protocol-checks. * lisp/net/nsm.el (network-security-protocol-checks): New variable. (nsm-check-protocol): Refactor the checks into separate functions for greater flexibility. (nsm-protocol-check--diffie-hellman-prime-bits) (nsm-protocol-check--rc4, nsm-protocol-check--ssl) (nsm-protocol-check--signature-sha1): Refactored out of the big function. 2018-06-23 Glenn Morris Merge from origin/emacs-26 bbc9d37 (origin/emacs-26) Fix previous change in minibuffer-default-a... 7caeef1 * src/editfns.c (Fformat): Make %x easier to spot in doc stri... ecc29fb Improve responsiveness while in 'replace-buffer-contents' 8182d64 Improve documentation of 'server-start' and friends decdfed Clarify wording about functions' argument lists 5abac8b * lisp/doc-view.el: Fix typos in the commentary. (Bug#31937) 2018-06-23 Glenn Morris Merge from origin/emacs-26 5cb3991 Fix a typo in emacs-lisp-intro.texi d6aa55e Avoid segfaults in replace-buffer-contents with large buffers d22b8d1 Adjust for scaling for mode-line popup menus (Bug#31880) 3d2e3dc Change name of `seqp' argument (Bug#26411) 40e1db8 Change index of ";" to better reflect it's usage (Bug#31623) d289e7e Fix bug of 'mouse-drag-and-drop-region' to detect edges of re... e292c09 Fix #'fun handling inside `labels' (Bug#31792) 2018-06-23 Michael Albinus * lisp/net/tramp-sh.el (tramp-get-ls-command-with): Fix typo. 2018-06-22 Stefan Monnier * lisp/net/tramp-sh.el (tramp-sh--quoting-style-options): New function (tramp-do-directory-files-and-attributes-with-stat) (tramp-do-file-attributes-with-ls): Use it. 2018-06-22 Michael Albinus Improve backward compatibility of Tramp * lisp/net/tramp-adb.el (tramp-adb-handle-exec-path): * lisp/net/tramp-sh.el (tramp-sh-handle-exec-path): Use ´file-remote-p'. (tramp-get-ls-command-with): Handle busybox specially. * test/lisp/net/tramp-tests.el (tramp-test34-exec-path): Check for `fboundp'. Use `file-remote-p'. Hide compiler warning for older Emacsen. 2018-06-22 Eli Zaretskii Document 'major-mode-suspend' and 'major-mode-restore' * doc/lispref/modes.texi (Major Modes): Document 'major-mode-suspend' and 'major-mode-restore'. (Bug#31551) * etc/NEWS: Mark the corresponding entry as documented in manuals. 2018-06-21 Stefan Monnier New functions to switch back and forth to another major mode * lisp/subr.el (major-mode--suspended): New var. (major-mode-suspend, major-mode-restore): New funs, extracted from doc-view. * lisp/doc-view.el (doc-view--previous-major-mode): Remove. (doc-view-mode): Use major-mode-suspend. (doc-view-fallback-mode): Use major-mode-restore. * lisp/hexl.el: (hexl-mode--minor-mode-p, hexl-mode--setq-local): Remove. (hexl-mode): Use major-mode-suspend and hexl-follow-ascii-mode. (hexl-mode-exit): Use major-mode-restore. (hexl-activate-ruler, hexl-follow-line): Don't bother trying to preserve earlier state, now that entering/leaving hexl-mode kills local vars. (hexl-follow-ascii-mode): New proper local minor mode. (hexl-follow-ascii): Rewrite, using it. * lisp/image-mode.el (image-mode-previous-major-mode): Remove. (image-mode): Use major-mode-suspend. (image-mode-to-text): Use major-mode-restore. 2018-06-21 memeplex Remove broken icon from tooltip (Bug#31884) * src/gtkutil.c (xg_show_tooltip): Call gtk_widget_show instead of gtk_widget_show_all, the latter displays an extra placeholder icon. 2018-06-21 Paul Eggert Set group when installing, too From a patch by Ulrich Mueller in: https://lists.gnu.org/r/emacs-devel/2018-06/msg00687.html * Makefile.in (set_installuser): Also set the group, in order to match install(1) behavior. Also, don’t clutter stderr with a diagnostic if ‘id’ is missing. 2018-06-20 Eli Zaretskii Improve documentation of a recent change * doc/lispref/processes.texi (Subprocess Creation): Improve wording of documentation for the function 'exec-path'. * etc/NEWS: Improve wording and formatting of recently added entries. * lisp/files.el (exec-path): Doc fix. 2018-06-20 Michael Albinus Implement command completion in remote shells. (Bug#31704) * doc/lispref/files.texi (Locating Files): Describe optional argument REMOTE of `executable-find'. (Magic File Names): Add `exec-path'. * doc/lispref/processes.texi (Subprocess Creation): Describe function `exec-path'. * doc/misc/tramp.texi (Remote programs): Explain refresh of search paths by `tramp-cleanup-this-connection'. * etc/NEWS: Mention 'exec-path' and 'executable-find'. * lisp/files.el (exec-path): New defun. (executable-find): Add optional argument REMOTE. * lisp/shell.el (shell-completion-vars): Set `comint-file-name-prefix'. (shell--command-completion-data): Use `(exec-path)'. (Bug#31704) * lisp/net/ange-ftp.el (exec-path): * lisp/net/tramp.el (tramp-file-name-for-operation): * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist): * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist) : Add handler. * lisp/net/tramp-adb.el (tramp-adb-handle-exec-path): New defun. (tramp-adb-maybe-open-connection): Do not set "remote-path" connection property. * lisp/net/tramp-compat.el (tramp-compat-exec-path): New defun. * lisp/net/tramp-sh.el (tramp-sh-handle-exec-path): New defun. * lisp/net/tramp.el (tramp-eshell-directory-change): Use it. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test38-make-nearby-temp-file) (tramp-archive-test41-file-system-info) (tramp-archive-test43-auto-load) (tramp-archive-test43-delay-load): Rename. * test/lisp/net/tramp-tests.el (tramp-test34-exec-path): New test. (tramp-test36-make-auto-save-file-name) (tramp-test37-find-backup-file-name) (tramp-test38-make-nearby-temp-file) (tramp-test39-special-characters) (tramp-test39-special-characters-with-stat) (tramp-test39-special-characters-with-perl) (tramp-test39-special-characters-with-ls, tramp-test40-utf8) (tramp-test40-utf8-with-stat, tramp-test40-utf8-with-perl) (tramp-test40-utf8-with-ls, tramp-test41-file-system-info) (tramp-test42-asynchronous-requests, tramp-test43-auto-load) (tramp-test43-delay-load, tramp-test43-recursive-load) (tramp-test43-remote-load-path, tramp-test44-unload): Rename. 2018-06-19 João Távora Properly ignore stderr in elisp Flymake backend Naively passing `null-device' as stderr creates a buffer named "/dev/null" instead. Pass a hidden buffer name instead. (Bug#31902). * lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Pass hidden buffer as make-process :stderr instead of null-device. 2018-06-19 Daniel Colascione Fix theme application Fix an inverted test. Patch due to Andy Moreton. * lisp/cus-face.el (custom-theme-set-faces): Correct sense of `custom--should-apply-setting' test. 2018-06-19 Daniel Colascione Unbreak dabbrev This commit partially reverts edb1f85a27817a3fac38bb85752671414819203b, which results in dabbev expansion failing due to trying to switch to the null buffer. * lisp/dabbrev.el (dabbrev--progress-reporter): Restore variable. (dabbrev--find-expansion): Restore original code. 2018-06-18 Stefan Monnier lisp/obsolete/*tls.el: Note when obsolescence was decided 2018-06-18 João Távora Skip a json.c test unless functions being tested exist * test/src/json-tests.el (json-parse-with-custom-null-and-false-objects): Skip this test unless functions being tested exist. 2018-06-18 João Távora Mark a specific electric-pair-mode test as an expected failure See https://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00535.html * test/lisp/electric-tests.el (electric-pair-whitespace-chomping-2-at-point-4-in-c++-mode-in-strings): Mark as failing. 2018-06-18 Mark Oteiza Change errant if to when (Bug#31840) * lisp/emacs-lisp/subr-x.el: Expand to 'when' instead of 'if'. 2018-06-18 João Távora Electric-pair-mode lets modes choose how to skip whitespace cc-mode.el-based major-modes with stricter syntax for invalid NL-terminated strings might choose to have electric-pair-mode skip some of whitespace into non-string-syntax regions, for the sake of letting electric-pair-mode chomp that whitespace and make the string valid again. * lisp/elec-pair.el (electric-pair-post-self-insert-function): Call it. (electric-pair-skip-whitespace-function): New buffer-local variable. 2018-06-18 Noam Postavsky Stop assuming .git is a directory in gitmerge.el * admin/gitmerge.el (gitmerge-maybe-resume): Use 'git rev-parse --git-dir' to find the git directory rather than assuming it is .git/ (that assumption fails for separated worktrees). 2018-06-18 Noam Postavsky Default to splash on current frame, if none visible (Bug#31169) * lisp/startup.el (fancy-splash-frame): Default to current frame. 2018-06-18 Noam Postavsky Move tls.el and starttls.el to lisp/obsolete/ (Bug#31457) * lisp/obsolete/tls.el: Moved from lisp/net/tls.el. * lisp/gnus/nnimap.el: * lisp/url/url-http.el: Don't require tls, since it's obsolete. * lisp/net/network-stream.el: Only require tls if we actually try to use it (i.e., when (gnutls-available-p) returns nil). Declare some functions to fix compilation warnings. * lisp/obsolete/starttls.el: Moved from lisp/net/starttls.el. * lisp/net/sieve-manage.el: * lisp/net/network-stream.el: Don't require `starttls' at the top-level, declare the variables and functions used instead. (network-stream-open-starttls): Only require `starttls' if needed (i.e., gnutls-available-p fails). * etc/NEWS: Announce obsoletion. 2018-06-18 Glenn Morris Merge from origin/emacs-26 3673770 (origin/emacs-26) Fix vertical-motion with 'visual' line-numb... d8bff53 ; CONTRIBUTE: Add a couple of nits. 2018-06-18 Glenn Morris Merge from origin/emacs-26 ebe065f Prevent errant scroll on mouse click (Bug#31546) ffd2018 Minor documentation fix cf4dc95 * lisp/window.el (window-toggle-side-windows): Doc fix. (Bug... 2018-06-18 Glenn Morris Merge from origin/emacs-26 63ba73a Fix documentation of ':propertize' in mode-line-format 22aa665 Reject invalid 5-byte sequences when detecting UTF-8 encoding 0d3c358 Fix 'replace-buffer-contents' in multibyte buffers c79a627 Update etc/NEWS for mail-source-movemail-program change 63f1dc4 Improve movemail default 0b1a2ae Delete description of deleted Customize functions fcd66d0 Keep vc-print-log from putting point at buffer end (Bug#31764) Conflicts: etc/NEWS 2018-06-18 Glenn Morris Merge from origin/emacs-26 a933ebe Improve commentary in info.el 94e84a9 ; Further wording fix in tramp.texi a5a0b11 Fix wording in tramp.texi 2933242 * doc/misc/tramp.texi (Remote shell setup): Fix typo. 2018-06-18 Glenn Morris Merge from origin/emacs-26 5bdc344 ; Reduce quoting for SELECTOR in 'make -C test' (Bug#31744) b6b793b ; test/Makefile.in: Add TEST_INTERACTIVE option (Bug#31744). 1aa906f Make 'tags' targets respect --with-silent-rules (Bug#31744) Conflicts: test/Makefile.in test/README 2018-06-18 Glenn Morris Merge from origin/emacs-26 9c6f35a * doc/lispref/files.texi (Unique File Names): Fix a typo. (B... 2018-06-18 Eli Zaretskii Improve documentation of recent changes in Comint * lisp/comint.el (comint-insert-previous-argument) (comint-arguments, comint-insert-previous-argument-from-end): Doc fixes. (comint-insert-previous-argument-from-end): Add :version. * doc/emacs/misc.texi (Shell Ring): Fix a typo in the name of 'comint-insert-previous-argument'. Document 'comint-insert-previous-argument-from-end'. (Bug#25271) * etc/NEWS: Reformat and rephrase the entry for recent Comint changes. 2018-06-18 Richard Stallman rmail-summary-by-senders defaults to sender * etc/NEWS: Mention this. * lisp/mail/rmailsum.el (rmail-summary-by-senders): Offer From field of current message as a default argument. 2018-06-17 Dima Kogan comint-insert-previous-argument doesn't detect and ignore trailing & This function is invoked in shell-mode by the user, and is meant to emulate what M-. does in zsh and bash: it inserts an argument from a previous command. Neither zsh nor bash treat a trailing & specially: M-. simply inserts it if it is encountered. Emacs DID have extra logic to detect and discard trailing &, but this logic was buggy, and a && anywhere in the sequence would confuse it. This patch simply removes that logic to fix the bug and to emulate zsh and bash more closely * lisp/comint.el (comint-insert-previous-argument): don't detect and ignore trailing & (Bug#25271) * etc/NEWS: Document this. 2018-06-17 Dima Kogan comint-insert-previous-argument counts args from start or from end This function is invoked in shell-mode by the user, and is meant to emulate what M-. does in zsh and bash: it inserts an argument from a previous command. Without a prefix argument, it inserts the last arg from the previous command; with an argument INDEX, it inserts the INDEX-th argument. bash counts from the start, while zsh counts from the end. This patch adds a variable `comint-insert-previous-argument-from-end' that emulates the zsh behavior if non-nil. * lisp/comint.el (comint-arguments): can take in negative arguments to count from the end, same as indexing in python. (comint-insert-previous-argument): if comint-insert-previous-argument-from-end is non-nil, INDEX counts arguments from the end; if nil, from the beginning (Bug#25271) * etc/NEWS: Document this. 2018-06-17 Glenn Morris * test/lisp/simple-tests.el (simple-tests-async-shell-command-30280): Use the correct emacs executable, not first in PATH. 2018-06-17 Michael Heerdegen Allow floats as 'pcase' QPATS * lisp/emacs-lisp/pcase.el (\`): Extend semantics of QPATS to all numbers. Add a comment explaining why we disallow some atoms as QPATS. * doc/lispref/control.texi (Backquote Patterns): Update the paragraph explaining QPATS. Remove a sentence suggesting an analogy between QPATS to self-quoting objects. 2018-06-17 João Távora Minor Flymake docstring fixes * lisp/progmodes/flymake.el (flymake-diagnostic-functions): Clarify meaning of :region in docstring. (flymake-start): Fix broken docstring. 2018-06-17 Eli Zaretskii Fix last change * etc/NEWS: Fix last added entry. * lisp/subr.el (dotimes-with-progress-reporter) (dolist-with-progress-reporter): Fix the advertised signature. * doc/lispref/display.texi (Progress): Fix last change. (Bug#31696) (Bug#31697) 2018-06-17 Tino Calancha Add new macro dolist-with-progress-reporter * lisp/subr.el (dolist-with-progress-reporter): New macro (Bug#31697). * lisp/cus-edit.el (custom-group-value-create): Use it. * lisp/dabbrev.el (dabbrev--progress-reporter): Delete variable. (dabbrev--find-expansion): Use dotimes-with-progress-reporter. * doc/lispref/display.texi: Document the macro. 2018-06-17 Tino Calancha dotimes-with-progress-reporter: Polymorphic 2nd argument * lisp/subr.el (dotimes-with-progress-reporter): Allow 2nd arg to be a string or a progress reporter (Bug#31696). * doc/lispref/display.texi (node Progress): Update manual. 2018-06-17 Michael Albinus Cleanup secrets-tests * test/lisp/net/secrets-tests.el (secrets-test03-items) (secrets-test04-search): Cleanup "session" collection initially. 2018-06-17 Eli Zaretskii When possible, prefer UTF-8 as the safe encoding for saving * lisp/international/mule-cmds.el (select-safe-coding-system): If possible, offer UTF-8 as the default encoding. (Bug#31807) 2018-06-16 Daniel Colascione Apply non-user themes only when asked Theme settings now generally aren't actually applied until a call to `enable-theme-, either one made explicitly or implicitly through `load-theme' with NO-ENABLE nil. This change has the effect of not applying theme changes just because we load a lisp file containing a theme specification. The previous behavior is preserved for the special case of the `user' theme, which is frequently used for ad-hoc customization. * lisp/cus-face.el (custom-theme-set-faces): Call `custom--should-apply-setting' to decide whether to apply a setting. * lisp/custom.el (custom--should-apply-setting): New function. (custom--inhibit-theme-enable): Add `apply-only-user' option; default to it. (custom-push-theme, custom-theme-set-variables): Call `custom--should-apply-setting' to decide whether to apply a setting. 2018-06-16 Noam Postavsky Don't forget to analyze args of lambda lifted functions (Bug#30872) * lisp/emacs-lisp/cconv.el (cconv--convert-funcbody): New function. (cconv--convert-function): Extracted from here. (cconv-convert): Also use it here, in the lambda lifted case, so that mutated args are properly accounted for. * test/lisp/emacs-lisp/cconv-tests.el: New test. 2018-06-16 Noam Postavsky Fix off by one error in python-mode assertion (Bug#30964) * lisp/progmodes/python.el (python-nav-end-of-statement): Don't assert that string-start is strictly greater than last-string-end, because the string end is a position outside of the string and may therefore be the same as the following string's start. * test/lisp/progmodes/python-tests.el (python-nav-end-of-statement-2): New test. 2018-06-16 Daniel Colascione Restore old echo_truncate condition * src/keyboard.c (read_key_sequence): Restore old echo_truncate condition. 2018-06-16 Daniel Colascione Make regex matching reentrant; update syntax during match * src/lisp.h (compile_pattern): Remove prototype of now-internal function. * src/regex.c (POS_AS_IN_BUFFER): Consult gl_state instead of re_match_object: the latter can change in Lisp. (re_match_2_internal): Switch back to UPDATE_SYNTAX_* FROM UPDATE_SYNTAX_FAST*, allowing calls into Lisp. * src/regex.h (re_match_object): Uncomment declaration. * src/search.c (struct regexp_cache): Add `busy' field. (thaw_buffer_relocation): Delete; rely on unbind. (compile_pattern_1): Assert pattern isn't busy. (shrink_regexp_cache): Don't shrink busy patterns. (clear_regexp_cache): Don't nuke busy patterns. (unfreeze_pattern, freeze_pattern): New functions. (compile_pattern): Return a regexp_cache pointer instead of the re_pattern_buffer, allowing callers to use `freeze_pattern' if needed. Do not consider busy patterns as cache hit candidates; error if we run out of non-busy cache entries. (looking_at_1, fast_looking_at): Snapshot Vinhibit_changing_match_data; mark pattern busy while we're matching it; unbind. (string_match_1, fast_string_match_internal) (fast_c_string_match_ignore_case): Adjust for compile_pattern return type. (search_buffer_re): Regex code from old search_buffer moved here; snapshot Vinhibit_changing_match_data; mark pattern busy while we're matching it; unbind. (search_buffer_non_re): Non-regex code from old search_buffer moved here. (search_buffer): Split into search_buffer_re, search_buffer_non_re. (syms_of_search): Staticpro re_match_object, even though we really shouldn't have to. * src/syntax.h (UPDATE_SYNTAX_TABLE_FORWARD_FAST): (UPDATE_SYNTAX_TABLE_FAST): Remove. * src/thread.h (struct thread_state): Remove m_re_match_object, which is global again. (It never needs to be preserved across thread switch.) 2018-06-16 Daniel Colascione Decouple dired from regex internals * src/dired.c: Remove use of regex.h (directory_files_internal): Use higher-level regular expression functions. 2018-06-16 Daniel Colascione Remove commented-out code in compile_pattern_1 * src/search.c (compile_pattern_1): Remove commented-out code. 2018-06-16 Daniel Colascione Tweak field ordering in re_pattern_buffer * src/regex.h (struct re_pattern_buffer): Reorder charset_unibyte field to keep bitfields together. 2018-06-16 Bozhidar Batsov Fix a docstring Fix references to RuboCop in ruby-mode.el 2018-06-16 João Távora Fix bug in elisp-flymake-byte-compile * lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Pass keyword args to make-process. 2018-06-16 Paul Eggert Rewrite memory-limit in Lisp Have it return Emacs virtual memory size, not the sbrk value which is often useless newadays. * doc/lispref/internals.texi (Garbage Collection): * etc/NEWS: Document this. * lisp/subr.el (memory-limit): New implementation in Lisp, written in terms of process-attributes, and which returns virtual memory size. * src/alloc.c (Fmemory_limit): Remove C implementation. 2018-06-16 Paul Eggert Fix byte compilation of (eq foo 'default) Do not use the symbol ‘default’ as a special marker. Instead, use a value that cannot appear in the program, improving on a patch proposed by Robert Cochran (Bug#31718#14). * lisp/emacs-lisp/bytecomp.el (byte-compile--default-val): New constant. (byte-compile-cond-jump-table-info) (byte-compile-cond-jump-table): Use it instead of 'default. * test/lisp/emacs-lisp/bytecomp-tests.el: (byte-opt-testsuite-arith-data): Add a test for the bug. 2018-06-16 Eli Zaretskii Use mint_ptr in w32notify.c * src/w32notify.c (Fw32notify_add_watch, Fw32notify_rm_watch) (Fw32notify_valid_p, w32_get_watch_object): Use make_mint_ptr and xmint_pointer. 2018-06-16 Eli Zaretskii * doc/lispref/text.texi (Parsing JSON): Minor formatting changes. 2018-06-16 Eli Zaretskii Minor doc string fixes in json.c * src/json.c (Fjson_serialize, Fjson_insert): Fix 'usage'. 2018-06-16 Eli Zaretskii Formatting and doc fixes in recent changes * src/xfaces.c (evaluate_face_filter): Explain the inner braces. (merge_face_ref): Fix whitespace. (syms_of_xfaces) : Doc fix. * src/xdisp.c (extend_face_to_end_of_line): Fix whitespace. 2018-06-16 Eli Zaretskii Improve documentation of several recent changes * src/xfaces.c (merge_face_ref): Fix a typo in the commentary. (evaluate_face_filter, filter_face_ref): Minor copyedits in the commentary. * doc/lispref/display.texi (Face Remapping): * doc/lispref/text.texi (Special Properties): Document the ':filter' face specs and their effects. Document 'face-filters-always-match'. * doc/emacs/files.texi (Visiting): Document the new possibility to visit large files literally in response to question asked by Emacs. * etc/NEWS: Mention the new possibility to visit large files literally. * lisp/files.el (files--ask-user-about-large-file): Use "literally" instead of "raw", for consistency with find-file-literally. * doc/lispref/frames.texi (Input Focus): Tell explicitly that focus-change events are sometimes supported on TTY frames. 2018-06-16 Eli Zaretskii Prevent QUIT to top level inside 'while-no-input' * lisp/subr.el (while-no-input): Handle the case when BODY never tests quit-flag, and runs to completion even though input arrives while BODY executes. (Bug#31692) 2018-06-16 Eli Zaretskii Fix a typo in xmenu.c * src/xmenu.c (x_menu_show): Replace a call to record_unwind_protect_pointer with record_unwind_protect_ptr. (Bug#31856) 2018-06-16 Ari Roponen Fix --with-cairo build * src/xterm.c (x_cr_destroy): Remove extra semicolon. (x_cr_export_frames): Fix a typo in calling record_unwind_protect_ptr. (Bug#31856) 2018-06-15 Paul Eggert * src/Makefile.in: Update paxctl comment. 2018-06-15 Paul Eggert Minor CANNOT_DUMP cleanups Mostly, this avoids munging executables when CANNOT_DUMP = yes, as the munging is needed only for unexec. * configure.ac (PAXCTL_dumped, PAXCTL_notdumped) [CANNOT_DUMP]: Leave these empty. (LD_SWITCH_SYSTEM_TEMACS) [CANNOT_DUMP]: Do not append -no-pie or -nopie. * src/alloc.c (my_heap_start) [CANNOT_DUMP]: Omit; not used. 2018-06-15 Paul Eggert Remove old combreloc hack It has not been needed for many years and gets in the way of portable dumping, address sanitization, etc. See: https://lists.gnu.org/r/emacs-devel/2016-12/msg00147.html * configure.ac (LDFLAGS_NOCOMBRELOC, emacs_cv_znocombreloc): Remove. All uses removed. * etc/PROBLEMS: Remove discussion of combreloc problems. 2018-06-15 Paul Eggert Fix typo in previous macfont.m change * src/macfont.m (macfont_descriptor_entity): Fix typo. Problem reported by Clemens Schüller. 2018-06-15 Paul Eggert Restore macfont.m casts to void * * src/macfont.m (macfont_set_family_cache): Restore casts to void * that were mistakenly removed in my recent change. The types in question are pointer-to-const. Problem reported by Clemens Schüller. 2018-06-15 João Távora Fix a bug in Flymake handling of region-specific reports The backend's diagnostic list must be updated too, not just cleared. * lisp/progmodes/flymake.el (flymake--diag): Add overlay field. (flymake--highlight-line): Return created overlay. (flymake--handle-report): Iterate the backend's diagnostics, not the overlays. Set diagnostic overlay. (flymake--run-backend): Don't clean diagnostic list here. (flymake-mode): Call delete-overlay directly. 2018-06-15 Eli Zaretskii Fix building --without-x and similar * src/keyboard.c (make_lispy_focus_out): Compile it unconditionally, as it is now supported on TTYs as well. Reported by Filipp Gunbin . 2018-06-15 João Távora Flymake and backends exchange hints abouts changed regions * lisp/progmodes/flymake.el (flymake--delete-own-overlays): Accept BEG and END. Rename from flymake-delete-own-overlays. (flymake-diagnostic-functions): Describe :region, :recent-changes in docstring. (flymake--handle-report): Accept REGION. (flymake--run-backend): Accept optional ARGS to pass to backend fn. (flymake--recent-changes): New buffer-local variable. (flymake-start): Call flymake--run-backend with recent changes. (flymake-mode): Initialize flymake--recent-changes. Call flymake--delete-own-overlays. (flymake-after-change-function): Collect recent changes. * doc/misc/flymake.texi (Backend functions): Describe :recent-changes and :region. * etc/NEWS (Flymake): Mention improvements in backend communication. 2018-06-15 Tino Calancha customize-apropos: Separate package name from its description * lisp/cus-edit.el (custom-group-value-create): Always insert documentation indented from its package name (Bug#31466). 2018-06-14 Paul Eggert Remove Lisp_Misc_Save_Value This type and its associated routines are no longer used. * src/alloc.c (voidfuncptr): Move here from src/lisp.h. (free_misc, make_save_int_int_int) (make_save_obj_obj_obj_obj, make_save_ptr) (make_save_ptr_int, make_save_ptr_ptr) (make_save_funcptr_ptr_obj, make_save_memory) (free_save_value, mark_save_value): Remove. (mark_object): Remove mention of Lisp_Misc_Save_Value. * src/lisp.h (Lisp_Misc_Save_Value, SAVE_SLOT_BITS) (SAVE_VALUE_SLOTS, SAVE_TYPE_BITS, enum Lisp_Save_Type) (struct Lisp_Save_Value, SAVE_VALUEP, XSAVE_VALUE) (save_type, XSAVE_POINTER, set_save_pointer) (XSAVE_FUNCPOINTER, XSAVE_INTEGER, set_save_integer) (XSAVE_OBJECT): Remove. (union Lisp_Misc): Remove u_save_value. (voidfuncptr): Move from here to src/alloc.c. * src/print.c (print_object): Remove support for printing Lisp_Misc_Save_Value. 2018-06-14 Paul Eggert New type Lisp_Misc_Ptr This is a streamlined version of Lisp_Save_Value, which contains just a pointer, as that is all Lisp_Save_Values are used for any more. With the previous changes, these objects are not primarily used as save values, so just call them "Misc" rather than "Save". * src/alloc.c (make_misc_ptr): New function. (mark_object): Mark Lisp_Misc_Ptr too. * src/lisp.h (Lisp_Misc_Ptr): New constant. (struct Lisp_Misc_Ptr): New type. (make_mint_ptr, mint_ptrp, xmint_pointer): Use Lisp_Misc_Ptr, not Lisp_Save_Value. (union Lisp_Misc): Add Lisp_Misc_Ptr. * src/print.c (print_object): Print Lisp_Misc_Ptr. 2018-06-14 Paul Eggert Avoid allocating Lisp_Save_Value for arrays * src/alloc.c (mark_maybe_objects): New function. * src/eval.c (default_toplevel_binding) (backtrace_eval_unrewind, Fbacktrace__locals): Treat array unwindings like other miscellaneous pdl types. (record_unwind_protect_array): New function. (do_one_unbind): Free the array while unwinding. (mark_specpdl): Mark arrays directly. * src/lisp.h (SPECPDL_UNWIND_ARRAY): New constant. (union specbinding): New member unwind_array. (SAFE_ALLOCA_LISP_EXTRA): Use record_unwind_protect_array instead of make_save_memory + record_unwind_protect. 2018-06-14 Paul Eggert Avoid allocating Lisp_Save_Value for excursions * src/editfns.c (save_excursion_save): New arg PDL, specifying where to save the state. All uses changed. (save_excursion_restore): Args are now the marker and info rather than a pointer to a Lisp_Save_Value containing them. All uses changed. * src/eval.c (default_toplevel_binding, Fbacktrace__locals): Treat excursions like other miscellaneous pdl types. (record_unwind_protect_excursion): Save data directly into the pdl rather than creating an object on the heap. This avoids the need to allocate and free an object. (do_one_unbind, backtrace_eval_unrewind): Unwind excursions directly. (mark_specpdl): Mark excursions directly. * src/lisp.h (SPECPDL_UNWIND_EXCURSION): New constant. (union specbinding): New member unwind_excursion. 2018-06-14 Paul Eggert Just use cons in macfont_descriptor_entity * src/macfont.m (macfont_descriptor_entity): Use cons instead of make_save_ptr_int, as this avoids the need for a special type and function for this one-off. 2018-06-14 Paul Eggert Avoid allocating a Lisp_Save_Value in ftfont.c * src/ftfont.c (struct ftfont_cache_data): New member face_refcount. (ftfont_lookup_cache): Clear it when initializing. Use make_mint_ptr, since this typically avoids the need to allocate a Lisp_Save_Value as refcount is now stored elsewhere. (ftfont_open2, ftfont_close): Manipulate the reference count in the struct, not in the save object. 2018-06-14 Paul Eggert Use record_unwind_protect_ptr to avoid allocation * src/term.c (struct tty_pop_down_menu): New type. (tty_pop_down_menu, tty_menu_show): Use it, along with record_unwind_protect_ptr, to avoid allocating a Lisp_Misc. * src/xmenu.c (struct pop_down_menu): New type. (pop_down_menu, x_menu_show): Use it, likewise. * src/xterm.c (x_cr_destroy, x_cr_export_frames): Use record_unwind_protect_pointer to avoid possibly allocating a Lisp_Misc. 2018-06-14 Paul Eggert Avoid Lisp_Misc allocation if C stack suffices * src/fileio.c (union read_non_regular): New type. (read_non_regular, Finsert_file_contents): Use it to avoid allocating a Lisp_Misc. * src/keymap.c (union map_keymap): New type. (map_keymap_char_table_item, map_keymap_internal): Use it to avoid allocating a Lisp_Misc. 2018-06-14 Paul Eggert Simplify init_module_assertions * src/emacs-module.c (init_module_assertions): Just use NULL instead of allocating a dummy on the stack and then using eassert. Practical platforms check for null pointer dereferencing nowadays, so this is good enough. 2018-06-14 Paul Eggert New mint_ptr representation for C pointers * src/lisp.h (make_mint_ptr, mint_ptrp, xmint_pointer): New functions. * src/dbusbind.c (xd_lisp_dbus_to_dbus, Fdbus__init_bus): * src/emacs-module.c (module_free_global_ref, Fmodule_load) (module_assert_runtime, module_assert_env, value_to_lisp) (lisp_to_value, initialize_environment) (finalize_environment, finalize_runtime_unwind) (mark_modules): * src/font.c (otf_open, font_put_frame_data) (font_get_frame_data): * src/macfont.m (macfont_invalidate_family_cache) (macfont_get_family_cache_if_present) (macfont_set_family_cache): * src/nsterm.h (XNS_SCROLL_BAR): * src/nsterm.m (ns_set_vertical_scroll_bar) (ns_set_horizontal_scroll_bar): * src/w32fns.c (w32_monitor_enum) (w32_display_monitor_attributes_list): * src/xterm.c (x_cr_destroy, x_cr_export_frames): * src/xwidget.c (webkit_javascript_finished_cb) (save_script_callback, Fxwidget_webkit_execute_script) (kill_buffer_xwidgets): Use mint pointers instead of merely save pointers. 2018-06-14 João Távora Also allow custom false and null when serializing to JSON * doc/lispref/text.texi (Parsing JSON): Describe new arguments of json-serialize and json-insert. * src/json.c (enum json_object_type, struct json_configuration): Move up in file before first usage. (lisp_to_json_toplevel, lisp_to_json_toplevel_1, lisp_to_json): Accept a struct json_configuration*. (Fjson_serialize, Fjson_insert): Accept multiple args. (json_parse_args): Accept new boolean configure_object_type. * test/src/json-tests.el (json-serialize, json-insert): Update forward decls. (json-parse-with-custom-null-and-false-objects): Add assertions for json-serialize. 2018-06-14 João Távora Support custom null and false objects when parsing JSON * doc/lispref/text.texi (Parsing JSON): Describe new :null-object and :false-object kwargs to json-parse-string and json-parse-buffer. * src/json.c (struct json_configuration): New type. (json_to_lisp): Accept a struct json_configuration* param. (json_parse_args): Rename from json_parse_object_type. (Fjson_parse_string): Rework docstring. (Fjson_parse_string, Fjson_parse_buffer): Update call to json_to_lisp. (syms_of_json): Two new syms, QCnull_object and QCfalse_object. * test/src/json-tests.el (json-parse-with-custom-null-and-false-objects): New test. 2018-06-14 Damien Cassou Fix pretty-printing empty objects as null * lisp/json.el (json-pretty-print): Force distinction between empty objects and null. (json-encode-list): Remove responsibility to print "null" as this value is not a list. (json-encode): Give higher precedence to lists so that an empty list is printed as an empty object, not as "null". * test/lisp/json-tests.el (test-json-encode): Add many tests to check the behavior of pretty-printing. 2018-06-13 Paul Eggert Remove some wrong 8-byte alignment assumptions Do not assume that 8-byte alignment suffices for all C objects, as some platforms require 16-byte alignment for some objects, and this will start to bite us as time goes on (e.g., if an Emacs module ever uses an object containing a long double, which requires 16-byte alignment on x86-64). Conversely, on !USE_LSB_TAG platforms, do not insist on aligning Lisp objects to a multiple of 8, as this is not needed for high-order tag bits. * src/alloc.c (LISP_ALIGNMENT, MALLOC_IS_LISP_ALIGNED): New constants. (XMALLOC_BASE_ALIGNMENT, XMALLOC_HEADER_ALIGNMENT): Removed. All uses replaced by LISP_ALIGNMENT. (aligned_alloc, laligned, lmalloc, lrealloc, union aligned_Lisp_Misc) (maybe_lisp_pointer, pure_alloc): Use LISP_ALIGNMENT rather than GCALIGNMENT. (aligned_alloc): Do not worry about an alignment of LISP_ALIGNMENT when MALLOC_IS_LISP_ALIGNED, as the code never uses aligned_alloc with alignment == LISP_ALIGNMENT in that case. (__alignof__): Remove. All uses removed. (MALLOC_IS_GC_ALIGNED): Remove. All uses replaced with MALLOC_IS_LISP_ALIGNED. (vector_alignment): Remove. All uses replaced with LISP_ALIGNMENT. * src/alloc.c (mark_maybe_pointer): * src/emacs-module.c (value_to_lisp_bits): Do not assume GCALIGNMENT == 1 << GCTYPEBITS, as GCALIGNMENT is 1 on !USE_LSB_TAG platforms now. * src/lisp.h (GCALIGNMENT) [!USE_LSB_TAG]: Now 1. (struct Lisp_Symbol, union vectorlike_header, struct Lisp_Cons) (struct Lisp_String): Simplify test for verifying alignment. 2018-06-12 Daniel Colascione Clarify that enabling a theme does not disable other themes Avoid user confusion by explicitly stating that enabling a theme does not imply disabling other themes and that theme load functions are not theme switch functions. * lisp/custom.el (load-theme, enable-theme): Clarify docstrings. 2018-06-12 Daniel Colascione Ignore focus events for dead frames Frames can die between the time we generate a focus event and the time we get around to processing it. Do run after-focus-change-function, since that's idempotent and we want to make sure not to miss any changes. * lisp/frame.el (handle-focus-in, handle-focus-out): Check for dead frames. 2018-06-12 Stefan Monnier * lisp/textmodes/ispell.el (ispell-menu-map): Init in declaration (ispell-menu-map-needed): Remove, now that the menu doesn't include the list of dictionaries any more, so it's basically constant. 2018-06-12 Eli Zaretskii Fix initialization of custom-delayed-init-variables * lisp/startup.el (command-line): Re-evaluate delayed-init custom variables one more time after setting up the initial window-system. (Bug#30994) * doc/emacs/custom.texi (Early Init File): * etc/NEWS: Warn against using early-init.el as a substitute for .emacs. 2018-06-12 Noam Postavsky Give warning if losing value to defvaralias (Bug#5950) * src/eval.c (Fdefvaralias): Call `display-warning' if the alias target has a non-eq value to the variable being aliased. * test/src/eval-tests.el (defvaralias-overwrite-warning): New test. 2018-06-12 Noam Postavsky Let display-warning work during bootstrap * lisp/emacs-lisp/warnings.el (display-warning): Only call `special-mode' and `newline' if they are `fbound'. 2018-06-11 Michael R. Mauger * lisp/progmodes/sql.el: Add MariaDB support (Robert Cochran) (sql-product-alist): Add MariaDB entry (sql-mariadb-program, sql-mariadb-options, sql-mariadb-login-params, sql-mode-mariadb-font-lock): New variables, aliases of the MySQL equivalents (sql-mariadb, sql-comint-mariadb): New interaction mode functions for MariaDB (sql-mode-mysql-font-lock-keywords): Updated font-lock for MySQL and MariaDB 2018-06-11 Thomas Fitzsimmons Noam Postavsky soap-client: Add byte-code compatibility function (Bug#31742) * lisp/net/soap-client.el: Bump version to 3.1.4. (soap-type-of): New function. (soap-resolve-references, soap-decode-type) (soap-encode-attributes, soap-encode-value): Replace aref calls with calls to soap-type-of. * lisp/net/soap-inspect.el (soap-sample-value, soap-inspect): Replace aref calls with calls to soap-type-of. 2018-06-11 Daniel Colascione Add after-delete-frame-functions Instead of working around the behavior delete-frame-functions, just add an after-delete-frame-functions hook. * doc/lispref/frames.texi (Deleting Frames): Document `after-delete-frame-functions'. * etc/NEWS: Mention `after-delete-frame-functions'. * lisp/frame.el (blink-cursor--should-blink): (blink-cursor--rescan-frames, blink-frame-mode): Get rid of the ugly ignored-frame parameter and switch from `delete-frame-functions' to `after-delete-frame-functions'. * src/frame.c (syms_of_frame): New variable `after-delete-frame-functions'. (delete_frame): Use it. 2018-06-11 Daniel Colascione Make blink-cursor-mode use new focus functions * lisp/frame.el (blink-cursor--should-blink): New function. (blink-cursor-check): Call it. (blink-cursor--rescan-frames): New function. (blink-cursor-mode): Wire up `blink-cursor--rescan-frames`; stop using `focus-in-hook' and `focus-out-hook'. 2018-06-11 Daniel Colascione Losing focus should not stop idleness * src/keyboard.c (read_char): Make Qfocus_out not break idle. 2018-06-11 Daniel Colascione New focus management interface focus-in-hook and focus-out-hook don't accurately reflect actual user-visible focus states. Add a new focus interface and mark the old one obsolete. * doc/lispref/frames.texi (Input Focus): Document new focus functions. Remove references to the now-obsolete focus hooks. * lisp/frame.el (frame-focus-state): New function. (after-focus-change-function): New variable. (focus-in-hook, focus-out-hook): Move to lisp from C; mark obsolete. * lisp/term/xterm.el (xterm-translate-focus-in) (xterm-translate-focus-out): Track tty focus in `tty-focus-state' terminal parameter; call `after-focus-change-function'. (xterm--suspend-tty-function): New function. * src/frame.c (Fhandle_switch_frame): Update docstring; don't call focus hooks. (focus-in-hook, focus-out-hook): Remove: moved to lisp. (syms_of_frame): Remove unread_switch_frame; add Vunread_switch_frame. * src/keyboard.c: (Finternal_handle_focus_in): New function. (make_lispy_event): Always report focus events to lisp; don't translate them to switch events sometimes. Lisp can take care of creating synthetic switch-frame events via `internal-handle-focus-in'. * src/w32term.c (x_focus_changed): Remove switch-avoidance logic: just directly report focus changes to lisp. * src/xterm.c (x_focus_changed): Remove switch-avoidance logic: just directly report focus changes to lisp. 2018-06-11 Daniel Colascione Remove code #if-0-ed terminal-local code This code hasn't been used since 2005. * src/data.c (get_terminal, Fterminal_local_value, Fset_terminal_local_value): Remove. 2018-06-11 Daniel Colascione Remove obsolete keyboard.c code * src/keyboard.c (any_kboard_state, single_kboard_state): Remove #if-0-ed functions. 2018-06-11 Lars Ingebrigtsen Don't have shr bug out on degenerate tags * lisp/net/shr.el (shr-tag-img): Protect against contructs like . 2018-06-10 Stefan Monnier * lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Use \' i.s.o $. 2018-06-10 Noam Postavsky Merge from emacs-26 8a1576cc03 Fix term.el cursor movement at bottom margin (Bug#31690) 2018-06-10 Noam Postavsky Merge from emacs-26 3434edc731 Enlarge DUMPED_HEAP_SIZE for 64-bit Windows builds 36bbdfc017 Update Unicode data files to version 11.0.0 of Unicode b7b7a5f4f3 * etc/NEWS: Belatedly call out vc-hg changes in v26.1. (B... 5b6f8b54d1 Clarify the documentation of 'dired-recursive-deletes' 9db97b49cd ; * etc/DEBUG: Add information about debugging libXft prob... 0214ffbe60 Clarify doc string of 'update-glyphless-char-display' ef35d405b1 Clarify subtle issues with 'eq' in byte-compiled code c6ef3c8321 Make cl-print respect print-quoted (bug#31649) 26b52ac40e Fix unexpected jumps of window-point in 'set-window-config... 4af077ab4d * etc/emacs.appdata.xml: Update Emacs screenshot. e5ab25deae Fix cursor movement by 'next-logical-line' after 'next-line' d20beef5f1 Fix prompt in bookmark.el (Bug#24726) c57e7eaae8 Improve documentation of 'empty' whitespace-style # Conflicts: # etc/NEWS 2018-06-10 Noam Postavsky Merge from emacs-26 55c9bb9f3c Fix comint-get-old-input-default for output field case (Bu... 26819cd1c0 ; ChangeLog.3: Fix typo. e35a08ea4b Prevent infloop in 'delete-trailing-whitespace' * lisp/progmodes/cperl-mode.el: * lisp/progmodes/cc-engine.el: * lisp/progmodes/cc-mode.el: Fix tabs mixed with space preventing commit hook from succeeding. 2018-06-10 Paul Eggert Pacify gcc -Wnull-dereference some more * src/keyboard.c (read_char): Use xevent_start in a couple more places where it is safe. This is needed with --enable-gcc-warnings --enable-checking on Fedora 28 x86-64. 2018-06-10 Paul Eggert Use native alignment to access Lisp object data Instead of using __builtin_assume_aligned (P, GCALIGNMENT) to tell GCC that P has alignment 8, use (T *) P where T is the type of the pointed-to object, to tell GCC that P has native alignment. This is simpler, matches the intent better, and should help simplify future improvements. Some of these changes are to pacify gcc -Wnull-dereference, since GCC is smarter about pointers now that Emacs no longer uses __builtin_assume_aligned; these minor changes should improve code efficiency slightly. On Fedora 28 x86-64 with default optimization this patch shrinks the size of the Emacs text segment by 0.36%. * src/conf_post.h (__has_builtin, __builtin_assume_aligned): Remove; no longer used. * src/dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Pacify -Wnull-dereference by using XCAR instead of CAR_SAFE and XCDR instead of CDR_SAFE when this is safe. * src/fileio.c (Fexpand_file_name): * src/font.c (clear_font_cache): Pacify -Wnull-dereference by removing unnecessary NILP test. * src/keyboard.c (xevent_start): New function. (read_char, read_key_sequence): Pacify -Wnull-dereference by using xevent_start instead of EVENT_START. * src/lisp.h (lisp_h_XUNTAG): Remove; XUNTAG is always a macro now, since it can no longer be implemented as a function. (XUNTAG): New third argument CTYPE. All uses changed. Cast result to CTYPE * instead of using __builtin_assume_aligned. Simplify by using LISP_WORD_TAG. (LISP_WORD_TAG): New macro. (TAG_PTR): Use it. * src/menu.c (x_popup_menu_1): Pacify -Wnull-dereference by using XCAR instead of Fcar and XCDR instead of Fcdr where this is safe. 2018-06-09 Paul Eggert Simplify read_key_sequence * src/keyboard.c (READ_KEY_ELTS): New constant. (keyremap_step, read_key_sequence): Omit BUFSIZE arg, since it's always READ_KEY_ELTS. All callers changed. (grow_bool_vector): Remove; no longer needed. (read_key_sequence): Use a bool array instead of a Lisp bool vector, since it's small and this puts less pressure on the GC. 2018-06-09 Daniel Colascione Unbreak echoing * src/keyboard.c (read_key_sequence): Don't echo_truncate the first time. 2018-06-09 Paul Eggert Fix pointer misuse in JSON parser * src/json.c (lisp_to_json_toplevel_1): Fix pointer misuse not caught by C type checking (json_t ** converted to void * where the program expected json_t *). Bug caught on Fedora 28 x86-64 via './configure CFLAGS="-g3 -O2 -fsanitize=address" CANNOT_DUMP=yes'. Avoid similar problems in the future by rewriting to use json_t * instead of json_t **. 2018-06-09 Daniel Colascione Correctly set last_nonmenu_event when replaying read_key_sequence can, in various circumstances, play back recorded events. Make sure that we set last_nonmenu_event as if we weren't replaying. Without this change, we leave last_nonmenu_event set to whatever it was before we started replaying, leading to spurious random keymap menu prompts appearing after reading terminal control sequences, the translation of which sometimes causes event replays. * src/keyboard.c: (grow_bool_vector): New function (read_key_sequence): Remember menu event history per-event. 2018-06-09 Daniel Colascione Add debug facility for formatting in rr sessions The existing debug print commands don't work in rr, since they touch stderr. The new xfmt command just calls Fformat and doesn't touch the stdio streams. * src/.gdbinit: (xfmt): New GDB command. * src/print.c: (debug_format): New function. 2018-06-09 Daniel Colascione Fix typo in docstring * lisp/term/xterm.el: (xterm-paste-ending-sequence): Fix typo 2018-06-09 Paul Eggert Fix read buffer overrun on overflowed integers * src/lread.c (read_integer): Fix off-by-1 buffer overrun introduced in 2018-04-17T23:23:16Z!eggert@cs.ucla.edu. The bug could occur when Emacs read radixed integers containing more than 100 digits. Bug caught by AddressSanitizer. 2018-06-09 Alan Mackenzie Implement the C++11 "using" type definition. Cease using the long obsolete c++-template-syntax-table. * lisp/progmodes/cc-align.el (c-lineup-template-args): Cease using c++-template-syntax-table. * lisp/progmodes/cc-engine.el (c-beginning-of-inheritance-list) (c-search-decl-header-end, c-beginning-of-decl-1, c-end-of-decl-1) (c-guess-continued-construct, c-guess-basic-syntax): Cease using c++-template-syntax-table. (c-guess-basic-syntax): Add CASE 5D.6 to handle C++11's "using" type definition. * lisp/progmodes/cc-langs.el (c++-make-template-syntax-table) (c++-template-syntax-table): Remove. (c-equals-type-clause-kwds, c-equals-type-clause-key): New language constants/variables. 2018-06-09 Daniel Colascione Improve robustness xterm event processing We used to treat the start of a focus-in, focus-out, and the start of a paste sequence as normal events bound in global-map, but this approach produces problems when we recognize events in the middle of actions that don't immediately dispatch to the command loop. Now we handle these events internally inside read-key, translating the focus events to nothing and paste-start into an xterm-paste event that neatly encapsulates the entire paste sequence. * lisp/term/xterm.el: (xterm-paste): Accept an event argument; insert text from event. (xterm-translate-focus-in,xterm-translate-focus-out) (xterm-translate-bracketed-paste): New functions. (xterm-handle-focus-in,xterm-handle-focus-out): Remove. (xterm-rxvt-function-map): Bind new translation functions. 2018-06-09 Alan Mackenzie CC Mode: In brace lists, anchor an elt on its predecessor, not on first elt * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): At the end, accept "." as a unary operator (which it now is in brace lists in, e.g., C Mode). (c-guess-basic-syntax): Just before CASE 9C, move back to the previous brace list entry in the block, rather than to the first one. 2018-06-09 Philipp Stephani Make error checking for thread functions stricter. * src/systhread.c (sys_thread_create): Change return type to bool. Check for errors returned by pthread_attr_setstacksize and pthread_attr_destroy. (sys_mutex_init): Abort on errors. Enable mutex checks when checking is enabled. (sys_cond_init): Abort on errors. (sys_mutex_lock, sys_mutex_unlock, sys_cond_wait) (sys_cond_signal, sys_cond_broadcast, sys_cond_destroy): Check for errors in debug mode. 2018-06-09 Eli Zaretskii Allow to reset Deleted flag when exporting messages in Rmail * lisp/mail/rmailout.el (rmail-output-reset-deleted-flag): New defcustom. (rmail-output): When 'rmail-output-reset-deleted-flag' is non-nil, reset the Deleted flag of the appended messages, and if COUNT is greater than 1, do not ignore deleted messages. Update the doc string accordingly. (Bug#31271) * doc/emacs/rmail.texi (Rmail Output): Document 'rmail-output-reset-deleted-flag'. * etc/NEWS: Mention the new user option. 2018-06-08 Paul Eggert Remove AddressSanitizer bug workaround This workaround no longer appears to be needed. * src/alloc.c (USE_ALIGNED_ALLOC): Don’t leave undefined merely because ADDRESS_SANITIZER is defined, as that bug in -fsanitize=address appears to have been fixed. See: https://github.com/google/sanitizers/issues/337 * src/conf_post.h (vfork): Improve comment. 2018-06-08 Basil L. Contovounesios Fix default candidate of find-face-definition * lisp/emacs-lisp/find-func.el (find-function-read): Use face-at-point instead of variable-at-point for faces. (bug#31699) 2018-06-08 Daniel Colascione Avoid unnecessary readahead early in TTY frame init We query some properties of the terminal early in initialization, and just before we do, we perform ordinary redisplay. This redisplay can result in unsightly flickering if we change some aspects of the display immediately afterward and redisplay again. By avoiding redisplay in xquery--query as long as we get timely responses from the terminal, we can avoid this early unwanted redisplay. * lisp/term/xterm.el: (xterm-query-redisplay-timeout): New variable. (xterm--read-event-for-query): New function. (xterm--report-background-handler,xterm--version-handler,xterm--query): Call it. 2018-06-08 Daniel Colascione Support terminal focus notifications * lisp/frame.el (handle-focus-in,handle-focus-out): Make event argument optional. (blink-cursor-check): Make sure that the current frame is a window-system frame before restarting the blink timer. TTY frames can get focus, but don't need a blink timer because the terminal will do the blinking. * lisp/term/xterm.el (xterm-handle-focus-in,xterm-handle-focus-out): New functions. (xterm-rxvt-function-map): Recognize focus notification sequences. (xterm--init-focus-tracking): New function. (terminal-init-xterm): Call it. 2018-06-08 Daniel Colascione Fix formatting in the face filter change * src/xfaces.c: (evaluate_face_filter,filter_face_ref) (merge_face_ref,syms_of_xfaces): Fix comments, formatting. 2018-06-08 Daniel Colascione Make setting inhibit-startup-screen in early init work * lisp/startup.el (command-line): Bind `inhibit-startup-screen' around loading the site file instead of unconditionally resetting it. 2018-06-08 João Távora Describe flymake-start-on-save-buffer in manual and NEWS (Bug#31738) * doc/misc/flymake.texi (Using Flymake, Customizable variables): Mention flymake-start-on-save-buffer. * etc/NEWS: Mention flymake-start-on-save-buffer. 2018-06-08 João Távora New flymake-start-on-save-buffer custom variable (Bug#21419) * lisp/progmodes/flymake.el (flymake-after-save-hook): Use flymake-start-on-save-buffer. (flymake-start-on-save-buffer): New custom variable. (flymake-start-on-flymake-mode): Tweak docstring. 2018-06-08 Alan Mackenzie CC Mode: Fontify unbalanced quotes in unconstrained multiline strings, etc. ("Unconstrained" meaning that every string is multiline, without needing such special marking as used by Pike Mode.) * lisp/progmodes/cc-mode.el (c-pps-to-string-delim): Don't process the char before BOB. (c-multiline-string-check-final-quote): New function. (c-bc-changed-stringiness): New variable. (c-before-change-check-unbalanced-strings): Add handling for unconstrained multiline strings. (c-after-change-re-mark-unbalanced-strings): Add handling for unconstrained multiline strings. Handle escaped double quotes more accurately. 2018-06-08 Paul Eggert Port alignment verification to x86 --with-wide-int Problem reported by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2018-06/msg00238.html * src/lisp.h (struct Lisp_Symbol, union vectorlike_header) (struct Lisp_Cons, struct Lisp_String): Do not check alignment if !USE_LSB_TAG, as alignment is needed only if we are tagging the low-order bits. 2018-06-07 Daniel Colascione Offer to open large files without modes * lisp/files.el: (files--ask-user-about-large-file): New function. (abort-if-file-too-large): Call it. (find-file-noselect): Support new raw open. 2018-06-07 Daniel Colascione Add support for per-window face remapping Extend face specifications to support the notion of filtering to a specific context and add a filter that limits a face specification to windows having a certain parameter. * src/xfaces.c: (evaluate_face_filter,filter_face_ref): New functions. (merge_face_ref): Ignore filtered face specifications. (Fx_list_fonts,get_lface_attributes,merge_face_vectors) (merge_named_face,merge_face_ref,merge_face_ref) (Finternal_merge_in_global_face,Fface_font,lookup_named_face) (lookup_basic_face,Fface_attributes_as_vector) (x_supports_face_attributes_p) (Fdisplay_supports_face_attributes_p,realize_named_face) (compute_char_face,face_at_buffer_position) (face_at_buffer_position,face_at_buffer_position) (face_at_buffer_position) (face_for_overlay_string,face_at_string_position,merge_faces): Pass window to face machinery. (syms_of_xfaces): Add :window and :filtered * src/xdisp.c (init_iterator, handle_face_prop) (handle_single_display_spec, merge_escape_glyph_face) (merge_glyphless_glyph_face, get_next_display_element) (next_element_from_display_vector, append_space_for_newline) (extend_face_to_end_of_line,highlight_trailing_whitespace) (maybe_produce_line_number) (display_line, calc_line_height_property): Pass window to face machinery. * src/term.c (tty_menu_activate): Adjust to new face core function signature. * src/msdos.c (XMenuActivate): Adjust to new face core function signature. * src/fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face): Pass window to face machinery. * src/font.c (font_range, Finternal_char_font): Pass window to face machinery. * src/dispnew.c (spec_glyph_lookup_face): Pass window to face machinery. * src/dispextern.h: (lookup_named_face,lookup_basic_face) (lookup_derived_face,merge_faces): Add struct window arguments to prototypes. 2018-06-07 Paul Eggert Fit kill_buffer_xwidgets into 80 * src/xwidget.c (kill_buffer_xwidgets): Reindent and use C99 style to fit in 80 columns. 2018-06-07 Paul Eggert Minor cleanup of save_excursion_restore * src/editfns.c (save_excursion_restore): Use clearer names for locals. Free earlier, removing the need for a label and goto. 2018-06-07 Paul Eggert New function record_unwind_protect_excursion This simplifies callers a bit, and will simplify future changes. * src/eval.c (record_unwind_protect_excursion): New function. * src/buffer.c (Fkill_buffer): * src/bytecode.c (exec_byte_code): * src/editfns.c (Fsave_excursion, Freplace_buffer_contents): * src/lread.c (readevalloop, Feval_buffer): * src/window.c (scroll_command): Use it. 2018-06-07 Paul Eggert * src/.gdbinit: Omit soon-obsolete comment. 2018-06-07 Paul Eggert Fix ftfont_open2 failure cleanup * src/ftfont.c (ftfont_open2): Don’t increment counter if failing. Avoid use-after-free once the increment bug is fixed. 2018-06-07 Paul Eggert Don’t over-align if WIDE_EMACS_INT * src/lisp.h (GCALIGNED_UNION): New macro. (struct Lisp_Symbol, union vectorlike_header) (struct Lisp_Cons, struct Lisp_String): Use it to avoid possible over-alignment if !USE_LSB_TAG. 2018-06-07 Paul Eggert Fix GC-related commentary * src/lisp.h: USE_STACK_LISP_OBJECTS is no longer experimental. Also, remove confusion about scope vs lifetime. And say that stack-allocated strings should not be given text properties. 2018-06-07 Noam Postavsky Let isearch-yank-kill enable isearch-mode if needed (Bug#21419) * lisp/isearch.el (isearch-yank-kill): Enable isearch-mode if needed. 2018-06-07 João Távora Accept plists when serializing and parsing JSON * doc/lispref/text.texi (Parsing JSON): Mention plist support. * src/json.c (lisp_to_json_toplevel_1): Serialize plists to json. (Fjson_serialize): Mention plists in docstring. (enum json_object_type): Add json_object_plist. (json_to_lisp): Parse JSON into plists. (json_parse_object_type): Consider plists. (Fjson_parse_string): Mention plists in docstring. (syms_of_json): New Qplist sym_of_json. (lisp_to_json): Update comment. * test/src/json-tests.el (json-serialize/object) (json-parse-string/object): New plist tests. 2018-06-07 Michael Albinus Remove Tramp "obex" and "synce" methods * doc/misc/tramp.texi (GVFS based methods): Remove `obex' and `synce'. * etc/NEWS: Mention obsolete Tramp "obex" and "synce" methods. * lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Remove "obex" and "synce". (top): Do not add defaults for "obex" and "synce". (tramp-bluez-service, tramp-bluez-interface-manager) (tramp-bluez-interface-adapter) (tramp-bluez-discover-devices-timeout, tramp-bluez-discovery) (tramp-bluez-devices, tramp-hal-service, tramp-hal-path-manager) (tramp-hal-interface-manager, tramp-hal-interface-device) (tramp-bluez-address, tramp-bluez-device) (tramp-bluez-list-devices, tramp-bluez-property-changed) (tramp-bluez-device-found, tramp-bluez-parse-device-names) (tramp-synce-list-devices, tramp-synce-parse-device-names): Remove. (tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec): Do not handle "obex" and "synce". 2018-06-05 João Távora When navigating Flymake diagnostics, consider their severity The FILTER arg of flymake-goto-next-error, a list of types, includes every diagnostic with a severity number `eq` to those types. * lisp/progmodes/flymake.el (flymake--severity): New helper. (flymake-goto-next-error, flymake-goto-prev-error): Clarify meaning of FILTER. (flymake-goto-next-error): Interpret filter as a severity filter. (flymake--mode-line-format): Simplify. 2018-06-05 João Távora Obsolete Flymake's flymake-diagnostic-types-alist That varaiable was an association between symbols and properties, effecively duplicating symbol's property lists. It is simpler to just put properties on symbols. Backward compatibility to the old variable has been kept. * doc/misc/flymake.texi (Flymake error types): Don't mention flymake-diagnostic-types-alist. (Flymake error types): Rework section. (Backend functions): Refill a paragraph. (Flymake utility functions): Don't mention flymake-diagnostic-types-alist. (Proc customization variables): Don't mention flymake-diagnostic-types-alist. * etc/NEWS: Mention obsoletion of flymake-diagnostic-types-alist. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Don't use flymake-diagnostic-types-alist. * lisp/progmodes/flymake.el: Rewrite commentary. (flymake-make-diagnostic, flymake-mode, flymake-goto-next-error) (flymake-goto-prev-error): Don't mention flymake-diagnostic-types-alist in docstring. (flymake-diagnostic-types-alist): Make obsolete. (:error, :warning, :note): Put flymake-category in these symbols. (flymake-error, flymake-warning, flymake-note): Put `flymake-bitmap', not `bitmap' in these symbols. (flymake--lookup-type-property, flymake--highlight-line): Rewrite. Honor flymake-diagnostic-types-alist for backward compatibility. * lisp/progmodes/python.el (python-flymake-msg-alist): Don't mention flymake-diagnostic-types-alist. 2018-06-05 João Távora Correctly filter Flymake diagnostic types shown in mode-line Thus, if a package foo has its own types foo-error and foo-warning, and if the buffer has no errors, the mode-line will correctly show `[0 0]' (zero errors and warnings) instead of `[0 0 0 0]' (zero errors, zero foo-errors, zero warnings, zero foo-warnings). * lisp/progmodes/flymake.el (flymake--mode-line-format): Coalesce diagnostic types based on the severity, not the symbol. 2018-06-05 João Távora Let Flymake backends attach arbitrary data to diagnostics This is easier that setting properties on diagnostics' text. * lisp/progmodes/flymake.el (flymake--diag): Add data slot. (flymake-make-diagnostic): Add DATA arg. (flymake-diagnostic-data): New accessor. 2018-06-05 João Távora Update version information for Flymake package and manual * doc/misc/flymake.texi: Update date and version. Make myself the first author. * lisp/progmodes/flymake.el: Update Maintainer and Version fields. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Update Maintainer and Version fields. 2018-06-05 Damien Cassou * lisp/auth-source-pass.el: Update version to 4.0.1 2018-06-05 Damien Cassou Test checking that auth-source-pass backend is correctly installed * test/lisp/auth-source-pass-tests.el (auth-source-pass-can-start-from-auth-source-search): Add test. 2018-06-05 Damien Cassou Make sure auth-source-pass is compatible with Emacs 25 * lisp/auth-source-pass.el: Use `advice-add' for Emacs 25 users as `auth-source-backend-parser-functions' does not exist there. 2018-06-05 Damien Cassou * lisp/auth-source-pass.el: Update version to 4.0.0 2018-06-05 Damien Cassou Fix prefix messages of auth-source-pass debug messages * lisp/auth-source-pass.el (auth-source-pass--do-debug): Fix message prefix. 2018-06-05 Damien Cassou * lisp/auth-source-pass.el: Update version to 3.0.0 2018-06-05 Alex Branham Silence byte compiler warning in auth-source-pass * lisp/auth-source-pass.el (auth-source-pass-backend): Silence byte compiler warning by only passing a parameter to `auth-source-backend' in Emacs <= 25. 2018-06-05 Jelle Licht Fix auth-source-pass.el to properly handle special inputs * lisp/auth-source-pass.el (auth-source-pass-search): Warn when passing multiple hosts in SPEC. Early return and warn when passing a wildcard as host in SPEC. Early return when host is nil. * test/lisp/auth-source-pass-tests.el (auth-source-pass-any-host, auth-source-pass-undefined-host): Add corresponding tests. 2018-06-05 Damien Cassou auth-source-pass: Take care of matching hosts when port is provided * lisp/auth-source-pass.el (auth-source-pass--find-match): Add PORT parameter and reorganize code by extracting `find-match-unambiguous'. (auth-source-pass--find-match-unambiguous): New function. (auth-source-pass--build-result): Fix the call to `find-match'. (auth-source-pass--hostname, auth-source-pass--hostname-with-user, auth-source-pass--user): Remove functions. * test/lisp/auth-source-pass-tests.el: Fix the calls to `find-match'. (auth-source-pass-find-host-without-port) Add corresponding test. 2018-06-05 Damien Cassou Add missing test cases to auth-source-pass-tests.el * test/lisp/auth-source-pass-tests.el (auth-source-pass-build-result-passes-full-host-to-find-match): Add missing test cases. 2018-06-05 Damien Cassou Add a test to auth-source-pass-tests.el * test/lisp/auth-source-pass-tests.el (auth-source-pass-build-result-passes-full-host-to-find-match): Add test making sure find-match is called with full host. 2018-06-05 Damien Cassou Fix indentation in auth-source-pass-tests.el * test/lisp/auth-source-pass-tests.el (auth-source-pass-only-return-entries-that-can-be-open): Fix indentation. 2018-06-05 Edison Ibañez * test/lisp/auth-source-pass-tests.el: Add assertions for host:port 2018-06-05 Damien Cassou * lisp/auth-source-pass.el: Fix headers. 2018-06-05 Michael Albinus Fix selinux test in files-tests.el * test/lisp/files-tests.el (files-tests-file-name-non-special-set-file-selinux-context): Adapt test. 2018-06-04 Glenn Morris Merge from origin/emacs-26 03697e6 Fix remote-host directory tracking for shells in `term' buffers 16e8541 Update doc string of 'rx' 2018-06-04 Glenn Morris Merge from origin/emacs-26 defd53a Set accessibility subroles for child frame (bug#31324) de6a876 Fix redefinition of child frames on NS 2018-06-04 Michael Albinus Fix Bug#31489 * lisp/files.el (file-name-unquote-non-special): Remove. (file-name-quoted-p, file-name-quote, file-name-unquote): Add optional argument TOP. (file-name-non-special): Adapt callees. Finish implementation of functions which need a local copy. (Bug#31489) 2018-06-03 João Távora Add proper Flymake support to cc-mode.el Except for the important detail that it doesn't make temporary files, the new flymake-cc backend doesn't yet behave much differently from the old flymake-proc-legacy-flymake, i.e. it still needs a special `check-syntax' Makefile target to provide the compiler and compilation flags. However, the new infrastructure created should allow less intrusive cleverer flag guessers (yet to be written) to replace that mechanism. * lisp/progmodes/cc-mode.el (c-mode, c++-mode): Add to flymake-diagnostic-functions. * lisp/progmodes/flymake-cc.el: New file. 2018-06-03 Alan Third Add NS style text scale keybindings * lisp/term/ns-win.el: Add super-based keybindings for adjusting text zoom. 2018-06-03 Michael Albinus Extend file-name-non-special * lisp/files.el (insert-file-contents-literally): Bind `inhibit-file-name-handlers' the default way. (file-name-non-special): Rework, mainly for operations with two file name arguments. (file-name-unquote-non-special): New defsubst. (file-name-unquote): Use it. * test/lisp/files-tests.el (files-test-bug-18141): Skip if needed. (files-tests--with-temp-non-special): Add docstring. Delete also `non-special-name' if the file/directory exists. (files-tests--special-file-name-extension) (files-tests--special-file-name-regexp): New defconst. (files-tests--special-file-name-handler, files-tests--new-name): New defuns. (files-tests--with-temp-non-special-and-file-name-handler): New macro. (files-tests-file-name-non-special-access-file) (files-tests-file-name-non-special-add-name-to-file) (files-tests-file-name-non-special-byte-compiler-base-file-name) (files-tests-file-name-non-special-copy-directory) (files-tests-file-name-non-special-copy-file) (files-tests-file-name-non-special-delete-directory) (files-tests-file-name-non-special-delete-file) (files-tests-file-name-non-special-diff-latest-backup-file) (files-tests-file-name-non-special-directory-file-name) (files-tests-file-name-non-special-directory-files) (files-tests-file-name-non-special-directory-files-and-attributes) (files-tests-file-name-non-special-dired-compress-handler) (files-tests-file-name-non-special-dired-uncache) (files-tests-file-name-non-special-expand-file-name) (files-tests-file-name-non-special-file-accessible-directory-p) (files-tests-file-name-non-special-file-acl) (files-tests-file-name-non-special-file-attributes) (files-tests-file-name-non-special-file-directory-p) (files-tests-file-name-non-special-file-equal-p) (files-tests-file-name-non-special-file-executable-p) (files-tests-file-name-non-special-file-exists-p) (files-tests-file-name-non-special-file-in-directory-p) (files-tests-file-name-non-special-file-local-copy) (files-tests-file-name-non-special-file-modes) (files-tests-file-name-non-special-file-name-all-completions) (files-tests-file-name-non-special-file-name-as-directory) (files-tests-file-name-non-special-file-name-case-insensitive-p) (files-tests-file-name-non-special-file-name-completion) (files-tests-file-name-non-special-file-name-directory) (files-tests-file-name-non-special-file-name-nondirectory) (files-tests-file-name-non-special-file-name-sans-versions) (files-tests-file-name-non-special-file-newer-than-file-p) (files-tests-file-name-non-special-notify-handlers) (files-tests-file-name-non-special-file-ownership-preserved-p) (files-tests-file-name-non-special-file-readable-p) (files-tests-file-name-non-special-file-regular-p) (files-tests-file-name-non-special-file-remote-p) (files-tests-file-name-non-special-file-selinux-context) (files-tests-file-name-non-special-file-symlink-p) (files-tests-file-name-non-special-file-truename) (files-tests-file-name-non-special-file-writable-p) (files-tests-file-name-non-special-find-backup-file-name) (files-tests-file-name-non-special-get-file-buffer) (files-tests-file-name-non-special-insert-directory) (files-tests-file-name-non-special-insert-file-contents) (files-tests-file-name-non-special-load) (files-tests-file-name-non-special-make-auto-save-file-name) (files-tests-file-name-non-special-make-directory) (files-tests-file-name-non-special-make-directory-internal) (files-tests-file-name-non-special-make-symbolic-link) (files-tests-file-name-non-special-rename-file) (files-tests-file-name-non-special-set-file-acl) (files-tests-file-name-non-special-set-file-modes) (files-tests-file-name-non-special-set-file-selinux-context) (files-tests-file-name-non-special-set-file-times) (files-tests-file-name-non-special-set-visited-file-modtime) (files-tests-file-name-non-special-shell-command) (files-tests-file-name-non-special-start-file-process) (files-tests-file-name-non-special-substitute-in-file-name) (files-tests-file-name-non-special-temporary-file-directory) (files-tests-file-name-non-special-unhandled-file-name-directory) (files-tests-file-name-non-special-vc-registered) (files-tests-file-name-non-special-write-region): Extends tests to quoted file names, which would require a file name handler if unquoted. (files-test-no-file-write-contents): Make test more robust. * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Adapt test. (tramp--test-emacs25-p): New defun. (tramp-test34-vc-registered): Use it. 2018-06-02 Michael R. Mauger Improve buffer naming in sql.el (Bug#31446) 2018-06-02 Glenn Morris Merge from origin/emacs-26 4cfe531 (origin/emacs-26) Improve ELisp documentation of 'clone-indir... 9089b02 Improve documentation of 'inhibit-message' 6107e12 Improve documentation of comment styles fb45125 Documentation improvements in newcomment.el 641c94c Imp[rove documentation of 'with-silent-modifications' 2018-06-02 Glenn Morris Merge from origin/emacs-26 76f692e Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emac... 2018-06-02 Glenn Morris Merge from origin/emacs-26 90bea37 ; * etc/PROBLEMS: Fix fvwm version number in last commit af82d1f * etc/PROBLEMS: Document stickyness problem with FVWM (Bug#31... 4a3aed2 Update Emacs Lisp Intro to match current behavior 21f2247 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emac... 3257085 Fix previous commit 6d23525 Fix typos in several manuals (Bug#31610) 9188291 Add detailed documentation about lock files e5471b2 Add commentary for subtle aspect of frame.el Conflicts: doc/lispintro/emacs-lisp-intro.texi 2018-06-02 Glenn Morris Merge from origin/emacs-26 ca3f0a8 ; * etc/NEWS: Belated announcement of 2 changes made in Emacs... 99f92da Improve documentation of 'directory-files-and-attributes' df8649a * lisp/gnus/message.el (message-remove-header): Don't remove ... b682a7e ; * etc/NEWS: Add headings for Emacs 26.2 aa175a4 Adapt hexl-mode to native line-number display b8e7749 Fix example in Tramp manual f212fe5 Handle case where Xft is found but not XRender 186280f * doc/misc/tramp.texi (Frequently Asked Questions): Adapt zsh... 24ba633 Improve read-multiple-choice docstring (Bug#31628) Conflicts: etc/NEWS src/dired.c 2018-06-02 Eli Zaretskii Un-obsolete 'string-to-unibyte' * lisp/subr.el (string-to-unibyte): No longer obsolete. See the emacs-devel discussion around this message: http://lists.gnu.org/archive/html/emacs-devel/2018-05/msg00656.html. * etc/NEWS: Announce the change. 2018-06-01 John Shahid Fix column double counting in term.el (Bug#31662) * lisp/term.el (term-emulate-terminal): Invalidate `term-current-column' after deleting overwritten text. 2018-06-01 João Távora Minimally support Flymake in Emacs C sources The check-syntax target is enabled the use of Flymake's "legacy" backend, flymake-proc-legacy-flymake in src/*.c. It works quite well with C sources. The green light for this change had already been given some time ago in https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00385.html * src/Makefile.in (check-syntax): New target. (.PHONY): Add check-syntax. 2018-06-01 Ville Skyttä (tiny change) Fix a typo in emacs-mime.texi (Bug#31610) 2018-05-31 Robert Pluim Obsolete image-jpeg-p * lisp/image.el (image-jpeg-p): Declare obsolete. 2018-05-31 Lars Ingebrigtsen Fdirectory_files_and_attributes doc string clarification * src/dired.c (Fdirectory_files_and_attributes): Clarify what data is returned. 2018-05-31 Alan Mackenzie Amend c-before-change-check-unbalanced-strings to handle a quote at EOB. * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Before going back a sexp from the \n marked with a string-fence syntax-table text property, check that it is indeed a \n. If not, simply delete that text property from the isolated quote, not the quote and the \n which otherwise delimit an unterminated string. Should we encounter a double quote marked with a string-fence syntax-table text property at the end of the last line, remove that property. 2018-05-30 Paul Eggert Work around GCC bug 81401 * src/xterm.c (x_draw_glyphless_glyph_string_foreground): Make the buffer a byte longer than it needs to be, if --enable-gcc-warnings. 2018-05-30 Roland Winkler bibtex-search-entry: Reuse the window displaying the buffer. * lisp/textmodes/bibtex-style.el (bibtex-reposition-window): New optional arg pos. (bibtex-search-crossref, bibtex-search-entry): Use it. (bibtex-search-entry): If possible, reuse the window displaying the buffer that contains the entry found. 2018-05-30 Roland Winkler bibtex-mark-entry: Display no message. * lisp/textmodes/bibtex.el (bibtex-mark-entry): Display no message. 2018-05-30 Roland Winkler bibtex-format-entry: Preserve opt-alt if possible. * lisp/textmodes/bibtex.el (bibtex-format-entry): Preserve opt-alt unless its removal is selected. (bibtex-parse-entry): New optional arg keep-opt-alt. 2018-05-29 Simen Heggestøyl Add Imenu support to CSS mode and its derivatives * lisp/textmodes/css-mode.el (css--join-nested-selectors) (css--prev-index-position, css--extract-index-name): New helper functions for supporting Imenu. (css-mode): Set `imenu-space-replacement', `imenu-prev-index-position-function', and `imenu-extract-index-name-function'. (css-current-defun-name): Reuse `css--prev-index-position' and `css--extract-index-name' to support nested selectors. * test/lisp/textmodes/css-mode-tests.el (css-test-current-defun-name): Fix character index. (css-test-join-nested-selectors): New tests for `css--join-nested-selectors'. * etc/NEWS: Add news entry. 2018-05-29 Eli Zaretskii Allow access to MS-Windows Registry from Lisp programs * src/w32.c (g_b_init_reg_open_key_ex_w) (g_b_init_reg_query_value_ex_w) (g_b_init_expand_environment_strings_w): New init flags. (globals_of_w32): Initialize them at startup. (RegOpenKeyExW_Proc, RegQueryValueExW_Proc) (ExpandEnvironmentStringsW_Proc): New function typedefs. (reg_open_key_ex_w, reg_query_value_ex_w) (expand_environment_strings_w): New wrapper function. (w32_read_registry): New function. * src/w32fns.c (Fw32_read_registry) [WINDOWSNT]: New primitive. (syms_of_w32fns) [WINDOWSNT]: Defsubr it. DEFSYM "HKLM", "HKCU", etc. root keys. * etc/NEWS: Mention the new primitive. 2018-05-29 Michael Albinus * doc/misc/tramp.texi (All): Use @code instead of @option for user options. 2018-05-29 Michael Albinus Merge from origin/emacs-26 13963a3a5c * doc/misc/tramp.texi (All): Use @code instead of @option ... 6e5f19ada4 Fix Bug#31605 2018-05-29 Michael Albinus Merge from origin/emacs-26 9a7a2e919a ; ChangeLog.3: Remove stray phrase. 2018-05-29 Michael Albinus Merge from origin/emacs-26 9d6a3ac73a Mention pcase as a fifth conditional form 567cb9046d Overhaul pcase documentation 4d7e54acff Use EXPVAL in docstrings of patterns defined using pcase-d... 7e8227ed68 Introduce EXPVAL for pcase, pcase-defmacro docstrings e6de5b3d51 Ensure pcase doc shows `QPAT first among extensions 2018-05-27 Gemini Lasswell Make cl-print respect print-level and print-length (bug#31559) * lisp/emacs-lisp/cl-print.el (cl-print--depth): New variable. (cl-print-object) : Print ellipsis if printing depth greater than 'print-level' or length of list greater than 'print-length'. (cl-print-object) : Truncate printing with ellipsis if vector is longer than 'print-length'. (cl-print-object) : Truncate printing with ellipsis if structure has more slots than 'print-length'. (cl-print-object) <:around>: Bind 'cl-print--depth'. * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-3, cl-print-tests-4): New tests. 2018-05-27 Basil L. Contovounesios Place epg-pinentry-mode varalias before defcustom This is needed to avoid losing user settings made under the obsolete name (Bug#31603). * lisp/epa.el (epa-pinentry-mode): Move obsolete varalias from here... * lisp/epg-config.el (epg-pinentry-mode): ...to here. 2018-05-26 Paul Eggert Port .gdbinit to unsigned-pointer platforms * src/.gdbinit (Lisp_Object_Printer.to_string): Don’t assume that GDB treats C pointers as signed integers. Problem found with GDB Fedora 8.1-15.fc28. 2018-05-26 Paul Eggert GNOME moved URLs for its active bug reports * src/emacs.c (main) [USE_GTK]: * src/gtkutil.c (xg_display_close): * src/xterm.c (x_connection_closed): Update GNOME bug report URLs. 2018-05-26 Paul Eggert Don’t set EMACS=t if Bash is 4.4 or newer (Thanks to Stefan Monnier for improvements to this patch.) * lisp/term.el (term--bash-needs-EMACS-status): New var. (term--bash-needs-EMACSp): New function. (term-exec-1): Use it instead of always setting EMACS. 2018-05-26 Tino Calancha replace-tests.el: Refactor undo tests * test/lisp/replace-tests.el (replace-tests-bind-read-string): New variable. (replace-tests-with-undo): Add helper macro to generate the boilerplate code. (replace-tests--query-replace-undo, query-replace-undo-bug31073) (query-replace-undo-bug31492, query-replace-undo-bug31538): Use it. 2018-05-26 Michael Albinus Make `tramp-make-tramp-file-name' calls consistent. * lisp/net/tramp.el (tramp-get-buffer) (tramp-handle-file-name-as-directory) (tramp-handle-file-name-directory, tramp-handle-file-remote-p) (tramp-handle-file-truename, tramp-handle-find-backup-file-name) (tramp-handle-insert-file-contents): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name) (tramp-gvfs-get-remote-uid, tramp-gvfs-get-remote-gid) (tramp-gvfs-maybe-open-connection): * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename) (tramp-sh-handle-expand-file-name, ) (tramp-sh-handle-process-file, tramp-get-remote-path): * lisp/net/tramp-smb.el (tramp-smb-handle-expand-file-name) (tramp-smb-handle-process-file): Make `tramp-make-tramp-file-name' calls consistent. 2018-05-26 Eli Zaretskii * etc/HELLO: Add a few more scripts. 2018-05-25 Tino Calancha replace-tests.el: Fix broken tests After previous commit, all tests using helper function `replace-tests-clauses' fail: during the expansion of macro `replace-tests-with-undo', the function `replace-tests-clauses' is unbound. Delete those helpers and reimplement test `query-replace-undo-bug31538'. * test/lisp/replace-tests.el (query-replace-undo-bug31538): Reimplement this test without using any helper function/macro. 2018-05-25 Tino Calancha query-replace undo: Handle when user edits the replacement string * lisp/replace.el (perform-replace): Update the replacement string after the user edit it (Fix Bug#31538). * test/lisp/replace-tests.el (replace-tests-clauses): New function. (replace-tests-bind-read-string): New variable. (replace-tests-with-undo): Macro to create boilerplate code. (query-replace-undo-bug31073): Use it. (query-replace-undo-bug31538): New test. 2018-05-25 Glenn Morris Merge from origin/emacs-26 07f8f9b (origin/emacs-26) ; * lisp/ldefs-boot.el: Update. 5cec2b0 * etc/HISTORY: Update for Emacs 26.1 release. 7c474e1 * etc/AUTHORS: Update. ddc7bea ; * ChangeLog.3: Update. 3557460 ; * admin/authors.el: Update. 2f44d2d Note caveat for backward regexp searching in docstring (Bug#3... 3145d08 Update backtrace in Emacs Lisp Intro 43a9c26 Move window-point in bibtex-search-entry 4bb2741 More fixes of Intro to Emacs Lisp c57c226 ; * doc/emacs/misc.texi (FFAP): Fix a typo. (Bug#31580) 0a51113 Add a footnote to Emacs Lisp Intro 5eabe4a ; * doc/emacs/msdos.texi (ls in Lisp): Fix a typo. (Bug#31575) d5e0ceb * lisp/help.el (with-help-window): Doc fix. (Bug#31574) e7952bd Fix some cross-references in emacs-lisp-intro.texi a897959 Minor copyedits in Emacs manual in macos.texi Conflicts: lisp/ldefs-boot.el 2018-05-24 Michael Albinus Fix file name completion in Tramp * lisp/net/tramp.el (tramp-handle-file-name-directory): Fix case of localname starts w/o a slash. * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name): Extend test. 2018-05-24 Michael Albinus Fix Bug#31558 * lisp/net/tramp.el (tramp-mode, tramp-verbose) (tramp-backup-directory-alist, tramp-auto-save-directory) (tramp-encoding-shell, tramp-encoding-command-switch) (tramp-encoding-command-interactive, tramp-default-method) (tramp-default-method-alist, tramp-default-user) (tramp-default-user-alist, tramp-default-host) (tramp-default-host-alist, tramp-default-proxies-alist) (tramp-save-ad-hoc-proxies, tramp-restricted-shell-hosts-alist) (tramp-local-host-regexp, tramp-local-end-of-line) (tramp-rsh-end-of-line, tramp-login-prompt-regexp) (tramp-shell-prompt-pattern, tramp-password-prompt-regexp) (tramp-wrong-passwd-regexp, tramp-yesno-prompt-regexp) (tramp-yn-prompt-regexp, tramp-terminal-prompt-regexp) (tramp-operation-not-permitted-regexp, tramp-copy-failed-regexp) (tramp-process-alive-regexp, tramp-ignored-file-name-regexp) (tramp-chunksize, tramp-process-connection-type) (tramp-connection-timeout, tramp-connection-min-time-diff) (tramp-completion-reread-directory-timeout) * lisp/net/tramp-adb.el (tramp-adb-program) (tramp-adb-connect-if-not-connected, tramp-adb-prompt): * lisp/net/tramp-cache.el (tramp-connection-properties) (tramp-persistency-file-name): * lisp/net/tramp-gvfs.el (tramp-gvfs-methods) (tramp-gvfs-zeroconf-domain) (tramp-bluez-discover-devices-timeout): * lisp/net/tramp-sh.el (tramp-inline-compress-start-size) (tramp-copy-size-limit, tramp-terminal-type) (tramp-histfile-override, tramp-use-ssh-controlmaster-options) (tramp-remote-path, tramp-remote-process-environment) (tramp-sh-extra-args): * 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): Dont't require 'tramp. (Bug#31558) * lisp/net/tramp.el (tramp-ignored-file-name-regexp): Use type regexp. 2018-05-23 Noam Postavsky Honor print-charset-text-property value of nil (Bug#31376) * src/print.c (print_check_string_charset_prop): Move check for nil Vprint_charset_text_property from here... (print_prune_string_charset): ... to here. (syms_of_print) : Clarify that any non-boolean values are treated the same as `default'. * doc/lispref/streams.texi (Output Variables): Add print-prune-string-charset. * test/src/print-tests.el (print-charset-text-property-nil) (print-charset-text-property-default) (print-charset-text-property-t): New tests. (print-tests--prints-with-charset-p): New helper function. 2018-05-23 Michael Welsh Duggan Avoid messing up buffer list when starting gud (Bug#22374) * lisp/progmodes/gud.el (gud-common-init): Use `display-buffer' instead of `switch-to-buffer'. 2018-05-23 Noam Postavsky Move epa-pinentry-mode to epg-config (Bug#26298) * lisp/epa.el (epa-pinentry-mode): Make into obsolete alias for... * lisp/epg-config.el (epg-pinentry-mode): ...this new user option. * lisp/epg.el (epg-context): Use it as the default value for pinentry-mode. * etc/NEWS: Announce name change. * lisp/epa-file.el (epa-file-insert-file-contents) (epa-file-write-region): * lisp/epa.el (epa-decrypt-file, epa-sign-file) (epa-encrypt-file, epa-decrypt-region) (epa-sign-region, epa-encrypt-region): Don't change epg-context-pinentry-mode from the default. 2018-05-23 Noam Postavsky Drop some epg/epa backwards compat code for ancient Emacs versions * lisp/epa.el (epa--select-safe-coding-system): Remove, `select-safe-coding-system' has been present since Emacs 20.3. (epa--encode-coding-string, epa--decode-coding-string): * lisp/epg.el (epg--decode-coding-string, epg--encode-coding-string) (epg--clear-string): Remove, the corresponding Emacs functions are so old they don't show up in NEWS. Furthermore, the fallback for the *-coding-string functions was `identity' which wouldn't have worked anyway, since it only takes a single argument. (epg--make-temp-file): Remove, `make-temp-file' has been present since Emacs 21.1. * lisp/epg-config.el (epg-gpg-program, epg-gpgsm-program) (epg-gpgconf-program, epg-gpg-home-directory) (epg-passphrase-coding-system, epg-debug): Remove unneeded :group parameter. 2018-05-23 Tino Calancha Fix corner case in query-replace-regexp undo This commit fixes Bug#31492. * lisp/replace.el (replace-match-maybe-edit): Preserve match data. * test/lisp/replace-tests.el (query-replace-undo-bug31492): Add test. 2018-05-23 Glenn Morris Merge from origin/emacs-26 e3f00f5 (origin/emacs-26) Clarify when to use advice-add vs add-function c0f3e6b Minor formatting tweak in the Emacs manual fadf653 Update comments in Intro to Emacs Lisp 52ccb24 ; * doc/os.texi (Batch Mode): use = after --eval d65430f * etc/NEWS: Mention change in `edebug-prin1-to-string'. ef4aec1 ; * doc/lispref/hash.texi (Defining Hash): Fix typos. 2981952 Another attempt to fix sql.el b1b96d7 Update binding of 'M-.' in Intro to Emacs Lisp b239a09 Fix a typo in last change in sql.el 0d8bae5 Fix capitalization of mail headers 845fe03 Fix buffer names in sql.el a3885f5 Minor fixes in the Emacs manual 542f830 Fix a typo in rmail.texi eb0bc6f * etc/PROBLEMS: Document Bug#31305. Conflicts: doc/emacs/sending.texi etc/NEWS 2018-05-23 Glenn Morris Merge from origin/emacs-26 73bc6f8 Fix a typo in describing input methods 6b4bafe ; Add a comment to emacs-lisp-intro.texi 2018-05-22 João Távora More helpful docstrings for tests of electric-tests.el * test/lisp/electric-tests.el (electric-pair-define-test-form): Improve automatically generated docstring. 2018-05-22 Paul Eggert Work around GCC bug with function attributes * src/alloc.c (PNTR_ADD): Put attributes after ‘static’ and before returned type. Problem reported by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2018-05/msg00559.html 2018-05-22 Paul Eggert Fix failed assertion when load-force-doc-strings Problem reported by Philipp Stephani (Bug#31556). * src/lread.c (read_vector): When load_force_doc_strings, check for byte code vectors that are invalid because they are too short. * test/src/lread-tests.el (lread-invalid-bytecodes): New test. 2018-05-22 Paul Eggert Minor tweaks to recent fix for Bug#31545 * src/xwidget.c (webkit_javascript_finished_cb) (Fxwidget_webkit_execute_script): Use intptr_t to avoid warnings in the (unlikely) event that ptrdiff_t and void * differ in width. (save_script_callback): Simplify by using xlispdstrdup and larger_vector. 2018-05-22 Michael Albinus Extend secrets.el by searching for object paths. * lisp/net/secrets.el (secrets-search-item-paths): New function. (secrets-search-items): Use it. (secrets-create-item): Adapt docstring. * test/lisp/net/secrets-tests.el (secrets-test04-search): Extend test. 2018-05-21 Andreas Schwab * src/xwidget.c (Fxwidget_webkit_goto_uri): Encode uri. 2018-05-21 Andreas Schwab Make xwidget-webkit-execute-script safe against GC (Bug#31545) * src/xwidget.h (struct xwidget): Add script_callbacks. * src/xwidget.c (save_script_callback): New function. (Fxwidget_webkit_execute_script): Use it. Encode script before passing to execution engine. Always use a callback. (webkit_javascript_finished_cb): Deallocate script. (kill_buffer_xwidgets): Deallocate remaining scripts. (Fxwidget_webkit_zoom): Doc fix. (Fxwidget_resize): Doc fix. 2018-05-21 Paul Eggert Don’t assume ordering in make-process/mix-stderr * test/src/process-tests.el (process-tests--mixable): New function. (make-process/mix-stderr): Don’t assume stdout is merged before stderr. POSIX does not require this, and the assumption failed to hold on my Fedora 28 platform. See Bug#31214. 2018-05-21 Paul Eggert Update from Gnulib This incorporates: 2018-05-21 crypto: omit stream ops Emacs doesn’t need 2018-05-13 truncate: Fix compilation error on Android 2018-05-13 imaxdiv: Fix compilation error on Android 2018-05-13 Support selective inclusion of recent mingw.org headers 2018-05-13 Add cross-compilation guesses for Linux systems sans glibc 2018-05-13 stdioext: Fix compilation errors with newer Android headers 2018-05-07 af_alg: Pacify --enable-gcc-warnings 2018-05-06 af_alg: Fix bug with streams that are not at position 0 2018-05-06 Followup to 'af_alg: New module' 2018-05-05 crypto/{md5,sha1,sha256,sha512}: simplify 2018-05-05 af_alg: New module 2018-05-05 af_alg: Improve function signature 2018-04-28 md5sum: Use AF_ALG when available 2018-04-28 sha512sum: Use AF_ALG when available 2018-04-28 sha256sum: Use AF_ALG when available 2018-04-28 sha1sum: Use AF_ALG when available 2018-05-05 all: Replace more http URLs by https URLs 2018-05-03 maint: port more modules to GCC 8 2018-05-03 Simplify code; drop support for Borland C++ on Windows * admin/merge-gnulib (GNULIB_MODULES): Use crypto/md5-buffer rather than crypto/md5, since Emacs doesn’t use the stream operations that in recent Gnulib pull in other stuff Emacs doesn’t need. Similarly for crypto/sha1-buffer, crypto/sha256-buffer, crypto/sha512-buffer. * build-aux/config.guess, build-aux/config.sub, lib/dosname.h: * lib/dup2.c, lib/errno.in.h, lib/euidaccess.c, lib/fcntl.c: * lib/fcntl.in.h, lib/fpending.c, lib/fsync.c, lib/getdtablesize.c: * lib/getopt.c, lib/gettimeofday.c, lib/inttypes.in.h, lib/md5.c: * lib/md5.h, lib/open.c, lib/pipe2.c, lib/putenv.c, lib/sha1.c: * lib/sha1.h, lib/sha256.c, lib/sha256.h, lib/sha512.c: * lib/sha512.h, lib/stat-time.h, lib/stdio-impl.h, lib/stdio.in.h: * lib/stdlib.in.h, lib/sys_stat.in.h, lib/sys_types.in.h: * lib/timespec.h, lib/unistd.in.h, lib/utimens.c, m4/c-strtod.m4: * m4/gnulib-common.m4, m4/inttypes.m4, m4/lstat.m4, m4/nocrash.m4: * m4/pselect.m4, m4/readlink.m4, m4/stdio_h.m4, m4/symlink.m4: * m4/unistd_h.m4, m4/utimens.m4: Copy from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. 2018-05-21 João Távora Fix Flymake's ruby-mode tests when user has "rubocop" installed The Flymake test suite fails if the "rubocop" program is installed, because the ruby-flymake-rubocop backend is selected automatically by ruby-flymake-auto. The test was designed for ruby-flymake-simple, tough, and fails. * test/lisp/progmodes/flymake-tests.el (ruby-backend): Ensure this test runs exclusively with the ruby-flymake-simple backend. 2018-05-21 Michael Albinus Fix Bug#31489 * doc/misc/tramp.texi (Frequently Asked Questions): Mention `tramp-ignored-file-name-regexp'. Improve index. * lisp/net/tramp.el (tramp-ignored-file-name-regexp): New defcustom. (tramp-tramp-file-p): Use it. Check also for `tramp-mode'. (tramp-file-name-handler): Don't check for `tramp-mode'. (Bug#31489) * test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax): Extend test. 2018-05-20 Eli Zaretskii Revert part of the previous change * doc/misc/message.texi: * doc/misc/efaq.texi: * doc/emacs/sending.texi: * doc/emacs/rmail.texi: Revert the CC => Cc etc. conversions. 2018-05-20 Paul Eggert Use “Cc” for email copies, as per RFC 5322. Also fix similar problems with Bcc, Fcc, In-Reply-To, and similar email headers. See thread starting at: https://lists.gnu.org/r/emacs-devel/2018-05/msg00463.html 2018-05-20 Noam Postavsky * make-dist: Add '--no-info' option. 2018-05-20 Alan Mackenzie Enhance CC Mode's fontification, etc., of unterminated strings. String delimiters, including escaped new lines, of correctly terminated strings are left in font-lock-string-face. All others get font-lock-warning-face. The latter get syntax-table text properties on the opening string delim and the "terminating EOL". Correct two miscellaneous bugs: the handling of text properties on Java Mode's generic delimiters; the handling of c-just-done-before-change. * lisp/progmodes/cc-defs.el (c-point): New position 'eoll "end of logical line". (c-characterp): New macro. * lisp/progmodes/cc-fonts.el (c-font-lock-invalid-string): Removed. (c-basic-matchers-before): Use a simple matcher in place of the form around c-font-lock-invalid-string. * lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): Add c-before-change-check-unbalanced-strings to the value for all modes except AWK Mode. Also add c-before-change-check-<>-operators to Java Mode, correcting an error in that mode's handling of generic delimiters. (c-before-font-lock-functions): Add c-after-change-re-mark-unbalanced-strings to the value for all modes except AWK Mode. (c-single-quotes-quote-strings, c-string-delims): New lang variables for future enhancements. (c-string-innards-re-alist): New lang variable. * lisp/progmodes/cc-mode.el (c-just-done-before-change): Do not set this variable when a change is the alteration of text properties. (c-basic-common-init): Set parse-sexp-lookup-properties (and the XEmacs equivalent) also for Pike Mode. (c-neutralize-CPP-line): No longer neutralize unbalanced quotes here. (c-unescaped-nls-in-string-p, c-multiline-string-start-is-being-detached) (c-pps-to-string-delim, c-before-change-check-unbalanced-strings) (c-after-change-re-mark-unbalanced-strings): New functions. (c-after-change): Fix a bug with the handling of c-just-done-before-change. 2018-05-20 Eli Zaretskii * etc/HELLO: More reasonable placement of 'charset' properties. 2018-05-19 Paul Eggert * admin/notes/unicode: HELLO is again UTF-8. 2018-05-19 Eli Zaretskii Use Enriched mode in etc/HELLO to keep charset information This allows to encode HELLO in UTF-8, thus supporting the entire repertory of Unicode, while still keeping the charset info where that is important. Suggested by Michael Welsh Duggan . * lisp/textmodes/enriched.el (enriched-translations): Add translations for 'charset'. (enriched-decode-charset, enriched-handle-charset-prop): New functions. * lisp/facemenu.el (facemenu-special-menu): Add sub-menu for 'charset' property. (facemenu-set-charset): New function. (facemenu-remove-special): Remove the 'charset' property as well. * etc/NEWS: Announce the new feature of Enriched mode. * etc/HELLO: Recode in UTF-8 and place under Enriched mode. * doc/emacs/text.texi (Enriched Properties): Mention the support for 'charset'. 2018-05-18 Paul Eggert * src/alloc.c: Fix comment. 2018-05-18 Paul Eggert Port to GCC 8 -fsanitize=undefined In GCC 8, gcc -fsanitize=undefined flags the undefined behavior that Emacs relies on in its XPNTR and XSYMBOL low-level functions. Disable undefined sanitization in these functions. Although this disabling doesn’t suffice if DEFINE_KEY_OPS_AS_MACROS is true, it works for -fsanitize=undefined -DINLINING=0, which is good enough. * src/alloc.c (macro_PNTR_ADD): New macro. (PNTR_ADD): New function and macro. The function disables -fsanitize=undefined. (macro_XPNTR): Use it. * src/conf_post.h (ATTRIBUTE_NO_SANITIZE_UNDEFINED): New macro. * src/lisp.h (XSYMBOL): Disable -fsanitize=undefined. 2018-05-18 Lars Ingebrigtsen (gnus-blocked-images): Clarify privacy implications * lisp/gnus/gnus-art.el (gnus-blocked-images): Clarify the privacy implication of altering the value of this variable. 2018-05-18 Eli Zaretskii Fix decoding of directories when "~" includes non-ASCII chars * src/fileio.c (Fexpand_file_name): Don't build multibyte strings from unibyte non-ASCII strings when NAME and DEFAULT_DIRECTORY have different multibyteness, as this adds bytes to the byte sequence, and in some situations, e.g., when the home directory includes non-ASCII characters, can fail file APIs. (Bug#30755) * lisp/startup.el (normal-top-level): Make sure default-directory is set to a multibyte string when decoded on MS-Windows. 2018-05-17 Filipp Gunbin Fix bugs in `auth-source-netrc-parse-one'. * lisp/auth-source.el (auth-source-netrc-parse-one): Ensure that match data is not overwritten in `auth-source-netrc-parse-next-interesting'. Ensure that blanks are skipped before and after going over comments and eols. * test/lisp/auth-source-tests.el (auth-source-test-netrc-parse-one): New test. 2018-05-16 Michael Albinus Fix creation of Secret Service items in auth-source * lisp/auth-source.el (auth-source-secrets-create): Use ´apply'. (auth-source-secrets-saver): Handle `auth-source-save-behavior' equal t. * lisp/net/secrets.el (secrets-get-items): Do not call `secrets-open-session' here ... (top): ... but here. * test/lisp/auth-source-tests.el (auth-source-test-secrets-create-secret): Bind `auth-source-save-behavior' to t. Cleanup. * test/lisp/net/secrets-tests.el (secrets-test00-availability): After loading secets.el, a session is already opened. (secrets-test02-collections, secrets-test03-items) (secrets-test04-search): Open a new session. 2018-05-15 Dima Kogan Give '$' punctuation syntax in make-mode (Bug#24477) * lisp/progmodes/make-mode.el (makefile-mode-syntax-table): Set syntax of '$' to punctuation. 2018-05-15 Noam Postavsky Simplify eshell arg processing with (pop (nthcdr ...)) * lisp/eshell/esh-opt.el (eshell--set-option) (eshell--process-args): Use (pop (nthcdr ...)) instead of writing it out by hand. 2018-05-15 Jay Kamat esh-opt.el: Add a :parse-leading-options-only argument (Bug#28323) * lisp/eshell/esh-opt.el (eshell-eval-using-options): Add a new :parse-leading-options-only argument which ignores dash/switch arguments after the first positional argument. (eshell--process-args): Abort processing of arguments if we see one positional argument and :parse-leading-options-only is set. * lisp/eshell/em-tramp.el (eshell/sudo): Use :parse-leading-options-only, to avoid parsing subcommand switches as switches of sudo itself. * test/lisp/eshell/esh-opt-tests.el: Add tests for new and old behavior. 2018-05-15 Jay Kamat esh-opt.el: Fix improper parsing of first argument (Bug#28323) Examples of broken behavior: sudo -u root whoami Outputs: -u ls -I '*.txt' /dev/null Errors with: *.txt: No such file or directory * lisp/eshell/esh-opt.el (eshell--process-args): Refactor usage of args to eshell--args, as we rely on modifications from eshell--process-option and vice versa. These modifications were not being propogated in the (if (= ai 0)) case, since popping the first element of a list doesn't destructively modify the underlying list object. 2018-05-15 Glenn Morris Merge from origin/emacs-26 c2ef847 (origin/emacs-26) Clarify the mode-line indicators in CC Mode 2018-05-15 Glenn Morris Merge from origin/emacs-26 b98cf9c ; Fix a typo in the Emacs manual 700fcd7 * doc/emacs/help.texi: Fix paren typo. c9c0e40 More minor changes in shell-related nodes of Emacs manual e6bf19c Fix inaccuracies in "Shell Ring" node of Emacs manual 087681b8 Improve documentation of kmacro commands and variables. be2e8cb * doc/man/emacs.1.in: Document --fg-daemon and --bg-daemon. 1d9e66a Don't check non-X frames for z order (Bug#31373) 7dc028e Check NSWindow is actually a frame Conflicts: src/nsfns.m 2018-05-15 Michael Albinus Fix Bug#29575 * lisp/net/secrets.el (secrets-create-item): The new item does not need a unique label. (secrets-item-path, secrets-get-secret, secrets-get-attributes) (secrets-get-attribute, secrets-delete-item): ITEM can also be an object path. (Bug#29575) * test/lisp/net/secrets-tests.el (secrets-test03-items): Test also creation of two items with same label. Test `secrets-get-secret', `secrets-get-attribute' and `secrets-get-attributes' with object path. (secrets-test04-search): Harden test. 2018-05-15 Michael Albinus Fix Bug#31068 * lisp/net/tramp-archive.el (tramp-archive-file-name-handler): Unregister unless `tramp-archive-enabled'. (Bug#31068) 2018-05-14 Tino Calancha Run python test if the python executable is found * test/lisp/progmodes/python-tests.el (python-tests--bug31398): Skip test when executable python is no found. 2018-05-14 Tino Calancha run-python: Make the buffer running python current * lisp/progmodes/python.el (run-python, python-shell-make-comint): Make the buffer running the inferior python process the current buffer (Bug#31398). * test/lisp/progmodes/python-tests.el (python-tests--bug31398): Add test. 2018-05-14 Basil L. Contovounesios Minor refactoring in shell-command * lisp/simple.el (shell-command): Use call-process-shell-command, start-process-shell-command, and file-attribute-size. (bug#30280). 2018-05-14 Basil L. Contovounesios Fix a broken test * lisp/simple.el (shell-command): Use call-process-shell-command, start-process-shell-command, and file-attribute-size. (bug#30280) 2018-05-14 Michael Albinus * lisp/net/ange-ftp.el (ange-ftp-allow-child-lookup): Do not use obsolete ´dired-local-variables-file'. 2018-05-14 Michael Albinus Fix Bug#30663 * lisp/dired.el (dired-revert): Call `hack-dir-local-variables-non-file-buffer'. (Bug#30663) 2018-05-14 Michael Albinus Improve `dired-buffer-stale-p' for remote files * lisp/dired.el (dired-buffer-stale-p): Check for ´file-remote-p' only if `auto-revert-remote-files' is non-nil. 2018-05-14 Michael Albinus Remove obsolete objects from dired-x.el * doc/misc/dired-x.texi (Local Variables): Remove node. * lisp/dired-x.el (dired-enable-local-variables) (default-directory-alist, dired-default-directory-alist) (dired-default-directory, dired-local-variables-file) (dired-hack-local-variables, dired-omit-here-always): Remove obsolete variables, constants and functions. 2018-05-11 João Távora Fix filesystem littering by Flymake's legacy backend The Flymake legacy "proc" backend, which is active by default will try to syntax-check foo.c/foo.cpp and many other types of files, but on failing to find a suitable Makefile target, will fail. There's nothing wrong with that except that it used to leave behind the foo_flymake.c and foo_flymake.cpp auxiliary files behind, littering the filesystem. * lisp/progmodes/flymake-proc.el (flymake-proc-legacy-flymake): Call init-function inside of the unwind-protect. 2018-05-11 Michael Albinus Tramp updates * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes): Parse multibyte symlinks correctly. * test/lisp/net/tramp-tests.el (tramp--test-utf8): Improve backward compatibility. 2018-05-10 Basil L. Contovounesios Rewrite scroll-other-window-down in C (bug#30207) * lisp/window.el (scroll-other-window-down): Move to src/window.c as Fscroll_other_window_down. * src/window.c (scroll_command): Generalise for arbitrary windows. (Fscroll_up, Fscroll_down): Use scroll_command with selected_window. (Fscroll_other_window, Fscroll_other_window_down): Rewrite in terms of scroll_command. (syms_of_window): Add Sscroll_other_window_down. 2018-05-10 Basil L. Contovounesios Simplify "other window" bob/eob motion commands * lisp/window.el (beginning-of-buffer-other-window) (end-of-buffer-other-window): Simplify via with-selected-window. (bug#30207) 2018-05-10 Basil L. Contovounesios Improve documentation for "other window" scrolling * doc/emacs/windows.texi (Other Window): * doc/lispref/windows.texi (Textual Scrolling): Document scroll-other-window-down. * doc/lispref/minibuf.texi (Minibuffer Misc): Cross-reference minibuffer-scroll-window with Textual Scrolling. * src/window.c (Fother_window_for_scrolling): Clarify how "other window" is determined in docstring. (Fscroll_other_window): Simplify docstring, pointing to that of Fother_window_for_scrolling. (bug#30207) 2018-05-10 Basil L. Contovounesios Limit "other window" scrolling to current terminal * src/window.c (Fother_window_for_scrolling): Limit next-window search to visible frames on the current terminal. (bug#30207) 2018-05-07 Glenn Morris Merge from origin/emacs-26 1d732d6 (origin/emacs-26) Fix gud-statement for pdb 91a68b5 ; * msdos/INSTALL: Add info about GCC versions. 7ddcc9a Document 'custom-group' 58f9e15 A minor addition to etc/DEBUG 4590414 Avoid errors in ispell.el when Enchant returns empty extra chars d0d75f9 Make 'ispell-initialize-spellchecker-hook' work again b90ce66 Handle selected_window change in prepare_menu_bars (Bug#31312) 79ad0b3 ; * INSTALL: Fix Emacs version number. (Bug#31358) 91de88b Fix report-emacs-bug via mailclient on MS-Windows f4b5ff2 Port collation tests to glibc 2.27 2018-05-06 Ari Roponen Fix cairo scrolling for side-by-side windows * src/xterm.c (x_scroll_run) [USE_CAIRO]: Fix scrolling for side-by-side split windows. (Bug#31288) 2018-05-06 Eli Zaretskii Don't remove highlight of misspelled word on pdict save * lisp/textmodes/ispell.el (ispell-pdict-save): Don't restart flyspell-mode, as bug#11963, which this was supposed to fix, is fixed better by ispell-command-loop, when the user types 'i' or 'a'. Restarting Flyspell mode when the personal dictionary is saved caused bug#31372 as side effect. (ispell-command-loop): Test 'flyspell-mode', not whether flyspell-unhighlight-at is fboundp, to determine whether Flyspell mode is turned on in the current buffer. (flyspell-unhighlight-at): Add declare-function form for it. 2018-05-06 Michael Albinus Fix Bug#31272 * lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls) (tramp-do-directory-files-and-attributes-with-stat) (tramp-sh-handle-insert-directory): Use "--show-control-chars". (tramp-convert-file-attributes): Decode multibyte strings, produced by "stat". (Bug#31272) * test/lisp/net/tramp-tests.el (tramp--test-utf8): Extend test. 2018-05-05 Michael Hendricks (tiny change) Include narrowing indication in describe-mode * lisp/help.el (describe-mode): Include "Narrow", if narrowing is active. (Bug#31139) 2018-05-05 Ari Roponen Fix some problems in the Cairo build * src/xterm.c (x_begin_cr_clip): Create image surface. (x_update_end) [USE_CAIRO]: Remove GTK3-specific code. (x_scroll_run) [USE_CAIRO]: Implement scrolling. * src/image.c (lookup_rgb_color) [USE_CAIRO]: Support Cairo. (jpeg_load_body) [USE_CAIRO]: Support Cairo. Use USE_CAIRO instead of CAIRO for #ifdef's. (imagemagick_load_image) [USE_CAIRO]: Support Cairo. (Bug#31288) 2018-05-05 Eli Zaretskii Avoid infloops in font_open_entity * src/font.c (font_open_entity): Fail after 15 iterations through the loop that looks for a font whose average_width and height are both positive. This avoids infinite loops for fonts that, e.g., report average_width of zero for any possible size we try. (Bug#31316) 2018-05-05 Eli Zaretskii Fix encoding of characters when using GB18030 fonts * lisp/international/fontset.el (font-encoding-alist): Fix the GB18030 entry to encode characters correctly when passing them to the xfont back-end. (Bug#31315) See also http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg00754.html. 2018-05-04 Noam Postavsky * make-dist: Don't fail if building --without-makeinfo. 2018-05-03 Phillip Lord Fix windows snapshot building * admin/nt/dist-build/build-zips.sh: Fix broken if statement 2018-05-03 Phillip Lord * admin/nt/dist-build/build-zips.sh: Support building of branches 2018-05-03 Paul Eggert More porting to GCC 8 of --enable-gcc-warnings * lwlib/lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu): * lwlib/lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance): * lwlib/lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]: No longer const. * src/emacs-module.c: Ignore -Wcast-function-type. 2018-05-02 Marco Wahl Noam Postavsky Fix next-page for dired (Bug#31061) * lisp/textmodes/page-ext.el (next-page): Don't go back any pages if COUNT is 0. For negative COUNT, end with point just after the last delimiter. 2018-05-02 Basil L. Contovounesios Minor simple.el simplifications (Bug#31211) * lisp/simple.el (kill-append, push-mark, pop-mark): Simplify conditionals and surrounding code. 2018-05-02 Basil L. Contovounesios Fix off-by-one history pruning (bug#31211) * lisp/subr.el (add-to-history): Clarify docstring. Protect against negative history-length and unnecessary variable modification, as per read_minibuf. * lisp/ido.el (ido-record-command): * lisp/international/mule-cmds.el (deactivate-input-method): (set-language-environment-input-method): * lisp/isearch.el (isearch-done): * lisp/minibuffer.el (read-file-name-default): * lisp/net/eww.el (eww-save-history): * lisp/simple.el (edit-and-eval-command, repeat-complex-command): (command-execute, kill-new, push-mark): * src/callint.c (Fcall_interactively): * src/minibuf.c (read_minibuf): Delegate to add-to-history. * test/lisp/simple-tests.el (command-execute-prune-command-history): * test/src/callint-tests.el (call-interactively-prune-command-history): New tests. 2018-05-02 Glenn Morris * lisp/textmodes/ispell.el (ispell-use-framepop-p): Doc fix. 2018-05-02 Michael Albinus Adapt Tramp for auth-source * lisp/net/tramp.el (tramp-read-passwd): auth-source could return cascaded functions. 2018-05-02 Michael Albinus Fix some edge cases of tramp-smb * lisp/net/tramp-smb.el (tramp-smb-errors): Add "NT_STATUS_REVISION_MISMATCH". (tramp-smb-handle-delete-directory): Check, that the directory has been removed indeed. (tramp-smb-get-localname): Add further checks on filename syntax. * lisp/net/tramp.el (tramp-localname-regexp): Do not allow linefeeds. * test/lisp/net/tramp-tests.el (tramp-smb-get-localname): Declare. (auth-source-save-behavior): Set it to nil. (tramp-test01-file-name-syntax): Extend, checking for linefeeds. (tramp-test03-file-name-host-rules, tramp--test-utf8): Refine tests. (tramp-test03-file-name-method-rules): New test. (tramp--test-ignore-add-name-to-file-error): New defmacro. (tramp-test21-file-links): Use it. 2018-05-01 Glenn Morris Merge from origin/emacs-26 71be806 ; * etc/DEBUG: Minor clarification. 4403f89 Update the Emacs FAQ 40b3317 * etc/DEBUG: Minor copyedits. 850ff18 Clarify wording of NS drag n drop documentation 343d70b1 Improve kill-related documentation (bug#31209) 0b43224 * lisp/simple.el (region-extract-function): Don't hide the 'n... d6e2c59 Fix pre- and post-command-hook errors in term.el 6cf83131e * doc/lispref/display.texi (Glyphless Chars): Fix grammar. 88d178c Fix macOS drag n drop event documentation 2018-05-01 Lars Ingebrigtsen `url-domain' doc clarification * lisp/url/url-util.el (url-domain): Add an example to the doc string. 2018-05-01 Lars Ingebrigtsen Rewrite `url-domain' to avoid network traffic * lisp/url/url-util.el (url-domain): Don't talk DNS to determine the domain, because this is slow. * test/lisp/url/url-util-tests.el (url-domain-tests): Add tests for `url-domain'. 2018-04-30 Glenn Morris * test/src/process-tests.el (make-process/mix-stderr): Skip on hydra. 2018-04-29 Stefan Monnier * lisp/net/socks.el: Use lexical-binding and process properties Remove unneeded requires. Better following commenting conventions. (socks-connections): Remove (use process properties instead). (socks-wait-for-state-change): Make it a function. (open-network-stream): Use an advice when overriding. (socks-send-command): Avoid string-make-unibyte. (socks--open-network-stream): New function (extracted from socks-open-network-stream). (socks-open-network-stream): Rewrite using it. 2018-04-29 Paul Eggert Advise CFLAGS= operand, not in environment, when configuring 2018-04-28 Noam Postavsky Replace epg--gv-nreverse with (cl-callf nreverse ...) * lisp/epg.el (epg--gv-nreverse): Remove. (epg-list-keys): Replace it with (cl-callf nreverse ...). 2018-04-28 Paul Eggert Port --enable-gcc-warnings to GCC 8 * configure.ac: Do not use GCC 8’s new -Wcast-align flag. * lib-src/ebrowse.c (xmalloc): * lib-src/emacsclient.c (xmalloc, xstrdup): * lib-src/etags.c (xmalloc): * lib-src/make-docfile.c (xmalloc): * lib-src/movemail.c (xmalloc): * src/dispnew.c (new_glyph_pool): * src/regex.c (xmalloc): * src/term.c (tty_menu_create): * src/tparam.h (tparam): Use ATTRIBUTE_MALLOC. Also see GCC bug 85562. * lib-src/emacsclient.c (fail): Do not dereference a null pointer. * src/frame.c (delete_frame): Add a decl with UNINIT to work around GCC bug 85563. * src/menu.h (finish_menu_items): Do not use attribute const. * src/regex.c (analyze_first): Use FALLTHROUGH, not a comment. 2018-04-28 Paul Eggert Update from Gnulib This incorporates: 2018-04-27 manywarnings: port to GCC 8.0 * build-aux/config.sub, m4/manywarnings.m4: Copy from Gnulib. 2018-04-28 Juri Linkov * lisp/vc/add-log.el (change-log-mode-syntax-table): New defvar that redefines syntax of quotes to "expression quote or prefix operator". (Bug#31231) 2018-04-28 Juri Linkov * lisp/subr.el (dotimes): Deprecate RESULT field. (Bug#16206) * doc/lispref/control.texi (Iteration): * doc/misc/cl.texi (Iteration): Document deprecation of its use. * doc/lispintro/emacs-lisp-intro.texi (dotimes): * test/src/emacs-module-tests.el (multiply-string): * test/lisp/filenotify-tests.el (file-notify-test07-many-events): Place RESULT field after the form. 2018-04-28 Eli Zaretskii * src/fns.c (Fstring_distance): Minor code reformatting. 2018-04-28 Eli Zaretskii Fix documentation and tests for 'string-distance' * src/fns.c (Fstring_distance): Doc fix. * doc/lispref/strings.texi (Text Comparison): Document 'string-distance'. * etc/NEWS: Fix wording and mark as documented in the manuals. * test/src/fns-tests.el (test-string-distance): Move from subr-tests.el and rename. 2018-04-27 Chen Bin New function 'string-distance' * src/fns.c (Fstring_distance): New primitive. (syms_of_fns): Defsubr it. * test/lisp/subr-tests.el (subr-tests--string-distance): New test. * etc/NEWS: Mention 'string-distance'. 2018-04-27 Michael Albinus Manual update for Tramp * doc/misc/tramp.texi (Password handling): Explain, how passwords are saved permanently. * etc/NEWS: auth-source Secret Service backend supports :create. Tramp saves validated passwords. 2018-04-27 Noam Postavsky * lisp/epa.el (epa-decrypt-file): Apply epa-pinentry-mode (Bug#30363). 2018-04-26 Lars Ingebrigtsen Strip most headers when forwarding messages * lisp/gnus/message.el (message-forward-included-headers): Change the default to exclude most messages. (message-remove-ignored-headers): Make message-forward-included-headers actually work -- it's a list of regexps, not a list of strings. 2018-04-26 Paul Eggert * etc/NEWS: Fix minor quoting and spacing bugs. 2018-04-26 Noam Postavsky Add missing calendar-dlet* (Bug#31267) * lisp/calendar/calendar.el (calendar-generate-month): Use calendar-dlet* around evaluation of calendar-date-echo-text. 2018-04-26 Ivan Shmakov Ensure woman2-roff-buffer restores functions on error (Bug#30908) * lisp/woman.el (woman2-roff-buffer): Put the fallback paragraph processing inside the protected part of the unwind-protect form, rather than the cleanup forms. Attempting to format paragraphs again after an error has been signaled is unlikely to be helpful. The fallback processing should be triggered only in case the loop terminated normally, but did not reach the end of the buffer for some reason. 2018-04-26 Noam Postavsky Fix cl-print for circular sublists (Bug#31146) * lisp/emacs-lisp/cl-print.el (cl-print-object) : Push each element of list being printed onto cl-print--currently-printing. * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-circle-2): New test. 2018-04-25 Paul Eggert Don’t set print-escape-newlines in the minibuffer This appears to be an unnecessary and possibly-confusing revenant from ancient code (Bug#31251). See thread containing: https://lists.gnu.org/r/emacs-devel/2018-04/msg00654.html * src/minibuf.c (read_minibuf): Do not set print-escape-newlines. * src/print.c (syms_of_print): Do not defsym print-escape-newlines or print-escape-control-characters, as these symbols are not used in C code. 2018-04-25 Glenn Morris * lisp/foldout.el (outline-minor-mode): Remove pointless check. 2018-04-25 Glenn Morris speedbar: remove support for missing custom.el * lisp/speedbar.el (speedbar-file-regexp) (speedbar-ignored-directory-regexp): Remove support for no custom.el. 2018-04-25 Glenn Morris * lisp/progmodes/sql.el (comint-line-beginning-position): Remove pre-21 fallback definition. * lisp/net/eudc.el (split-string): Remove pre-21 fallback definition. 2018-04-25 Basil L. Contovounesios Do not call interprogram-paste-function repeatedly * lisp/simple.el (current-kill): Disable interprogram-paste-function so that kill-new doesn't call it repeatedly when save-interprogram-paste-before-kill is enabled. (bug#31209) 2018-04-24 Glenn Morris socks.el: remove pre-21 compatibility code * lisp/net/socks.el (socks-split-string): Remove. (socks-nslookup-host): Just use split-string. 2018-04-24 Paul Eggert * src/minibuf.c (read_minibuf): Add a FIXME comment. 2018-04-24 Lars Ingebrigtsen (add-to-invisibility-spec): Further doc tweak * lisp/subr.el (add-to-invisibility-spec): Tweak doc fix from previous patch. 2018-04-24 Lars Ingebrigtsen Doc fix for `*-*-invisibility-spec' * lisp/subr.el (add-to-invisibility-spec) (remove-from-invisibility-spec): Make the doc string say what happens if `buffer-invisibility-spec' is an atom (bug#30171). 2018-04-24 Lars Ingebrigtsen libxml-parse-*-region calling convention fix * lisp/subr.el (libxml-parse-xml-region) (libxml-parse-html-region): Adjust the calling convention to note that the final parameter is optional. 2018-04-24 Lars Ingebrigtsen Make url-http-create-request work with non-ASCII data again * lisp/url/url-http.el (url-http-create-request): Ensure that the entire request string is unibyte (bug#31248). 2018-04-23 Eli Zaretskii Fix recent change in lread.c * src/lread.c (openp): Avoid assertion violations in XCDR when PATH is nil. (Bug#31229) 2018-04-23 Paul Eggert Backspace is not a paragraph separator in Texinfo files * lisp/textmodes/texinfo.el (texinfo-mode): Omit backspace from paragraph separator and start. Perhaps there was some confusion about .texi vs .info files long ago? 2018-04-23 Eli Zaretskii * etc/NEWS: Improve wording of next-error entries. 2018-04-23 Michael Albinus Let Tramp save passwords * lisp/auth-source.el (auth-source-secrets-saver): New defun. (auth-source-secrets-create): Use it. * lisp/net/secrets.el (secrets-struct-secret-content-type): (secrets-create-item): Do not hard-code :xdg:schema. * lisp/net/tramp.el (tramp-password-save-function): New defvar. (tramp-read-passwd): Set it properly. (tramp-process-actions): * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): Save password. * lisp/net/tramp-cmds.el (tramp-bug): Don't report `tramp-password-save-function'. * test/lisp/net/secrets-tests.el (secrets-test03-items): Extend test with another :xdg:schema. 2018-04-23 Michael Albinus Ensure proper EOL handling for Tramp on macOS * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Ensure proper EOL handling for Darwin. 2018-04-22 Juri Linkov Improve Isearch error handling * lisp/isearch.el (isearch--momentary-message): Propertize message suffix with minibuffer-prompt face. (isearch--describe-regexp-mode): Do not omit description in case of error in default non-literal search. (isearch-message-prefix): Display “case-sensitive” in case of error. (isearch-message-suffix): Propertize message suffix with minibuffer-prompt face. (isearch-search-fun-default): Remove unused error handling. * lisp/vc/add-log.el (change-log-next-buffer): Better handle errors during wrapping. 2018-04-22 Lars Ingebrigtsen (text-property-search-forward): Copy edits in doc string * lisp/emacs-lisp/text-property-search.el (text-property-search-forward): Copy edits in doc string. 2018-04-22 Eli Zaretskii Minor improvements of next-error docs * lisp/simple.el (next-error-find-buffer-function) (previous-error, next-error-select-buffer): Doc fixes. * doc/emacs/maintaining.texi (Change Log Commands): * doc/emacs/building.texi (Compilation Mode): Index the new commands and variables. Improve wording. (Bug#20493) 2018-04-22 Lars Ingebrigtsen (text-property-search-forward): Doc string tweak * lisp/emacs-lisp/text-property-search.el (text-property-search-forward): Doc string tweak. 2018-04-22 Lars Ingebrigtsen (text-property-search-forward): Fix search at the end * lisp/emacs-lisp/text-property-search.el (text-property-search-forward): Fix search at the end of the buffer with no text properties. 2018-04-22 Lars Ingebrigtsen Add a test suite for text-property-search 2018-04-21 Juri Linkov Update documentation for more next-error features * doc/emacs/maintaining.texi (Change Log Commands): Mention change-log-goto-source. * doc/emacs/building.texi (Compilation Mode): Document next-error-find-buffer-function and next-error-select-buffer. * doc/emacs/building.texi (Grep Searching): * doc/emacs/files.texi (Diff Mode): * doc/emacs/search.texi (Other Repeating Search): * doc/emacs/windows.texi (Displaying Buffers): Prefer ‘M-g M-n’ over ‘C-x `’. * lisp/simple.el (next-error-find-buffer-function, next-error) (next-error-select-buffer): Elaborate docstrings. (Bug#20493) 2018-04-20 Glenn Morris Tweak recent bytecomp defvaralias change * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defvar-function): Respect with-no-warnings. 2018-04-20 Glenn Morris More alias-related tedium * lisp/comint.el (comint-scroll-to-bottom-on-output): * lisp/completion.el (cmpl-syntax-table): * lisp/erc/erc-button.el (erc-button-google-url): * lisp/font-lock.el (font-lock-reference-face): * lisp/hfy-cmap.el (hfy-fallback-colour-map, hfy-rgb-txt-colour-map): * lisp/isearch.el (isearch-regexp-function, isearch-new-word): * lisp/startup.el (argv): * lisp/version.el (emacs-bzr-version): * lisp/org/org.el (org-CUA-compatible) (org-popup-calendar-for-date-prompt): Move aliases before targets, to silence new compiler warning. 2018-04-20 Glenn Morris The tedious game of whack-a-mole with compiler warnings continues * lisp/abbrev.el (edit-abbrevs-map): * lisp/emacs-lock.el (emacs-lock-from-exiting): * lisp/htmlfontify.el (hfy-optimisations): * lisp/ielm.el (inferior-emacs-lisp-mode-hook) (inferior-emacs-lisp-mode-map): * lisp/isearch.el (isearch-lazy-highlight-word): * lisp/select.el (x-select-enable-clipboard, x-select-enable-primary): * lisp/shell.el (shell-dirtrack-mode): * lisp/skeleton.el (skeleton-transformation, skeleton-filter): * lisp/startup.el (inhibit-splash-screen, inhibit-startup-message): * lisp/window.el (even-window-heights): * lisp/calendar/timeclock.el (timeclock-modeline-display): * lisp/cedet/semantic/db-mode.el (semanticdb-mode-hook) (semanticdb-global-mode): * lisp/emacs-lisp/edebug.el (gud-inhibit-global-bindings): * lisp/emacs-lisp/warnings.el (display-warning-minimum-level) (log-warning-minimum-level): * lisp/erc/erc-dcc.el (erc-dcc-chat-filter-hook): * lisp/gnus/nnspool.el (news-path): * lisp/org/org-agenda.el (org-agenda-search-view-search-words-only) (org-agenda-remove-tags-when-in-prefix) (org-agenda-align-tags-to-column, org-agenda-keymap): * lisp/org/org.el (org-special-ctrl-a) (org-log-state-notes-into-drawer) (org-agenda-multi-occur-extra-files): * lisp/progmodes/flymake-proc.el (flymake-err-line-patterns) (flymake-check-file-limit): * lisp/progmodes/make-mode.el (makefile-query-one-target-method): * lisp/progmodes/octave.el (inferior-octave-startup-hook): * lisp/progmodes/python.el (python-buffer) (python-preoutput-result): * lisp/progmodes/sql.el (sql-dialect): * lisp/textmodes/artist.el (artist-text-renderer): * lisp/textmodes/bibtex.el (bibtex-autokey-name-case-convert) (bibtex-autokey-titleword-case-convert): * lisp/textmodes/flyspell.el (flyspell-generic-check-word-p): * lisp/textmodes/ispell.el (ispell-format-word): * lisp/textmodes/rst.el (rst-preferred-decorations): * lisp/textmodes/sgml-mode.el (sgml-transformation): Move aliases before targets, to silence new compiler warning. * lisp/term/ns-win.el (ns-option-modifier, ns-right-option-modifier): Silence warning. 2018-04-20 Stefan Monnier * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defvar-function): Warn about defvaralias that follows instead of precedes its var. 2018-04-20 Stefan Monnier * lisp/url/url-file.el: Use lexical-binding. 2018-04-20 Glenn Morris * lisp/net/newst-backend.el (newsticker--sentinel-work): Replace obsolete form of libxml-parse-xml-region. * lisp/replace.el (query-replace-descr): Silence compiler. 2018-04-20 Michael Albinus Revert "* etc/HELLO: Add langugae Emoji. Use utf-8 coding." This reverts commit c4cfb5d20487f9912f5896b3f1d291fe7ccc9804. 2018-04-20 Michael Albinus Revert "* admin/notes/unicode: HELLO is now UTF-8." This reverts commit 0585bd643dae2592214e77998b875347e6e59bab. 2018-04-20 Paul Eggert * admin/notes/unicode: HELLO is now UTF-8. 2018-04-20 Glenn Morris Merge from origin/emacs-26 5de608f (origin/emacs-26) Update the documentation of 'perform-replace' 06245b6 * etc/NEWS: Another fix for the last change (noted by Juri Li... 8f6293c Fix use of @key in Texinfo manuals f4c9894 Improve documentation of actual arglist ce0e253 ; * etc/NEWS: Improve last change as proposed by Phil Sainty b89ff0e Don't assume term-current-row cache is valid (Bug#31193) 326a296 ; * etc/NEWS: Mention 'display-buffer-in-major-side-window' c... 3bdc9a1 Fix flyspell-auto-correct-previous-word broken by recent change a539eb5 * test/src/lread-tests.el (lread-test-bug-31186): New test. 3fa472b Fix undefined behaviour while looking for lexical-binding fil... 4341aac Minor wording improvement in "Bookmarks" Conflicts: test/src/lread-tests.el 2018-04-20 Stefan Monnier * lisp/international/mule-cmds.el (view-hello-file): Avoid duplicate Don't hardcode the coding-system, now that it's specified with a "coding:" tag 2018-04-20 Michael Albinus * lisp/international/mule-cmds.el (view-hello-file): Use utf-8 coding. * etc/HELLO: Add langugae Emoji. Use utf-8 coding. 2018-04-19 Glenn Morris * lisp/url/url-util.el (puny-encode-domain): Autoload it. 2018-04-19 Juri Linkov Mention next-error-select-buffer in etc/NEWS 2018-04-19 Alan Mackenzie Amend c-colon-type-list-re also to handle compound identifiers * lisp/progmodes/cc-langs.el (c-colon-type-list-re): Amend to recognize and skip over "::" in C++ and "." in Java. 2018-04-19 Juri Linkov Use text properties to save search parameters. (Bug#22479) * lisp/isearch.el (isearch-update-ring): Call isearch-string-propertize. Delete duplicates with possibly different text properties. (isearch-string-propertize) (isearch-update-from-string-properties): New functions. (with-isearch-suspended, isearch-ring-adjust1): Call isearch-update-from-string-properties. (isearch-edit-string): Let-bind minibuffer-allow-text-properties to t. (isearch-query-replace): Use propertized isearch-string. (isearch--lax-regexp-function-p): Simplify. * lisp/replace.el (query-replace-descr): Rewrite to keep text properties non-destructively in the replacement string. (query-replace--split-string): Don't remove text properties by substring-no-properties. (query-replace-read-args): Try to get isearch-regexp-function from text-properties. (perform-replace): Display parameters in the replacement message. * lisp/desktop.el (desktop--v2s): Check if text properties are unreadable. (Bug#30786) 2018-04-19 Juri Linkov * lisp/isearch.el (isearch-mode-map): Restore advertised bindings. Remove obsolete comments and code. * lisp/replace.el (occur-find-match): Use user-error instead of error. (Bug#14912) 2018-04-19 Drew Adams Add REGION-NONCONTIGUOUS-P arg to other replace.el commands * lisp/replace.el (query-replace, query-replace-regexp): Doc fix. (query-replace-regexp-eval, map-query-replace-regexp) (replace-string, replace-regexp): Add REGION-NONCONTIGUOUS-P arg. (perform-replace): Doc fix. (Bug#27897) 2018-04-19 Glenn Morris * lisp/emacs-lisp/autoload.el (autoload--make-defs-autoload): Sort definition-prefixes, for stability. 2018-04-19 Michael Albinus Handle chrooted environments in Tramp * doc/misc/tramp.texi (Frequently Asked Questions): New item, chrooted environments. * lisp/net/tramp.el (tramp-local-host-regexp): Make it a defcustom. Allow nil. (tramp-local-host-p): * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Handle this. 2018-04-18 Glenn Morris * test/src/process-tests.el (make-process/mix-stderr): Use bash. Not all shells support ">&2". 2018-04-18 Paul Eggert Fix botched merge of FQDNs in PROBLEMS This text was originally removed in 2014-12-30T04:42:26Z!eggert@cs.ucla.edu but then was mistakenly re-added in the merge in 2015-03-23T17:30:30Z!eggert@cs.ucla.edu. * etc/PROBLEMS: Omit obsolete mention of FQDNs. 2018-04-18 Paul Eggert Tweak mark_object to avoid a conditional branch * src/alloc.c (LAST_MARKED_SIZE): Now an enum. Make it a power of 2. (mark_object): Take advantage of the power of 2. 2018-04-18 Stefan Monnier * lisp/emacs-lisp/gv.el (gv-define-setter): Silence compiler warning Code placed in the `gv-expander` property will presumably only be used when gv is loaded (bug#14529). 2018-04-18 Paul Eggert Tell user about read-integer-overflow-as-float * src/lread.c (string_to_number): Suggest read-integer-overflow-as-float in signal message. Suggested by Stefan Monnier (Bug#31118#58). 2018-04-17 Paul Eggert Fix signal for large integers with valid syntax * src/lread.c (read_integer): If a radixed integer has valid syntax but is waayyy too large, signal overflow instead of invalid syntax. * test/src/lread-tests.el (lread-long-hex-integer): New test. 2018-04-17 Lars Ingebrigtsen (sql-stop): Don't bug out if the SQL buffer is killed * lisp/progmodes/sql.el (sql-stop): Don't bug out if the SQL buffer is killed (bug#30244). 2018-04-17 David Beswick (tiny change) Don't display an initial-buffer-choice buffer twice * lisp/startup.el (command-line-1): Don't display an initial-buffer-choice buffer twice if the user is also explicitly specifying it on the mode line, but shift it to the initial place (bug#29999). 2018-04-17 Lars Ingebrigtsen Revert hunk mistakenly applied in last patch 2018-04-17 Lars Ingebrigtsen Fix problem in `g' in Info with strings like "(foo)" * lisp/info.el (Info-find-file): Add a new parameter to avoid jumping to the directory if the user looks for a filename on the form "(foo)" that doesn't exist. (Info-read-node-name-1): Use it to allow completing over strings like "(foo)" without losing focus (bug#30091). 2018-04-17 Basil L. Contovounesios Set :version of shr faces * lisp/net/shr.el (shr-strike-through, shr-link, shr-selected-link): Set :version tag (bug#31200). 2018-04-17 Lars Ingebrigtsen shr doc string fix * lisp/net/shr.el (shr-strike-through, shr-link) (shr-selected-link): Doc string fix. 2018-04-17 Basil L. Contovounesios Modernise face specs and set version tags in eww/shr * lisp/net/shr.el (shr-strike-through, shr-link, shr-selected-link): Set :version tag (bug#31200). * lisp/net/eww.el (eww-form-text, eww-form-textarea): * lisp/net/shr.el (shr-strike-through, shr-link, shr-selected-link): Use (DISPLAY . PLIST) face spec syntax as recommended in '(elisp) Defining Faces'. 2018-04-17 Lars Ingebrigtsen When undoing a mark-as-read, display the group if it isn't * lisp/gnus/gnus-group.el (gnus-group-jump-to-group): Return whether we found the group. (gnus-info-clear-data): Make the group visible if it wasn't. * lisp/gnus/gnus-sum.el (gnus-group-make-articles-read): Ditto. (gnus-update-read-articles): Ditto. 2018-04-17 Juri Linkov Use next-error-found to set next-error-last-buffer. https://lists.gnu.org/archive/html/emacs-devel/2018-04/msg00207.html * lisp/simple.el (next-error-buffer): New buffer-local variable instead of making buffer-local next-error-last-buffer. (Bug#20489) (next-error-found-function): New defcustom. (next-error-buffer-on-selected-frame): Use t for avoid-current arg of next-error-buffer-p. (next-error-find-buffer): Add second rule for using the current next-error-buffer if it's not visited by other navigation. (next-error, next-error-internal): Call next-error-found. (next-error-found): New function with body extracted mostly from next-error. * lisp/vc/add-log.el (change-log-goto-source-internal): New function with body from change-log-goto-source. (change-log-goto-source): Call change-log-goto-source-internal and next-error-found. (change-log-next-error): Call change-log-goto-source-internal instead of change-log-goto-source. (change-log-mode): Don't set next-error-last-buffer. (Bug#28864) * lisp/vc/diff-mode.el (diff-goto-source): Call next-error-found. * lisp/progmodes/xref.el (xref-goto-xref): Call next-error-found. * lisp/replace.el (occur-mode-goto-occurrence) (occur-mode-goto-occurrence-other-window) (occur-mode-display-occurrence): Call next-error-found. (occur-next-error): Remove unnecessary with-current-buffer. (Bug#27362, bug#30646) 2018-04-17 Lars Ingebrigtsen Tweak shr window width computation * lisp/net/shr.el (shr-insert-document): The computation of the window width is apparently one pixel too wide for the shr line folding algorithm (bug#31196). 2018-04-17 Lars Ingebrigtsen (gnus-summary-select-article-buffer): Further point placing tweak * lisp/gnus/gnus-sum.el (gnus-summary-select-article-buffer): Further tweak for the previous point-placing tweak. 2018-04-17 Lars Ingebrigtsen Tweak point placement in gnus-summary-select-article-buffer * lisp/gnus/gnus-sum.el (gnus-summary-select-article-buffer): Ensure that point is where it's supposed to be after switching to the article buffer. 2018-04-17 Lars Ingebrigtsen Make the `c' command work in a single-article Gnus view * lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): Make `c' work from the article buffer (bug#31195) when no summary buffer is shown. 2018-04-17 Lars Ingebrigtsen Place point consistently in the Gnus group buffer on exit * lisp/gnus/gnus-sum.el (gnus-summary-exit): Place point correctly when exiting with `q' (and the like) from the article buffer when only the article buffer is displayed (bug#31195). This is apparently yet another fall-out from the "preserve-visible-point- in-windows" patches of yesteryear... 2018-04-17 Lars Ingebrigtsen Reimplement `shr-next-link' and `shr-previous-link' * lisp/net/shr.el (shr-next-link): Use `text-property-search-forward'. (shr-previous-link): Use `text-property-search-backward'. 2018-04-17 Lars Ingebrigtsen Add `text-property-search-forward' and `-backward' * doc/lispref/text.texi (Property Search): Document `text-property-search-forward' and `text-property-search-backward'. * lisp/emacs-lisp/text-property-search.el: New file. 2018-04-17 Tino Calancha * lisp/textmodes/artist.el (artist-mode): Ensure we have a font 2018-04-16 Katsumi Yamaoka * lisp/mail/sendmail.el (mail-sendmail-undelimit-header): Work for the case where the mail header separator has already been deleted. 2018-04-16 Lars Ingebrigtsen (gnus-group-goto-group): Return correct value after previous patch * lisp/gnus/gnus-group.el (gnus-group-goto-group): Return the correct value after the previous patch. 2018-04-16 Lars Ingebrigtsen Fix inconsistent point movement in the Gnus group buffer * lisp/gnus/gnus-group.el (gnus-group-goto-group): If we can't find the group we're looking for, then don't move point at all (bug#23021). 2018-04-16 Lars Ingebrigtsen (artist-mode): Warn about proportional fonts * lisp/textmodes/artist.el (artist-mode): Warn about proportional fonts (bug#24175). 2018-04-16 Lars Ingebrigtsen Make mail-sendmail-undelimit-header actually remove the delimiter * lisp/mail/sendmail.el (mail-sendmail-undelimit-header): Actually remove the mail header separator (bug#17488). In all the cases where this is called, the separator will probably already have been removed, so the only thing this does is place point at the end of the headers. 2018-04-16 Lars Ingebrigtsen (semantic-symref-results-mode-map): Fix typo in previous check-in * lisp/cedet/semantic/symref/list.el (semantic-symref-results-mode-map): Fix typo in previous check-in. 2018-04-15 Philipp Stephani Avoid undefined behavior in 'defvar' (Bug#31072) * src/eval.c (Fdefvar): Check that first argument is a symbol. * test/src/eval-tests.el (defvar/bug31072): New unit test. 2018-04-15 Stefan Monnier EUDC: Enable lexical binding and do some cleanups * lisp/net/eudc.el: Enable lexical binding. (cl-lib): Always require cl-lib, not only when byte compiling. (eudc-mode-map): Set parent keymap within let form. (eudc-update-local-variables): Use #' read syntax for function argument to map function. (eudc-select): Likewise. (eudc-format-attribute-name-for-display): Likewise (eudc-filter-duplicate-attributes): Likewise. (eudc-format-query): Likewise. (eudc-expand-inline): Likewise. (eudc-query-form): Likewise. (eudc-print-attribute-value): Use mapc instead of mapcar. (eudc-filter-partial-records): Use cl-every. (eudc-distribute-field-on-records): Use delete-dups to simplify function. (eudc-expand-inline): Replace while with dolist and let form. (eudc-query-form): Set inhibit-read-only after switching buffers. Remove useless and call. (eudc-load-eudc): Add a FIXME comment. 2018-04-15 Rüdiger Sonderfeld In HTML mode, don't match

      ... Use quit-buffer instead of semantic-symref-hide-buffer * lisp/cedet/semantic/symref/list.el (semantic-symref-hide-buffer): Removed (bug#15857). (semantic-symref-results-mode-map): Use quit-buffer instead. 2018-04-15 Lars Ingebrigtsen Doc string update for gnus-extract-address-components * lisp/gnus/gnus-util.el (gnus-extract-address-components): Doc update. 2018-04-15 Lars Ingebrigtsen Add an undo command to url-cookie-mode * lisp/url/url-cookie.el (url-cookie-undo): New command and keystroke (bug#16650). 2018-04-15 Lars Ingebrigtsen Tweak the look of the cookie buffer after cookie deletion * lisp/url/url-cookie.el (url-cookie--generate-buffer): Factor out into its own function. (url-cookie-delete): Use it to make the buffer look consistent after deleting a cookie. 2018-04-15 Lars Ingebrigtsen Make eww handle "http://a/../../../g" * lisp/net/eww.el (eww): Strip leading elements off URLs on the form "http://a/../../../g", because that's what all the other browsers do (bug#8622). 2018-04-15 Lars Ingebrigtsen Make url-cookie-write-file be more permissive * lisp/url/url-cookie.el (url-cookie-write-file): If `url-cookie-file' isn't set (due to url.el not being used yet), don't error out in this function (bug#23183). 2018-04-15 Lars Ingebrigtsen Don't warn the user about large files if they are unreadable * lisp/files.el (abort-if-file-too-large): There's no point in warning the user about a too-large file if we're not able to read it (bug#29549). Hopefully this doesn't introduce a race condition between this test and the `file-readable-p' test later. 2018-04-15 Lars Ingebrigtsen Only save the mailer choice after sending the mail * lisp/mail/sendmail.el (sendmail-query-once): Only save the mailer choice after we've sent the mail, so that if that fails, the user has an easy way to back out of the choice and make another (bug#14487). (sendmail-query-user-about-smtp): Return the choice; don't save it. 2018-04-15 Lars Ingebrigtsen (compose-mail): Give a better error message for `mail-user-agent' * lisp/simple.el (compose-mail): Give a better error message for invalid values for `mail-user-agent' (bug#17979). 2018-04-15 Lars Ingebrigtsen Fix typo in gnus.texi * doc/misc/gnus.texi (Summary Message Commands): Fix typo in last change. 2018-04-15 Lars Ingebrigtsen Update doc string after previous ietf-drums change * lisp/mail/ietf-drums.el (ietf-drums-parse-address): Doc fix after previous change. 2018-04-15 Lars Ingebrigtsen mail-extr.el: Mention `mail-header-parse-address' in the doc string * lisp/mail/mail-extr.el (mail-extract-address-components): Mention `mail-header-parse-address' in the doc string. 2018-04-15 Lars Ingebrigtsen Allow `mail-header-parse-address' to decode encoded words * lisp/mail/ietf-drums.el (ietf-drums-parse-address): Take an optional parameter to decode the display name. 2018-04-15 Lars Ingebrigtsen Revert "Make mail-extract-address-components return the user name more" This reverts commit 8b50ae8b2284b5652c2843a9d0d076f4f657be28. According to tests in bug#27656 by OGAWA Hirofumi, this patch led to wrong results when binding (dolist (addr '("Rasmus " "Rasmus ")) (dolist (ignore-single '(t nil)) (dolist (ignore-same '(t nil)) (let ((mail-extr-ignore-single-names ignore-single) (mail-extr-ignore-realname-equals-mailbox-name ignore-same)) (message "%s" (mail-extract-address-components addr)))))) in combination. 2018-04-15 Lars Ingebrigtsen Query the user whether to increase stack depth in shr * lisp/net/shr.el (shr-insert-document): Bind `max-specpdl-size' here... (bug#30675). (shr-descend): So that we can increase it temporarily here if the user wants to. 2018-04-15 Lars Ingebrigtsen Minor copy edit of etc/NEWS * src/lread.c (openp): Add a comment before the now-obscure loop. 2018-04-15 Lars Ingebrigtsen Clarify menu entry in previous check-in * lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Menu bar entry for it. 2018-04-15 Lars Ingebrigtsen Add new command `gnus-summary-attach-article' * doc/misc/gnus.texi (Summary Message Commands): Document it. * lisp/gnus/gnus-msg.el (gnus-summary-attach-article): New command and keystroke (bug#19788). * lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Menu bar entry for it. 2018-04-15 Daiki Ueno Divert to call `gnus-activate-group' with the SCAN argument set * lisp/gnus/gnus-group.el (gnus-group-get-new-news-this-group): Divert to call `gnus-activate-group' with the SCAN argument set, if request-group-scan is not defined for the backend. Ensure that the server is open when calling `gnus-request-group-scan' (bug#22649). 2018-04-15 Lars Ingebrigtsen Abort Gnus exit if we have unsaved Message buffers * lisp/gnus/gnus-group.el (gnus--abort-on-unsaved-message-buffers): New function (bug#28843). (gnus-group-exit): Use it to abort exit if we have unsaved Message buffers. 2018-04-15 Lars Ingebrigtsen Avoid an infloop in shr filling when not using fonts * lisp/net/shr.el (shr-fill-line): If we have an indentation that's wider than the width of what we're trying to fill, just give up. This avoids an infloop when `shr-use-fonts' in nil. 2018-04-14 Lars Ingebrigtsen Remove calls from string-to-multibyte in nnheader/nntp * lisp/gnus/nntp.el (nntp-copy-to-buffer): Apparently `insert' now behaves more like string-make-multibyte, but it now behaves more like string-to-multibyte, so remove that call here. I'm not quite sure I follow that logic, but apparently there are no ill effects. * lisp/gnus/nnheader.el (nnheader-insert-buffer-substring): Ditto. 2018-04-14 Lars Ingebrigtsen Remove a string-to-multibyte from nnmh.el * lisp/gnus/nnmh.el (nnmh-request-list-1): Remove superfluous string-to-multibyte. 2018-04-14 Lars Ingebrigtsen Remove call to string-to-multibyte from nndoc.el * lisp/gnus/nndoc.el (nndoc-oe-dbx-type-p): My testing shows that no matter whether we're in a unibyte or a multibyte buffer, doing the looking-at here without the string-to-multibyte, we'll get a match. We did not get a match with the call in and if we were in a unibyte buffer, but we presumably never are. 2018-04-14 Lars Ingebrigtsen Fix calculation in gnus-update-group-mark-positions * lisp/gnus/gnus-group.el (gnus-update-group-mark-positions): Rewrite a call to string-to-multibyte that didn't even work. After the rewrite it gives the correct result and should allow people to customise Gnus group process mark positions (but that's a pretty obscure feature). 2018-04-14 Lars Ingebrigtsen Removed outdated comment from nnweb.el * lisp/gnus/nnweb.el (nnweb-insert-html): Removed ten year old comment from Stefan about string-as-multibyte. 2018-04-14 Lars Ingebrigtsen Rewrite Gnus calls to compat function mm-multibyte-p 2018-04-14 Lars Ingebrigtsen Rewrite string-as-unibyte/string-as-multibyte logic in nnmail * lisp/gnus/nnmail.el (nnmail-insert-xref): Rewrite string-as-unibyte/string-as-multibyte logic and confirm that the result is the same in both multibyte and unibyte buffers after the change. 2018-04-14 Lars Ingebrigtsen Remove call to string-as-unibyte from nnmail * lisp/gnus/nnmail.el (nnmail-parse-active): Remove call to string-as-unibyte; the alist before and after the change are `equal' to each other, so it should presumably have no impact. 2018-04-14 Lars Ingebrigtsen Remove calls to string-as-unibyte from nnir.el * lisp/gnus/nnir.el (nnir-get-active): Remove two calls to string-as-unibyte from code that seems cargo-culted from Gnus functions where it is not needed, so it's presumably not needed here, either. 2018-04-14 Lars Ingebrigtsen Remove call to string-as-unibyte in gnus-start.el * lisp/gnus/gnus-start.el (gnus-read-newsrc-el-file): Remove string-as-unibyte call, which appears not to do anything much in modern Emacsen. 2018-04-14 Lars Ingebrigtsen Remove call to string-as-unibyte from gnus-start.el * lisp/gnus/gnus-start.el (gnus-update-active-hashtb-from-killed): Remove a string-as-unibyte call here, which appears not to be necessary: I'm able to complete over non-ASCII names both before and after. 2018-04-14 Lars Ingebrigtsen Modernise a Gnus function a bit * lisp/gnus/gnus-start.el (gnus-update-active-hashtb-from-killed): Modernise code a bit. 2018-04-14 Lars Ingebrigtsen Remove two string-as-unibyte in gnus-srvr.el * lisp/gnus/gnus-srvr.el (gnus-browse-foreign-server): We do not seem to need the string-as-unibyte here: We read a multibyte string from the *nntpd* buffer and then decode it later, and this apparently by some strange magic leads to the correct results in my test cases. 2018-04-14 Lars Ingebrigtsen Fix a `string-to-multibyte' in Gnus * lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): The original article buffer is multibyte, and we're inserting into the article buffer, which is also multibyte, so the `string-to-multibyte' here should be unnecessary? 2018-04-14 Lars Ingebrigtsen Fix a string-as-unibyte in Gnus * lisp/gnus/gnus-art.el (gnus-article-browse-html-parts): Get rid of a string-as-unibyte. 2018-04-14 Lars Ingebrigtsen Further shr line folding/link continuation tweaks * lisp/net/shr.el (shr-fill-line): Tweak the link continuations further when folding lines. 2018-04-14 Lars Ingebrigtsen Indent after transforming for loop into do/while 2018-04-14 Lars Ingebrigtsen Make call-process work if exec-path is nil * src/lread.c (openp): If exec-path is nil, no files would be found to execute (bug#30564). Test cases: (let ((exec-path ())) (call-process "/bin/ls" nil (current-buffer))) This would previously fail, but now works. (let ((exec-path '("/bin/"))) (call-process "ls" nil (current-buffer))) This worked, and still works. 2018-04-14 Lars Ingebrigtsen Make erc-current-logfile work with explicit parameter * lisp/erc/erc-log.el (erc-current-logfile): This function apparently refers to buffer-local variables, so switch to the buffer given before calculating the file name (bug#16111). 2018-04-14 Lars Ingebrigtsen Tweak shr link text property adjustments when folding * lisp/net/shr.el (shr-fill-line): If a link starts at the first word on a new folded line, then don't copy the link properties to the newline inserted. 2018-04-14 Lars Ingebrigtsen * lisp/erc/erc-button.el (erc-button-search-url): Doc fix. erc build fix for the previous patch 2018-04-14 Lars Ingebrigtsen erc-truncate-buffer-on-save doc string clarification * lisp/erc/erc-log.el (erc-truncate-buffer-on-save): Doc clarification (bug#18207) since "truncate" is a word used by erc-truncate to mean something else. 2018-04-14 Lars Ingebrigtsen Ignore all-whitespace topics in erc * lisp/erc/erc.el (erc-cmd-TOPIC): Ignore all-whitespace topics (bug#25153). 2018-04-14 Lars Ingebrigtsen Rename url-button-google-url * lisp/erc/erc-button.el (erc-button-search-url): Renamed from url-button-google-url (bug#25717). Suggested by Andrew Robbins. (erc-button-alist): Use it. 2018-04-14 John Goerzen (tiny change) Subject: Fix problem with erc buffer renames after reconnect * lisp/erc/erc.el (erc-generate-new-buffer-name): Solve problem with renamed buffers on different servers after reconnect (bug#30639). 2018-04-14 Lars Ingebrigtsen (libxml-parse-html-region): Make DISCARD-COMMENTS obsolete * lisp/subr.el (libxml-parse-xml-region) (libxml-parse-html-region): Make DISCARD-COMMENTS obsolete. * src/xml.c (Flibxml_parse_html_region) (Flibxml_parse_xml_region): Don't mention DISCARD-COMMENTS, since it's now no longer part of the advertised signature (bug#27178). 2018-04-14 Lars Ingebrigtsen Revert "Revert "Give better errors in signing failures in Gnus"" This reverts commit 42141da5b0885b199636524c1e57f08ee1723aea. This patch was reverted in error. I misinterpreted an email saying that it didn't work, but apparently it worked as it should. 2018-04-14 Lars Ingebrigtsen Make DISCARD-COMMENTS in `libxml-parse-{html,xml}-region' obsolete * doc/lispref/text.texi (Parsing HTML/XML): Mention that discard-comments is obsolete. * lisp/xml.el (xml-remove-comments): New function (bug#27178). * src/xml.c (Flibxml_parse_html_region): Clarify what DISCARD-COMMENTS actually does, and say that the parameter is obsolete. (Flibxml_parse_xml_region): Ditto. 2018-04-14 Glenn Morris Merge from origin/emacs-26 5a6bb01 (origin/emacs-26) Fix building etc/DOC in the MSDOS port 274c979 * lisp/select.el (gui-get-selection): Doc fix. ad731b0 ; * doc/lispref/display.texi (Temporary Displays): Fix typos. f1450e9 Complete documentation of syntax flags by adding `c' 6bdcaec Fix typos and minor wording issues in ELisp manual febac27 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emac... 6c2e21e Avoid segfault in processes of type 'pipe' 60e10c5 Remove repetitions in documentation strings 208e752 * lisp/image.el (image-load-path): Doc fix. 92e0fd8 ; * etc/NEWS: Remove a FIXME. (Bug#31122) Conflicts: etc/NEWS 2018-04-14 Lars Ingebrigtsen Change the default From style to `angles' and make obsolete * lisp/gnus/message.el (message-from-style): Make `angles' the default (bug#29309) and mark as obsolete. * lisp/mail/sendmail.el (mail-from-style): Ditto. 2018-04-14 Lars Ingebrigtsen Make image-mode respect `imagemagick-types-inhibit' * lisp/image-mode.el (image--imagemagick-wanted-p): New function (bug#29584). (image-toggle-display-image): Use it to see whether we want to use imagemagick. 2018-04-14 Lars Ingebrigtsen Revert "Give better errors in signing failures in Gnus" This reverts commit ef2059e877d104bfe5abd24df05bb09c7295e4fa. Apparently this test triggered both when signing was successful and unsuccessful (bug#26298). 2018-04-14 Lars Ingebrigtsen Tweak mailcap precedence so that Emacs values are heeded better * lisp/net/mailcap.el (mailcap-parse-mailcaps): Place entries from system-wide mailcap files after the values that are distributed with Emacs, and the ones from ~/.mailcap before. (mailcap-parse-mailcap): Take an optional `after' parameter to achieve that. (mailcap-add-mailcap-entry): Ditto. 2018-04-14 Tino Calancha Subject: Fix circular dependency for mm-decode * lisp/gnus/mm-decode.el: Do not require shr.el at the top of the file; `mm-shr' already requires shr.el in its body, and this function is the only `mm-convert-shr-links' caller (Bug#31151). 2018-04-13 Basil L. Contovounesios Do not destructively modify interprogram paste * lisp/simple.el (kill-new, current-kill): Non-destructively reverse list returned by interprogram-paste-function. (bug#31097) 2018-04-13 Lars Ingebrigtsen Don't bind image commands on eww non-image links * lisp/net/eww.el (eww-link-keymap): Only inherit the normal shr keymap. (eww-image-link-keymap): New keymap with the image bindings. (eww-tag-a): Use the appropriate one on links (bug#30148). 2018-04-13 Lars Ingebrigtsen Move utility function to mm-util.el * lisp/gnus/mm-util.el (mm-images-in-region-p): Move from mm-decode.el and renamed, since it is generally useful. 2018-04-13 Lars Ingebrigtsen Make the url file: handler be less clever * doc/misc/url.texi (file/ftp): Remove mention of the url-directory-index-file variable, which is no longer consulted. * lisp/url/url-file.el (url-file-build-filename): Remove the DWIM code from the file: handler (bug#30195): It would look for index.html in a directory if we asked it to fetch the directory. Determining what to do in a directory should be left up to the programs that use this low-level library. If the library decides to load a different file than we specified, then things start falling apart, as demonstrated by this bug report. 2018-04-13 Lars Ingebrigtsen Don't bind image commands on non-image links in Gnus * lisp/gnus/mm-decode.el (mm--images-in-region-p): New utility function. (mm-convert-shr-links): Only use the shr image map on links that contain images. This avoids binding commands like `r' on links that don't need it. 2018-04-13 Lars Ingebrigtsen Revert "Add colors to faces that lack them." This reverts commit 16748a5f6bd57ec0967ecb5e14ffe8af5f43d888. From the discussion on the ding mailing list, I said: I think the colours should be reverted back to what they were before the change. Normal text should be white on black (if you have a dark background), and colours should be used to emphasise or de-emphasise certain text. Following that principle, normal Gnus groups should be white, not ... er... what are they now? Teal? 2018-04-13 Lars Ingebrigtsen Tweak the fonts applied to shr indentation * lisp/net/shr.el (shr-fill-line): Don't use fonts (especially link fonts) over indentation, because that's ugly.. 2018-04-13 Lars Ingebrigtsen Further tweak point placement on gnus-summary-select-article-buffer * lisp/gnus/gnus-sum.el (gnus-summary-select-article-buffer): Place point in the empty space between headers and body. 2018-04-13 Lars Ingebrigtsen Tweak point placement in *Group* on `Q' exit * lisp/gnus/gnus-sum.el (gnus-summary-exit-no-update): When exiting the summary buffer with `Q', move point to the next unread group (which is the same thing that happens on `q' exit.) 2018-04-13 Lars Ingebrigtsen Tweak point placement in gnus-summary-select-article-buffer * lisp/gnus/gnus-sum.el (gnus-summary-select-article-buffer): Tweak where point is placed because when the user selects the article buffer, it's probably to cite something or click on something, and not do anything with the headers. 2018-04-13 Lars Ingebrigtsen Compute erc line lengths correctly for utf-8 (etc.) * lisp/erc/erc-backend.el (erc-split-line): Fold the lines according to octet length, not the number of characters (bug#23047). 2018-04-13 Lars Ingebrigtsen Clean up some defvoo doc strings * lisp/gnus/nndiary.el: Remove "*" from doc strings from defvoo elements (bug#23392). * lisp/gnus/nndir.el: Ditto * lisp/gnus/nndoc.el: Ditto. * lisp/gnus/nnrss.el: Ditto. * lisp/gnus/nnspool.el: Ditto. * lisp/gnus/nntp.el: Ditto. 2018-04-13 Eric Abrahamsen Further fix to eieio-persistent * lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value): Make handling of hash tables and vectors recursive. This is necessary because the write process, in `eieio-override-prin1' is also recursive. With any luck, this will be the last fix of its kind. If that's true, cherry-pick to Emacs 26.2 later on. 2018-04-13 Lars Ingebrigtsen Make nnimap parse pathological spam headers better * lisp/gnus/nnimap.el (nnimap-transform-headers): Unfold certain pathological IMAP headers more correctly (bug#25502). Perhaps this function should be re-implemented. 2018-04-13 Lars Ingebrigtsen Fix syntax error in emacs-mime.texi in last check-in 2018-04-13 Lars Ingebrigtsen Prefer settings from ~/.mailcap over system and Emacs settings * doc/misc/emacs-mime.texi (mailcap): Document the variable and how mailcap chooses which viewer to use. * lisp/net/mailcap.el (mailcap-prefer-mailcap-viewers): New variable. (mailcap-mime-info): Use it. 2018-04-13 Lars Ingebrigtsen Fix bug in shr-urlify introduced in previous patch * lisp/net/shr.el (shr-urlify): Not all URLs have domains, so check for that before doing IDNA. 2018-04-13 Lars Ingebrigtsen Make shr support inline
      s * lisp/net/shr.el (shr-tag-div): Support display: inline; for
      , since that's a very common thing (bug#25588). 2018-04-13 Lars Ingebrigtsen Notify the user a bit more before clicking IDNA links * lisp/net/shr.el (shr-urlify): Show the puny-encoded domain name in the mouseover string (bug#25600). 2018-04-13 Lars Ingebrigtsen (nnimap-sequence): Add comment * lisp/gnus/nnimap.el (nnimap-sequence): Add comment. 2018-04-13 Lars Ingebrigtsen (url-http): Ensure that the referrer is all-ASCII * lisp/url/url-http.el (url-http): Ensure that the referrer is all-ASCII. 2018-04-13 Lars Ingebrigtsen gnutls.el now needs punycode * lisp/net/gnutls.el (puny): Require punycode. 2018-04-13 Lars Ingebrigtsen Make Unicode domain names work again in URL after recent changes * lisp/net/gnutls.el (open-gnutls-stream): IDNA-encode hostnames before passing them on to gnutls for verification. * lisp/net/network-stream.el (network-stream-open-starttls): Ditto. * lisp/url/url-http.el (url-http--get-referer): Be IDNA-aware. (url-http-create-request): Don't de-Unicodify host names, because they may be IDNA names (that are later encoded). * lisp/url/url-util.el (url-domain): Be IDNA-aware when doing domain name computations. 2018-04-13 Lars Ingebrigtsen Update defcustom version for last patch to url-vars.el * lisp/url/url-vars.el (url-lastloc-privacy-level): Update defcustom version. 2018-04-13 Lars Ingebrigtsen Use a separate history for the eww prompt * lisp/net/eww.el (eww-prompt-history): A separate history variable for the interactive eww prompt. (eww): Use it. 2018-04-13 Michael Albinus Fix Bug#30246 * lisp/auth-source.el (auth-source-secrets-search): Do not suppress creation. (auth-source-secrets-create): Implement it. (Bug#30246) * lisp/net/secrets.el (secrets-debug): Set default to nil. * test/lisp/auth-source-tests.el (secrets): Require it. (auth-source-test-secrets-create-secret): New test. 2018-04-13 Peder O. Klingenberg Change gnutls-verify-error to be first-match * doc/misc/url.texi (Customization): Describe the new user option url-lastloc-privacy-level. * lisp/net/eww.el (eww-render): Set url-current-lastloc to the url we are rendering, to get the referer header right on subsequent requests. * lisp/url/url-http.el (url-http--get-referer): New function to determine which referer to send, if any, considering the users privacy settings and the target url we are visiting. (url-http-referer): New variable keeping track of the referer computed by url-http--get-referer (url-http-create-request): Use url-http-referer instead of the optional argument to set up the referer header. Leave checking of privacy settings to url-http--get-referer. (url-http): Set up url-http-referer by using url-http--get-referer. * lisp/url/url-queue.el (url-queue): New struct member context-buffer for keeping track of the context a queued job started from. (url-queue-retrieve): Store the current buffer in the queue object. (url-queue-start-retrieve): Make sure url-retrieve is called in the context of the original buffer, if available. * lisp/url/url-util.el (url-domain): New function to determine the domain of a given URL. * lisp/url/url-vars.el (url-current-lastloc): New variable to keep track of the desired "last location" (referer header). (url-lastloc-privacy-level): New custom setting for more fine-grained control over how lastloc (referer) is sent to servers (Bug#27012). 2018-04-13 Lars Ingebrigtsen Make #anchors work again in eww * lisp/net/eww.el (eww-render): When we have a #link link, then url.el will say that we have a redirect to a non-#link link, so get the anchor before url.el mangles the URL (bug#28441). (eww-display-html): ... and don't get it here, because it's gone by now. Test URL: http://www.gnu.org/s/hyperbole/#summary 2018-04-13 Robert Pluim Doc fix after previous gnutls patch * lisp/net/gnutls.el (gnutls-verify-error): Mention that the matching is first-match (bug#29977). 2018-04-13 Robert Pluim Change gnutls-verify-error to be first-match * lisp/net/gnutls.el (gnutls-boot-parameters): Convert to first-match for gnutls-verify-error rather than any-match (bug#29977). 2018-04-13 Lars Ingebrigtsen Mention the new `shr-selected-link' face Clean up the double Gnus section 2018-04-13 Lars Ingebrigtsen When opening external links in eww, blink the link * lisp/net/eww.el (eww-follow-link): Ditto. * lisp/net/shr.el (shr-selected-link): New face (bug#25096). (shr--blink-link): New function to blink links. (shr--current-link-region): New utility function. (shr-browse-url): Use it to blink external links. Blinking the link allows the user to get immediate feedback that the action has been performed. Opening the external browser may take a while, and may not be obvious that is going on. 2018-04-13 Lars Ingebrigtsen Tweak nnimap sequence numbers to avoid reuse * lisp/gnus/nnimap.el (nnimap-sequence): Start the sequence at a higher number to avoid reusing the sequence number used by `open-network-stream' (bug#30022). 2018-04-13 martin rudalics * lisp/gnus/gnus-art.el (gnus-article-prepare): Fix previous commit, in which selecting the article window is not necessary (bug#25526). 2018-04-12 Lars Ingebrigtsen Remove unused local variable 2018-04-12 Lars Ingebrigtsen Treat 302 redirects as if they were 303 redirects * lisp/url/url-http.el (url-http-parse-headers): Treat 302 as 303, since this is what the standards recommend these days (bug#25703). See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection 2018-04-12 Lars Ingebrigtsen Make eww render elements (bug#25703). 2018-04-12 Lars Ingebrigtsen