2018-11-18 Martin Rudalics Fix description of some window hooks * doc/lispref/windows.texi (Window Hooks): Remove text that warns against using 'save-window-excursion' while running 'window-size-change-functions', it's no more relevant. Clarify description of 'window-configuration-change-hook'. 2018-11-18 Gary Fredericks (tiny change) Run 'window--adjust-process-windows' when frame size changes (Bug#32720) * lisp/window.el (window-size-change-functions): Run 'window--adjust-process-windows' from 'window-size-change-functions' too (Bug#32720, "another issue" in Bug#33230). 2018-11-16 Eli Zaretskii Avoid errors in zone.el when there's overlay at EOB * lisp/play/zone.el (zone): Make sure the window-end position is calculated accurately, to avoid errors from buffer-substring. (Bug#33384) 2018-11-16 Eli Zaretskii Document Emacs 26 behavior of Dired's 'Z' on directories * doc/emacs/dired.texi (Operating on Files): Document behavior of 'Z' on directories. * etc/NEWS: Belatedly announce the new behavior of Dired's 'Z' on directory names and on .tar.gz archives. 2018-11-15 Eli Zaretskii Fix a typo in the Emacs manual * doc/emacs/rmail.texi (Rmail Deletion): Fix a typo. Reported by Jorge P. de Morais Neto in emacs-manual-bugs@gnu.org 2018-11-15 Paul Eggert Fix tempfile creation when byte compiling This improves on the recent fix for master failing to build on FreeBSD. Suggested by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2018-01/msg00600.html * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Put tempfile next to the target file, as was the original intent. (cherry picked from commit 64c846738617d1d037eac0cefb6586c04317b0a1) 2018-11-14 Markus Triska Small documentation correction. * doc/lispref/windows.texi (Textual Scrolling): In the description of scroll-up-aggressively, refer to scroll-down-aggressively instead of a recursive reference to scroll-up-aggressively. (Bug#33369) 2018-11-14 Eli Zaretskii * src/coding.c (Fcheck_coding_systems_region): Doc fix. (Bug#33372) 2018-11-14 Michael Albinus Fix Bug#33364 * lisp/net/tramp.el (tramp-parse-sconfig-group): Support also "Host host1 host2 ..." syntax. (Bug#33364) 2018-11-13 Michael Albinus * test/README: Explain $REMOTE_TEMPORARY_FILE_DIRECTORY. 2018-11-12 Glenn Morris Avoid kill-emacs-hook errors hanging batch mode * src/emacs.c (Fkill_emacs): Prevent errors from kill-emacs-hook hanging Emacs in batch mode. (Bug#29955) (cherry picked from commit 109da684c5124e22505917fe0255ca66f2a6bfc9) 2018-11-12 Nicolas Petton Bump Emacs version to 26.1.90 * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version to 26.1.90. 2018-11-12 Nicolas Petton * etc/AUTHORS: Update. 2018-11-12 Paul Eggert Work around dumping bug on GNU/Linux ppc64le Problem reported by Thomas Fitzsimmons (Bug#33174). Do not merge to master, as we have a better fix there. * src/Makefile.in (emacs$(EXEEXT)): (bootstrap-emacs$(EXEEXT)): Unset EMACS_HEAP_EXEC before invoking temacs. 2018-11-11 Eli Zaretskii * lisp/files.el (write-file): Clarify the doc string. (Bug#33339) 2018-11-11 Simen Heggestøyl Fix typos in midnight.el * lisp/midnight.el (clean-buffer-list-delay-general) (clean-buffer-list-kill-regexps) (clean-buffer-list-kill-buffer-names): Fix docstring typos. 2018-11-10 Eli Zaretskii Improve documentation of 'move-file-to-trash' * doc/emacs/files.texi (Misc File Ops): Index move-file-to-trash. State that the way to restore trashed files is system-dependent. 2018-11-09 Stefan Monnier * src/data.c (Ftype_of): xwidget objects are possible! (bug#33294) (syms_of_data): Define Qwidget here. * src/xwidget.c (syms_of_xwidget): Instead of here. 2018-11-09 Eli Zaretskii Improve documentation of Diff mode * doc/emacs/files.texi (Diff Mode): Document the effect of prefix argument on the Diff mode's commands. Document 'diff-jump-to-old-file'. 2018-11-09 Noam Postavsky Note that lex bound lambda forms are not self-quoting (Bug#33199) * doc/lispref/functions.texi (Anonymous Functions): * lisp/subr.el (lambda): Note that under lexical binding a lambda form yields a closure object (Bug#33199). 2018-11-08 Martin Rudalics Rewrite buffer display related doc-strings and doc * lisp/window.el (display-buffer-overriding-action) (display-buffer-alist, display-buffer-base-action) (display-buffer-fallback-action, display-buffer-assq-regexp) (display-buffer): Rewrite doc-strings using suggestions by Alan Mackenzie . (display-buffer-use-some-frame): Adjust doc-string and reformat code. * doc/lispref/windows.texi (Buffer Display Action Alists): Make docs on 'window-height', 'window-width' and 'preserve-size' entries more accurate. 2018-11-06 Eli Zaretskii Fix call to GlobalMemoryStatusEx in w32.c * src/w32.c (system_process_attributes): Initialize the size of the data structure passed to GlobalMemoryStatusEx, otherwise it fails. 2018-11-04 Eli Zaretskii Improve recent changes in documentation of window handling * doc/lispref/windows.texi (Displaying Buffers) (Choosing Window, Buffer Display Action Functions) (Buffer Display Action Alists, Choosing Window Options) (Precedence of Action Functions, The Zen of Buffer Display): Fix wording, punctuation, and markup. Remove redundant cross-references. * doc/emacs/windows.texi (Window Choice, Temporary Displays): Fix wording and punctuation. 2018-11-04 Martin Rudalics Rewrite documentation of buffer display * doc/emacs/windows.texi (Window Choice): Rewrite, replacing references to older buffer display options with references to and examples of buffer display actions. (Temporary Displays): Rewrite display of *Completions* example. * doc/lispref/elisp.texi (Top): New Windows section 'Displaying Buffers'. * doc/lispref/frames.texi (Child Frames): Adjust cross reference. * doc/lispref/windows.texi (Windows): New section 'Displaying Buffers'. Move sections 'Choosing Window', 'Display Action Functions' and 'Choosing Window Options' there and adjust namings. Preferably write 'Buffer Display Action' instead of 'Display Action'. More consistently use @w{} to make key binding specifications unsplittable. (Displaying Buffers): New section. (Choosing Window): Make it a subsection of 'Displaying Buffers'. More explicitly describe how 'display-buffer' compiles its list of action functions and the action alist. (Buffer Display Action Functions): Rename from 'Display Action Functions', make it a subsection of 'Displaying Buffers' and rewrite it. Elide more detailed descriptions of action alist entries; these are now in the new section 'Buffer Display Action Functions'. Remove example. (Buffer Display Action Alists): New subsection of 'Displaying Buffers' giving a comprehensive description of recognized action alist entries with appropriate indexing. Contents were partially moved here from the old 'Display Action Functions' section. (Choosing Window Options): Make it a subsection of 'Displaying Buffers'. Add examples of how to rewrite old buffer display options with the help of buffer display actions. (Precedence of Action Functions): New subsection of 'Displaying Buffers' explaining the execution order of action functions with the help of a detailed example. (The Zen of Buffer Display): New subsection of 'Displaying Buffers' supplying guidelines on how to write and use buffer display actions with examples. (Side Windows, Displaying Buffers in Side Windows) (Frame Layouts with Side Windows, Atomic Windows): Update references to the 'Displaying Buffers' subsections. 2018-11-03 Eli Zaretskii Improve documentation of destructuring-binding macros * lisp/emacs-lisp/pcase.el (pcase-dolist, pcase-let) (pcase-let*): Improve the doc strings. * doc/lispref/sequences.texi (Sequence Functions): Improve wording and rename arguments of seq-let to be more descriptive. Add a cross-reference to "Destructuring with pcase Patterns". * doc/lispref/control.texi (Pattern-Matching Conditional): Improve wording and the menu. (pcase Macro): Incorporate patch suggested by Paul Eggert . Reformat text. (Destructuring with pcase Patterns): Rename from "Destructuring patterns", and improve wording and indexing. 2018-11-03 Eli Zaretskii Avoid byte compilation warning in rcirc.el * lisp/net/rcirc.el (rcirc-prompt-start-marker): Move definition before 1st use to avoild byte-compiler warning. 2018-11-03 Basil L. Contovounesios Avoid race in rcirc process filter (bug#33145) * lisp/net/rcirc.el (rcirc-filter): Clear rcirc-process-output before processing its constituent lines. Otherwise, if rcirc-filter runs again before the last rcirc-process-server-response is finished, the contents of rcirc-process-output could be duplicated. 2018-11-03 Jordan Wilson (tiny change) Avoid file-name errors when viewing PDF from Gnus * lisp/doc-view.el (doc-view-mode): Run the output file name through 'convert-standard-filename', to avoid problems with characters that are not allowed in file names on some systems. (Bug#32989) 2018-11-02 Eli Zaretskii Avoid crashes with remapped default face in Org mode * src/xfaces.c (face_at_buffer_position): Look up BASE_FACE_ID anew if it is not in the frame's face cache. This avoids crashes when Org mode sets up for a new major mode in embedded code fragment, and the default face is remapped. (Bug#33222) 2018-11-01 Eric Abrahamsen Doc fix for checkdoc-continue * lisp/emacs-lisp/checkdoc.el (checkdoc-continue): There is no second optional argument, and the function always starts from point. 2018-11-01 Eli Zaretskii Fix a typo in autoload.el * lisp/emacs-lisp/autoload.el (update-directory-autoloads): Remove stray backslashes. (Bug#33231) 2018-10-31 Stefan Monnier * doc/lispref/control.texi (Destructuring patterns): New subsection. 2018-10-31 Gemini Lasswell Add regression test for Bug#33014 Backport from master. * test/src/eval-tests.el: (eval-tests-byte-code-being-evaluated-is-protected-from-gc): New test. (eval-tests-33014-var): New variable. (eval-tests-33014-func, eval-tests-33014-redefine): New functions. 2018-10-31 Paul Eggert Refer to bytecode constant vectors (Bug#33014) Backport from master. * 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. 2018-10-30 Stefan Monnier * lisp/emacs-lisp/pcase.el: Improve docstrings. 2018-10-30 Eli Zaretskii * lisp/emacs-lisp/rx.el (rx): Fix typo in doc string. (Bug#33205) 2018-10-30 Eli Zaretskii Improve doc string of 'call-process' * src/callproc.c (Fcall_process): Clarify DESTINATION in the doc string. 2018-10-30 Eli Zaretskii Document that generic functions cannot be commands * doc/lispref/commands.texi (Defining Commands): * doc/lispref/functions.texi (Generic Functions): Document that generic functions cannot be turned into commands. (Bug#33170) 2018-10-28 Charles A. Roelli * lisp/mail/rmailsum.el (rmail-summary-output): Add lost word to doc. 2018-10-28 Charles A. Roelli Add index entries for more isearch commands/bindings (Bug#32990) * doc/emacs/search.texi (Basic Isearch): Index isearch-exit, isearch-abort, isearch-cancel, isearch-repeat-forward, isearch-repeat-backward and their bindings. (Repeat Isearch): Index isearch-ring-advance, isearch-ring-retreat and isearch-edit-string. (Special Isearch): Index isearch-quote-char, isearch-char-by-name and their bindings. Index isearch-query-replace and isearch-query-replace-regexp, and the latter's binding. Explain what isearch-query-replace-regexp does. Index isearch-complete. (Word Search): Index isearch-toggle-word. 2018-10-27 Noam Postavsky * lisp/simple.el (filter-buffer-substring): Clarify doc (Bug#33179). 2018-10-27 Eli Zaretskii Fix recent change in lispref/processes.texi. * doc/lispref/processes.texi (Asynchronous Processes): Clarify wording. Suggested by Thomas Fitzsimmons . (Bug#33050) 2018-10-27 Eli Zaretskii * lisp/simple.el (region-extract-function): Doc fix. (Bug#33167) * lisp/simple.el (region-bounds): Doc fix. (Bug#33168) 2018-10-27 Eli Zaretskii Improve documentation of 'process-connection-type' * doc/lispref/processes.texi (Asynchronous Processes): Clarify better when it is advisable to use pipes for communicating with subprocesses. (Bug#33050) 2018-10-27 Pierre Téchoueyres Unify prompt for gnupg passphrase between GNU/Linux and MS-Windows. * lisp/epg.el (epg--start): Use 'raw-text' for coding system instead of 'binary', in order to avoid spurious carriage return on Microsoft Windows and MS-DOS when prompting for a password. (Bug#33040) 2018-10-27 Eli Zaretskii Doc fix of 'gnus-fetch-old-headers' * lisp/gnus/gnus-sum.el (gnus-fetch-old-headers): Avoid treating 'some' and 'invisible' as symbols that need to be hyperlinked. Reported by Robert Pluim . (Bug#33090) 2018-10-27 Eric Abrahamsen Deactivate incorrect hyperlinking in gnus-build-sparse-threads doc * lisp/gnus/gnus-sum.el (gnus-build-sparse-threads): Add the word "symbol" so it doesn't link to the `some' function. (Bug#33090) 2018-10-27 Eli Zaretskii Minor copyedits in cmdargs.texi * doc/emacs/cmdargs.texi (Initial Options): Document '-nsl'. Add a cross-reference to "Writing Dynamic Modules". 2018-10-27 Eli Zaretskii Improve documentation of X resource loading * doc/emacs/cmdargs.texi (Initial Options): * doc/emacs/frames.texi (Frame Parameters): * doc/emacs/xresources.texi (Resources): Document the '--no-x-resources' command-line option and the fact that X resources override .emacs settings of frame parameters. (Bug#32975) 2018-10-27 Michael Albinus * lisp/net/tramp-sh.el (tramp-inline-compress-commands): Suppress warnings about obsolete environment variable GZIP. 2018-10-25 Noam Postavsky Don't error when indenting malformed Lisp (Bug#30891) * lisp/emacs-lisp/lisp-mode.el (lisp-indent-calc-next): If we run out of indent stack, reset the parse state. 2018-10-25 Charles A. Roelli Improve 'isearch-delete-char' documentation (Bug#32990) * doc/emacs/search.texi (Basic Isearch): Index 'isearch-delete-char', its keybinding and the isearch "input item" concept, and define the latter. (Error in Isearch): Clarify the different uses of DEL and C-M-w during isearch. * lisp/isearch.el (isearch-delete-char): Correct its documentation and link to the Info node '(emacs)Basic Isearch' which explains less technically how this function works in everyday usage. 2018-10-25 Alan Third Improve XPM load failure message (bug#33126) * src/image.c (xpm_load_image): Only XPM3 is supported, so make that explicit. 2018-10-25 Eli Zaretskii Avoid infloop in CPerl mode fontification * lisp/progmodes/cperl-mode.el (cperl-font-lock-fontify-region-function): Stop the loop at EOB, to avoid inflooping there. (Bug#33114) 2018-10-25 Andreas Schwab Fix minibuffer-help-form for lexical binding * lisp/simple.el (set-variable): Substitute var into minibuffer-help-form. * lisp/cus-edit.el (custom-prompt-variable): Likewise. 2018-10-24 Alan Third Fix some NS drawing issues (bug#32932) * src/nsterm.m (ns_clip_to_rect): (ns_reset_clipping): Remove gsaved variable and associated code. (ns_flush_display): Remove function. (ns_copy_bits): use translateRectsNeedingDisplayInRect:by: to copy any pending drawing actions along with the image. ([EmacsView windowWillResize:toSize:]): Remove unneeded call. ([EmacsView drawRect:]): Remove redundant call to ns_clear_frame_area, and optimize the exposed rectangles. (ns_draw_window_cursor): Remove unneeded disabling of screen updates. 2018-10-24 Katsumi Yamaoka * lisp/gnus/mm-util.el (mm-decompress-buffer): Fix split-string args. 2018-10-24 Noam Postavsky * doc/misc/calc.texi (Summary): The +/- key is 'p', not 'P'. 2018-10-23 Robert Pluim Correct typo in GNU ELPA url * doc/misc/efaq.texi (Packages that do not come with Emacs): Correct typo in GNU ELPA url (Bug#33072). Change other url references to use https scheme. 2018-10-22 Eli Zaretskii * doc/misc/dired-x.texi (Omitting Variables): Fix wording. (Bug#33112) 2018-10-20 Michael Heerdegen Fix help-form binding in dired-create-files This fixes Bug#32630: since "dired-aux" moved to lexical binding mode, the free variable TO in the constructed HELP-FORM got out of scope of the surrounding 'let'. * lisp/dired-aux.el (dired-create-files): Make the binding of HELP-FORM a string. 2018-10-20 Eli Zaretskii Fix a pasto in a Gnus doc string * lisp/gnus/gnus-art.el (gnus-article-treat-fold-newsgroups): Doc string fix. (Bug#33081) 2018-10-19 Mauro Aranda (tiny change) Update revert-buffer documentation * doc/emacs/files.texi (Reverting): Document that revert-buffer does keep undo history. (Bug#33084) 2018-10-18 Juri Linkov * lisp/mail/smtpmail.el (smtpmail-send-queued-mail): Load file with .el suffix. For the case when load-prefer-newer is t, ensure loading the right file by explicitly adding the .el suffix. Use the same variable names as in the function smtpmail-send-it. (Bug#33055) 2018-10-16 Glenn Morris Tweak Makefile emacs-module.h handling * Makefile.in (install-arch-indep, uninstall): Respect DESTDIR. Handle whitespace. Remove non-portable mkdir argument. (cherry picked from commit c1d0dbd6ca92cb221024382b19654e4fbf1d1ed3) 2018-10-16 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. (cherry picked from commit 00ea749f2af44bff6ea8c1259477fbf0ead8a306) 2018-10-15 Alan Mackenzie Clarify documentation of fractional vertical scrolling and some doc strings * doc/lispref/windows.texi (vertical scrolling): Clarify the meaning of vertical scrolling by referring to tall screen lines, images, and the display action. Clarify an ambiguous English tense. * src/window.c (window-vscroll, set-window-vscroll): Amend doc strings to refer to display. 2018-10-15 Charles A. Roelli * lisp/isearch.el (isearch-cmds): Recall absent isearch--state slot. 2018-10-14 Alan Mackenzie doc/lispref/edebug.texi (Specification List) Remove obstrusive blank line 2018-10-14 Eli Zaretskii Fix wording in module API documentation * doc/lispref/internals.texi (Module Functions): Fix confusing wording. Reported by Basil L. Contovounesios . 2018-10-13 Eli Zaretskii Fix redisplay of glyphless characters * src/conf_post.h (bool_bf): Use 'unsigned int' in the MinGW builds. Suggested by Tom Tromey . (Bug#33017) * src/dispnew.c (scrolling_window): Update commentary regarding xwidget builds. 2018-10-13 Robert Pluim Update --without-toolkit-scroll-bars doc * configure.ac (--without-toolkit-scroll-bars): Update list of affected toolkits. 2018-10-13 Robert Pluim Call GTK functions only on GTK scrollbars * src/gtkutil.c (xg_set_background_color) [USE_TOOLKIT_SCROLL_BARS]: Don't call GTK functions on non-GTK scrollbars (Bug#32975). 2018-10-13 Eli Zaretskii Update the description of startup in ELisp manual * doc/lispref/os.texi (Startup Summary): Remove stale reference to window-system-initialization-alist. Reported by Zhang Haijun . 2018-10-13 Eli Zaretskii Use the 'line-number' face for line-number fields past EOB * src/xdisp.c (get_phys_cursor_geometry): Treat rows at and beyond ZV specially. Don't let the cursor exceed the vertical dimensions of the row. (maybe_produce_line_number): Use the 'line-number' face instead of 'default' for blank fields beyond ZV. Don't update the IT metrics when displaying blank line-number fields beyond ZV. (Bug#32337) 2018-10-12 Alan Third Ensure NS frame is redrawn correctly after scroll * src/nsterm.m (ns_copy_bits): Set needsDisplay so the previous cursor position is redrawn. 2018-10-12 Alex Branham Avoid byte-compiler warning in em-rebind.el * lisp/eshell/em-rebind.el (eshell-delete-backward-char): Use 'delete-char' instead of delete-backward-char. (Bug#32945) 2018-10-12 Eli Zaretskii Improve indexing of 'C-SPC C-SPC' * doc/emacs/mark.texi (Disabled Transient Mark): Fix indexing. (Bug#32959) 2018-10-11 Eric Abrahamsen Fix bug with precious entries in Gnus registry * lisp/registry.el (registry-collect-prune-candidates): This `cdr' was an error: it meant that the last key in the precious list, would be considered a nil. Since the precious list only contains the symbol 'mark by default, marks were never considered precious. * doc/misc/gnus.texi (Store arbitrary data): Fix typo: "marks" should be "mark". 2018-10-11 Eli Zaretskii Document in the ELisp manual how to write loadable modules * doc/lispref/internals.texi (Writing Dynamic Modules) (Module Initialization, Module Functions, Module Values) (Module Misc, Module Nonlocal): New nodes. * doc/lispref/loading.texi (Dynamic Modules): Add cross-reference to the new node. * doc/lispref/internals.texi (GNU Emacs Internals): * doc/lispref/elisp.texi (Top): Update menus for the new nodes. 2018-10-11 Tino Calancha dired-do-shell-command: Notify users after abort the command * lisp/dired-aux.el (dired-do-shell-command): Notify users that the command have aborted when they answer 'n' to the prompt (Bug#32969). 2018-10-11 Michael Albinus Adapt Tramp version. Do not merge with master * lisp/net/trampver.el: Change version to "2.3.5.26.2". (customize-package-emacs-version-alist): Add Tramp version integrated in Emacs 26.2. 2018-10-10 Alan Third Fix Apple Script permissions error * nextstep/templates/Info.plist.in: Add NSAppleEventsUsageDescription message to enable AppleEvents usage. 2018-10-10 Mauro Aranda (tiny change) Fix typo in 'timerp' documentation * doc/lispref/os.texi (Timers): Fix typo in 'timerp' documentation. (Bug#32999) 2018-10-08 Charles A. Roelli * doc/emacs/mark.texi (Mark): Index "(de)activating the mark". (Bug#32956) 2018-10-08 Scott Corley (tiny change) Fix overflow lockup with frames > 255 lines Backport from master. * src/scroll.c (struct matrix_elt): Change unsigned char fields to int to handle frames with more than 255 lines (Bug#32951). 2018-10-07 Eli Zaretskii Avoid assertion violations in nonsensical calls to 'signal' * src/eval.c (Fsignal): If both arguments are nil, replace the first one with 'error', to avoid assertion violations further down the line. (Bug#32961) 2018-10-06 Charles A. Roelli * lisp/simple.el (transient-mark-mode): Correct documentation. (Bug#32956) 2018-10-06 Eli Zaretskii Update the locale and language database * lisp/international/mule-cmds.el (locale-language-names): Update the list of supported locales. Use existing language names where available. 2018-10-05 Eli Zaretskii Fix a typo in a doc string. * lisp/window.el (display-buffer-alist): Fix a typo in a doc string. Reported by Michael Heerdegen . 2018-10-05 Katsumi Yamaoka Make nneething allow CRLF-encoded files (bug#32940) * lisp/gnus/nneething.el (nneething-request-article): Bind coding system to raw-text instead of binary when reading a file, that may be CRLF-encoded (bug#32940). 2018-10-04 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-10-04 Eli Zaretskii Avoid ridiculously high stack limit requests on macOS * src/emacs.c (main): Avoid wraparound in subtraction of rlim_t values, in case rlim_t is an unsigned type. (Bug#32338) 2018-10-03 Charles A. Roelli Improve documentation of 'read-hide-char' * src/minibuf.c (syms_of_minibuf) : Clarify documentation and mention where else the variable is used. * doc/lispref/minibuf.texi (Reading a Password): Add an index entry for 'read-hide-char'. 2018-10-03 Alan Mackenzie In follow mode, prevent the cursor resting on a partially displayed line Don't merge to master. 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-03 Alan Mackenzie Revert "Temporary workaround for bug #32848 for branch emacs-26" This reverts commit 6650751ce73413d05599df07a9c5bc70744260f3. 2018-10-03 Alan Mackenzie Revert "* etc/NEWS: Note setting make-cursor-line-fully-visible to nil in follow-mode" This reverts commit f3c8f4bde2de2b9d42c44f5e44f34c427bebdc58. 2018-10-03 Alan Mackenzie * etc/NEWS: Note setting make-cursor-line-fully-visible to nil in follow-mode Also re-insert the "temporary note" explaining --- and +++. 2018-10-03 Noam Postavsky Fix note about interactive advice (Bug#32905) * doc/lispref/functions.texi (Core Advising Primitives): Add missing ':', and finish the sentence fragment. 2018-10-01 Michael Albinus Comple fix for Bug#32550 * lisp/net/tramp.el (tramp-rfn-eshadow-update-overlay): Use `save-excursion'. This completes the fix of Bug#32550. 2018-10-01 Eli Zaretskii * lisp/savehist.el (savehist-mode): Doc fix. (Bug#32889) 2018-09-30 Nicolas Goaziou Org manual: Rewrite the Org Mobile section * doc/misc/org.texi (Org Mobile): Rewritten from "MobileOrg" section. Remove all references to non-free software. Moved into "Miscellaneous", much like Org Crypt library. No longer an appendix. (Footnotes): Remove a reference to "MobileOrg". (Bug#32722) 2018-09-30 Alan Mackenzie Temporary workaround for bug #32848 for branch emacs-26 Do not merge with master. * lisp/follow.el (follow-mode): Set make-cursor-line-fully-visible to nil buffer locally whilst follow-mode is active. 2018-09-29 Tino Calancha Improve cl-do, cl-do* docstrings * lisp/emacs-lisp/cl-macs.el(cl-do, cl-do*): Improve docstring (Bug#32803). 2018-09-29 Eli Zaretskii Avoid returning early in 'while-no-input' due to subprocesses * src/keyboard.c (kbd_buffer_store_buffered_event): Support also the internal buffer-switch events. (syms_of_keyboard) : New DEFSYM. * lisp/subr.el (while-no-input-ignore-events): Ignore 'buffer-switch' events. Reported by Michael Heerdegen . * etc/NEWS: Mention the change in behavior of 'while-no-input' 2018-09-29 John Shahid Cleanup when opening a new terminal fails. (Bug#32794) * src/term.c (init_tty): Call delete_terminal_internal if emacs_open fail. * src/terminal.c (delete_terminal): Move some code into delete_terminal_internal and call it. (delete_terminal_internal): New function. * src/termhooks.h: Prototype for delete_terminal_internal. 2018-09-28 Alan Third Fix deprecation warning * src/nsterm.m (ns_term_init): Use writeToFile or writeToURL as required. 2018-09-28 Alan Third Make all NS drawing be done from drawRect See bug#31904 and bug#32812. * src/nsterm.m (ns_update_begin): Don't lock focus, only clip if there is already a view focused. (ns_update_end): Don't mess with view focusing any more. (ns_focus): Only clip drawing if there is already a focused view, otherwise mark area dirty for later drawing. Renamed ns_clip_to_rect. All callers changed. (ns_unfocus): Don't unfocus the view any more. Renamed ns_reset_clipping. All callers changed. (ns_clip_to_row): Update to match ns_clip_to_rect. (ns_clear_frame): (ns_clear_frame_area): (ns_draw_fringe_bitmap): (ns_draw_window_cursor): (ns_draw_vertical_window_border): (ns_draw_window_divider): (ns_dumpglyphs_stretch): (ns_draw_glyph_string): Only draw if ns_focus or ns_clip_to_row return YES. (ns_copy_bits): Remove superfluous calls to ns_(un)focus. (ns_flush_display): New function. 2018-09-28 Michael Albinus Fix Bug#32828 * lisp/net/dbus.el (dbus-init-bus): Return number of connections, as promised by the docstring. (Bug#32828) 2018-09-28 Noam Postavsky * lisp/net/shr.el (shr-copy-url): Fix docstring. 2018-09-27 Eli Zaretskii Fix typos in documentation * doc/misc/vhdl-mode.texi (Custom Indentation Functions): * doc/misc/url.texi (Customization): * doc/misc/tramp.texi (Overview): * doc/misc/srecode.texi (Developing Template Functions): * doc/misc/sieve.texi (Sieve Mode): * doc/misc/reftex.texi (Options - Creating Citations): * doc/misc/org.texi (Cooperation, Conflicts): * doc/misc/gnus.texi (Misc Group Stuff): * doc/misc/eshell.texi (Bugs and ideas): * doc/misc/calc.texi (Summary): * doc/man/emacsclient.1: * doc/lispref/os.texi (Security Considerations): * doc/lispref/control.texi (pcase Macro): * CONTRIBUTE: Fix typos. Reported by Mak Kolybabi (Bug#32853) 2018-09-24 Stefan Monnier * doc/emacs/kmacro.texi (Basic Keyboard Macro): Mention old bindings According to Apple gospel, function keys are partly going the way of the dodo so F3/F4 can, like in the good old days, be hard to reach for some users. 2018-09-24 Eli Zaretskii Improve docs of functions/variables related to 'display-buffer' * lisp/window.el (display-buffer, pop-to-buffer-same-window) (display-buffer-same-window, display-buffer-in-side-window) (same-window-p, display-buffer-overriding-action) (display-buffer-base-action) (display-buffer--same-window-action) (display-buffer--other-frame-action) (with-current-buffer-window, with-displayed-buffer-window) (display-buffer-alist, display-buffer-assq-regexp) (display-buffer-other-frame): Clarify and improve the doc strings. (Bug#32798) 2018-09-23 Stefan Monnier * lisp/mouse.el (tear-off-window): Fix non-mouse use (bug#32799) 2018-09-22 Eli Zaretskii Improve documentation of directory-local variables * lisp/files.el (hack-local-variables, normal-mode) (after-find-file, find-file-hook): Mention directory-local variables in the doc strings. Suggested by Marcin Borkowski . * doc/emacs/custom.texi (File Variables, Directory Variables): Clarify that directory-local variables are overridden by file-local ones. 2018-09-22 Eli Zaretskii Don't use obsolete variable 'save-place' in documentation * doc/lispref/customize.texi (Variable Definitions): Replace example of saveplace defcustom with a fictitious one, which will not bit-rot with time. (Bug#32741) 2018-09-22 Mark A. Hershberger Use save-place-mode instead of save-place * lisp/menu-bar.el (menu-bar-options-save, menu-bar-options-menu): * lisp/saveplace.el (save-place-to-alist, save-places-to-alist) (save-place-find-file-hook, save-place-dired-hook): Use save-place-mode instead of the obsolete save-place. 2018-09-20 Eli Zaretskii More accurate docs for 'text-char-description' * src/keymap.c (Ftext_char_description): * doc/lispref/help.texi (Describing Characters): More accurate description of 'text-char-description'. Remove incorrect examples from the ELisp manual. (Bug#32743) 2018-09-20 Noam Postavsky Document synchronous behavior of eshell/make (Bug#32513) * doc/misc/eshell.texi (Built-ins): * lisp/eshell/em-unix.el (eshell/make): Mention that it falls back to the external 'make' command when called synchronously. 2018-09-20 Shigeru Fukaya Fix bs-show with wide characters (Bug#17822) * lisp/bs.el (bs--insert-one-entry, bs-show-in-buffer): Use string-width instead of length. 2018-09-19 Eli Zaretskii Improve Custom menu labels for 2 options * lisp/dired.el (dired-use-ls-dired): * lisp/progmodes/xref.el (xref-prompt-for-identifier): Improve the doc string and the defcustom menu/tags text. (Bug#32756) 2018-09-19 Eli Zaretskii Improve wording of last change in dired-x.texi * doc/misc/dired-x.texi (Shell Command Guessing): Clarify wording in description of 'dired-guess-shell-alist-user'. Avoid passive tense. (Bug#32733) 2018-09-18 Eli Zaretskii Fix GnuTLS test suite with GnuTLS versions 3.4.x * src/gnutls.c (gnutls_cipher_get_tag_size): Make it return zero only for versions of GnuTLS < 3.2.2, where gnutls_cipher_get_tag_size was introduced. This fixes the GnuTLS test suite, which assumes that any cipher whose tag size is non-zero is AEAD-capable, and doesn't test such ciphers if AEAD is not available, i.e. for GnuTLS < 3.5.1. (Bug#32446) 2018-09-17 Noam Postavsky Fix build with gnutls versions 3.0 to 3.2 (Bug#32446) We previously used functions available only in 3.2+ for all 3.x versions. * src/gnutls.c [GNUTLS_VERSION_NUMBER < 0x030501]: Replace calls to gnutls_cipher_get_tag_size with 0. [GNUTLS_VERSION_NUMBER < 0x030200]: Alias gnutls_cipher_get_iv_size to gnutls_cipher_get_block_size, gnutls_digest_list to gnutls_mac_list, and gnutls_digest_get_name to gnutls_mac_get_name. [WINDOWSNT]: Adjust DLL function definitions and declarations accordingly. 2018-09-17 Eli Zaretskii Fix the Bubbles game on TTY frames * lisp/play/bubbles.el (bubbles--col-offset) (bubbles--row-offset): Doc fixes. (bubbles--compute-offsets): Conflate the GUI and TTY code into a single common version. Set the offsets to simple numbers, not to lists. (bubbles--initialize, bubbles--show-scores): Wrap offset values in a list, so that they are interpreted as pixel values, not as units of character width. This fixes the game on TTY frames. (Bug#32744) 2018-09-17 Allen Li Add choice to reshow certificate information (Bug#31877) In various situations, the window displaying the certificate information can be hidden (such as if the user accidentally presses ?, which causes the read-multiple-choice help window to replace it). Instead of leaving the user to make a choice blindly, add a choice to reshow the certification information. * lisp/net/nsm.el (nsm-query-user): Add reshow choice. 2018-09-16 Glenn Morris * src/alloc.c (Fbool_vector, Flist, Fvector): Doc tweak. Use a simpler, consistent form. 2018-09-15 Alan Mackenzie * src/alloc.c (vector): Fix grammatical error in doc string: "are" -> "is". 2018-09-15 Eli Zaretskii Avoid adverse side effects of fixing bug#21824 * test/src/buffer-tests.el (overlay-modification-hooks-deleted-overlay): New test. * src/buffer.c (report_overlay_modification): Don't bypass all the overlay-modification hooks; instead, invoke each function only if the buffer associated with the overlay is the current buffer. (Bug#30823) 2018-09-15 Eli Zaretskii Document changes called out in NEWS * doc/lispref/lists.texi (Association Lists): Document 'assoc-delete-all'. * doc/lispref/minibuf.texi (Minibuffers): Adapt menu. (Multiple Queries): Document 'read-answer'. * etc/NEWS: Reflect the above documentation in the respective entries. 2018-09-14 Glenn Morris Tiny doc updates re yum/dnf etc * INSTALL: Mention dnf and Debian unversioned emacs package. * doc/misc/efaq.texi (Installing Emacs): Mention dnf. 2018-09-14 Leo Liu Remove unused variable * lisp/progmodes/prolog.el (prolog-hungry-delete-key-flag): Remove. 2018-09-14 Leo Liu Fix (thing-at-point 'list) regression (Bug#31772) * lisp/thingatpt.el (thing-at-point-bounds-of-list-at-point): Revert to pre 26.1 behavior. Return whole sexp at point if no enclosing list. (list-at-point): New optional arg to ignore comments and strings. * test/lisp/thingatpt-tests.el (thing-at-point-bounds-of-list-at-point): Fix and augment tests. 2018-09-14 Robert Pluim Clarify meaning of '*' * doc/misc/dired-x.texi (Shell Command Guessing): Clarify meaning of '*'. (Bug#32733) 2018-09-12 Paul Eggert * etc/PROBLEMS: Document Ubuntu 16.04 issue. 2018-09-12 Alex Branham (tiny change) Increase default value for imenu-auto-rescan-maxout * lisp/imenu.el (imenu-auto-rescan-maxout): Increase default value to 600000. (Bug#18426) * doc/emacs/programs.texi (imenu-auto-rescan-maxout): Add documentation for imenu-auto-rescan-maxout. 2018-09-11 Eli Zaretskii Improve recent change to ELisp manual * doc/lispref/commands.texi (Keyboard Events): Add index entry for "character event". (Bug#32562) 2018-09-11 Eli Zaretskii * doc/lispref/display.texi (SVG Images): Improve wording. * doc/lispref/display.texi (SVG Images): Fix a typo. (Bug#32690) 2018-09-10 Eli Zaretskii Clarify completion text in the ELisp manual * doc/lispref/minibuf.texi (Programmed Completion): Clarify text. Suggested by Stefan Monnier . 2018-09-10 Eli Zaretskii Fix handling of abbreviated control command in gdb-mi.el * lisp/progmodes/gdb-mi.el (gdb-control-commands-regexp): Support unambiguous abbreviations of commands. (Bug#32576) 2018-09-10 Eli Zaretskii Clarify documentation of functions reading character events * doc/lispref/help.texi (Describing Characters): * doc/lispref/commands.texi (Keyboard Events) (Reading One Event, Classifying Events): Make the distinction between characters and character events more explicit. * src/keymap.c (Ftext_char_description) (Fsingle_key_description): * src/lread.c (Fread_char, Fread_char_exclusive): Doc fixes, to make a clear distinction between a character input event and a character code. (Bug#32562) 2018-09-07 Eli Zaretskii Record :version for built-in variables while dumping * lisp/cus-start.el (standard): Record the ':version; of the symbols when dumping, so that 'describe-variable' could tell which built-in variables were added/changed in recent versions. 2018-09-07 YAMAMOTO Mitsuharu * src/process.c (connect_network_socket): Fix memory leak. (Bug#32604) 2018-09-05 Glenn Morris * Makefile.in (appdatadir): Use the non-obsolete location "metainfo". 2018-09-04 Stefan Monnier Better fix for bug#32550 * lisp/rfn-eshadow.el (rfn-eshadow-overlay): Give it a global default. * lisp/net/tramp.el (rfn-eshadow-overlay): Declare it as dynamically scoped. (tramp-rfn-eshadow-update-overlay): Revert the corresponding part of last change. 2018-09-04 Michael Albinus Fix Bug#32550 * lisp/net/tramp.el (tramp-rfn-eshadow-setup-minibuffer): Do not use `symbol-value'. (tramp-rfn-eshadow-update-overlay): Do not use `symbol-value'. Do not let-bind `rfn-eshadow-overlay', assign it directly (due to lexical binding). (Bug#32550) 2018-09-04 Martin Rudalics Don't call XGetGeometry for frames without outer X window (Bug#32615) * src/xfns.c (frame_geometry): Don't call XGetGeometry when FRAME has no outer X window; return nil instead. (Bug#32615) 2018-09-03 Paul Eggert * lisp/calculator.el: Fix doc typo. 2018-09-03 Glenn Morris Standardize calc bug reporting instructions * doc/misc/calc.texi (Reporting Bugs): Use standard commands. * lisp/calc/calc-misc.el (report-calc-bug, calc-report-bug): * lisp/calc/calc.el (calc-bug-address): Change to be obsolete aliases for standard Emacs bug reporting items. 2018-08-31 Michael Albinus Rename thread-alive-p to thread-live-p * doc/lispref/threads.texi (Basic Thread Functions): Use thread-live-p. * etc/NEWS: 'thread-alive-p' has been renamed to 'thread-live-p'. * src/thread.c (thread_live_p): Rename from thread_alive_p. Adapt all callees. (Fthread_live_p): Rename from Fthread_alive_p. (syms_of_threads): Make thread-alive-p an alias of thread-live-p. * test/src/thread-tests.el (all): Replace `thread-alive-p' by `thread-live-p'. (threads-live): Rename from `threads-alive'. 2018-08-30 Miciah Masters (tiny change) rcirc: Document /reconnect as a built-in command (Bug#29656) The change "New command rcirc-cmd-reconnect" from 2014-04-09 (shipped in Emacs 25.1) added a /reconnect command to rcirc but did not document it and did not delete the example /reconnect command definition in the manual. * doc/misc/rcirc.texi (rcirc commands): Document the built-in /reconnect command. (Hacking and Tweaking): Delete example reconnect command. 2018-08-30 Noam Postavsky * test/lisp/calc/calc-tests.el (calc-imaginary-i): New test. 2018-08-28 Glenn Morris admin.el: respect environment settings for makeinfo etc * admin/admin.el (manual-makeinfo, manual-texi2pdf, manual-texi2dvi): New variables. (manual-html-mono, manual-html-node, manual-pdf, manual-ps): Use them. 2018-08-28 Glenn Morris * etc/PROBLEMS: New entry about GTK+ 3 crash with some X servers. 2018-08-28 Noam Postavsky Index profiler commands in elisp manual * doc/lispref/debugging.texi (Profiling): Add index entries for profiler-start, profiler-report, profiler-stop. 2018-08-28 Noam Postavsky Fix math-imaginary-i check Reported by Bastian Erdnüß at . * lisp/calc/calc-cplx.el (math-imaginary-i): Check for a value of (polar 1 ). 2018-08-28 Eli Zaretskii Avoid infinite hscrolling loops when line numbers are displayed * src/xdisp.c (maybe_produce_line_number): Don't produce line numbers if we don't have enough screen estate. (Bug#32351) 2018-08-28 Eli Zaretskii Avoid crashes in malformed defvar * src/eval.c (Fdefvar): Don't call XSYMBOL on something that might not be a symbol. This avoids crashes due to malformed 'defvar' forms. (Bug#32552) 2018-08-28 Glenn Morris * configure.ac (emacs_config_features): Add GLIB, XDBE, XIM. * configure.ac: Doc fixes related to --with-xim. 2018-08-28 Glenn Morris Small checkdoc quoting fix (bug#32546) * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): Fix quoting thinko. 2018-08-26 Sergey Vinokurov Fix detection of freed emacs_values (Bug#32479) * src/emacs-module.c (module_free_global_ref): Compare a value to be freed with all entries of the list. * test/data/emacs-module/mod-test.c (Fmod_test_globref_free): New function. (emacs_module_init): Make it accessible from Lisp. * test/src/emacs-module-tests.el (mod-test-globref-free-test): New test which uses it. 2018-08-25 Eli Zaretskii Avoid crashes with very wide TTY frames on MS-Windows * src/w32console.c : Reduce the number of elements to 80. : New static variables. (w32con_clear_end_of_line): If the line is wider than the current size of the "empty row" in 'glyphs', reallocate 'glyphs' to support the full width of the frame. This avoids segfaults when the frame is wider than 256 columns. (Bug#32445) 2018-08-25 Wenjamin Petrenko (tiny change) Prevent `modify-file-local-variable-prop-line' from adding extra ';' * lisp/files-x.el (modify-file-local-variable-prop-line): Handle whitespace when checking if there's already a ';' before the variable (Bug#23294). 2018-08-24 Glenn Morris Update GNOME bugtracker URLs * configure.ac, admin/notes/multi-tty, etc/PROBLEMS: * src/emacs.c (main): * src/xterm.c (x_connection_closed): Update GNOME bugtracker URLs. 2018-08-23 Eli Zaretskii Clarify in the Emacs manual that ChangeLog files are not used * doc/emacs/trouble.texi (Sending Patches): Use "commit log" instead of "change log", to avoid the interpretation that we are talking about literal ChangeLog files. (Bug#32359) 2018-08-21 Eli Zaretskii Recognize codepage 65001 as a valid encoding * lisp/international/mule-conf.el (cp65001): Define it as an alias for UTF-8. 2018-08-18 Eli Zaretskii Avoid compilation warning in nt/addpm.c * nt/addpm.c [!MINGW_W64]: Undefine _WIN32_IE before redefining it, to avoid compilation warnings. 2018-08-17 Basil L. Contovounesios Fix duplicate custom group names in bibtex.el * lisp/textmodes/bibtex.el (bibtex-BibTeX-entry-alist): Change :group from BibTeX to bibtex. (bug#32436) 2018-08-17 Eli Zaretskii Fix outdated text in the Calc manual * doc/misc/calc.texi (Internals): Don't advertise 'calc-extensions' which no longer exists. Reported by Francis Wright . 2018-08-13 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. (cherry picked from commit a84cef90957f2379cc0df6bd908317fc441971ce) 2018-08-13 Paul Eggert Add comment about floating point test * test/src/data-tests.el (data-tests--float-greater-than-fixnums): New constant. (data-tests-=, data-tests-<, data-tests->, data-tests-<=) (data-tests->=, data-tests-min): Use it. 2018-08-13 Tino Calancha Ibuffer: Add toggle ibuffer-do-toggle-lock Toggle the locked status in marked buffers or the buffer at point (Bug#32421). * lisp/ibuffer.el (ibuffer-do-toggle-lock): New command. (ibuffer-mode-map): Bind it to 'L'. (ibuffer-mode-operate-map): Add entries for `ibuffer-do-toggle-read-only' and `ibuffer-do-toggle-lock'. * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 26.2): Announce the change. 2018-08-13 Tino Calancha Ibuffer: Detect correctly the buffers running a process * lisp/ibuffer.el (filename-and-process): Store the process buffer as a text property; check for such property to detect a buffer with a process (Bug#32420). 2018-08-12 Michael Albinus Backport fix for Bug#32226 * test/lisp/shadowfile-tests.el: Set Tramp variables for hydra. (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. (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): Test for writable temporary directory. Suppress errors in cleanup. (Bug#32226) 2018-08-12 Yuri D'Elia Do not consider external packages to be removable (Bug#27822) Packages which are not directly user-installed shouldn't be autoremoved, since they can be setup through a different path (via `package-directory-list') where we have no authority over. * lisp/emacs-lisp/package.el (package--user-installed-p): New function. (package--removable-packages): Use it. 2018-08-11 Paul Eggert * src/alloc.c: Remove obsolete comments. 2018-08-11 Eli Zaretskii Better support utf-8-with-signature and utf-8-hfs in HTML * lisp/international/mule.el (sgml-html-meta-auto-coding-function): Support UTF-8 with BOM and utf-8-hfs as variants of UTF-8, and obey the buffer's encoding if it is one of these variants, instead of re-encoding in UTF-8 proper. (Bug#20623) 2018-08-11 Eli Zaretskii Don't use -Wabi compiler option * configure.ac: Add -Wabi to the list of disabled warning options. For the details, see http://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00123.html. 2018-08-10 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. (cherry picked from commit 60ff8101449eea3a5ca4961299501efd83d011bd) 2018-08-09 Eli Zaretskii Fix copying text properties by 'format' * src/editfns.c (styled_format): Add the spec beginning index to the info recorded for each format spec, and use it to detect the case that a format spec and its text property end where the next spec with another property begins. (Bug#32404) * test/src/editfns-tests.el (format-properties): Add tests for bug#32404. 2018-08-09 Alexander Gramiak Improve error messages regarding initial-buffer-choice (Bug#29098) * lisp/startup.el (command-line-1) : Make the messages conform to Emacs conventions, and show the invalid return value in the message. 2018-08-09 Glenn Morris * test/lisp/wdired-tests.el (wdired-test-unfinished-edit-01): Fix typo. 2018-08-09 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. (cherry picked from commit 92ba34d89ac4f5b5bbb818e1c39a3cc12a405790) 2018-08-09 Noam Postavsky Fix emacsclient check for term.el buffer (Bug#21041) * lib-src/emacsclient.c (find_tty): Check for any TERM value with prefix of "eterm", not just "eterm" itself. Also check for ",term:" in INSIDE_EMACS value. 2018-08-08 Eli Zaretskii Improve documentation of 'set-fontset-font' * doc/lispref/display.texi (Fontsets): Fix description of 'set-fontset-font'. * src/fontset.c (Fset_fontset_font): Doc fix. (Bug#32401) 2018-08-07 Eli Zaretskii Improve documentation of M-? * doc/emacs/maintaining.texi (Identifier Search): * lisp/progmodes/xref.el (xref-find-references): Improve documentation of xref-find-references and xref-prompt-for-identifier. (Bug#32389) 2018-08-07 Ivan Shmakov Reinterpret Esperanto characters in iso-transl as iso-8859-3. * lisp/international/iso-transl.el (iso-transl-language-alist): Reinterpret Esperanto characters as iso-8859-3 (were: iso-8859-1). (Bug#32371) 2018-08-07 Eli Zaretskii Fix Flyspell mode when several languages are mixed in a buffer * lisp/textmodes/flyspell.el (flyspell-external-point-words): Handle "misspelled" words that actually belong to a language unsupported by the current dictionary. (Bug#32280) Fix the test for Ispell the program. 2018-08-04 Juri Linkov New function read-answer (Bug#31782) * lisp/emacs-lisp/map-ynp.el (read-answer-short): New defcustom. (read-answer): New function. * lisp/subr.el (assoc-delete-all): New function. * etc/NEWS: Announce them. * lisp/dired.el (dired-delete-file): Use read-answer. (dired--yes-no-all-quit-help): Remove function. (dired-delete-help): Remove defconst. (backported from master, "New function read-answer (bug#30073)" and "Respect non-saved value of `read-short-answer' (Bug#31782)") 2018-08-02 Eli Zaretskii Avoid assertion violations in maybe_produce_line_number * src/xdisp.c (redisplay_window): Make sure desired_matrix is cleared before calling try_window. This is important when display-line-numbers is non-nil, because line-number display code assumes each glyph row is completely cleared when it is called to produce a line number. (Bug#32358) 2018-08-02 Eli Zaretskii Avoid assertion violations in set_text_properties_1 * src/textprop.c (set_text_properties): If the call to modify_text_properties modifies the interval tree as side effect, recalculate the correct interval for START and END. (Bug#32265) 2018-07-31 Stephen Berman Fix wdired test failure when byte compiled (bug#32318) * test/lisp/wdired-tests.el: Require wdired. Defvar dired-query to silence byte-compiler. 2018-07-30 Stephen Berman * test/lisp/wdired-tests.el (wdired-test-symlink-name): New test. 2018-07-29 Raimon Grau Fix url's thing-at-point beginning-op (Bug#32028) * lisp/thingatpt.el (url): Fix beginning-op making. 2018-07-29 Eli Zaretskii Fix last change in 'char_width' * src/character.c (char_width): Make sure variable C is always initialized. (Bug#32276) 2018-07-29 Stephen Berman Add initial tests for wdired.el * test/lisp/wdired-tests.el: New file. 2018-07-28 Stephen Berman Fix use of non-nil wdired-use-interactive-rename This is a fairly minimal fix for the release branch; a more comprehensive fix is on master, so do not merge this to master. * lisp/wdired.el (wdired-search-and-rename): Remove dired-filename text property in order to find new filename when it only partially replaces old filename (bug#32173). If user quits before renaming succeeds, restore the dired-filename text property. 2018-07-28 Eli Zaretskii Fix compilation with mingw.org's MinGW 5.x headers 2018-07-28 Eli Zaretskii Update the list of special forms in the ELisp manual * doc/lispref/eval.texi (Special Forms): * doc/lispref/frames.texi (Mouse Tracking): 'track-mouse' is nowadays a macro. (Bug#32284) 2018-07-28 Noam Postavsky Don't fail to indent-sexp before a full sexp (Bug#31984) * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Only signal error if the initial forward-sexp fails. Suppress scan-error forn any of the forward-sexp calls after that. * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp-cant-go): New test. 2018-07-27 Eli Zaretskii Fix calls to modifications hooks in replace-buffer-contents * src/editfns.c (Freplace_buffer_contents): Call the modification hooks on the entire region where replacements could have taken place. The previous attempts of being more accurate just introduced bugs. (Bug#32278) 2018-07-27 Eli Zaretskii * src/character.c (char_width): Support glyphs with faces. (Bug#32276) 2018-07-27 Eli Zaretskii Display raw bytes as belonging to 'eight-bit' charset * lisp/descr-text.el (describe-char): * lisp/simple.el (what-cursor-position): Display characters in the range #x3FFF80..#x3FFF9F as belonging to charset 'eight-bit', not 'tis620-2533'. * lisp/international/mule-diag.el (describe-character-set): Improve description of :supplementary-p. 2018-07-26 Eli Zaretskii Fix inaccurate text in the user manual * doc/emacs/mule.texi (International Chars): Correct inaccurate description of raw bytes display by "C-x =". 2018-07-26 Michael Albinus Copyedits in tramp.texi, improved example with bash's readline * doc/misc/tramp.texi (all): Unify some wordings. (Frequently Asked Questions): Update example with bash's readline. 2018-07-25 Michael Albinus Minor Tramp doc update * doc/misc/tramp.texi (Frequently Asked Questions): Disable bash's INPUTRC. 2018-07-25 Michael Albinus File Shadowing is not available on MS Windows * doc/emacs/files.texi (File Shadowing): File Shadowing is not available on MS Windows. * test/lisp/shadowfile-tests.el (shadow-test00-clusters) (shadow-test01-sites, shadow-test02-files) (shadow-test03-expand-cluster-in-file-name) (shadow-test04-contract-file-name, shadow-test05-file-match) (shadow-test06-literal-groups, shadow-test07-regexp-groups) (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): Skip under MS Windows. 2018-07-24 Noam Postavsky Let bookmark-jump override window-point (Bug#31751) * lisp/bookmark.el (bookmark-jump): Use pop-to-buffer-same-window instead of switch-to-buffer, the latter obeys switch-to-buffer-preserve-window-point and so loses the bookmark's point. 2018-07-23 Noam Postavsky Omit keymap from subword-mode docstring (Bug#32212) * lisp/progmodes/subword.el (subword-mode): Remove listing of subword-mode-map bindings, since it is empty as of 2014-03-23 "Merge capitalized-words-mode and subword-mode". 2018-07-23 Tino Calancha Noam Postavsky Prevent line-mode term from showing user passwords For buffers whose mode derive from comint-mode, the user password is read from the minibuffer and it's hidden. A buffer in term-mode and line submode, instead shows the passwords. Make buffers in line term-mode to hide passwords too (Bug#30190). * lisp/term.el (term-send-invisible): Prefer the more robust `read-passwd' instead of `term-read-noecho'. (term-watch-for-password-prompt): New function. (term-emulate-terminal): Call it each time we receive non-escape sequence output. 2018-07-22 Jonathan Kyle Mitchell Check for special filenames in eshell (Bug#30724) * lisp/eshell/esh-cmd.el (eshell-lisp-command): Check for "~" in lisp commands with the eshell-filename-arguments property (Bug#30724). * lisp/eshell/em-dirs.el (eshell/cd, eshell/pushd, eshell/popd): * lisp/eshell/em-ls.el (eshell/ls): * lisp/eshell/em-unix.el (eshell/rm, eshell/mkdir, eshell/rmdir) (eshell/mv, eshell/cp, eshell/ln, eshell/cat, eshell/du, eshell/diff): * lisp/eshell/esh-ext.el (eshell/addpath): Add eshell-filename-arguments to symbol plist. 2018-07-22 Noam Postavsky Fix indent-sexp of #s(...) (Bug#31984) * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Look for a sexp that ends after the current line. * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp-go): New test. 2018-07-22 Noam Postavsky Add save-match-data to abbreviate-file-name (Bug#32201) * lisp/files.el (abbreviate-file-name): Save match-data around expand-file-name; it is not guaranteed to preserve match-data, and may well do so depending on what file handlers and hooks are in effect. 2018-07-21 Eli Zaretskii Fix last change in editfns.c * src/editfns.c (Freplace_buffer_contents): Fix last change: always call buffer modification hooks, even if nothing was deleted/inserted. (bug#32237) 2018-07-21 Eli Zaretskii Fix calls to buffer modification hooks from replace-buffer-contents * src/editfns.c (Freplace_buffer_contents): Don't call buffer modification hooks if nothing was deleted/inserted. (Bug#32237) 2018-07-21 Michael Albinus Fix Bug#32226 * lisp/shadowfile.el (shadow-site-name, shadow-name-site): Use "[-.[:word:]]+" as hostname regexp. (Bug#32226) * test/lisp/shadowfile-tests.el (shadow-test06-literal-groups) (shadow-test07-regexp-groups, shadow-test08-shadow-todo) (shadow-test09-shadow-copy-files): Skip if needed. 2018-07-21 Eli Zaretskii Improve doc strings of several variables in keyboard.c * src/keyboard.c (syms_of_keyboard) : Make sure the first sentence of the doc string fits on a single line. 2018-07-20 Michael Albinus Fix (Bug#32218). Do not merge with master * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.3.4.26.2". (customize-package-emacs-version-alist): Add Tramp version integrated in Emacs 26.2. * lisp/net/tramp.el (tramp-handle-file-truename): * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename): * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename): Fix problem with trailing slash. (Bug#32218) * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Remove `tramp--test-emacs27-p' check. 2018-07-20 Eli Zaretskii Improve documentation of 'pcase-defmacro rx' * lisp/emacs-lisp/rx.el (rx): Clarify and improve the doc string. For the details, see the discussion starting at http://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00399.html. 2018-07-19 Eli Zaretskii Fix TTY colors breakage by 'clear-face-cache' Without examining the right frame, 'tty-color-24bit' was erroneously treating a GUI frame as a 24-bit TTY frame. * lisp/term/tty-colors.el (tty-color-24bit): Accept optional argument DISPLAY and pass it to display-color-cells. Doc fix. (tty-color-define, tty-color-desc): Pass the FRAME argument to tty-color-24bit. (Bug#32072) 2018-07-18 Michael Albinus * admin/MAINTAINERS: Add files maintained by me (Michael Albinus). 2018-07-18 Michael Albinus Adapt shadowfile.el for Tramp (Bug#4526, Bug#4846) * etc/NEWS: Mention changes in shadowfile.el. * lisp/shadowfile.el (top): Require 'tramp instead of 'ange-ftp. (shadow-cluster): New defstruct. (shadow-make-cluster, shadow-cluster-name, shadow-cluster-primary) (shadow-cluster-regexp, shadow-get-user) (shadow-parse-fullname): Remove. (shadow-info-file, shadow-todo-file, shadow-system-name) (shadow-homedir, shadow-regexp-superquote, shadow-suffix) (shadow-set-cluster, shadow-get-cluster, shadow-site-name) (shadow-name-site, shadow-site-primary, shadow-site-cluster) (shadow-read-site, shadow-parse-name, shadow-make-fullname) (shadow-replace-name-component, shadow-local-file) (shadow-expand-cluster-in-file-name, shadow-contract-file-name) (shadow-same-site, shadow-file-match, shadow-define-cluster) (shadow-define-literal-group, shadow-define-regexp-group) (shadow-make-group, shadow-shadows-of-1, shadow-read-files) (shadow-write-info-file, shadow-write-todo-file) (shadow-initialize): Adapt variables and functions. * test/lisp/shadowfile-tests.el: New file. 2018-07-18 Noam Postavsky Fix auth-source-delete (Bug#26184) * lisp/auth-source.el (auth-source-delete): Fix `auth-source-search' call. * test/lisp/auth-source-tests.el (auth-source-delete): New test. 2018-07-17 Eli Zaretskii Avoid assertion violations in gnutls.c * src/gnutls.c (Fgnutls_hash_digest, gnutls_symmetric) (Fgnutls_hash_mac): Check CONSP before invoking XCDR. (Bug#32187) Report values of invalid arguments when signaling an error. 2018-07-14 Eli Zaretskii Don't use a literal "C-u" in ispell.el help message text * lisp/textmodes/ispell.el (ispell-command-loop): Use "\\[universal-argument]" instead of a literal "C-u". (Bug#32142) 2018-07-14 Eli Zaretskii Improve documentation of 'seqp' * doc/lispref/sequences.texi (Sequence Functions): Add text to explain the relation between 'seqp' and 'sequencep'. (Bug#32125) 2018-07-14 Eli Zaretskii Clarify usage and dependencies between several Flyspell features * lisp/textmodes/flyspell.el (flyspell-region) (flyspell-small-region, flyspell-persistent-highlight): Documentation improvements. (Bug#32142) 2018-07-13 Michael Albinus Use consistent function names in thread-tests.el * test/src/thread-tests.el (threads-call-error, threads-custom) (threads-errors, threads-sticky-point, threads-signal-early): Rename, using naming convention to prefix with "threads-". 2018-07-13 Michael Albinus Fix format error in Faccept_process_output * src/process.c (Faccept_process_output): Do not use format spec "%p", it isn't valid for error(). 2018-07-13 Paul Eggert Lessen stack consumption in recursive read1 * src/lread.c (read1): Shrink local buffer size from MAX_ALLOCA to 128 (Bug#31995). 2018-07-13 Noam Postavsky Match w32 paths in grep sans --null hits (Bug#32051) * lisp/progmodes/grep.el (grep-regexp-alist): Add an optional part to match paths starting with C: (other drive letters). * test/lisp/progmodes/compile-tests.el (compile-tests--grep-regexp-testcases) (compile-tests--grep-regexp-tricky-testcases) (compile-test-grep-regexps): New tests. (compile--test-error-line): Return `compilation-message'. 2018-07-13 Noam Postavsky Fix previous make-network-process change * src/process.c (Fmake_network_process): On 2018-07-09 "Explicitly reject :server and :nowait (Bug#31903)", the sense of the SERVER check was accidentally reversed so that we ended up looking for the wrong ADDRESS. Reported by T.V Raman in . 2018-07-12 Eli Zaretskii Another documentation improvement in flyspell.el * lisp/textmodes/flyspell.el (flyspell-persistent-highlight): Doc fix. 2018-07-12 Eli Zaretskii Improve documentation of Flyspell For the background, see http://lists.gnu.org/archive/html/help-gnu-emacs/2018-07/msg00099.html. * doc/emacs/fixit.texi (Spelling): Add a couple of caveats. * lisp/textmodes/flyspell.el: Update commentary. 2018-07-12 Michael Albinus Provide feature 'threads * src/thread.c (syms_of_threads): Provide feature "threads". * test/src/thread-tests.el (top): Declare the functions. (all): Use (featurep 'threads) check. 2018-07-11 Miciah Masters (tiny change) Save the server alias on reconnect (Bug#29657) rcirc does not retain the server alias on reconnect. As a result, rcirc fails to re-use server and channel buffers when an alias is used. Further problems may ensue when aliases are used to differentiate multiple connections to the same host, for example when using a single IRC bouncer or proxy to connect to multiple IRC networks. Save the server alias when connecting to a server so that reconnect will retain the alias. * lisp/net/rcirc.el (rcirc-connect): Include server-alias when setting rcirc-connection-info. 2018-07-11 Basil L. Contovounesios Refer to "proper lists" instead of "true lists" * doc/lispref/lists.texi (Cons Cells, Building Lists): * doc/lispref/sequences.texi (Vector Functions): Use the more popular term "proper", rather than "true", to qualify nil-terminated lists. For discussion, see the following emacs-devel subthreads: https://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00112.html https://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00138.html 2018-07-10 John Shahid Avoid turning on the global-minor-mode recursively * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Clear the buffer-list inside MODE-enable-in-buffers to avoid enabling the mode recursively. (Bug#31793) 2018-07-10 Michael Albinus Fix Bug#32085 * doc/misc/tramp.texi (GVFS based methods): `dav' and `davs' do not support paths in the volume name. (Bug#32085) 2018-07-10 Noam Postavsky Stop using indent-line-to in lisp-indent-line (Bug#32014) This is partial revert of "Remove ignored argument from lisp-indent-line", because `indent-line-to' doesn't respect field boundaries. * lisp/emacs-lisp/lisp-mode.el (lisp-indent-line): Use delete-region and indent-to instead of `indent-line-to'. * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-indent-with-read-only-field): Expect to pass. Don't merge to master, we will fix indent-line-to there instead. 2018-07-10 Noam Postavsky Explicitly reject :server and :nowait (Bug#31903) * src/process.c (Fmake_network_process): Explicitly check for and signal an error when passed both :server and :nowait non-nil. In Emacs 25, :nowait would be ignored in this case, but as of Emacs 26.1 this gives an error, albeit an unclear one. Also remove obsolete comment regarding configurations lacking non-blocking mode, the corresponding code was removed in 2012-11-17 "Assume POSIX 1003.1-1988 or later for fcntl.h." 2018-07-09 Michael Albinus Fix Bug#32090 * lisp/files-x.el (connection-local-normalize-criteria): Do not use PROPERTIES anymore. (connection-local-get-profiles): Rewrite, in order to accept any property as optional. (Bug#32090) (connection-local-set-profiles): Adapt ´connection-local-normalize-criteria' call. * test/lisp/files-x-tests.el (files-x-test-connection-local-set-profiles) (files-x-test-hack-connection-local-variables-apply): Extend tests. 2018-07-08 Paul Eggert Fix floating point exceptions on Alpha (Bug#32086) Backport from master. * admin/merge-gnulib (GNULIB_MODULES): Add fpieee. * m4/fpieee.m4: New file, copied from Gnulib. * m4/gnulib-comp.m4: Regenerate. 2018-07-08 Paul Eggert Fix bootstrap infloop in GNU/Linux alpha * src/emacs.c (main): Do not re-exec if EMACS_HEAP_EXEC is already set (Bug#32083). 2018-07-08 Eli Zaretskii Minor fix of a recent documentation change * lisp/net/gnutls.el (gnutls-algorithm-priority): Clarify the doc string. 2018-07-08 Lars Ingebrigtsen Mention the NSM in the gnutls variable doc strings * lisp/net/gnutls.el (gnutls-algorithm-priority): Mention the Network Security Manager here since this variable is an obvious place for people concerned about network security to look. (gnutls-verify-error): Ditto. (gnutls-min-prime-bits): Ditto. 2018-07-08 Michael Albinus Remove test code from last commit 2018-07-08 Michael Albinus Fix Bug#32084 * test/lisp/net/dbus-tests.el (dbus-test02-register-service-own-bus): Unset $DISPLAY when calling dbus-launch, in order to avoid possible X11 authentication errors. (Bug#32084) 2018-07-07 Basil L. Contovounesios Fix (length NON-SEQUENCE) documentation Suggested by Eli Zaretskii in the following threads: https://lists.gnu.org/archive/html/emacs-devel/2018-07/msg00171.html https://lists.gnu.org/archive/html/emacs-devel/2018-07/msg00206.html * doc/lispref/sequences.texi (Sequence Functions): Mention that 'length' signals a 'wrong-type-argument' also when given a non-sequencep argument. 2018-07-07 Eli Zaretskii Fix bug #11732 * src/w32fns.c (w32_wnd_proc): Fix handling of Windows input methods. (Bug#11732) 2018-07-07 Eli Zaretskii Improve documentation of 'emacs-lock-mode' * lisp/emacs-lock.el (emacs-lock-mode): Mention in the doc string the special handling of some major modes due to 'emacs-lock-unlockable-modes'. 2018-07-07 Eli Zaretskii * lisp/imenu.el (imenu-generic-expression): Doc fix. (Bug#32016) 2018-07-07 Eli Zaretskii Improve indexing of 'eval-defun' in ELisp manual * doc/lispref/display.texi (Defining Faces): * doc/lispref/debugging.texi (Explicit Debug): * doc/lispref/customize.texi (Variable Definitions): * doc/lispref/variables.texi (Defining Variables): Add index entries for 'eval-defun'. (Bug#32066) 2018-07-06 Paul Eggert Fix (length CIRCULAR) documentation * doc/lispref/sequences.texi (Sequence Functions): Correct documentation of what (length X) does when X is a circular list. 2018-07-06 Michael Albinus Tramp editorials * doc/misc/tramp.texi (Android shell setup): Mention Termux. * lisp/net/tramp-sh.el (tramp-remote-process-environment): Use proper spelling "Tramp" in docstring. 2018-07-06 Eli Zaretskii Clarify and improve doc strings of 'eval-last-sexp' and friends * lisp/simple.el (eval-expression, eval-expression-print-format): * lisp/progmodes/elisp-mode.el (eval-last-sexp): Doc fixes. (Bug#32064) 2018-07-06 Glenn Morris Automate upload of Emacs manuals to gnu.org * admin/make-manuals, admin/upload-manuals: New scripts. * admin/admin.el (make-manuals, make-manuals-dist): Handle batch mode. * admin/make-tarball.txt: Update web-page details. 2018-07-05 Mike Kupfer Fix MH-E mail composition with GNU Mailutils (SF#485) * lisp/mh-e/mh-comp.el (mh-bare-components): Recursively delete the temporary folder. 2018-07-03 Eli Zaretskii Speed up 'replace-buffer-contents' some more * src/editfns.c (EXTRA_CONTEXT_FIELDS): New members beg_a and beg_b. (Freplace_buffer_contents): Set up ctx.beg_a and ctx.beg_b. (buffer_chars_equal): Use ctx->beg_a and ctx->beg_b instead of calling BUF_BEGV, which is expensive. This speeds up the recipe in bug#31888 by 30%. 2018-07-03 Glenn Morris * doc/emacs/docstyle.texi: Avoid messing up the html output. Previously the @hyphenation commands somehow caused the section to go missing, with makeinfo 4.13 at least. 2018-07-01 Paul Eggert * etc/HISTORY: Cite Brinkhoff on early history. 2018-07-01 Martin Rudalics Document internal use of 'above-suspended' z-group frame parameter * src/w32fns.c (w32_dialog_in_progress, x_set_z_group): * src/xterm.c (x_set_z_group): Clarify the internal use of 'above-suspended' when setting a frame's 'z-group' parameter. 2018-06-30 Gemini Lasswell Increase max-lisp-eval-depth adjustment while in debugger (bug#31919) * src/eval.c (call_debugger): Increase the amount of extra Lisp evaluation depth given to the debugger to allow it to call cl-print. * lisp/emacs-lisp/debug.el (debugger-setup-buffer): Add a comment to suggest updating call_debugger when changing print-level. 2018-06-30 Eli Zaretskii Improve on last change in replace-buffer-contents * src/editfns.c (Freplace_buffer_contents): Call modification hooks only for the actual region where changes are made. (Bug#31888) 2018-06-30 Eli Zaretskii Fix a factual error in Introduction to Emacs Lisp * doc/lispintro/emacs-lisp-intro.texi (Buffer Names): Update the key that exits the splash screen. (Bug#32019) 2018-06-30 Eli Zaretskii Minor improvements in documentation of imenu.el * lisp/imenu.el (imenu-generic-skip-comments-and-strings) (imenu--generic-function): Doc fixes. (Bug#31962) 2018-06-30 Eli Zaretskii Avoid errors with recentering in 'skeleton-insert' * lisp/skeleton.el (skeleton-insert): Don't recenter if we are running in a buffer other than the one displayed in the selected window. (Bug#31950) 2018-06-29 Paul Eggert * src/lisp.h: Omit obsolete comment re bytecode stack. 2018-06-29 Eli Zaretskii Speed up replace-buffer-contents * src/editfns.c (EXTRA_CONTEXT_FIELDS): Add a_unibyte and b_unibyte members. (rbc_quitcounter): New static variable. (Freplace_buffer_contents): Initialize a_unibyte, b_unibyte, and rbc_quitcounter. Inhibit modification hooks if they were not already inhibited. Use rarely_quit to allow user to quit, to avoid calling maybe_quit too frequently (which hurts performance). Remove redundant assertions (which hurt performance too much). Call signal_after_change and update_compositions after all the changes are done. (buffer_chars_equal): Remove redundant assertions (which hurt performance). Avoid using BUF_FETCH_CHAR_AS_MULTIBYTE, which hurts performance by referencing Lisp symbols; instead, use lower-level macros with explicit tests to select which macro to use. (Bug#31888) 2018-06-27 Dmitry Gutov Remove extra process call from vc-git-find-file-hook * lisp/vc/vc-git.el (vc-git-find-file-hook): Resolve FIXMEs. 2018-06-27 Dmitry Gutov Speed up vc-git-dir-status-files * lisp/vc/vc-git.el (vc-git-dir-status-goto-stage): Call 'git ls-files -u' for the ls-files-conflict stage (https://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00885.html). 2018-06-27 Eli Zaretskii Avoid compiler warning using coding.h * src/coding.h: Add INLINE_HEADER_BEGIN..INLINE_HEADER_END, since this header now has an extern INLINE function. 2018-06-27 Michael Albinus Sync with Tramp 2.3.4. Do not merge with master * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.3.4". * lisp/net/tramp-smb.el (tramp-smb-handle-delete-directory): Check, that the directory has been removed indeed. * 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-27 Martin Rudalics * src/xdisp.c (Vmouse_autoselect_window): Clarify doc-string (Bug#31975) 2018-06-26 Noam Postavsky Detect a non-list package archive content properly (Bug#22311) * lisp/emacs-lisp/package.el (package--download-one-archive): Use `read' instead of `read-from-string'; the latter always returns a cons, so the `listp' check on its return value doesn't make sense. It was changed from `read' to `read-from-string' in 2015-04-01 "* emacs-lisp/package.el: Implement asynchronous refreshing", but that change was not needed because `read' works fine on strings as well as buffers. 2018-06-25 Christophe Junke (tiny change) Add ido-fallback special variable (Bug#31707) Before ido.el switch to lexical-binding, it was possible for other packages to modify the 'fallback' variables declared inside 'ido-file-internal' and 'ido-buffer-internal'. * lisp/ido.el (ido-fallback): New variable. (ido-buffer-internal, ido-file-internal): Reset ido-fallback to nil before prompting user. Use ido-fallback when ido-exit is 'fallback'. (ido-fallback-command): Add optional FALLBACK-COMMAND argument. 2018-06-25 Karl Fogel Tighten a cross-reference in documentation * doc/lispref/internals.texi (Writing Emacs Primitives): Switch to a simple parenthetical cross-reference, following up to my commit 9a53b6d426 of 2018-06-24. See discussion: https://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00826.html From: Eli Zaretskii Subject: Re: [Emacs-diffs] \ emacs-26 9a53b6d: Say how to override a primitive interactive spec To: Karl Fogel CC: Stefan Monnier, Emacs Devel Date: Mon, 25 Jun 2018 17:41:53 +0300 Message-Id: <83r2kvrkr2.fsf@gnu.org> 2018-06-25 Michael Albinus Fix last change in tramp-sh.el * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly): Use "-R" rather than "-r" for recursive copy of directories. 2018-06-24 Paul Eggert Revert previous patch; comment was OK after all. 2018-06-24 Paul Eggert Fix lead comment for count_trailing_zero_bits * src/data.c (count_trailing_zero_bits): Fix comment to match code. 2018-06-24 Noam Postavsky * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix docstring quotes. 2018-06-24 Simen Heggestøyl Make a minor update to the CSS mode docstring * lisp/textmodes/css-mode.el (css-mode): Mention 'fill-paragraph'. 2018-06-24 Karl Fogel Say how to override a primitive interactive spec * doc/lispref/internals.texi (Writing Emacs Primitives): Mention that the `interactive-form' property can be used to override a primitive interactive specification, and refer to the detailed documentation for setting that property. From this thread on Emacs Devel: https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00923.html From: Eli Zaretskii To: Karl Fogel CC: Juri Linkov, Emacs Devel Subject: Re: [Emacs-diffs] \ master b88e7c8: Make transpose-regions interactive (Bug#30343) Date: Thu, 29 Mar 2018 14:38:15 +0300 Message-Id: <834lkzdsd4.fsf@gnu.org> 2018-06-24 Michael Albinus Fix Bug#31941 * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file): In case of FILENAME being a directory, check whether `copy-directory' could be avoided. Suggested by Stephen Nutt . (Bug#31941) (tramp-do-copy-or-rename-file-directly): Call "cp" with "-r". 2018-06-23 Leo Liu Fix previous change in minibuffer-default-add-dired-shell-commands The mailcap minibuffer completion used dynamic binding. Locally set a dynamic variable. * lisp/dired-aux.el (minibuffer-default-add-dired-shell-commands): Store list of files in 'minibuffer-completion-table'. (Bug#31794) 2018-06-23 Eli Zaretskii * src/editfns.c (Fformat): Make %x easier to spot in doc string. (Bug#31945) 2018-06-23 Eli Zaretskii Improve responsiveness while in 'replace-buffer-contents' * src/editfns.c (buffer_chars_equal): Avoid calling buf_charpos_to_bytepos when the buffer is plain-ASCII. Suggested by Milan Stanojević . Call maybe_quit to improve responsiveness. (Freplace_buffer_contents): Call maybe_quit. Warn in the doc string that the function could be slow. (Bug#31888) 2018-06-23 Eli Zaretskii Improve documentation of 'server-start' and friends * lisp/server.el (server-start, server-running-p): Document how to reliably check that the current Emacs process started the server. (Bug#31859) 2018-06-23 Eli Zaretskii Clarify wording about functions' argument lists * doc/lispref/functions.texi (Argument List): Clarify the wording. (Bug#31872) 2018-06-23 Eli Zaretskii * lisp/doc-view.el: Fix typos in the commentary. (Bug#31937) 2018-06-22 Eli Zaretskii Fix a typo in emacs-lisp-intro.texi * doc/lispintro/emacs-lisp-intro.texi (kill-ring-yank-pointer): Add a missing quote. Reported by Jean-Christophe Helary in emacs-devel. 2018-06-22 Paul Eggert Fix doc typo: missing double-quote 2018-06-22 Eli Zaretskii Avoid segfaults in replace-buffer-contents with large buffers * src/editfns.c (Freplace_buffer_contents): Don't release malloc'ed memory as long as we are using it. (Bug#31888) 2018-06-22 Robert Pluim Adjust for scaling for mode-line popup menus (Bug#31880) * src/xmenu.c (menu_position_func) [HAVE_GTK3]: Take scaling into account when calculating screen size. 2018-06-21 Simen Heggestøyl Change name of `seqp' argument (Bug#26411) * lisp/emacs-lisp/seq.el (seqp): Change argument name. * doc/lispref/sequences.texi: Update the documentation for seqp. 2018-06-20 Noam Postavsky Change index of ";" to better reflect it's usage (Bug#31623) * doc/lispref/objects.texi (Comments): "; for commenting" fits better with the following text about how a semicolon begins a comment. Also mention that only unescaped semicolons start a comment. 2018-06-20 Tak Kunihiro Fix bug of 'mouse-drag-and-drop-region' to detect edges of region (Bug#31905) * lisp/mouse.el (mouse-drag-and-drop-region): Detect both the beginning and the end of character of region during dragging text. 2018-06-19 Noam Postavsky Fix #'fun handling inside `labels' (Bug#31792) * lisp/emacs-lisp/cl.el (labels): Apply the equivalent of the cl-labels change from 2015-01-16 "* lisp/emacs-lisp/cl-macs.el: Fix last change". * test/lisp/emacs-lisp/cl-tests.el (labels-function-quoting): New test. * lisp/emacs-lisp/cl-macs.el (cl-flet, cl-labels): Improve docstring, link to relevant manual page. * doc/misc/cl.texi (Function Bindings): Don't imply that function cells of symbols are modified by cl-flet. Don't claim that cl-flet or cl-labels affect references of the form (quote FUNC). 2018-06-18 Eli Zaretskii Fix vertical-motion with 'visual' line-number display * src/indent.c (Fvertical_motion): Don't exempt 'visual' sty;e of line-number display from X coordinate adjustments. (Bug#31875) 2018-06-17 Alan Third Handle NSAttributedString inputs (bug#29837) * src/nsterm.m (EmacsView::insertText): Handle NSAttributedString. 2018-06-17 Philipp Stephani Allow inserting non-BMP characters * src/coding.h (UTF_16_HIGH_SURROGATE_P, UTF_16_LOW_SURROGATE_P): Move from coding.c and document. (surrogates_to_codepoint): New function. * src/nsterm.m (insertText:): Properly handle surrogate pairs. (cherry picked from commit 703ac3ea1c1ce381f385469a0e88bc29d3fe83c2) 2018-06-17 Aaron Jensen Prevent errant scroll on mouse click (Bug#31546) * src/nsterm.m (ns_mouse_position): Use correct frame when determining mouse position. * lisp/mouse.el (mouse-drag-track): Only account for mode-line height if `mode-line-format' is non-nil. 2018-06-17 Eli Zaretskii Minor documentation fix * doc/lispref/windows.texi (Window Start and End): Improve documentation and indexing of window-end. 2018-06-16 Eli Zaretskii * lisp/window.el (window-toggle-side-windows): Doc fix. (Bug#31858) 2018-06-16 Paul Eggert Fix byte compilation of (eq foo 'default) Backport from master. 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 Michael Albinus Fix Bug#31846. Do not merge with master * lisp/net/secrets.el (secrets-search-items) (secrets-create-item): Fix format of :dict-entry values. (Bug#31846) 2018-06-16 Eli Zaretskii Fix documentation of ':propertize' in mode-line-format * doc/lispref/modes.texi (Mode Line Data): Make the description of ':propertize' more accurate. (Bug#26291) 2018-06-15 Eli Zaretskii Reject invalid 5-byte sequences when detecting UTF-8 encoding * src/coding.c (detect_coding_utf_8): Reject multibyte sequences whose leading byte is greater than MAX_MULTIBYTE_LEADING_CODE. (Bug#31829) * src/character.h (MAX_MULTIBYTE_LEADING_CODE): Add commentary about the connection between the value of this macro and MAX_CHAR. 2018-06-15 Eli Zaretskii Fix 'replace-buffer-contents' in multibyte buffers * src/editfns.c (buffer_chars_equal): Pass a byte position to BUF_FETCH_CHAR_AS_MULTIBYTE, not a character position. (Bug#31837) * test/src/editfns-tests.el (replace-buffer-contents-bug31837): New test. 2018-06-15 Robert Pluim Update etc/NEWS for mail-source-movemail-program change * etc/NEWS: Describe change in how we search for mail-source-movemail-program. 2018-06-15 Robert Pluim Improve movemail default * lisp/gnus/mail-source.el (mail-source-movemail-program): Change default to "movemail". (mail-source-movemail): Pass just mail-source-movemail-program to call-process instead of fully specifying it relative to exec-directory. Ensures that we will find Mailutils movemail if it is installed. (Bug#31737) 2018-06-15 Eli Zaretskii Delete description of deleted Customize functions * doc/lispref/customize.texi (Variable Definitions): Remove the description of 'custom-initialize-safe-set' and 'custom-initialize-safe-default', which were deleted in Emacs 23.2, and replace with the description of 'custom-initialize-delay'. 2018-06-14 Noam Postavsky Keep vc-print-log from putting point at buffer end (Bug#31764) * lisp/vc/vc.el (vc-print-log-internal): Use `save-excursion' around `vc-print-log-setup-buttons'. 2018-06-14 Paul Eggert Don’t set EMACS=t if Bash is 4.4 or newer (Backport from master.) (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-06-14 Eli Zaretskii Improve commentary in info.el * lisp/info.el: Explain in commentary why some commands start with "info-" and others with "Info-". See also http://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00482.html. 2018-06-13 Michael Albinus Fix wording in tramp.texi * doc/misc/tramp.texi (Frequently Asked Questions): Fix wording for abbreviations. 2018-06-13 Michael Albinus * doc/misc/tramp.texi (Remote shell setup): Fix typo. 2018-06-12 Sam Steingold Finish the Bug#11728 work: hg & git * lisp/vc/vc-git.el (vc-git--pushpull): Make `extra-args' a list. Do not set `compilation-error-regexp-alist', this is done in `vc-compilation-mode'. (vc-git-error-regexp-alist): Tweak the regexp. * lisp/vc/vc-hg.el (vc-hg-error-regexp-alist): Make non-trivial. (vc-hg--pushpull): Accept `post-processing' argument. Call them after the `command'. (vc-hg-pull): Pass the `post-processing' commands that show which are to be modified by the `update', and then run `update'. 2018-06-12 Sam Steingold Fix Bug#11728: show files updated by git * lisp/vc/vc-git.el (vc-git--pushpull): Accept extra-args and set `compilation-error-regexp-alist' to `vc-git-error-regexp-alist'. (vc-git-pull): Pass "--stat" as `extra-args' to `vc-git--pushpull'. (vc-git-push): Pass "" as `extra-args' to `vc-git--pushpull'. 2018-06-12 Noam Postavsky Make 'tags' targets respect --with-silent-rules (Bug#31744) * lwlib/Makefile.in (TAGS): * lisp/Makefile.in (TAGS): * src/Makefile.in (TAGS): Use AM_V_GEN and AM_V_at. * src/Makefile.in: Note that TAGS are generated in build dir. 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. Backport: (cherry picked from commit 1feb2e221349f26ec26bc684e0cce2acecbed3ca) 2018-06-11 Eli Zaretskii * doc/lispref/files.texi (Unique File Names): Fix a typo. (Bug#31784) 2018-06-10 Noam Postavsky Fix term.el cursor movement at bottom margin (Bug#31690) * lisp/term.el (term-handle-ansi-escape) <\E[B cud>: Allow moving the cursor to the bottom margin line, rather than stopping one line before. 2018-06-10 Reuben Thomas Call enchant-lsmod correctly when Enchant is installed with a suffix * lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Cope with a version suffix on the binary name, so enchant-2 is converted to enchant-lsmod-2, not enchant-2-lsmod. (Bug#31761) (cherry picked from commit a402d9aacbecf4bf0b9afde592a3b90c71f96832) 2018-06-09 Eli Zaretskii Enlarge DUMPED_HEAP_SIZE for 64-bit Windows builds * src/w32heap.c (DUMPED_HEAP_SIZE): Bump to 23MB. Reported by Andy Moreton . 2018-06-09 Eli Zaretskii Update Unicode data files to version 11.0.0 of Unicode * admin/unidata/UnicodeData.txt: * admin/unidata/SpecialCasing.txt: * admin/unidata/NormalizationTest.txt: * admin/unidata/copyright.html: * admin/unidata/BidiMirroring.txt: * admin/unidata/BidiBrackets.txt: Import from Unicode 11.0. * admin/notes/unicode: Update the URL for OTF script tags. * lisp/international/mule-cmds.el (ucs-names): Update unused ranges. * lisp/international/fontset.el (script-representative-chars): Add hanifi-rohingya, old-sogdian, sogdian, dogra, gunjala-gondi, makasar, and medefaidrin. (otf-script-alist): Add old-hungarian. * lisp/international/characters.el (tbl): Add syntax entries for Supplemental Mathematical Operators, Miscellaneous Symbols and Arrows, and Supplemental Punctuation. Update the list of wide characters. * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-tests--failing-lines-part2): Update to match admin/unidata/NormalizationTest.txt. * doc/lispref/nonascii.texi (Character Properties): Update the reference to the Unicode Standard. * doc/misc/efaq.texi (New in Emacs 26): * etc/NEWS: Mention compatibility with Unicode 11.0. 2018-06-09 Eli Zaretskii * etc/NEWS: Belatedly call out vc-hg changes in v26.1. (Bug#31759) 2018-06-09 Eli Zaretskii Clarify the documentation of 'dired-recursive-deletes' * doc/emacs/dired.texi (Dired Deletion): Clarify text regarding recursive deletion of non-empty directories. (Bug#31529) 2018-06-08 Eli Zaretskii Clarify doc string of 'update-glyphless-char-display' * lisp/international/characters.el (update-glyphless-char-display): Doc fix. (Bug#31730) 2018-06-08 Eli Zaretskii Clarify subtle issues with 'eq' in byte-compiled code * doc/lispref/objects.texi (Equality Predicates): Explain why byte-compiled code might compare literal objects with identical contents as 'eq'. (Bug#31688) 2018-06-07 Gemini Lasswell Make cl-print respect print-quoted (bug#31649) * lisp/emacs-lisp/cl-print.el (cl-print-object) : Observe print-quoted when printing quote and its relatives. Add printing of 'function' as #'. 2018-06-07 Martin Rudalics Fix unexpected jumps of window-point in 'set-window-configuration' (Bug#31695) * src/window.c (Fset_window_configuration): Prevent that the fix for Bug#12208 affects restoration of window points when using separate minibuffer frames (Bug#31695). 2018-06-06 Nicolas Petton * etc/emacs.appdata.xml: Update Emacs screenshot. 2018-06-06 Eli Zaretskii Fix cursor movement by 'next-logical-line' after 'next-line' * src/indent.c (Fvertical_motion): Adjust TO_X when line-numbers are being displayed. Remove unneeded "correction" of TO_X at the goal line. * lisp/simple.el (last--line-number-width): Remove unneeded variable. (line-move-visual): Account for line-number display width by adjusting the pixel X coordinate that gets converted into canonical columns passed to vertical-motion, instead of adjusting temporary-goal-column (which then affects next commands, including next-logical-line). (Bug#31723) 2018-06-05 Allen Li Fix prompt in bookmark.el (Bug#24726) * lisp/bookmark.el (bookmark-set-internal): Conform to the standard default prompt format (per `minibuffer-electric-default-mode') which does not use a colon. 2018-06-05 Basil L. Contovounesios Improve documentation of 'empty' whitespace-style * doc/emacs/display.texi (Useless Whitespace): Clarify that the 'empty' whitespace-style option highlights empty lines only at BOB/EOB, as per the docstring of whitespace-style. (bug#31713) 2018-06-05 Paul Eggert Port FC_COLOR change to older fontconfig Problem reported by John ff in: https://lists.gnu.org/r/emacs-devel/2018-04/msg00058.html * src/ftfont.c (ftfont_spec_pattern) [!FC_COLOR]: Don’t use FC_COLOR on older fontconfigs that don’t have it. 2018-06-05 Robert Pluim Ignore color fonts when using Xft * src/font.c (syms_of_font): New configuration variable xft-ignore-color-fonts, default t. * src/ftfont.c (ftfont_spec_pattern): Tell fontconfig to ignore color fonts if xft-ignore-color-fonts is t. (Bug#30874, Bug#30045) * etc/NEWS: Document xft-ignore-color-fonts. 2018-06-04 Noam Postavsky Fix comint-get-old-input-default for output field case (Bug#25028) * lisp/comint.el (comint-get-old-input-default): Don't return whole field when point was on an output field. 2018-06-04 Eli Zaretskii Prevent infloop in 'delete-trailing-whitespace' * lisp/simple.el (delete-trailing-whitespace): Avoid inflooping when some region of trailing whitespace is unmodifiable. (Bug#31557) 2018-06-04 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. (cherry picked from commit 0f48d18fd2a30f29cc3592a835d2a2254c9b0afb) 2018-06-03 Phil Sainty Fix remote-host directory tracking for shells in `term' buffers * lisp/term.el (term-handle-ansi-terminal-messages): Use an explicit tramp method when constructing the tramp path for a non-local host, as this is now mandatory. "-" is a pseudo-method for the user's `tramp-default-method'. (Bug#31355) Specify the remote username explicitly in all cases, as `tramp-default-user' and `tramp-default-user-alist' could cause the previous logic to fail. Minor related improvements to the commentary. 2018-06-03 Eli Zaretskii Update doc string of 'rx' * lisp/emacs-lisp/rx.el (rx): Update the description of some character classes. 2018-06-03 Stefan Monnier Fix bug#30846, along with misc cleanups found along the way * test/src/data-tests.el (data-tests-kill-all-local-variables): New test. * src/buffer.c (swap_out_buffer_local_variables): Remove. Fuse the body of its loop into that of reset_buffer_local_variables. (Fkill_buffer, Fkill_all_local_variables): Don't call it any more. (reset_buffer_local_variables): Make sure the buffer's local binding is swapped out before removing it from the alist (bug#30846). Call watchers before actually killing the var. * src/data.c (Fmake_local_variable): Simplify. Use swap_in_global_binding to swap out any local binding, instead of a mix of find_symbol_value followed by messing with where&found. Don't call swap_in_symval_forwarding since the currently swapped binding is never one we've modified. (Fkill_local_variable): Use swap_in_global_binding rather than messing with where&found to try and trick find_symbol_value into doing the same. * src/alloc.c (mark_localized_symbol): 'where' can't be a frame any more. (cherry picked from commit 3ddff080341580eb6fc18d907181e9cc2301f62d) 2018-06-03 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. (cherry picked from commit 92a8230e49a65be48442ee95cf50c90514e48f99) 2018-06-03 Noam Postavsky * lisp/epa.el (epa-decrypt-file): Apply epa-pinentry-mode (Bug#30363). (cherry picked from commit 217202c084232f36d4fa0fead0f3aca21396d074) 2018-06-03 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. (cherry picked from commit b8aa7ecf54c9b164a59f1b0e9f9fe90531dadd20) 2018-06-03 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. (cherry picked from commit a3a9d5434d56f8736cc47e379a1d011d4c779b7c) 2018-06-03 Paul Eggert Centralize Bug#30931 fix * src/marker.c (detach_marker): New function. * src/editfns.c (save_restriction_restore): * src/insdel.c (signal_before_change): Use it. (cherry picked from commit 6f66a43d7ad6cada2b7dbb6d07efe36be1dc7ecb) 2018-06-03 Noam Postavsky Fix another case of freed markers in the undo-list (Bug#30931) * src/alloc.c (free_marker): Remove. * src/editfns.c (save_restriction_restore): * src/insdel.c (signal_before_change): Detach the markers from the buffer when we're done with them instead of calling free_marker on them. * test/src/editfns-tests.el (delete-region-undo-markers-1) (delete-region-undo-markers-2): New tests. (cherry picked from commit 96b8747d5c5d747af13fd84d8fe0308ef2a0ea7a) 2018-06-03 Paul Eggert Fix CHECK_ALLOCATED_AND_LIVE abort during GC * src/editfns.c (save_restriction_restore): Wait for the GC to free the temporary markers (Bug#30931). (cherry picked from commit 670f2ffae718046c0fb37313965a51c040ed096f) 2018-06-03 Noam Postavsky Don't wait for visible frames to become visible For discussion, see thread starting at https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00807.html. * src/xterm.c (x_make_frame_visible): Check FRAME_VISIBLE_P before calling x_wait_for_event. (cherry picked from commits 2a192e21cf3b04b7f830b4971c1508c611e13a3c and 00c1f771f2a51ffa675ec5a07ea330f2605cd302) 2018-06-03 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 (query-replace-undo-bug31538): New test. Backport: (cherry picked from commits ea133e04f49afa7928e49a3ac4a85b47f6f13f01 and 7dcfdf5b14325ae7996f272f14c72810d7c84944) 2018-06-03 Tino Calancha Backport: 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. (cherry picked from commit bab73230d1be1fe394b7269c1365ef6fb1a5d9b3) 2018-06-03 Tino Calancha Backport: Preserve case in query-replace undo If the user query and replaces 'foo' with 'BAR', then undo must comeback to 'foo', not to 'FOO' (Bug#31073). * lisp/replace.el (perform-replace): Bind nocasify to non-nil value during undo/undo-all actions. * test/lisp/replace-tests.el (query-replace-undo-bug31073): Add test. (cherry picked from commit 32dc0cb1b5ae895d237c7118ccaeb084715934fd) 2018-06-02 Alan Third Set accessibility subroles for child frame (bug#31324) * src/nsterm.m (x_set_parent_frame): Set subrole depending on whether frame is a child or not. 2018-06-02 Alan Third Fix redefinition of child frames on NS * src/nsterm.m (x_set_parent_frame): If the NSWindow has an existing parent frame, remove it. 2018-06-02 Eli Zaretskii Improve ELisp documentation of 'clone-indirect-buffer' * doc/lispref/buffers.texi (Indirect Buffers): Be more explicit about the value of DISPLAY-FLAG in interactive usage. (Bug#31648) 2018-06-02 Eli Zaretskii Improve documentation of 'inhibit-message' * src/xdisp.c (syms_of_xdisp) : Warn against setting it non-nil globally. (Bug#31627) 2018-06-02 Eli Zaretskii Improve documentation of comment styles * doc/lispref/syntax.texi (Syntax Flags): Define the "a" style. (Bug#31624) 2018-06-02 Eli Zaretskii Documentation improvements in newcomment.el * lisp/newcomment.el (uncomment-region) (uncomment-region-default): Doc fixes. (Bug#31615) 2018-06-02 Eli Zaretskii Imp[rove documentation of 'with-silent-modifications' * doc/lispref/buffers.texi (Buffer Modification): Document 'with-silent-modifications'. (Bug#31613) * doc/lispref/text.texi (Changing Properties): Add a cross-reference to "Buffer Modification". Improve wording. 2018-06-02 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. (cherry picked from commit 3aab8626ba5080bb04d0fdae52d99c850a842a52) 2018-06-02 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. (cherry picked from commit 91e582a31ada28fab5ae55bdbf959a9d30796587) 2018-06-02 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) (cherry picked from commit 2d0eff42b8f1122e00f948759ed01a3be1a8c3fc) 2018-06-02 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) (cherry picked from commit e2879c1f837059335af89022b2a9ac9bc861e96d) 2018-06-02 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. (cherry picked from commit bbe2cadc544e63e9378350621887f8fb9bbcc236) 2018-06-02 Eli Zaretskii Fix C-p and C-n when wrap-prefix is too wide * src/xdisp.c (move_it_in_display_line_to): Avoid looping in previous/next-line when wrap-prefix is set to a too-wide stretch of whitespace. (Bug#30432) (cherry picked from commit 842b3d7412eaed6b2c9f90c3361abb4932ec0b1d) 2018-06-02 Eli Zaretskii Avoid redisplay problems with too wide wrap-prefix * src/xdisp.c (display_line): Avoid looping in redisplay when wrap-prefix is set to a too-wide stretch of whitespace. (Bug#30432) (cherry picked from commit 2a1fe08307402d6217d073f8ab7737750d253dd4) 2018-06-02 Eli Zaretskii Fix 'posn-at-point' when line numbers are displayed * src/xdisp.c (pos_visible_p): For the leftmost glyph, adjust the X coordinate due to line-number display. (Bug#30834) (cherry picked from commit 4a20174d7949028f66b18a92a75d6b74194242a8) 2018-06-02 Eli Zaretskii Another followup to fixing 'window-text-pixel-width' * src/xdisp.c (Fwindow_text_pixel_size): Adjust the return value when we stop one buffer position short of TO. (Bug#30746) (cherry picked from commit 33cba5405c724566673cf023513bfb1faa963bea) 2018-06-02 Eli Zaretskii Fix mouse-set-point when line numbers are displayed * src/xdisp.c (move_it_to): Initialize the line_number_produced_p flag before iterating on a new line. (Bug#30818) (cherry picked from commit 5c585b8b994aad4e6844f8eed80bdfbb396e91bf) 2018-06-02 Eli Zaretskii * src/xdisp.c (Fwindow_text_pixel_size): Fix last change. (cherry picked from commit 06911714ef66ea81380b1eda75a9f7cfbc9e0b65) 2018-06-02 Eli Zaretskii Fix 'window-text-pixel-size' when display properties are around * src/xdisp.c (Fwindow_text_pixel_size): Correct the result when there's a display property at the TO position, and the call to move_it_to overshoots. (Bug#30746) (cherry picked from commit 50e2c0fb5180a757d8d533518f68837ffe5909be) 2018-06-02 Eli Zaretskii Fix display of TABs in hscrolled windows with line numbers * src/dispextern.h (struct it): New members tab_offset and line_number_produced_p. * src/xdisp.c (display_line): Don't set row->x to a negative value if line numbers are being displayed. (Bug#30582) Reset the line_number_produced_p flag before laying out the glyph row. (x_produce_glyphs): Use the line_number_produced_p flag to decide whether to offset the X coordinate due to line-number display. Use the tab_offset member to restore the original TAB width for alignment purposes. (move_it_in_display_line_to): Don't produce line numbers when moving in hscrolled window to the left of first_visible_x. (maybe_produce_line_number): Set the line_number_produced_p flag. (Bug#30584) * src/term.c (produce_glyphs): Correct TAB width only when line_number_produced_p flag is set. (cherry picked from commit 1ac190553886ff20817d3dd218464e2fc6f9e42a) 2018-06-02 Matthias Dahl Fix wait_reading_process_output wait_proc hang * src/process.c (read_process_output): Track bytes read from a process. (wait_reading_process_output): If called recursively through timers and/or process filters via accept-process-output, it is possible that the output of wait_proc has already been read by one of those recursive calls, leaving the original call hanging forever if no further output arrives through that fd and no timeout has been set. Fix that by using the process read accounting to keep track of how many bytes have been read and use that as a condition to break out of the infinite loop and return to the caller as well as to calculate the proper return value (if a wait_proc is given that is). * src/process.h (struct Lisp_Process): Add nbytes_read to track bytes read from a process. (cherry picked from commit 4ba32858d61eee16f17b51aca01c15211a0912f8) 2018-06-02 Eli Zaretskii Fix posn-at-point in Flycheck buffers * src/dispnew.c (buffer_posn_from_coords): Improve commentary. * src/xdisp.c (move_it_in_display_line_to): Don't exit the loop under truncate-lines if the glyph at TO_CHARPOS was not yet produced. This avoids bailing out too early when we are at TO_CHARPOS, but didn't yet produce glyphs for that buffer position, because the last call to PRODUCE_GLYPHS at this position was for an object other than the buffer. For further details, see http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00537.html. (cherry picked from commit c0154ac7c3423f68d8f3a2e85a756c9759219039) 2018-06-02 Martin Rudalics * etc/PROBLEMS: Document stickyness problem with FVWM (Bug#31650) 2018-06-01 Eli Zaretskii Update Emacs Lisp Intro to match current behavior * doc/lispintro/emacs-lisp-intro.texi (Wrong Type of Argument) (debug, debug-on-entry, Void Function, Void Variable): Update the *Backtrace* buffer display to current Emacs. (Bug#31654) 2018-06-01 Robert Pluim Fix previous commit * doc/emacs/files.texi (Interlocking): Two spaces at end of sentence 2018-06-01 Ville Skyttä (tiny change) Fix typos in several manuals (Bug#31610) 2018-06-01 Robert Pluim Add detailed documentation about lock files * doc/emacs/files.texi (Interlocking): Point user at detailed file locking description in lisp reference manual. Add index entry for '.#' to improve disoverability of information about locking. * doc/lispref/files.texi (File Locks): Describe in detail what the form of the lock file is. Add index entry for '.#' to improve disoverability of information about locking. * src/filelock.c (create-lockfiles): Add cross reference to file locking in user manual and to 'lock-buffer'. Add string '.#' to help users find the doc string. 2018-06-01 Eli Zaretskii Add commentary for subtle aspect of frame.el * lisp/frame.el: Explain why we use symbol-function when adding watchers for certain variables that need to trigger redisplay. 2018-06-01 Eli Zaretskii Improve documentation of 'directory-files-and-attributes' * doc/lispref/files.texi (Contents of Directories): Fix inaccurate description of the return value of directory-files-and-attributes. * src/dired.c (Fdirectory_files_and_attributes): Describe the function's value in more detail. 2018-05-30 Katsumi Yamaoka * lisp/gnus/message.el (message-remove-header): Don't remove things not looking like header (bug#31651). 2018-05-30 Eli Zaretskii Adapt hexl-mode to native line-number display * lisp/hexl.el (hexl-mode-ruler): When display-line-numbers is in effect, adjust offsets and columns to account for the line-number display. (Bug#31595) 2018-05-30 Michael Albinus Fix example in Tramp manual * doc/misc/tramp.texi (Frequently Asked Questions): Fix wording for the zsh example. 2018-05-29 Robert Pluim Handle case where Xft is found but not XRender * configure.ac (XFT_LIBS): Ensure that HAVE_XFT is no if XRender is not found. (Bug#31634) 2018-05-29 Michael Albinus * doc/misc/tramp.texi (Frequently Asked Questions): Adapt zsh example. 2018-05-29 Damien Cassou Improve read-multiple-choice docstring (Bug#31628) * lisp/emacs-lisp/rmc.el (read-multiple-choice): Improve docstring. 2018-05-29 Michael Albinus * doc/misc/tramp.texi (All): Use @code instead of @option for user options. 2018-05-29 Michael Albinus Fix Bug#31605 * doc/misc/tramp.texi (All): Add @vindex entries for environment variables. (Remote shell setup): New items `tramp-terminal-type' and "Determining a Tramp session". (Frequently Asked Questions): Adapt zsh example. (Bug#31605) 2018-05-29 Michael Albinus Sync with Tramp 2.3.4-pre * doc/misc/trampver.texi: Change version to "2.3.4-pre * 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-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-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-accept-process-output): * lisp/net/tramp-adb.el (tramp-adb-handle-start-file-process): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band) (tramp-sh-handle-start-file-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): Suppress timers. * lisp/net/tramp-adb.el (tramp-adb-handle-write-region): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region): * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Write proper message. * lisp/net/tramp-cmds.el (tramp-change-syntax): Use `customize-set-variable'. * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Ensure proper EOL handling for Darwin. (tramp-find-inline-compress): Improve command quoting for w32. Reported by Chris Zheng . (tramp-open-connection-setup-interactive-shell): Wrap both echo calls in parentheses, in order to avoid double prompt. * lisp/net/tramp-smb.el (tramp-smb-errors): Add "NT_STATUS_RESOURCE_NAME_NOT_FOUND". * lisp/net/tramp.el (tramp-default-user-alist) (tramp-default-host-alist): Fix docstring. (tramp-dissect-file-name): Adapt docstring. (Bug#30904) (tramp-make-tramp-file-name): Check, that method is not empty. (Bug#30038) (tramp-message-show-message): Change default. * lisp/net/trampver.el: Change version to "2.3.4-pre". * test/lisp/net/tramp-tests.el (ert-x): Require it. (tramp-test10-write-region): Extend test. (tramp--test-emacs27-p, tramp--test-windows-nt): New defuns. (tramp-test11-copy-file, tramp-test12-rename-file) (tramp-test21-file-links, tramp-test24-file-acl) (tramp-test25-file-selinux, tramp--test-check-files): Use them. (tramp-test21-file-links): Do not call `make-symbolic-link' on w32. Fix file name quoting test. (tramp-test32-environment-variables-and-port-numbers): Adapt check for systems which do not support "echo -n". (Bug#29712) (tramp-test36-find-backup-file-name): Call also `convert-standard-filename' due to w32. (tramp-test41-asynchronous-requests): Use $REMOTE_PARALLEL_PROCESSES. Flush cache prior file operations. (tramp-test42-auto-load, tramp-test42-delay-load) (tramp-test42-recursive-load, tramp-test42-remote-load-path): Quote command due to w32. 2018-05-28 Eli Zaretskii Bump Emacs version to 26.1.50 * msdos/sed2v2.inp: * nt/README.W32: * configure.ac: * README: Bump Emacs version to 26.1.50. 2018-05-27 Thien-Thi Nguyen Mention pcase as a fifth conditional form * doc/lispref/control.texi (Conditionals): ...here, in first para, w/ xref to "Pattern-Matching Conditional". 2018-05-27 Thien-Thi Nguyen Overhaul pcase documentation Suggested by Drew Adams (Bug#31311). * doc/lispref/control.texi (Control Structures): Add "Pattern-Matching Conditional" to menu, before "Iteration". (Conditionals): Delete menu. (Pattern matching case statement): Delete node/subsection, by actually moving, renaming, and overhauling it to... (Pattern-Matching Conditional): ...new node/section. (pcase Macro): New node/subsection. (Extending pcase): Likewise. (Backquote Patterns): Likewise. * doc/lispref/elisp.texi (Top) In @detailmenu, add "Pattern-Matching Conditional" under "Control Structures" section and delete "Conditionals" section. * lisp/emacs-lisp/pcase.el (pcase): Rewrite docstring. (pcase-defmacro \` (qpat) ...): Likewise. 2018-05-27 Thien-Thi Nguyen Use EXPVAL in docstrings of patterns defined using pcase-defmacro Suggested by Drew Adams (Bug#31311). * lisp/emacs-lisp/cl-macs.el (cl-struct): ...here. * lisp/emacs-lisp/eieio.el (eieio): Likewise. * lisp/emacs-lisp/radix-tree.el (radix-tree-leaf): Likewise. * lisp/emacs-lisp/rx.el (rx): Likewise. 2018-05-27 Thien-Thi Nguyen Introduce EXPVAL for pcase, pcase-defmacro docstrings Suggested by Drew Adams (Bug#31311). * lisp/emacs-lisp/pcase.el (pcase): Use EXPVAL in docstring to stand for the result of evaluating EXP. (pcase-defmacro): Add (fn ...) form in docstring that includes [DOC], and the EXPVAL convention. 2018-05-27 Thien-Thi Nguyen Ensure pcase doc shows `QPAT first among extensions * lisp/emacs-lisp/pcase.el (pcase--make-docstring): Split extensions display into two phases, collection and display, separated by a reordering step that ensures backquote is the first. 2018-05-25 Nicolas Petton * etc/HISTORY: Update for Emacs 26.1 release. * etc/AUTHORS: Update. 2018-05-25 Noam Postavsky Note caveat for backward regexp searching in docstring (Bug#31584) * src/search.c (Fre_search_backward): Emphasize that backwards searches may give shorter than expected matches. * doc/lispref/searching.texi (Regexp Search): Add an anchor for re-search-backward to reference. 2018-05-25 Eli Zaretskii Update backtrace in Emacs Lisp Intro * doc/lispintro/emacs-lisp-intro.texi (Making Errors): Update the backtrace to match Emacs 26. (Bug#31589) 2018-05-24 Roland Winkler Move window-point in bibtex-search-entry * lisp/textmodes/bibtex.el (bibtex-search-entry): Move window-point to record found. 2018-05-24 Eli Zaretskii More fixes of Intro to Emacs Lisp * doc/lispintro/emacs-lisp-intro.texi (Finding More): Tell the reader how to invoke 'M-.' without a tags table. Add a cross-reference to the Emacs manual for when a tags table does need to be created. (append save-excursion): Rephrase a confusing sentence. (Bug#31578) 2018-05-24 Eli Zaretskii Add a footnote to Emacs Lisp Intro * doc/lispintro/emacs-lisp-intro.texi (Run a Program): Describe the detailed output of integer value evaluation in a footnote, to prevent confusion. (Bug#31579) 2018-05-24 Eli Zaretskii * lisp/help.el (with-help-window): Doc fix. (Bug#31574) 2018-05-23 Eli Zaretskii Fix some cross-references in emacs-lisp-intro.texi * doc/lispintro/emacs-lisp-intro.texi (List Processing) (Determining the Element, graph-body-print): Fix cross-references to subsections that don't exist in the printed version of the manual. (Bug#31567) 2018-05-23 Eli Zaretskii Minor copyedits in Emacs manual in macos.texi * doc/emacs/macos.texi (Mac / GNUstep Basics) (Mac / GNUstep Events): Fix markup and capitalization. (Bug#31568) 2018-05-23 Noam Postavsky Clarify when to use advice-add vs add-function * lisp/emacs-lisp/nadvice.el (add-function): Note in docstring that advice-add should be used for named functions. 2018-05-22 Eli Zaretskii Minor formatting tweak in the Emacs manual * doc/emacs/custom.texi (Directory Variables): Don't have 2 footnotes back to back, it looks bad in HTML. (Bug#31555) 2018-05-22 Eli Zaretskii Update comments in Intro to Emacs Lisp * doc/lispintro/emacs-lisp-intro.texi: Explain in the comments what are roman page numbers in Preface about. (Bug#31541) 2018-05-21 Noam Postavsky * etc/NEWS: Mention change in `edebug-prin1-to-string'. 2018-05-21 Eli Zaretskii Another attempt to fix sql.el * lisp/progmodes/sql.el (sql-product-interactive): Fix calculation of the SQL buffer name. (Bug#31446) 2018-05-21 Eli Zaretskii Update binding of 'M-.' in Intro to Emacs Lisp * doc/lispintro/emacs-lisp-intro.texi (On Reading this Text) (Finding More, Buffer Related Review, Buffer Exercises) (Find a File, Conclusion): 'M-.' is now bound to 'xref-find-definitions'. (Bug#31542) 2018-05-21 Eli Zaretskii Fix a typo in last change in sql.el * lisp/progmodes/sql.el (sql-product-interactive): Use 'null', not 'zerop'. (Bug#31446) 2018-05-20 Eli Zaretskii Fix capitalization of mail headers * doc/emacs/sending.texi (Mail Format, Mail Headers) (Mail Aliases, Header Editing): Use consistent capitalization of CC, BCC, and FCC. (Bug#31532) 2018-05-20 Eli Zaretskii Fix buffer names in sql.el * lisp/progmodes/sql.el (sql-product-interactive): Fix the way the buffer name is determined by prefix arg. (Bug#31446) 2018-05-20 Eli Zaretskii Minor fixes in the Emacs manual * doc/emacs/misc.texi (Gnus Group Buffer): Fix a typo. (Bug#31534) (Single Shell): Rephrase an unclear sentence. (Bug#31535) (Remote Host): Use @command where appropriate. (Bug#31536) 2018-05-19 Eli Zaretskii Fix a typo in rmail.texi * doc/emacs/rmail.texi (Rmail Summary Edit): Add markup to 'nil'. (Bug#31533) 2018-05-18 Paul Eggert * etc/PROBLEMS: Document Bug#31305. 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. (cherry picked from commit f4d9fd3dd45f767eca33fbf1beee40da790fa74e) 2018-05-18 Eli Zaretskii Fix a typo in describing input methods * lisp/help-mode.el (help-make-xrefs): Fix a typo. (Bug#31448) 2018-05-14 Eli Zaretskii Clarify the mode-line indicators in CC Mode * doc/emacs/programs.texi (Electric C): Explain '*' and '/' in the CC Mode mode-line. (Bug31445) 2018-05-12 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-12 Paul Eggert * doc/emacs/help.texi: Fix paren typo. 2018-05-11 Eli Zaretskii More minor changes in shell-related nodes of Emacs manual * doc/emacs/misc.texi (Interactive Shell): Clarify how the window that displays "*shell*" is selected. (Shell Prompts): Fix a typo. Reported by Jorge in emacs-manual-bugs. 2018-05-11 Eli Zaretskii Fix inaccuracies in "Shell Ring" node of Emacs manual * doc/emacs/misc.texi (Shell Ring): Don't mention 'M-s' and don't insist on Shell history commands being "jsut like" similar commands that operate on minibuffer history. Reported by Jorge in emacs-manual-bugs. 2018-05-11 Eli Zaretskii Improve documentation of kmacro commands and variables. * lisp/kmacro.el (kmacro-start-macro-or-insert-counter) (kmacro-counter, kmacro-set-format, kmacro-set-counter) (kmacro-add-counter, kmacro-counter-format) (kmacro-insert-counter): Clarify and improve the doc strings. (Bug#31243) 2018-05-11 Noam Postavsky * doc/man/emacs.1.in: Document --fg-daemon and --bg-daemon. 2018-05-08 Noam Postavsky Don't check non-X frames for z order (Bug#31373) * src/xfns.c (x_frame_list_z_order): Only use frames with `output_method' set to `output_x_window'. 2018-05-07 Alan Third Check NSWindow is actually a frame * src/nsfns.m (Fns_frame_list_z_order): Check NSWindow is an instance of EmacsView before treating it as one. 2018-05-06 Xu Chunyang Fix gud-statement for pdb * lisp/progmodes/gud.el (pdb): Fix the gud-print implementation. (Bug#31363) 2018-05-04 Eli Zaretskii Document 'custom-group' * doc/lispref/customize.texi (Group Definitions): Document the 'custom-group' property. 2018-05-04 Eli Zaretskii A minor addition to etc/DEBUG * etc/DEBUG: Add a note for macOS users who get error messages when trying to run GDB. 2018-05-04 Daniel Pittman (tiny change) Avoid errors in ispell.el when Enchant returns empty extra chars * lisp/textmodes/ispell.el (ispell--get-extra-word-characters): Handle the case of empty extra characters returned by the Enchant '-lsmod' command. (Bug#31344) 2018-05-04 Eli Zaretskii Make 'ispell-initialize-spellchecker-hook' work again * lisp/textmodes/ispell.el (ispell-base-dicts-override-alist): Defvar it to allow dynamic binding. (Bug#31341) 2018-05-04 Noam Postavsky Handle selected_window change in prepare_menu_bars (Bug#31312) * src/xdisp.c (redisplay_internal): Check selected_window after calling prepare_menu_bars, since it can call lisp hooks. 2018-05-03 Eli Zaretskii Fix report-emacs-bug via mailclient on MS-Windows * lisp/net/browse-url.el (browse-url-default-windows-browser): On MS-Windows, call url-unhex-string only for file:// URLs. (Bug#31351) 2018-05-02 Paul Eggert Port collation tests to glibc 2.27 * test/src/fns-tests.el (fns-tests-collate-strings) (fns-tests-collate-sort): Don’t make unportable assumptions about how en_US.UTF-8 collation works. These assumptions are not true on Fedora 28, which ships with glibc 2.27. 2018-05-01 Paul Eggert Port --enable-gcc-warnings to GCC 8 Backport from master. * 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-30 Paul Eggert Advise CFLAGS= operand, not in environment, when configuring Backport from master. 2018-04-28 Eli Zaretskii Update the Emacs FAQ * doc/misc/efaq.texi (Latest version of Emacs): Update versions. (New in Emacs 26): New node. * admin/release-process: Mention the FAQ update as part of the release. 2018-04-28 Eli Zaretskii * etc/DEBUG: Minor copyedits. 2018-04-26 Alan Third Clarify wording of NS drag n drop documentation * doc/emacs/macos.texi (Mac / GNUstep Events): Clarify wording of ns-drag-n-drop description. 2018-04-25 Basil L. Contovounesios Improve kill-related documentation (bug#31209) * doc/lispref/text.texi (Low-Level Kill Ring): Fix typo under current-kill. Mention interprogram-paste-function under kill-new and kill-append. * lisp/simple.el (save-interprogram-paste-before-kill, kill-new) (kill-append-merge-undo, kill-append): Touch-up docstrings. 2018-04-24 Stefan Monnier * lisp/simple.el (region-extract-function): Don't hide the 'nil' case. 2018-04-22 Karl Otness (tiny change) Fix pre- and post-command-hook errors in term.el Before this patch, after the terminal process dies the command hooks added in term-mode's char mode would produce errors. This fix removes these hooks when the process dies. * lisp/term.el (term-handle-exit): Remove pre-command-hook and post-command-hook because the process is dead. (Bug#31236) 2018-04-22 Charles A. Roelli * doc/lispref/display.texi (Glyphless Chars): Fix grammar. 2018-04-21 Alan Third Fix macOS drag n drop event documentation * doc/emacs/macos.texi (Mac / GNUstep Customization): Remove references to color panel. (Mac / GNUstep Events): Remove ns-drag-file, and add ns-drag-n-drop. 2018-04-20 Eli Zaretskii Update the documentation of 'perform-replace' * doc/lispref/searching.texi (Search and Replace): Update the documentation of 'perform-replace'. 2018-04-20 Martin Rudalics * etc/NEWS: Another fix for the last change (noted by Juri Linkov) 2018-04-19 Eli Zaretskii Fix use of @key in Texinfo manuals * doc/misc/efaq-w32.texi (Location of init file): * doc/misc/org.texi (Editing source code, Export settings) (Closing items, Drawers, Structure editing): * doc/misc/gnus.texi (Spam and Ham Processors, Terminology): * doc/misc/calc.texi (Keypad Functions Menu, Keypad Binary Menu) (Keypad Vectors Menu, Keypad Main Menu, Basic Arithmetic) (Symbolic Mode): * doc/misc/sc.texi (Electric References): * doc/misc/info.texi (Help-^L): * doc/misc/reftex.texi (Reference Styles): * doc/misc/idlwave.texi (Troubleshooting, Examining Variables) (Lesson III---User Catalog, Using the Shell): * doc/misc/eshell.texi (Bugs and ideas): * doc/misc/ada-mode.texi (Automatic Casing): * doc/misc/ediff.texi (Selective Browsing): * doc/misc/vip.texi (Customizing Constants): * doc/misc/pcl-cvs.texi (Selected files): * doc/misc/efaq.texi (Replying to the sender of a message) (Basic keys, No Meta key, Matching parentheses) (Origin of the term Emacs, Installing Texinfo documentation) (Learning how to do something, Emacs manual, Extended commands): * doc/misc/viper.texi (Rudimentary Changes): * doc/misc/tramp.texi (Frequently Asked Questions): * doc/emacs/kmacro.texi (Basic Keyboard Macro): * doc/emacs/frames.texi (Frame Commands): * doc/emacs/msdos.texi (Windows Keyboard): * doc/emacs/search.texi (Query Replace): * doc/lispintro/emacs-lisp-intro.texi (Keybindings) (Note for Novices): * doc/lispref/tips.texi (Key Binding Conventions): Fix use of @key. For the details, see http://lists.gnu.org/archive/html/emacs-devel/2018-04/msg00390.html. 2018-04-19 Eli Zaretskii Improve documentation of actual arglist * doc/lispref/functions.texi (Function Documentation): Advise against using '(fn ARGLIST)' method of advertising a calling convention when the old calling convention is deprecated. (Bug#31191) 2018-04-18 Noam Postavsky Don't assume term-current-row cache is valid (Bug#31193) * lisp/term.el (term-down): Call `term-current-row' instead of directly accessing the variable `term-current-row. Following a resize of the terminal's window, `term-current-row' is reset to nil, so it is not safe to assume it is a number. 2018-04-17 Eli Zaretskii Fix flyspell-auto-correct-previous-word broken by recent change * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Keep flyspell-auto-correct-region also when repeatedly invoking flyspell-auto-correct-previous-word. (Bug#31188) 2018-04-17 Eli Zaretskii * test/src/lread-tests.el (lread-test-bug-31186): New test. 2018-04-17 Andreas Schwab Fix undefined behaviour while looking for lexical-binding file variable (bug 31186) * src/lread.c (lisp_file_lexically_bound_p): Reset beg_end_state before reading variable or value. 2018-04-15 Eli Zaretskii Minor wording improvement in "Bookmarks" * doc/emacs/regs.texi (Bookmarks): Improve wording. Suggested by "Siraphob (Ben) Phipathananunth" . 2018-04-14 Eli Zaretskii Fix building etc/DOC in the MSDOS port * msdos/sed1v2.inp (lisp.mk): Fix escaping in Sed commands. 2018-04-14 Eli Zaretskii * lisp/select.el (gui-get-selection): Doc fix. 2018-04-13 Alan Mackenzie Complete documentation of syntax flags by adding `c' * doc/lispref/syntax.texi ("Syntax Table Internals"): Add entry for `c' as `(1 lsh 23)'. 2018-04-13 Eli Zaretskii Fix typos and minor wording issues in ELisp manual * doc/lispref/internals.texi (Writing Emacs Primitives): * doc/lispref/display.texi (Temporary Displays): Fix typos. * doc/lispref/text.texi (Filling, Changing Properties) (Transposition): Clarify and fix typos. * doc/lispref/positions.texi (Screen Lines): Improve wording. * doc/lispref/modes.texi (Minor Mode Conventions) (Font Lock Multiline): Fix typos. * doc/lispref/variables.texi (Dynamic Binding Tips): Fix a cross-reference. Fix a typo. * doc/lispref/sequences.texi (Sequence Functions): Fix typos. (Bug#31143) 2018-04-13 Eli Zaretskii Avoid segfault in processes of type 'pipe' * src/process.c (Fmake_pipe_process): Set up the decoding and encoding buffers. For the details, see http://lists.gnu.org/archive/html/emacs-devel/2018-04/msg00295.html. 2018-04-13 Robert Pluim Remove repetitions in documentation strings * lisp/bindings.el (right-word): Remove repetition (left-word): Likewise. * lisp/image-mode.el (image-mode-as-hex): Likewise. * lisp/cedet/semantic/tag-ls.el (semantic-tag-similar-p): Likewise. * lisp/textmodes/reftex-vars.el (reftex-view-crossref-extra): Likewise 2018-04-12 Eli Zaretskii * lisp/image.el (image-load-path): Doc fix. 2018-04-09 Nicolas Petton * etc/AUTHORS: Regenerate. 2018-04-09 Charles A. Roelli * lisp/files.el (kept-new-versions): Improve documentation string. 2018-04-09 Eli Zaretskii Fix a minor mistake in the ELisp manual * doc/lispref/files.texi (Reading from Files): Fix copy/paste mistake. (Bug#31107) 2018-04-06 Eli Zaretskii * lisp/files.el (find-file-literally): Doc fix. 2018-04-05 Eli Zaretskii Fix typos in doc strings * lisp/simple.el (undo-auto--boundary-timer) (undo-auto--boundary-ensure-timer): Fix typos in doc strings. 2018-04-05 Nicolas Petton Bump Emacs version to 26.1 * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version to 26.1. 2018-04-05 Stefan Monnier * lisp/emacs-lisp/inline.el: Clarify apparent typos 2018-04-04 Ted Zlatanov Allow sexp customization type in auth-sources * lisp/auth-source.el (auth-sources): Allow sexp customization type. Update the :version tag. (cherry picked from commit 447da5b0d49b7aa14fa5d6969015770fdf9b9f92) 2018-04-03 Nicolas Petton * etc/NEWS: Remove temporary markup. * etc/AUTHORS: Update. * ChangeLog.3: Update. 2018-04-03 Michael Albinus Fix Bug#31022 * lisp/cus-start.el (temporary-file-directory): Suppress file name handlers when calling `shell-command-to-string'. (Bug#31022) 2018-04-03 Paul Eggert Update "Calendrical Calculations" cites * lisp/calendar/calendar.el: Update citations to the book "Calendrical Calculations" and its predecessors. 2018-04-02 Noam Postavsky Fix term.el rendering following a window resize (Bug#30544) * lisp/term.el (term-reset-size): Reset cached row and column values before changing point. 2018-04-02 Philipp Stephani * lisp/files.el (auto-save-visited-mode): Don't prompt for filenames. 2018-04-01 Philipp Stephani Quote a few backticks in docstrings. * lisp/emacs-lisp/macroexp.el (macroexp-progn, macroexp-let*) (macroexp-if): Quote backtick in docstrings. 2018-04-01 Eli Zaretskii Minor copyedits of completion-at-point-functions documentation * lisp/minibuffer.el (completion-at-point-functions): * doc/lispref/minibuf.texi (Completion in Buffers): Fix wording and filling. (cherry picked from commit a8ddd05d7d32946b892b9faaba6c9736ed2ad847) 2018-04-01 Stefan Monnier (completion-at-point-functions): Improve doc (cherry picked from commit b56c56f203f8b066dd71e6ae6a254121b3ac3f08) 2018-04-01 Eli Zaretskii * lisp/net/shr.el (shr-browse-url): Doc fix. (Bug#30957) 2018-03-31 Hong Xu Mention `key-description' as inverse of `kbd' (Bug#30942) * lisp/subr.el (kbd): Add `key-description' as inverse of `kbd' in the doc. 2018-03-31 Noam Postavsky Document return value of pcase (Bug#30425) * doc/lispref/control.texi (Pattern matching case statement): * lisp/emacs-lisp/pcase.el (pcase): State that pcase returns nil if no patterns match. (pcase-exhaustive): State that an error is signaled if no patterns match. 2018-03-31 Paul Eggert * doc/emacs/macos.texi: Tweak grammar and capitalization. 2018-03-31 Richard Stallman Distinguish free from non-free OSes 2018-03-28 Glenn Morris * doc/emacs/misc.texi (Amusements): Avoid non-printing character. 2018-03-28 Glenn Morris Fix xrefs in pdf Emacs manual * doc/emacs/fortran-xtra.texi (ForIndent Cont, ForIndent Num) (Fortran Columns): * doc/emacs/picture-xtra.texi (Rectangles in Picture): Fix recent changes that neglected the splitting of the pdf manuals. 2018-03-28 Michael Albinus * doc/misc/org.texi (Installation): Fix clone commands. 2018-03-27 Rasmus Update Org to v9.1.9 Please note this is a bugfix release. See etc/ORG-NEWS for details. 2018-03-27 Michael Heerdegen De-obsolete `if-let' and `when-let' For the following release it is planned to make `if-let*' and `when-let*' aliases for `if-let' and `when-let'. For now we revert declaring `if-let' and `when-let' obsolete and tweak the docstrings. * lisp/emacs-lisp/subr-x.el (if-let*, when-let*): Make docstrings refer to those of `if-let' and `when-let'. (if-let, when-let): De-obsolete. Rewrite documentation. 2018-03-26 Glenn Morris * lisp/htmlfontify.el (hfy-begin-span-handler): Doc fix. 2018-03-26 Eli Zaretskii * doc/lispref/functions.texi (Defining Functions): Improve indexing. 2018-03-25 Aaron Jensen Fix crash after frame is freed on macOS (bug#30800) * src/nsterm.m (x_free_frame_resources): Clear represented_frame. (bug#30800) 2018-03-25 Michael Albinus More manual editing * doc/emacs/basic.texi: * doc/emacs/calendar.texi: * doc/emacs/display.texi: * doc/emacs/mini.texi: * doc/emacs/misc.texi: * doc/emacs/picture-xtra.texi: * doc/misc/info.texi: Prefer and over and . Add missing @kindex entries. * doc/emacs/custom.texi (Function Keys): Fix and add missing key symbols. 2018-03-25 Michael Albinus Minor manual changes changes * doc/emacs/misc.texi (FFAP): Complete commands. (Amusements): Add some @cindex entries. Add "M-x butterfly". 2018-03-24 Glenn Morris * lisp/calculator.el (calculator-paste-decimals): Add version. 2018-03-23 Eli Zaretskii More proofreading of the Emacs manual * doc/emacs/trouble.texi (DEL Does Not Delete): Improve wording. (Screen Garbled): Mention the command name. (Bug Criteria): Mention that problems in packages should first be reported to the respective maintainers. (Checklist): Fix wording. (Contributing, Copyright Assignment): Minor copyedits. * doc/emacs/misc.texi (Amusements): Remove Landmark. * doc/emacs/picture-xtra.texi (Tabs in Picture): Improve wording. (Rectangles in Picture): Add a cross-reference to "Registers". * doc/emacs/misc.texi (Gnus Group Buffer, Gnus Summary Buffer): Mention command names in parentheses. (Gnus Summary Buffer): Document "M-r". (Network Security): Document that current NSM works with TLS encryption. Fix markup. (Document View): Improve wording and fix a typo. (DocView Conversion): Rephrase description of doc-view-cache-directory. (Single Shell): Mention variables that control when shell output appears in the echo area. (Shell Mode): Improve wording. (Shell Prompts): Fix a typo. (Shell Ring, Term Mode): Mention command names. (History References): Add a cross-reference to "Rebinding". (Remote Host): Mention SSH. (TCP Emacs server): Improve wording. (emacsclient Options): Minor improvements. (PostScript): Fix wording. (PostScript Variables): Mention that ps-font-size could be a cons. (Sorting): Minor improvements. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org 2018-03-23 Noam Postavsky * src/lisp.h (struct Lisp_Buffer_Local_Value): Update commentary. * doc/emacs/trouble.texi: Fix location of `emacs-version' index. 2018-03-23 Noam Postavsky Explain more about (defvar foo) form (Bug#18059) * doc/lispref/variables.texi (Defining Variables) (Using Lexical Binding): * doc/lispref/compile.texi (Compiler Errors): Emphasize that omitting VALUE for `defvar' marks the variable special only locally. * doc/lispref/variables.texi (Using Lexical Binding): Add example of using `defvar' without VALUE. 2018-03-22 Charles A. Roelli * doc/lispref/buffers.texi (Buffer List): Fix grammar. * doc/lispref/anti.texi (Antinews): Fix grammar. 2018-03-22 Glenn Morris * lisp/org/ob-lisp.el (org-babel-lisp-eval-fn): Tweak type. Avoids type mismatch when relevant library is not present/loaded. 2018-03-22 Glenn Morris sql.el defcustom fixes * lisp/progmodes/sql.el (sql-login-params): Update. Avoids type mismatch with postgres and sqlite login params. (sql-postgres-login-params): Bump version. 2018-03-22 Eli Zaretskii Document DEFUN attributes * doc/lispref/internals.texi (Writing Emacs Primitives): Document specification of function attributes in DEFUN. 2018-03-22 Nicolas Petton * etc/NEWS: Add an entry for auth-source-pass. 2018-03-22 Eli Zaretskii Fix the MSDOS build * msdos/sed2v2.inp (HAVE_SBRK): Define to 1. 2018-03-22 Eric Abrahamsen Improve warning and error messages * lisp/emacs-lisp/eieio-base.el (eieio-persistent-read, (eieio-persistent-validate/fix-slot-value): Indicate exactly what went wrong. 2018-03-22 Eric Abrahamsen Adjust eieio persistence tests for expected failure * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el (eieio-test-persist-hash-and-vector, eieio-test-persist-interior-lists): Persistence does not currently handle deeply-nested objects. Expect current failures, and mark for future fixes. 2018-03-22 Eric Abrahamsen Let eieio-persistent-read read what object-write has written * lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value): `object-write' may quote lists inside hash tables and vectors, so unquote those lists here. This patch allows the eieio-persistent write/restore process to perform a clean round trip. It only handles a very specific and limited range of object structures, but at least the write and read procedures match. 2018-03-22 Eric Abrahamsen Handle possible classtype values in eieio-persistent-read * lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value): The function `eieio-persistent-slot-type-is-class-p' could return either a single class, or a list of classes. 2018-03-22 Pierre Téchoueyres Add new tests for eieio persistence * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el: (hash-equal): New comparison test for hash-tables. (persist-test-save-and-compare): Use test for hash-tables. (eieio-test-persist-hash-and-vector, eieio-test-persist-interior-lists): New tests. 2018-03-22 Glenn Morris * lisp/gnus/gnus-cloud.el (gnus-cloud-synced-files): Fix doc & type. * lisp/ibuf-ext.el (ibuffer-never-search-content-mode): Fix type. 2018-03-21 Glenn Morris * doc/lispref/windows.texi (Selecting Windows): Fix a typo. 2018-03-21 Charles A. Roelli * doc/lispref/internals.texi (Writing Emacs Primitives): Fix grammar. 2018-03-21 Alan Mackenzie Firm up documentation of generalized variables * doc/lispref/variables.texi (Generalized Variables) (Setting Generalized Variables): Define a generalized variable as something setf can write to. Remove the insinuation that hackers have poor memories. State explicitly that the list of GVs given is complete. Remove the suggestion that `setf' has superseded, or is in the process of superseding, `setq'. Make minor corrections to the English. 2018-03-21 Eli Zaretskii Improve documentation of Auto-Revert mode * doc/emacs/files.texi (Reverting): Mention that Aut-Revert applies to Dired buffers as well. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-03-21 Eli Zaretskii Improvements in dired.texi * doc/emacs/dired.texi (Dired): Mention that Dired works with remote directories. (Dired Enter): ls-lisp is used on some remote systems as well. (Dired Navigation): Mention and index the command names. (Dired Deletion): Document the 'always' value of dired-recursive-deletes. Mention the alternative deletion method. (Marks vs Flags): Fix spelling of Auto-Revert mode. Document what marking does on a subdirectory header line. (Operating on Files): Document that 'Z' uses gzip or compress. (Comparison in Dired): Mention ediff-files. (Misc Dired Features): Fix a typo. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-03-21 Noam Postavsky Revert "Support all perl variable declarators and prefixes" It highlights normal variable names in perl programs (Bug#30812). * lisp/progmodes/perl-mode.el (perl-imenu-generic-expression) (perl-font-lock-keywords-2): Restore values prior to Bug#27613 fix. Don't merge to master, we will fix Bug#27613 properly there (it's too close to release to do that on emacs-26). 2018-03-20 Paul Eggert Port to 32-bit sparc64 Backport from master. Problem reported by Ulrich Mueller; fix suggested by Eli Zaretskii and Andreas Schwab (Bug#30855). * src/alloc.c (mark_memory): Call mark_maybe_object only on pointers that are properly aligned for Lisp_Object. 2018-03-20 Robert Pluim Correct Info link markup * lisp/gnus/gnus-agent.el (gnus-agent-auto-agentize-methods): Correct markup for Info link. * src/minibuf.c (Fcompleting_read): Likewise. 2018-03-20 Nick Helm Improve documentation of 'with-help-window' * doc/lispref/help.texi (Help Functions): Change variable name to 'buffer-or-name'. * lisp/help.el (with-help-window): Change variable name to 'buffer-or-name' and rewrite the doc string, adding reference to 'help-window-setup'. (Bug#30792) 2018-03-20 Eli Zaretskii Minor improvements in building.texi * doc/emacs/building.texi (Compilation Shell): Mention that this section is for local compilation buffers. (Compilation, Compilation Mode): Mention that 'g' is bound to 'recompile' in compilation buffers. (Grep Searching): Add a cross-reference to "Compilation Mode". Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-03-20 Alex Branham * lisp/textmodes/bibtex.el (bibtex-mark-entry): activate mark 2018-03-19 Eli Zaretskii * doc/emacs/building.texi (Starting GUD): Mention 'guiler'. 2018-03-19 Eli Zaretskii Yet more proofreading of the Emacs manual * doc/emacs/building.texi (Compilation, Grep Searching) (Debuggers, GUD Customization, Source Buffers) (Breakpoints Buffer, Threads Buffer): Minor fixes and updates. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-03-19 Paul Eggert * doc/emacs/rmail.texi: Fix broken link. 2018-03-19 Paul Eggert Fix recently-added POP doc glitch * doc/emacs/rmail.texi (Remote Mailboxes): POP3 → POP, when talking about POP in general. 2018-03-19 Eli Zaretskii More proofreading of the Emacs manual * doc/emacs/macos.texi (Mac / GNUstep Basics): Fix typos. Improve indexing. (Mac / GNUstep Basics, Mac / GNUstep Customization) (Mac / GNUstep Events): Improve indexing. * doc/emacs/rmail.texi (Rmail): Mention Gnus. (Rmail Basics, Rmail Scrolling): Improve cross-references and indexing. (Rmail Motion): Minor improvements. (Rmail Inbox): Remove outdated text about Babyl format. (Rmail Files): Formatting changes. Comment out set-rmail-inbox-list in the table of commands, as it is commented out in the text that follows. (Rmail Output, Rmail Labels, Rmail Reply, Rmail Make Summary): Minor copyedits. (Rmail Summary Edit): Document rmail-summary-scroll-between-messages. (Rmail Editing): Improve indexing. (Movemail): Fix typos. (Remote Mailboxes): Use "POP3" rather than "POP". 2018-03-19 Simen Heggestøyl Fix typo in the Emacs manual's VC chapter * doc/emacs/maintaining.texi (VC Directory Buffer): Fix a typo. 2018-03-19 Basil L. Contovounesios Pass json-readtable-error data as a list (bug#30489) * lisp/json.el (json-readtable-dispatch): Fix error data. * test/lisp/json-tests.el (test-json-read): Check error data is a list. 2018-03-17 Noam Postavsky Improve word motion docs (Bug#30815) * doc/lispref/positions.texi (Word Motion): Fix reference to `char-script-table'. * lisp/simple.el (backward-word): * src/syntax.c (forward-word): Mention `char-script-table' and add link to the 'Word Motion' manual section. 2018-03-15 Michael Albinus Replace "carriage-return" by "carriage return" in manuals * doc/emacs/msdos.texi: * doc/emacs/mule.texi: * doc/emacs/screen.texi: * doc/lispref/nonascii.texi: * doc/misc/calc.texi: Replace "carriage-return" by "carriage return". Suggested by Richard Stallman in emacs-manual-bugs@gnu.org. 2018-03-15 Eli Zaretskii Minor copyedits in mule.texi * doc/emacs/mule.texi (Recognize Coding, Fontsets): Minor changes in wording. Suggested by Richard Stallman in emacs-manual-bugs@gnu.org. 2018-03-14 Eli Zaretskii Fix problems caused by fontconfig-2.13.0 * src/xterm.c (x_term_init): Call fixup_locale after xg_initialize, to countermand the call to setlocale in some versions of fontconfig. (Bug#30788) 2018-03-13 Glenn Morris Fix some allout.el aliases * lisp/allout.el (allout-passphrase-verifier-string) (allout-passphrase-hint-string): Fix alias. 2018-03-13 Glenn Morris * lisp/progmodes/ada-mode.el (ada-clean-buffer-before-saving): Doc fix. 2018-03-13 Glenn Morris Doc fixes re obsolete items * doc/emacs/mini.texi (Completion Commands): Small update re mouse. * doc/misc/htmlfontify.texi (Customization): Replace obsolete alias. 2018-03-13 Glenn Morris Replace an obsolete alias in tpu-mapper * lisp/obsolete/tpu-mapper.el (tpu-map-key, tpu-mapper): Replace obsolete alias. 2018-03-13 Glenn Morris Doc fixes re obsolete items * doc/emacs/maintaining.texi (VC Undo): * doc/misc/efaq-w32.texi (Font names): Replace obsolete aliases. * doc/misc/url.texi (Customization): Don't mention url-temporary-directory, it essentially does nothing. * lisp/hilit-chg.el (highlight-changes-global-changes-existing-buffers): Doc fix. 2018-03-13 Eli Zaretskii Minor changes in mule.texi * doc/emacs/mule.texi (International, Coding Systems) (Bidirectional Editing): Minor wording changes and typo fixes. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-03-13 Eli Zaretskii Avoid assertion violation under visual-order-cursor-movement * src/xdisp.c (Fmove_point_visually): Don't let point exceed the BEGV..ZV range. Signal Beginning of buffer error when there's a before-string at BEGV. (Bug#30787) 2018-03-13 Glenn Morris Stop mentioning options.el in doc * doc/misc/calc.texi (Customizing Embedded Mode): Remove mentions of the obsolete (since 22.1) options.el. * lisp/progmodes/meta-mode.el: Comment fix. 2018-03-12 Charles A. Roelli * lisp/vc/vc-dir.el (vc-dir-unmark): Fix documentation. 2018-03-12 Eli Zaretskii * lisp/minibuffer.el (completion-cycle-threshold): Doc fix. 2018-03-12 Eli Zaretskii Fix last change in Xref documentation * doc/emacs/maintaining.texi (Looking Up Identifiers): More accurate wording for the description of xref-etags-mode. 2018-03-11 Eli Zaretskii More changes in the Emacs manual * doc/emacs/text.texi (Words, Foldout, Table Conversion): Clarify text. Reported by Gijs Hillenius in emacs-manual-bugs@gnu.org. * doc/emacs/msdos.texi (Windows Keyboard): * doc/emacs/msdos-xtra.texi (MS-DOS Keyboard): * doc/emacs/macos.texi (Mac / GNUstep Basics): * doc/emacs/glossary.texi (Glossary): * doc/emacs/custom.texi (Function Keys, Init Syntax): * doc/emacs/commands.texi (User Input): * doc/emacs/basic.texi (Arguments): Fix capitalization of "Meta". * doc/emacs/msdos.texi (Windows Keyboard): * doc/emacs/dired.texi (Dired Updating): * doc/emacs/custom.texi (Init Rebinding): Fix misuses of @key. Suggested by Richard Stallman . 2018-03-11 Eli Zaretskii Improve documentation of Xref * doc/emacs/maintaining.texi (Looking Up Identifiers): Document xref-etags-mode. 2018-03-11 Paul Eggert Fix create_process bug breaking eudc-expand-inline Problem reported by Thomas Fitzsimmons (Bug#30762). * src/process.c (create_process) [HAVE_PTYS]: Call setsid even if !PTY_FLAG. 2018-03-10 Noam Postavsky Clarify that nil doesn't match itself as a cl-case clause (Bug#30749) * lisp/emacs-lisp/cl-macs.el (cl-case): Mention that the ATOM => (ATOM) short form is only for non-nil ATOMs. 2018-03-10 Charles A. Roelli Improve SVG documentation * doc/lispref/display.texi (ImageMagick Images): Remove an outdated comment that references a fixed bug. (SVG Images): Fix grammar, and call functions functions (there are no commands in lisp/svg.el). 2018-03-10 Eli Zaretskii Document the "URL" keyword in library headers * doc/lispref/tips.texi (Library Headers): "URL" is an alias for "Homepage". Suggested by Peter Oliver . (Bug#30571) 2018-03-09 Glenn Morris * test/lisp/international/mule-tests.el: Avoid local variables confusion. 2018-03-09 Bill Wohler Add missing findex entries for recently removed kindex entries * doc/misc/mh-e.texi: (cherry picked from commit a56a3fc6849b89a71c9a00afcb088021ccbe94e5) 2018-03-09 Glenn Morris Replace the obsolete process-kill-without-query in documentation * lisp/comint.el (comint-exec-hook): * lisp/term.el (term-exec-hook): * lisp/eshell/esh-proc.el (eshell-exec-hook): Doc fixes re the obsolete process-kill-without-query. 2018-03-08 Michael Albinus Minor change in the manual * doc/emacs/display.texi (Useless Whitespace): Don't upcase "TAB" and "SPC" when alluding to characters. 2018-03-08 Eli Zaretskii More minor changes in the manual * doc/emacs/display.texi (Useless Whitespace): Don't upcase "TAB" and "SPC" when alluding to characters. Suggested by Richard Stallman . * doc/emacs/buffers.texi (Misc Buffer): Clarify what "read-only" means for buffers. (Buffers): Define and describe "buffer contents". Suggested by Richard Stallman . (Bug#30685) 2018-03-07 Glenn Morris Replace some obsolete aliases in code * lisp/net/eudc-bob.el (eudc-bob-mail-keymap): * lisp/textmodes/reftex-toc.el (reftex-make-separate-toc-frame): Replace obsolete aliases. 2018-03-07 Glenn Morris Replace some obsolete aliases in documentation * doc/misc/efaq-w32.texi (Incoming mail with Rmail): * doc/misc/speedbar.texi (Major Display Modes): * lisp/mh-e/mh-folder.el (mh-restore-desktop-buffer): Doc fixes re obsolete aliases. 2018-03-07 Eli Zaretskii Minor improvements in manuals * doc/lispref/variables.texi (Local Variables): Make more clear that local bindings of 'let' are in effect only within the body. Suggested by Marcin Borkowski , see http://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00217.html for the details. * doc/emacs/programs.texi (Matching): Fix a typo. Reported by Alex Branham in emacs-manual-bugs@gnu.org. Improve indexing. 2018-03-07 Eli Zaretskii Minor copyedits in display.texi * doc/emacs/display.texi (Highlight Interactively) (Useless Whitespace, Line Truncation, Visual Line Mode): Minor changes of wording and typo corrections. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-03-07 Glenn Morris Remove some unused spam.el variables * lisp/gnus/spam.el (spam-ifile-path, spam-ifile-database-path) (spam-bogofilter-path, spam-bsfilter-path) (spam-spamassassin-path, spam-sa-learn-path): Remove variables that are described as obsolete, but are really completely unused, and have been for years. 2018-03-07 Glenn Morris Replace some obsolete aliases in code * lisp/emulation/viper.el (viper-set-hooks): * lisp/epa-hook.el (auto-encryption-mode): * lisp/term/pc-win.el (set-frame-font): Replace obsolete aliases. * lisp/net/quickurl.el (quickurl--assoc-function): New. (quickurl-assoc-function): Use it. 2018-03-07 Glenn Morris Replace some obsolete aliases in documentation * doc/emacs/text.texi (Nroff Mode): * doc/misc/efaq.texi (How to add fonts): * lisp/gnus/nnheader.el (nnheader-insert-file-contents): * lisp/progmodes/pascal.el (pascal-outline-mode): Doc fixes re obsolete aliases. 2018-03-06 Glenn Morris Obsolete eshell-cmpl-suffix-list * lisp/eshell/em-cmpl.el (eshell-cmpl-suffix-list): Make obsolete, to match pcomplete-suffix-list. 2018-03-06 Eli Zaretskii More minor changes in the Glossary of the Emacs manual * doc/emacs/glossary.texi (Glossary): Improve cross-references for modifier keys. Fix typos. Suggested by Gijs Hillenius in emacs-manual-bugs@gnu.org. 2018-03-06 Michael Heerdegen Revert last commit This reverts commit af4697faa1f5b643f63a9ea61aa205a4c1432e23. It's too late for this to be in the release. 2018-03-06 Michael Heerdegen Define if-let* and derivatives as aliases for if-let etc This commit reverts declaring `if-let' and `when-let' obsolete in favor of the new `if-let*' and `when-let*' versions because of the compiler warning mess (Bug#30039). Instead we make foo-let* aliases for foo-let. The old single-tuple variable spec case is still supported for backward compatibility. * lisp/emacs-lisp/subr-x.el (if-let, when-let): Don't declare obsolete. Tweak edebug specs. (and-let): Renamed from `and-let*' for compatibility with the names `if-let' and `when-let'. (if-let*, when-let*, and-let*): Define as aliases for `if-let', `when-let' and `and-let'. * test/lisp/emacs-lisp/subr-x-tests.el (if-let-single-tuple-case-test) (when-let-single-tuple-case-test): New tests for the single-binding tuple case. In the whole file, prefer the names without "*". 2018-03-05 Eli Zaretskii Minor fix in Emacs manual's Glossary * doc/emacs/glossary.texi (Glossary): Fix outdated text about primary selection. Reported by Gijs Hillenius in emacs-manual-bugs@gnu.org. 2018-03-03 Juri Linkov * lisp/progmodes/grep.el (zrgrep): Let-bind grep-use-null-filename-separator to nil (bug#30559). 2018-03-03 Eli Zaretskii Minor copyedits in doc/emacs/text.texi * doc/emacs/text.texi (TeX Mode): Use @code for command markup. (HTML Mode): Add a note about "C-x C-v" binding in HTML mode. 2018-03-03 Eli Zaretskii Remove outdated comment in syntax.el * lisp/emacs-lisp/syntax.el (syntax-ppss-toplevel-pos): Remove outdated comment. (Bug#30617) 2018-03-03 Eli Zaretskii Prevent Flyspell from changing unrelated words * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Avoid using stale cached data from previous invocations of this command. (Bug#30462) 2018-03-03 Eli Zaretskii Avoid errors in flymake in builds --without-x * lisp/progmodes/flymake.el: Require 'mwheel'. (Bug#28732) 2018-03-03 Eli Zaretskii More improvements of the Emacs manual * doc/emacs/rmail.texi (Rmail Reply, Rmail Sorting): Improve wording. Suggested by Daniel Chakraborty . * doc/emacs/glossary.texi (Glossary): Add cross-references. Improve and clarify wording. Suggested by Gijs Hillenius in emacs-manual-bugs@gnu.org. * doc/emacs/text.texi (Org Authoring): Add more supported formats to the list. (TeX Print): Improve wording. Slightly rearrange stuff. (TeX Misc): Mention doctex-mode-hook. (Two-Column): Minor rearrangement of text. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. * doc/emacs/misc.texi (Saving Emacs Sessions): * doc/emacs/programs.texi (Program Modes): Remove redundant text and index entries. 2018-03-03 Dmitry Gutov Backport: xref--next-error-function: Move xref's window point * lisp/progmodes/xref.el (xref--next-error-function): Move xref's window point if it's visible. When we don't do that, navigation can start looping after a while. (cherry picked from commit 108ce84432d597f92637ea74bd0a094224d157de) 2018-03-02 Glenn Morris mwheel minor consistency fix * lisp/mwheel.el (mwheel-scroll-left-function) (mwheel-scroll-right-function): Change from defcustom to defvar, for consistency with pre-existing. 2018-03-02 Eli Zaretskii * src/window.c (Frecenter): Improve commentary. 2018-03-02 Eli Zaretskii Fix downloading non-text files in EWW * lisp/net/eww.el (eww-download-callback): Bind coding-system-for-read to 'no-conversion', to avoid any code- or EOL-conversions in downloaded files. (Bug#30664) 2018-03-02 Tak Kunihiro Rename some mwheel options, for consistency * lisp/mwheel.el (mouse-wheel-tilt-scroll) (mouse-wheel-flip-direction): Rename from mwheel-tilt-scroll-p, mwheel-flip-direction. (mwheel-scroll): Update for option renaming. * doc/emacs/frames.texi (Mouse Commands): Update for option renaming. 2018-03-01 Glenn Morris * lisp/vc/add-log.el (add-change-log-entry): Replace obsolete alias. 2018-03-01 Eli Zaretskii Improve the Emacs manual * doc/emacs/xresources.texi (Table of Resources): Mention that some resources are ignored by toolkit builds. * doc/emacs/custom.texi (Key Bindings): Improve indexing. (Bug#30530) 2018-03-01 Eli Zaretskii * lisp/dired-aux.el (dired-do-create-files): Doc fix. (Bug#30634) 2018-03-01 Michael Albinus Further improvements on manuals * doc/emacs/xresources.texi: * doc/lispref/display.texi: * doc/lispref/keymaps.texi: * doc/misc/dbus.texi: * doc/misc/efaq-w32.texi: Use "GTK+" where applicable. * doc/emacs/xresources.texi (Resources): Mention several use of "-xrm". (Table of Resources) [verticalScrollBars]: Add reference to Scroll Bars. 2018-03-01 Paul Eggert Require a larger stack size for threads on macOS (bug#30364) * src/systhread.c (sys_thread_create) [THREADS_ENABLED && HAVE_PTHREAD && DARWIN_OS]: Require at least 8MB stack size for x64 and 4MB for x86 on macOS. Do not merge to master. 2018-02-28 Glenn Morris * doc/lispref/streams.texi (Output Variables): Fix previous. 2018-02-28 Michael Albinus Use "GTK+" where applicable in the manual * doc/emacs/display.texi (Standard Faces, Standard Faces): * doc/emacs/emacs.texi (Top): * doc/emacs/files.texi (Visiting): * doc/emacs/frames.texi (Scroll Bars): * doc/emacs/xresources.texi: Use "GTK+" where applicable. 2018-02-28 Paul Eggert Document print-escape-control-characters * doc/lispref/streams.texi, etc/NEWS: Add doc. 2018-02-27 Eli Zaretskii * doc/emacs/killing.texi (Rectangles): Don't use @key for characters. 2018-02-27 Glenn Morris * lisp/emulation/viper.el: Unbreak it. Since 2017-03-19, M-x viper failed with function void cl-member-if. Perhaps it isn't used much. 2018-02-27 Eli Zaretskii More fixes in the Emacs manual * doc/emacs/xresources.texi (Table of Resources, Lucid Resources): Sort the resources. (Lucid Resources): Add cross-references. (GTK Resource Basics): Fix wording. (GTK styles): Add empty lines in a @table. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-02-27 Eli Zaretskii Avoid aborts in 'md5' * src/fns.c (extract_data_from_object): Don't crash if called with an invalid object. (Bug#30627) 2018-02-26 Michael Albinus Mark keys consistently in manuals * doc/emacs/killing.texi: * doc/lispintro/emacs-lisp-intro.texi: * doc/misc/calc.texi: * doc/misc/cc-mode.texi: * doc/misc/dired-x.texi: * doc/misc/ede.texi: * doc/misc/edt.texi: * doc/misc/efaq.texi: * doc/misc/erc.texi: * doc/misc/eshell.texi: * doc/misc/gnus-faq.texi: * doc/misc/gnus-news.texi: * doc/misc/idlwave.texi: * doc/misc/ido.texi: * doc/misc/mairix-el.texi: * doc/misc/message.texi: * doc/misc/mh-e.texi: * doc/misc/newsticker.texi: * doc/misc/org.texi: * doc/misc/pcl-cvs.texi: * doc/misc/ses.texi: * doc/misc/sieve.texi: * doc/misc/smtpmail.texi: * doc/misc/speedbar.texi: * doc/misc/srecode.texi: * doc/misc/vhdl-mode.texi: * doc/misc/vip.texi: * doc/misc/viper.texi: Mark keys consistently. 2018-02-26 Michael Albinus Remove @key{} markups from @kindex entries in manuals * doc/emacs/basic.texi: * doc/emacs/buffers.texi: * doc/emacs/building.texi: * doc/emacs/calendar.texi: * doc/emacs/custom.texi: * doc/emacs/dired.texi: * doc/emacs/display.texi: * doc/emacs/files.texi: * doc/emacs/frames.texi: * doc/emacs/help.texi: * doc/emacs/indent.texi: * doc/emacs/killing.texi: * doc/emacs/kmacro.texi: * doc/emacs/mark.texi: * doc/emacs/mini.texi: * doc/emacs/misc.texi: * doc/emacs/modes.texi: * doc/emacs/msdos-xtra.texi: * doc/emacs/msdos.texi: * doc/emacs/mule.texi: * doc/emacs/picture-xtra.texi: * doc/emacs/programs.texi: * doc/emacs/regs.texi: * doc/emacs/rmail.texi: * doc/emacs/screen.texi: * doc/emacs/search.texi: * doc/emacs/sending.texi: * doc/emacs/text.texi: * doc/emacs/trouble.texi: * doc/misc/calc.texi: * doc/misc/cc-mode.texi: * doc/misc/ediff.texi: * doc/misc/ert.texi: * doc/misc/eww.texi: * doc/misc/forms.texi: * doc/misc/gnus.texi: * doc/misc/idlwave.texi: * doc/misc/info.texi: * doc/misc/message.texi: * doc/misc/mh-e.texi: * doc/misc/newsticker.texi: * doc/misc/org.texi: * doc/misc/pcl-cvs.texi: * doc/misc/rcirc.texi: * doc/misc/reftex.texi: * doc/misc/sc.texi: * doc/misc/sieve.texi: * doc/misc/vhdl-mode.texi: * doc/misc/vip.texi: * doc/misc/viper.texi: * doc/misc/woman.texi: Remove @key{} markups from @kindex entries. 2018-02-25 Eli Zaretskii * doc/emacs/display.texi (Standard Faces): Fix markup of index entry. 2018-02-25 Michael Albinus Fix @kindex entries in manuals * doc/emacs/basic.texi: * doc/emacs/buffers.texi: * doc/emacs/building.texi: * doc/emacs/calendar.texi: * doc/emacs/custom.texi: * doc/emacs/dired.texi: * doc/emacs/display.texi: * doc/emacs/files.texi: * doc/emacs/frames.texi: * doc/emacs/help.texi: * doc/emacs/indent.texi: * doc/emacs/killing.texi: * doc/emacs/kmacro.texi: * doc/emacs/mark.texi: * doc/emacs/mini.texi: * doc/emacs/misc.texi: * doc/emacs/modes.texi: * doc/emacs/msdos-xtra.texi: * doc/emacs/msdos.texi: * doc/emacs/mule.texi: * doc/emacs/picture-xtra.texi: * doc/emacs/programs.texi: * doc/emacs/regs.texi: * doc/emacs/rmail.texi: * doc/emacs/screen.texi: * doc/emacs/search.texi: * doc/emacs/sending.texi: * doc/emacs/text.texi: * doc/emacs/trouble.texi: * doc/lispref/files.texi: * doc/misc/calc.texi: * doc/misc/cc-mode.texi: * doc/misc/ediff.texi: * doc/misc/epa.texi: * doc/misc/ert.texi: * doc/misc/eww.texi: * doc/misc/forms.texi: * doc/misc/gnus.texi: * doc/misc/info.texi: * doc/misc/mairix-el.texi: * doc/misc/message.texi: * doc/misc/mh-e.texi: * doc/misc/newsticker.texi: * doc/misc/org.texi: * doc/misc/pcl-cvs.texi: * doc/misc/rcirc.texi: * doc/misc/sc.texi: * doc/misc/sieve.texi: * doc/misc/vhdl-mode.texi: * doc/misc/vip.texi: * doc/misc/viper.texi: * doc/misc/woman.texi: Fix @kindex entries. Mark keys consistently. 2018-02-24 Michael Albinus Fix @cindex entries in manuals * doc/emacs/custom.texi: * doc/emacs/dired.texi: * doc/emacs/display.texi: * doc/emacs/files.texi: * doc/emacs/frames.texi: * doc/emacs/killing.texi: * doc/emacs/maintaining.texi: * doc/emacs/misc.texi: * doc/emacs/msdos-xtra.texi: * doc/emacs/msdos.texi: * doc/emacs/search.texi: * doc/emacs/text.texi: * doc/emacs/trouble.texi: * doc/lispintro/emacs-lisp-intro.texi: * doc/lispref/strings.texi: * doc/lispref/text.texi: * doc/misc/cc-mode.texi: * doc/misc/efaq.texi: * doc/misc/eieio.texi: * doc/misc/emacs-mime.texi: * doc/misc/gnus.texi: * doc/misc/htmlfontify.texi: * doc/misc/idlwave.texi: * doc/misc/message.texi: * doc/misc/mh-e.texi: * doc/misc/sem-user.texi: * doc/misc/ses.texi: * doc/misc/tramp.texi: * doc/misc/vhdl-mode.texi: Fix @cindex entries. 2018-02-24 Michael Albinus Fix @cindex entries in org.texi * doc/misc/org.texi: Fix @cindex entries. Use consistently @code{} for keywords. 2018-02-24 Eli Zaretskii Document reserved keys * doc/emacs/custom.texi (Key Bindings): Mention keys reserved for users. (Bug#30530) 2018-02-24 Michael Albinus * doc/misc/ebrowse.texi: Use @key{} for keys. 2018-02-24 Eli Zaretskii * src/keyboard.c (syms_of_keyboard): Doc fix. (Bug#30588) 2018-02-24 Eli Zaretskii Improve documentation of X resources * doc/emacs/xresources.texi (Table of Resources): Add menu-related resources. Add cross-references to "GTK Resources". 2018-02-23 Glenn Morris * lisp/international/mule.el (keyboard-coding-system): Doc fix. Since multi-tty, this is always set. 2018-02-23 Paul Eggert Minor doc fixes, mostly for timestamp issues 2018-02-23 Eli Zaretskii * doc/emacs/mini.texi (Completion Styles): Improve indexing. 2018-02-23 Michael Albinus Fix @findex and @vindex entries in manuals * doc/emacs/building.texi: * doc/emacs/calendar.texi: * doc/emacs/cmdargs.texi: * doc/emacs/mini.texi: * doc/emacs/misc.texi: * doc/emacs/trouble.texi: * doc/emacs/windows.texi: * doc/lispintro/emacs-lisp-intro.texi: * doc/lispref/edebug.texi: * doc/lispref/frames.texi: * doc/lispref/os.texi: * doc/lispref/windows.texi: * doc/misc/cc-mode.texi: * doc/misc/dired-x.texi: * doc/misc/ediff.texi: * doc/misc/mh-e.texi: * doc/misc/pcl-cvs.texi: * doc/misc/reftex.texi: * doc/misc/sc.texi: * doc/misc/vhdl-mode.texi: * doc/misc/viper.texi: Fix @findex and @vindex entries. 2018-02-22 Alan Mackenzie Document, in the Elisp manual, how to get a character's raw syntax descriptor * doc/lispref/syntax.texi (Syntax Table internals): mention the use of `aref' to get a character's raw syntax descriptor. 2018-02-22 Eli Zaretskii Improvements in the Emacs manual * doc/emacs/custom.texi (Customization Groups) (Changing a Variable, Browsing Custom, Customizing Faces): Fix markup of keys. (Changing a Variable, Saving Customizations): Update the description of buttons in the Custom buffer. (Face Customization): More accurate description. (Specific Customization, Examining, Locals): Add blank lines in the @table. Reported by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-02-22 Glenn Morris Tiny doc/misc markup fixes * doc/misc/ediff.texi (Patch and Diff Programs): * doc/misc/viper.texi (File and Buffer Handling): Fix markup typos. 2018-02-22 Martin Rudalics Skip mouse-face overlap check when mouse-face is hidden (Bug#30519) * src/xdisp.c (note_mouse_highlight): Skip check whether mouse-face highlighting overlay overlaps other mouse-face overlays when mouse-face highlighting is hidden (Bug#30519). 2018-02-22 Eli Zaretskii Fix capitalization of "Mail-Followup-To" * doc/emacs/sending.texi (Header Editing, Mail Headers): Standardize on "Mail-Followup-To" as the capitalization. 2018-02-21 Juri Linkov * lisp/progmodes/grep.el (grep-compute-defaults): Add grep-use-null-filename-separator to grep-host-defaults-alist. (Bug#30559) 2018-02-21 Charles A. Roelli Semantic manual fixes * doc/misc/semantic.texi (Tools): Fix wording and grammar, and remove a reference to "document-vars.el" which, in the Emacs repository, is part of lisp/cedet/srecode/document.el. 2018-02-21 Eli Zaretskii More improvements in the Emacs manual * doc/emacs/help.texi (Misc Help): * doc/emacs/m-x.texi (M-x): * doc/emacs/mini.texi (Minibuffer File, Repetition): Prevent breaking of command sequences between lines. Reported by Wojciech Politarczyk in emacs-manual-bugs@gnu.org. * doc/emacs/sending.texi (Header Editing): Fix capitalization. 2018-02-21 tino calancha * doc/misc/viper.texi (File and Buffer Handling): Add missing '@' 2018-02-21 Eli Zaretskii Fix documentation of 'x-underline-at-descent-line' * doc/emacs/display.texi (Display Custom): * src/nsterm.m (syms_of_nsterm): * src/xterm.c (syms_of_xterm): * src/w32term.c (syms_of_w32term): Mention the effect of 'line-spacing' on the underline position. (Bug#30553) 2018-02-21 Glenn Morris * lisp/textmodes/flyspell.el (flyspell-get-word): Doc fix. 2018-02-20 Robert Pluim Correct variable markup in manuals * doc/lispref/minibuf.texi (Completion in Buffers): Fix markup. * doc/lispref/text.texi (Filling): Likewise. * doc/misc/dired-x.texi (Advanced Mark Commands): Likewise. * doc/misc/epa.texi (Encrypting/decrypting gpg files): Likewise. (Encrypting/decrypting gpg files): Likewise. * doc/misc/tramp.texi (External methods): Likewise. (Default Method): Likewise. * doc/misc/viper.texi (Editing in Insert State): Likewise. (File and Buffer Handling): Likewise. * doc/misc/gnus.texi (Mail Source Customization): Likewise. * doc/misc/url.texi (Customization): Likewise. Note obsolete status of url-temporary-directory. 2018-02-20 Eli Zaretskii Improve the "Sending Mail" chapter of Emacs manual * doc/emacs/sending.texi (Mail Format, Header Editing) (Mail Aliases): Fix capitalization of mail headers. (Mail Aliases): Use ~/.mailrc consistently. (Mail Misc): More accurate description of disposition. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-02-20 Eli Zaretskii Fix documentation of 'flyspell-auto-correct-word' * lisp/textmodes/flyspell.el (flyspell-get-word): Elaborate in the doc string on how the function looks for the word to spell-check. (flyspell-word, flyspell-auto-correct-word): Refer to 'flyspell-get-word' for details about finding the word. (Bug#30462) 2018-02-19 Robert Pluim * doc/emacs/misc.texi (Saving Emacs Sessions): Fix markup. 2018-02-19 Eli Zaretskii More changes in the Emacs manuals * doc/emacs/custom.texi (Customization Groups, Browsing Custom) (Custom Themes, Keymaps, Prefix Keymaps, Modifier Keys) (Function Keys, Named ASCII Chars, Mouse Buttons, Init Examples): Fix punctuation. Suggested by Stefan Kamphausen in emacs-manual-bugs@gnu.org. * doc/emacs/basic.texi (Arguments, Repeating): Avoid breaking commands between lines. Reported by Wojciech Politarczyk in emacs-manual-bugs@gnu.org. * doc/emacs/custom.texi (Init Rebinding): Move index entries about rebinding keys from "Init File". (Bug#30528) 2018-02-18 Eli Zaretskii More fixes in the Emacs manual * doc/emacs/abbrevs.texi (Defining Abbrevs, Expanding Abbrevs) (Editing Abbrevs, Saving Abbrevs): Insert blank lines between @item's. (Expanding Abbrevs): Add 'unexpand-abbrev' to the list of commands. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-02-18 Eli Zaretskii * src/data.c (Faref): Fix a typo in the doc string. (Bug#30510) 2018-02-18 Michael Albinus Minor edit in tramp.texi * doc/misc/tramp.texi (Remote shell setup, Windows setup hints): Improve @cindex entries. 2018-02-17 Eli Zaretskii More improvements in the Emacs manual * doc/emacs/maintaining.texi (Xref Commands, Identifier Search) (List Identifiers): Insert blank lines between @item's in a @table. (Etags Regexps): More accurate description of escape sequences. (Select Tags Table): Prefer "~/emacs.d/init.el" to "~/.emacs". Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-02-17 Eli Zaretskii Improve documentation of 'electric-pair-mode' * lisp/elec-pair.el (electric-pair-mode): * doc/emacs/programs.texi (Matching): Document the operation of electric-pair-mode when there's an active region. (Bug#30502) 2018-02-17 Charles A. Roelli lisp/vc/: documentation fixes * lisp/vc/vc.el (vc-region-history): Clarify documentation. * lisp/vc/add-log.el (change-log-get-method-definition): Indent documentation. 2018-02-17 Robert Pluim Document 'desktop-files-not-to-save' * doc/emacs/misc.texi (Saving Emacs Sessions): Add description of 'desktop-files-not-to-save'. * lisp/desktop.el (desktop-files-not-to-save): Explain that the default value excludes buffers visiting remote files. 2018-02-17 Eli Zaretskii Improve documentation of Profiling features * doc/lispref/debugging.texi (Profiling): Improve the description of elp.el. Improve wording of the rest of the section. (Bug#30491) * lisp/emacs-lisp/elp.el (elp-instrument-list): Make the interactive invocation work. Doc fix. 2018-02-17 Eli Zaretskii Improve indexing of "performance" in ELisp manual * doc/lispref/debugging.texi (Profiling): * doc/lispref/edebug.texi (Coverage Testing): Improve indexing of features useful for performance analysis. (Bug#30490) 2018-02-17 Eli Zaretskii Minor change in Emacs manual's VC chapter * doc/emacs/maintaining.texi (Log Buffer): Mention the "Summary" header. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-02-17 Noam Postavsky Avoid memory corruption with specpdl overflow + edebug (Bug#30481) If grow_specpdl fails due to outgrowing max_specpdl_size, it will signal an error *before* growing the specpdl array. Therefore, when handling the signal, specpdl_ptr points past the end of the specpdl array and any further use of of specpdl before unwinding (e.g., if edebug binds signal-hook-function) will cause memory corruption. * src/eval.c (signal_or_quit): Don't call `signal-hook-function' if the specpdl_ptr is already past the end of the specpdl array. * test/src/eval-tests.el (eval-tests--exceed-specbind-limit) (eval-exceed-specbind-with-signal-hook): New test & helper function. 2018-02-17 Noam Postavsky Document comment-fill-column in the manual (Bug#11636) * doc/emacs/programs.texi (Comment Commands) (Options for Comments): Mention comment-fill-column. 2018-02-17 Glenn Morris * doc/emacs/dired.texi (Marks vs Flags): Copyedits. 2018-02-16 Eli Zaretskii More fixes for the Emacs manual * doc/emacs/vc1-xtra.texi (Customizing VC): Update the list of backends. * doc/emacs/maintaining.texi (Version Control): Add SRC to the list of VCS. Remove the description of vc-state-refresh. (Version Control Systems): Update the description of CVS. (VC Change Log): Amend the list of VCS that don't support vc0print-root-log. (VCS Changesets, VCS Repositories, Advanced C-x v v) (VC Change Log): Mention SRC with RCS where appropriate. (VC Directory Commands): More accurate description of vc-dir-hide-up-to-date. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-02-16 Robert Cochran Make 'byte-compile-error-on-warn' a safe file variable * lisp/emacs-lisp/bytecomp.el (byte-compile-error-on-warn): Mark as a safe local variable for boolean values. 2018-02-16 Eli Zaretskii Fix the doc string of flyspell-auto-correct-word * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Doc fix. (Bug#30462) 2018-02-16 Eli Zaretskii Improve the MS-Windows appendix of the Emacs manual * doc/emacs/msdos.texi (Windows Startup): Describe the pinned shortcuts for starting Emacs. (Text and Binary): Minor wording changes. (Windows Files): Mention 'read-file-name-completion-ignore-case'. (ls in Lisp): Update the list of supported 'ls' switches. Document 'ls-lisp-use-string-collate' and 'ls-lisp-UCA-like-collation'. (Windows HOME): Mention warnings displayed at startup when deprecated locations of HOME and/or deprecated names for init files are used. (Windows Keyboard): Mention delete-selection-mode. 2018-02-16 Eli Zaretskii Fix 'vc-git--program-version' * lisp/vc/vc-git.el (vc-git--program-version): Fix the function to work with Git for Windows. 2018-02-16 Eli Zaretskii Fix typos and wording in the Emacs manual * doc/emacs/dired.texi (Marks vs Flags, Hiding Subdirectories): * doc/emacs/maintaining.texi (Tag Syntax): * doc/emacs/building.texi (Commands of GUD, Threads Buffer) (Lisp Libraries): * doc/emacs/windows.texi (Temporary Displays): Fix typos. * doc/emacs/files.texi (Backup Copying): Fix wording. Reported by Stefan Kamphausen in emacs-manual-bugs@gnu.org. 2018-02-16 Michael Albinus * doc/emacs/programs.texi (Semantic): Order programming languages. 2018-02-15 Eli Zaretskii More improvements for the Emacs manual * doc/emacs/programs.texi (Basic Indent, Comment Commands): Fix typos. * doc/emacs/text.texi (TeX Print, HTML Mode, Enriched Faces): Fix typos. * doc/emacs/help.texi (Help Files): Improve @uref usage. Reported by Stefan Kamphausen in emacs-manual-bugs@gnu.org. * doc/emacs/fortran-xtra.texi (ForIndent Commands): Fix a typo. (ForIndent Commands, Fortran Columns): Add empty lines between @items in a @table. (ForIndent Cont, ForIndent Num, Fortran Columns): Mention 'column-number-indicator-zero-based'. (ForIndent Vars): Fix a typo. (Fortran Comments): Fix punctuation. (ForIndent Cont, Fortran Autofill): Fix markup of keyboard input. * doc/emacs/programs.texi (Comments): Fix a typo. (Comment Commands): More accurate description of the commands. (Options for Comments): Don't mention "hook". (Man Page): Prefer "M-x man" if available. (Hideshow): Fix the command key sequence. (Semantic): Update supported languages. (Semantic, Hungry Delete, Other C Commands): Fix markup of commands. (Misc for Programs): Fix a typo. (Electric C, Hungry Delete): More accurate description of mode-line lighters of CC submodes. (Asm Mode): Add empty lines between @items in a @table. * doc/emacs/programs.texi (Program Modes): Add a few more modes. Reported by Michael Albinus in emacs-manual-bugs@gnu.org. * doc/emacs/msdos.texi (Windows Misc): A minor rewording. Suggested by Isaac Carter in emacs-manual-bugs@gnu.org. 2018-02-14 Eli Zaretskii Minor wording change in Emacs manual * doc/emacs/killing.texi (Accumulating Text): Fix spelling. Reported by lyr3 in emacs-manual-bugs@gnu.org. 2018-02-14 Eli Zaretskii Another set of changes for the manual * doc/emacs/programs.texi (Program Indent): Add a cross-reference to elisp's description of 'pp'. (Program Modes): Add a few more programming modes. Add index entries. (Basic Indent, Multi-line Indent, C Indent, Comment Commands) (Manipulating Comments): Fix markup of keyboard commands. * doc/emacs/search.texi (Regexps): Add an example with non-ASCII characters. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. * doc/lispref/display.texi (Display Tables): Fix the description of the 5th extra slot of the display table. (Bug#13473) * doc/emacs/regs.texi (Registers): Simplify wording. * doc/emacs/custom.texi (Init Non-ASCII): Remove outdated text about perils of encoded keyboard input. 2018-02-14 Michael Albinus Improvements on tramp.texi * doc/misc/tramp.texi: Use Tramp version in title. Further improvements on user option indexing. Finish command examples with @key{RET} where appropriate. (Remote processes): Use 'M-&' for invocation of async shell. (Frequently Asked Questions): Add example with simplified syntax. 2018-02-13 Paul Eggert Tramp minor doc fixes * doc/misc/tramp.texi (Remote processes): Spelling fix and minor wording improvement. 2018-02-13 Eli Zaretskii More changes in the Emacs manual * doc/emacs/search.texi (Regexp Backslash): Say that symbol-constituent characters are determined by the syntax table. (Lax Search): Fix example of case-insensitive search. Fix a typo. (Unconditional Replace): Improve wording. (Regexp Replace): More consistent wording. Reported by Michael Albinus in emacs-manual-bugs@gnu.org. * doc/emacs/msdos.texi (Windows HOME): Avoid enumerating all the Windows versions. Reported by Isaac Carter in emacs-manual-bugs@gnu.org. 2018-02-13 Andreas Schwab * lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors. 2018-02-13 Andreas Schwab Don't signal error in vc-deduce-backend * lisp/vc/vc.el (vc-deduce-backend): Return nil if vc-responsible-backend signals an error. 2018-02-13 Michael Albinus * doc/misc/tramp.texi: Index more user options. 2018-02-13 Eli Zaretskii Minor change in the Emacs manual * doc/emacs/building.texi (Lisp Libraries): Explain why nil in load-path is not a good idea. Suggested by James Yoo in emacs-manual-bugs@gnu.org. 2018-02-13 Eli Zaretskii NEWS update about 'string-trim' * etc/NEWS: Mention changes in string-trim family of functions. (Bug#30442) 2018-02-13 Noam Postavsky Clarify TRAMP process-environment interaction (Bug#30419) * doc/misc/tramp.texi (Remote processes): Index the tramp-remote-process-environment description. Clarify the effects of let-binding process-environment and the motivation for that behavior. 2018-02-12 Juri Linkov * lisp/progmodes/grep.el (grep-num-matches-found): New variable. (grep-mode-line-matches): New defconst. (grep-mode-font-lock-keywords): Update the regexp for “Grep finished” to include the number of matches found. (grep-process-setup): Set grep-num-matches-found to 0. (grep-exit-message): New function with body moved from lambda in grep-process-setup. Use grep-num-matches-found to return the number of matches found. (grep-filter): Increment grep-num-matches-found. (grep-mode): Set compilation-mode-line-errors to grep-mode-line-matches. (Bug#30397, bug#14017) 2018-02-12 Eli Zaretskii Avoid aborts in cm.c due to too small TTY frame * src/frame.c (frame_windows_min_size): Limit TTY frames to a minimum height large enough to allow for a menu bar, the mode line, one text line and one echo-area line. This avoids aborts in cm.c:cmcheckmagic. (Bug#30320) 2018-02-12 Eli Zaretskii Another set of improvements in the Emacs manual * doc/emacs/msdos-xtra.texi (MS-DOS Keyboard): * doc/emacs/msdos.texi (Windows Keyboard): * doc/emacs/mark.texi (Using Region): * doc/emacs/frames.texi (Menu Mouse Clicks): * doc/emacs/macos.texi (Mac / GNUstep Basics): Fix spelling of keys. Reported by Michael Albinus in emacs-manual-bugs@gnu.org. * doc/emacs/glossary.texi (Glossary): Document that "c.f." is a misspelling. Reported by Robert Pluim . Various minor wording improvements. Suggested by Toon Claes in emacs-manual-bugs@gnu.org. More minor changes. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. * doc/emacs/cmdargs.texi (Title X): Improve wording. * doc/emacs/building.texi (Grep Searching, Compilation): Avoid passive tense. * doc/emacs/basic.texi (Moving Point): Move the description of the bidi-related effects of the arrow keys from here ... * doc/emacs/mule.texi (Bidirectional Editing): ... to here. Explain the behavior of arrow keys between paragraphs. 2018-02-12 Michael Albinus Fix help in mode-line-mode-menu * lisp/bindings.el (mode-line-mode-menu) [auto-revert-tail-mode]: Fix help string. 2018-02-11 Eli Zaretskii Improve documentation of desktop restoring * doc/emacs/misc.texi (Saving Emacs Sessions): Document 'desktop-auto-save-timeout', 'desktop-load-locked-desktop', and how to restore desktop in daemon mode. (Bug#30421) 2018-02-11 Eli Zaretskii Improve the Emacs manual's chapter "Frames" * doc/emacs/frames.texi (Creating Frames): Add a cross-reference to where frame visibility is described. (Word and Line Mouse): Clarify wording. (Scroll Bars): Qualify scroll-bar behavior. Reported by Dmitry Gutov in emacs-manual-bugs@gnu.org. 2018-02-10 Andreas Schwab Fix unbound mm-uu-entry in mm-uu * lisp/gnus/mm-uu.el (mm-uu-dissect): Rename entry to mm-uu-entry. 2018-02-10 Eli Zaretskii Improve Emacs user manual in fixit.texi * doc/emacs/fixit.texi (Undo): Clarify inaccurate description of repeated undo. (Transpose): Describe explicitly what happens at EOL. (Spelling): Use "spell-checking" consistently. Clarify wording. Suggested by Toon Claes in emacs-manual-bugs@gnu.org. 2018-02-10 Eli Zaretskii Another minor change in the manual * doc/emacs/glossary.texi (Glossary): Add popular Latin abbreviations, such as "e.g.". 2018-02-10 Eli Zaretskii More minor changes in the Emacs manual * doc/emacs/xresources.texi (GTK resources): * doc/emacs/trouble.texi (Contributing): * doc/emacs/frames.texi (Fonts): Use HTTPS URLs instead of HTTP. * doc/emacs/docstyle.texi: Add a few @hyphenation directives, based on reports in emacs-manual-bugs@gnu.org about incorrect hyphenation. 2018-02-10 Eli Zaretskii Avoid printing garbled error message from image.el * lisp/image.el (image--get-imagemagick-and-warn): Don't use apostrophe in the error message, as that message is shown from a unibyte buffer, and will run afoul of the default style of showing quote characters. (Bug#30405) 2018-02-09 Eli Zaretskii Doc string fix in latin-alt.el * lisp/leim/quail/latin-alt.el ("dutch"): Doc fix. Reported by Robert Pluim . 2018-02-09 Eli Zaretskii Minor improvements in package.texi * doc/emacs/package.texi (Package Menu): Minor wording change. (Package Installation): Use HTTPS. A better @xref to GnuPG manual. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-02-09 Eli Zaretskii Minor improvement in Emacs user manual * doc/emacs/files.texi (Directories): Document that 'directory-free-space-program' and 'directory-free-space-args' are only for local filesystems. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-02-09 Michael Albinus * doc/lispref/anti.texi (Antinews): Replace 25.2 with 25.3. 2018-02-09 Eli Zaretskii Improve documentation of mini-window resizing * doc/lispref/minibuf.texi (Minibuffer Windows): Mention 'message-truncate-lines' for preventing resizing of minibuffer windows. (Bug#19045) (Minibuffer Misc): Remove redundant description of 'max-mini-window-height'. * doc/lispref/display.texi (Echo Area Customization): Adjust cross-reference. 2018-02-09 Eli Zaretskii More changes in the Emacs manual * doc/emacs/fixit.texi (Undo): Mention 'revert-buffer'. (Fixing Case): Fix punctuation. (Spelling): Fix a typo. Suggested by Toon Claes in emacs-manual-bugs@gnu.org. * doc/emacs/modes.texi (Major Modes): Break a long sentence into 2. Reported by Stefan Kamphausen in emacs-manual-bugs@gnu.org. * doc/emacs/indent.texi (Just Spaces): Yet another minor rewording. * doc/emacs/building.texi (Watch Expressions): Improve wording. (Multithreaded Debugging): Spell "tool bar" as 2 words. Reported by Alberto Sartori in emacs-manual-bugs@gnu.org. (Grep Searching): Mention the effect of 'compilation-mode-line-errors'. (Bug#30397) * doc/emacs/basic.texi (Moving Point): Minor reformatting and rewording of what and do. 2018-02-09 Noam Postavsky Clarify that text-quoting-style doesn't affect *Info* (Bug#24519) * src/doc.c (syms_of_doc) : Clarify that info manual display is unaffected. 2018-02-09 Noam Postavsky Mention that shell quoting of % on w32 may fail (Bug#19350) * doc/lispref/os.texi (Security Considerations): Mention that quoting of '%' assumes no '^' in variable names. * test/lisp/subr-tests.el (shell-quote-argument-%-on-w32): New test, demonstrating what doesn't work. 2018-02-09 Noam Postavsky Fix --no-build-details for w32 and macOS * src/w32term.c (w32_initialize_display_info): Handle nil system-name. * lisp/term/ns-win.el (window-system-initialization): Don't pass nil to `x-open-connection'. 2018-02-09 Paul Eggert * doc/lispref/anti.texi (Antinews): Add some more antinews. 2018-02-08 Paul Eggert Fix crashes when run with --no-build-details * src/xrdb.c (get_environ_db): * src/xterm.c (same_x_server, x_term_init): Don’t assume Fsystem_name returns a string. 2018-02-08 Eli Zaretskii More changes for the manual * doc/emacs/anti.texi (Antinews): Replace 25.2 with 25.3. Reported by Michael Albinus in emacs-manual-bugs@gnu.org. * doc/emacs/custom.texi (Function Keys): Improve wording. Suggested by clemens.radermacher@posteo.de in emacs-manual-bugs@gnu.org. * doc/emacs/misc.texi (History References): Improve punctuation. (Terminal emulator): Fix a typo. (Term Mode): Remove redundant repeated text. (Invoking emacsclient): Improve wording. Suggested by Alberto Sartori in emacs-manual-bugs@gnu.org. * doc/emacs/files.texi (Visiting): Fix last change. 2018-02-08 Noam Postavsky Doc fixes for process functions (Bug#30349) * doc/lispref/processes.texi (Asynchronous Processes): Explain what the 'stopped' state means for a pipe process. * src/process.c (Fmake_process, Fmake_pipe_process) (Fmake_serial_process, Fmake_network_process): * lisp/subr.el (start-process): * lisp/net/tls.el (open-tls-stream): * lisp/net/starttls.el (starttls-open-stream): * lisp/net/gnutls.el (open-gnutls-stream): Remove meaningless phrase "specify an output stream" phrase from docstring. 2018-02-07 Basil L. Contovounesios Fix shr and CSS 4 color maps * lisp/net/shr-color.el (shr-color-html-colors-alist): Fix typos. Add RebeccaPurple. * lisp/textmodes/css-mode.el (css--color-map): Add fuchsia-magenta and aqua-cyan aliases. * test/lisp/textmodes/css-mode-tests.el (css-test-property-values): Bump color count. 2018-02-07 Eli Zaretskii Yet another round of improvements in the manual * doc/emacs/misc.texi (Document View): Improve wording. Reported by lyr3 in emacs-manual-bugs@gnu.org. * doc/emacs/files.texi (Recover): Fix a typo. Reported by Jorge in emacs-manual-bugs@gnu.org. * doc/emacs/anti.texi (Antinews): Fix typos. Reported by Justin Heyes-Jones in emacs-manual-bugs@gnu.org. * doc/emacs/mini.texi (Basic Minibuffer): Clarify wording. Reported by Vivishek Sudhir in emacs-manual-bugs@gnu.org. * doc/emacs/cmdargs.texi (MS-Windows Registry): Improve wording regarding registry keys. * doc/emacs/macos.texi (Mac OS / GNUstep): Sayu "NeXT Inc." Reported by Cena Mayo in emacs-manual-bugs@gnu.org. * doc/emacs/screen.texi (Screen): More accurate wording. Suggested by Miloš Polakovič in emacs-manual-bugs@gnu.org. * doc/emacs/indent.texi (Just Spaces): Minor wording change. Suggested by David Bonnafous in emacs-manual-bugs@gnu.org. * doc/emacs/text.texi (TeX Mode, TeX Editing): Improve and simplify wording. Suggested by root@vxid.pw in emacs-manual-bugs@gnu.org. * doc/emacs/cmdargs.texi (Window Size X): Minor wording change. * doc/emacs/display.texi (Highlight Interactively): Fill text. (Optional Mode Line): Fix typos. Suggested by Alberto Sartori in emacs-manual-bugs@gnu.org. * doc/emacs/building.texi (Debugger Operation): Clarify wording. * doc/emacs/files.texi (Directories, Comparing Files, Diff Mode) (Remote Files, File Names, Visiting, Backup Deletion) (Customize Save, Interlocking): Improve wording and accuracy of the text. * doc/emacs/maintaining.texi (VC With A Merging VCS): Don't say "his". * doc/emacs/arevert-xtra.texi (Auto Reverting Dired): Minor wording changes. (Supporting additional buffers): Moved to ... * doc/lispref/backups.texi (Reverting): ... here. * doc/emacs/emacs.texi (Top): Remove "Supporting additional buffers" from master menu. * doc/emacs/files.texi (Reverting): Mention use of file notifications. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. * doc/emacs/rmail.texi (Rmail Motion): Clarify what '-' does to 'M-s'. Suggested by Arthur Milchior in emacs-manual-bugs@gnu.org. * doc/emacs/cmdargs.texi (Initial Options): Capitalize "Emacs". (Action Arguments): Fix a typo. (Emacs Invocation): Replace em-dash with a comma. Suggested by Justin Heyes-Jones in emacs-manual-bugs@gnu.org. * doc/emacs/m-x.texi (M-x): Add an example. Suggested by Alberto Sartori in emacs-manual-bugs@gnu.org. * doc/emacs/calendar.texi (Calendar/Diary, Calendar Unit Motion): Minor wording changes. 2018-02-04 Juri Linkov * lisp/vc/vc-git.el (vc-git-print-log): Restrict file scope to a single file when vc-git-print-log-follow is non-nil (bug#19045). (vc-git-print-log-follow): Doc fix. * etc/NEWS: Mention 'vc-git-print-log-follow'. 2018-02-04 Michael Albinus * doc/emacs/misc.texi (Interactive Shell): Refer to node "Minibuffer File" for hints how to type remote file names effectively. 2018-02-04 Eli Zaretskii Yet another round of fixing the Emacs manual * doc/emacs/cmdargs.texi (Action Arguments): Rearrange text describing what happens when Emacs is invoked with several file arguments. Suggested by Grant Rettke in emacs-manual-bugs@gnu.org. * doc/emacs/xresources.texi (GTK styles): * doc/emacs/mini.texi (Passwords): * doc/emacs/frames.texi (Scroll Bars): Use "cannot" instead of "can not". * doc/emacs/macos.texi (Mac / GNUstep Basics): Clarify the effect of ns-right-alternate-modifier when its value is 'none'. Suggested by Wanderson Ferreira in emacs-manual-bugs@gnu.org. * doc/emacs/calendar.texi (Importing Diary, Appointments): Now sub-sections of Diary. * doc/emacs/emacs.texi (Top): * doc/emacs/calendar.texi (Diary): Adjust menus to the above change. Suggested by Isaac Carter in emacs-manual-bugs@gnu.org. * doc/emacs/anti.texi (Antinews): Fix grammar. 2018-02-04 Alan Mackenzie * etc/NEWS: Expunge the solecism "allow(s)" + infinitive 2018-02-04 Martin Rudalics Two minor fixes in Antinews * doc/emacs/anti.texi (Antinews): Two minor fixes. 2018-02-03 Juri Linkov * etc/NEWS: Rename image-dired-thumb-job-limit to image-dired-queue-active-limit (bug#30279) 2018-02-03 Basil L. Contovounesios * lisp/simple.el (async-shell-command, shell-command): Fix grammar 2018-02-03 Basil L. Contovounesios Fix deferred display of async shell-command buffers * lisp/simple.el (shell-command): Display async shell buffer on process output for every, not just first, command invocation. Check buffer liveness, not name, before displaying. (bug#30213, bug#30280) 2018-02-03 Eli Zaretskii Mention remote file name completion in Emacs manual * doc/emacs/mini.texi (Minibuffer File): Describe the behavior of "//" with remote file names. (Bug#29149) 2018-02-03 Eli Zaretskii Yest another round of manual copyedits * doc/emacs/fixit.texi (Transpose, Spelling): Minor stylistic changes. Suggested by myq larson in emacs-manual-bugs@gnu.org. * doc/emacs/calendar.texi (Appointments, Time Intervals): Mention relevant Org features. Suggested by Alex Branham in emacs-manual-bugs@gnu.org. * doc/emacs/dired.texi (Operating on Files) (Shell Commands in Dired, Image-Dired): Minor stylistic edits. Suggested by Francis Wright in emacs-manual-bugs@gnu.org. * doc/emacs/commands.texi (User Input): Explain "C-M-a". Suggested by Martin Luethi in emacs-manual-bugs@gnu.org. 2018-02-03 Eli Zaretskii Update xdisp.c commentary * src/xdisp.c: Update commentary regarding "asynchronous" entry into redisplay. (Bug#30182) 2018-02-03 Michael Albinus Fix Bug#30324 * lisp/net/rlogin.el (rlogin, rlogin-directory-tracking-mode): Adapt to changed remote file name syntax. (Bug#30324) 2018-02-03 Glenn Morris Recognize Org as builtin package (bug#30310) * lisp/org/org.el: Add Version header so detected as builtin package. * test/lisp/org/org-tests.el: New file. 2018-02-02 Eli Zaretskii Another round of manual fixups * doc/emacs/killing.texi (Killing by Lines): Clarify wording. Reported by David Bonnafous in emacs-manual-bugs@gnu.org. * doc/emacs/windows.texi (Other Window): Improve wording. Reported by Rasmus Sjostrom in emacs-manual-bugs@gnu.org. * doc/emacs/display.texi (Display Custom): Mention that line numbers are not displayed in the minibuffer and tooltips. * doc/emacs/mini.texi (Basic Minibuffer): Improve wording. * doc/emacs/regs.texi (Registers): More comma removal. Suggested by "root@vxid.pw root@vxid.pw" in emacs-manual-bugs@gnu.org. * doc/emacs/display.texi (Auto Scrolling): Fix a typo. Reported by Kevin Foley in emacs-manual-bugs@gnu.org. * doc/emacs/display.texi (Scrolling): Fix grammar. (Horizontal Scrolling): Mention reasonable limits for hscroll-step float values. Suggested by Jerome Truong in emacs-manual-bugs@gnu.org. * doc/emacs/mini.texi (Minibuffer Edit): Add a missing comma. * doc/emacs/basic.texi (Position Info, Arguments, Repeating): Remove redundant commas. Suggested by oldgaro in emacs-manual-bugs@gnu.org. * doc/emacs/kmacro.texi (Save Keyboard Macro): Clarify wording. Suggested by clemens.radermacher@posteo.de in emacs-manual-bugs@gnu.org. * doc/emacs/building.texi (Compilation Mode): Improve and simplify wording. Suggested by drone in emacs-manual-bugs@gnu.org. * doc/emacs/dired.texi (Dired Enter): Clarify wording. (Dired Deletion): Fix a typo. (Marks vs Flags): Mention that M-DEL in Dired asks for the mark character. Fix typos. * doc/emacs/basic.texi (Moving Point, Erasing, Basic Undo) (Arguments): Some additional information about keys. Reported by Francis Wright in emacs-manual-bugs@gnu.org. 2018-02-02 Basil L. Contovounesios (tiny change) * doc/lispref/customize.texi (Custom Themes): Clarify .el preference. https://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00824.html. 2018-02-02 Eli Zaretskii * doc/emacs/entering.texi (Entering Emacs): Another wording fix. 2018-02-02 Noam Postavsky * doc/lispref/functions.texi (Inline Functions): Fix typo (Bug#30238). * lisp/imenu.el (imenu-generic-expression): Rephrase doc (Bug#30294). 2018-02-01 Eli Zaretskii Fix last change of @key markup * doc/lispref/display.texi (Specified Space): * doc/emacs/programs.texi (C Modes): * doc/emacs/killing.texi (Rectangles): * doc/emacs/emacs.texi (Top): * doc/emacs/display.texi (Useless Whitespace): Don't use @key markup for characters and commands, only for keys. 2018-02-01 Eli Zaretskii * doc/emacs/entering.texi (Entering Emacs): Fix markup. 2018-02-01 Michael Albinus Revert a1bbc49015 (Bug#30243), do not merge * lisp/files.el: * test/lisp/net/tramp-tests.el: Revert a1bbc49015. (Bug#30243) 2018-01-31 Michael Albinus Use @key{} where it is missing in the manuals 2018-01-31 Eli Zaretskii Another round of manual fixes from proofreading * doc/emacs/search.texi (Incremental Search) (Nonincremental Search): Mention the menu bar and fix typos. Reported by David Bonnafous in emacs-manual-bugs@gnu.org. * doc/emacs/building.texi (Compilation): Improve wording. Suggested by drone in emacs-manual-bugs@gnu.org. * doc/emacs/kmacro.texi (Basic Keyboard Macro): Clarify text. Suggested by Robert Pluim in emacs-manual-bugs@gnu.org. * doc/emacs/display.texi (Highlight Interactively, Fringes): Improve wording. Suggested by Justin Heyes-Jones in emacs-manual-bugs@gnu.org. * doc/emacs/commands.texi (User Input, Commands): Add missing commas. * doc/emacs/screen.texi (Menu Bar): Mention keyboard keys to navigate menus. Suggested by oldgaro in emacs-manual-bugs@gnu.org. * doc/emacs/search.texi (Not Exiting Isearch): Fix a typo. Reported by "Kocken, I.J. (Ilja)" in emacs-manual-bugs@gnu.org. * doc/emacs/basic.texi (Inserting Text): Mention one more label of RET. Suggested by Francis Wright in emacs-manual-bugs@gnu.org. * doc/emacs/text.texi (Paragraphs): Clarify text. Reported by Marcin Borkowski in emacs-manual-bugs@gnu.org. * doc/emacs/maintaining.texi (Introduction to VC) (Why Version Control?, VCS Merging): Fix typos and section capitalization. Suggested by "R. P. Dillon" in emacs-manual-bugs@gnu.org. * doc/emacs/modes.texi (Major Modes, Choosing Modes): Fix typos. Reported by clemens.radermacher@posteo.de in emacs-manual-bugs@gnu.org. 2018-01-31 Eli Zaretskii * doc/emacs/entering.texi (Entering Emacs): Fix last change. 2018-01-31 Martin Rudalics Document 'window-at-side-p' in the Elisp manual * doc/lispref/windows.texi (Windows and Frames): Document 'window-at-side-p'. 2018-01-31 Noam Postavsky Document external-debugging-output in the Elisp Manual (Bug#24051) * doc/lispref/streams.texi (Output Streams): List external-debugging-output. * src/print.c (Fexternal_debugging_output): Quote `print' in docstring. 2018-01-31 Noam Postavsky Fix scroll-margin docstring (Bug#13791) * src/xdisp.c (syms_of_xdisp) : Explain that entering the margin may trigger any sort of auto scrolling, not recentering specifically. 2018-01-31 Noam Postavsky Clarify that `ansi-term' is almost the same as `term' (Bug#18106) * lisp/term.el (ansi-term): Clarify that it's almost the same as `term'. 2018-01-31 Noam Postavsky Update manual description of locate-file (Bug#23650) * doc/lispref/files.texi (Locating Files): Add example of predicate when searching for a directory. 2018-01-31 Noam Postavsky Clarify effect of print-gensym (Bug#27776) * src/print.c (syms_of_print) : Clarify that use of #N# and #N= constructs depends on the value of `print-circle'. 2018-01-31 Noam Postavsky * lisp/custom.el (defcustom): Fix docstring (Bug#27891). 2018-01-31 Noam Postavsky Define cl-type-definition button type as needed (Bug#28899) * lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor): Require `cl-extra' before using the `cl-type-definition' button type. 2018-01-31 Noam Postavsky Emphasize that GPG passphrase caching is temporary (Bug#29907) * doc/misc/epa.texi (Caching Passphrases): Clarify that caching is temporary. (GnuPG version compatibility): Fix typo. 2018-01-30 Alan Mackenzie Fix @examples in cc-mode.info, where lines were getting glued together. This happened because of false @c's in macro lines. * doc/misc/cc-mode.texi (Line-up Functions): Remove the unneeded @c from macros sssTBasicOffset, sssTsssTBasicOffset, and hereFn. 2018-01-30 Eli Zaretskii Minor change in "Mode Line" section of Emacs manual * doc/emacs/screen.texi (Mode Line): Mention tooltips shown when hovering the mouse over the mode line. Suggested by Eduardo Mercovich in emacs-manual-bugs@gnu.org. 2018-01-30 Eli Zaretskii More fixes in the Emacs manual * doc/emacs/screen.texi (Mode Line): Fix markup and cross-references. (Menu Bar): Correct inaccurate description. * doc/emacs/macos.texi (Mac OS / GNUstep, Mac / GNUstep Events): * doc/emacs/frames.texi (Scroll Bars): * doc/emacs/emacs.texi (Top): * doc/emacs/ack.texi (Acknowledgments): Fix spelling of "macOS". * doc/emacs/misc.texi (Invoking emacsclient) (emacsclient Options): Fix markup of 'emacsclient'. Suggested by Michael Albinus in emacs-manual-bugs@gnu.org. 2018-01-30 Eli Zaretskii Minor copyedits in "Distribution" chapter of the Emacs manual * doc/emacs/emacs.texi (Distrib): Minor wording changes. Suggested by oldgaro in emacs-manual-bugs@gnu.org. 2018-01-30 Eli Zaretskii Minor copyedits in "Entering" chapter of Emacs manual. * doc/emacs/entering.texi (Entering Emacs): Add a cross-reference to MS-Windows startup procedures. Clarify wording. Suggested by Francis Wright in emacs-manual-bugs@gnu.org. 2018-01-30 Eli Zaretskii Minor wording change in the Emacs manual * doc/emacs/screen.texi (Screen): Minor wording change. Suggested by Wesley Ellis in emacs-manual-bugs@gnu.org. 2018-01-30 Eli Zaretskii Fix a typo in the Emacs manual * doc/emacs/custom.texi (Customization Groups): Fix a typo. Reported by Jonathan Kyle Mitchell in emacs-manual-bugs@gnu.org. 2018-01-30 Eli Zaretskii Improve the "Basic" chapter of the Emacs manual * doc/emacs/basic.texi (Inserting Text): De-confuse text. (Position Info): Add a cross-reference to where display-line-numbers-mode is described. Reported by Joshua Branson in emacs-manual-bugs@gnu.org. 2018-01-30 Eli Zaretskii Resurrect lost text in lispref * doc/lispref/files.texi (File Attributes): Resurrect inadvertently lost text. 2018-01-30 Philipp Stephani * lisp/emacs-lisp/rx.el (rx): Fix the definition of 'blank'. 2018-01-29 Paul Eggert Proofread os.texi and files.texi 2018-01-29 Eli Zaretskii Minor improvements in the "International" chapter of Emacs manual * doc/emacs/mule.texi (File Name Coding): Stop enumerating all the versions of MS-Windows. (Modifying Fontsets, Unibyte Mode, Bidirectional Editing): Improve wording. Reported by Francis Wright in emacs-manual-bugs@gnu.org. 2018-01-29 Eli Zaretskii Minor improvement in "Text" chapter of Emacs manual * doc/emacs/text.texi (Words): Improve wording. Reported by Marcin Borkowski in http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00784.html. 2018-01-28 Martin Rudalics Fix some issues in the emacs/lispref manuals * doc/emacs/basic.texi (Continuation Lines): * doc/emacs/building.texi (GDB User Interface Layout): * doc/emacs/dired.texi (Misc Dired Features): * doc/emacs/maintaining.texi (Identifier Search): * doc/emacs/mark.texi (Using Region): * doc/emacs/misc.texi (Document View, DocView Conversion): * doc/emacs/modes.texi (Major Modes): * doc/emacs/mule.texi (Input Methods, Unibyte Mode): * doc/emacs/sending.texi (Mail Methods): Replace @code by @kbd. * doc/emacs/frames.texi (Text-Only Mouse): * doc/lispref/maps.texi (Standard Keymaps): Replace @kbd by @key. * doc/lispref/compile.texi (Compiler Errors): Write non-@code{nil} instead of non-nil. * doc/lispref/debugging.texi (Internals of Debugger): 'backtrace' is not a command. 'debugger-stack-frame-as-list' is an option. * doc/lispref/display.texi (Size of Displayed Text): 'window-lines-pixel-dimensions' has a last argument 'left'. * doc/lispref/display.texi (Attribute Functions): 'set-face-underline' and 'set-face-inverse-video' are commands. (Tooltips): 'tooltip-frame-parameters' is an option. (Bidirectional Display): 'bidi-paragraph-direction' is an option. * doc/lispref/frames.texi (Cursor Parameters): 'cursor-type' is an option. (Input Focus): Argument FRAME of 'x-focus-frame' is not optional. (Child Frames): Both arguments of 'frame-ancestor-p' are non-optional. 'iconify-child-frame' is an option. * doc/lispref/os.texi (Killing Emacs): 'kill-emacs-query-functions' is an option. * doc/lispref/windows.texi (Mouse Window Auto-selection): 'mouse-autoselect-window' is an option. 2018-01-28 Eli Zaretskii Fix multiple spaces in Emacs manual * doc/emacs/search.texi (Lax Search): Fix multiple consecutive spaces in printed manual. 2018-01-28 Eli Zaretskii * lisp/files.el (save-some-buffers): Doc fix. (Bug#30215) 2018-01-28 Eli Zaretskii Adjudicate comments to "International" chapter of Emacs manual * doc/emacs/mule.texi (International Chars) (Language Environments, Input Methods, Defining Fontsets) (Modifying Fontsets): Minor wording changes and typo fixes. Reported by Francis Wright in emacs-manual-bugs@gnu.org. 2018-01-28 Noam Postavsky Revert "Signal error for symbol names with strange quotes (Bug#2967)" That commit did not make the corresponding change to printing, thus breaking the (eq (read (prin1-to-string SYM)) SYM) invariant for those symbols. It's too late in the release cycle to change printing behavior, therefore revert the reader change. Don't merge to master, the print function will be updated there (see "Fix round tripping of read->print for symbols with strange quotes"). 2018-01-27 Alan Mackenzie Allow read-passwd to hide characters inserted by C-y. (Security fix.) This fixes bug #30186. The with-silent-modifications was there to prevent records of text property manipulations being put into buffer-undo-list. These had been causing a significant slowdown in CC Mode with C-_ after a large C-y. This CC Mode problem has since been solved by a different workaround. * lisp/subr.el (remove-yank-excluded-properties): Remove the invocation of with-silent-modifications around the text property manipulations. 2018-01-27 Eli Zaretskii * etc/PROBLEMS: Document issues with double-buffering. (Bug#30088) 2018-01-27 Charles A. Roelli * lisp/window.el (window-largest-empty-rectangle): Fix grammar. 2018-01-27 Eli Zaretskii Minor changes in the Emacs manual * doc/emacs/search.texi (Search Customizations): Minor wording change. * doc/emacs/files.texi (Customize Save): Add a cross-reference for batch mode. 2018-01-27 Eli Zaretskii Improve the "Files" chapter of the Emacs manual * doc/emacs/files.texi (File Shadowing): Rearrange text to explain the notion of shadowing before describing the commands. Suggested by Will Korteland in emacs-manual-bugs@gnu.org. 2018-01-27 Eli Zaretskii Improve the "Search" chapter of the Emacs manual * doc/emacs/search.texi (Regexps, Regexp Backslash): Improve and clarify wording. (Search Customizations): Fix a typo. Reported by Will Korteland in emacs-manual-bugs@gnu.org. 2018-01-27 Eli Zaretskii * src/indent.c (Findent_to): Doc fix. (Bug#30260) 2018-01-27 Eli Zaretskii Improve documentation of 'edebug-defun' * doc/lispref/edebug.texi (Instrumenting): Document a workaround for a failure to instrument due to unknown macros. (Bug#30243) (Bug#10577) 2018-01-27 Eli Zaretskii Mention crashes due to Noto Serif Kannada fonts * etc/PROBLEMS: Mention crashes due to Noto Serif Kannada fonts, and the respective workarounds. (Bug#30193) 2018-01-27 Noam Postavsky * doc/lispref/searching.texi: Document regexp repetition limit. * src/syntax.c (char-syntax): Warn about ignoring text properties (Bug#22765). 2018-01-27 Noam Postavsky Load mm-util as needed for url-file and url-data (Bug#30258) * lisp/url/url-file.el (url-file): * lisp/url/url-misc.el (url-data): Require `mm-util' before calling `mm-disable-multibyte'. * test/lisp/url/url-file-resources/file.txt: * test/lisp/url/url-file-tests.el: * test/lisp/url/url-misc-tests.el: New tests. 2018-01-26 Eli Zaretskii Another minor copyedit in the manual's "Scroll Bars" * doc/emacs/frames.texi (Scroll Bars): Mention that up/down and left/right buttons may be absent from the toolkit scroll bars. Reported by Robert Pluim in emacs-manual-bugs@gnu.org. 2018-01-26 Eli Zaretskii Minor fix in documentation of 'equal' * doc/lispref/objects.texi (Equality Predicates): Correct the conditions for equality of unibyte and multibyte strings. (Bug#30218) 2018-01-26 Eli Zaretskii * lisp/dired-x.el (dired-guess-shell-alist-user): Doc fix. (Bug#30192) 2018-01-26 Eli Zaretskii Minor rewording in Emacs manual's "Help Mode" node * doc/emacs/help.texi (Help Mode): Minor rewording of description of 'help-follow-symbol'. Suggested by Richard Stallman in emacs-manual-bugs@gnu.org. 2018-01-26 Eli Zaretskii Fixes for Emacs manual in frames.texi * doc/emacs/frames.texi (Scroll Bars, Mouse Commands) (Window Dividers): Minor clarifications and spelling/markup changes. Suggested by Robert Pluim in emacs-manual-bugs@gnu.org. 2018-01-24 Glenn Morris * doc/misc/cl.texi (Efficiency Concerns): Fix 2012-10-27 typo. 2018-01-24 Robert Pluim Fix a few issues with latest GTK scaling changes * src/xfns.c (Fx_display_monitor_attributes_list): Call gdk_screen_get_monitor_scale_factor only for GTK versions 3.10..3.21. * src/xterm.c (x_set_offset): Call xg_get_scale for GTK only. 2018-01-24 Robert Pluim Use scaled coordinates when calling into GTK This is part two of a two part fix for the GTK scaling problems. See the thread starting at http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00372.html for an explanation of why it has been added to Emacs 26. * src/gtkutil.c (xg_set_geometry): Scale down the coordinates that we pass to gtk_window_move and to gtk_window_parse_geometry. * src/xterm.c (x_set_offset): Likewise. 2018-01-24 Robert Pluim Scale monitor dimensions obtained from GTK This is part one of a two part fix for the GTK scaling problems. See the thread starting at http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00372.html for an explanation of why it has been added to Emacs 26. * src/xfns.c (Fx_display_monitor_attributes_list): Take scaling factor into account when using GTK to query the monitor dimensions, which allows frameset-restore to position frames correctly. 2018-01-22 Rasmus Update Org to v9.1.6 Please note this is a bugfix release. See etc/ORG-NEWS for details. 2018-01-22 Aaron Jensen Use text-pixels values only when saving framesets (Bug#30141) * lisp/frameset.el (frameset-persistent-filter-alist): Specify that text-pixels values are by default only saved by framesets so the parameter is not set when restoring (Bug#30141). 2018-01-21 Eli Zaretskii Minor improvement in section "Pages" of the usere manual * doc/emacs/text.texi (Pages): Improve wording. Suggested by Will Korteland in emacs-manual-bugs@gnu.org. 2018-01-21 Eli Zaretskii Minor improvements in user manual * doc/emacs/trouble.texi (Emergency Escape, Contributing): Clarify text. Suggested by Jonathan Kyle Mitchell in emacs-manual-bugs@gnu.org 2018-01-21 Eli Zaretskii Improve the "Mark" chapter of the user manual * doc/emacs/mark.texi (Setting Mark, Marking Objects): Improve and clarify wording. Suggested by John Cummings in emacs-manual-bugs@gnu.org. 2018-01-21 Eli Zaretskii Improve the "Buffers" chapter of the user manual * doc/emacs/buffers.texi (Several Buffers): Correct description of prefix arguments. Clarify "bury". (Buffer Menus): Clarify wording. Reported by John Cummings in emacs-manual-bugs@gnu.org. 2018-01-21 tino calancha * lisp/term.el (term-send-input): Fix text duplication in docstring 2018-01-20 Eli Zaretskii Improve "Buffers" in the user manual Suggested by John Cummings in emacs-manual-bugs@gnu.org: * doc/emacs/buffers.texi (Select Buffer): Add cross-references to "Windows" and "Frames". (Misc Buffer, Kill Buffer): Use BUFFER consistently in commands that accept buffer names. (Select Buffer): Improve description of "M-g M-g". Improve wording. (Misc Buffer, Kill Buffer): Improve wording. (Kill Buffer): Fix the response required by kill-some-buffers. Mention customizable options that control what clean-buffer-list does. (Several Buffers): More detail about 'Buffer-menu-unmark-all-buffers'. 2018-01-20 Eli Zaretskii Don't mention 'vc-stay-local' in the user manual * doc/emacs/vc1-xtra.texi (CVS Options): * doc/emacs/maintaining.texi (VC Directory Buffer): Remove references to 'vc-stay-local', which no longer exists. (Bug#30138) 2018-01-20 Eli Zaretskii Fix a typo in calendar.texi * doc/emacs/calendar.texi (Writing Calendar Files): Capitalize "Filofax". Reported by Will Korteland in emacs-manual-bugs@gnu.org. 2018-01-20 Eli Zaretskii Minor improvement in wording of the Emacs manual * doc/emacs/killing.texi (CUA Bindings): Improve wording. Suggested by Will Korteland in emacs-manual-bugs@gnu.org. 2018-01-20 Eli Zaretskii Revert "Fix tempfile creation when byte compiling" This reverts commit 4fd446e9f65e5531b18d4a0c5e08a6eeabc292d8: * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Put tempfile next to the target file, as was the original intent. 2018-01-19 Paul Eggert Fix tempfile creation when byte compiling This improves on the recent fix for master failing to build on FreeBSD. Suggested by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2018-01/msg00600.html * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Put tempfile next to the target file, as was the original intent. 2018-01-19 Eli Zaretskii Improve the Emacs manual as suggested in emacs-manual-bugs * doc/emacs/killing.texi (Deletion and Killing): Add cross-reference to "Kill Ring". * doc/emacs/help.texi (Help Mode, Package Keywords): Improve wording. Suggested by Will Korteland in emacs-manual-bugs@gnu.org. 2018-01-19 Stefan Monnier * lisp/emacs-lisp/bytecomp.el: Tweak last change (byte-compile-file): Move comment closer to the code it describes. 2018-01-19 Eli Zaretskii Unbreak building Emacs on FreeBSD * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Don't create the temporary file under temporary-file-directory if the file being compiled is specified by an absolute file name. This avoids problems with ACL copying from temporary-file-directory on FreeBSD. For the details, see http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00513.html. 2018-01-19 Eli Zaretskii Don't unnecessarily use non-ASCII characters in C sources * src/xwidget.c (webkit_javascript_finished_cb): * src/gtkutil.c (xg_check_special_colors): * src/emacs-module.c (module_make_string): * src/alloc.c (SET_STACK_TOP_ADDRESS): Don't use non-ASCII quote characters. 2018-01-19 Eli Zaretskii Portability fixes in emacs-module-tests * test/Makefile.in (abs_top_srcdir): Add variable, needed by CPPFLAGS. * test/data/emacs-module/mod-test.c: Include . (pT, pZ, T_TYPE, Z_TYPE): Compatibility macros, for systems that don't support %td and %zu format specs. (emacs_module_init): Use compatibility macros to make the error messages print meaningful values (and avoid compiler warnings). 2018-01-19 Noam Postavsky Add tests for term.el * lisp/term.el (term-mode): Add `name' attribute to window-adjust-process-window-size-function value, so that it can be removed easily by tests. * test/lisp/term-tests.el: New tests. 2018-01-19 Callum Cameron (tiny change) Handle split AnSiT messages for term.el (Bug#17231) Check to see if there is an incomplete command at the end of term-emulate-terminal's input string, and, if so, save it so the whole command can be processed when the next string arrives. * lisp/term.el (term-partial-ansi-terminal-message): New variable. (term-mode): Make it buffer local. (term-handle-ansi-terminal-messages): Prepend it to the received message, and set it if a partial message was received. Do not merge to master, it will be solved differently there, see "Switch term.el to lexical binding, and clean up code a bit". 2018-01-19 Glenn Morris * configure.ac (emacs_config_features): Add threads. 2018-01-18 Noam Postavsky Handle case-insensitive filenames for load-path shadows (Bug#5845) * lisp/emacs-lisp/shadow.el (load-path-shadows-find): Check for shadowing with case-insensitive matching for files of case-insensitive directories (as determined by `file-name-case-insensitive-p'). * test/lisp/emacs-lisp/shadow-tests.el: New test. * test/lisp/emacs-lisp/shadow-resources/p1/foo.el: * test/lisp/emacs-lisp/shadow-resources/p2/FOO.el: New test files. 2018-01-18 Alan Mackenzie CC Mode: stop distinguishing brace blocks from defun blocks by content. Don't merge to master; this is a quick fix for the emacs-26 branch. This is essentially a reversion of the patch from 2017-11-10 which attempted to handle C99's compound literals. The bug here was triggered when a defun block contained a declaration ending in a comma, yet without a semicolon. * lisp/progmodes/cc-engine.el (c-guess-basic-syntax): At the CASE 9 test, remove from the `or' form the test of a block's contents. 2018-01-17 Philipp Stephani Use recommended long options syntax in man page * doc/man/emacs.1.in: Specify equals sign for long options, as recommended in the manual. 2018-01-17 Glenn Morris An overdue update of GNUstep emacs.tiff * nextstep/GNUstep/Emacs.base/Resources/emacs.tiff: Update to the Emacs 25 icon. Converted from hicolor/scalable/apps/emacs.svg using Gimp. * nextstep/GNUstep/Emacs.base/Resources/README: Update. 2018-01-17 Glenn Morris Add some test skip conditions * test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-bug9726) (vc-bzr-test-bug9781): Skip if bzr is faulty. * test/src/thread-tests.el: Skip if not compiled with threads. 2018-01-17 Lars Ingebrigtsen Add documentation to ecomplete.el * lisp/ecomplete.el: Add doc strings and document the format. 2018-01-17 Glenn Morris * admin/authors.el (authors-aliases): Tighten more entries. 2018-01-17 Glenn Morris Small startup fix for current-load-list * lisp/startup.el (command-line): Avoid current-load-list being non-nil after startup ends. 2018-01-17 Glenn Morris authors-aliases is based on regexps, not literals * admin/authors.el (authors-aliases): Replace overly-broad entries. 2018-01-15 Charles A. Roelli Remove incorrect documentation in comint.el * lisp/comint.el (comint-interrupt-subjob, comint-kill-subjob) (comint-quit-subjob, comint-stop-subjob): Remove incorrect documentation. (Bug#30079) 2018-01-15 Glenn Morris An overdue update of src/emacs-icon.h * src/emacs-icon.h: Update to the Emacs 25 icon. (Bug#30047) Converted from hicolor/scalable/apps/emacs.svg using Gimp. 2018-01-14 Eli Zaretskii Minor copyedit in ELisp manual * doc/lispref/variables.texi (File Local Variables): Improve wording of last change. 2018-01-14 Shuguang Sun Fix Bug#29149 in dired-aux.el * lisp/dired-aux.el (dired-shell-stuff-it): Handle remote commands on w32 properly. (Bug#29149) 2018-01-14 Michael Albinus Fix Bug#29149 in shell.el * lisp/shell.el (shell): Change order of `file-local-name' and `expand-file-name' calls. Otherwise, the local file name would be extended by a drive letter, even when it is a remote file, seen from w32. (Bug#29149) 2018-01-13 Stefan Monnier * doc/lispref/variables.texi (File Local Variables): Fix last change 2018-01-13 Nicolas Petton * ChangeLog.3: Update Update etc/AUTHORS 2018-01-13 Nicolas Petton Fix an entry in authors-aliases * admin/authors.el (authors-aliases): Replace regexp from "Max", which is too broad, to an email address ("mu@magi.net.ru"). 2018-01-13 Eli Zaretskii Mention trace.el facilities in the ELisp manual * doc/lispref/debugging.texi (Debugging): Mention the trace.el library. 2018-01-13 Eli Zaretskii Improve documentation of safe values of variables * doc/lispref/variables.texi (File Local Variables): Mention the autoload cookie as a means of defining safe values for variables. See http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00261.html for the details. * doc/lispref/compile.texi (Compiler Errors): Document 'byte-compile-error-on-warn'. 2018-01-13 Eli Zaretskii Improve the Emacs manual's "Misc" node * doc/emacs/misc.texi (Gnus): A more descriptive section name. (Invoking emacsclient): Mention how to avoid errors when there's no Emacs server. (EWW, Embedded WebKit Widgets): Now subsections under "Hyperlinking and Web Navigation Features". (Amusements): Add "games" to the section name. Suggested by Alex Branham in emacs-manual-bugs@gnu.org. * doc/emacs/emacs.texi (Top): Adjust the top-level menus to the above changes. * doc/lispref/os.texi (Security Considerations): Fix typos. 2018-01-13 Martin Rudalics In nsterm.m use FRAME_NS_P instead of FRAME_X_P (Bug#30019) * src/nsterm.m (x_set_parent_frame): Call FRAME_NS_P instead of FRAME_X_P (Bug#30019). 2018-01-12 Nicolas Petton Bump Emacs version to 26.0.91 * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version. 2018-01-12 Nicolas Petton * ChangeLog.3: Update 2018-01-12 Nicolas Petton Update authors * admin/authors.el (authors-aliases, authors-valid-file-names): Additions. * etc/AUTHORS: Update AUTHORS file. 2018-01-12 Katsumi Yamaoka * lisp/gnus/message.el (message-do-auto-fill): Prevent do-auto-fill from adding extra citation mark (bug#29767, but it is a different bug). 2018-01-11 Eli Zaretskii Improve documentation of etags * doc/emacs/maintaining.texi (Tag Syntax, Create Tags Table): Improve documentation of etags options and of source language detection. 2018-01-11 Eli Zaretskii Teach etags new interpreters for some languages * lib-src/etags.c (Erlang_interpreters, Lua_interpreters) (Prolog_interpreters, Python_interpreters, Ruby_interpreters): New static variables. (lang_names): Use them to set interpreters for Erlang, Lua, Prolog, Python, and Ruby. (find_entries): Support "/usr/bin/env FOO" form of specifying an interpreter. * test/manual/etags/perl-src/htlmify-cystic: Modify the has-bang line to test the "env FOO" interpreter spec. (Bug#30075) * 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 test files. 2018-01-11 Stefan Monnier * lisp/emacs-lisp/generator.el (iter-defun): Add 'doc-string' prop. * lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#29767 2018-01-10 Charles A. Roelli Improve documentation of fill-separate-heterogeneous-words-with-space * lisp/textmodes/fill.el (fill-separate-heterogeneous-words-with-space): Fix grammar. 2018-01-10 Eli Zaretskii Fix documentation of some x-* functions * lisp/term/pc-win.el (x-display-pixel-width) (x-display-pixel-height, x-display-planes) (x-display-color-cells, x-server-max-request-size) (x-server-vendor, x-server-version, x-display-screens) (x-display-mm-height, x-display-mm-width) (x-display-backing-store, x-display-visual-class): Provide doc strings, so that 'makedoc' produces non-empty documentation in etc/DOC for these functions. (Bug#30068) 2018-01-10 Philipp Stephani Inherit query-on-exit flag to stderr process (Bug#30031) * src/process.c (Fmake_process): Have the pipe process honor the parent's query-on-exit flag. * test/src/process-tests.el (make-process/noquery-stderr): New test. 2018-01-10 Michael Albinus Fix Bug#30057 * test/lisp/filenotify-tests.el (file-notify--test-tmpdir): New defvar. (file-notify--test-cleanup, file-notify--test-make-temp-name) (file-notify-test01-add-watch, file-notify-test03-events) (file-notify-test05-file-validity) (file-notify-test09-watched-file-in-watched-dir) (file-notify-test10-sufficient-resources): Use it. (Bug#30057) 2018-01-10 Glenn Morris Tag some unstable tests, and skip by default (bug#24503) * Makefile.in (check-all): New phony target. * test/Makefile.in (SELECTOR_DEFAULT, SELECTOR_EXPENSIVE): Also skip unstable tests. (SELECTOR_ALL): New variable. (check-all): New phony target. * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el (eieio-test-method-order-list-6): * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test-37-obsolete-name-in-constructor): Mark as unstable rather than skipping on hydra.nixos.org. 2018-01-10 Paul Eggert Merge from Gnulib This incorporates: 2018-01-05 maint: Add encoding marker for Emacs to non-ASCII sources 2018-01-04 update-copyright: Handle use of © 2018-01-04 pthread_sigmask: Avoid compilation error on mingw 2018-01-02 stat-time: silence -Wunused-parameter regression * build-aux/config.guess, build-aux/config.sub: * build-aux/update-copyright, doc/misc/texinfo.tex, lib/gnulib.mk.in: * lib/md5.c, lib/md5.h, lib/sha1.c, lib/sha1.h, lib/sha256.c: * lib/sha256.h, lib/sha512.c, lib/sha512.h, lib/signal.in.h: * lib/stat-time.h: Copy from Gnulib, or regenerate. 2018-01-09 Glenn Morris * lisp/epg.el (epg-start-sign): Replace obsolete functions. 2018-01-09 Glenn Morris Small fix for erc-logging-enabled * lisp/erc/erc-log.el (erc-logging-enabled): Respect buffer-locality of erc-enable-logging variable. 2018-01-09 Glenn Morris Quieten semantic normal usage * lisp/cedet/semantic/lex.el (semantic-flex): Mark obsolete at compile time in the normal way, not at run-time. (Bug#30035) 2018-01-08 Eli Zaretskii Avoid irrelevant hyperlink in doc string of 'epa-pinentry-mode' * lisp/epa.el (epa-pinentry-mode): Doc fix. (Bug#30025) 2018-01-08 Michael Albinus * doc/misc/tramp.texi (Remote processes): Mention gdb restrictions with I/O. 2018-01-08 Noam Postavsky Query background for gnome terminal version 3.22 (Bug#29716) * lisp/term/xterm.el (xterm--version-handler): Use xterm--report-background-handler for terminals reporting minor version 4000 and above. 2018-01-07 Tak Kunihiro Make pixel-wise scrolling less laggy * lisp/pixel-scroll.el (pixel-dead-time, pixel-last-scroll-time): New variables. (pixel-scroll-up, pixel-scroll-down): Invoke 'scroll-up' or 'scroll-down' when called within 'pixel-dead-time'. (Bug#29737) 2018-01-07 Alan Third Fix child frame placement issues (bug#29953) * src/nsterm.h (NS_PARENT_WINDOW_LEFT_POS): (NS_PARENT_WINDOW_TOP_POS): Get the parent frame through the frame struct as invisible child windows are detached from their parents in NS. * src/nsterm.m (x_set_offset): Offscreen frames have `nil' screen value, so handle that gracefully. Child frames with negative left and top should be positioned relative to the bottom right of the parent frame. 2018-01-06 Alan Mackenzie Describe the precise interaction of complex primitives with the change hooks * doc/lispref/text.texi (Change Hooks): Document that most buffer changing primitives call before- and after-change-functions in balanced pairs, but that some complex primitives call b-c-f once, and a-c-f zero, one, or several times. 2018-01-06 Eli Zaretskii Fix valgrind report in call-interactively * src/callint.c (Fcall_interactively): Don't try to access more bytes than are available in the interactive spec. (Bug#30004) 2018-01-06 Eli Zaretskii * src/editfns.c (Fsave_excursion): Doc fix. (Bug#30001) 2018-01-06 Alan Mackenzie Fix mark-defun when there's no spaces between successive defuns. The problem was a parse-partial-sexp call which tried to use the STOPBEFORE argument to detect non-syntactic WS. This fails on a "}", which does not begin a sexp. * lisp/emacs-lisp/lisp.el (beginning-of-defun--in-emptyish-line-p): Enhance to handle BOL being in a string. (beginning-of-defun-comments): Call the above function in place of the call to parse-partial-sexp. 2018-01-06 Eli Zaretskii Fix Dired display and operations on file names with raw bytes * src/coding.c (decode_coding): When flushing remaining raw bytes from multibyte text, copy 2-byte forms of eight-bit-* characters as single characters, not as 2 raw bytes. (Bug#29189) 2018-01-05 Eli Zaretskii Improve documentation of 'gdb-many-windows' * doc/emacs/building.texi (GDB User Interface Layout): Add advice for using a separate frame for 'gdb-many-windows'. 2018-01-05 Eli Zaretskii Fix failures in smerge-mode on MS-Windows * lisp/vc/smerge-mode.el (smerge--refine-chopup-region): Use utf-8-emacs-unix, not emacs-internal, to make the forced EOL convention explicit. (smerge-refine-regions): Use utf-8-emacs instead of emacs-internal, to allow decoding of non-Unix EOL conventions. (Bug#29916) 2018-01-04 Stephen Leake Fix description of 'struct' generic function specializer Backport: * doc/lispref/functions.texi (Generic Functions): Fix description of 'struct' specializer; it must be the named struct or a child, not a parent. (cherry picked from commit b6add8c7cfc6d36f9dd8ad99be06bd8ab41cc6f8) 2018-01-04 Charles A. Roelli * etc/DEBUG (Getting control to the debugger): Fix grammar. 2018-01-03 Stefan Monnier * lisp/vc/vc.el (vc-region-history): log-view-vc-fileset holds a list! 2018-01-03 Noam Postavsky Don't bind dframe events on load (Bug#29599) * lisp/dframe.el (dframe-setup-hook): New hook. (dframe-set-special-events): New function, containing previous top-level key binding code. (top-level): Add it to dframe-setup-hook. (dframe-frame-mode): Run the hook. 2018-01-02 Eli Zaretskii * lisp/textmodes/picture.el (picture-mode-exit): Doc fix. (Bug#29949) * lisp/textmodes/picture.el (picture-open-line): Doc fix. (Bug#29948) 2018-01-01 Eli Zaretskii Fix description of 'emacs-internal' * doc/lispref/nonascii.texi (Coding System Basics): Correct inaccuracy in description of 'emacs-internal'. (Bug#29916) 2018-01-01 Eli Zaretskii Update PROBLEMS with selection-related issues * etc/PROBLEMS: Update the entry about large selections and klipper. (Bug#29661) 2018-01-01 Ross Donaldson (tiny change) New customization variable for python-mode indentation (Bug#28475) * lisp/progmodes/python.el (python-indent-def-block-scale): New variable. (python-indent--calculate-indentation): Let it control how many indent levels are inserted for multi-line function signatures. 2018-01-01 Alan Third Fix menu keyboard shortcuts on macOS (Bug#29595) * src/nsmenu.m (addItemWithWidgetValue)[NS_IMPL_COCOA]: It looks like macOS 10.13 no longer ignores long modifier strings, so explicitly use an empty string. 2018-01-01 Paul Eggert Fix copyright years by hand These are dates that admin/update-copyright did not update, or updated incorrectly. 2018-01-01 Paul Eggert Update copyright year to 2018 Run admin/update-copyright. 2018-01-01 Paul Eggert Merge from Gnulib This incorporates: 2018-01-01 maint: Run 'make update-copyright' 2017-12-29 Add cross-compilation results for GNU/Hurd. 2017-12-12 explicit_bzero: port to macOS + Clang 9.0.0 2017-12-31 Gemini Lasswell Don't add empty keyboard macro to macro ring (Bug#24992) * lisp/kmacro.el (kmacro-end-call-mouse): Don't save a newly defined macro if it is empty. * test/lisp/kmacro-tests.el (kmacro-tests-end-and-call-macro-mouse): Remove expected failure tag. 2017-12-31 Eli Zaretskii Allow customization of decoding of "man" command * lisp/man.el (Man-coding-system): New defcustom. (Man-start-calling): Use it, and also pay attention to user overriding coding-system-for-read. (Bug#29872) 2017-12-31 Daiki Ueno * etc/NEWS: Add security consideration note on passphrase input 2017-12-29 Eli Zaretskii Fix subtle problem with scroll-down when scroll-margin is nonzero * src/window.c (window_scroll_pixel_based): Account for scroll-margin when scrolling down, i.e. moving window-start towards the beginning of the buffer. Reported by zhang cc in http://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00894.html. 2017-12-29 Eli Zaretskii Fix problems with indexing in User manual * doc/emacs/basic.texi (Continuation Lines, Inserting Text) (Moving Point): * doc/emacs/help.texi (Help Echo, Package Keywords, Help Mode): * doc/emacs/trouble.texi (Quitting): * doc/emacs/mark.texi (Setting Mark, Disabled Transient Mark): * doc/emacs/custom.texi (Modifier Keys, Init Examples) (Creating Custom Themes): * doc/emacs/programs.texi (Program Modes, Expressions, Hideshow) (Basic Indent, Info Lookup, Symbol Completion): * doc/emacs/screen.texi (Echo Area): * doc/emacs/xresources.texi (Table of Resources, GTK Names in Emacs): * doc/emacs/display.texi (Line Truncation, Cursor Display): * doc/emacs/files.texi (File Names, Backup, File Archives): * doc/emacs/dired.texi (Operating on Files, Dired Enter): * doc/emacs/commands.texi (User Input): * doc/emacs/mule.texi (International, Unibyte Mode) (International Chars): * doc/emacs/vc1-xtra.texi (RCS and SCCS, Version Headers) (CVS Options): * doc/emacs/modes.texi (Major Modes, Minor Modes): * doc/emacs/indent.texi (Just Spaces): * doc/emacs/frames.texi (Mouse Avoidance, Mode Line Mouse) (Frame Commands): * doc/emacs/cmdargs.texi (Initial Options): * doc/emacs/abbrevs.texi (Dabbrev Customization): * doc/emacs/mini.texi (Completion Example, Completion Commands): * doc/emacs/calendar.texi (Writing Calendar Files, Calendar Unit Motion) (From Other Calendar): * doc/emacs/regs.texi (Text Registers, Bookmarks): * doc/emacs/buffers.texi (Several Buffers, Select Buffer): * doc/emacs/maintaining.texi (Xref Commands): * doc/emacs/windows.texi (Pop Up Window): * doc/emacs/text.texi (Text, Org Mode): * doc/emacs/killing.texi (Other Kill Commands): * doc/emacs/misc.texi (Document View, Gnus Group Buffer) (Gnus Summary Buffer, Shell Mode): * doc/emacs/cal-xtra.texi (Sexp Diary Entries): Remove or reword redundant identical index entries. * doc/emacs/custom.texi (Mouse Buttons) * doc/emacs/files.texi (Reverting): Fix hyphenation. * doc/emacs/emacs.texi (Top): Improve wording of Index menu items. * doc/emacs/files.texi (File Conveniences): * doc/emacs/programs.texi (MixedCase Words): Make entries that belong to Concept Index be indexed with @cindex. (Bug#29888) 2017-12-29 Alan Mackenzie * lisp/help.el (describe-key): Only (copy-sequence elt) when elt is a list. 2017-12-28 Stefan Monnier * src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846 Don't mess with the lock file when inhibit_modification_hooks is set, just like we do in prepare_to_modify_buffer_1. 2017-12-28 Eli Zaretskii Improve documentation of 'inhibit-modification-hooks' and friends * src/buffer.c (Fset_buffer_modified_p) (Frestore_buffer_modified_p): Doc fixes. * src/insdel.c (syms_of_insdel) : Document in the doc string that this variable also inhibits file locks and active region handling. (Bug#29846) 2017-12-28 David Pathakjee (tiny change) Fix doc string of 'enable-recursive-minibuffers' * src/minibuf.c (syms_of_minibuf) : Doc fix. (Bug#29873) 2017-12-27 Eli Zaretskii Fix documentation of delsel and of killing text * doc/emacs/killing.texi (Appending Kills): Make sure the text with 2 spaces is not broken between 2 lines. * doc/emacs/mark.texi (Using Region): Remove the sentence about delsel mode that describes behavior which exists even without delsel mode turned on. Suggested by Petteri Hintsanen in emacs-manual-bugs@gnu.org. * lisp/delsel.el (delete-selection-mode): Doc fix. 2017-12-27 Glenn Morris * doc/lispref/strings.texi (Case Conversion): Use a TeX font that support ligatures. 2017-12-27 Charles A. Roelli * doc/misc/speedbar.texi (Top): Fix grammar. * lisp/subr.el (with-silent-modifications): Doc fixes. 2017-12-26 Eli Zaretskii Fix curved quotes in printed manual * doc/emacs/text.texi (Quotation Marks): Fix curved quote characters in the printed version of the manual. 2017-12-25 Paul Eggert Say that "gnus-cloud" is a parody name 2017-12-25 Eli Zaretskii More improvements for text.texi * doc/emacs/text.texi (Outline Motion): Avoid unneeded repetition. Suggested by Petteri Hintsanen in emacs-manual-bugs@gnu.org. 2017-12-24 Eli Zaretskii Adjudicate review comments for the "Text" chapter of user manual * doc/emacs/text.texi (Text): Rearrange text for clarity. Add cross-reference to the Org manual. Make the cross-reference to Outline Mode appear in online manuals as well (the conditional was a forgotten remnant from time immemoriam). (Paragraphs): Add a note that 'paragraph-start' and 'paragraph-separate' should not be anchored. (Auto Fill): Remove redundant text. Suggested by Petteri Hintsanen in emacs-manual-bugs@gnu.org. 2017-12-24 Andreas Schwab * lisp/url/url-http.el (url-http-wait-for-headers-change-function): Change message to url-http-debug. 2017-12-24 Alan Mackenzie In C-h k , alert user to existence of any matching down-mouse-event , and instruct her to hold the mouse button to display its documentation. * lisp/help.el (help-downify-mouse-event-type): New function. (help-read-key-sequence, describe-key): handle double-click-time being nil or t. (describe-key): Print out instructions for displaying documentation of matching mouse down key sequence command when such exists. 2017-12-23 Andreas Schwab * net/eww.el (eww): Handle URLs without host part. 2017-12-23 Alan Mackenzie Make C-h c/k S-mouse-1 display message for mouse-appearance-menu, etc. Currently, C-h c/k for S-mouse-1 reports that S-mouse-1 is unbound, ignoring that S-down-mouse-1 is bound. We fix this by reporting on the "latest" mouse event of a sequence which is bound. * lisp/help.el (help-read-key-sequence): Save all encountered mouse events in a list. Return the latest one which has a binding. 2017-12-23 Eli Zaretskii Avoid crashes when ':eval' deletes our frame * src/xdisp.c (display_mode_element): Signal an error if ':eval' somehow deletes the frame whose window we are redisplaying. (Bug#29726) 2017-12-23 Tak Kunihiro Fix scrolling up in pixel-scroll.el * lisp/pixel-scroll.el (pixel-scroll-up): Do not try to move cursor down when EOB is shown at the top. This function is reverted to commit 1bda71ec3b11eeb4d06c3da094a3cb21bac18d5c. (bug#29737) 2017-12-23 Eli Zaretskii Fix problems with ligatures in PDF version of ELisp manual * doc/lispref/strings.texi (Case Conversion): Avoid problems with ligatures in printed versions of the manual. (Bug#29818) 2017-12-22 Stefan Monnier (elisp-flymake-byte-compile): Handle killed buffer in sentinel * lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Don't burp if the source-buffer has been killed. 2017-12-22 Glenn Morris Avoid some overfull lines in PDF lispref * doc/lispref/commands.texi (Reading One Event): * doc/lispref/display.texi (SVG Images): * doc/lispref/frames.texi (Size Parameters): * doc/lispref/syntax.texi (Categories): * doc/lispref/windows.texi (Frame Layouts with Side Windows): Avoid overfull lines. 2017-12-22 Glenn Morris Avoid some overfull lines in PDF manual * doc/emacs/display.texi (Display Custom): * doc/emacs/search.texi (Other Repeating Search): * doc/emacs/text.texi (Quotation Marks): Avoid overfull lines. 2017-12-22 Glenn Morris * doc/emacs/arevert-xtra.texi (Auto Reverting the Buffer Menu): Fix ref. 2017-12-22 Eli Zaretskii * lisp/emacs-lisp/inline.el (define-inline): Add a doc string. 2017-12-22 Eli Zaretskii Fix doc string of 'footnote-style-alist' * lisp/mail/footnote.el (footnote-style-alist): Remove a reference to non-existing files from doc string. (Bug#29759) 2017-12-22 Eli Zaretskii Improve documentation of selecting windows * doc/lispref/windows.texi (Basic Windows, Selecting Windows): Clarify what selecting a window means for keyboard input, and that input focus may need to be considered when selecting windows on other frames. See http://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00372.html for more details. 2017-12-22 Eli Zaretskii Improve documentation of records * doc/lispref/Makefile.in (srcs): Add the forgotten records.texi. * doc/lispref/records.texi (Records): Recommend that record type names use package-naming conventions. * etc/NEWS: Add the naming convention recommendation for record types. 2017-12-22 Eli Zaretskii * etc/NEWS: Mention the removal of pinentry.el. (Bug#27445) 2017-12-22 Eli Zaretskii Fix interactive spec of 'semantic-ia-show-variants' * lisp/cedet/semantic/ia.el (semantic-ia-show-variants): Fix the interactive spec to match the function's expectations. (Bug#29770) 2017-12-22 Eli Zaretskii Fix documentation of 'mouse-drag-and-drop-region' and friends * doc/emacs/frames.texi (Drag and Drop): Index 'mouse-drag-and-drop-region-cut-when-buffers-differ', 'mouse-drag-and-drop-region-show-tooltip', and 'mouse-drag-and-drop-region-show-cursor'. * etc/NEWS: Fix the format of the related entries. 2017-12-22 Eli Zaretskii Improve detection of speller version in ispell.el * lisp/textmodes/ispell.el (ispell-check-version): Accept more general forms of version numbers for Aspell, Hunspell, and Enchant, to include various beta and prereleases. (Bug#29801) 2017-12-22 Tak Kunihiro Document 'mouse-drag-and-drop-region' options and mention them in NEWS * doc/emacs/frames.texi (Drag and Drop): * etc/NEWS (times): Document options for 'mouse-drag-and-drop-region' and mention them in NEWS. 2017-12-22 Martin Rudalics Fix uses of 'nil' and 'non-nil' in manuals and a few more minor issues * doc/emacs/building.texi (Grep Searching): Fix doc of 'grep-save-buffers'. (Drag and Drop): Reorder paragraphs. Fix doc of 'mouse-drag-and-drop-region'. * doc/emacs/frames.texi (Word and Line Mouse): * doc/emacs/search.texi (Other Repeating Search): * doc/lispref/compile.texi (Compilation Functions): * doc/lispref/files.texi (Directory Names): * doc/lispref/functions.texi (Advising Named Functions): * doc/lispref/keymaps.texi (Controlling Active Maps): * doc/lispref/lists.texi (Association Lists): * doc/lispref/windows.texi (Quitting Windows): Fix uses of 'non-nil' and 'nil'. 2017-12-21 Philipp Stephani Document that mode commands should be idempotent. * doc/lispref/modes.texi (Major Mode Conventions, Minor Mode Conventions): Document that the mode commands should be idempotent. 2017-12-21 Alan Mackenzie Fontify a CPP construct correctly when a comment follows without spaces Do this by removing a broken optimization in the state cache which put category text properties on a character between the end of the CPP construct and the beginning of the comment. This can't work when there's no such character. * lisp/progmodes/cc-defs.el (c-cpp-delimiter, c-set-cpp-delimiters) (c-clear-cpp-delimiters, c-comment-out-cpps, c-with-cpps-commented-out) (c-with-all-but-one-cpps-commented-out): Remove. * lisp/progmodes/cc-engine.el (c-no-comment-end-of-macro): Return the comment start position rather than one character before it. (c-invalidate-state-cache, c-parse-state): Remove the invocations of c-with-all-but-one-cpps-commented-out and c-with-cpps-commented-out. * lisp/progmodes/cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): Rename to c-neutralize-syntax-in-CPP and remove the bits which applied category properties. * lisp/progmodes/cc-langs.el (c-before-font-lock-functions): Incorporate the new name of the function c-neutralize-syntax-in-CPP. 2017-12-21 Eli Zaretskii Prevent infloop in redisplay on TTY frames * src/xdisp.c (extend_face_to_end_of_line): Avoid infloop when filling up display margins with the default face's background. (Bug#29789) 2017-12-21 Alan Mackenzie Fix loss of documentation face in certain CC Mode doc comment situations * lisp/progmodes/cc-fonts.el (c-font-lock-doc-comments): Take into account the possibility of font-lock-comment-delimiter-face. Test rigorously for "/**" (etc.) being itself inside a literal, rather than just depending on the face of the previous character. 2017-12-21 Daiki Ueno Remove pinentry.el * lisp/epg.el (epg--start): Remove the use of pinentry.el. * lisp/net/pinentry.el: Remove (bug#27445). 2017-12-21 Ted Zlatanov Special-case %DUMBFW for GnuTLS between 3.2.5 and 3.5.1 * src/gnutls.c: Introduce HAVE_GNUTLS_EXT__DUMBFW for GnuTLS >= 3.2.5. (Fgnutls_available_p): Use it. 2017-12-21 Andy Moreton Work around GnuTLS version issues with %DUMBFW (tiny change) * src/gnutls.c: Introduce HAVE_GNUTLS_EXT_GET_NAME and use it. (init_gnutls_functions): Use it. (Fgnutls_available_p): Use it (Bug#25061). Fix Vlibrary_cache bug. 2017-12-20 Dmitry Gutov Merge branch 'widen-less' into emacs-26 2017-12-20 Glenn Morris * lisp/erc/erc.el (erc-shorten-server-name): Silence compiler warning. 2017-12-20 Glenn Morris Fix some more aliases to user options * lisp/cus-edit.el (custom-mode-hook): * lisp/erc/erc.el (erc-default-coding-system): * lisp/progmodes/python.el (python-indent, python-guess-indent) (python-shell-virtualenv-path) (python-shell-completion-module-string-code) (python-shell-completion-pdb-string-code, python-use-skeletons): Define aliases to user options before the options are defined. 2017-12-20 Glenn Morris Fix some flymake aliases * lisp/progmodes/flymake-proc.el (flymake-xml-program) (flymake-compilation-prevents-syntax-check, flymake-master-file-dirs) (flymake-master-file-count-limit, flymake-allowed-file-name-masks): * lisp/progmodes/flymake.el (flymake-start-syntax-check-on-find-file): Define aliases to user options before the options are defined. 2017-12-20 Glenn Morris Unbreak a fileio test on non-Mac OS X systems * test/src/fileio-tests.el (fileio-tests--symlink-failure): Don't use an undefined coding system. 2017-12-20 Robert Pluim Fix updating scrollbar sizes when scaling is in effect * src/gtkutil.c (xg_update_scrollbar_pos): Update width of scrollbar when scaling is in effect. (xg_update_horizontal_scrollbar_pos): Update scrollbar size when scaling is in effect. 2017-12-20 Dmitry Gutov Widen in indent-for-tab-command in the normal case, too Fixing this obvious omission. * lisp/indent.el (indent--funcall-widened): New function. (indent-for-tab-command): Use it. 2017-12-19 Ted Zlatanov Collect GnuTLS extensions and use them to set %DUMBFW if supported * lisp/net/gnutls.el (gnutls-boot-parameters): Use it to set %DUMBFW only when it's supported as "ClientHello Padding" (Bug#25061). * src/gnutls.c (Fgnutls_available_p): Get extension names and put them in the GnuTLS capabilities, using a hard-coded limit of 100 since GnuTLS MAX_EXT_TYPES is not exported. 2017-12-18 Stefan Monnier * test/lisp/emacs-lisp/derived-tests.el: Fix copy&paste leftovers 2017-12-18 Stefan Monnier * lisp/subr.el (delayed-after-hook-functions): Rename from ...-forms (run-mode-hooks): `funcall` the functions instead of `eval`ing the forms. * lisp/emacs-lisp/derived.el (define-derived-mode): Push functions rather than forms (bug#29679). 2017-12-18 Katsumi Yamaoka * lisp/net/shr.el (shr-string-pixel-width): Return pixel-width, not position (bug#29734). 2017-12-18 Dmitry Gutov Replace the mention of c-indent-defun with js-indent-line * doc/lispref/text.texi (Mode-Specific Indent): Avoid mentioning c-indent-defun in the context of multi-mode indentation. 2017-12-17 Charles A. Roelli python.el doc fixes * lisp/progmodes/python.el (python-shell-accept-process-output): (python-shell-comint-end-of-output-p): (python-shell-first-prompt-hook): (python-info-beginning-of-backslash): Doc fixes. 2017-12-17 Tak Kunihiro Make 'mouse-drag-and-drop-region' more robust and customizable * lisp/mouse.el (mouse-drag-and-drop-region-cut-when-buffers-differ): New option to permit 'mouse-drag-and-drop-region' to cut text also when source and destination buffers differ. (mouse-drag-and-drop-region-show-tooltip): New option to toggle display of tooltip during mouse dragging on graphic displays. (mouse-drag-and-drop-region-show-cursor): New option to toggle moving point with mouse cursor during mouse dragging of region. (mouse-drag-and-drop-region): New face to highlight original text while dragging. (mouse-drag-and-drop-region): Make use of new options and face. Ignore errors during tracking. 2017-12-17 Oscar Fuentes Backport: Don't compare arguments that can be nil (Bug#28039) copy-region-as-kill can be called passing nil as `beg' and `end'. Magit does that, which caused an error when this advice was in effect. * lisp/ses.el (ses--advice-copy-region-as-kill): avoid comparison unless `beg' and `end' are non-nil. 2017-12-17 Noam Postavsky Don't mess up syntax-ppss cache in electric-pair (Bug#29710) In Emacs 25 and above, calling `scan-sexps', `parse-partial-sexp', or similar may update the syntax-ppss cache if `parse-sexp-lookup-properties' is non-nil. Therefore, when calling any of these functions with a different than normal syntax-table, the cache must be cleaned afterwards. * lisp/elec-pair.el (electric-pair--with-uncached-syntax): New macro. (electric-pair--syntax-ppss, electric-pair--balance-info): Use it. 2017-12-17 Glenn Morris * etc/emacs.appdata.xml: Update file format. 2017-12-16 Alan Third Use utf-8-hfs-unix on macOS (Bug#29712) This is a quick fix for the Emacs 26 release. Do not merge to master. * test/src/fileio-tests.el (fileio-tests--symlink-failure): Override file-name-coding-system to utf-8-hfs-unix to prevent test failure. 2017-12-16 Alan Mackenzie * lisp/progmodes/cc-defs.el (c-version): Update to 5.33.1. 2017-12-16 Michael Albinus Improve fix for Bug#29712 * test/lisp/net/tramp-tests.el (tramp-test32-environment-variables-and-port-numbers): Adapt check for systems which do not support "echo -n". (Bug#29712) 2017-12-16 Eli Zaretskii * doc/lispref/sequences.texi (Sequence Functions): Improve indexing. 2017-12-16 Eli Zaretskii Avoid reordering of output in 'shr-insert-document' * lisp/net/shr.el (shr-string-pixel-width): Preserve point across shr-pixel-column invocations. (Bug#29734) 2017-12-16 Eli Zaretskii Improve documentation of 'invisible-p' * doc/lispref/display.texi (Invisible Text): Document the return value of 'invisible-p'. * src/xdisp.c (Finvisible_p): Rename the argument POS. Doc fix. (Bug#29721) 2017-12-16 Martin Rudalics Remove one more check that Vframe_list is non-nil * src/dispnew.c (check_glyph_memory): Remove no-longer-needed check that Vframe_list is non-nil, as FOR_EACH_FRAME no longer assumes that. 2017-12-16 Simen Heggestøyl Fix off-by-one error in 'css--hex-color' * lisp/textmodes/css-mode.el (css--hex-color): Fix off-by-one error. * test/lisp/textmodes/css-mode-tests.el (css-test-hex-color): New test for 'css--hex-color'. 2017-12-16 Aaron Jensen Save and restore text-pixel height and width of frames (Bug#28442) * lisp/frameset.el (frameset--record-relationships): Record text-pixel-height and text-pixel-width of frame. (frameset--restore-frame): Restore text-pixel-height and text-pixel-width of frame if available. (Bug#28442) 2017-12-16 Noam Postavsky Partially revert "Mention new strictness for &optional, &rest..." The changes to cl argument parsing are not backwards compatible, and cause inconvenience when writing macros (e.g., instead of doing '&aux ,@auxargs', some more complicated conditionals would be required). The `cl-defstruct' macro makes use of this convenience when defining empty structs (Bug#29728). * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): (cl--do-&aux, cl--do-arglist): Undo strict checking of &rest, &key, and &aux. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-bad-arglist): Remove test. 2017-12-15 Glenn Morris * lisp/vc/smerge-mode.el (smerge-refine): Respect font-lock-mode. * lisp/vc/smerge-mode.el (smerge-refine): Replace obsolete alias. 2017-12-15 Paul Eggert FOR_EACH_FRAME no longer assumes frame-list This cleans up a recent fix related to Bug#29661. Suggested by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2017-12/msg00544.html * src/frame.c (next_frame, prev_frame, delete_frame): Restore debugging checks that Vframe_list is non-nil, as FOR_EACH_FRAME no longer has these checks. (delete_frame): Remove no-longer-needed checks that Vframe_list is non-nil, as FOR_EACH_FRAME no longer assumes that. * src/frame.h (FOR_EACH_FRAME): Do not assume Vframe_list is non-nil. 2017-12-15 Eli Zaretskii * src/font.c (Ffont_info): Doc fix. (Bug#29682) 2017-12-15 Basil L. Contovounesios Modernise message.el face spec syntax * lisp/gnus/message.el (message-header-to, message-header-cc) (message-header-subject, message-header-newsgroups) (message-header-other, message-header-name, message-header-xheader) (message-separator, message-cited-text, message-mml): Use (DISPLAY . PLIST) face spec syntax as recommended in `(elisp) Defining Faces'. (Bug#29405) 2017-12-15 Basil L. Contovounesios Update message.el obsolete face aliases * lisp/gnus/message.el: (message-header-to, message-header-cc) (message-header-subject, message-header-newsgroups) (message-header-other, message-header-name, message-header-xheader) (message-separator, message-cited-text, message-mml): Use define-obsolete-face-alias. (Bug#29405) 2017-12-15 Eli Zaretskii Improve documentation of TERM environment variable * doc/emacs/trouble.texi (Checklist): * doc/emacs/building.texi (Compilation Shell): * doc/emacs/misc.texi (Shell Options): Improve indexing of TERM. * doc/emacs/building.texi (Compilation Shell): Mention 'comint-terminfo-terminal' in conjunction with the TERM value. 2017-12-15 Allen Li Add option to configure comint TERM * lisp/comint.el (comint-terminfo-terminal): New defcustom. (comint-term-environment): New function for setting terminal options (comint-exec-1): Use comint-term-environment. (Bug#29583) * lisp/progmodes/compile.el (compilation-start): Use comint-term-environment. * etc/NEWS: * doc/emacs/misc.texi (Shell Options): Document the new option. 2017-12-15 Eli Zaretskii Better support utf-8-with-signature and utf-8-hfs in XML/HTML * lisp/international/mule.el (sgml-xml-auto-coding-function): Support UTF-8 with BOM and utf-8-hfs as variants of UTF-8, and obey the buffer's encoding if it is one of these variants, instead of re-encoding in UTF-8 proper. (Bug#20623) 2017-12-15 Eli Zaretskii * lisp/menu-bar.el (menu-bar-mode): Doc fix. 2017-12-15 Michael Albinus Fix Bug#29712 in tramp-tests.el * test/lisp/net/tramp-tests.el (tramp-test32-environment-variables-and-port-numbers): Skip for macOS. (Bug#29712) 2017-12-15 Martin Rudalics Don't run FOR_EACH_FRAME when there's no frame left (Bug#29961) This does not fix Bug#29961 but avoids that Emacs segfaults when trying to shut down because it lost connection to the X server. * src/dispnew.c (check_glyph_memory): * src/frame.c (delete_frame): Don't run FOR_EACH_FRAME when there's no frame left (Bug#29961). 2017-12-15 Glenn Morris * lisp/textmodes/tex-mode.el: Ensure uncompiled file is loadable. 2017-12-15 Ted Zlatanov Remember password change for IMAP in Gnus (Bug#29692) Reported by Trey Jackson . * lisp/gnus/mail-source.el (mail-source-fetch-imap): Check `mail-source-password-cache' for password. 2017-12-15 Ted Zlatanov Add %DUMBFW to the default GnuTLS priority strings * lisp/net/gnutls.el (gnutls-boot-parameters): Add %DUMBFW to the default priority strings (Bug#25061). * etc/NEWS: Mention it. * doc/misc/emacs-gnutls.texi (Help For Users): Point to the GnuTLS priority string documentation URL. 2017-12-15 Glenn Morris Small fixes prompted by make check-declare * lisp/frame.el (x-focus-frame): Update declaration. (ns-mouse-absolute-pixel-position): Fix declaration. * lisp/vc/diff-mode.el (diff-refine-hunk): Use smerge-refine-regions rather than obsolete alias. (smerge-refine-subst): Remove declaration, no longer relevant. 2017-12-15 Glenn Morris Fix some custom groups * lisp/vc/vc-hooks.el (vc-faces): Rename from vc-state-faces. * lisp/vc/cvs-status.el (cvs-status): Unused, remove. 2017-12-14 Alan Mackenzie Fix fontification of first declaration within a C++ lambda form. * lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): Cease spuriously recognizing the braces of a lambda form as a brace list when there is an "=" preceding the introductory brackets. 2017-12-14 Charles A. Roelli * src/data.c (Fadd_variable_watcher): Doc fix. 2017-12-14 Alan Mackenzie Fix misfontification of C++ member initialization list after "throw" * lisp/progmodes/cc-engine.el (c-forward-type): Stop recognizing a "type" starting with "throw", by using c-opt-type-modifier-prefix-key. * lisp/progmodes/cc-langs.el (c-type-modifier-prefix-kwds): New lang const which, in C++, doesn't contain "throw", otherwise like c-type-modifier-kwds. (c-opt-type-modifier-prefix-key): New lang const and var, a regexp matching any keyword in the previous lang const. 2017-12-14 Dmitry Gutov Consolidate 'widen' calls * lisp/progmodes/prog-mode.el (prog-indentation-context): Un-document all elements but the first. (prog-widen): Remove. (http://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00321.html) * doc/lispref/text.texi (Mode-Specific Indent): Update. * lisp/progmodes/ruby-mode.el (ruby-calculate-indent): Don't call widen. * lisp/progmodes/python.el (python-indent-guess-indent-offset) (python-info-current-defun): Replace prog-widen with widen; these functions are not called during indentation. (python-indent-context) (python-indent--calculate-indentation) (python-info-dedenter-opening-block-message) (python-info-line-ends-backslash-p) (python-info-beginning-of-backslash) (python-info-continuation-line-p) (python-info-current-defun): Remove 'widen' calls. * lisp/indent.el (indent-according-to-mode) (indent-for-tab-command, indent-region): Move them here. * lisp/textmodes/mhtml-mode.el (mhtml-indent-line): Bind prog-indentation-context to one-element list. 2017-12-14 Martin Rudalics Fix doc-string of Fbuffer_list * src/buffer.c (Fbuffer_list): Fix doc-string. 2017-12-14 Basil L. Contovounesios Don't raise an extraneous frame (bug#29696) * lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): Lookup summary buffer keys from article buffer without affecting window configuration (bug#29696). 2017-12-13 Noam Postavsky Mention new strictness for &optional, &rest in arglists (Bug#29165) * etc/NEWS: Explain that '&optional' not followed by a variable is now an error. * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda, cl--do-&aux) (cl--do-arglist): Also reject '&optional', '&rest', or '&aux' not followed by a variable for consistency. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-bad-arglist): New test. 2017-12-13 Alan Mackenzie Don't misfontify "foo ()" inside C++ initialization parentheses as a type Also recognize and handle function names introduced by "extern" inside a function. * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Add a new element to the result list which is t when our declaration is, or is to be treated as, being at top level. * lisp/progmodes/cc-fonts.el (c-get-fontification-context): Detect being inside a C++ uniform initialization and return (not-decl nil) for this case. (c-font-lock-declarations): Use the new element 4 of the result of c-forward-decl-or-cast-1. * lisp/progmodes/cc-langs.el (c-make-top-level-kwds, c-make-top-level-key): New lang consts/vars. 2017-12-13 Glenn Morris Fixes for defcustoms, prompted by cus-test-opts * lisp/files.el (save-some-buffers-default-predicate): * lisp/time.el (display-time-world-list): * lisp/gnus/gnus-art.el (gnus-article-show-cursor): * lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-names): * lisp/progmodes/verilog-mode.el (verilog-auto-wire-type): * lisp/textmodes/less-css-mode.el (less-css-output-directory) (less-css-output-file-name, less-css-input-file-name): * lisp/vc/emerge.el (emerge-metachars): * lisp/vc/vc-hg.el (vc-hg-symbolic-revision-styles): Fix :types. * lisp/net/newst-backend.el (newsticker-url-list-defaults): Fix url. 2017-12-13 Glenn Morris * lisp/net/newst-backend.el (newsticker--raw-url-list-defaults): Update. * lisp/htmlfontify.el (hfy-which-etags): Fix it. 2017-12-13 Glenn Morris Add missing :version tags revealed by cusver-check * lisp/comint.el (comint-move-point-for-matching-input): * lisp/epa.el (epa-replace-original-text): * lisp/image-dired.el (image-dired-cmd-optipng-program) (image-dired-cmd-optipng-options): * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-use-jump-table): * lisp/gnus/gnus-cloud.el (gnus-cloud-storage-method) (gnus-cloud-interactive): * lisp/net/mailcap.el (mailcap-user-mime-data): * lisp/progmodes/cc-vars.el (c-asymmetry-fontification-flag) (c-noise-macro-names, c-noise-macro-with-parens-names): * lisp/progmodes/flymake.el (flymake-start-on-flymake-mode) (flymake-wrap-around): * lisp/progmodes/grep.el (grep-use-null-filename-separator): * lisp/progmodes/js.el (js-indent-align-list-continuation): * lisp/progmodes/perl-mode.el (perl-flymake-command): * lisp/progmodes/python.el (python-flymake-command) (python-flymake-command-output-pattern, python-flymake-msg-alist): * lisp/progmodes/ruby-mode.el (ruby-flymake-use-rubocop-if-available) (ruby-rubocop-config): * lisp/textmodes/less-css-mode.el (less-css): * lisp/textmodes/tex-mode.el (tex-chktex-program) (tex-chktex-extra-flags): Add missing :version tags. 2017-12-13 Glenn Morris Escape column-zero doc parens * lisp/htmlfontify.el (hfy-display-class): * lisp/calendar/icalendar.el (icalendar--do-create-ical-alarm): * lisp/net/shr.el (shr-external-rendering-functions): * lisp/progmodes/cc-vars.el (c-asymmetry-fontification-flag): * lisp/textmodes/tildify.el (tildify-tildify): Escape column-zero doc parens. A shame bug#21871 remains unfixed. 2017-12-12 Alan Third Remove ObjC blocks (Bug#23753) * src/macfont.m (macfont_get_glyph_for_character): (mac_font_get_glyphs_for_variants): Inline Objective-C blocks. (cherry picked from commit 4590f1d768adbb2120a2b02c614f7ed3b21a4a3e) 2017-12-12 Eli Zaretskii Import the latest IVD_Sequences.txt * admin/unidata/IVD_Sequences.txt: New version from http://www.unicode.org/ivd/, the 2017-12-12 version of the Unicode Ideographic Variation Database. * src/macuvs.h: Regenerated. 2017-12-11 Max (tiny change) Fix dired-do-compress when tar doesn't default to stdin (Bug#29094) * lisp/dired-aux.el (dired-compress-file-suffixes): Use argument '-f-' to write to stdout rather than relying on the default (the choice of default is decided when compiling tar, BSD systems usually set it to a tape drive). Drop '-v', since the output is not used anywhere. 2017-12-11 Noam Postavsky Suppress warnings during elisp completion macroexpansion Errors are already suppressed, therefore it is logical to suppress warnings as well. Some macros (e.g., use-package) may produce warnings when given the `elisp--witness--lisp' symbol. * lisp/progmodes/elisp-mode.el (elisp--local-variables): Let-bind warning-minimum-log-level to :emergency. 2017-12-11 Chunyang Xu * lisp/progmodes/verilog-mode.el (verilog-mode): Fix typo (Bug#24410). 2017-12-11 Michael Albinus Make tramp-interrupt-process more robust * lisp/net/tramp.el (tramp-interrupt-process): Fall back to the default implementation if there's no success. 2017-12-11 Katsumi Yamaoka Make quail-input-method work when inhibit-read-only is non-nil (bug#29504) * lisp/international/quail.el (quail-input-method): Work not only when buffer-read-only is nil but also when inhibit-read-only is non-nil (bug#29504). 2017-12-10 Eli Zaretskii Fix 'fontset-name-p' * lisp/international/fontset.el (fontset-name-p): Make the function work with full fontset names and fontset alias names. 2017-12-10 Eli Zaretskii Fix fontset documentation inconsistencies for bug#29630 * doc/lispref/display.texi (Face Attributes): Don't document :family as accepting a fontset. Document that :font accepts a fontset. * lisp/faces.el (set-face-attribute): Doc fix. 2017-12-10 Martin Rudalics Remove sentence from child frames section in Elisp manual * doc/lispref/frames.texi (Child Frames): Remove one sentence. Suggested by Bob Weiner . 2017-12-10 Eli Zaretskii Avoid crashes in 'font-at' after 'set-fontset-font' * src/fontset.c (free_realized_fontsets): Call recompute_basic_faces, so that the basic faces are available to any Lisp that calls this function, e.g. via set-fontset-font. (Bug#29632) 2017-12-10 Ted Zlatanov * lisp/files-x.el (connection-local-set-profile-variables): Fix docstring. 2017-12-09 Ted Zlatanov Add /etc/ssl/cert.pem to gnutls-trustfiles for macOS Problem reported by Mark Ferlatte (Bug#28603). * lisp/net/gnutls.el (gnutls-trustfiles): Add /etc/ssl/cert.pem for macOS. 2017-12-09 Eli Zaretskii Fix tool-tip display when display margins are non-zero by default * src/buffer.h (bset_left_margin_cols, bset_right_margin_cols): New inline functions. * src/xfns.c (Fx_show_tip): * src/w32fns.c (Fx_show_tip): Force display margins of the tip buffer to zero, as it will be displayed in a pseudo-window, which doesn't support display margins. (Bug#29627) 2017-12-09 Eric Abrahamsen Handle hash tables and vectors when reading/writing EIEIO objects * lisp/emacs-lisp/eieio.el (eieio-override-prin1): EIEIO objects printed with `prin1' can no longer be read with `read'. Make sure they are printed with object-write instead, even when they're inside hash tables and vectors. * lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value): Check for written representations of objects inside hash tables and vectors, and reconstruct them. 2017-12-09 Eli Zaretskii Improve interactive debugging commands in xdisp.c * src/xdisp.c (Fdump_glyph_row, Fdump_tool_bar_row): Allow to specify ROW via prefix argument. Fix the doc strings. 2017-12-09 Eli Zaretskii Fix calculation of continuation_pixel_width in display engine * src/xdisp.c (display_line): Remove incorrect increment of it->continuation_pixel_width when word-wrap is used. (Bug#29594) 2017-12-09 Eli Zaretskii Improve documentation of 'save-abbrevs'. * doc/emacs/abbrevs.texi (Saving Abbrevs): Document the 'silently' value of 'save-abbrevs'. Suggested by Alex Branham in emacs-manual-bugs@gnu.org. 2017-12-09 Eli Zaretskii Improve documentation of Dired * doc/emacs/dired.texi (Dired): Mention that the Dired buffer can be made modifiable in Wdired. Suggested by Alex Branham in emacs-manual-bugs@gnu.org. 2017-12-09 Eli Zaretskii * lisp/bookmark.el (bookmark-alist): Doc fix. (Bug#29551) 2017-12-08 Michael Albinus Minor Tramp fixes * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): Fix a bug when renaming. * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test. (tramp-test42-delay-load, tramp-test42-remote-load-path): Skip unless Emacs >= 26. 2017-12-08 Glenn Morris * lisp/help-mode.el (help-function-def): Allow help-make-xrefs to call with one argument. (Bug#29611) 2017-12-07 Martin Rudalics Fix doc-string of 'display-buffer-in-side-window' * lisp/window.el (display-buffer-in-side-window): In doc-string clarify why the window returned gets dedicated to its buffer. 2017-12-06 Michael Albinus Fix Bug#29579 * lisp/files.el (file-name-non-special): Inhibit `file-name-handler-alist' only for some operations. Add missing operations. (Bug#29579) * lisp/net/tramp-compat.el (tramp-compat-file-name-quote): Do not quote if it is quoted already. * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory): Use `copy-tree' but `copy-sequence'. * lisp/net/tramp.el (tramp-handle-file-truename): Handle several trailing slashes correctly. * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file, tramp-test24-file-acl) (tramp-test25-file-selinux, tramp--test-check-files): Handle also quoted file names. (tramp-test21-file-links): Fix file name quoting test. (tramp-test24-file-acl): Be more robust for "smb" method. (tramp-test35-make-auto-save-file-name): Enable hidden test cases. 2017-12-06 Rasmus Backport: Update Org to v9.1.4 Please note this is a bugfix release. See etc/ORG-NEWS for details. (cherry picked from commit 567b5efe1f338c10c574758fb968915c5c34c909) 2017-12-06 Martin Rudalics In windows.texi mention special splitting behavior of side and atomic windows * doc/lispref/windows.texi (Splitting Windows): Add note about and links to side and atomic windows. 2017-12-05 Katsumi Yamaoka * lisp/gnus/gnus-group.el (gnus-group-mode-map): Bind [follow-link] to mouse-face, not 'mouse-face (bug#29538). 2017-12-04 Eli Zaretskii Avoid compilation warning in xterm.c * src/xterm.c (x_draw_underwave): Move the declaration of 'thickness' to the non-USE_CAIRO branch, to avoid compiler warning. (Bug#29567) 2017-12-04 Eli Zaretskii * README: Document all the top-level directories. (Bug#29558) 2017-12-04 Glenn Morris Don't enable erc modules on simply loading erc.el * lisp/erc/erc.el (erc-modules): Use default :initialize. (Bug#29417) 2017-12-03 Lars Ingebrigtsen Allow shr to use data: URLs without encoding * lisp/net/shr.el (shr-image-from-data): Don't bug out on image data: URLs that have no base64 encoding like (shr-image-from-data "text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E"). 2017-12-03 E. Choroba (tiny change) Don't add newlines in minibuffer history * lisp/simple.el (next-line-or-history-element): Bind next-line-add-newlines to nil. (Bug#29529) 2017-12-03 Syohei YOSHIDA modhelp.py: Support Python 3 (Bug#24954) * modules/modhelp.py: 'print' statement was removed in Python 3. 'print' function should be used instead of 'print' statement. 2017-12-03 Noam Postavsky Use forward slashes for python w32 config example (Bug#21656) * lisp/progmodes/python.el: Use forward slashes for Windows path example, it doesn't require doubling of slashes which reduces chances of confusion. 2017-12-03 Paul Eggert Fix bug in i18n/l10n optimization This fixes a off-by-one buffer overrun bug introduced in 2017-06-04T15:39:37Z!eggert@cs.ucla.edu. Problem uncovered by an experimental version of Emacs built with -fcheck-pointer-bounds and running on Intel MPX hardware. * src/editfns.c (styled_format): Avoid overrunning internal buffers. 2017-12-02 Noam Postavsky Let autoload-compute-prefix be set file-locally (Bug#29471) * lisp/emacs-lisp/autoload.el (autoload-compute-prefixes): Mark boolean values as safe. 2017-12-02 Noam Postavsky Improve edit-kbd-macro prompting in case of remapped keys (Bug#29399) * lisp/edmacro.el (edit-kbd-macro): Use substitute-command-keys to present the current bindings in the prompt. Check the the non-remapped binding of the entered key sequence as well. 2017-12-02 Lele Gaifax Add tests on electric-indentation and Python multiline strings (Bug#29305) * test/lisp/progmodes/python-tests.el (python-indent-electric-comma-inside-multiline-string, python-indent-electric-comma-after-multiline-string): New tests. 2017-12-02 Noam Postavsky Disable electric indent for python strings (Bug#29305) * lisp/progmodes/python.el (python-indent-post-self-insert-function): Do nothing when point or beginning of line is in string. 2017-12-02 Yuuki Harano (tiny change) Fix buffer overflow in fontname conversion (Bug#29523) * src/nsterm.m (ns_xlfd_to_fontname): Fix sscanf format. 2017-12-02 Eli Zaretskii Fix byte compilation of files with leading directories * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Pass basename of target-file to make-temp-file, in case target-file includes a leading directory that might not exist under TMPDIR. See http://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00680.html for the details. 2017-12-02 Michael Albinus * lisp/files.el (make-backup-file-name-1): Fix scoping error. 2017-12-02 Michael Albinus Revert Tramp commit from 2017-11-20 * lisp/net/tramp.el (tramp-drop-volume-letter) (tramp-handle-find-backup-file-name): Revert change from 2017-11-20. Emacs' `make-backup-file-name-1' handles this case now. 2017-12-02 Eli Zaretskii Improve documentation of buffer-list commands and features * doc/emacs/buffers.texi (List Buffers): Add a cross-reference to "Several Buffers", to establish a relation between the two sections. (Buffer Menus): Expand on customizability of alternative buffer menu offered by bs.el. Mention IBuffer. Suggested by Alex Branham in emacs-manual-bugs@gnu.org. 2017-12-02 Eli Zaretskii Fix backing up remote files in local directories on MS-Windows * lisp/files.el (make-backup-file-name-1): Support remote file names correctly when they are backed up into a local directory on MS-Windows and MS-DOS. (Bug#29440) 2017-12-02 Glenn Morris * doc/emacs/mule.texi (Output Coding): Clarify sendmail coding. 2017-12-01 John Wiegley Revert "Fix backing up remote files in local directories on MS-Windows" This reverts commit 8c8b6732882248df4ca3b687e0a4b4e5e4ab3777. 2017-12-01 Eli Zaretskii Fix a typo in ELisp manual * doc/lispref/sequences.texi (Sequence Functions): Fix the example of using 'seq-uniq'. (Bug#29524) 2017-12-01 Eli Zaretskii * lisp/composite.el (find-composition): Fix a typo in the doc string. 2017-12-01 Eli Zaretskii Fix backing up remote files in local directories on MS-Windows * lisp/files.el (make-backup-file-name-1): Support remote file names correctly when they are backed up into a local directory on MS-Windows and MS-DOS. (Bug#29440) 2017-12-01 Tak Kunihiro Fix vertical cursor motion in pixel-scroll.el * lisp/pixel-scroll.el (pixel-scroll-up): Move cursor down regardless of whether EOB is shown at the top. (pixel-scroll-down) Move cursor up regardless of whether BOB is shown at the top. (Bug#29374) 2017-12-01 Basil L. Contovounesios Fix typos in doc strings of message.el * lisp/gnus/message.el (message-header-to) (message-header-subject, message-header-newsgroups) (message-header-other): Fix typos in doc strings. (Bug#29405) 2017-12-01 Eli Zaretskii Fix a typo in the Emacs manual * doc/emacs/abbrevs.texi (Abbrev Concepts): Fix a typo. Reported by clemens.radermacher@posteo.de in emacs-manual-bugs@gnu.org. 2017-12-01 Eli Zaretskii Improve the documentation of 'table-insert-sequence' * doc/emacs/text.texi (Table Misc): Fix the description of 'table-insert-sequence'. Reported by jack in emacs-manual-bugs@gnu.org. 2017-12-01 Paul Eggert Port better to QNX Problem reported by Elad Lahav on emacs-devel. * configure.ac: On QNX, default CC to qcc (a GCC wrapper), and default LDFLAGS to -N2MB so that the initial stack size is not too small. Also, fix misspelling of ‘qnxnto’. 2017-11-30 Michael Albinus Make tramp-test42-auto-load more robust * test/lisp/net/tramp-tests.el (tramp-test42-auto-load): Make it more robust. Don't skip. 2017-11-30 Eli Zaretskii Avoid assertions in find-composition * src/font.c (font_range): If called with STRING non-nil and FACE a NULL pointer, compute face by calling face_at_string_position. (Bug#29506) * lisp/composite.el (find-composition): Doc fix. 2017-11-29 Glenn Morris Restore obsolete method of changing byte-compile-dest-file * lisp/emacs-lisp/bytecomp.el (byte-compile-dest-file): Restore seven-year obsolete feature that was removed for six months, since automake uses it. 2017-11-29 Michael Albinus Some minor Tramp corrections * lisp/net/tramp.el (tramp-handle-directory-file-name): Handle several trailing slashes correctly. (tramp-handle-file-selinux-context): New defun. * 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-smb.el (tramp-smb-file-name-handler-alist): Use `tramp-handle-file-selinux-context'. * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name): Extend test. (tramp-test17-insert-directory): Make check more robust. (tramp-test42-auto-load): Combine several let forms. (tramp-test42-delay-load, tramp-test42-recursive-load) (tramp-test42-remote-load-path, tramp-test43-unload): Rename. 2017-11-29 Tino Calancha * doc/misc/url.texi (http/https): Fix typo 2017-11-29 Glenn Morris Remove some bogus definition-prefixes from loaddefs * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads): Don't register a definition prefix from define-erc-module, which adds an erc- prefix to its argument. 2017-11-28 Robert Pluim Shell-quote wildcards when invoking 'vc-git-grep' * lisp/vc/vc-git.el (vc-git-grep): Apply shell quoting to filename wildcards to ensure globbing is done by git rather than the shell. (Bug#29303) 2017-11-28 Kaushal Modi Update documentation of '.dir-locals-2.el' See https://lists.gnu.org/r/emacs-devel/2017-11/msg00649.html for more details. * lisp/files.el (dir-locals-file-2): Remove unused constant. * lisp/files.el (dir-locals-file): Mention ".dir-locals-2.el" in the doc string. * doc/lispref/variables.texi (Directory Local Variables): Mention ".dir-locals-2.el". * etc/NEWS: Replace `dir-locals-file-2' mention with `dir-locals-file'. 2017-11-27 Noam Postavsky * src/w32heap.c (DUMPED_HEAP_SIZE) [_WIN64]: Bump to 22 MiB. 2017-11-27 Glenn Morris A few small doc fixes for bytecomp.el * lisp/emacs-lisp/bytecomp.el (emacs-lisp-file-regexp) (byte-compile-dest-file-function, byte-compile-dest-file): Doc fixes. 2017-11-27 Stefan Monnier * src/lread.c (syms_of_lread): Fix thinko in commit b1573a97e17b5 2017-11-27 Glenn Morris * lisp/tree-widget.el (tree-widget-end-guide): Escape it. (Bug#27797) 2017-11-27 Eli Zaretskii Fix ELisp "Warning Tips" * doc/lispref/tips.texi (Warning Tips): Clarify when to use 'require' wrapped by 'eval-when-compile'. (Bug#29462) 2017-11-27 Michael Albinus Fix Bug#29163 * lisp/net/tramp.el (tramp-autoload-file-name-regexp): Do not use "\\'" in regexp. (Bug#29163) (top) Do not run (tramp-register-autoload-file-name-handlers) when loading tramp.el. * test/lisp/net/tramp-tests.el (tramp--test-mock-p): New defun. (tramp-test32-environment-variables-and-port-numbers) (tramp-test41-asynchronous-requests): Use it. (tramp-test42-auto-load): New test. (tramp-test43-recursive-load, tramp-test44-remote-load-path) (tramp-test45-delay-load, tramp-test46-unload): Rename. 2017-11-27 Paul Eggert Harden exec_byte_code against redefining 'error' Problem discovered by configuring with --enable-gcc-warnings on Ubuntu 17.10 x86-64 with gcc (Ubuntu 7.2.0-8ubuntu3). * src/bytecode.c (exec_byte_code): Call the C error function instead of the Lisp one, so that the Emacs interpreter does not go haywire if the user redefines the Lisp error function. 2017-11-27 Gemini Lasswell Fix Edebug specs for if-let* and and-let* (Bug#29236) * test/lisp/emacs-lisp/subr-x-tests.el (if-let*, if-let): Change Edebug spec to cause Edebug to instrument tests the results of which are not bound to symbols (the (VALUEFORM) case). (and-let*): Change Edebug spec to allow empty body. *test/lisp/emacs-lisp/subr-x-tests.el: (subr-x-and-let*-test-group-1): Add missing quote to erroneous form so Edebug will work on this test. 2017-11-26 Gemini Lasswell Fix Edebug's handling of dotted specs (bug#6415) * lisp/emacs-lisp/cl-macs.el (cl-destructuring-bind): Use cl-macro-list1 instead of cl-macro-list in Edebug spec. * lisp/emacs-lisp/edebug.el (edebug-after-dotted-spec): Delete unused variable. (edebug-dotted-spec): Add docstring. (edebug-match-specs): Allow &optional and &rest specs to match nothing at the tail of a dotted form. Handle matches of dotted form tails which return non-lists. * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-dotted-forms): New test. * test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el: (edebug-test-code-use-destructuring-bind): New function. 2017-11-26 Eli Zaretskii Improve documentation of "constant" symbols * src/font.c (syms_of_font) : * src/data.c (syms_of_data) : * src/buffer.c (syms_of_buffer) : Mention in the doc strings that these variables are read-only. * doc/lispref/variables.texi (Creating Buffer-Local): Document that making a constant variable buffer-local signals an error. * doc/lispref/variables.texi (Constant Variables): * doc/lispref/errors.texi (Standard Errors): More accurate and up-to-date documentation of which symbols cannot be assigned values. 2017-11-26 Paul Eggert maint: shorten https://lists.gnu.org/archive/html/... links 2017-11-26 Paul Eggert Merge from Gnulib This incorporates: 2017-11-23 stat: work around Solaris bug with tv_nsec < 0 2017-11-12 maint: shorten https://lists.gnu.org/archive/html/... links * build-aux/config.sub, doc/misc/texinfo.tex, lib/allocator.h: * lib/fstatat.c, lib/intprops.h, lib/lstat.c, lib/signal.in.h: * lib/stat-time.h, lib/stdio-impl.h, lib/stdio.in.h: * lib/timespec.h, m4/alloca.m4, m4/extern-inline.m4: * m4/faccessat.m4, m4/fstatat.m4, m4/gnulib-common.m4: * m4/lstat.m4, m4/std-gnu11.m4, m4/sys_types_h.m4: * m4/vararrays.m4: Copy from Gnulib. 2017-11-26 Paul Eggert Work around GCC bug 80776 on Fedora 27 x86 * src/buffer.c (Fgenerate_new_buffer_name): Pacify GCC 7.2.1 20170915 (Red Hat 7.2.1-2) on i686 with -Wformat-overflow -O2 by using XINT rather than XFASTINT and by adding an eassume. This works around GCC bug 80776. 2017-11-25 Paul Eggert Tweak copy-file, rename-file doc * src/fileio.c (Fcopy_file, Frename_file): Tweak the recent change slightly, as NEWNAME is treated as a directory name depending only on the contents of the NEWNAME string, and independently of whether NEWNAME names a directory (i.e., whether the directory exists) (Bug#29362). 2017-11-25 Tom Tromey Change font-lock-extend-region-multiline handling in mhtml-mode Bug#29159 * lisp/textmodes/mhtml-mode.el (mhtml-mode): Remove font-lock-extend-region-multiline from font-lock-extend-region-functions. (mhtml--extend-font-lock-region): Call font-lock-extend-region-multiline. 2017-11-25 Michael Albinus Minor cleanup in tramp-gvfs-handle-file-local-copy * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-local-copy): Move error message up. 2017-11-25 Michael Albinus Add test for Bug#29423 in Tramp. * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Add test for Bug#29423. 2017-11-25 Eli Zaretskii Avoid jumbled order in HTML rendered by shr.el * lisp/net/shr.el (shr-render-td): Preserve point, as shr-render-td-1 might move it as a side effect of save-window-excursion. (Bug#29348) 2017-11-25 Eli Zaretskii Make sure 'dired-filename' property is always put by ls-lisp * lisp/ls-lisp.el (ls-lisp-classify): Do not put the 'dired-filename' text property on the file name here... (ls-lisp-classify-file): ...put it here instead. (Bug#29423) 2017-11-24 Eli Zaretskii A better solution for bug#29347 * src/thread.c (really_call_select): Don't try to take the global lock if the same thread is already holding it. (Bug#29347) 2017-11-24 Eli Zaretskii Avoid a hang after C-g while sit-for on a Unix TTY * src/thread.c (acquire_global_lock): Don't try to take the global lock if the same thread is already holding it. (Bug#29347) 2017-11-24 Eli Zaretskii Improve the doc string of 'list-packages' * lisp/emacs-lisp/package.el (list-packages): Describe in the doc string the columns shown by the command. (Bug#29420) 2017-11-24 Eli Zaretskii Improve discoverability of 'defvar' for suppressing warnings * doc/lispref/compile.texi (Compiler Errors): Add index entries. * doc/lispref/variables.texi (Defining Variables): Mention that defvar with no value is used for suppressing compiler warnings. (Bug#29400) 2017-11-24 Eli Zaretskii Improve discoverability of 'read-buffer-completion-ignore-case' * lisp/window.el (switch-to-buffer) (switch-to-buffer-other-window, switch-to-buffer-other-frame): Mention 'read-buffer' in the doc string. (Bug#29389) * doc/emacs/buffers.texi (Select Buffer): Add a cross-reference to where 'read-buffer-completion-ignore-case' is documented. 2017-11-24 Eli Zaretskii Improve documentation of self-insert-uses-region-functions * lisp/simple.el (self-insert-uses-region-functions): Clarify the doc string. * lisp/delsel.el (delete-selection-uses-region-p): Mention 'self-insert-command' in the doc string. (Bug#29373) * doc/lispref/text.texi (Commands for Insertion): Mention 'self-insert-uses-region-functions'. * doc/lispref/modes.texi (Keymaps and Minor Modes): Add a cross-reference to "Commands for Insertion". 2017-11-24 Eli Zaretskii Reflect changes in copy-file and rename-file in doc strings * src/fileio.c (Fcopy_file, Frename_file): Mention in the doc strings that directory names must end in a slash. (Bug#29362) 2017-11-24 Eli Zaretskii * lisp/progmodes/cc-vars.el (c-offsets-alist): Doc fix. (Bug#29407) 2017-11-24 Eli Zaretskii Reorder type predicates in ELisp manual * doc/lispref/objects.texi (Type Predicates): Restore alphabetical order of listed predicates. (Bug#29411) 2017-11-23 Eli Zaretskii Fix backward scrolling in buffers with header-line * src/window.c (window_scroll_pixel_based): Account for the header-line when comparing Y coordinate with the last_visible_y. (Bug#29325) 2017-11-22 Glenn Morris * lisp/bindings.el (buffer-file-coding-system): Add explicit permanent-local mark. * src/fns.c (syms_of_fns) : Doc fix. 2017-11-22 Alan Third Fix incorrect interaction of drag/drop and double click (bug#29121) * src/nsterm.m (EmacsView::performDragOperation): Drag and drop doesn't use ns-input-file. 2017-11-22 Glenn Morris * lisp/menu-bar.el (menu-bar-options-save): Add display-line-numbers-type. * lisp/menu-bar.el (menu-bar-options-save): Add global-display-line-numbers-mode. (Bug#28396) * lisp/follow.el (follow-mode): Restore mode line lighter. (Bug#28495) 2017-11-22 Dmitry Gutov Extract the common part of ruby-flymake-simple and ruby-flymake-rubocop * lisp/progmodes/ruby-mode.el (ruby-flymake-simple) (ruby-flymake-rubocop): Extract the common part as ruby-flymake--helper. (ruby--rubocop-flymake-proc): Remove. Use the first proc variable instead. 2017-11-22 Dmitry Gutov Add Rubocop Flymake backend * lisp/progmodes/ruby-mode.el (ruby-flymake-command): Inline the value. There are no known substitutes. (ruby-flymake): Rename to `ruby-flymake-simple' and simplify the docstring. (ruby-flymake-use-rubocop-if-available): New option. (ruby--rubocop-flymake-proc): New variable. (ruby-rubocop-config): New option. (ruby-flymake-rubocop, ruby-flymake-auto): New functions. (ruby-mode): Use `ruby-flymake-auto'. 2017-11-21 Noam Postavsky Update nt/INSTALL.W64 (Bug#28601) * nt/INSTALL.W64 (Download and install MinGW-w64 and MSYS2): Move suggestion about modifying PATH to... (Test Emacs): ... here. (Run configure): Remove the unnecessary setting of PKG_CONFIG_PATH. (Troubleshooting): New section, includes suggestion to check PKG_CONFIG_PATH. 2017-11-21 Charles A. Roelli Remove incorrect NEWS item about VC state indicator (Bug#28817) * etc/NEWS (VC and related modes): Remove news item about the VC state indicator. This should have been done with commit 7882dc6 of 2016-03-06 'Revert "Use colors in the VC mode lines"'. 2017-11-21 Glenn Morris * lisp/emacs-lisp/byte-run.el (defsubst): Doc fix. 2017-11-21 Alan Mackenzie Make c-defun-name analyze more thoroughly a function type which is a struct This fixes bug #29293. * lisp/progmodes/cc-cmds.el (c-defun-name): When a struct (etc.) type is encountered, check whether it is the return type of a function rather than a declaration of the struct itself. Similarly adapt the cond arm which deals with functions properly to recognize struct return types. 2017-11-21 Glenn Morris Avoid bogus abbreviated file names if HOME changes * lisp/files.el (abbreviate-file-name): If HOME changes, ignore `abbreviated-home-dir'. (Bug#19657#20) * test/lisp/files-tests.el (files-test-abbreviated-home-dir): New. 2017-11-21 Glenn Morris * lisp/emacs-lisp/byte-run.el (inline): Give it a doc. 2017-11-21 Jay Kamat (tiny change) Fix erc keep-place module with new defaults (Bug#29111) * lisp/erc/erc-goodies.el (erc-keep-place): Allow erc keep-place to continue working with switch-to-buffer-preserve-window-point set to t, the new default. 2017-11-20 Alan Third Add window divider faces to NS (bug#29353) * src/nsterm.m (ns_draw_window_divider): Use window-divider-first-pixel and window-divider-last-pixel faces. 2017-11-20 Stefan Monnier * src/keyboard.c: Undo last change, meant for master only 2017-11-20 Michael Albinus Fix Bug#29149 * lisp/net/tramp.el (tramp-drop-volume-letter): Handle also backup file names. (tramp-handle-find-backup-file-name): Call `tramp-drop-volume-letter' on the results. (Bug#29149) 2017-11-20 Martin Rudalics Fix misbehavior when drawing three-pixel high horizontal dividers (Bug#29353) * src/xterm.c (x_draw_window_divider): * src/w32term.c (w32_draw_window_divider): Fix misbehavior when drawing three-pixel high horizontal dividers (Bug#29353). The misbehavior was noted by Keith David Bershatsky and analyzed by Alan Third. 2017-11-19 Mike Kupfer MH-E: don't automatically download external-body parts * lisp/mh-e/mh-mime.el (mh-mime-display-single): Use mm-automatic-display-p to verify that a part should be displayed before doing the inline checks (SF#475). 2017-11-19 Michael Albinus Further fix for Bug#29291 * test/lisp/net/tramp-tests.el (tramp-test24-file-acl): Check for local ACL support. (Bug#29291) 2017-11-19 Alan Third Fix divider frame params on NS (bug#29352) * src/nsfns.m (Fx_create_frame): Set right-divider-width and bottom-divider-width parameters. 2017-11-19 Paul Eggert Spelling fixes * lisp/help-fns.el (help-fns--analyze-function): Rename from help-fns--analyse-function. All uses changed. 2017-11-19 Olaf Rogalsky * src/keyboard.c: Make xterm-mouse clicks on mode-line work (read_key_sequence): Recompute first_event after replay_sequence, since it might have changed (bug#29104). 2017-11-18 Martin Rudalics Don't let delete_frame select a tooltip frame (Bug#27647) * src/frame.c (delete_frame): Don't select a tooltip frame. (Bug#27647) 2017-11-18 Alan Mackenzie Filter obtrusive events in help-read-key-sequence. This fixes most of bug #29272. * lisp/help.el (help-read-key-sequence): After a mouse event, pause for 0.01s, discarding any events (such as ) received in this time, before polling for the double-click (etc.) events which may follow. This fixes the infinite loop which occurred whwn events triggered a sit-for whilst handling menu events. 2017-11-18 Michael Albinus Fix symlink flag in tramp-gvfs-handle-file-attributes * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes): Set proper symlink file mode flag. 2017-11-18 Michael Albinus Fix bug in tramp-handle-file-truename * lisp/net/tramp.el (tramp-handle-file-truename): Expand localname. * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Check also relative symbolic links. 2017-11-18 Eli Zaretskii Fix a typo in doc string of electric-indent-functions-without-reindent * lisp/electric.el (electric-indent-functions-without-reindent): Doc fix. (Bug#29304) 2017-11-18 Eli Zaretskii Avoid assertion violations in echo_area_display * src/xdisp.c (echo_area_display): Don't try redisplaying the echo area if the selected-frame's mini-window is nil. (Bug#27647) 2017-11-18 Eli Zaretskii Fix case-folding in Occur * lisp/replace.el (occur-engine): Bind case-fold-search in each buffer we search. (Bug#29254) 2017-11-18 OGAWA Hirofumi (tiny change) Fix quick-calc in C mode with hex values * lisp/calc/calc-aent.el (math-read-token): Make sure the match against "0[xX][0-9a-fA-F]+" is found at math-exp-pos. See http://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00174.html for the details. 2017-11-18 Eli Zaretskii Improve documentation of dired-next/prev-marked-file * lisp/dired.el (dired-next-marked-file, dired-prev-marked-file): Doc fixes. (Bug#29340) 2017-11-17 Eli Zaretskii Prevent aborts in line-move-visual * src/indent.c (line_number_display_width): Avoid assertion violations in init_iterator when the window's buffer was temporarily switched without updating window-start. (Bug#29326) 2017-11-17 Eli Zaretskii More fixes in src/.gdbinit * src/.gdbinit (pwinx): Update to match 'struct window'. (pcursorx): Use "." instead of "->" because the argument is a struct, not a pointer. 2017-11-17 Robert Pluim Document how to enter whitespace when using grep-read-files * lisp/progmodes/grep.el (lgrep, rgrep, grep-read-files): Explain how to enter whitespace when using grep-read-files. (Bug#29303) * lisp/progmodes/project.el (project-find-regexp): Likewise. * lisp/vc/vc-git.el (vc-git-grep): Likewise. 2017-11-17 Eli Zaretskii Fix .gdbinit following lisp.h changes * src/.gdbinit (xsymname, pwinx, pgx, xbuffer, xcar, xcdr, xlist) (xprintstr): Adapt to latest changes in Lisp object C structures. (Bug#29332) 2017-11-15 Charles A. Roelli * lisp/simple.el (shell-command): Doc fixes. 2017-11-15 Noam Postavsky Fix marker adjustment for undo (Bug#29118) * lisp/simple.el (primitive-undo): Compare marker against absolute value of POS, because the sign of POS is irrelevant to markers. 2017-11-14 Daniel Pittman Fix Bug#28139 * lisp/net/tramp-sh.el: Set TERM and INSIDE_EMACS environment earlier. (tramp-remote-process-environment): Remove TERM and INSIDE_EMACS. (tramp-remote-process-environment): Document their special handling. (tramp-open-shell): Set TERM and INSIDE_EMACS prior to starting the initial remote shell, so that it is also aware of the environment in which it is operating. (Bug#28139) 2017-11-14 Michael Albinus Fix Bug#29291 * test/lisp/net/tramp-tests.el (tramp-test24-file-acl): Preserve permissions when copying. (Bug#29291) 2017-11-14 Michael Albinus Fix Bug#2928 * test/lisp/net/tramp-tests.el (tramp-test25-file-selinux): Enhance test. (Bug#29287) (tramp-test44-delay-load): Fix for older Emacsen. 2017-11-14 Martin Rudalics Make 'mouse-drag-and-drop-region' work with 'mouse-autoselect-window' non-nil * lisp/mouse.el (mouse-drag-and-drop-region): Ignore 'select-window' events to make it work with 'mouse-autoselect-window'. 2017-11-14 Alexander Gramiak * etc/PROBLEMS: Remove fixed xterm-mouse-mode problems See: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29143#26 2017-11-14 Katsumi Yamaoka Fix cookie handling (bug#29282) * lisp/url/url-cookie.el (url-cookie-handle-set-cookie): Regard a Set-Cookie header as it contains a single cookie; prefer Max-Age to Expires and convert it to Expires; remove support for old time string styles (bug#29282). 2017-11-13 Gemini Lasswell Improve documentation of Edebug and macros * doc/lispref/edebug.texi (Instrumenting Macro Calls): Improve discussion of when it might be necessary to find and evaluate macro specifications before instrumenting. (Specification List): Clarify what "defining form" means to Edebug and when 'def-form' or 'def-body' should be used instead of 'form' or 'body'. 2017-11-13 Paul Eggert Port to IBM xlc 12.01 Work around a compiler bug by using a separate enum for alignment. * src/alloc.c (roundup_size): Declare in a separate enum. 2017-11-13 Paul Eggert Simplify by removing HAVE_STRUCT_ATTRIBUTE_ALIGNED * configure.ac (HAVE_STRUCT_ATTRIBUTE_ALIGNED): Remove. No longer needed, since we no longer rely on __attribute__ ((aligned (8))). All uses removed. * src/emacs-module.c (HAVE_STRUCT_ATTRIBUTE_ALIGNED): Remove. (lisp_to_value): Simplify now that we no longer need to worry whether HAVE_STRUCT_ATTRIBUTE_ALIGNED is false. 2017-11-13 Paul Eggert Use alignas to fix GCALIGN-related bugs Use alignas and unions to specify alignments of objects needing addresses that are at least a multiple of GCALIGNMENT. Using these standard C facilities should be safer than relying on ad hoc and poorly-understood features like GCC’s __attribute__ ((aligned (N))), the root cause for recent porting bugs like Bug#29040. The alignas macro was standardized by C11 and Gnulib supports alignas for pre-C11 platforms. I have tested this on Sun Studio 12 sparc (2007) and GCC 4.4.7 x86-64 (2012) as well as on more recent platforms like GCC 7.2.1 (2017) on Fedora 26 (both x86-64 and x86). * lib-src/make-docfile.c (close_emacs_globals): lispsym is now just an array of struct Lisp_Symbol, since struct Lisp_Symbol is now properly aligned. All uses changed. * src/alloc.c (NEXT_FREE_LISP_STRING): Just use the new u.next member; this is simpler and safer than casting a pointer that might not be aligned properly. (aligned_Lisp_Symbol): Remove. No longer needed, now that struct Lisp_Symbol is aligned properly. All uses replaced with struct Lisp_Symbol. * src/lisp.h (GCALIGNED): Remove, as it does not work as expected: it can cause the natural alignment to be ignored. All uses replaced by unions with a ‘char alignas (GCALIGNMENT)’ member as described below. (struct Lisp_Symbol, struct Lisp_Cons, struct Lisp_String): Change definition from ‘struct TAG { MEMBERS };’ to ‘struct TAG { union { struct { MEMBERS } s; char alignas (GCALIGNMENT) gcaligned; } u; };’. This guarantees ‘struct TAG’ to have an alignment that at least max (GCALIGNMENT, N) where N is its old alignment. All uses like ‘PTR->MEMBER’ changed to ‘PTR->u.s.MEMBER’; these uses were supposed to be mostly private anyway. Verify that the resulting ‘struct TAG’ is properly aligned for Emacs. (union vectorlike_header): New member ‘gcaligned’ to guarantee that this type, and its containing types like ‘struct Lisp_Subr’, ‘struct buffer’ and ‘struct thread_state’, are all properly aligned for Emacs. (struct Lisp_String): New union member ‘next’, for the benefit of NEXT_FREE_LISP_STRING. (union Aligned_Cons, union Aligned_String): Remove. All uses replaced by struct Lisp_Cons and struct Lisp_String, since they are now properly aligned. (USE_STACK_CONS, USE_STACK_STRING): Simplify now that we can assume struct Lisp_Cons and struct Lisp_String are properly aligned. 2017-11-13 Paul Eggert Change vectorlike from struct to union * src/lisp.h (vectorlike_headed): Change from struct to union. All uses changed. Since it has only one member, this does not change semantics. This is designed to simplify future changes needed to fix bugs like Bug#29040. All uses changed. 2017-11-12 Tom Tromey Don't enable cursor-sensor-mode in mhtml-mode * lisp/textmodes/mhtml-mode.el (mhtml--last-submode): Update doc string. (mhtml-mode): Don't call cursor-sensor-mode. 2017-11-12 Eli Zaretskii * lisp/files.el (abbreviate-file-name): Doc fix. (Bug#29267) 2017-11-12 João Távora Unbreak interactive run of a flymake test (bug#29267) See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19657#20 for the technique used here. * test/lisp/progmodes/flymake-tests.el (ruby-backend): Let-bind abbreviated-home-dir. 2017-11-12 Michael Albinus Fix Bug#29225 * src/fileio.c (Fset_file_acl): Report error only when acl_errno_valid returns true. (Bug#29225) * test/lisp/net/tramp-tests.el (tramp-test24-file-acl) (tramp-test25-file-selinux): New tests. (tramp-test26-file-name-completion, tramp-test27-load) (tramp-test28-process-file, tramp-test29-start-file-process) (tramp-test30-interrupt-process, tramp-test31-shell-command) (tramp-test32-environment-variables) (tramp-test32-environment-variables-and-port-numbers) (tramp-test33-explicit-shell-file-name) (tramp-test34-vc-registered) (tramp-test35-make-auto-save-file-name) (tramp-test36-find-backup-file-name) (tramp-test37-make-nearby-temp-file) (tramp-test38-special-characters) (tramp-test38-special-characters-with-stat) (tramp-test38-special-characters-with-perl) (tramp-test38-special-characters-with-ls, tramp-test39-utf8) (tramp-test39-utf8-with-stat, tramp-test39-utf8-with-perl) (tramp-test39-utf8-with-ls, tramp-test40-file-system-info) (tramp-test41-asynchronous-requests) (tramp-test42-recursive-load, tramp-test43-remote-load-path) (tramp-test44-delay-load, tramp-test45-unload): Rename. 2017-11-12 Alan Mackenzie CC Mode: Fix defun-open being recognized as brace-list-open at EOB. * lisp/progmodes/cc-engine.el (c-looking-at-statement-block): Add handling for an open brace at EOB and nested braces inside an unclosed brace block. 2017-11-12 Paul Eggert Merge from Gnulib This incorporates: 2017-11-11 faccessat: port to macOS (Bug#29231) 2017-11-05 fstatat: pacify GCC on unusual platform * build-aux/config.guess, build-aux/config.sub: * doc/misc/texinfo.tex, lib/faccessat.c, lib/fstatat.c: * lib/unistd.in.h, m4/faccessat.m4, m4/unistd_h.m4: Copy from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. 2017-11-12 Paul Eggert Pacify GCC when configured --with-x-toolkit=no Without these changes, Emacs does not build on Fedora 26 x86-64 when configured --with-x-toolkit=no --enable-gcc-warnings. * oldXMenu/Activate.c (XMenuActivate): Add FALLTHROUGH. * src/xterm.c (x_dispatch_event): Define only if USE_X_TOOLKIT || USE_MOTIF || USE_GTK. 2017-11-12 Eli Zaretskii * lisp/find-dired.el (find-grep-dired): Doc fix. (Bug#29262) 2017-11-12 João Távora Fix more flymake-diag-region eob corner cases and add tests (bug#29201) * lisp/progmodes/flymake.el (flymake-diag-region): Correct more eob corner cases. * test/lisp/progmodes/flymake-tests.el (eob-region-and-trailing-newline): New test. 2017-11-11 Basil L. Contovounesios Keep Man sections in natural order (bug#28998) * lisp/man.el (Man-build-section-alist): Reverse sections. 2017-11-11 Stefan Monnier * lisp/minibuffer.el: Install a workaround for bug#16274 * lisp/minibuffer.el (completion--nth-completion): Avoid signaling an error when `md` is applied to another table. 2017-11-11 Eli Zaretskii Fix comparisons with tip_frame in GTK builds * src/xterm.c (x_update_begin, x_new_font): * src/xfns.c (Fx_display_monitor_attributes_list): * src/frame.c (Fframe_list) [USE_GTK]: Don't consider tip_frame a tooltip frame unless its 'tooltip' parameter is non-nil. (Bug#26747) 2017-11-11 Eli Zaretskii Improve the documentation of M-n for entering file names * lisp/files.el (find-file, find-file-other-window) (find-file-other-frame): Mention file-name-at-point-functions in the doc string. Reported by Florian Weimer in http://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00224.html. * doc/emacs/mini.texi (Minibuffer History): Document file-name-at-point-functions and its effect on M-n when typing file names in the minibuffer. * doc/emacs/files.texi (File Names): * doc/emacs/mini.texi (Minibuffer File): Add a cross-reference to "Minibuffer History", where special features of M-n regarding files are described. 2017-11-11 Eli Zaretskii Fix desktop auto-save timer when linum-mode is used * lisp/desktop.el (desktop-read): Use toplevel value of window-configuration-change-hook when deciding whether desktop auto-saving is enabled. Suggested by Peter Neidhardt . (Bug#28945) 2017-11-11 Olaf Rogalsky Fix "C-h k" in xterm-mouse-mode * lisp/help.el (help-read-key-sequence): Support "C-h k" for xterm-mouse-mode by calling read-key-sequence-vector instead of read-event. (Bug#29150) 2017-11-11 Paul Eggert Fix off-by-1 bug in --enable-checking=stringbytes Evidently nobody builds Emacs with --enable-checking=all, which is no surprise as it is so slow as to be unusable nowadays. Perhaps we should remove the slowest checks, or move them into another category, or speed them up, or something. * src/alloc.c (SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Fix off-by-one error in size calculation, which caused a failure when --enable-checking=stringbytes was used. I introduced this bug in 2016-09-08T01:08:45!eggert@cs.ucla.edu "Port flexible array members to GCC + valgrind". 2017-11-10 Alan Mackenzie Correct the indentation of C99's compound literals. * lisp/progmodes/cc-engine.el (c-looking-at-statement-block): Amend so that if there is only syntactic whitespace in a brace block, it is regarded as a statement block. Also, if there is no semicolon or comma delimiter, treat as a statement block when there is a keyword. (c-guess-basic-syntax): CASE 9 test: Regard a brace as starting a brace block when its contents indicate a brace block. 2017-11-10 Eli Zaretskii Improve the doc string of 'dired-isearch-filter-filenames' * lisp/dired-aux.el (dired-isearch-filter-filenames): Doc fix. (Bug#29215) 2017-11-10 Eli Zaretskii * lisp/isearch.el (search-invisible): Doc fix. (Bug#29222) 2017-11-10 Eli Zaretskii Fix display of line numbers in GTK builds * src/xdisp.c (should_produce_line_number) [USE_GTK]: Make sure tip_frame is indeed a tooltip frame, before disabling line numbers on it. (Bug#27647) * src/dispextern.h (tip_frame): Add commentary describing the kludgey usage of this variable in GTK builds. 2017-11-10 João Távora Fix previous change to flymake-diag-region (bug#29174) * lisp/progmodes/flymake.el (flymake-diag-region): Pass line and col to commit. 2017-11-09 João Távora flymake-diag-region really returns nil if region is invalid (bug#29174) Reported by Lele Gaifax . * lisp/progmodes/flymake.el (flymake-diag-region): Really return nil if the region is invalid. 2017-11-09 João Távora Flymake correctly highlights whole last line if eob (bug#29201) If a line/column pair indicates an end-of-buffer position, flymake should behave like the case where the last line of the buffer is referenced without a column indication. This behavior is currently to highlight the whole last line. * lisp/progmodes/flymake.el (flymake-diag-region): Correct conditions of fallback to the fallback-eol local function. 2017-11-09 João Távora Protect Flymake checkdoc backend against checkdoc errors (bug#29176) The function checkdoc-current-buffer may error if there are unbalanced parens, for example, but this shouldn't disable the elisp-flymake-checkdoc backend. * lisp/progmodes/elisp-mode.el (elisp-flymake-checkdoc): Use ignore-errors. 2017-11-09 João Távora Sort entries of the Flymake diagnostics buffer (bug#29175) Reported by Lele Gaifax . * lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries): Sort results of flymake-diagnostics. 2017-11-09 Alan Mackenzie Correctly indent C++14 brace lists which are a second argument to a function. In particular, don't indent contained brace lists in "staircase" fashion. This fixes bug #28623. * lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): When testing for being enclosed in parens, recognize also a brace directly following a comma, as well as a brace being the first thing inside the paren. Enhance the return value, by indicating when we're directly inside an open paren. (c-inside-bracelist-p): Add an extra argument ACCEPT-IN-PARAM which indicates whether we will accept a bracelist directly inside an open parenthesis. Simplify the manipulation of PAREN-STATE by dispensing with variable LIM and using c-pull-open-brace. Enhance the return value, respecting the new argument. (c-guess-basic-syntax): Save a copy of the initial parse-state in the new variable STATE-CACHE. Use this variable in place of C-STATE-CACHE throughout the function. At CASE 7B, call c-inside-bracelist-p with extra argument nil. At CASE 9, call that function with extra argument t. 2017-11-09 Eli Zaretskii Fix redisplay of overlay-arrows on GUI frames * src/xdisp.c (try_window_reusing_current_matrix) (try_cursor_movement): Disallow these optimizations if the buffer has overlay arrow(s) shown on the fringe(s). (Bug#29198) 2017-11-09 João Távora Protect Flymake tests against older Ruby and Perl (bug#29187) * test/lisp/progmodes/flymake-tests.el (perl-backend): Search for the error from the bottom. (ruby-backend): Protect against situation of bug#29187 2017-11-09 Paul Eggert Fix URL cookie expiration bug Problem reported by Damien Cassou (Bug#29223). * lisp/url/url-cookie.el (url-cookie-expired-p): Fix typo in previous change, which caused unexpired cookies to be treated as expired and vice versa. 2017-11-09 Paul Eggert Use GCALIGNED properly for GCC Apparently GCC requires that ‘__attribute__ ((aligned (8)))’ must immediately follow the ‘struct’ keyword when aligning a structure. The attribute silently does not work if it follows a tag after the ‘struct’ keyword. Who knew? Anyway, this patch is designed to fix a SIGSEGV problem reported by John Mastro (Bug#29183). * lib-src/make-docfile.c (close_emacs_globals): * src/buffer.c (buffer_defaults, buffer_local_symbols): * src/lisp.h (DEFUN): * src/thread.c (main_thread): Put 'GCALIGNED' immediately after 'struct'. 2017-11-09 Glenn Morris In f90.el, set fill-paragraph-function to a useful value * lisp/progmodes/f90.el (f90-mode-map) : Add fill-paragraph. (f90-mode): Set fill-paragraph-function. (f90-fill-paragraph): New command. 2017-11-08 Eric Abrahamsen Fix to 2fddfb7ce7 * lisp/emacs-lisp/eieio-base.el (eieio-persistent-convert-list-to-object): Fix bogus paren wrapping. 2017-11-08 Glenn Morris * admin/gitmerge.el (gitmerge-resolve-unmerged): Fix doc typo. 2017-11-08 Charles A. Roelli Further workaround for faulty localtime() under macOS 10.6 * lisp/org/org-clock.el (org-clock--oldest-date): Fix an issue when compiling on macOS 10.6 with a western time zone (a continuation of Bug#27736). In particular, see: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27736#74 and the first commit that attempted to work around this problem, "Workaround for faulty localtime() under macOS 10.6", bd49b6f1 of 2017-09-30. 2017-11-08 Eric Abrahamsen Handle object string name in eieio-persistent-convert-list-object * lisp/emacs-lisp/eieio-base.el (eieio-persistent-convert-list-to-object): Starting to phase out the printing of object names in `object-write', handle either case. 2017-11-08 Ryan C. Thompson Fix handling of nil PRED2 arg for completion-table-with-predicate * lisp/minibuffer.el (completion-table-with-predicate): Don't act as if strict is non-nil when pred2 is nil (Bug#27841). * test/lisp/minibuffer-tests.el (completion-table-with-predicate-test): Add a test for Bug#27841. 2017-11-07 K. Handa Describe Lao rendering problem * etc/PROBLEMS: Describe a workaround for the problem of Lao rendering by OpenTyype font. 2017-11-07 K. Handa Fix docstring of arabic-shaper-ZWNJ-handling * lisp/language/misc-lang.el (arabic-shaper-ZWNJ-handling): Adjusted the doctstring for addition of :set (bug#28312). 2017-11-07 Antonin Houska (tiny change) Handle single-line comments correctly (Bug#26049) * lisp/newcomment.el (comment-region-internal): Previously, the comment text had to contain at least one line break character for the ending extra line to be added. Make the behavior more consistent by looking for end of line instead. (comment-region-internal): Remove trailing white space from the comment's initial line. 2017-11-07 Glenn Morris * test/lisp/net/tramp-tests.el (tramp-test16-file-expand-wildcards): Clean up properly. 2017-11-06 Stefan Monnier * etc/PROBLEMS: Add URL to relevant issues for xterm+evil bug 2017-11-06 Martin Rudalics Document new treatment of 'comment-auto-fill-only-comments' * doc/lispref/text.texi (Auto Filling): Add reference to Emacs manual. Add description of 'comment-auto-fill-only-comments'. * etc/NEWS: Mention new treatment of 'comment-auto-fill-only-comments'. 2017-11-05 Michael Albinus Do not load Tramp unless `tramp-mode' is non-nil * lisp/net/tramp.el (tramp-autoload-file-name-handler): Load Tramp only if `tramp-mode' is non-nil. (tramp-unload-file-name-handlers): Unload also `tramp-autoload-file-name-handler'. * test/lisp/net/tramp-tests.el (tramp-test42-delay-load): Extend test. 2017-11-05 Michael Albinus Prefer `customize-set-variable' in tramp.texi * doc/misc/tramp.texi (Configuration, Default Method, Default User) (Default Host, Remote shell setup, Auto-save and Backup) (Ad-hoc multi-hops, Frequently Asked Questions): Prefer `customize-set-variable' over `custom-set-variables'. 2017-11-05 Eli Zaretskii Fix last change in hscroll_window_tree * src/xdisp.c (hscroll_window_tree): When hscroll suspension is being disabled, set the frame's garbaged flag less eagerly. (Bug#29002) 2017-11-05 Philipp Stephani Ediff: add some missing documentation * lisp/vc/ediff.el (ediff-files, ediff-files3, ediff-buffers) (ediff-buffers3, ediff-merge-directories) (ediff-merge-directories-with-ancestor) (ediff-merge-directory-revisions) (ediff-merge-directory-revisions-with-ancestor) (ediff-windows-wordwise, ediff-windows-linewise) (ediff-regions-wordwise, ediff-regions-linewise) (ediff-merge-files, ediff-merge-files-with-ancestor) (ediff-merge-buffers, ediff-merge-buffers-with-ancestor) (ediff-merge-revisions, ediff-merge-revisions-with-ancestor) (ediff-patch-file, ediff-revision): Document missing arguments. (ediff-patch-buffer, ediff-revision): Add second space after period. (ediff-files-command, ediff3-files-command, ediff-merge-command) (ediff-merge-with-ancestor-command, ediff-directories-command) (ediff-directories3-command, ediff-merge-directories-command): Add documentation for the command line functions. 2017-11-05 Justin Timmons (tiny change) Support python virtualenv on w32 (Bug#24464) According to the virtualenv docs only POSIX systems follow the structure "/path/to/venv/bin/", while windows systems use "/path/to/venv/Scripts" for the location of the binary files, most importantly including the python interpreter (see: https://virtualenv.pypa.io/en/stable/userguide/#windows-notes). * lisp/progmodes/python.el (python-shell-calculate-exec-path): Use the "/path/to/venv/Scripts" for `windows-nt' machines. 2017-11-05 Noam Postavsky Improve dired deletion error handling (Bug#28797) * lisp/dired.el (dired-internal-do-deletions): Use `error-message-string' to produce a human readable error message. 2017-11-05 Noam Postavsky Don't replace user input when completion prefix is empty (Bug#18951) * lisp/pcomplete.el (pcomplete-parse-arguments): Only replace user input if we produced a non-empty common completion stub. 2017-11-05 Eli Zaretskii Return non-nil from gnutls-available-p under GnuTLS 2.x * doc/misc/emacs-gnutls.texi (Help For Users): Update the documentation of 'gnutls-available-p'. * etc/NEWS (GnuTLS): Mention the change in the value returned by 'gnutls-available-p'. * src/gnutls.c (Fgnutls_available_p): Return non-nil when GnuTLS 2.x is available. (Bug#29147) 2017-11-05 João Távora Fix Flymake help-echo functions across windows (bug#29142) * lisp/progmodes/flymake.el (flymake--highlight-line): Use with-selected-window. (flymake-goto-next-error): Call help-echo with a window and an overlay. 2017-11-05 João Távora Add tests for Flymake backends for Ruby and Perl * test/lisp/progmodes/flymake-tests.el (perl-backend) (ruby-backend): New tests. (warning-predicate-rx-perl, warning-predicate-function-perl): Delete tests. * test/lisp/progmodes/flymake-resources/test.pl: Include an error the test file. * test/lisp/progmodes/flymake-resources/test.rb: file. 2017-11-05 João Távora Add a Flymake backend for Perl Define a simple backend in perl-mode.el, which cperl-mode.el also uses. * lisp/progmodes/cperl-mode.el (cperl-mode): Add to flymake-diagnostic-functions. * lisp/progmodes/flymake-proc.el (flymake-proc-allowed-file-name-masks): Disable legacy backend for perl files. * lisp/progmodes/perl-mode.el (perl-flymake-command): New defcustom. (perl--flymake-proc): New buffer-local variable. (perl-flymake): New function. (perl-mode): Add to flymake-diagnostic-functions. 2017-11-05 João Távora Add a Flymake backend for Ruby * lisp/progmodes/ruby-mode.el (ruby-flymake-command): New defcustom. (ruby--flymake-proc): New buffer-local variable. (ruby-flymake): New function. (ruby-mode): Add flymake-diagnostic-functions. 2017-11-05 Lele Gaifax Add a Flymake backend for Python (bug#28808) Implement new Flymake backend with related customizable settings. * lisp/progmodes/python.el (python-flymake-command) (python-flymake-command-output-pattern) (python-flymake-msg-alist): New defcustom. (python--flymake-parse-output): New function, able to parse python-flymake-command output accordingly to python-flymake-command-output-pattern. (python-flymake): New function implementing the backend interface using python--flymake-parse-output for the real work. (python-mode): Add python-flymake to flymake-diagnostic-functions. 2017-11-05 Michael Albinus Allow "%" in Tramp host names * lisp/net/tramp-gvfs.el (tramp-gvfs-url-file-name): Hexify also host. * lisp/net/tramp.el (tramp-host-regexp): Allow "%" in host names. 2017-11-04 Noam Postavsky Use hybrid malloc for FreeBSD (Bug#28308) FreeBSD aarch64 does not provide sbrk, so gmalloc cannot be used; when using system malloc dumping does not work correctly (allocated data is invalid after dumping). * configure.ac: Set hybrid_malloc for freebsd. * src/gmalloc.c (gdefault_morecore) [!HAVE_SBRK]: Don't call sbrk. 2017-11-04 Charles A. Roelli Add html-, mhtml- and python-mode support to semantic symref * lisp/cedet/semantic/symref/grep.el (semantic-symref-filepattern-alist): Fix the entry for 'html-mode', which used a regexp-like syntax where only glob syntax is permitted. As a result, 'xref-find-references' (M-?) can now find references in HTML files. Also duplicate the same entry for the sake of 'mhtml-mode', and add a new one for 'python-mode'. (semantic-symref-derive-find-filepatterns): In the documentation, clarify that returned patterns must follow the glob syntax. Fix an 'if' test that always evaluates to nil. (semantic-symref-tool-grep): (semantic-symref-perform-search): Fix typos. 2017-11-04 Eli Zaretskii Improve documentation of 'window-scroll-functions' * doc/lispref/windows.texi (Window Hooks): Clarify the values of arguments of 'window-scroll-functions' functions. * src/xdisp.c (syms_of_xdisp) : Doc fix. 2017-11-04 Eli Zaretskii Fix subtle problems in tabulated-list-mode with line numbers * lisp/emacs-lisp/tabulated-list.el (tabulated-list-watch-line-number-width): Call tabulated-list-init-header instead of tabulated-list-revert. (tabulated-list-window-scroll-function): New function. (tabulated-list-mode): Put 'tabulated-list-window-scroll-function' on the buffer-local 'window-scroll-functions' list. 2017-11-04 Eli Zaretskii Make gdb-non-stop-setting default to nil on MS-Windows * lisp/progmodes/gdb-mi.el (gdb-non-stop-setting): Now nil on MS-Windows. 2017-11-04 Mike Gulick (tiny change) Fix gdb-mi prompt after "attach PID" command * lisp/progmodes/gdb-mi.el (gdbmi-bnf-console-stream-output): Set gdb-first-done-or-error non-nil. (Bug#29020) 2017-11-04 Eli Zaretskii Fix doc string of 'window-configuration-change-hook' * src/window.c (syms_of_window) : Doc fix. (Bug#29049) 2017-11-04 Eli Zaretskii Improve documentation of window hooks * doc/lispref/windows.texi (Window Hooks): Fix the description of window-configuration-change-hook. (Bug#29049) : Document these functions. 2017-11-04 Eli Zaretskii Fix hscroll suspension after cursor motion * src/xdisp.c (hscroll_window_tree): Trigger a thorough redisplay of the window when temporary suspension of hscrolling is disabled. (Bug#29002) 2017-11-03 Alan Mackenzie Introduce a function to CC Mode which displays the current function name Remove an erroneous interactive specification from two functions. * lisp/progmodes/cc-cmds.el (c-display-defun-name): New command. (c-defun-name, c-cpp-define-name): Remove interactive specification. * lisp/progmodes/cc-mode.el (c-mode-base-map): Add binding C-c C-z for the new command. * doc/misc/cc-mode.texi (Other Commands): Add documentation for the new command. 2017-11-03 Eli Zaretskii Fix typos in ediff-wind.el * lisp/vc/ediff-wind.el (ediff-setup-windows-multiframe-merge): Fix typos in commentary. (Bug#29138) 2017-11-03 João Távora Examine tex-chktex--process in the correct buffer As in other Flymake backends, the process sentinel might run in arbitrary buffers where this variable's value doesn't make sense. For a way to trigger a problem due to this, see discussion starting in https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00645.html * lisp/textmodes/tex-mode.el (tex-chktex): Use with-current-buffer. 2017-11-03 Stephen Leake * nt/INSTALL.W64: Update to current mingw64 install instructions 2017-11-03 João Távora Don't resignal errors in flymake-diag-region * lisp/progmodes/flymake.el (flymake-diag-region): Use flymake-log instead of flymake-error. 2017-11-03 João Távora New xref-quit-and-goto-xref command bound to TAB (bug#28814) This is like xref-goto-xref, but quits the *xref* window just before the user jump to ref. * lisp/progmodes/xref.el (xref--show-location): Handle 'quit value for SELECT. (xref-goto-xref): Take optional QUIT arg. (xref-quit-and-goto-xref): New command. (xref--xref-buffer-mode-map): Bind "Q" and "TAB" to xref-quit-and-goto-xref. * doc/emacs/maintaining.texi (Xref Commands): Describe new bindings in *xref*. * etc/NEWS (Xref): Describe new binding. 2017-11-03 João Távora Allow split-window-sensibly to split threshold in further edge case As a fallback, and to avoid creating a frame, split-window-sensibly would previously disregard split-height-threshold if the window to be split is the frame's root window. This change generalizes that: it disregards the threshold if the window to be split is the frame's only _usable_ window (it is either the only one, as before, or all the other windows are dedicated to some buffer and thus cannot be touched). This is required for the fix to bug#28814. * lisp/window.el (split-height-threshold): Adjust doc to match split-window-sensibly. (split-window-sensibly): Also disregard threshold if all other windows are dedicated. 2017-11-03 João Távora Honor window-switching intents in xref-find-definitions (bug#28814) When there is more than one xref to jump to, and an *xref* window appears to help the user choose, the original intent to open a definition in another window or frame is remembered when the choice to go to or show a reference is finally made. * lisp/progmodes/xref.el (xref--show-pos-in-buf): Rewrite. (xref--original-window-intent): New variable. (xref--original-window): Rename from xref--window and move up here for clarity. (xref--show-pos-in-buf): Rewrite. Don't take SELECT arg here. (xref--show-location): Handle window selection decision here. (xref--window): Rename to xref--original-window. (xref-show-location-at-point): Don't attempt window management here. (xref--show-xrefs): Ensure display-action intent is saved. 2017-11-03 Paul Pogonyshev * lisp/emacs-lisp/generator.el (iter-do): Add a debug declaration. 2017-11-03 Stefan Monnier * lisp/progmodes/flymake.el (flymake-start): Fix dead buffer case Don't try to flymake-start within a buffer that doesn't exist any more. 2017-11-03 Basil L. Contovounesios Fix buffer name comparison in async shell-command * lisp/simple.el (shell-command): Keep track of output-buffer by its name, not by its object. (Bug#28997) 2017-11-03 Paul Eggert Change GCALIGNMENT back to an integer literal * src/lisp.h (GCALIGNMENT): Change it back to a macro that expands to a literal integer constant, for older GCC. I had mistakenly thought that only MSVC had the problem. Problem repored by Eli Zaretskii (Bug#29040#69). 2017-11-03 Paul Eggert * src/lisp.h (GCALIGNED): Clarify comment (Bug#29040). 2017-11-03 Hong Xu Improve the doc of eshell-cmpl-* custom variables (Bug#25069) * lisp/eshell/em-cmpl.el (eshell-cmpl--custom-variable-docstring): New function to generate the docstring for custom variables derived from pcomplete-* variables. (eshell-cmpl-file-ignore, eshell-cmpl-dir-ignore) (eshell-cmpl-ignore-case, eshell-cmpl-autolist) (eshell-cmpl-suffix-list, eshell-cmpl-recexact) (eshell-cmpl-man-function, eshell-cmpl-compare-entry-function) (eshell-cmpl-expand-before-complete, eshell-cmpl-cycle-completions) (eshell-cmpl-cycle-cutoff-length, eshell-cmpl-restore-window-delay) (eshell-command-completion-function, eshell-cmpl-command-name-function) (eshell-default-completion-function, eshell-cmpl-use-paring): Use it to set the docstring. 2017-11-02 Alan Third Fix mouse-scrollbar offset on GNUstep and old macOS (bug#29053) * src/nsterm.m (EmacsScroller::mouseDown, EmacsScroller::mouseDragged): Take scroller buttons into account when calculating scroller knob position. 2017-11-02 Paul Eggert Merge from Gnulib This incorporates: 2017-10-29 timespec: prefer ‘assume’ to ‘assure’ 2017-10-27 timespec.h: use "assure" to avoid a spurious warning 2017-10-09 getopt-posix: Fix build failure if ac_cv_header_getopt_h=no * build-aux/config.guess, build-aux/config.sub: * lib/timespec.h, lib/unistd.in.h: Copy from Gnulib. 2017-11-02 Paul Eggert Fix alignment portability problems Do not assume that the natural alignment of Lisp objects is a multiple of GCALIGNMENT. This improves on the portability of the recent fix for Bug#29040. * lib-src/make-docfile.c (close_emacs_globals): * src/buffer.c (buffer_defaults, buffer_local_symbols): * src/lisp.h (DEFUN): * src/thread.c (main_thread): Use GCALIGNED, not alignas (GCALIGNMENT). * src/alloc.c (COMMON_MULTIPLE): Move back here from lisp.h, since it is no longer used elsewhere. * src/lisp.h (GCALIGNMENT): No longer a macro, since we need not worry about MSVC. Omit no-longer-needed consistency check. * src/thread.c (THREAD_ALIGNMENT): Remove. 2017-11-02 Simen Heggestøyl Fix completion of colon after CSS property (Bug#29056) * lisp/textmodes/css-mode.el (css-completion-at-point): Don't insert ": ;" after completing a CSS property unless the rest of the line is empty. 2017-11-02 Stefan Monnier * src/alloc.c (sweep_symbols): Tweak last change Avoid the double-free without the extra check. Add an explanatory comment. 2017-11-02 Martin Rudalics In frame parameters documentation mention desktop saving/restoring * doc/lispref/frames.texi (Frame Parameters): Mention that applications have to care about which parameters they want to get saved and restored by the desktop library. 2017-11-02 Martin Rudalics Don't have frameset save the 'client' parameter (Bug#29067) * lisp/frameset.el (frameset-persistent-filter-alist): Never save 'client' parameter (Bug#29067). 2017-11-02 Gemini Lasswell Handle generic variables in cl-defgeneric Edebug spec *lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Fix Edebug spec to match (setf name) and replace incorrect cl-lambda-list with listp (Bug#27747). 2017-11-02 Noam Postavsky Give a more sensible message if file-attributes fails (Bug#29070) * lisp/server.el (server-ensure-safe-dir): Don't claim the directory is a file if we fail to get anything from `file-attributes'. 2017-11-01 Andreas Schwab Avoid wrong value from file-attributes on Linux kernel before 3.6 * src/dired.c (file_attributes): Handle unsupported fstat on O_PATH descriptors. (bug#29070) 2017-11-01 Noam Postavsky Fix customization of debugger-print-function (Bug#29077) * lisp/emacs-lisp/debug.el (debugger-print-function): The :options keyword has no effect for :type 'function, use :type '(choice ...) instead. 2017-10-31 Eli Zaretskii Avoid duplicate calls to xfree for the same pointer * src/alloc.c (sweep_symbols): Avoid freeing an already freed pointer to a symbol's buffer-local value. (Bug#29066) 2017-10-31 Phil Sainty Don't clobber docstrings of explicitly-defined mode hook variables * lisp/emacs-lisp/derived.el (define-derived-mode): * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): When defining the mode hook variable, do not clobber pre-existing docstrings. 2017-10-31 Martin Rudalics Avoid fullscreen ediff control frames by default (Bug#29026) * lisp/vc/ediff-wind.el (ediff-control-frame-parameters): Add parameter to avoid fullscreen control frames (Bug#29026). 2017-10-31 Katsumi Yamaoka Fix the bug#24034 change (revno 9eb028f) causing infloop (bug#29047) * lisp/net/shr.el (shr-fill-line): Copy only face and image-displayer properties to gaps (bug#29047). 2017-10-30 Eli Zaretskii Fix a typo in the ELisp manual * doc/lispref/functions.texi (Obsolete Functions): Fix a typo. (Bug#29068) 2017-10-30 Martin Rudalics Fix doc and doc-strings for minibuffer window related functions (Bug#28978) These fixes were suggested by Drew Adams. * src/window.c (Fminibuffer_selected_window): Disambiguate doc-string. * doc/lispref/minibuf.texi (Intro to Minibuffers) (Minibuffer Windows, Recursive Mini, Minibuffer Misc): Avoid the term "currently active minibuffer window". Disambiguate documentation of `minibuffer-selected-window'. 2017-10-30 Alan Mackenzie Fix "Args out of range" error in c-determine-limit. Fixes bug #28598. * lisp/progmodes/cc-engine.el (c-determine-limit-get-base): If the candidate position for BASE is below point-min, scan forward to the end of the current literal. (c-determine-limit): Add an extra arm to the final cond form, testing for BASE being at point-min. 2017-10-30 Stefan Monnier * lisp/progmodes/perl-mode.el: Fix electric indentation with RET (perl-electric-noindent-p): The `eolp' check should not apply to RET. Reported in https://emacs.stackexchange.com/questions/36337. 2017-10-29 Tom Tromey Extend mhtml submode region when in comment * lisp/textmodes/mhtml-mode.el (mhtml-syntax-propertize): Extend submode when start happens to be in a comment. 2017-10-29 Tom Tromey Fix mthml submode lighting at end of buffer * lisp/textmodes/mhtml-mode.el (mhtml--submode-lighter): Handle end of buffer correctly. 2017-10-29 Tom Tromey Remember more variables in mhtml-mode * lisp/textmodes/mhtml-mode.el (mhtml--crucial-variable-prefix): Add "completion-" and "major-mode". (mhtml--variable-prefix): Remove "major-mode". 2017-10-29 Thomas Fitzsimmons * etc/NEWS (EUDC): Deprecate BBDB 2.x backward compatibility. 2017-10-29 Martin Rudalics Fix minibuffer window related docs and strings (Bug#28978) * src/frame.c (Vdefault_minibuffer_frame): Fix doc-string. * src/window.c (Fminibuffer_selected_window): Fix doc-string. * doc/lispref/frames.texi (Buffer Parameters): Rewrite description of `minibuffer' parameter. * doc/lispref/minibuf.texi (Minibuffer Windows): Reorder entries and partly rewrite section. (Minibuffer Misc): Clarify description of `minibuffer-selected-window'. * etc/NEWS: Mention new semantics of 'minibuffer' frame parameter. 2017-10-29 Mark Oteiza Add ChkTeX flymake backend for latex-mode * lisp/textmodes/tex-mode.el (tex-flymake): New custom group. (tex-chktex-program, tex-chktex-extra-flags): New custom variables. (latex-mode): Add backend to flymake-diagnostic-functions. (tex-chktex--process): New variable. (tex-chktex-command, tex-chktex): New functions. 2017-10-29 Glenn Morris Fix doc typos * lisp/simple.el (line-move-ignore-invisible): * lisp/sort.el (sort-regexp-fields): * lisp/cedet/ede.el (project-add-file): * lisp/gnus/message.el (message-bogus-recipient-p): * lisp/international/mule.el (define-coding-system): * lisp/progmodes/ebrowse.el (ebrowse-member-buffer-object-menu): * lisp/progmodes/xscheme.el (xscheme-allow-output-p) (scheme-interaction-mode, scheme-debugger-mode) (xscheme-yank-pop, xscheme-yank-push): Doc fixes. 2017-10-29 Glenn Morris Fix some duplicate word typos * doc/misc/ede.texi (ede-target): * doc/misc/flymake.texi (Using Flymake): * doc/misc/gnus.texi (The namazu Engine): Fix typos. 2017-10-28 Eli Zaretskii * doc/lispref/commands.texi (Adjusting Point): Fix wording. (Bug#29042) 2017-10-28 Eli Zaretskii Avoid segfaults in 64-bit Windows builds * src/lisp.h (COMMON_MULTIPLE): Move here from alloc.c. * src/thread.c (THREAD_ALIGNMENT): New macro. (main_thread): Use THREAD_ALIGNMENT to align propertly. (Bug#29040) 2017-10-28 Eli Zaretskii Fix conversion of pixel coordinates to buffer position * src/dispnew.c (buffer_posn_from_coords): Adapt to auto-hscroll-mode == current-line. 2017-10-28 Eli Zaretskii Fix doc strings in desktop.el * lisp/desktop.el (desktop-auto-save-timeout) (desktop-auto-save-set-timer): Doc fixes. (Bug#28945) 2017-10-28 Eli Zaretskii Add Index to ERT manual * doc/misc/ert.texi: Add @syncodeindex directives. (Index): New node. (Top): Add Index to the top-level menus. Add index entries to all nodes. 2017-10-28 Eli Zaretskii Make manuals and NEWS consistent * etc/NEWS: Fix markings on several entries, and rearrange others as needed. * doc/emacs/programs.texi (Hideshow): Document the new outline-like bindings. * doc/emacs/search.texi (Query Replace): Document 'u' and 'U'. 2017-10-28 Martin Rudalics Don't allow (minibuffer-window-active-p nil) to return t * lisp/window.el (minibuffer-window-active-p): Return t only if WINDOW is a live window. 2017-10-28 Eli Zaretskii Clarify obsolescence message for 'whitespace-tab' * lisp/whitespace.el (whitespace-tab): Make the obsolescence message more clear about the replacement. 2017-10-28 Glenn Morris Fix some duplicate words typos * lisp/erc/erc.el (erc-hide-current-message-p): * lisp/progmodes/flymake-proc.el (flymake-proc-diagnostic-type-pred): * doc/lispref/display.texi (Bidirectional Display, Delayed Warnings): * doc/lispref/functions.texi (Defining Functions): * doc/lispref/os.texi (Terminal-Specific): * doc/misc/sem-user.texi (Analyzer Debug): * doc/misc/srecode.texi (Special Variables): Fix typos. 2017-10-28 Glenn Morris * lisp/button.el (button-activate): Fix doc typo. * lisp/calendar/todo-mode.el (todo-toggle-mark-item): Fix doc typo. 2017-10-28 Glenn Morris Fix some doc typos * lisp/calendar/todo-mode.el (todo-next-item) (todo-previous-item, todo-toggle-item-header): * lisp/window.el (move-to-window-group-line): * src/editfns.c (Fformat): * test/lisp/calendar/todo-mode-tests.el (todo-test-move-item05): Fix doc typos. 2017-10-27 Ken Brown Fix startup display on Cygwin * src/xterm.c (x_make_frame_visible) [CYGWIN]: Restore code that forces input to be read. (Bug#24091) 2017-10-27 Eli Zaretskii * src/fileio.c (Fset_default_file_modes): Fix typo in doc string. * lisp/dired.el (dired-find-alternate-file): Doc fix. (Bug#28963) 2017-10-27 Eli Zaretskii Improve documentation of how faces are applied to display stings * doc/lispref/display.texi (Displaying Faces): Describe how the faces of the "underlying" text affect overlay and display strings. (Display Margins): Add a cross-reference to "Displaying Faces". 2017-10-27 Tak Kunihiro Improve pixel-scroll-mode Scroll vertically by number of pixels returned by 'frame-char-height' with or without horizontally scrolled. (Bug#28922) * lisp/pixel-scroll.el (pixel-resolution-fine-flag): When t, scroll by number of pixels returned by 'frame-char-height'. (pixel-scroll-up): Scroll by 'frame-char-height'. Fix algorithm to move cursor to avoid unexpected jump. (pixel-scroll-down): Scroll by 'frame-char-height'. (pixel-bob-at-top-p): Consider number of pixels that is about to scroll. (pixel-posn-y-at-point): Consider existence of an overlay string. Return nil when horizontally scrolled. (pixel-point-at-top-p): Consider number of pixels that is about to scroll. Use different algorithm when horizontally scrolled. (pixel-point-at-bottom-p): Consider number of pixels that is about to scroll. Return nil when horizontally scrolled. (pixel-scroll-pixel-down): Move cursor when horizontally scrolled. (pixel--whistlestop-line-up): Change cosmetics and move cursor when horizontally scrolled. (pixel-line-height): Call 'pixel-visual-line-height' instead of 'line-pixel-height'. (pixel-visual-line-height): New function to return height in pixels of text line where cursor is with or without horizontally scrolled, considering response of display engine. (pixel-visible-pos-in-window): New function to return position of a char shown on text line where cursor is on screen with or without horizontally scrolled. 2017-10-27 Daniel Lublin (tiny change) Support Certification Authority Authorization in dns-mode.el * lisp/textmodes/dns-mode.el (dns-mode-types): Add "CAA". (Bug#28911) 2017-10-27 Eli Zaretskii Improve documentation of set-default-file-modes * src/fileio.c (Fset_default_file_modes): Doc fix. (Bug#28875) * doc/lispref/files.texi (Changing Files): Clarify how the bits in the argument of set-default-file-modes are used for setting file permissions. 2017-10-27 Ulf Jasper Fix documentation of `newsticker-new-item-functions' (bug#29023). * lisp/net/newst-backend.el (newsticker-new-item-functions), (newsticker-new-item-functions-sample), (newsticker-download-enclosures): Fix docstring, rename variable feed to feedname (bug#29023). * doc/misc/newsticker.texi (Automatic Processing) (Automatic Processing): Fix documentation of `newsticker-new-item-functions' (bug#29023). 2017-10-27 Tino Calancha Require seq in rmc.el * lisp/emacs-lisp/rmc.el: Require seq (Bug#28975). * test/lisp/emacs-lisp/rmc-tests.el (test-read-multiple-choice): Add test. 2017-10-27 Katsumi Yamaoka Make an example code introduced in the Gnus info work (bug#29008) You can find it in the bottom of (info "(gnus)Foreign Groups"). NOTE: this change is worth being merged to the trunk. * lisp/gnus/gnus-group.el (gnus-read-ephemeral-emacs-bug-group): Allow a string for bug# (bug#29008). 2017-10-27 Katsumi Yamaoka Enable gnus-read-ephemeral-* to run multiple times (bug#29008) NOTE: *DO NOT* merge this change to the trunk. * lisp/gnus/gnus-group.el (gnus-read-ephemeral-gmane-group) (gnus-read-ephemeral-bug-group): Make it work for any number of times for the case `url-automatic-caching' is set (bug#29008). 2017-10-27 Paul Eggert Port thread.c to OpenBSD ARM Problem reported by Jeremie Courreges-Anglas (Bug#29005). * src/thread.c (main_thread): Align to GCALIGNMENT. 2017-10-26 Alan Mackenzie Fix another "wrong side of point" error in CC Mode. This fixes (a follow-up to) bug #28850. A internal generated form for scanning text to fontify had a LIMIT parameter. It also locally bound LIMIT to a value possibly beyond the original LIMIT, allowing point to move beyond the original LIMIT, and to create the wrong side error. Fix it by checking point is not beyond LIMIT in the outer context before using it. * lisp/progmodes/cc-fonts.el (c-make-font-lock-search-form): Add a new parameter CHECK-POINT which, when non-nil, directs the function to generate a check on point. (c-make-font-lock-context-search-function): Invoke the above function with new argument value t. 2017-10-26 Michael Albinus Fix Bug#28959 * lisp/net/tramp.el (tramp-handle-find-backup-file-name): Use `tramp-tramp-file-p' rather than `tramp-file-name-p'. Add hop to backup file name. (Bug#28959) * test/lisp/net/tramp-tests.el (tramp-test34-find-backup-file-name): New test. (tramp-test35-make-nearby-temp-file) (tramp-test36-special-characters) (tramp-test36-special-characters-with-stat) (tramp-test36-special-characters-with-perl) (tramp-test36-special-characters-with-ls, tramp-test37-utf8) (tramp-test37-utf8-with-stat, tramp-test37-utf8-with-perl) (tramp-test37-utf8-with-ls, tramp-test38-file-system-info) (tramp-test39-asynchronous-requests) (tramp-test40-recursive-load, tramp-test41-remote-load-path) (tramp-test42-delay-load, tramp-test43-unload): Rename. 2017-10-26 Paul Eggert Fix duplicate .o file on QNX * configure.ac (CYGWIN_OBJ): Leave empty on QNX. Problem reported by Elad Lahav in: https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00750.html 2017-10-26 Dmitry Gutov Fix two js indentation problems Fix intentation problems reported in https://github.com/mooz/js2-mode/issues/463. * lisp/progmodes/js.el (js--continued-expression-p): Check syntax state after /. (js--multi-line-declaration-indentation): Check syntax state before "const". 2017-10-25 Phillip Lord Update documentation for windows build * admin/nt/dist-build/README-scripts: New File. 2017-10-25 Alan Mackenzie Fix a "wrong side of point" error in CC Mode. Fixes bug #28850. The cause was a scanning over a bracket pair taking us beyond the supplied LIMIT parameter in c-forward-declarator. * lisp/progmodes/cc-engine.el (c-forward-declarator): Add three checks (< (point) limit) whilst dealing with tokens after the declared identifier. * lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Don't supply a LIMIT argument to `c-forward-declarator' (twice), since we want to fontify up till the end of a declarator, not an arbitrary jit-lock chunk end. 2017-10-25 Stefan Monnier Fix autoload of flymake from elisp-mode during bootstrap (bug#28994) * lisp/loadup.el: add `progmodes` to load-path so we can find flymake.el. * lisp/kmacro.el: Require `replace` since we use query-replace-map. * lisp/replace.el: Require `text-mode` since we use text-mode-map. 2017-10-25 Alan Third Fix non-native fullscreen on NS (bug#28872) * src/nsterm.m (EmacsView::updateFrameSize): Handle case where FRAME_TOOLBAR_HEIGHT returns a negative number. Force WM to set size of frame. 2017-10-25 Michael Albinus Fix Bug#28982 * admin/MAINTAINERS: Add test/lisp/url/url-tramp-tests.el. * lisp/url/url-tramp.el (url-tramp-convert-url-to-tramp) (url-tramp-convert-tramp-to-url): Adapt to recent Tramp changes. * test/lisp/url/url-tramp-tests.el: New file. (Bug#28982) 2017-10-25 Phillip Lord Fix windows build errors * admin/nt/dist-build/build-zips.sh: Correct name of zip file, build 64 bit first 2017-10-25 Noam Postavsky Fix compile warning for non-w32 builds Since 2017-07-25 "ls-lisp: Add an unload function and enable lexical binding", the non-w32 builds would treat the undeclared w32-collate-ignore-punctuation variable as lexical. * lisp/ls-lisp.el (top-level): Declare it as a dynamic variable. 2017-10-25 David Glasser (tiny change) Display commit in package description, if available (Bug#28637) MELPA includes a :commit field in its packages (https://github.com/melpa/package-build/pull/6). You can use this to tell if MELPA has processed a recently-merged change. This commit adds that metadata to the package description buffer. * lisp/emacs-lisp/package.el: Display commit in package description. 2017-10-24 Paul Eggert Port to QNX Simplified version of a patch proposed by Elad Lahav in: https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00716.html which is based on a previous patch I proposed in: https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00707.html * configure.ac (opsys, CFLAGS, LIBS_SYSTEM, hybrid_malloc) (system_alloc, FIRST_PTY_LETTER, CYGWIN_OBJ): Set appropriately for QNX. * src/unexelf.c [__QNX__]: Include instead of . (unexec): Check for sbrk failure, and fall back on old BSS end. 2017-10-24 Paul Eggert * configure.ac: Tweak libcurses diagnostic. 2017-10-24 Phillip Lord Scripts to automate windows binary distribution * admin/nt/dist-build/README-windows-binaries, admin/nt/dist-build/build-dep-zips.py, admin/nt/dist-build/build-zips.sh: New Files 2017-10-24 Gemini Lasswell Fix Edebug specs for map-let and with-maps-do * lisp/emacs-lisp/map.el (map-let): Fix Edebug spec (bug#24777). * test/lisp/emacs-lisp/map-tests.el (with-maps-do): Fix Edebug spec. 2017-10-24 Michael Albinus * test/lisp/net/tramp-tests.el (tramp-test41-delay-load): New test. (tramp-test42-unload): Rename. 2017-10-24 Glenn Morris * admin/authors.el (authors-canonical-author-name): Ignore name issues in "lax" ChangeLogs. * test/lisp/progmodes/sql-tests.el (sql-tests-postgres-list-databases-error): Silence compiler. 2017-10-23 Michael Albinus Further work on Bug#28889 * lisp/net/tramp.el (tramp-set-syntax): New defun. (tramp-syntax): Use it. Change :package-version. (Bug#28889) 2017-10-23 Michael Albinus Improve Tramp backward compatibility * lisp/net/tramp-compat.el (tramp-compat-tramp-file-name-slots): New defmacro. * lisp/net/tramp.el (with-parsed-tramp-file-name): Use it. 2017-10-23 Michael Albinus Improve backward compatibility of tramp-tests.el * test/lisp/net/tramp-tests.el (tramp--test-emacs26-p): Fix docstring. (tramp-test41-unload): Skip unless Emacs >= 26. 2017-10-23 Martin Rudalics Fix some ‘window-normalize-’ prefixed functions (Bug#28947) * lisp/window.el (window-normalize-buffer): Fix case where BUFFER-OR-NAME is a string specifying a dead buffer. Fix doc-string (Bug#28947). (window-normalize-frame, window-normalize-window): Fix doc-strings (Bug#28947). 2017-10-23 Paul Eggert Port to OpenIndiana Problem reported by Nelson H. F. Beebe (Bug#28893). Also see Bug#23748, Bug#9736, and Bug#5735. * configure.ac (tputs_library): Prefer libcurses to libtermcap, since OpenIndiana libtermcap lacks tparm. 2017-10-22 Alexander Gramiak Don't fill keywords after Emacs Lisp docstring This approach does mean that keywords that have spaces before them inside of docstrings aren't filled, but I think this is should be fine until Bug#28937 is fixed. * lisp/emacs-lisp/lisp-mode.el (lisp-fill-paragraph): Add a colon to paragraph-start unconditionally, but require that it follows at least one space. (Bug#24622) * test/lisp/emacs-lisp/lisp-tests.el: New tests for Bug#24622 and Bug#7751. 2017-10-22 Alan Mackenzie Refactor c-forward-token-2 with new function c-forward-over-token-and-ws. Use the new function directly in several places where c-forward-token-2 wouldn't move over the last token in the buffer. This caused an infinite loop in c-restore-<>-properties. * lisp/progmodes/cc-engine.el (c-forward-over-token-and-ws): New function, extracted from c-forward-token-2. (c-forward-token-2): Refactor, calling the new function. (c-restore-<>-properties): Fix infinite loop. (c-forward-<>-arglist-recur, c-in-knr-argdecl) (c-looking-at-or-maybe-in-bracelist): Call the new function directly in place of c-forward-token-2. * lisp/progmodes/cc-cmds.el (c-defun-name) Call the new function directly in place of c-forward-token-2. * lisp/progmodes/cc-fonts.el (c-font-lock-enclosing-decls): Call the new function directly in place of c-forward-token-2. 2017-10-22 Paul Eggert Avoid unnecessary rounding errors in timestamps Avoid the rounding errors of float-time when it’s easy. E.g., replace (< (float-time a) (float-time b)) with (time-less-p a b). * lisp/desktop.el (desktop-save): * lisp/ecomplete.el (ecomplete-add-item): * lisp/epg.el (epg-wait-for-completion): * lisp/files.el (dir-locals-find-file, dir-locals-read-from-dir): * 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-format-time): * lisp/net/ange-ftp.el (ange-ftp-file-newer-than-file-p) (ange-ftp-verify-visited-file-modtime): * lisp/net/rcirc.el (rcirc-ctcp-sender-PING): * lisp/textmodes/remember.el (remember-store-in-mailbox): * lisp/url/url-cookie.el (url-cookie-expired-p): Bypass float-time to avoid rounding errors. * lisp/files.el (dir-locals-find-file): 2017-10-22 Paul Eggert Fix xdg timestamp error on 32-bit Emacs * lisp/xdg.el (xdg-thumb-mtime): Return an Emacs timestamp, not an integer. This avoids signaling an error on 32-bit Emacs, where timestamps typically do not fit into fixnums (Bug#28921). 2017-10-22 John Williams (tiny change) Test that advice doesn't trigger bytecomp warnings (Bug#28803) * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-no-warnings-with-advice): New test. 2017-10-21 Noam Postavsky Another fix for unsafe directory error message (Bug#865) * lisp/server.el (server-ensure-safe-dir): Put file owner's uid, not current user's for the wrong owner case. Show expanded file name in error message. 2017-10-21 Noam Postavsky Handle https url for debbugs mbox (Bug#28831) In 2017-09-13 "Prefer HTTPS to FTP and HTTP in documentation", gnus-bug-group-download-format-alist was updated to use https for the debbugs.gnu.org mbox links, but gnus-read-ephemeral-bug-group assumed http links. * lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group): Use url-parse functions to get the host name, instead of ad-hoc regexps. 2017-10-21 Noam Postavsky Ignore string properties when saving eshell history (Bug#28700) * lisp/eshell/em-hist.el (eshell-write-history): Remove properties before inserting history strings. (eshell-read-history): Remove obsolete comment. * test/lisp/eshell/em-hist-tests.el (eshell-write-readonly-history): New test. 2017-10-21 Michael Albinus Fix Bug#28889 * lisp/net/tramp.el: Change autoload cookie to tramp-autoload cookie. (tramp-completion-file-name-regexp-default) (tramp-completion-file-name-handler-alist) (tramp-completion-file-name-handler): Remove autoload cookie. (tramp-initial-completion-file-name-regexp): Remove. (tramp-autoload-file-name-regexp): New defconst. (tramp-register-autoload-file-name-handlers): Use it. (with-parsed-tramp-file-name): Adapt docstring. Compute `tramp-file-name' slots. (Bug#28889) 2017-10-21 Glenn Morris Update describe-function for recent Fdocumentation change * lisp/help-fns.el (describe-function-1): Handle Fdocumentation returning either void or invalid. 2017-10-21 Charles A. Roelli Make flymake's mouse-wheel interaction portable (Bug#28732) * lisp/progmodes/flymake.el (flymake--mode-line-format): Bind 'mouse-wheel-down-event' and 'mouse-wheel-up-event' instead of 'mouse-4' and 'mouse-5'. Update the tooltip text accordingly, and remove a stray newline in it. 2017-10-21 Nick Helm Prevent eldoc from changing the mode line * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Don't change the mode line if it is not displayed. (Bug#28697) 2017-10-21 Eli Zaretskii Fix doc strings in simple.el * lisp/simple.el (shell-command-saved-pos) (region-extract-function, region-bounds): Doc fixes. (Bug#28609) 2017-10-21 Phil Sainty Avoid creating inconsistent buffer states in term-char-mode * lisp/term.el (term-mode, term-char-mode, term-line-mode) (term-emulate-terminal): Make buffer read-only in 'term-char-mode', except for the process filter's output. Use 'read-only-mode-hook' to track and restore the user-set state of 'buffer-read-only' for 'term-line-mode'. (Bug#24837) (term-char-mode-buffer-read-only): New user option. (term-line-mode-buffer-read-only): New buffer-local variable. (term-line-mode-buffer-read-only-update): New function. (term-char-mode, term-line-mode): Use 'term-set-goto-process-mark' in pre-command-hook, and 'term-goto-process-mark-maybe' in post-command-hook to counter-act unexpected changes to point when using 'term-char-mode'. (term-char-mode-point-at-process-mark): New user option. (term-goto-process-mark): New buffer-local variable. (term-set-goto-process-mark): New function. (term-goto-process-mark-maybe): New function. (term-process-mark): New function. * etc/NEWS: Mention the new behavior and user options. 2017-10-21 Bahodir Mansurov (tiny change) New input method 'usbek-cyrillic' * lisp/leim/quail/cyrillic.el (uzbek-cyrillic): New input method. (Bug#28848) * etc/NEWS: Mention the new input method. 2017-10-21 Eli Zaretskii Document 'minibuffer-with-setup-hook' * doc/lispref/minibuf.texi (Minibuffer Misc): Document minibuffer-with-setup-hook. (Bug#28877) 2017-10-21 Paul Eggert Simplify make-progress-reporter vs float-time * lisp/subr.el (make-progress-reporter): Remove no-longer-needed doc and code for the case where float-time is not supported, since float-time is always present now. 2017-10-21 Paul Eggert Fix two more minor Gnus typos * lisp/gnus/mail-source.el (mail-source-delete-old-incoming): The old code had two minor bugs: first, it multiplied by 1/65536 instead of by 1/86400. Second, it called current-time twice and glued part of the two results together, resulting in a race. Fix both bugs by simplifying the code and using time-to-number-of-days. 2017-10-21 Paul Eggert Fix two minor Gnus typos * lisp/gnus/gnus-sum.el (gnus-summary-import-article): Remove unused local, and fix use of local that was never assigned to. 2017-10-21 Glenn Morris Tweak Fdocumentation's error for an undefined function * src/doc.c (Fdocumentation): Restore the pre-25 behavior of signalling a void-function error for an undefined function. This seems cleaner than Emacs 25's "invalid-function: nil" error, which was (probably) an unintended consequence of changes to Findirect_function. 2017-10-21 Glenn Morris Tweak format of list of old files in NEWS header * etc/NEWS: Stop list of old NEWS files growing without limit. * admin/admin.el (set-version): Handle either NEWS header format. 2017-10-20 Stefan Monnier * lisp/help-fns.el (describe-function-1): Fix help-fns-test-dangling-alias. (Bug#28918) (cherry picked from commit e1d42f8f4a945669ff8b5159a569cb4b18f56e18) 2017-10-20 Glenn Morris Fix flymake's loading of subr-x * lisp/progmodes/flymake.el, test/lisp/progmodes/flymake-tests.el: No need to load subr-x at run-time. 2017-10-20 Michael Albinus Fix Bug#28896 * lisp/net/tramp-adb.el (tramp-adb-handle-rename-file): * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file): Handle FILENAME being a directory. (Bug#28896) * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file): Test also FILENAME being a directory. 2017-10-20 João Távora Skip a Flymake test for old gcc versions Fixes: 28906 * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Skip this test for gcc versions < 5. 2017-10-20 Eli Zaretskii Make :align-to account for display-line-numbers These changes also update the various bundled packages to use new feature, and better support customizations of the line-number face. * src/xdisp.c (calc_pixel_width_or_height): Improve commentary. Make :align-to count from the end of the line-number display when the offset or the width form reference that of the text area. (Bug#28855) * src/indent.c (Fline_number_display_width): Implement support for the PIXELWISE argument being 'columns'. Update the doc string. (syms_of_indent): New symbol 'columns'. * lisp/ruler-mode.el (ruler-mode-window-col, ruler-mode-ruler): Call line-number-display-width with last argument 'columns'. * lisp/proced.el (proced-header-line): Call line-number-display-width with 2nd arg 'columns', which also fixes a problem when display-line-numbers is nil. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-line-number-width): Call line-number-display-width with 2nd arg 'columns. (tabulated-list-entry-lnum-width): Remove unneeded defvar. (tabulated-list-print, tabulated-list-print-entry): No need to account for the value of tabulated-list-entry-lnum-width. (tabulated-list--current-lnum-width): New defvar. (tabulated-list-watch-line-number-width): New function. (tabulated-list-mode): Bind tabulated-list--current-lnum-width locally, and set up tabulated-list-watch-line-number-width as pre-redisplay-functions hook. * doc/lispref/display.texi (Size of Displayed Text): Document the 'columns' value of the PIXELWISE argument. (Pixel Specification): Update and improve the documentation of the supported forms. 2017-10-20 João Távora Augment Flymake API for third-party extensions See https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00619.html * doc/misc/flymake.texi (Flymake error types): Rewrite example. (Flymake utility functions): Augment with new API. * lisp/progmodes/flymake.el (flymake-diagnostics): New function. (flymake--diag-accessor): New helper macro. (flymake-diagnostic-buffer, flymake-diagnostic-text) (flymake-diagnostic-beg, flymake-diagnostic-end) (flymake-diagnostic-backend): Accessors for diagnostic objects. (flymake--overlays): Use flymake-diagnostic property. (flymake--highlight-line): Simplify. Only set flymake-diagnostic property. (flymake--handle-report, flymake-goto-next-error): Use flymake-diagnostic property. (flymake-show-diagnostic): Use diagnostic object. (flymake--diagnostics-buffer-entries): Use flymake-diagnostics. 2017-10-20 Glenn Morris Improve treatment of Fortran's "class default" * lisp/progmodes/f90.el (f90-start-block-re, f90-no-block-limit): Handle "class default". (Bug#28786) * test/automated/f90.el (f90-test-bug25039): Add "class default". 2017-10-20 João Távora Flymake backends must check proc obsoleteness in source buffer Flymake backends that rely on sentinels running asynchronously and checking buffer-local variables that hold running processes should check for obsoleteness in the correct buffers, otherwise a (harmless) warning might be triggered. * doc/misc/flymake.texi (An annotated example backend): Check buffer-local proc in the current buffer. * lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Check buffer-local proc in the current buffer. 2017-10-19 Michael Albinus Skip an rsync test in tramp-tests.el * test/lisp/net/tramp-tests.el (tramp-test17-dired-with-wildcards): Skip for "rsync". 2017-10-19 Martin Rudalics On Windows default a frame's border width to zero (Bug#28873) * src/w32fns.c (Fx_create_frame): Default `border-width' to zero as everywhere else, see Bug#28873. 2017-10-19 Paul Eggert Spelling fixes * lisp/cedet/semantic/analyze/refs.el: (semantic-analyze-proto-impl-toggle): Fix recently-introduced misspelling of pop-to-buffer-same-window. 2017-10-19 Bastian Beischer (tiny change) Use pop-to-buffer-same-window instead of switch-to-buffer * lisp/cedet/semantic/decorate/include.el (semantic-decoration-include-visit): Use pop-to-buffer-same-window instead of switch-to-buffer (bug#28645). * lisp/cedet/semantic/analyze/refs.el (semantic-analyze-proto-impl-toggle): Same. * lisp/cedet/semantic/senator.el (senator-go-to-up-reference): Same. * lisp/cedet/semantic/mru-bookmark.el (semantic-mrub-visit): Same. * lisp/cedet/semantic/complete.el (semantic-complete-jump): Same. 2017-10-18 Eli Zaretskii Fix the MSDOS build. * msdos/sed1v2.inp (GETADDRINFO_A_LIBS, LIBLCMS2, XDBE_LIBS) (XDBE_FLAGS, HYBRID_MALLOC, LIBSYSTEMD_CFLAGS) (LIBSYSTEMD_LIBS): Edit to empty. (LIBRESOLV, DEPFLAGS, MKDEPDIR, YMF_PASS_LDFLAGS) (PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): Remove editing. Remove editing of lines that are no longer present in src/Makefile.in. * msdos/sed2v2.inp (NEED_MKTIME_INTERNAL) (NEED_MKTIME_WORKING): Define to 1. (HAVE_STRUCT_DIRENT_D_TYPE): Define to 1 for DJGPP >= 2.05. (HAVE_STRUCT_ATTRIBUTE_ALIGNED): Define to 1. Define PACKAGE_VERSION, not VERSION. (FLEXIBLE_ARRAY_MEMBER): Define to empty. (HAVE_DECL_*_UNLOCKED): Define to 0. (HAVE___BUILTIN_FRAME_ADDRESS): Define to 1. (PENDING_*): Don't define, as Gnulib no longer supports that. Instead, define _IOERR as it is in libc/file.h. * msdos/sed3v2.inp: Use $(CURDIR) instead of $(shell cd) to determine the current directory. (UPDATE_MANIFEST, UTILITIES): Don't edit. * msdos/sedlisp.inp (FIND_DELETE): Edit to "-delete". * msdos/sedlibmk.inp (AUTO_DEPEND): Define to yes. (HYBRID_MALLOC): Edit to empty. (am__cd): Don't edit. (../config.status): Replaces $(top_builddir)/config.status. Define OMIT_GNULIB_MODULE_foo = true for modules not built for MS-DOS. Convert GL_GENERATE_xxx_H_TRUE and GL_GENERATE_xxx_H_FALSE into values of GL_GENERATE_xxx_H. * msdos/mainmake.v2 (src): Use 'compile-one-process', and make the command line shorter to fit into 126-char limit of command.com. * config.bat: Generate src/deps/*.d files. Rename more files like djtar on plain DOS would. Don't rename src/dir.h: it is long gone. Edit lib/gnulib.mk.in using the same scripts as for lib/Makefile.in. * msdos/depfiles.bat: Create *.d files, not *.Po. * src/thread.c (Fmake_thread) [!THREADS_ENABLED]: Improve the error message. * src/thread.h [MSDOS]: Include . * src/sysselect.h (select) [MSDOS]: Undefine, to avoid compilation errors. * src/sysdep.c (block_interrupt_signal, restore_signal_mask): Expose to MSDOS build. * src/process.c (update_processes_for_thread_death) [!subprocess]: No-op implementation. [HAVE_SETRLIMIT]: Move inclusion of sys/resource.h and declaration of nofile_limit outside "#ifdef subprocesses", as it's needed for MSDOS. * src/msdos.c (faccessat): Declare fullname[]. * src/msdos.h (ENOTSUP): Define to be identical to ENOSYS. Include termhooks.h. * src/conf_post.h [WINDOWSNT]: Include ms-w32.h only on WINDOWSNT, not DOS_NT. * admin/admin.el (set-version): Set version on PACKAGE_VERSION. 2017-10-18 Eli Zaretskii Fix line number display after 'widen' * src/xdisp.c (maybe_produce_line_number): Don't use data cached by line-number-mode on the first redisplay after the buffer is widened. (Bug#28879) 2017-10-18 Alan Third Remove resizable attribute on macOS undecorated frames (bug#28512) * src/nsterm.m (FRAME_DECORATED_FLAGS): Remove Cocoa specific #define. (initFrameFromEmacs): Remove Cocoa specific window style attributes. 2017-10-18 Martin Rudalics Fix handling of `border-width' in `frameset--restore-frame' (Bug#28873) * lisp/frameset.el (frameset--restore-frame): Don't process `border-width' parameter via ‘modify-frame-parameters’ (Bug#28873). 2017-10-18 Tino Calancha Mention how to send CC to > 1 address in a bug report * admin/notes/bugtracker (* More detailed information): mention how to CC to more than 1 address (Bug#28833). 2017-10-18 Paul Eggert Improve format-time-string doc * doc/lispref/os.texi (Time Parsing): Fix some errors in the documentation for format-time-string. Document ^, #, %s, and %z with colons. Say that unrecognized sequences are output as-is. * src/editfns.c (Fformat_time_string): %S can stand for 60. Also mention unrecognized sequences. 2017-10-17 Eli Zaretskii Improve documentation of 'line-number-display-width' * doc/lispref/display.texi (Size of Displayed Text): Document the additional 2 columns used for line-number display. * src/indent.c (Fline_number_display_width): Doc fix. (Bug#28248) 2017-10-17 İ. Göktuğ Kayaalp Implement vc-default-dir-extra-headers for vc-rcs Add a do-nothing implementation for vc-rcs to suppress the message which the default function adds to the vc-dir buffer (Bug#28570). * lisp/vc/vc-rcs.el (vc-rcs-dir-extra-headers): New function. 2017-10-17 Martin Rudalics In NEWS give advice on use of `switch-to-buffer' (Bug#28645) * etc/NEWS: Mention that applications should prefer `pop-to-buffer-same-window' to `switch-to-buffer'. (Bug#28645) 2017-10-17 Tino Calancha Noam Postavsky Dont update primary selection with winner-undo * lisp/winner.el (winner-set): Dont update primary selection when select-enable-primary is non-nil (Bug#28631). 2017-10-17 Paul Eggert Work around ImageMagick bug 825 This should fix several bugs reported recently against Emacs (Bug#28518, Bug#28626, Bug#28632, Bug#28633, Bug#28770). * src/image.c (imagemagick_load_image): Do not call MagickWandTerminus. 2017-10-17 Noam Postavsky Document rectangle-preview option more (Bug#27974) * lisp/rect.el (string-rectangle): * etc/NEWS.25: Mention `rectangle-preview'. 2017-10-17 Paul Eggert Do not reject https://gnu.org in commit messages * build-aux/git-hooks/commit-msg: Do not reject commit messages containing http: or ftp: URLs to gnu.org or fsf.org. Instead, rewrite the messages to use https: URLs. 2017-10-16 Gemini Lasswell Fix Edebug spec for cl-defun (bug#24255) * lisp/emacs-lisp/cl-macs.el: Modify the Edebug spec for `cl-lambda-list' to support destructuring argument lists. (cl-defun, cl-defmacro): Fix spelling errors in docstrings. * lisp/textmodes/rst.el: Remove alternate version of Edebug specs for `cl-lambda-list' and `cl-type-spec'. 2017-10-16 Eli Zaretskii Fix errors in kmacro.el post-command-hook * lisp/kmacro.el (kmacro-step-edit-active): Initialize to nil to avoid 'void-variable' errors. (Bug#28818) * test/lisp/kmacro-tests.el (kmacro-tests-step-edit-cleans-up-hook): Now succeeds. (Bug#18708) 2017-10-16 Eli Zaretskii Fix range-error in image-dired.el * lisp/image-dired.el (image-dired-create-thumb-1): Avoid overflowing an Emacs integer on 32-bit hosts. (Bug#28809) 2017-10-16 Eli Zaretskii Fix 'line-number-display-width' in hscrolled windows * src/indent.c (line_number_display_width): Make sure a line number is generated even when the first line of the window is completely hscrolled out of view. (Bug#28854) 2017-10-16 Michael Albinus Fix error in tramp-smb-handle-insert-directory * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory): Insert size information only when FULL-DIRECTORY-P is non-nil. 2017-10-16 Andy Moreton Don't reject PBM header whitespace unnecessarily * lisp/image.el (image-type-header-regexps): Allow two or more CRs or LFs in initial whitespace sequences. See: http://netpbm.sourceforge.net/doc/pbm.html 2017-10-16 Paul Eggert Fix regression in display of PPM images Problem reported by Roland Winkler (Bug#28824#35). Based on a patch proposed by Andy Moreton (Bug#28824#38). * src/image.c (pbm_scan_index): New function. (pbm_load): Use it to decode raw data correctly when its top bit is set. 2017-10-16 Eric Abrahamsen Require subr-x when compiling nnimap.el * lisp/gnus/nnimap.el (require): For the when-let* macro. 2017-10-15 Noam Postavsky Fix ert-test finding by symbol (Bug#28849) In 2017-07-28 "* lisp/subr.el (define-symbol-prop): New function", the symbol used for ert tests in load-history was changed from `ert-deftest' to `ert--test', but a couple of other places were not updated accordingly. * lisp/emacs-lisp/ert.el (ert-find-test-other-window): Pass `ert--test' as the TYPE to `find-function-do-it'. (top-level): Use `ert--test' as the key to the `find-function-regexp-alist' entry. 2017-10-15 Noam Postavsky Don't remember old debugger window (Bug#17882) * lisp/emacs-lisp/debug.el (debug): Unset debugger-previous-window when `debugger-will-be-back' is nil. 2017-10-15 Noam Postavsky Disable python native completion on w32 (Bug#28580) * lisp/progmodes/python.el (python-shell-completion-native-disabled-interpreters): For windows-nt systems, put an empty string to match interpreters. 2017-10-15 Noam Postavsky Let select-frame-by-name choose any frame when called from lisp (Bug#25521) * lisp/frame.el (select-frame-by-name): Choose from the whole list of frames in the non-interactive part, if not found on the current display. 2017-10-15 Eli Zaretskii * lisp/dired-aux.el (dired-create-directory): Doc fix. 2017-10-15 Eli Zaretskii Avoid compilation warnings in optimized builds * src/process.c (Fmake_network_process): * src/image.c (xbm_scan, gif_load): * src/fileio.c (Frename_file): * src/data.c (Fmake_local_variable): * src/buffer.c (fix_start_end_in_overlays): * lib-src/etags.c (process_file_name): Mark variables with UNINIT to avoid compiler warnings in optimized builds. 2017-10-15 K. Handa Improve customization of arabic-shaper-ZWNJ-handling. Make the effect of customizing arabic-shaper-ZWNJ-handling appear immediately. * lisp/language/misc-lang.el (arabic-shaper-ZWNJ-handling): Add :set value. * src/composite.c (Fclear_composition_cache): New function. (syms_of_composite): Defsubr it. 2017-10-15 Charles A. Roelli Improve customization type of 'mouse-drag-and-drop-region' * lisp/mouse.el (mouse-drag-and-drop-region): Provide a more precise customization type. 2017-10-15 Paul Eggert Encourage https: in commit messages * CONTRIBUTE: Prefer https: when citing. * build-aux/git-hooks/commit-msg: Diagnose http: and ftp: URLs to FSF or GNU hosts. 2017-10-14 Martin Rudalics Fix wording in Elisp manual's child frames section (Bug#28819) * doc/lispref/frames.texi (Child Frames): Fix wording (Bug#28819). 2017-10-14 Eli Zaretskii Another fix for C mode fontification of w32 source files * .dir-locals.el (c-mode) : Add "CALLBACK", to correctly fontify functions with this attribute. 2017-10-14 Eli Zaretskii Fix fontification of ALIGN_STACK functions * .dir-locals.el (c-mode) : Add "ALIGN_STACK", to correctly fontify functions with this attribute. 2017-10-14 Eli Zaretskii Make sure thread stack is properly aligned on MS-Windows * src/systhread.c: Include w32term.h instead of windows.h. (w32_beginthread_wrapper): Add ALIGN_STACK attribute, to ensure the thread's stack is correctly aligned. * src/w32term.h (ALIGN_STACK): Update commentary. 2017-10-14 Paul Eggert Do not under-align pseudovectors Problem reported by Fabrice Popineau in: https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00357.html Also see diagnosis by Eli Zaretskii in: https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00476.html * src/alloc.c (vector_alignment): Now a multiple of alignof (max_align_t). 2017-10-13 Simen Heggestøyl Fix indentation bug in multi-line CSS selectors * lisp/textmodes/css-mode.el (css--colon-inside-selector-p): Fix indentation of multi-line CSS selectors that include both a pseudo-class and parenthesis. * test/manual/indent/css-mode.css: Add test for the above change. 2017-10-13 Andreas Schwab gnutls_mac_get_nonce_size has been added in gnutls 3.3 * src/gnutls.c (HAVE_GNUTLS_MAC_GET_NONCE_SIZE) [GNUTLS_VERSION_NUMBER >= 0x030300]: Define. (gnutls_mac_get_nonce_size): Depend on HAVE_GNUTLS_MAC_GET_NONCE_SIZE. (Fgnutls_macs): Use 0 for :mac-algorithm-noncesize if !HAVE_GNUTLS_MAC_GET_NONCE_SIZE. 2017-10-13 Paul Eggert * CONTRIBUTE: Suggest American English. 2017-10-12 Eli Zaretskii Fix this-command-keys for "M-x foo" commands * src/keyboard.c (Fset__this_command_keys): Don't assume KEYS is a unibyte string. (Bug#28798) 2017-10-12 Paul Eggert Let rename-file rename dirs across filesystems Problem diagnosed by Andreas Schwab (Bug#28792#65). This fixes a bug that I introduced in 2017-09-10T22:39:24@eggert@cs.ucla.edu "Fix race with rename-file etc. with dir NEWNAME". * src/fileio.c (Frename_file): Copy a source directory across file system boundaries even if its name does not end in slash. 2017-10-12 João Távora Simplify Flymake user documentation Fix some confusing parts of Flymake user documentation, like a repeated listing of situations leading to a syntax check. Documentation is now divided into three chapters only: "Using Flymake", "Extending Flymake", and a chapter for the legacy backend. Obsolete mention of "errors" and "lines" is replaced by "diagnostics/problems" and "regions" where appropriate. * doc/misc/flymake.texi (Overview of Flymake): Delete chapter. (Using Flymake): Merge with chapter "Overview of Flymake". (Installing Flymake): Delete chapter. (Flymake mode, Running the syntax check) (Navigating to error lines): Delete sections. (Syntax check statuses): Review and augment with x-references. (Backend exceptions): Mention shortcut in menu. * lisp/progmodes/flymake.el (flymake-menu): Tweak minor mode menu to not speak of "errors". (flymake-goto-next-error, flymake-goto-prev-error): Fix wording. 2017-10-12 Eli Zaretskii * etc/NEWS: Mention the new version of Org. 2017-10-12 Noam Postavsky Don't use (format "%s" ...) for string copying (Bug#28774) As of 2017-10-04 'Speed up (format "%s" STRING) and the like', (format "%s" STRING) no longer produces a new string. * lisp/ido.el (ido-completions): Use `copy-sequence' to make a new string, so that we can add text properties to (copies of) symbol names. 2017-10-11 Alan Third Make frame-list-z-order on NS match Windows behavior (bug#28788) * src/nsfns.m (Fns_frame_list_z_order): If terminal isn't a frame, ignore it rather than returning nil. 2017-10-11 Nicolas Petton Bump Emacs version to 26.0.90 * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version. 2017-10-11 Nicolas Petton Update authors.el * admin/authors.el (authors-valid-file-names) (authors-renamed-files-alist): Additions. 2017-10-11 Nicolas Petton * admin/authors.el (authors-aliases): Additions. * ChangeLog.3: Update. 2017-10-11 Radon Rosborough Fix docstring style for 'functionp' * src/eval.c (functionp): Make docstring start with verb. (Bug#28781) 2017-10-11 Michael Albinus Format shell commands in tramp.texi * doc/misc/tramp.texi (Obtaining Tramp, Remote shell setup): Format shell commands better. 2017-10-10 João Távora Unbreak the button in the Flymake diagnostics buffer again Adding the 'keymap' property enabled RET but broke the mouse-action. * lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries): Use 'action' instead of 'keymap'. 2017-10-10 Mark Oteiza Add mode map to Flymake diagnostic button * lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries): Add keymap propery. 2017-10-10 João Távora Tweak the Flymake diagnostics buffer again * lisp/progmodes/flymake.el (flymake-diagnostics-buffer-mode-map): Don't bind [mouse-1]. (flymake-show-diagnostic): Rename from flymake-show-diagnostic-at-point. Really use another window. (flymake-goto-diagnostic): Rename from flymake-goto-diagnostic-at-point. (flymake--diagnostics-buffer-entries): Use a button just for the message bit. 2017-10-10 Mark Oteiza Simplify Flymake diagnostics buffer UX Don't create text-buttons unnecessarily, just bind RET and SPC in the diagnostics buffer to a command that figures out which diagnostic it was invoked on. * lisp/progmodes/flymake.el (flymake--diagnostics-buffer-mode-keymap): Renamed from flymake--diagnostics-buffer-button-keymap. (flymake-show-diagnostic-at-point): Don't take a button. (flymake-goto-diagnostic-at-point): Don't pass button to flymake-show-diagnostic-at-point. (flymake--diagnostics-buffer-entries): Simplify. 2017-10-10 João Távora First stab at a Flymake diagnostics buffer The diagnostics buffer summarizes the diagnostics of a buffer in a tabulated list and is permanently updated after each Flymake check. * lisp/progmodes/flymake.el (flymake--handle-report): Call flymake-show-diagnostics-buffer under certain conditions. (flymake-menu, flymake--diagnostics-buffer-source) (flymake--diagnostics-buffer-button-keymap) (flymake-show-diagnostic-at-point) (flymake-goto-diagnostic-at-point) (flymake--diagnostics-buffer-entries) (flymake-diagnostics-buffer-mode) (flymake--diagnostics-buffer-name) (flymake-show-diagnostics-buffer): New definitions. 2017-10-10 João Távora * etc/NEWS (Flymake): Rewrite entry. 2017-10-10 Eli Zaretskii Improve the Flymake manual * doc/misc/flymake.texi: Add a 'coding' cookie. Add a @syncodeindex directive for @vindex. Use 2 spaces between sentences. Lower-case @cindex entries. (Overview of Flymake): Fix use of @itemize and @pxref. Fix punctuation and markup. (Backend exceptions): Use @emph instead of @dfn. Add more indexing. (Customizable variables, Extending Flymake): Improve wording. (Flymake error types): Fix usage of @itemize. Improve wording. (Backend functions): Fix punctuation. Fix markup. Add a cross-reference to ELisp manual. (Flymake utility functions): Add a cross-reference to ELisp manual. (An annotated example backend): Fix punctuation and typos. (Flymake mode, Running the syntax check) (Navigating to error lines, Backend exceptions) (Customizable variables, Flymake error types, Backend functions) (Flymake utility functions, Proc customization variables) (Locating a master file, Locating the buildfile) (Starting the syntax check process, Parsing the output) (Interaction with other modes): Fix indexing. Add index entries for functions, variables, and concepts. 2017-10-10 João Távora Fix two Flymake bugs * lisp/progmodes/flymake.el (define-fringe-bitmap): Protect against --without-x. (flymake--mode-line-format): Ensure mode-line's mouse-4 and mouse-5 work in their own windows. 2017-10-10 João Távora Don't log "emergencies" in the Flymake legacy backend * lisp/progmodes/flymake-proc.el (flymake-proc--panic) (flymake-proc-legacy-flymake): Don't log "emergencies" 2017-10-10 João Távora Add full documentation on new Flymake API Also, as a minor addition to this API, set flymake-text on the diagnostic overlay. This enables a good example in the section "Customization Flymake annotations". * doc/misc/flymake.texi (Overview of Flymake) (Syntax check statuses): Rework. (Backend exceptions): Rename from "Troubleshooting" (Customizable variables): Add flymake-start-on-flymake-mode. Rework. (Extending Flymake): Write chapter. (Customizing Flymake annotations, Flymake backends) (Flymake utility functions, An annotated example backend): New sections and subsections * lisp/progmodes/flymake.el (flymake-diagnostic-functions) (flymake-diagnostic-types-alist): Rework docstring. (flymake--highlight-line): Set and use flymake-text property in overlay. (flymake-goto-next-error, flymake-goto-prev-error): Fix funny quotes. 2017-10-10 João Távora Fix some Flymake docstrings and messages * lisp/progmodes/flymake.el (flymake-start-on-flymake-mode): fix typo. (flymake-mode): Add docstring. (flymake-mode-line-format): Fix help-echo indications. mouse-2 describes flymake-mode. 2017-10-10 João Távora Make three new Flymake commands for debugging common problems * lisp/progmodes/flymake.el (flymake-running-backends) (flymake-disabled-backends) (flymake-reporting-backends): Make interactive. (flymake--collect): Take optional arg. 2017-10-09 Nicolas Petton * admin/authors.el (authors-renamed-files-alist): addition. 2017-10-09 Paul Eggert Fix PWD check on DOS_NT * src/sysdep.c (get_current_dir_name_or_unreachable): Do not consider a file name like "a:b" to be absolute on DOS_NT. 2017-10-09 Paul Eggert Fix unlikely overflows with wd length * src/sysdep.c (get_current_dir_name_or_unreachable): Avoid integer overflow if working directory name is absurdly long. When allocating memory for getcwd, do not exceed MAXPATHLEN. 2017-10-09 Stefan Monnier * lisp/gnus/message.el: Improve last commit (message-clone-locals): Don't mistakenly match other variables whose name happens to include "message-default-charset". 2017-10-09 Ken Olum Fix problems when editing raw undecoded message (Bug#28671) * lisp/mail/rmailedit.el (rmail-cease-edit): If rmail-old-mime-state is set, meaning that we are editing the raw message, do not encode it again. Delete old body after, not before, inserting new, to avoid moving marker at beginning of next message. 2017-10-09 Eli Zaretskii Avoid encoding errors in message.el * lisp/gnus/message.el (message-clone-locals): Don't clone message-default-charset. (Bug#25645) 2017-10-09 Eli Zaretskii Improve doc string and prompt of 'grep-read-files' * lisp/progmodes/grep.el (grep-read-files): Clarify in the doc string and in the prompt that shell wildcards can be used. Suggested by Allen Li . (Bug#28615) 2017-10-09 Eli Zaretskii Avoid assertion violations when line numbers are displayed * src/xdisp.c (redisplay_window): Clear the window's desired glyph matrix before calling try_window with the same starting point. This avoids assertion violations when switching from a buffer without line numbers to a buffer with line numbers. (Bug28710) 2017-10-09 João Távora Be lazy when starting Flymake checks Don't start the check immediately if the buffer is not being displayed. Wait until it is, using window-configuration-change-hook. This enables the user to batch-enable flymake-mode on many buffers and not have that operation exhaust system resources for checking each one. Likewise, an editing or save operation in a currently non-displayed buffer does not immediately start a check. * lisp/progmodes/flymake.el (flymake-start-on-flymake-mode): Rename from flymake-start-syntax-check-on-find-file. (flymake-start-syntax-check-on-find-file): Obsolete alias for flymake-start-on-flymake-mode. (flymake-start): Redesign. Affect the global post-command-hook and local window-configuraiton-change-hook. (flymake--schedule-timer-maybe) (flymake-after-change-function, flymake-after-save-hook): Pass t to flymake-start. * test/lisp/progmodes/flymake-tests.el (flymake-tests--call-with-fixture) (dummy-backends, recurrent-backend): Start flymake check explicitly and immediately. 2017-10-09 Eli Zaretskii Fix last change in frameset.el * lisp/frameset.el (frameset-filter-font-param): Fix a thinko in filtering the 'font' parameter. (Bug#17352) 2017-10-09 Martin Rudalics Describe how window dividers can replicate vertical borders (Bug#27830) * doc/emacs/frames.texi (Scroll Bars): Describe how window dividers can be used to replicate vertical borders when scroll bars are disabled (Bug#27830). * doc/emacs/frames.texi (Window Dividers): Mention their use in replicating vertical borders. 2017-10-09 Alexander Gramiak Add line-number faces to the display-line-numbers group See https://lists.gnu.org/r/emacs-devel/2017-10/msg00151.html and its resulting thread. * lisp/display-line-numbers.el (display-line-numbers): Add to the convenience group. * lisp/faces.el (line-number): (line-number-current-line): Add to the display-line-numbers group. 2017-10-09 Alexander Gramiak Increase xterm click count only within double-click-fuzz * lisp/xt-mouse.el (xterm-mouse-event): Save the last click's position and check it against the current click's position. (Bug#28658) 2017-10-08 Alan Third Change pause in fullscreen toggling for NS port (bug#28496) * lisp/frame.el (toggle-frame-fullscreen): Replace sit-for with sleep-for, and reduce time. 2017-10-08 Michael Albinus Handle PARENTS properly in tramp-*-handle-make-directory * lisp/net/tramp-adb.el (tramp-adb-handle-make-directory): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-make-directory): Handle PARENTS properly. * test/lisp/net/tramp-tests.el (tramp-test13-make-directory): Extend test. 2017-10-08 Paul Eggert Improve test for unreachable dirs * src/sysdep.c (get_current_dir_name_or_unreachable): New function, with most of the old contents of emacs_get_current_dir_name. (emacs_get_current_dir_name): Use it. Use a simpler test for unreachable directory strings, and also apply it to getcwd etc. (Bug#27871) 2017-10-08 Paul Eggert * src/xsmfns.c (x_session_initialize): Fix memory leak. 2017-10-08 K. Handa New option for handling ZWNJ in Arabic text rendering Provide a new option 'arabic-shaper-ZWNJ-handling' that controls how to display ZWNJ in Arabic text rendering (Bug#28339). * lisp/language/misc-lang.el: Register arabic-shape-gstring in composition-function-table. (arabic-shaper-ZWNJ-handling): New variable. (arabic-shape-log): New variable. (arabic-shape-gstring): New function. * lisp/composite.el (lgstring-remove-glyph): New function. 2017-10-08 Noam Postavsky Make python prettify symbols into a defvar (Bug#28713) * lisp/progmodes/python.el (python-prettify-symbols-alist): New variable. (python--prettify-symbols-alist): Make into obsolete alias for `python-prettify-symbols-alist'. 2017-10-07 Alan Third Fix fullscreen crash on macOS (bug#28496) * lisp/frame.el (toggle-frame-fullscreen): Wait for animation to complete on macOS. 2017-10-07 Alan Third Fix crash when closing fullscreen frame on macOS (bug#28661) * src/nsterm.m (EmacsView::windowWillResize): Return new frame size unmodified if the frame isn't live. 2017-10-07 Michael Albinus Support gio tool in Tramp "gvfs-" utilities have been deprecated in GVFS 1.31.1. We must use "gio " tool instead. * lisp/net/tramp-gvfs.el (tramp-gvfs-gio-mapping): New defconst. (tramp-gvfs-handle-file-notify-add-watch): Support also "gio monitor" (tramp-gvfs-gio-tool-p): New defun. (tramp-gvfs-send-command): Use it. Call gio tool if available. 2017-10-07 João Távora Fix flymake-goto-next-error when message has %-constructs * lisp/progmodes/flymake.el (flymake-goto-next-error): Fix message call. Add missing period in docstring. 2017-10-07 Piotr Trojanek * src/gnutls.c (syms_of_gnutls): Remove duplicated call to DEFSYM. 2017-10-07 Eli Zaretskii Move the entry about 'format' into Incompatible Lisp Changes * etc/NEWS: Move the entry about 'format' refraining from allocating new strings into Incompatible Lisp Changes. (Bug#28625) 2017-10-07 Eli Zaretskii Fix glitches in displaying TTY menus * src/dispnew.c (update_frame_line): Accept an additional argument UPDATING_MENU_P; if non-zero, home the cursor before updating a frame's line. All callers changed. (update_frame_1): Accept an additional argument UPDATING_MENU_P, and pass it to update_frame_line. All callers changed. (update_frame_with_menu): Call update_frame_1 with last argument non-zero. (Bug#17497) 2017-10-06 Gemini Lasswell Create new Edebug spec for docstrings and use it in closures Since (:documentation FORM) can be used to create a docstring when lexical-binding is on, allow for that possibility in Edebug specs (bug#24773). * lisp/emacs-lisp/edebug.el: Define an Edebug spec for docstrings called lambda-doc and modify the Edebug specs for defun and defmacro to use it. (edebug-instrument-function): Check for generic functions first, to fix bug where edebug-step-in didn't work on methods now that cl-defgeneric has an Edebug spec. * lisp/subr.el (lambda): Modify Edebug spec to use lambda-doc. * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Add Edebug spec (bug#27747). (cl-defmethod): Use lambda-doc in Edebug spec. * lisp/emacs-lisp/cl-macs.el: Modify Edebug spec for cl-declarations-or-string to use lambda-doc, and modify Edebug spec for cl-lambda-expr to use cl-declarations-or-string. * lisp/emacs-lisp/pcase.el (pcase-lambda): Modify Edebug spec to use lambda-doc, as well as &define and def-body which are necessary for using Edebug on code wrapped by lambda. * lisp/emacs-lisp/generator.el (iter-defun, iter-lambda): Add Edebug specs. 2017-10-06 Eli Zaretskii Avoid byte-compilation warnings in message.el * lisp/gnus/message.el: Require 'subr-x' when compiling, to avoid compiler warnings. 2017-10-06 Paul Eggert Fix bug in recent styled_format change Problem reported by Kaushal Modi in: https://lists.gnu.org/r/emacs-devel/2017-10/msg00141.html * src/editfns.c (styled_format): Fix bug where USE_SAFE_ALLOCA was not always followed by SAFE_FREE. This bug was introduced in my patch 2017-09-26T23:31:57Z!eggert@cs.ucla.edu entitled "Avoid some unnecessary copying in Fformat etc." 2017-10-06 João Távora Cleanup emacs-lisp-mode's use of Flymake * lisp/progmodes/elisp-mode.el (elisp-flymake--checkdoc-1): Delete. (elisp-flymake-checkdoc): Incorporate old elisp-flymake--checkdoc-1. (elisp-flymake--byte-compile-done): Simplify. Don't cleanup here. (elisp-flymake-byte-compile): Remove spurious interactive spec. Simplify. Cleanup on every possible exit. 2017-10-06 João Távora Fix @include directive in Flymake doc * doc/misc/flymake.texi: Don't @include a relative path. 2017-10-06 Mark Oteiza Move read-multiple-choice to its own library * lisp/emacs-lisp/rmc.el: New file. * lisp/emacs-lisp/subr-x.el (read-multiple-choice): Remove. * lisp/gnus/message.el: * lisp/net/nsm.el: Change required library. 2017-10-06 Piotr Trojanek * src/process.c (syms_of_process): Remove duplicated call to DEFSYM. Fixes: Bug#28721 2017-10-06 Lele Gaifax Fix typos in Flymake documentation * doc/misc/flymake.texi (Syntax check statuses) (Adding support for a new syntax check tool) (Implementation overview, Locating the buildfile): Fix typos. * lisp/progmodes/flymake-proc.el (flymake-proc--report-fn) (flymake-proc--find-possible-master-files):Fix typos. (flymake-proc--panic) (flymake-proc-legacy-flymake): Fix function reference in doc. * lisp/progmodes/flymake.el (flymake-error) (flymake-diagnostic-functions): Fix typos. (flymake-diagnostic-types-alist): Rephrase and fix typos. (flymake--backend-state): Fix typos and rephrase. (flymake--handle-report): Delete empty line. (flymake--disable-backend) (flymake--run-backend): Fix typos. (flymake-goto-next-error, flymake-goto-prev-error): Rephrase. 2017-10-06 Eli Zaretskii Revert last change in 'shr-descend' * lisp/net/shr.el (shr-descend): Revert the part of the last change which introduced calls to shr-indirect-call into this function. Add a comment explaining the rationale for that. (Bug#28402) 2017-10-06 João Távora Don't error when turning on Flymake with no known backends Leave it to the mode line indicator to inform the user that there is still some configuration to do. * lisp/progmodes/flymake.el (flymake-mode): Simplify. 2017-10-06 João Távora Delete a Flymake obsolete alias that can't possibly work The function `flymake-ler-make-ler' can't possibly work as an backward compatible interface to existing extensinos (even purely hypothetical ones, since none are known). This is because every diagnostic considered by Flymake has to passed to a report-fn function. * lisp/progmodes/flymake.el (flymake-ler-make-ler): Delete. 2017-10-06 Paul Eggert Fix bug with unmounted directory on GNU/Linux * src/sysdep.c (emacs_get_current_dir_name): Do not use get_current_dir_name result unless it is absolute (Bug#27871). 2017-10-05 Nicolas Petton Update authors.el * admin/authors.el (authors-renamed-files-alist) (authors-valid-file-names): Additions. 2017-10-05 Gemini Lasswell Fix dynamic binding wrapper in iter-lambda (bug#25965) * lisp/emacs-lisp/generator.el (cps--make-dynamic-binding-wrapper): Remove extra evaluation of form. * test/lisp/emacs-lisp/generator-tests.el (cps-iter-lambda-with-dynamic-binding): New test. 2017-10-05 Rasmus Update Org to v9.1.2 Please note this is a bugfix release. See etc/ORG-NEWS for details. 2017-10-05 Alan Mackenzie Fix irregularities with CC Mode fontification, particularly with "known types" * lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Introduce a new optional parameter, template-class. In "class ", fontify "Y" as a type. (c-font-lock-single-decl): New variable template-class, set to non-nil when we have a construct like the above. Pass this as argument to c-font-lock-declarators. (c-font-lock-cut-off-declarators): Check more rigorously that a declaration being processed starts before the function's starting position. (c-complex-decl-matchers): Remove the redundant clause which fontified "types preceded by, e.g., "struct"". * lisp/progmodes/cc-langs.el (c-template-typename-kwds) (c-template-typename-key): New lang defconsts and defvar. 2017-10-05 Eli Zaretskii Fix breakage due to recent change in tabulated-list-print-entry * lisp/emacs-lisp/tabulated-list.el (tabulated-list-printer): Update the doc string. (tabulated-list-print-entry): Revert to using only 2 arguments. Update the doc string. (tabulated-list-entry-lnum-width): New defvar. (tabulated-list-print): Compute the width of line-number display once, then store that value in tabulated-list-entry-lnum-width, for tabulated-list-printer to use. (Bug#28704) 2017-10-05 Gemini Lasswell * lisp/ses.el (ses-print-cell): Fix alignment of text cells. (Bug#27653) 2017-10-05 Alexander Gramiak Set xterm click count to 1 even with no last click * lisp/xt-mouse.el (xterm-mouse-event): Move the check for the last click so that click-count is initialized properly. Handle the value of t for double-click-time. (Bug#28658) 2017-10-05 Vasilij Schneidermann Support indirection for all shr-tag-* calls The 'shr-external-rendering-functions' variable was previously only honored in the shr-descend function, now all direct calls to the shr-tag-* functions have been replaced by a call to 'shr-indirect-call' which tries using an alternative rendering function first. * lisp/net/shr.el (shr-indirect-call): New helper function. (shr-descend, shr-tag-object, shr-tag-video): (shr-collect-extra-strings-in-table): Fix callers to call via shr-indirect-call. (Bug#28402) 2017-10-05 Eli Zaretskii Speed up list-packages when 'visual' line numbers are displayed * lisp/emacs-lisp/tabulated-list.el (tabulated-list-printer): Update the doc string. (tabulated-list-print-entry): Accept an additional optional argument INDENT. Update the doc string. (tabulated-list-print): Compute the width of line-number display once, then call tabulated-list-printer with that value as 3rd argument. (Bug#28704) 2017-10-05 João Távora Misc. minor adjustments to Flymake - Add a half-decent minor-mode menu; - Fix "waiting for backends" mode line message; - Adjust the flymake-diag-region API; - Autoload the flymake-log macro; - Auto-disable the legacy backend in more situations; - Fix a couple of warnings in legacy backend. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Use new flymake-diag-region. * lisp/progmodes/flymake-proc.el (flymake-proc-legacy-flymake): Do error when no buffer-file-name or not writable. (flymake-proc-legacy-flymake) (flymake-proc-simple-cleanup): Don't reference flymake-last-change-time * lisp/progmodes/flymake.el (flymake-diag-region): Autoload. Take buffer as first argument. * lisp/progmodes/flymake.el (flymake-switch-to-log-buffer): New command. (flymake-menu): Add a simple menu. (flymake--mode-line-format): Use menu. Fix message. Switch to log buffer when clicking exceptional warnings. 2017-10-05 Johan Bockgård Fix search for ~/.Xdefaults-HOSTNAME * src/xrdb.c (get_environ_db): Fix typo when handling ~/.Xdefaults-HOSTNAME (Bug#28708). 2017-10-04 Paul Eggert Speed up (format "%s" STRING) and the like Although the Lisp manual said that ‘format’ returns a newly-allocated string, this was not true for a few cases like (format "%s" ""), and fixing the documentation to allow reuse of arguments lets us improve performance in common cases like (format "foo") and (format "%s" "foo") (Bug#28625). * doc/lispref/strings.texi (Formatting Strings): * etc/NEWS: Say that the result of ‘format’ might not be newly allocated. * src/callint.c (Fcall_interactively): * src/dbusbind.c (XD_OBJECT_TO_STRING): * src/editfns.c (Fmessage, Fmessage_box): * src/xdisp.c (vadd_to_log, Ftrace_to_stderr): Just use Fformat or Fformat_message, as that’s simpler and no longer makes unnecessary copies. * src/editfns.c (styled_format): Remove last argument, as it is no longer needed: all callers now want it to behave as if it were true. All remaining callers changed. Make this function static again. Simplify the function now that we no longer need to worry about whether the optimization is allowed. 2017-10-04 Alan Mackenzie Fontify untyped function declarations in C Mode correctly. Also correct two bugs where deleting WS at a BOL could leave an untyped function declaration unfontified. * lisp/progmodes/cc-engine.el (c-find-decl-spots): Don't set the flag "top-level" when we're in a macro. (c-forward-decl-or-cast-1): Recognize top-level "foo(bar)" or "foo()" in C Mode as a implicitly typed function declaration. (c-just-after-func-arglist-p): Don't get confused by "defined (foo)" inside a macro. It's not a function plus arglist. * lisp/progmodes/cc-langs.el (c-cpp-expr-functions-key): New defconst and defvar. * lisp/progmodes/cc-mode.el (c-fl-decl-end): After c-forward-declarator, move over any following parenthesis expression (i.e. parameter list). (c-change-expand-fl-region): When c-new-END is at a BOL, include that line in the returned region, to cope with deletions at column 0. 2017-10-04 Michael Albinus * lisp/net/tramp.el (tramp-tramp-file-p): Use `string-match-p'. Reported by Clément Pit-Claudel . 2017-10-04 Eli Zaretskii Avoid crashes on C-g when several threads wait for input * src/thread.h (m_getcjmp): New member of 'struct thread_state'. (getcjmp): Define to current thread's 'm_getcjmp'. * src/thread.c (maybe_reacquire_global_lock): Switch to main thread, since this is called from a SIGINT handler, which always runs in the context of the main thread. * src/lisp.h (sys_jmp_buf, sys_setjmp, sys_longjmp): Move the definitions before thread.h is included, as thread.h now uses sys_jmp_buf. * src/keyboard.c (getcjmp): Remove declaration. (read_char): Don't call maybe_reacquire_global_lock here. (handle_interrupt): Call maybe_reacquire_global_lock here, if invoked from the SIGINT handler, to make sure quit_throw_to_read_char runs with main thread's Lisp bindings and uses the main thread's jmp_buf buffer. (Bug#28630) 2017-10-04 Paul Eggert Warn if --without-pop is now the default * configure.ac (with_pop): Set to no-by-default if defaulting to "no". Warn about the change if defaulting to "no". Update URLs. 2017-10-04 Paul Eggert --with-pop is now the default only on MS-Windows Problem reported by N. Jackson (Bug#28597). This improves an earlier suggestion by Robert Pluim (Bug#28597#47). * INSTALL, configure.ac, etc/NEWS: Make --with-pop the default only on native MS-Windows. 2017-10-03 Michael Albinus Add support for `file-system-info' in Tramp * lisp/net/tramp.el (tramp-file-name-for-operation): Add `file-system-info'. * lisp/net/tramp-adb.el (tramp-adb-handle-file-system-info): New defun. (tramp-adb-file-name-handler-alist): Use it. * lisp/net/tramp-gvfs.el (tramp-gvfs-file-system-attributes) (tramp-gvfs-file-system-attributes-regexp): New defconst. (tramp-gvfs-handle-file-system-info): New defun. (tramp-gvfs-file-name-handler-alist): Use it. (tramp-gvfs-get-directory-attributes): Fix property name. (tramp-gvfs-get-root-attributes): Support also file system attributes. * lisp/net/tramp-sh.el (tramp-sh-handle-file-system-info): New defun. (tramp-sh-file-name-handler-alist): Use it. (tramp-sh-handle-insert-directory): Insert size information. (tramp-get-remote-df): New defun. * lisp/net/tramp-smb.el (tramp-smb-handle-file-system-info): New defun. (tramp-smb-file-name-handler-alist): Use it. (tramp-smb-handle-insert-directory): Insert size information. * test/lisp/net/tramp-tests.el (tramp-test37-file-system-info): New test. (tramp-test38-asynchronous-requests) (tramp-test39-recursive-load, tramp-test40-remote-load-path) (tramp-test41-unload): Rename. 2017-10-03 João Távora Merge branch 'scratch/flymake-refactor-clean-for-emacs-26' into emacs-26 2017-10-03 João Távora Start rewriting Flymake manual Missing the parts pertaining to the new customization API. * doc/misc/flymake.texi (Overview of Flymake): Rewrite a bit. (Installing Flymake): Delete most of this. (Running the syntax check): Mention flymake-start. (Navigating to error lines): Rewrite. (Viewing error messages): Commente out. (Syntax check statuses, Troubleshooting): Rewrite a bit. (Customizable variables): New section under "Using Flymake". Don't mention any proc variables here. (Configuring Flymake): Delete (Proc backend): New chapter (Proc customization variables): New chapter. * doc/misc/flymake.texi (Overview of Flymake): Rewrite a bit. (Installing Flymake): Mostly scratch. Flymake comes with Emacs. (Running the syntax check): Simplify. (Viewing error messages): Dekete, (Syntax check statuses): Rewrite. (Troubleshooting): Simplify. (Customizable variables): Rewrite. (Extending Flymake): New chapter, empty for now. (The legacy Proc backend): New chapter. (Proc customizable variables) (Adding support for a new syntax check tool) (Implementation overview) (Making a temporary copy) (Locating a master file) (Getting the include directories) (Locating the buildfile) (Starting the syntax check process) (Parsing the output) (Interaction with other modes) (Example---Configuring a tool called via make) (Example---Configuring a tool called directly): Rewrite a bit. 2017-10-03 João Távora Minimal tweak as an attempt to future-proof Flymake API Discussed with Stefan that this should allow Flymake to request more from backends in the future, while also allowing backends to report more accurately. * lisp/progmodes/elisp-mode.el (elisp-flymake-checkdoc) (elisp-flymake-byte-compile): Adjust to new API. * lisp/progmodes/flymake-proc.el () (flymake-proc-legacy-flymake): Adjust to new API. * lisp/progmodes/flymake.el (flymake-diagnostic-functions): Review API again. (flymake--handle-report): Allow other keys. Change ACTION to REPORT-ACTION. 2017-10-03 João Távora Integrate Flymake elisp checkers into elisp-mode.el directly * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Use elisp-flymake-checkdoc and elisp-flymake-byte-compile. (elisp-flymake--checkdoc-1, elisp-flymake-checkdoc) (elisp-flymake--byte-compile-done) (elisp-flymake--byte-compile-process) (elisp-flymake-byte-compile): Rename from flymake-elisp counterparts in deleted flymake-elisp.el (elisp-flymake--batch-compile-for-flymake): New helper. (checkdoc-create-error-function) (checkdoc-autofix-flag) (checkdoc-generate-compile-warnings-flag) (checkdoc-diagnostic-buffer): Forward declare. * lisp/progmodes/flymake-elisp.el: Delete. 2017-10-03 João Távora Hook Flymake onto proper checkdoc and byte-compile interfaces The interfaces in bytecomp.el and checkdoc.el are mostly boilerplate, with little knowledge of actual internals or thought given to the usefulness of said interfaces in contexts other than Flymake's. * lisp/emacs-lisp/bytecomp.el (byte-compile-log-warning-function): New variable. (byte-compile-log-warning): Use it. (byte-compile--log-warning-for-byte-compile): New function. * lisp/emacs-lisp/checkdoc.el (checkdoc-create-error-function): New variable. (checkdoc-create-error): Use it. (checkdoc--create-error-for-checkdoc): New function.xo * lisp/progmodes/flymake-elisp.el (flymake-elisp--checkdoc-1): Use checkdoc-create-error-function. (flymake-elisp--batch-byte-compile): Use byte-compile-log-warning-function. 2017-10-03 João Távora Tweak Flymake autoloads and dependencies * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Add to flymake-diagnostic-functions here. * lisp/progmodes/flymake-elisp.el[top]: Don't add to emacs-lisp-mode-hook. Don't call flymake-elisp-setup-backends in every buffer. (flymake-elisp-checkdoc) (flymake-elisp-byte-compile): Autoload. (flymake-elisp-setup-backends): Remove. * lisp/progmodes/flymake.el: Add some top-level comments. (flymake-make-diagnostic) (flymake-mode, flymake-mode-on, flymake-mode-off): Add autoloads Where to fixup this shit? 2017-10-03 João Távora Capitalize "Flymake" in docstrings and comments * lisp/progmodes/flymake-elisp.el (flymake-elisp-checkdoc) (flymake-elisp-setup-backends): Capitalize "Flymake" * lisp/progmodes/flymake-proc.el: (flymake-proc-reformat-err-line-patterns-from-compile-el) (flymake-proc--panic, flymake-proc-legacy-flymake) (flymake-start-syntax-check, flymake-proc-compile) (define-obsolete-variable-alias): Capitalize "Flymake" * lisp/progmodes/flymake.el (flymake-fringe-indicator-position) (flymake-make-diagnostic, flymake-delete-own-overlays) (flymake-diagnostic-functions) (flymake-diagnostic-types-alist, flymake-is-running) (flymake-make-report-fn, flymake-mode-on, flymake-mode-off) (flymake-goto-next-error, flymake-goto-prev-error): Capitalize "Flymake" 2017-10-03 João Távora Flymake backends can report multiple times per check Rewrote a significant part of the Flymake backend API. Flymake now ignores the return value of backend functions: a function can either returns or errors. If it doesn't error, a backend is no longer constrained to call REPORT-FN exactly once. It may do so any number of times, cumulatively reporting diagnostics. Flymake keeps track of outdated REPORT-FN instances and disconsiders obsolete reports. Backends should avoid reporting obsolete data by canceling any ongoing processing at every renewed call to the backend function. Consolidated flymake.el internal data structures to require less buffer-local variables. Adjusted Flymake's mode-line indicator to the new semantics. Adapted and simplified the implementation of elisp and legacy backends, fixing potential race conditions when calling backends in rapid succession. Added a new test for a backend that calls REPORT-FN multiple times. Simplify test infrastructure. * lisp/progmodes/flymake-elisp.el (flymake-elisp-checkdoc) (flymake-elisp-byte-compile): Error instead of returning nil if not in emacs-lisp-mode. (flymake-elisp--byte-compile-process): New buffer-local variable. (flymake-elisp-byte-compile): Mark (and kill) previous process obsolete process before starting a new one. Don't report if obsolete process. * lisp/progmodes/flymake-proc.el (flymake-proc--current-process): New buffer-local variable. (flymake-proc--processes): Remove. (flymake-proc--process-filter): Don't bind flymake-proc--report-fn. (flymake-proc--process-sentinel): Rewrite. Don't report if obsolete process. (flymake-proc-legacy-flymake): Rewrite. Mark (and kill) previous process obsolete process before starting a new one. Integrate flymake-proc--start-syntax-check-process helper. (flymake-proc--start-syntax-check-process): Delete. (flymake-proc-stop-all-syntax-checks): Don't use flymake-proc--processes, iterate buffers. (flymake-proc-compile): * lisp/progmodes/flymake.el (subr-x): Require it explicitly. (flymake-diagnostic-functions): Reword docstring. (flymake--running-backends, flymake--disabled-backends) (flymake--diagnostics-table): Delete. (flymake--backend-state): New buffer-local variable and new defstruct. (flymake--with-backend-state, flymake--collect) (flymake-running-backends, flymake-disabled-backends) (flymake-reporting-backends): New helpers. (flymake-is-running): Use flymake-running-backends. (flymake--handle-report): Rewrite. (flymake-make-report-fn): Ensure REPORT-FN runs in the correct buffer or not at all. (flymake--disable-backend, flymake--run-backend): Rewrite. (flymake-start): Rewrite. (flymake-mode): Set flymake--backend-state. (flymake--mode-line-format): Rewrite. * test/lisp/progmodes/flymake-tests.el (flymake-tests--wait-for-backends): New helper. (flymake-tests--call-with-fixture): Use it. (included-c-header-files): Fix whitespace. (flymake-tests--diagnose-words): New helper. (dummy-backends): Rewrite for new semantics. Use cl-letf. (flymake-tests--assert-set): Use quote. (recurrent-backend): New test. 2017-10-03 João Távora Flymake uses proper idle timers Also, flymake-no-changes-timeout can be set to nil to disable automatic periodic checks. But even in that situation the idle timer still runs at a reduced rate to detect changes in the variable and revert that decision. * lisp/progmodes/flymake.el (flymake-no-changes-timeout): Improve doc. (flymake-last-change-time): Delete. (flymake--schedule-timer-maybe): New helper. (flymake-after-change-function): Use it. (flymake-on-timer-event): Delete (flymake-mode): Don't scheduler timer. 2017-10-03 João Távora Flymake variable flymake-diagnostic-functions now a special hook * lisp/progmodes/flymake-proc.el: Use add-hook to affect flymake-diagnostic-functions. * lisp/progmodes/flymake-elisp.el (flymake-elisp-setup-backends): Use add-hook. * lisp/progmodes/flymake.el (flymake-diagnostic-functions): Revise docstring. (flymake-start): Use run-hook-wrapped. 2017-10-03 João Távora Batch of minor Flymake cleanup actions agreed to with Stefan Discussed with Stefan, in no particular order - Remove aliases for symbols thought to be internal to flymake-proc.el - Don’t need :group in defcustom and defface in flymake.el - Fix docstring of flymake-make-diagnostic - Fix docstring of flymake-diagnostic-functions to clarify keywords. - Mark overlays with just the property ’flymake, not ’flymake-overlay - Tune flymake-overlays for performance - Make flymake-mode-on and flymake-mode-off obsolete - Don’t use hash-table-keys unless necessary. - Copyright notice in flymake-elisp. Added some more - Clarify docstring of flymake-goto-next-error - Clarify a comment in flymake--run-backend complaining about ert-deftest. - Prevent compilation warnings in flymake-proc.el - Remove doctring from obsolete aliases Now the changelog: * lisp/progmodes/flymake-elisp.el: Proper copyright notice. * lisp/progmodes/flymake-proc.el (flymake-warning-re) (flymake-proc-diagnostic-type-pred) (flymake-proc-default-guess) (flymake-proc--get-file-name-mode-and-masks): Move up to beginning of file to shoosh compiler warnings (define-obsolete-variable-alias): Delete many obsolete aliases. * lisp/progmodes/flymake.el (flymake-error-bitmap) (flymake-warning-bitmap, flymake-note-bitmap) (flymake-fringe-indicator-position) (flymake-start-syntax-check-on-newline) (flymake-no-changes-timeout, flymake-gui-warnings-enabled) (flymake-start-syntax-check-on-find-file, flymake-log-level) (flymake-wrap-around, flymake-error, flymake-warning) (flymake-note): Don't need :group in these defcustom and defface. (flymake--run-backend): Clarify comment (flymake-mode-map): Remove. (flymake-make-diagnostic): Fix docstring. (flymake--highlight-line, flymake--overlays): Identify flymake overlays with just ’flymake. (flymake--overlays): Reverse order of invocation for cl-remove-if-not and cl-sort. (flymake-mode-on) (flymake-mode-off): Make obsolete. (flymake-goto-next-error, flymake-goto-prev-error): Fix docstring. (flymake-diagnostic-functions): Clarify keyword arguments in docstring. Maybe squash in that one where I remove many obsoletes 2017-10-03 João Távora Explicitly add a(n empty) keymap for Flymake Too early to decide what will be in it, if anything. Though "M-n" and "M-p" would be great. * lisp/progmodes/flymake-ui.el (flymake-mode-map): New variable 2017-10-03 João Távora Flymake uses some new fringe bitmaps Also fix behavior whereby flymake wouldn't react to a change in the variable. * lisp/progmodes/flymake-ui.el (flymake-error-bitmap) (flymake-warning-bitmap): Update bitmaps. (flymake-note-bitmap): New defcustom. (flymake-double-exclamation-mark): New bitmap. (flymake-error, flymake-warning, flymake-note) (flymake--highlight-line): 'bitmap property must be a symbol. Also set default face to flymake-error. (flymake--fringe-overlay-spec): Bitmap property can be a variable symbol. 2017-10-03 João Távora Remove old flymake-display-err-menu-for-current-line, it's useless See https://lists.gnu.org/r/emacs-devel/2017-09/msg00949.html * lisp/progmodes/flymake-ui.el (flymake-popup-current-error-menu): Remove. 2017-10-03 João Távora Treat Flymake errors as just another type of diagnostic * lisp/progmodes/flymake.el (flymake--diag-errorp): Remove. (flymake--handle-report, flymake-popup-current-error-menu): Don't use it. 2017-10-03 João Távora Fix three Flymake bugs when checking C header files The first of these problems is longstanding: if an error-less B.h is included from error-ridden A.h, flymake's legacy parser will panic (and disable itself) since it sees a non-zero exit for a clean file. To fix this, recommend returning 'true' in the documentation for the check-syntax target. Another problem was introduced by the parser rewrite. For error patterns spanning more than one line, point may be left in the middle of a line and thus render other patterns useless. Those patterns were written for the old line-by-line parser. To make them useful again, move to the beginning of line in those situations. The third problem was also longstanding and happened on newer GCC's: The "In file included from" prefix confused flymake-proc-get-real-file-name. Fix this. Also updated flymake--diag-region to fallback to highlighting a full line less often. Add automatic tests to check this. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Fix bug when patterns accidentally spans more than one line. Don't create diagnostics without error messages. (flymake-proc-real-file-name-considering-includes): New helper. (flymake-proc-allowed-file-name-masks): Use it. * lisp/progmodes/flymake.el (flymake-diag-region): Make COL argument explicitly optional. Only fall back to full line in extreme cases. * test/lisp/progmodes/flymake-tests.el (included-c-header-files): New test. (different-diagnostic-types): Update. * test/lisp/progmodes/flymake-resources/Makefile (check-syntax): Always return success (0) error code. (CC_OPTS): Add -Wextra * test/lisp/progmodes/flymake-resources/errors-and-warnings.c (main): Rewrite comments. * test/lisp/progmodes/flymake-resources/errors-and-warnings.c: Include some dummy header files. * test/lisp/progmodes/flymake-resources/no-problems.h: New file. * test/lisp/progmodes/flymake-resources/some-problems.h: New file. * doc/misc/flymake.texi (Example---Configuring a tool called via make): Recommend adding "|| true" to the check-syntax target. 2017-10-03 João Távora Add interactive flymake-start function * lisp/progmodes/flymake.el (flymake-on-timer-event) (flymake-after-change-function, flymake-mode): Call flymake-start. (flymake-start): Rename from flymake--start-syntax-check. 2017-10-03 João Távora A couple of Flymake backends for emacs-lisp-mode Loading flymake-elisp.el doesn't setup flymake-mode to turn on automatically, but it affects emacs-lisp-mode-hook so that flymake-diagnostic-functions is setup with a suitable buffer-local value. The variable flymake-diagnostic-funtions in every live emacs-lisp-mode buffer is also adjusted. * lisp/progmodes/flymake.el (top): Require flymake-elisp. * lisp/progmodes/flymake-elisp.el: New file. 2017-10-03 João Távora Fancy Flymake mode-line construct displays status Imitates compilation-mode's mode-line a bit, and uses its faces. * lisp/progmodes/flymake.el (flymake-error, flymake-warning, flymake-note): Add mode-line-face to these flymake error types. (flymake-note): Notes don't need a noisy fringe bitmap. (flymake-lighter): Delete. (flymake--update-lighter): Delete. (flymake--mode-line-format): New function and variable. (flymake--diagnostics-table): New buffer-local variable. (flymake--handle-report): Don't update "lighters". Affect flymake--diagnostics-table. (flymake--run-backend): Init flymake--diagnostics-table for backend. (flymake-mode): Use flymake--mode-line-format. (flymake-mode): Don't update lighter. (flymake--highlight-line): Be more careful when overriding a nil default overlay property. 2017-10-03 João Távora Tweak Flymake commands flymake-goto-[next/prev]-error Add filters, useful for backends like the upcoming flymake-elisp-checkdoc backend, for example, which litters everything with low-priority notes. Also re-implement wraparound for flymake-goto-next-error. Manual mentions this, so it's probably a good idea to keep it. Added a new customization variable flymake-wrap-around to control it. * lisp/progmodes/flymake.el (flymake-goto-prev-error) (flymake-goto-next-error): Accept FILTER argument. (flymake-wrap-around): New variable. (flymake-goto-next-error): Wrap around according to flymake-wrap-around. * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types, dummy-backends): Pass FILTER to flymake-goto-prev-error. (different-diagnostic-types) (dummy-backends): Use flymake-wrap-around. 2017-10-03 João Távora Flymake's flymake-proc.el backend slightly easier to debug Misc cleanup in flymake-proc.el Improve description of what this file contains. Better name for the backend function. Fix the case where it is run interactively. Keep the output buffer alive iff the external process panics. * lisp/progmodes/flymake-proc.el (flymake-proc-legacy-flymake): Rename from flymake-proc-start-syntax-check. Allow running interactively. (flymake-start-syntax-check): Obsolete alias for flymake-proc-legacy-flymake. (flymake-proc-start-syntax-check): Delete. (flymake-diagnostic-functions): Include flymake-proc-legacy-flymake (flymake-proc--process-sentinel): Keep output buffer alive. Clarify with comments. (flymake-proc--diagnostics-for-pattern) (flymake-proc--process-sentinel) (flymake-proc--safe-delete-directory) (flymake-proc--start-syntax-check-process): Use condition-case-unless-debug. 2017-10-03 João Távora Simplify Flymake logging and erroring Use display-warning and a dedicated *Flymake log* buffer. To ease readability, flymake log messages are now prefixed with a common prefix and the buffer that originated them. Some situations of over-zealous logging are fixed. Use byte-compiler info, if available, to determine whence the flymake-related log message is coming. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Improve log message. (flymake-proc--panic): Always flymake-log an error (flymake-proc--safe-delete-file) (flymake-proc--safe-delete-directory): Downgrade warning (flymake-proc-start-syntax-check): Simplify slightly. (flymake-proc--start-syntax-check-process): Simplify. (flymake-proc--init-find-buildfile-dir) (flymake-proc--init-create-temp-source-and-master-buffer-copy): No need to warn twice. * lisp/progmodes/flymake.el (flymake-log): Convert to macro. (flymake--log-1): New helper. (flymake-log-level): Deprecate. (flymake-error): New helper. (flymake-ler-make-ler, flymake--handle-report, flymake-mode): Use flymake-error. (flymake-on-timer-event) (flymake--handle-report, flymake--disable-backend) (flymake--run-backend, flymake-start, flymake-mode-on) (flymake-mode-off, flymake-after-change-function) (flymake-after-save-hook, flymake-find-file-hook): Adjust flymake-log calls. * test/lisp/progmodes/flymake-tests.el (flymake-tests--call-with-fixture): Only log errors. 2017-10-03 Philipp Stephani Work around deprecation of gtk_style_context_get_background_color * src/gtkutil.c (xg_check_special_colors): Replace call to gtk_style_context_get_background_color with its definition. 2017-10-03 João Távora New Flymake API variable flymake-diagnostic-functions Lay groundwork for multiple active backends in the same buffer. Backends are lisp functions called when flymake-mode sees fit. They are responsible for examining the current buffer and telling flymake.el, via return value, if they can syntax check it. Backends should return quickly and inexpensively, but they are also passed a REPORT-FN argument which they may or may not call asynchronously after performing more expensive work. REPORT-FN's calling convention stipulates that a backend calls it with a list of diagnostics as argument, or, alternatively, with a symbol denoting an exceptional situation, usually some panic resulting from a misconfigured backend. In keeping with legacy behavior, flymake.el's response to a panic is to disable the issuing backend. The flymake--diag object representing a diagnostic now also keeps information about its source backend. Among other uses, this allows flymake to selectively cleanup overlays based on which backend is updating its diagnostics. * lisp/progmodes/flymake-proc.el (flymake-proc--report-fn): New dynamic variable. (flymake-proc--process): New variable. (flymake-can-syntax-check-buffer): Remove. (flymake-proc--process-sentinel): Simplify. Use unwind-protect. Affect flymake-proc--processes here. Bind flymake-proc--report-fn. (flymake-proc--process-filter): Bind flymake-proc--report-fn. (flymake-proc--post-syntax-check): Delete (flymake-proc-start-syntax-check): Take mandatory report-fn. Rewrite. Bind flymake-proc--report-fn. (flymake-proc--process-sentinel): Rewrite and simplify. (flymake-proc--panic): New helper. (flymake-proc--start-syntax-check-process): Record report-fn in process. Use flymake-proc--panic. (flymake-proc-stop-all-syntax-checks): Use mapc. Don't affect flymake-proc--processes here. Record interruption reason. (flymake-proc--init-find-buildfile-dir) (flymake-proc--init-create-temp-source-and-master-buffer-copy): Use flymake-proc--panic. (flymake-diagnostic-functions): Add flymake-proc-start-syntax-check. (flymake-proc-compile): Call flymake-proc-stop-all-syntax-checks with a reason. * lisp/progmodes/flymake.el (flymake-backends): Delete. (flymake-check-was-interrupted): Delete. (flymake--diag): Add backend slot. (flymake-delete-own-overlays): Take optional filter arg. (flymake-diagnostic-functions): New user-visible variable. (flymake--running-backends, flymake--disabled-backends): New buffer-local variables. (flymake-is-running): Now a function, not a variable. (flymake-mode-line, flymake-mode-line-e-w) (flymake-mode-line-status): Delete. (flymake-lighter): flymake's minor-mode "lighter". (flymake-report): Delete. (flymake--backend): Delete. (flymake--can-syntax-check-buffer): Delete. (flymake--handle-report, flymake--disable-backend) (flymake--run-backend, flymake--run-backend): New helpers. (flymake-make-report-fn): Make a lambda. (flymake--start-syntax-check): Iterate flymake-diagnostic-functions. (flymake-mode): Use flymake-lighter. Simplify. Initialize flymake--running-backends and flymake--disabled-backends. (flymake-find-file-hook): Simplify. * test/lisp/progmodes/flymake-tests.el (flymake-tests--call-with-fixture): Use flymake-is-running the function. Check if flymake-mode already active before activating it. Add a thorough test for flymake multiple backends * lisp/progmodes/flymake.el (flymake--start-syntax-check): Don't use condition-case-unless-debug, use condition-case * test/lisp/progmodes/flymake-tests.el (flymake-tests--assert-set): New helper macro. (dummy-backends): New test. 2017-10-03 João Távora More Flymake cleanup before advancing to backend redesign Diagnostics are reported for buffers, not necessarily files. It’s the backend’s responsibility to compute the buffer where the diagnostic is applicable. For now, this has to match the buffer where flymake-mode is active and which is at the origin of the backend call. flymake.el knows nothing about line/column diagnostics (except for backward-compatible flymake-ler-make-ler, which must yet be tested). It’s also the backend’s reponsibility to compute a BEG and END positions for the diagnostic in the relevant buffer. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Convert LINE/COL to region here. Check file buffer here. (flymake-proc--process-sentinel): Don’t kill output buffer if high enough log level. * lisp/progmodes/flymake.el (flymake-diag-region): Make this a utility function. (flymake--highlight-line): Diagnostic has region now. (flymake-popup-current-error-menu): Don’t add file and line numbers to already this silly menu. (flymake--fix-line-numbers): Remove. (flymake-report): No need to fix diagnostics here. 2017-10-03 João Távora Protect Flymake's eager checks against commands like fill-paragraph If flymake-start-syntax-check-on-newline is t, check should start as soon as a newline is seen by after-change-functions. But don't rush it: since the buffer state might not be final, we might end up with invalid diagnostic regions after some commands silently insert and delete newlines (looking at you, fill-paragraph). * lisp/progmodes/flymake.el (flymake-after-change-function): Pass `deferred' to flymake--start-syntax-check. (flymake--start-syntax-check): Take optional `deferred' arg. 2017-10-03 João Távora Flymake highlights GCC info/notes as detected by flymake-proc.el * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Rewrite (using cl-loop) to honour more sophisticated flymake-proc-diagnostic-type-pred. (flymake-warning-re): Is now an obsolete alias for flymake-proc-diagnostic-type-pred. (flymake-proc-diagnostic-type-pred): Rename and augment from flymake-proc-warning-predicate. (flymake-proc-warning-predicate): Delete. * lisp/progmodes/flymake.el (flymake-note): New face. (flymake-diagnostic-types-alist): Simplify. (flymake-note): New overlay category. (flymake--lookup-type-property): Only lookup single keys, not lists. (flymake--diag-errorp): Rewrite. (flymake--highlight-line): Use flymake--lookup-type-property. * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Rename from errors-and-warnings. Check notes. (flymake-tests--call-with-fixture): Use flymake-proc-diagnostic-type-pred. 2017-10-03 João Távora Flymake checks file names before considering diagnostics The error patterns for gcc picked up errors for the Makefile itself, for example. These shouldn't count as actual errors. * lisp/progmodes/flymake.el (flymake-report): Check matching file names. 2017-10-03 João Távora Echo Flymake error messages when navigating errors interactively Perhaps binding M-n and M-p to flymake-goto-next-error and flymake-goto-prev-error also wouldn't be a bad idea. * lisp/progmodes/flymake.el (flymake-goto-next-error): Use target overlay's help-echo. 2017-10-03 João Távora Add a new Flymake test for multiple errors and warnings * test/lisp/progmodes/flymake-tests.el (flymake-tests--call-with-fixture): Save excursion. (errors-and-warnings): New test. * test/lisp/progmodes/flymake-resources/errors-and-warnings.c: New test fixture. 2017-10-03 João Távora Flymake warning face easier to distinguish A orange wavy underline is very hard to tell from a red wavy underline. * lisp/progmodes/flymake.el (flymake-warning): Change color to "deep sky blue" 2017-10-03 João Távora Flymake's flymake-proc.el parses column numbers from gcc/javac errors Column numbers are not a great way of marking diagnostic regions, but that's probably all that can be expected from the flymake-proc.el backend. For now, try (end-of-thing 'sexp) to discover the diagnostic's end position. * lisp/progmodes/flymake-proc.el () (flymake-proc-err-line-patterns): Also parse column numbers, if available, for gcc/javac warnings. 2017-10-03 João Távora New Flymake variable flymake-diagnostic-types-alist and much cleanup A new user-visible variable is introduced where different diagnostic types can be categorized. Flymake backends can also contribute to this variable. Anything that doesn’t match an existing error type is considered. The variable’s alists are used to propertize the overlays pertaining to each error type. The user can override the built-in properties by either by modifying the alist, or by modifying the properties of a special "category" symbol, named by the `flymake-category' entry in the alist. The `flymake-category' entry is especially useful for, say, the author of foo-flymake-backend, who issues diagnostics of type :foo-note, that should behave like notes, except with no fringe bitmap: (add-to-list 'flymake-diagnostic-types-alist '(:foo-note . ((flymake-category . flymake-note) (bitmap . nil)))) For essential properties like `severity', `priority', etc, a default value is produced. Some properties like `evaporate' cannot be overriden. * lisp/progmodes/flymake.el (flymake--diag): Rename from flymake-ler. (flymake-ler-make): Obsolete alias for flymake-diagnostic-make (flymake-ler-errorp): Rewrite using flymake--severity. (flymake--place-overlay): Delete. (flymake--overlays): Now a cl-defun with &key args. Document. Use `overlays-at' if BEG is non-nil and END is nil. (flymake--lookup-type-property): New helper. (flymake--highlight-line): Rewrite. (flymake-diagnostic-types-alist): New API variable. (flymake--diag-region) (flymake--severity, flymake--face) (flymake--fringe-overlay-spec): New helper. (flymake-popup-current-error-menu): Use new flymake-overlays. (flymake-popup-current-error-menu, flymake-report): Use flymake--diag-errorp. (flymake--fix-line-numbers): Use flymake--diag-line. (flymake-goto-next-error): Pass :key to flymake-overlays * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Use flymake-diagnostic-make. 2017-10-03 João Távora Refactor Flymake tests in preparation for more tests Introduce a slightly more generic fixture macro. Also make flymake-tests.el friendlier to interactive runs, by not killing buffers visited by the user. * test/lisp/progmodes/flymake-tests.el (flymake-tests--call-with-fixture): New helper from flymake-tests--current-face. Don't kill file buffers already being visited before the test starts. (flymake-tests--with-flymake): New macro. (flymake-tests--current-face): Delete. (warning-predicate-rx-gcc, warning-predicate-function-gcc) (warning-predicate-rx-perl, warning-predicate-function-perl): Use flymake-test--with-flymake. 2017-10-03 João Távora Allow running Flymake tests from interactive sessions * test/lisp/progmodes/flymake-tests.el (flymake-tests-data-directory): Expand to reasonable value if no EMACS_TEST_DIRECTORY. (flymake-tests--current-face): Work around "weirdness" of bug 17647 with read-event. 2017-10-03 João Távora Flymake diagnostics now apply to arbitrary buffer regions Make Flymake UI some 150 lines lighter Strip away much of the original implementation's complexity in manipulating objects representing diagnostics as well as creating and navigating overlays. Lay some groundwork for a more flexible approach that allows for different classes of diagnostics, not necessarily line-based. Importantly, one overlay per diagnostic is created, whereas the original implementation had one per line, and on it it concatenated the results of errors and warnings. This means that currently, an error and warning on the same line are problematic and the warning might be overlooked but this will soon be fixed by setting appropriate priorities. Since diagnostics can highlight arbitrary regions, not just lines, the faces were renamed. Tests pass and backward compatibility with interactive functions is maintained, but probably any third-party extension or customization relying on more than a trivial set of flymake.el internals has stopped working. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Use new flymake-ler-make constructor syntax. * lisp/progmodes/flymake.el (flymake-ins-after) (flymake-set-at, flymake-er-make-er, flymake-er-get-line) (flymake-er-get-line-err-info-list, flymake-ler-set-file) (flymake-ler-set-full-file, flymake-ler-set-line) (flymake-get-line-err-count, flymake-get-err-count) (flymake-highlight-err-lines, flymake-overlay-p) (flymake-make-overlay, flymake-region-has-flymake-overlays) (flymake-find-err-info) (flymake-line-err-info-is-less-or-equal) (flymake-add-line-err-info, flymake-add-err-info) (flymake-get-first-err-line-no) (flymake-get-last-err-line-no, flymake-get-next-err-line-no) (flymake-get-prev-err-line-no, flymake-skip-whitespace) (flymake-goto-line, flymake-goto-next-error) (flymake-goto-prev-error, flymake-patch-err-text): Delete functions no longer used. (flymake-goto-next-error, flymake-goto-prev-error): Rewrite. (flymake-report): Rewrite. (flymake-popup-current-error-menu): Rewrite. (flymake--highlight-line): Rename from flymake-highlight-line. Call `flymake--place-overlay. (flymake--place-overlay): New function. (flymake-ler-errorp): New predicate. (flymake-ler): Simplify. (flymake-error): Rename from flymake-errline. (flymake-warning): Rename from flymake-warnline. (flymake-warnline, flymake-errline): Obsoletion aliases. * test/lisp/progmodes/flymake-tests.el (warning-predicate-rx-gcc) (warning-predicate-function-gcc, warning-predicate-rx-perl) (warning-predicate-function-perl): Use face `flymake-warning'. 2017-10-03 João Távora Move symbols in flymake-proc.el to separate namespace Every symbol in this flymake now starts with the prefix flymake-proc-. Make obsolete aliases for (almost?) every symbol. Furthermore, many flymake-proc.el symbols are prefixed with "flymake-proc--", that is they were considered internal. Some customization variables, interactive functions, and other symbols considered useful to user customizations or third-party libraries are considered "public" or "external" and so use a "flymake-proc-" prefix. * lisp/progmodes/flymake-proc.el: Every symbol renamed. * test/lisp/progmodes/flymake-tests.el (flymake-tests--current-face): Use flymake-proc-warning-predicate, not flymake-warning-predicate. * lisp/progmodes/flymake-proc.el (flymake-proc--get-project-include-dirs-function) (flymake-proc--get-project-include-dirs-imp) (flymake-proc--get-include-dirs-dot) (flymake-proc--get-tex-args) (flymake-proc--find-make-buildfile) (flymake-proc--get-syntax-check-program-args) (flymake-proc--init-create-temp-source-and-master-buffer-copy) (flymake-proc--init-find-buildfile-dir) (flymake-proc--get-full-nonpatched-file-name) (flymake-proc--get-full-patched-file-name) (flymake-proc--base-dir, flymake-proc--temp-master-file-name) (flymake-proc--master-file-name) (flymake-proc--temp-source-file-name) (flymake-proc--delete-temp-directory) (flymake-proc--kill-process) (flymake-proc--start-syntax-check-process) (flymake-proc--compilation-is-running) (flymake-proc--safe-delete-directory) (flymake-proc--safe-delete-file) (flymake-proc--get-program-dir) (flymake-proc--restore-formatting) (flymake-proc--clear-project-include-dirs-cache) (flymake-proc--project-include-dirs-cache) (flymake-proc--get-system-include-dirs) (flymake-proc--get-project-include-dirs) (flymake-proc--add-project-include-dirs-to-cache) (flymake-proc--get-project-include-dirs-from-cache) (flymake-proc--post-syntax-check) (flymake-proc--process-sentinel) (flymake-proc--process-filter) (flymake-proc--create-master-file) (flymake-proc--find-buffer-for-file) (flymake-proc--copy-buffer-to-temp-buffer) (flymake-proc--read-file-to-temp-buffer) (flymake-proc--save-buffer-in-file) (flymake-proc--replace-region, flymake-proc--check-include) (flymake-proc--check-patch-master-file-buffer) (flymake-proc--master-file-compare) (flymake-proc--find-possible-master-files) (flymake-proc--included-file-name, flymake-proc--same-files) (flymake-proc--fix-file-name, flymake-proc--find-buildfile) (flymake-proc--clear-buildfile-cache) (flymake-proc--add-buildfile-to-cache) (flymake-proc--get-buildfile-from-cache) (flymake-proc--find-buildfile-cache) (flymake-proc--get-real-file-name-function) (flymake-proc--get-cleanup-function) (flymake-proc--get-init-function) (flymake-proc--get-file-name-mode-and-masks) (flymake-proc--processes): Rename to internal symbol from flymake-proc- version. 2017-10-03 João Távora Completely rewrite Flymake's subprocess output processing Instead of parsing and matching regexps line-by-line, insert subprocess output in a separate buffer and parse using `search-forward-regexp'. This eventually enables multi-line error patterns and simplifies code all around. Store per-check information in the subprocess using `process-get' and `process-put'. Treat error messages, warnings, etc. more generically as "diagnostics". Create these objects as soon as possible, reusing existing `flymake-ler' structure. Fix some whitespace. * lisp/progmodes/flymake.el (cl-lib): Require also when loading. (flymake--fix-line-numbers): Rename from flymake-fix-line-numbers. Simplify. (flymake-report): Call flymake--fix-line-numbers. Rearrange plain diagnostics list into alist format expected by flymake-highlight-err-lines. * lisp/progmodes/flymake-proc.el (flymake-process-filter): Insert process output and parse in dedicated output buffer. (flymake-proc--diagnostics-for-pattern): New helper function. (flymake-process-sentinel): Call flymake-post-syntax-check with collected diagnostics. Kill output buffer. (flymake-post-syntax-check): Receive diagnostics as third argument. (flymake-parse-output-and-residual, flymake-new-err-info) (flymake-parse-residual, flymake-parse-err-lines) (flymake-split-output, flymake-proc-parse-line) (flymake-output-residual): Delete. (flymake-start-syntax-check-process): Use make-process. Setup dedicated an output buffer 2017-10-03 João Távora Flymake provides flymake-report re-entry point for backends * lisp/progmodes/flymake-proc.el (flymake-post-syntax-check): Simplify. Call flymake-report. * lisp/progmodes/flymake.el (flymake-report): New function. 2017-10-03 João Távora Split Flymake into flymake.el into flymake-proc.el (again!) After deciding that this work would continue on master only, which caused two commits named Revert "Split flymake.el into flymake-proc.el and flymake-ui.el" and Revert "Add flymake-backends defcustom" to be added to the emacs-26 branch, further discussion reversed that decision. See: https://lists.gnu.org/r/emacs-devel/2017-09/msg01020.html https://lists.gnu.org/r/emacs-devel/2017-09/msg01030.html This means that those two commits MUST be merged to master AFTER ALL. flymke-proc.el contains the main syntax-checking backend, while flymake.el keeps mostly the UI part. * lisp/progmodes/flymake-proc.el: New file. Require flymake. * lisp/progmodes/flymake.el: Require flymake-proc.el at the end. 2017-10-03 Nicolas Petton Update authors.el * admin/authors.el (authors-ignored-files, authors-valid-file-names) (authors-renamed-files-alist): Additions. 2017-10-03 Noam Postavsky Give more helpful messages for python completion setup failures * lisp/progmodes/python.el (python-shell-completion-native-setup): In case the completion setup failed with some exception, print out the exception type and message. If libedit is detected, raise an exception, since this is known to fail. 2017-10-02 Eli Zaretskii Fix the --without-x build * src/frame.c (Ficonify_frame) [HAVE_WINDOW_SYSTEM]: Use frame_parent only in GUI builds to avoid compilation errors in --without-x builds. (Bug#28611) 2017-10-02 Paul Eggert Fix customization of zoneinfo-style-world-list A customizable variable's initial value cannot depend on that of another customizable variable, since the variables are initialized in other than textual order. Problem reported by N. Jackson (Bug#24291). * lisp/time.el (display-time-world-list): Default to t, a special value that expands to zoneinfo-style-word-list if that works, and to legacy-style-word-list otherwise. (time--display-world-list): New function. (display-time-world, display-time-world-timer): Use it. 2017-10-02 Alan Mackenzie Fix a CC Mode brace stack cache bug. * lisp/progmodes/cc-engine.el (c-update-brace-stack): Call c-beginning-of-current-token after a failing search operation, to ensure we don't cache a point inside a token. 2017-10-02 Paul Eggert * etc/PROBLEMS: Document Bug#26638. 2017-10-02 Paul Eggert Prefer HTTPS to HTTP for gnu.org This fixes some URLs I omitted from my previous pass, notably those in lists.gnu.org. Although lists.gnu.org does not yet support TLS 1.1, TLS 1.0 is better than nothing. * lisp/erc/erc.el (erc-official-location): * lisp/mail/emacsbug.el (report-emacs-bug): Use https:, not http:. 2017-10-02 Paul Eggert Merge from Gnulib This is mostly to change http: to https: in licenses. * COPYING, build-aux/config.guess, build-aux/config.sub: * doc/emacs/doclicense.texi, doc/emacs/gpl.texi: * doc/lispintro/doclicense.texi, doc/lispref/doclicense.texi: * doc/lispref/gpl.texi, doc/misc/doclicense.texi: * doc/misc/gpl.texi, etc/COPYING, leim/COPYING: * lib-src/COPYING, lib/COPYING, lisp/COPYING, lwlib/COPYING: * msdos/COPYING, nt/COPYING, src/COPYING: Copy from Gnulib. 2017-10-01 Simen Heggestøyl Keep eww buffer current when looking up CSS on MDN * lisp/textmodes/css-mode.el (css-lookup-symbol): Keep the eww buffer current when looking up CSS documentation on MDN. This fixes a bug where the eww buffer's content sometimes get mangled when switching buffers mid-render. 2017-10-01 Charles A. Roelli Workaround for faulty localtime() under macOS 10.6 * lisp/org/org-clock.el (org-clock--oldest-date): Only execute 'decode-time' on times later than year -2**31 under macOS 10.6. See Bug#27706. 2017-10-01 Alan Mackenzie Doc amendment for syntax-ppss. * doc/lispref/syntax.texi (Position Parse): Note, twice, that syntax-ppss is equivalent to parse-partial-sexp from the beginning of THE VISIBLE PART OF the buffer. Final part of the fix for bug #22983. 2017-10-01 Charles A. Roelli Remove incorrect NEWS entry about 'find-library' * etc/NEWS (Changes in Emacs 26.1): Remove an entry about 'find-library' taking a prefix argument to pop to a different window. This behavior was added in "Allow a prefix argument to find-library to pop to a different window" (commit e1f2d14a), and then removed in "New commands: find-library-other-window, find-library-other-frame" (commit 021430f4). 2017-10-01 Alan Mackenzie Remove inadvertent changes to syntax.texi in last commit. * doc/lispref/syntax.texi (Position Parse): revert changes. 2017-10-01 Alan Mackenzie Amend documentation for text-quoting-style becoming a user option. * doc/lispref/control.texi (Signaling Errors): * doc/lispref/display.texi (Displaying Messages): * doc/lispref/strings.texi (Formatting Strings): Edit for brevity, farming out the details to the new Text Quoting Style node. * doc/lispref/help.texi (Text Quoting Style): New section. Move detailed discussion of text-quoting-style here. Add discussion about how to output grave accent and apostrophe in documentation and messages. Adjust xrefs to point to this section when appropriate. * etc/NEWS: text-quoting-style semantics have not changed. 2017-10-01 Alan Mackenzie Make the value nil in text-quoting-style mean what it does in Emacs 25. This is a partial reversion of yesterday's commit by the same author, which changed the meaning of nil and introduced the new value t. * src/doc.c (text_quoting_style, text-quoting-style) (internal--text-quoting-flag): Revert yesterday's changes. * lisp/cus-start.el: (top level): Amend the entry for text-quoting-style. * etc/NEWS: Amend the entry for text-quoting-style. * doc/lispref/control.texi (Signalling Errors) * doc/lispref/display.texi (Displaying Messages) * doc/lispref/strings.texi (Formatting Strings): Bind text-quoting-style to grave rather than nil to inhibit translation of quotes. * doc/lispref/help.texi (Keys in Documentation): Revert the description of the proposed new default, t. 2017-10-01 Alan Mackenzie Make text-quoting-style customizable. Introduce t and new meaning for nil. A value of nil for text-quoting-style now means "no translation". t means "Use curved quotes if displayable". * src/doc.c (text-quoting-style (function)): modify for new semantics. (text-quoting-style (variable)): Amend the doc string, set the default value to t. * lisp/cus-start.el: (top level): Create a customize entry for text-quoting-style in group display. * etc/NEWS: Amend the entry for text-quoting-style. * doc/emacs/display.texi (Text Display): Describe the translation of ASCII quotes to curved quotes, and how to influence or inhibit it. * doc/lispref/control.texi (Signalling Errors) * doc/lispref/display.texi (Displaying Messages) * doc/lispref/strings.texi (Formatting Strings): Describe binding text-quoting-style to nil to inhibit unwanted quote translation. * doc/lispref/help.texi (Keys in Documentation): Change text-quoting-style from a variable to a user option. Describe its changed set of values. State that it can be customized freely. 2017-10-01 Michael Albinus eshell.texi improvements * doc/misc/eshell.texi (Built-ins): eshell/sudo is a compiled Lisp function in `em-tramp.el'. Mention also $*, $1, $2, ... (Aliases): Add $*, $1, $2, ... to the variable index. 2017-08-15 Alan Third Fix ns-win.el on GNUstep * lisp/term/ns-win.el: Appkit version check only works on macOS, so don't try it when not using Cocoa. 2017-10-01 Martin Rudalics Fix reference style in org.texi * doc/misc/org.texi (A Texinfo example): Fix reference style. 2017-10-01 Martin Rudalics Improve handling of iconification of child frames (Bug#28611) * src/frame.c (Ficonify_frame): Handle `iconify-child-frame' option. (syms_of_frame): New symbols Qiconify_top_level and Qmake_invisible. (iconify_child_frame): New option. * lisp/cus-start.el (iconify-child-frame): Add customization properties. * doc/lispref/frames.texi (Child Frames): Describe new option `iconify-child-frame'. Don't index "top-level frame" twice. 2017-10-01 Noam Postavsky Revert "Don't lose arguments to eshell aliases (Bug#27954)" It broke the established argument handling methods provided by eshell aliases (Bug#28568). * doc/misc/eshell.texi (Aliases): Fix example, call out use of arguments in aliases. * lisp/eshell/em-alias.el (eshell-maybe-replace-by-alias): Ignore ARGS. 2017-10-01 Noam Postavsky Make "unsafe directory" error message more informative (Bug#865) * lisp/server.el (server-ensure-safe-dir): Produce a description for each "unsafe" condition. 2017-10-01 Eric Abrahamsen Fix slot typecheck in eieio-persistent * lisp/emacs-lisp/eieio-base.el (eieio-persistent-slot-type-is-class-p): An `or' form can specify multiple potential classes (or null) as valid types for a slot, but previously only the final element of the `or' was actually checked. Now returns all valid classes in the `or' form. (eieio-persistent-validate/fix-slot-value): Check if proposed value matches any of the valid classes. * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el (eieio-test-multiple-class-slot): Test this behavior. 2017-09-30 Dmitry Gutov Fix semantic-ia-fast-jump * lisp/cedet/semantic/ia.el (semantic-ia--fast-jump-helper): Use `pop-to-buffer-same-window' (bug#28645). 2017-09-30 Kaushal Modi Bind vc-region-history * lisp/vc/vc-hooks.el (vc-prefix-map): Bind `vc-region-history' to 'C-x v h', which was earlier bound to `vc-insert-headers' (Bug#27644). * doc/emacs/maintaining.texi (VC Change Log): Mention the new binding. * doc/emacs/vc1-xtra.texi (Version Headers): Remove the association of 'C-x v h' with `vc-insert-headers'. (https://lists.gnu.org/r/emacs-devel/2017-09/msg00957.html) 2017-09-30 Allen Li (tiny change) Exit macro definition on undefined keys * lisp/subr.el (undefined): Error out of kmacro definition, if any. (Bug#28008) 2017-09-30 Tim Landscheidt (tiny change) Reset bidi-paragraph-direction on article rendering * lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): Reset bidi-paragraph-direction on article rendering. (Bug#28454) 2017-09-30 Eli Zaretskii Fix url-http use of url-current-object * lisp/url/url-http.el (url-http): Bind url-current-object before calling url-http-find-free-connection. (Bug#28515) 2017-09-30 Andy Moreton Avoid assertions in vc-hg.el on MS-Windows * lisp/vc/vc-hg.el (vc-hg--pcre-to-elisp-re) (vc-hg--slurp-hgignore, vc-hg--read-repo-requirements) (vc-hg-state-fast): Use file-name-absolute-p and directory-name-p instead of relying on Unix file-name syntax. This avoids assertion violations on MS-Windows. 2017-09-30 Eli Zaretskii Improve documentation of 'copy-sequence' * src/fns.c (Fcopy_sequence): * doc/lispref/sequences.texi (Sequence Functions): Mention the exception when copying an empty sequence. (Bug#28627) 2017-09-30 Eli Zaretskii Minor update of ack.texi * doc/emacs/ack.texi (Acknowledgments): Update Eli Zaretskii's contributions. 2017-09-30 N. Jackson (tiny change) * doc/emacs/emacs.texi (Acknowledgments): Add more contributors. 2017-09-30 Eli Zaretskii Improve indexing of multi-file/buffer Isearch commands * doc/emacs/maintaining.texi (Identifier Search): Change wording of index entries to make them different from those for multi-file isearch commands. (Bug#28584) * doc/emacs/search.texi (Other Repeating Search): Index the multi-* commands. (Bug#28584) Rearrange the indexing to keep each index entry close to its subject. 2017-09-30 Mark Oteiza Add CAM02 JCh and CAM02-UCS J'a'b' conversions * src/lcms.c (rad2deg, parse_jch_list, parse_jab_list, xyz_to_jch): (jch_to_xyz, jch_to_jab, jab_to_jch): New functions. (lcms-jch->xyz, lcms-jch->xyz, lcms-jch->jab, lcms-jab->jch): New Lisp functions. (lcms-cam02-ucs): Refactor. (syms_of_lcms2): Declare new functions. * test/src/lcms-tests.el (lcms-roundtrip, lcms-ciecam02-gold): (lcms-jmh->cam02-ucs-silver): New tests. * etc/NEWS: Mention new functions. 2017-09-30 Eli Zaretskii Fix uses of @kindex in the Emacs manual * doc/emacs/programs.texi (Expressions, Semantic, Hungry Delete): * doc/emacs/mark.texi (Global Mark Ring) (Disabled Transient Mark): * doc/emacs/buffers.texi (Select Buffer): * doc/emacs/mule.texi (File Name Coding): Fix @kindex entries which used @key. Reported by Marcin Borkowski . 2017-09-30 Paul Eggert Merge from gnulib This incorporates: 2017-09-28 string: code style 2017-09-25 sys_types: update URL 2017-09-23 install-sh: do not assume / = // 2017-09-21 mktime: port to OpenVMS * build-aux/install-sh, m4/mktime.m4, m4/string_h.m4: * m4/sys_types_h.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2017-09-30 Paul Eggert Prefer HTTPS to HTTP for gnu.org This catches some URLs I missed in my previous scan, or perhaps were added after the scan. 2017-09-30 Noam Postavsky Wait for frame visibility with timeout in w32term too * src/w32term.c (syms_of_w32term) [x-wait-for-event-timeout]: New variable. (x_make_frame_visible): Wait for frame to become visible according to its value. (input_signal_count): Remove. 2017-09-30 Noam Postavsky Bring back the busy wait after x_make_frame_visible (Bug#25521) But wait specfically for a MapNotify event, and only for a configurable amount of time. * src/xterm.c (syms_of_xterm) [x-wait-for-event-timeout]: New variable. (x_wait_for_event): Use it instead of hardcoding the wait to 0.1s. (x_make_frame_visible): Call x_wait_for_event at the end. * etc/NEWS: Announce x_wait_for_event. 2017-09-29 Eli Zaretskii Fix last doc string change in simple.el * lisp/simple.el (shell-command-saved-pos) (region-extract-function, region-bounds): Doc fixes. (Bug#28609) 2017-09-29 Eli Zaretskii Revert "bug#28609: simple.el" This reverts commit a75ab3b3fb8ab69ef38a94403d061f88f3b5b63e. 2017-09-29 Devon Sean McCullough bug#28609: simple.el Correct grammar; also, call a pair a pair. (cherry picked from commit 25ef543a97a80718cc4eb33734d393420a43f41e) 2017-09-29 Rasmus Merge branch 'emacs-26' into scratch/org-mode-merge 2017-09-29 Noam Postavsky Fix ert backtrace saving for non-`signal'ed errors (Bug#28333) * lisp/emacs-lisp/ert.el (ert--run-test-debugger): Take the frames above the `debugger' frame, rather than assuming there will be a `signal' frame. 2017-09-28 Alan Third Revert "Fix build on macOS (bug#28571)" This reverts commit fec63089d53d2196b0348086aeed70277fbc02c0. Prematurely pushed. 2017-09-28 Alan Third Fix build on macOS (bug#28571) * src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT, HAVE_UTIMENSAT) [DARWIN_OS]: Undefine. 2017-09-28 Simen Heggestøyl Add tests for `css-current-defun-name' * test/lisp/textmodes/css-mode-tests.el (css-test-current-defun-name) (css-test-current-defun-name-nested) (css-test-current-defun-name-complex): New tests for `css-current-defun-name'. 2017-09-28 Martin Rudalics In w32fullscreen_hook don't add decorations to undecorated frames * src/w32term.c (w32fullscreen_hook): Do not add (or try to remove) decorations for undecorated frames. 2017-09-28 João Távora Revert "Split flymake.el into flymake-proc.el and flymake-ui.el" In other words, re-coalesce the two files, lisp/progmodes/flymake-proc.el and lisp/progmodes/flymake-ui.el, back into a single one, lisp/progmodes/flymake.el. The changesets "Prefer HTTPS to FTP and HTTP in documentation" and "allow nil init in flymake-allowed-file-name-masks to disable flymake" are kept in place in the new lisp/progmodes/flymake.el. This reverts Git commit eb34f7f5a29e7bf62326ecb6e693f28878be28cd. Don't merge this back to master as development happening there builds upon this work. See also https://lists.gnu.org/r/emacs-devel/2017-09/msg00932.html. 2017-09-28 João Távora Revert "Add flymake-backends defcustom" This reverts Git commit 13993c46a21495167517f76d2e36b6c09ac5e89e. Don't merge this back to master as development happening there builds upon this work. See also https://lists.gnu.org/r/emacs-devel/2017-09/msg00932.html 2017-09-27 Paul Eggert * src/editfns.c (styled_format): Fix typo in previous change. 2017-09-27 Paul Eggert Avoid some unnecessary copying in Fformat etc. This patch is just for performance; it should not affect behavior. On my platform, it made the microbenchmark (format "%S" load-path) run about 45% faster. It should also speed up calls like (message "%s" STRING). * src/callint.c (Fcall_interactively): * src/dbusbind.c (XD_OBJECT_TO_STRING): * src/editfns.c (Fmessage, Fmessage_box): * src/xdisp.c (vadd_to_log, Ftrace_to_stderr): Use styled_format instead of Fformat or Fformat_message, to avoid unnecessary copying. * src/editfns.c (styled_format): New arg NEW_RESULT. All uses changed. Reuse an input string if it has the right value and if !NEW_RESULT. * src/lisp.h (style_format): New decl. 2017-09-26 John Wiegley lisp/simple.el: Indicate when a list of pairs is meant in a docstring 2017-09-26 Devon Sean McCullough bug#28609: simple.el Correct grammar; also, call a pair a pair. 2017-09-26 Dmitry Gutov Use a separate syntax-ppss cache for narrowed buffers * lisp/emacs-lisp/syntax.el (syntax-ppss-wide): New variable, to contain the data from `syntax-ppss-last' and `syntax-ppss-cache'. (syntax-ppss-cache, syntax-ppss-last): Remove. (syntax-ppss-narrow, syntax-ppss-narrow-start): New variables. (syntax-ppss-flush-cache): Flush both caches. (syntax-ppss--data): Return the appropriate last result and buffer cache for the current restriction. (syntax-ppss, syntax-ppss-debug): Use it (bug#22983). 2017-09-26 Joerg Behrmann (tiny change) Improve python3-compatibility of fallback completion (Bug#28499) * lisp/progmodes/python.el (python-eldoc-setup-code): Use inspect.getfullargspec instead of inspect.getargspec to avoid a deprecation warning on every usage of eldoc in python-mode. 2017-09-26 Noam Postavsky Fix subr-x-tests when running from elc * test/lisp/emacs-lisp/subr-x-tests.el (subr-x-and-let*-test-group-1): Use `eval' around the `should-error' cases. 2017-09-26 Noam Postavsky * lisp/eshell/esh-util.el (eshell-condition-case): Add debug declaration. 2017-09-26 Noam Postavsky Make sh-indentation into an alias for sh-basic-offset (Bug#21751) * lisp/progmodes/sh-script.el (sh-indentation): Redefine as obsolete variable alias for `sh-basic-offset'. (sh-mode, sh-smie--indent-continuation) (sh-smie-rc-rules, sh-basic-indent-line): Replace `sh-indentation' with `sh-basic-offset'. 2017-09-26 Noam Postavsky Fix loading of smie-config rules (Bug#24848) * lisp/emacs-lisp/smie.el (smie-config--setter): Use `set-default' instead of `setq-default'. (smie-config): Use `custom-initialize-set' instead of `custom-initialize-default' as the :initialize argument. * lisp/progmodes/sh-script.el (sh-learn-buffer-indent): Mention that we call `smie-config-guess' so that the user will have a chance to find the correct docstring to consult. Remove hedging comments regarding use of abnormal hooks. 2017-09-26 Dmitry Gutov Reset default-directory inside *xref-grep* buffer * lisp/progmodes/xref.el (xref-collect-matches): Reset default-directory, too. (Bug#28575) 2017-09-25 Michael Albinus * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Special code for smb. 2017-09-25 Mark Oteiza Loosen strict parsing requirement for desktop files There are other desktop-looking files, for instance those having to do with MIME typess, that would benefit from being able to be read by this function. It helps to have some flexibility. * lisp/xdg.el (xdg-desktop-read-file): Remove an error condition. * test/lisp/xdg-tests.el: Remove a test. 2017-09-25 Mark Oteiza * lisp/xdg.el (xdg-thumb-uri): Fix doc string. 2017-09-25 Martin Rudalics Fix documentation of `make-frame' and related variables and hooks * lisp/frame.el (before-make-frame-hook) (after-make-frame-functions, frame-inherited-parameters) (make-frame): Fix doc-strings. * doc/lispref/frames.texi (Creating Frames): Fix description of `make-frame' and related variables and hooks. 2017-09-24 Eric Abrahamsen Accept new `always' value for option `buffer-offer-save' Also revert ee512e9a82 * lisp/files.el (buffer-offer-save): In addition to nil and t, now allows a third symbol value, `always'. A buffer where this option is set to `always' will always be offered for save by `save-some-buffers'. (save-some-buffers): Check the exact value of this buffer-local variable. No longer check the buffer name, or the value of `write-contents-functions'. * doc/lispref/buffers.texi (Killing Buffers): Note change in manual. * doc/lispref/files.texi (Saving Buffers): Remove note about buffer names. * etc/NEWS: Mention in NEWS. 2017-09-24 Alan Third Improve new NS scrolling variable names * src/nsterm.m (ns-use-system-mwheel-acceleration): Replace with 'ns-use-mwheel-acceleration'. (ns-touchpad-scroll-line-height): Replace with 'ns-mwheel-line-height'. (ns-touchpad-use-momentum): Replace with 'ns-use-mwheel-momentum'. * etc/NEWS: Change variable names. 2017-09-24 Philipp Stephani Document 'replace-buffer-contents' in the manual. * doc/lispref/text.texi (Replacing): New node. 2017-09-23 Alan Third Fix undecorated frame resizing issues on NS (bug#28512) * src/nsterm.m (EmacsView::updateFrameSize): Don't wait for the toolbar on undecorated frames. (EmacsView::initFrameFromEmacs): Group window flags correctly. 2017-09-23 Eli Zaretskii Fix doc string of 'dired-listing-switches' * lisp/dired.el (dired-listing-switches): Fix the quoting example. (Bug#28569) 2017-09-23 Eli Zaretskii Documentation improvements for 'display-line-numbers' * doc/emacs/display.texi (Display Custom): Document a few more options for display-line-numbers. (Bug#28533) Fix a typo. 2017-09-22 Eli Zaretskii Fix last change in bat-mode.el * lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fix last change. (Bug#28311) 2017-09-22 Eli Zaretskii Fix restoring in GUI sessions desktop saved in TTY sessions * lisp/frameset.el (frameset-filter-font-param): New function. (frameset-persistent-filter-alist): Use it for processing the 'font' frame parameter. (Bug#17352) 2017-09-22 Eli Zaretskii Improve syntax highlighting in bat-mode * lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Improve font-locking of environment variables. Suggested by Achim Gratz . (Bug#28311) (Bug#18405) 2017-09-22 Eli Zaretskii Document the 'list-FOO' convention * doc/lispref/tips.texi (Coding Conventions): Document the list-FOO convention. 2017-09-22 Mark Oteiza Expose viewing conditions in CAM02-UCS metric Also add tests from the colorspacious library. Finally, catch an errant calculation, where degrees were not being converted to radians. * src/lcms.c (deg2rad, default_viewing_conditions): (parse_viewing_conditions): New functions. (lcms-cam02-ucs): Add comments pointing to references used. Expand the docstring and explain viewing conditions. JCh hue is given in degrees and needs to be converted to radians. (lcms-d65-xyz): Remove. No need to duplicate this in Lisp or make the API needlessly impure. * test/src/lcms-tests.el: Reword commentary. (lcms-rgb255->xyz): New function. (lcms-cri-cam02-ucs): Fix let-binding. (lcms-dE-cam02-ucs-silver): New test, assimilated from colorspacious. 2017-09-21 Alan Third Revert "Set frame size to actual requested size (bug#18215)" This reverts commit d31cd79b40dbd5459b16505a4ee4340210499277. See bug#28536. I misunderstood bug#18215. It wasn't a bug. 2017-09-21 Gemini Lasswell Add tests for Edebug * test/lisp/emacs-lisp/edebug-tests.el: New file. * test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el: New file. 2017-09-21 Gemini Lasswell Catch more messages in ert-with-message-capture * lisp/emacs-lisp/ert-x.el (ert-with-message-capture): Capture messages from prin1, princ and print. (ert--make-message-advice): New function. (ert--make-print-advice): New function. 2017-09-21 Tak Kunihiro Support setting region from secondary selection and vice versa * lisp/mouse.el (secondary-selection-exist-p): New function to allow callers to tell existence of the secondary selection in current buffer. (secondary-selection-to-region): New function to set beginning and end of the region from those of the secondary selection. (secondary-selection-from-region): New function to set beginning and end of the secondary selection from those of the region. (Bug#27530) * etc/NEWS: Mention the new functions. 2017-09-20 Paul Eggert Fix new copy-directory bug with empty dirs Problem reported by Afdam Plaice (Bug#28520) and by Eli Zaretskii (Bug#28483#34). This is another bug that I introduced in my recent copy-directory changes. * lisp/files.el (copy-directory): Work with empty subdirectories, too. * test/lisp/files-tests.el (files-tests--copy-directory): Test for this bug. 2017-09-20 Eli Zaretskii * doc/lispref/strings.texi (Formatting Strings): Improve indexing. 2017-09-20 Eli Zaretskii Fix 2 testsuite tests for MS-Windows * test/lisp/ibuffer-tests.el (test-buffer-list): Don't try to create files with "*" in their names. * test/src/editfns-tests.el (format-time-string-with-zone): Adapt results to MS-Windows build. Reported by Fabrice Popineau . 2017-09-20 Mark Oteiza Rename timer-list to list-timers * doc/emacs/anti.texi (Antinews): * doc/lispref/os.texi (Timers): * etc/NEWS: * lisp/emacs-lisp/timer-list.el: (timer-list-mode): Rename timer-list to list-timers. 2017-09-19 Alan Third Provide native touchpad scrolling on macOS * etc/NEWS: Describe changes. * lisp/term/ns-win.el (mouse-wheel-scroll-amount, mouse-wheel-progressive-speed): Set to smarter values for macOS touchpads. * src/nsterm.m (emacsView::mouseDown): Use precise scrolling deltas to calculate scrolling for touchpads and mouse wheels. (syms_of_nsterm): Add variables 'ns-use-system-mwheel-acceleration', 'ns-touchpad-scroll-line-height' and 'ns-touchpad-use-momentum'. * src/keyboard.c (make_lispy_event): Pass on .arg when relevant. * src/termhooks.h (event_kind): Update comments re. WHEEL_EVENT. * lisp/mwheel.el (mwheel-scroll): Use line count. * lisp/subr.el (event-line-count): New function. 2017-09-19 Eli Zaretskii Fix MinGW64 build broken by recent MinGW64 import libraries * configure.ac (W32_LIBS): Put -lusp10 before -lgdi32, as latest MinGW64 import libraries require that. (Bug#28493) * src/Makefile.in: Adjust commentary to the new order of w32 libraries. 2017-09-19 Eli Zaretskii Fix crashes in 'move-point-visually' in minibuffer windows * src/xdisp.c (Fmove_point_visually): Fix off-by-one error in comparing against the last valid glyph_row of a window glyph matrix. (Bug#28505) 2017-09-19 Eli Zaretskii * src/emacs.c (usage_message): Don't mention 'find-file'. 2017-09-19 Eli Zaretskii Fix a minor inaccuracy in the Emacs manual * doc/emacs/cmdargs.texi (Action Arguments): Don't mention 'find-file', as the implementation has changed. Reported by Everton J. Carpes in https://lists.gnu.org/r/help-gnu-emacs/2017-09/msg00146.html. 2017-09-19 Eli Zaretskii Fix errors in flyspell-post-command-hook * lisp/textmodes/ispell.el (ispell-get-decoded-string): Handle the case of a nil Nth element of the language dictionary slot. This avoids errors in 'flyspell-post-command-hook' when switching dictionaries with some spell-checkers. (Bug#28501) 2017-09-19 Michael Albinus Work on Tramp's file-truename * lisp/net/tramp-sh.el (tramp-perl-file-truename): Check also for symlinks. (tramp-sh-handle-file-truename): Move check for a symlink cycle to the end. Do not blame symlinks which look like a remote file name. * lisp/net/tramp.el (tramp-handle-file-truename): Expand result. 2017-09-19 Paul Eggert Fix bug with make-directory on MS-Windows root * lisp/files.el (files--ensure-directory): Treat any error, not just file-already-exists, as an opportunity to check whether DIR is already a directory (Bug#28508). 2017-09-19 Tom Tromey Fix log-view-diff-common when point is after last entry Bug#28466 * lisp/vc/log-view.el (log-view-diff-common): If point is after last entry, look at the previous revision. 2017-09-18 Ken Brown Adapt fileio-tests--symlink-failure to Cygwin * test/src/fileio-tests.el (fileio-tests--symlink-failure) [CYGWIN]: Skip the case of a symlink target starting with '\'; this is treated specially on Cygwin. 2017-09-18 Eric Abrahamsen Ignore buffers whose name begins with a space in save-some-buffers * lisp/files.el (save-some-buffers): Consider these buffers "internal", and don't prompt the user to save them. * doc/lispref/files.texi: Document. 2017-09-18 Michael Albinus Improve tramp-interrupt-process robustness * lisp/net/tramp.el (tramp-interrupt-process): Wait, until the process has disappeared. 2017-09-18 Michael Albinus Minor Tramp doc update * doc/misc/tramp.texi (Frequently Asked Questions): Mention `vc-handled-backends'. 2017-09-18 Mark Oteiza Fix gensym * lisp/subr.el (gensym): Actually implement the default prefix. * test/lisp/subr-tests.el (subr-tests--gensym): New test. 2017-09-18 Rasmus Update Org to v9.1.1 Please see etc/ORG-NEWS for major changes. 2017-09-18 Michael Albinus Cleanup in files-tests.el * test/lisp/files-tests.el (files-tests--make-directory) (files-tests--copy-directory): Cleanup temporary directories. 2017-09-18 Paul Eggert Remove old cl-assert calls in 'newline' * lisp/simple.el (newline): Remove cl-assert calls that didn't seem to be helping us debug Bug#18913, and that caused problems as reported in Bug#28280. Suggested by Glenn Morris (Bug#28280#8). 2017-09-18 Paul Eggert Avoid crash with C-g C-g in GC Problem reported by Richard Stallman (Bug#17406). Based on fix suggested by Eli Zaretskii (Bug#28279#16). * src/term.c (tty_send_additional_strings): Use only safe accessors, to avoid crash when C-g C-g in GC. 2017-09-18 Paul Eggert Fix format-time-string %Z bug with negative tz * src/editfns.c (tzlookup): Fix sign error in %Z when a purely numeric zone is negative (Bug#28746). * test/src/editfns-tests.el (format-time-string-with-zone): Add test for this bug. 2017-09-18 Paul Eggert message-citation-line-format %Z is now tz name * etc/NEWS: * lisp/gnus/message.el (message-citation-line-format): Fix doc to match new behavior (Bug#28476). 2017-09-18 Mark Oteiza Use doc-view or pdf-tools on any window-system * lisp/net/mailcap.el (mailcap-mime-data): Simply check for window-system. 2017-09-18 Paul Eggert Fix bug with min and max and NaNs * src/data.c (minmax_driver): Fix bug with (min 0 NaN), which mistakenly yielded 0. Also, pacify GCC in a better way. * test/src/data-tests.el (data-tests-min): Test for the bug. 2017-09-17 Paul Eggert Fix recently-introduced copy-directory bug Problem reported by Andrew Christianson (Bug#28451): * lisp/files.el (copy-directory): If COPY-CONTENTS, make the destination directory if it does not exist, even if it is a directory name. Simplify, and omit unnecessary test for an already-existing non-directory target, since make-directory diagnoses that for us now. * test/lisp/files-tests.el (files-tests--copy-directory): Test for this bug. 2017-09-17 Paul Eggert Merge from Gnulib This incorporates: 2017-09-16 manywarnings: port to GCC on 64-bit MS-Windows 2017-09-13 all: Replace many more http URLs by https URLs * build-aux/config.guess, build-aux/config.sub: * build-aux/gitlog-to-changelog, doc/misc/texinfo.tex: * lib/allocator.h, lib/count-leading-zeros.h: * lib/count-trailing-zeros.h, lib/dup2.c, lib/filevercmp.c: * lib/fstatat.c, lib/fsync.c, lib/ftoastr.c, lib/ftoastr.h: * lib/intprops.h, lib/signal.in.h, lib/stdio-impl.h, lib/stdio.in.h: * lib/unistd.in.h, lib/utimens.c, m4/alloca.m4, m4/extern-inline.m4: * m4/fstatat.m4, m4/gnulib-common.m4, m4/manywarnings.m4: * m4/std-gnu11.m4, m4/sys_types_h.m4, m4/vararrays.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2017-09-17 Michael Albinus Fix compatibility problem in Tramp * lisp/net/tramp.el (tramp-interrupt-process): Better error handling. * lisp/net/tramp-compat.el (default-toplevel-value): Move up. (top): Do not call `tramp-change-syntax' anymore. (tramp-compat-directory-name-p): New defalias. * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file): * lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-copy-file): Use it. * test/lisp/net/tramp-tests.el (tramp-test28-interrupt-process): Modify test. 2017-09-17 Eli Zaretskii Avoid GCC 7 compilation warning in eval.c * src/eval.c (push_handler_nosignal): Use CACHEABLE to work around GCC compilation warning. Suggested by Paul Eggert in https://lists.gnu.org/r/emacs-devel/2017-09/msg00492.html. 2017-09-17 Michael Albinus Adapt Tramp version. Do not merge * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.3.3.26.1". (customize-package-emacs-version-alist): Add Tramp version integrated in Emacs 26.1. 2017-09-17 Tom Tromey Search for Syntax section when viewing MDN * lisp/textmodes/css-mode.el (css--mdn-after-render): Also search for "Syntax" section. 2017-09-17 Tom Tromey Allow smerge-keep-current to work for empty hunks Bug#25555 * lisp/vc/smerge-mode.el (smerge-get-current): Allow point to be at match-end. * test/lisp/vc/smerge-mode-tests.el: New file. 2017-09-17 Tom Tromey Call vc-setup-buffer in vc-git-log-{in,out}going Bug#28427: * lisp/vc/vc-git.el (vc-git-log-incoming, vc-git-log-outgoing): Call vc-setup-buffer. 2017-09-17 Stefan Monnier Fix last change to textmodes/page-ext.el * lisp/textmodes/page-ext.el (pages-directory): Make buffer writable while we build it (bug#28431). 2017-09-16 Glenn Morris * test/src/lcms-tests.el (lcms-cri-cam02-ucs): Skip if lcms2 not present. 2017-09-16 Glenn Morris * test/src/lcms-tests.el (lcms-whitepoint): Skip if lcms2 not present. (cherry picked from commit 8081df26911c63aadfce4ee8f6a7223d814baeaf) 2017-09-16 Eli Zaretskii Fix compilation warning in etags.c * lib-src/etags.c (etags_mktmp) [DOS_NT]: Don't dereference a NULL pointer. Reported by Richard Copley . 2017-09-16 Mark Oteiza Add lisp variable lcms-d65-xyz This serves as the default optional argument for functions in this library. * src/lcms.c (lcms-d65-xyz): New variable. (lcms-cam02-ucs): Use it. Use better word in docstring. Fix bug color1 -> color2. * test/src/lcms-tests.el: Add some tests for lcms-cri-cam02-ucs. (lcms-colorspacious-d65): New variable. 2017-09-16 Gemini Lasswell * lisp/emacs-lisp/cl-macs.el (cl-letf): Fix Edebug spec (bug#24765) 2017-09-16 Andy Moreton Avoid MinGW64 compiler warnings in unexw32.c * src/unexw32.c (pDWP) [MINGW_W64]: Define to "16llx" only for the 64-bit build. 2017-09-16 Eli Zaretskii Start emacs-26 release branch * configure.ac: * nt/README.W32: * README: * msdos/sed2v2.inp: Increment Emacs version to 26.0.60. * lisp/cus-edit.el (customize-changed-options-previous-release): Update value to "25.3". 2017-09-16 Alan Mackenzie Cope better with C++ and Objective-C protection keywords in class declarations This fix fixes the fontification of a method inside a class at the time it is typed, when there is a protection keyword clause preceding it. * lisp/progmodes/cc-engine.el (c-forward-keyword-clause): Handle protection keywords. (c-looking-at-decl-block): Avoid scanning forward over protection keyword clauses too eagerly. * lisp/progmodes/cc-langs.el (c-protection-key c-post-protection-token): New lang defconsts and defvars. * lisp/progmodes/cc-mode.el (c-fl-decl-start): When we encounter a protection keyword following a semicolon or brace, move forward over it before attempting to parse a type. 2017-09-16 Eli Zaretskii Fix order of sorted overlays returned by 'overlays-at' * src/buffer.c (Foverlays_at): If SORTED is non-nil, reverse the list of results, to have their order as per the documentation. (Bug#28390) * etc/NEWS: Mention the change in the behavior of overlays-at. 2017-09-16 Eli Zaretskii Disable execution of unsafe Lisp by Enriched Text mode * src/xdisp.c (handle_display_spec): If the display property is wrapped in 'disable-eval' form, disable Lisp evaluation while processing this property. (handle_single_display_spec): Accept new argument ENABLE_EVAL_P. If that argument is false, don't evaluate Lisp while processing display properties. * lisp/textmodes/enriched.el (enriched-allow-eval-in-display-props): New defcustom. (enriched-decode-display-prop): If enriched-allow-eval-in-display-props is nil, wrap the display property with 'disable-eval' to disable Lisp evaluation when the display property is processed for display. (Bug#28350) * lisp/gnus/mm-view.el (mm-inline-text): Re-enable processing of enriched text. * doc/lispref/display.texi (Display Property): Document the 'disable-eval' wrapping of 'display' properties. * doc/emacs/text.texi (Enriched Properties): Document 'enriched-allow-eval-in-display-props'. * etc/NEWS: Describe the security issues with Enriched Text mode and their solution. 2017-09-16 Eli Zaretskii Avoid MinGW64 compilation warning in w32.c * src/w32.c (sys_strerror): Provide a prototype for MinGW64. 2017-09-16 Eli Zaretskii Fix MS-Windows build broken by recent changes in lcms.c * src/lcms.c [WINDOWSNT]: Define types for cmsWhitePointFromTemp and cmsxyY2XYZ function pointers. (init_lcms_functions) [WINDOWSNT]: Load cmsWhitePointFromTemp and cmsxyY2XYZ from liblcms2. (cmsWhitePointFromTemp, cmsxyY2XYZ) [WINDOWSNT]: Redirect to the corresponding function pointers. (Flcms_temp_to_white_point): Minor stylistic changes. Doc fix. (syms_of_lcms2): Defsubr Slcms_temp_to_white_point. 2017-09-16 Eli Zaretskii Avoid GCC 7 compilation warning in data.c * src/data.c (minmax_driver): Use UNINIT to avoid compilation warnings. Reported by Fabrice Popineau . 2017-09-16 Mark Oteiza Add lcms-temp->white-point and initial tests * src/lcms.c (lcms-temp->white-point): New function. * test/src/lcms-tests.el: New file. 2017-09-16 Mark Oteiza Use cl-print in timer list * lisp/emacs-lisp/timer-list.el (timer-list): Use cl-print for handling functions. (timer-list-mode): Capitalize major mode name. Set bidi direction as in tabulated-list-mode. 2017-09-15 Vincent Belaïche Make landscape layout with geometry package rather than a PostScript special. * lisp/calendar/cal-tex.el (cal-tex-preamble): Make 12pt the default class option. (cal-tex-year, cal-tex-cursor-month-landscape): Pass landscape request to `cal-tex-insert-preamble' function call within the class option string. (cal-tex-cursor-month): Don't pass any longer "12pt" argument to `cal-tex-insert-preamble' function, as it is default. (cal-tex-insert-preamble): Suppress landscape and size argument, and replace them by a class-options string argument. Do not insert any longer "\special{landscape}" in case of landscape layout, as the job is made by the geometry package. 2017-09-15 Mark Oteiza * lisp/json.el (json-read-keyword): Revert previous change to catch EOL. 2017-09-15 Eli Zaretskii One more attempt to avoid GCC 7 warnings in dispnew.c * src/dispnew.c (adjust_glyph_matrix): Use eassume instead of eassert, to avoid compilation warnings about NULL pointer dereferences. 2017-09-15 Mark Oteiza Fix color-distance docstring Also feed the translated color to the metric argument. * src/xfaces.c (color-distance): Reword docstring to be more helpful. Avoid duplicating effort in lcms2 by passing the translated 16 bit RGB instead of the function's color arguments. 2017-09-15 Michael Albinus Improve Tramp behavior according to bug#27986 * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file): * lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-copy-file): Check, that NEWNAME is a directory name when existing. Use `file-name-as-directory' where appropriate. 2017-09-15 Mark Oteiza More JSON optimization Last I checked, inlining json-skip-whitespace didn't make much difference. However, changing defsubsts to define-inline results in roughly 15% reduction in read time on a 200K file. * lisp/json.el (json-advance, json-peek, json-pop): (json-skip-whitespace): Inline with define-inline. (json-read-keyword): Don't use whitespace syntax. (json-add-to-object): Simpler condition. 2017-09-15 Eli Zaretskii Avoid crashes due to invalid error forms from sentinels/filters * src/process.c (exec_sentinel_error_handler): Make sure the error form passed to cmd_error_internal is a cons cell. (Bug#28430) 2017-09-15 Eli Zaretskii Avoid compilation warnings with GCC 7 on MS-Windows * src/w32term.c (w32_setup_relief_color, construct_mouse_click) (w32_read_socket): Initialize variables to shut up bogus compilation warnings from GCC 7. * src/unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Cast to DWORD_PTR to avoid compiler warnings about printing signed values using %x format spec. * src/dispnew.c (adjust_glyph_matrix): Add eassert to avoid compiler warning about possible NULL pointer dereference. * src/lisp.h (pI): Tweak the definition some more for MinGW64. 2017-09-15 Martin Rudalics Define gnutls_rnd for WINDOWSNT and HAVE_GNUTLS3 case only * src/fns.c (gnutls_rnd): Define for WINDOWSNT and HAVE_GNUTLS3 case only to avoid unused macros warning otherwise. 2017-09-15 Martin Rudalics In w32heap.c bump up DUMPED_HEAP_SIZE * src/w32heap.c (DUMPED_HEAP_SIZE): Bump up DUMPED_HEAP_SIZE to 13*1024*1024 for 32-bit non-wide-integer builds. 2017-09-15 Mark Oteiza Bind n,p in timer-list * lisp/emacs-lisp/timer-list.el (timer-list-mode-map): Bind n and p to next- and previous-line, respectively. 2017-09-14 Glenn Morris * lisp/net/tls.el (tls-program): Fix :version. 2017-09-14 Eli Zaretskii * configure.ac (--with-lcms2, --without-lcms2): New options. 2017-09-14 Eli Zaretskii Avoid 64-bit compilation warnings in unexw32.c * src/unexw32.c (pDWP): New macro. (COPY_CHUNK, COPY_PROC_CHUNK): Declare 'count' as DWORD_PTR. Use pDWP for printing values that can be either 32-bit or 64-bit wide. 2017-09-14 Eli Zaretskii Fix warnings about formats in printf-like functions on MS-Windows * src/lisp.h (pI) [__MINGW32__]: Provide definition that will hopefully DTRT with both MinGW64 and mingw.org's MinGW. See https://lists.gnu.org/r/emacs-devel/2017-09/msg00171.html for the details. * src/conf_post.h (PRINTF_ARCHETYPE) [MINGW_W64]: Separate definition specific to MinGW64. (PRINTF_ARCHETYPE) [__MINGW32__]: For mingw.org's MinGW, use __mingw_printf__ in ANSI-compatible mode. 2017-09-14 Eli Zaretskii Support lcms2 in MS-Windows builds * lisp/term/w32-win.el (dynamic-library-alist): Include association for the lcms2 library. * src/lcms.c [WINDOWSNT]: Include windows.h and w32.h. Use DEF_DLL_FN to define pointers to dynamically loaded lcms2 functions. (cmsCIE2000DeltaE, cmsCIECAM02Init, cmsCIECAM02Forward) (cmsCIECAM02Done): New macros. (init_lcms_functions, Flcms2_available_p): New functions. (Flcms_cie_de2000, Flcms_cam02_ucs) [WINDOWSNT]: Call init_lcms_functions. (syms_of_lcms2): Defsubr lcms2-available-p. * src/w32fns.c (syms_of_w32fns): DEFSYM Qlcms2. * configure.ac: Include lcms2 in the final report and in emacs_config_features. * nt/INSTALL: * nt/INSTALL.W64: Update with the information about lcms2 library. 2017-09-14 Paul Eggert Port renameat_noreplace to openSUSE 12.3 Problem reported by M. Nomiya in: https://lists.gnu.org/r/emacs-devel/2017-09/msg00363.html * src/sysdep.c (renameat_noreplace): Call renameat2 only if CYGWIN. 2017-09-14 Paul Eggert Prefer HTTPS to FTP and HTTP in documentation Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now. 2017-09-14 Paul Eggert Prefer HTTPS to HTTP for gnu.org This patch just changes code files; a followup companion patch (much larger) will affect the commentary. This part is separated out to make it easier to review. * .dir-locals.el (change-log-mode): * lisp/org/org-info.el (org-info-other-documents) (org-info-map-html-url): * lisp/org/ox-html.el (org-html-creator-string): * lisp/startup.el (fancy-startup-text, fancy-about-text) (fancy-splash-head): * test/lisp/ffap-tests.el (ffap-other-window--bug-25352): * test/lisp/thingatpt-tests.el (thing-at-point-test-data): Use HTTPS instead of HTTP. 2017-09-13 Simen Heggestøyl Add tests for color.el * lisp/color.el (color-name-to-rgb, color-complement): Clarify in docstrings that RGB triplets should use four digits per component. (color-rgb-to-hsl): Break line to avoid "Hidden behind deeper element" warning. * test/lisp/color-tests.el: New file. 2017-09-13 Lars Ingebrigtsen Make gnutls-verify-error work again with url-retrieve-synchronously * lisp/url/url-gw.el (url-open-stream): Only use :nowait if we're doing async connections (bug#26835). * lisp/url/url-parse.el (url): Add an asynchronous slot. * lisp/url/url.el (url-asynchronous): New variable. (url-retrieve-internal): Store the value. (url-retrieve-synchronously): Bind the variable. 2017-09-13 Michael Albinus Improve backward compatibility of tramp-tests * test/lisp/net/tramp-tests.el (seq): Don't require. (tramp--test-emacs26-p): New defun. (tramp-test10-write-region, tramp-test11-copy-file) (tramp-test12-rename-file, tramp-test15-copy-directory) (tramp-test21-file-links): Use it. (tramp-test16-file-expand-wildcards): Use `copy-sequence'. 2017-09-13 Michael Albinus * lisp/net/trampver.el (customize-package-emacs-version-alist): Add Tramp version integrated in Emacs 25.3. 2017-09-13 Mark Oteiza Add clarification to if-let* docstring Also make its behavior consistent with and-let* in that empty bindings results in success, not failure. * lisp/emacs-lisp/subr-x.el: Edit docstring, change else to then. 2017-09-13 Lars Ingebrigtsen Make fully qualified domain names more fully qualified * lisp/gnus/message.el (message-make-fqdn): Don't try to use a system-name without any periods as a fully qualified domain name. 2017-09-13 Paul Eggert Remove unused file lib/getopt_.h * lib/getopt_.h: Remove. It was renamed to lib/getopt.in.h etc. on 2011-01-08, but I forgot to remove the old file. 2017-09-13 Mark Oteiza Remove "baroque" use of prefix argument from gensym 'cl-gensym' was simply moved here, but let us take an opportunity to shed some historical baggage. * lisp/subr.el (gensym): Remove special treatment of PREFIX as a number. Use "g" as prefix to differentiate from cl-gensym defaults. * doc/lispref/symbols.texi (Creating Symbols): Update accordingly. * lisp/emacs-lisp/cl-macs.el (cl--gensym-counter, cl-gensym): Restore. 2017-09-13 Mark Oteiza Provide an lcms2 feature * src/lcms.c (syms_of_lcms2): Provide "lcms2". 2017-09-13 Mark Oteiza Add lcms2 interface configure.ac: Add boilerplate for configuring and detecting liblcms2. etc/NEWS: Mention new configure option and color-distance change. src/Makefile.in: Add references to lcms.c and liblcms. src/emacs.c: Define lcms2 symbols. src/lcms.c: New file. src/lisp.h: Add declaration for lcms2. src/xfaces.c: Add optional METRIC argument. 2017-09-13 Mark Oteiza Add other D series white points and some simple conversions * lisp/color.el (color-d75-xyz, color-d55-xyz, color-d50-xyz): New constants. (color-xyz-to-xyy, color-xyy-to-xyz, color-lab-to-lch): (color-lch-to-lab): New functions. 2017-09-13 Mark Oteiza Permit non-integral color gradients * lisp/color.el (color-gradient): Float the step-number. 2017-09-13 Katsumi Yamaoka Protect against malformed MIME messages that cause inf-loop (bugfix) * lisp/gnus/gnus-art.el (gnus-article-mime-handles): Protect against malformed MIME messages that cause inf-loop. 2017-09-13 Paul Eggert Merge from Gnulib This incorporates: 2017-09-13 all: prefer https: URLs This just changes http: to https: in comments, in files copied from Gnulib. 2017-09-13 Dmitry Gutov Call vc-resynch-buffer in vc-git-resolve-when-done * lisp/vc/vc-git.el (vc-git-resolve-when-done): Call vc-resynch-buffer on the current file (bug#28121). Move its autoload to before this function. 2017-09-13 Eric Abrahamsen Allow write-contents-functions to short-circuit buffer save Bug#28412 * lisp/files.el (basic-save-buffer): Re-arrange function so that write-contents-functions are run earlier. If they return non-nil, consider the buffer saved without requiring the buffer to be visiting a file. (save-some-buffers): This function should consider any buffer with a buffer-local value for write-contents-functions eligible for saving. * test/lisp/files-tests.el (files-test-no-file-write-contents): New test. * doc/lispref/files.texi (Saving Buffers): Mention in docs. * etc/NEWS: And in NEWS. 2017-09-12 Paul Eggert * etc/NEWS.25: Copy from emacs-25 etc/NEWS. 2017-09-12 Paul Eggert Less chatter for ’make info/dir’ * Makefile.in (${srcdir}/info/dir): Tweak shell command so that an ordinary make says just "GEN info/dir" rather than also having a seemingly-unrelated mv line. 2017-09-12 Paul Eggert Tweak Gnus doc re gnus-copy-file * doc/misc/gnus.texi (Saving Articles): Document behavior with directory name targets (Bug#27986). Problem reported by Katsumi Yamaoka in: https://lists.gnu.org/r/emacs-devel/2017-09/msg00216.html 2017-09-12 Mark Oteiza Update uses of if-let and when-let * lisp/dom.el (dom-previous-sibling): * lisp/emacs-lisp/package.el (package--with-work-buffer): (package--sort-deps-in-alist, package--sort-by-dependence): (package-install-from-archive, package-install): (package-menu-execute, package-menu--populate-new-package-list): * lisp/filenotify.el (file-notify--rm-descriptor): (file-notify--event-watched-file, file-notify--event-file-name): (file-notify--event-file1-name, file-notify-rm-watch): (file-notify-valid-p): * lisp/gnus/message.el (message-toggle-image-thumbnails): * lisp/gnus/nnimap.el (nnimap-request-move-article): * lisp/ibuf-ext.el (ibuffer-repair-saved-filters): * lisp/mpc.el (mpc-format): * lisp/net/eww.el (eww-tag-meta, eww-process-text-input): (eww-save-history): * lisp/net/shr.el (shr-tag-base, shr-tag-object, shr-make-table-1): * lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook): * lisp/svg.el (svg-remove): * lisp/textmodes/css-mode.el (css--named-color): (css--colon-inside-funcall): * lisp/textmodes/sgml-mode.el (html-current-buffer-classes): (html-current-buffer-ids): Use if-let* and when-let* instead. 2017-09-12 Mark Oteiza Implement and-let* This also includes changes to if-let and when-let. The single tuple special case is ambiguous, and binding a symbol to nil is not as useful as binding it to its value outside the lexical scope of the binding. (Bug#28254) * etc/NEWS: Mention. * lisp/emacs-lisp/subr-x.el (internal--listify): (internal--build-binding-value-form): Extend to account for solitary symbols and (EXPR) items in binding varlist. (if-let*, when-let*): Nix single tuple case and incumbent bind-symbol-to-nil behavior. (and-let*): New macro. (if-let, when-let): Mark obsolete. Redefine in terms of if-let*, so they implicitly gain the new features without breaking existing code. * test/lisp/emacs-lisp/subr-x-tests.el: Adjust tests for: lack of single-tuple special case, lack of binding solitary symbols to nil, and the introduction of uninterned symbols for (EXPR) bindings. Add SRFI-2 test suite adapted to Elisp. 2017-09-12 Eli Zaretskii Fix minor typos in the Emacs manual * doc/emacs/text.texi (Org Organizer): * doc/emacs/ack.texi (Acknowledgments): Fix spelling of Org nodes. 2017-09-12 Paul Eggert Merge Emacs 25.3 fixes The security patches released for Emacs 25.3 were less drastic than what we had immediately put into master. Adjust master to match 25.3 (Bug#28350). * lisp/textmodes/enriched.el (enriched-translations): Re-enable FUNCTION and display translations that are safe. (enriched-handle-display-prop): Bring back. (enriched-decode-display-prop): Bring back, but disable the unsafe part. 2017-09-12 Alan Mackenzie Don't match C++ template delims starting within a token. FIxes bug #28418. * lisp/progmodes/cc-engine.el (c-restore-<>-properties): After failing an attempted match from the start of a token (in particular, "<<"), move to the next token rather than the nex character before searching for the next "<". 2017-09-12 Mark Oteiza Move gensym to core Elisp * doc/lispref/symbols.texi (Creating Symbols): Mention gensym right after make-symbol. * etc/NEWS: Mention. * lisp/emacs-lisp/cl-macs.el (cl--gensym-counter): Alias to gensym-counter. (cl-gensym): Alias to gensym. * lisp/emacs-lisp/cl.el: Remove gensym from list of aliases. * lisp/emacs-lisp/edebug.el (edebug-make-enter-wrapper): * lisp/emacs-lisp/ert-x.el (ert-with-message-capture): (ert--expand-should-1, ert--expand-should): (ert--should-error-handle-error): * lisp/emacs-lisp/generator.el (cps--gensym): * lisp/emacs-lisp/gv.el (setf): * lisp/emacs-lisp/inline.el (inline--do-letlisteval): * lisp/emacs-lisp/pcase.el (pcase--make-docstring, pcase-dolist): (pcase--funcall, pcase--u1): Use gensym. * lisp/subr.el (gensym-counter): New variable. (gensym): New function, assimilated from cl-lib. 2017-09-12 Mark Oteiza Fix cl-gentemp * lisp/emacs-lisp/cl-macs.el (cl--gentemp-counter): New variable. (cl-gentemp): Use it. Change prefix to "T". 2017-09-12 Sam Steingold gnus-score-file-name: Do not append empty suffix. 2017-09-12 Michael Albinus Extend tramp-tests according to bug#27986 * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file, tramp-test15-copy-directory) (tramp-test21-file-links): Extend tests. (tramp-test13-make-directory, tramp-test14-delete-directory): Specifiy error symbol in `should-error'. 2017-09-12 Mark Oteiza Add cl-print method for hash tables * lisp/emacs-lisp/cl-print.el (cl-print-object): New method. 2017-09-12 Mark Oteiza Add docstrings to cl-print entry points * lisp/emacs-lisp/cl-print.el (cl-print-compiled): Fix docstring. (cl-prin1, cl-prin1-to-string): Add docstrings. 2017-09-12 Glenn Morris Improve reproducibility of generated leim-list.el * lisp/international/quail.el (quail-update-leim-list-file): Sort the quail directory listing, for more stable output. 2017-09-11 Mark Oteiza Include sxhash of object with printed bytecode This printing, while succint, is rather opaque. At least give an immediate clue of whether different byte code printouts are for the same or different byte code objects. * lisp/emacs-lisp/cl-print.el (cl-print-object): Add object sxhash to printed token "#". 2017-09-11 Eli Zaretskii Update documentation of 'max-lisp-eval-depth' * doc/lispref/eval.texi (Eval): Update the documented default value of 'max-lisp-eval-depth'. 2017-09-11 Eli Zaretskii Another place to produce debugging output in etags * lib-src/etags.c (Ruby_functions): One more place to print debugging output under --debug. 2017-09-11 Eli Zaretskii Improve documentation of etags-related features * doc/emacs/maintaining.texi (Looking Up Identifiers): Document 'xref-prompt-for-identifier'. (Bug#28403) (Etags Regexps): Document \D back references in etags regexps. 2017-09-11 Alan Third Fix macOS compatibility versions for vibrant dark theme (bug#28415) * src/nsterm.m (ns_set_appearance, EmacsView::initFrameFromEmacs): Change macOS compatibility from 10.9 to 10.10. 2017-09-11 Michael Albinus Further optimization in Tramp's file name decomposition * lisp/net/tramp.el (tramp-syntax): Recompute all file name components. Call `custom-set-variables' after loading. (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-build-file-name-regexp) (tramp-build-completion-file-name-regexp): New defuns. (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-file-name-regexp) (tramp-completion-file-name-regexp): Convert defuns into defvars. (tramp-prefix-regexp-alist) (tramp-postfix-method-regexp-alist) (tramp-prefix-ipv6-regexp-alist) (tramp-postfix-ipv6-regexp-alist) (tramp-postfix-host-regexp-alist) (tramp-remote-file-name-spec-regexp-alist): Remove. (tramp-build-remote-file-name-spec-regexp) (tramp-build-file-name-structure): Simplify. (tramp-completion-file-name-regexp-alist): New defconst. (tramp-tramp-file-p, tramp-dissect-file-name) (tramp-make-tramp-file-name) (tramp-completion-make-tramp-file-name) (tramp-rfn-eshadow-update-overlay-regexp) (tramp-register-file-name-handlers) (tramp-completion-handle-file-name-all-completions) (tramp-completion-dissect-file-name, tramp-clear-passwd): * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered) (tramp-compute-multi-hops): Use variables but functions for file name components. * test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion): Use variables but functions for file name components. 2017-09-11 Paul Eggert Port tramp-tests to new copy-directory behavior * test/lisp/net/tramp-tests.el (tramp-test15-copy-directory): Use directory name as arg for copy-directory when we want the special behavior. 2017-09-11 Paul Eggert Adjust thumbs to new rename-file behavior * etc/NEWS: Mention this. * lisp/thumbs.el (thumbs-rename-images): Treat the destination as special only if it is a directory name. When there is a marked list, turn the destination into a directory name if it is not already. 2017-09-11 Paul Eggert Adjust ob-tangle to new copy-file behavior * lisp/org/ob-tangle.el (org-babel-tangle-publish): Port to new copy-file behavior. 2017-09-11 Paul Eggert Make gnus-copy-file act like copy-file etc. * etc/NEWS: Mention this. * lisp/gnus/gnus-util.el (gnus-copy-file): Treat the destination as special only if it is a directory name. 2017-09-11 Paul Eggert Make write-file act like copy-file etc. Change write-file to be consistent with the new behavior of copy-file, etc. * etc/NEWS: Mention this. * lisp/files.el (write-file): Treat the destination as special only if it is a directory name. 2017-09-11 Paul Eggert Make copy-directory act like copy-file etc. Do the special dance with the destination only if it is a directory name, for consistency with copy-file etc. (Bug#27986). * doc/emacs/files.texi (Copying and Naming): * doc/lispref/files.texi (Create/Delete Dirs): * etc/NEWS: Document this. * lisp/files.el (copy-directory): Treat NEWNAME as special only if it is a directory name. 2017-09-11 Paul Eggert Fix some make-directory bugs * lisp/files.el (files--ensure-directory): New function. (make-directory): Use it to avoid bugs when (make-directory FOO t) is invoked on a non-directory, or on a directory hierarchy that is being built by some other process while Emacs is running. * test/lisp/files-tests.el (files-tests--make-directory): New test. 2017-09-11 Paul Eggert Fix race with rename-file etc. with dir NEWNAME This changes the behavior of rename-file etc. slightly. The old behavior mostly disagreed with the documentation, and had a race condition bug that could allow attackers to modify victims' write-protected directories (Bug#27986). * doc/lispref/files.texi (Changing Files): Document that in rename-file etc., NEWFILE is special if it is a directory name. * etc/NEWS: Document the change in behavior. * src/fileio.c (directory_like): Remove. All uses removed. (expand_cp_target): Test only whether NEWNAME is a directory name, not whether it is currently a directory. This avoids a race. (Fcopy_file, Frename_file, Fadd_name_to_file, Fmake_symbolic_link): Document behavior if NEWNAME is a directory name. (Frename_file): Simplify now that the destdir behavior occurs only when NEWNAME is a directory name. * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file, tramp--test-check-files): Adjust tests to match new behavior. 2017-09-10 Eli Zaretskii Extend --debug printouts in etags * lib-src/etags.c (regex_tag_multiline, readline): Under "--debug", print tags found via regexps. 2017-09-10 Eli Zaretskii Add --debug option to etags * lib-src/etags.c (make_tag): Print found tags under --debug. (longopts): Add --debug. 2017-09-10 Paul Eggert Spelling fixes * lisp/progmodes/cc-langs.el: (c-ambiguous-overloadable-or-identifier-prefixes): Rename from c-ambiguous-overloadable-or-identifier-prefices. Caller changed. 2017-09-10 Paul Eggert Merge from gnulib This incorporates: 2017-09-08 stddef: Avoid conflict with system-defined max_align_t 2017-08-24 warnings: fix compilation with old autoconf 2017-08-23 glob: merge from glibc with Zanella glob changes 2017-08-17 random: Fix test compilation failure on Cygwin 1.5.25 * doc/misc/texinfo.tex, lib/flexmember.h, lib/stddef.in.h: * lib/stdlib.in.h, m4/manywarnings.m4, m4/stdlib_h.m4: * m4/warnings.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2017-09-10 Ken Brown Implement renameat_noreplace on recent Cygwin * src/sysdep.c [CYGWIN]: Include cygwin/fs.h. (renameat_noreplace) [RENAME_NOREPLACE]: Use renameat2. (Bug#27986) 2017-09-10 Eli Zaretskii Avoid warnings about file names in autoloads on MS-Windows * configure.ac (srcdir) [mingw32]: Downcase the drive letter, to avoid warnings from find-file-noselect when making autoloads. For the details, see https://lists.gnu.org/r/emacs-devel/2017-09/msg00049.html. 2017-09-10 Mark Oteiza Avoid looking at localized strings * lisp/xdg.el (xdg-desktop-read-group): Add condition to catch localized strings. * test/lisp/xdg-tests.el (xdg-desktop-parsing): Add test to ensure parsing l10n strings doesn't error but is essentially a no-op. 2017-09-10 Paul Eggert * etc/NEWS.25: Document 25.3 changes. 2017-09-10 Lars Ingebrigtsen Remove unsafe enriched mode translations * lisp/gnus/mm-view.el (mm-inline-text): Do not worry about enriched or richtext type. * lisp/textmodes/enriched.el (enriched-translations): Remove translations for FUNCTION, display (Bug#28350). (enriched-handle-display-prop, enriched-decode-display-prop): Remove. 2017-09-09 Paul Eggert Be more consistent about "directory name" in manual This clarifies the documentation, partly in response to the discussion in Bug#27986. 2017-09-09 Eli Zaretskii Remove more compilation warnings in MinGW64 build * src/w32.c (faccessat, map_w32_filename): * src/w32fns.c (w32_wnd_proc): * src/w32term.c (w32_horizontal_scroll_bar_handle_click) (w32_scroll_bar_handle_click): Use FALLTHROUGH to avoid compiler warnings with GCC 7 and later. 2017-09-09 Paul Eggert Improve --enable-gcc-warnings for MinGW64 This partially reverts my 2016-05-30 patch. Apparently MinGW64 still requires pacifications that GCC 7.1.1 x86-64 (Fedora 26) does not. Also, pacify tparam.c, which isn’t used on Fedora. * lib-src/etags.c (process_file_name, TeX_commands): * src/buffer.c (fix_overlays_before): * src/data.c (Fmake_variable_buffer_local, cons_to_unsigned) (cons_to_signed): * src/editfns.c (Ftranslate_region_internal): Prefer UNINIT to some stray value, as this simplifies code-reading later. * src/eval.c (CACHEABLE): New macro. (internal_lisp_condition_case): Use it. * src/tparam.c (tparam1): Use FALLTHROUGH to pacify GCC. 2017-09-09 Eli Zaretskii Fix font-lock in Compilation mode * lisp/progmodes/compile.el (compilation-face): Restore function lost during recent changes. (Bug#28349) 2017-09-09 Mark Oteiza Add function to read all entries in a group Use that to extend xdg-desktop-read-file. Also fix a bug where all entries in all groups were read and returned by xdg-desktop-read-file. * lisp/xdg.el (xdg-desktop-read-group): New function. (xdg-desktop-read-file): Use it. * test/data/xdg/malformed.desktop: New file. * test/data/xdg/test.desktop: Add another section. * test/lisp/xdg-tests.el (xdg-desktop-parsing): Test presence of a key in another group. Test reading a prescribed group. Test detecting a malformed key=value. 2017-09-09 Gemini Lasswell Reduce Tramp's memory usage Construct Tramp syntax strings and regular expressions once instead of every time they are used, and store them in alists keyed by Tramp syntax. * lisp/net/tramp.el (tramp-build-remote-file-name-spec-regexp) (tramp-build-file-name-structure): New functions. (tramp-prefix-format-alist, tramp-prefix-regexp-alist) (tramp-method-regexp-alist) (tramp-postfix-method-format-alist) (tramp-postfix-method-regexp-alist) (tramp-prefix-ipv6-format-alist, tramp-prefix-ipv6-regexp-alist) (tramp-postfix-ipv6-format-alist) (tramp-postfix-ipv6-regexp-alist) (tramp-postfix-host-format-alist) (tramp-postfix-host-regexp-alist) (tramp-remote-file-name-spec-regexp-alist) (tramp-file-name-structure-alist): New constants. (tramp-lookup-syntax): New function. (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): Use it. 2017-09-09 Eli Zaretskii Fix compilation warnings in MinGW64 build using GCC 7 Reported by Richard Copley . * src/w32heap.c (init_heap): Declare enable_lfh only for mingw.org's MinGW build. * src/w32console.c (w32con_write_glyphs): * src/unexw32.c (get_section_info, COPY_CHUNK, unexec): Fix some mismatches of data type vs format spec. * src/w32fns.c (compute_tip_xy): * src/w32proc.c (stop_timer_thread): * src/w32notify.c (remove_watch): * src/eval.c (internal_lisp_condition_case): * src/editfns.c (Ftranslate_region_internal): * src/data.c (Fmake_variable_buffer_local, cons_to_unsigned) (cons_to_signed): * src/buffer.c (fix_overlays_before): Initialize variables to avoid compiler warnings. * lib-src/etags.c (TeX_commands, process_file_name): Initialize variables to avoid compilation warnings. 2017-09-09 Eli Zaretskii Avoid infloop when scrolling under scroll-preserve-screen-position * src/window.c (window_scroll_pixel_based): If screen position is to be preserved, make sure its recorded Y coordinate is outside the scroll margin. (Bug#28342) 2017-09-09 Michael Albinus Clarification in tramp-texi * doc/misc/tramp.texi (Connection caching): Two connections are regarded as different now when they differ in the port number only. 2017-09-09 Miles Bader * admin/quick-install-emacs: Tweak configure.ac parsing 2017-09-09 Miles Bader Use text-property buttons in rcirc-markup-urls * lisp/net/rcirc.el (rcirc-markup-urls): Use `make-text-button' instead of `make-button'; the former is much more efficient in large buffers, and for the purposes of rcirc, changes no functionality. 2017-09-08 Eli Zaretskii Fix line-pixel-height for lines of variable height * src/xdisp.c (Fline_pixel_height): Start moving from the beginning of the screen line, to capture the full metrics of the line. (Bug#28391) 2017-09-08 Alex Branham (tiny change) New variable 'dired-confirm-killing-deleted-buffers' * lisp/dired-x.el (dired-clean-confirm-killing-deleted-buffers): New variable. * lisp/dired.el (dired-clean-up-after-deletion): Kill buffers visiting deleted files without confirming if dired-clean-confirm-killing-deleted-buffers is nil. (Bug#28373) * etc/NEWS: Document the change. 2017-09-08 Alfred M. Szmidt (tiny change) Support SVN files with svn:externals property * lisp/vc/vc-svn.el (vc-svn-parse-status): Don't ignore files marked with the svn:externals property. 2017-09-08 Alfred M. Szmidt (tiny change) List locally removed files in vc-dir with SVN back-end * lisp/vc/vc-svn.el (vc-svn-after-dir-status): List files marked with ?! as needs-update. 2017-09-08 Ken Olum Fix Rmail editing with reapplying encoding to message body * lisp/mail/rmailedit.el (rmail-cease-edit): If no content-type in edited headers, look for one in original headers and add it to edited headers. (Bug #26918) Use a marker to track start of new body, so that content-transfer-encoding gets applied only to body. (Bug #27353). Ensure blank line at end of message after encoding, not before. 2017-09-08 Eli Zaretskii Document last change in dired.el * etc/NEWS (Dired): Document the last change in dired.el. (Bug#27435) 2017-09-08 Tak Kunihiro Make mouse clicks in Dired more customizable * lisp/dired.el (dired-mouse-find-file): Allow callers to specify functions to visit file/directory. (dired-mouse-find-file-other-window) (dired-mouse-find-file-other-frame): New functions to visit files in another window/frame. (Bug#27435) 2017-09-08 Eli Zaretskii Avoid compiler warnings on MS-Windows with GCC 6 and 7 * src/w32font.c (SUBRANGE): Use unsigned arithmetic for bit-shifting, to avoid compiler warnings. (w32font_text_extents): Tell GCC NGLYPHS is non-negative, to avoid a warning. For details of the warning, see https://lists.gnu.org/r/emacs-devel/2017-09/msg00093.html. * src/term.c (keys) [WINDOWSNT]: Don't define, as it is not used in that build. * src/sound.c (sound_perror): Ifdef away on WINDOWSNT, as this function is not used in that build. * configure.ac: Disable -Wsuggest-attribute=format on MS-Windows. 2017-09-08 Eli Zaretskii Fix 'directory-file-name' on DOS_NT systems as well * src/fileio.c (directory_file_name) [DOS_NT]: Fix the DOS_NT case to be consistent with last change. * test/src/fileio-tests.el (fileio-tests--odd-symlink-chars): Disable on MS-Windows. (fileio-tests--directory-file-name-dos-nt) (fileio-tests--file-name-as-directory-dos-nt): New tests. 2017-09-08 Wilson Snyder Fix various verilog-mode.el issues. * lisp/progmodes/verilog-mode.el (verilog-expand-dirnames): Fix expanding "*/*", msg2284. Reported by Jonathan Ferguson. (ignore-errors): Fix ignore-errors error on Emacs 22.3, bug1177. Reported by Victor Lau. (verilog-getopt, verilog-getopt-file) (verilog-library-flags, verilog-substitute-file-name-path): Support -F in verilog getopt files, bug1171. Reported by George Cuan. (verilog-do-indent): Fix misindenting symbols starting with t, bug1169. Reported by Hoai Tran. (verilog-read-auto-template-middle): Fix slow template matching on AUTOINST. Reported by Jeffrey Huynh. (verilog-pretty-expr): The extra whitespace addition before "=" operators is now done only if the whole assignment block contains the 2-character "<=" operator. Remove the unused argument _myre. Use `unless', `save-excursion' and `when' functions where possible. Internal variables refactored for clarity. Follow elisp convention for closing parentheses. By Kaushal Modi. (verilog-get-lineup-indent-2): Update docstring. Internal variables refactored for clarity. Earlier EDPOS argument was expected to be a marker; it is now renamed to END and is now expected to be a position. Use `when' instead of `if'. By Kaushal Modi. (electric-verilog-terminate-line): Remove the unused second argument from `verilog-pretty-expr' call. By Kaushal Modi. (verilog-calc-1): Fix indentation of a virtual class definition after a typedef class, bug1080. By Kaushal Modi. 2017-09-08 Katsumi Yamaoka Don't use summary window to visit group buffer (bugfix) * lisp/gnus/gnus-sum.el (gnus-summary-jump-to-group): Make sure that the window to open the group buffer doesn't visit the summary buffer. This fixes a bug: `gnus-summary-next-article' sometimes causes an error by trying to select nonexistent summary window. 2017-09-08 Paul Eggert Fix bug: (directory-file-name "///") returned "//" * src/fileio.c (directory_file_name): For "///" and longer, return "/", not "//", as per POSIX. * test/src/fileio-tests.el (fileio-tests--directory-file-name) (fileio-tests--file-name-as-directory): New tests. 2017-09-08 Paul Eggert Remove obsolete vc-mistrust-permissions doc * doc/emacs/vc1-xtra.texi (RCS and SCCS): Remove documentation for vc-mistrust-permissions, which no longer exists. 2017-09-07 Alan Third Set frame size to actual requested size (bug#18215) * src/nsterm.m (x_set_window_size): Don't use FRAME_TEXT_TO_PIXEL_WIDTH or FRAME_TEXT_TO_PIXEL_HEIGHT. 2017-09-07 Paul Eggert autogen.sh: omit bogus chatter if no .git Problem reported by Angelo Graziosi in: https://lists.gnu.org/r/emacs-devel/2017-09/msg00045.html * autogen.sh (git_config): Do not execut 'git' if $do_git fails. 2017-09-07 Glenn Morris Skip emacsclient tests if --enable-profiling was used * test/lib-src/emacsclient-tests.el (emacsclient-test-call-emacsclient): Make it a macro. Handle "Profiling timer expired" return from emacsclient. (Bug#28319) (emacsclient-test-alternate-editor-allows-arguments) (emacsclient-test-alternate-editor-allows-quotes): Update for above. 2017-09-06 Eli Zaretskii Fix a minor markup problem in ELisp manual * doc/lispref/functions.texi (Mapping Functions): Fix the order of @example and @group. For the details, see https://lists.gnu.org/r/bug-texinfo/2017-09/msg00007.html. 2017-09-06 Mark Oteiza Add XDG desktop file parsing and tests * lisp/xdg.el: Add support for Desktop Entry Specification. (xdg--user-dirs-parse-line): Check if file is readable. (xdg-desktop-group-regexp, xdg-desktop-entry-regexp): New variables. (xdg--desktop-parse-line, xdg-desktop-read-file, xdg-desktop-strings): New functions. * test/lisp/xdg-tests.el: * test/data/xdg/test.desktop: * test/data/xdg/wrong.desktop: New files. 2017-09-06 Glenn Morris Allow for adjusting line length of test backtraces * test/Makefile.in (TEST_BACKTRACE_LINE_LENGTH): New option. (%.log): Respect backtrace line length. 2017-09-06 Glenn Morris Allow customizing line length of ert backtraces in batch mode * lisp/emacs-lisp/ert.el (ert-batch-backtrace-right-margin): Make it a user option. (ert-run-tests-batch): Handle ert-batch-backtrace-right-margin nil. 2017-09-06 Glenn Morris Minor emacsclient-tests simplification * test/lib-src/emacsclient-tests.el (emacsclient-test-emacs): Simplify. Also work when running installed. 2017-09-06 Alan Third Revert "Force screen update after drawing cursor glyph (bug#23774)" This reverts commit 1b492fa5456e2b6face8d0856f11d17e432693b0. See bug#28358 2017-09-05 Mark Oteiza Refactor some loops in mailcap.el * lisp/net/mailcap.el (mailcap-mime-types): (mailcap-file-default-commands): Convert nested maps to loops. 2017-09-05 Glenn Morris emacsclient-tests: remove some debug statements * test/lib-src/emacsclient-tests.el (emacsclient-test-call-emacsclient): Remove debug statements. 2017-09-05 Simen Heggestøyl Handle non-zero exit status from psql more gracefully * lisp/progmodes/sql.el (sql-postgres-list-databases): Handle non-zero exit statuses from `psql -ltX' more gracefully by returning nil. * test/lisp/progmodes/sql-tests.el (sql-tests-postgres-list-databases-error): New test. 2017-09-05 Eli Zaretskii Avoid losing Ctrl-C keystrokes in compilation mode on MS-Windows * src/w32proc.c (sys_kill): Preserve the up/down state of the Ctrl key across the simulated Ctrl-C keystroke. (Bug#28348) 2017-09-05 Andreas Schwab * src/image.c (Fimagemagick_types): Doc fix. 2017-09-05 Mark Oteiza Move soundex.el test to a proper test * test/lisp/soundex-tests.el: New file. * lisp/soundex.el: Use lexical-binding. Remove commented test. 2017-09-05 Mark Oteiza Add tests for mailcap.el * test/data/mailcap/mime.types: New file. * test/lisp/net/mailcap-tests.el: New file. 2017-09-05 Michael Albinus Doc precisment about remote link targets * doc/lispref/files.texi (Truenames): Explain handling of targets of `file-truename' and `make-symbolic-link', which look like a remote file name. * etc/NEWS: Precise examples for symlinks which look like remote file names. MUSTBENEW of `write-region' is not propagated to file name handlers. 2017-09-05 John Wiegley Remove an opinionated section on "What Eshell is not" I don't find this information to accurately reflect possible use cases for Eshell; plus, it doesn't offer much in the way of information, just opinion. 2017-09-05 Ken Brown Fix configure test for Xpm Problem reported by Ashish Shukla in https://lists.gnu.org/r/emacs-devel/2017-09/msg00020.html. * configure.ac (HAVE_XPM) [HAVE_X11]: Include X11/xpm.h instead of noX/xpm.h in configure test. 2017-09-04 Paul Eggert Revert recent float→double Motif change Problem reported by Martin Rudalics in: https://lists.gnu.org/r/emacs-devel/2017-09/msg00014.html * src/xterm.c (xm_scroll_callback, xaw_jump_callback) (x_set_toolkit_scroll_bar_thumb) (x_set_toolkit_horizontal_scroll_bar_thumb): Go back to using ‘float’ temporaries rather than ‘double’. Although quite possibly this masks an underlying bug, we lack time to look into that now. 2017-09-04 Glenn Morris emacsclient-tests: add some debug statements * test/lib-src/emacsclient-tests.el (emacsclient-test-call-emacsclient): Add debug statements. 2017-09-04 Michael Albinus Work on Tramp's (symbolic) links * doc/misc/tramp.texi (Traces and Profiles): Mention the backtrace when tramp-verbose is greater than or equal to 10. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): Use `tramp-handle-add-name-to-file'. * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Use `tramp-handle-add-name-to-file' and `tramp-handle-file-truename'. * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link): Improve. * lisp/net/tramp-smb.el (tramp-smb-errors): Add "NT_STATUS_CONNECTION_DISCONNECTED" and "NT_STATUS_OBJECT_PATH_SYNTAX_BAD". (tramp-smb-file-name-handler-alist): Use `tramp-handle-file-truename'. (tramp-smb-do-file-attributes-with-stat): Return non-nil only if one of the attributes is non-nil. (tramp-smb-handle-file-local-copy): Use `file-truename'. (tramp-smb-handle-file-truename): Move to tramp.el. (tramp-smb-handle-insert-directory): Show symlinks. (tramp-smb-handle-make-symbolic-link): Improve. (tramp-smb-read-file-entry): Handle extended file modes in Samba. * lisp/net/tramp.el (tramp-handle-add-name-to-file) (tramp-handle-file-truename): New defuns. * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test. (tramp--test-check-files): Make check for "smb". 2017-09-04 Mark Oteiza Embed JSON readtable into json-read Also unroll dispatch into a cond. * lisp/json.el (json-readtable): Remove. (json-readtable-dispatch): New macro. Assimilate json-readtable. (json-read): Use the macro. 2017-09-04 Mark Oteiza Hexify strings in EWW search queries Previously, inputting "cats & dogs" would lose dogs because the ampersand signifies a query parameter. Instead, hexify each word while preserving quotes with split-string. * lisp/net/eww.el (eww--dwim-expand-url): Join hexified words together with + separators, instead of replacing whitespace with +. 2017-09-03 Glenn Morris emacsclient-tests: call-process may return non-integer * test/lib-src/emacsclient-tests.el (emacsclient-test-alternate-editor-allows-arguments) (emacsclient-test-alternate-editor-allows-quotes): Handle non-integer return from call-process. 2017-09-03 Eli Zaretskii * lisp/simple.el (visual-line-mode): Doc fix. (Bug#28337) 2017-09-03 Alan Third Force screen update after drawing cursor glyph (bug#23774) * src/nsterm.m (ns_draw_window_cursor): Force a screen update after drawing the glyph over the cursor. 2017-09-03 Alan Mackenzie Correct the fontification of quote marks after buffer changes in CC Mode. * lisp/progmodes/cc-defs.el (c-search-forward-char-property-with-value-on-char): New macro. * lisp/progmodes/cc-mode.el (c-parse-quotes-before-change) (c-parse-quotes-after-change): Rewrite the functions, simplifying considerably, and removing unnecessary optimizations. Invalidate two caches after manipulating text properties. 2017-09-03 Alan Mackenzie Fix fontification of "operator~" in C++ Mode. * lisp/progmodes/cc-langs.el (c-ambiguous-overloadable-or-identifier-prefices) (c-ambiguous-overloadable-or-identifier-prefix-re): New c-lang-defconsts/vars. * lisp/progmodes/cc-engine.el (c-forward-name): Do not try to parse "~" (and two other symbols) as a cast without good evidence. Prefer an overloaded operator in ambiguous cases. 2017-09-03 Martin Rudalics In delete_frame do not delete terminal for any toolkit build * src/frame.c (delete_frame): Neither delete terminal for non-GTK toolkit builds (Bug#5802, Bug#21509, Bug#23499, Bug#27816). 2017-09-02 Philipp Stephani Improve error messages for improper plists (Bug#27726) * src/fns.c (Fplist_put, Flax_plist_get, Flax_plist_put) (Fplist_member, syms_of_fns): Use ‘plistp’ as pseudo-predicate for improper plists instead of ‘listp.’ * test/src/fns-tests.el (plist-get/odd-number-of-elements) (lax-plist-get/odd-number-of-elements) (plist-put/odd-number-of-elements) (lax-plist-put/odd-number-of-elements) (plist-member/improper-list): Add unit tests. 2017-09-02 Eli Zaretskii Fix decrypting in plstore.el on MS-Windows * lisp/plstore.el (plstore-open): Bind coding-system-for-read to raw-text, instead of using insert-file-contents-literally. (Bug#28114) 2017-09-02 Eli Zaretskii * src/fileio.c (Fexpand_file_name): Doc fix. (Bug#27982) 2017-09-02 Eli Zaretskii Rewrite Antinews for Emacs 26 * doc/lispref/anti.texi (Antinews): Rewrite for Emacs 26. * doc/lispref/elisp.texi (Top): Update the top-level menu's Antinews entry. * doc/emacs/anti.texi (Antinews): Rewrite for Emacs 26. * doc/emacs/emacs.texi (Top): Update the top-level menu's Antinews entry. * etc/NEWS: Rearrange some entries in a more reasonable order. 2017-09-02 Reuben Thomas Fix a mis-binding in a test * test/lisp/progmodes/python-tests.el (python-shell-calculate-process-environment-3): Fix binding of process-environment. A level of parens was missing. This was found after Glenn Morris noticed a similar problem with the patch for Bug#28319. 2017-09-02 Reuben Thomas Fix a mis-binding and a bad defun name in a test (Bug#28319) test/lib-src/emacs-client-tests.el (call-emacsclient): Rename emacsclient-test-call-emacsclient. (emacsclient-test-alternate-editor-allows-arguments) (emacsclient-test-alternate-editor-allows-quotes): Fix let-binding of process-environment. Thanks to Glenn Morris for noticing these errors. 2017-09-02 Glenn Morris * test/Makefile.in (check-no-automated-subdir): Silence by default. * test/Makefile.in (ELFILES): Sort, for a reproducible order. 2017-09-01 Mark Oteiza Turn off checkdoc complaint about default argument order * etc/NEWS: Mention change. * lisp/emacs-lisp/checkdoc.el (checkdoc-arguments-in-order-flag): Disable by default, note version. 2017-09-01 Reuben Thomas Stop emacsclient tests hanging (Bug#28319) * test/lib-src/emacsclient-tests.el (emacsclient-test-alternate-editor-allows-arguments): Use a non-existent file to communicate with server, so that any existing default server will not be hijacked (in fact, the test does not need a server). (emacsclient-test-alternate-editor-allows-quotes): Likewise. 2017-09-01 Stefan Monnier * lisp/obsolete/html2text.el: Don't require CL (html2text-clean-anchor): Mark unused arg. 2017-09-01 Katsumi Yamaoka Don't remove undisplayers from inlined MIME parts (bugfix) * lisp/gnus/gnus-art.el (gnus-mime-buttonize-attachments-in-header): Don't remove undisplayers from inlined MIME parts (bugfix); Simplify criterion that finds attachments. 2017-08-31 Mark Oteiza Make ucs-names a hash table (Bug#28302) * etc/NEWS: Mention the type change. * lisp/descr-text.el (describe-char): Use gethash to access ucs-names. Hardcode BEL's name into the function instead of needlessly mapping over the hash table in the spirit of rassoc. * lisp/international/mule-cmds.el (ucs-names): Fix variable and function docstrings. Initialize a hash table for ucs-names--the number of entries is 42845 here. Switch to hash-table getters/setters. (mule--ucs-names-annotation): Use hash-table getter. (char-from-name): Upcase the string if ignore-case is truthy. * lisp/leim/quail/latin-ltx.el: Use maphash instead of dolist. 2017-08-31 Alan Third Remove unneeded version checks (bug#28222) * src/macfont.h (CGContextSetFontSmoothingStyle): Remove version check. * src/macfont.m (macfont_draw): Remove version check, and test for existence of CGContextSetFontSmoothingStyle. 2017-08-31 Alan Mackenzie Fix a glitch in CC Mode's syntactic whitespace cache. * lisp/progmodes/cc-engine.el (c-forward-sws): Deal correctly with a block comment close at the end of a macro. 2017-08-31 Alan Mackenzie Correct the fontification of C++ Mode enclosed declarations. * lisp/progmodes/cc-fonts.el (c-font-lock-enclosing-decls): abolish the spurious check that the character before the start of an enclosed declaration must be ; or }. It might also be {. 2017-08-31 Martin Rudalics In xterm.c fix some recently introduced compiler warnings * src/xterm.c (xaw_jump_callback) (x_set_toolkit_scroll_bar_thumb): Fix some recently introduced -Wdouble-promotion warnings. 2017-08-31 Martin Rudalics Restrict fix of Bug#24963 and Bug#25887 to GTK builds * src/xterm.c (handle_one_xevent): Restrict earlier fix of Bug#24963 and Bug#25887 to avoid that a non-GTK Emacs won't react to state changes received via ConfigureNotify. 2017-08-31 Katsumi Yamaoka Respect directory a user enters (bug#28299) * lisp/gnus/mm-decode.el (mm-save-part): Respect directory a user enters (bug#28299). 2017-08-31 Samuel Freilich Do not split line before width of fill-prefix When auto-filling a paragraph, don't split a line before the width of the fill-prefix, creating a subsequent line that is as long or longer (Bug#20774). * lisp/simple.el (do-auto-fill): Only consider break-points that are later in the line than the width of the fill-prefix. This is a more general solution than the previous logic, which only skipped over the exact fill-prefix. The fill-prefix doesn't necessarily match the prefix of the first line of a paragraph in adaptive-fill-mode. 2017-08-31 Noam Postavsky Support lazy loading for autogenerated usage docstrings too (Bug#27748) * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defmumble): Consider any documentation that ended up in code as a docstring (e.g., autogenerated (fn ARG1 ARG2) type things), not just what the user passed. 2017-08-31 Noam Postavsky Drop docstrings from cl-defsubst produced inline bodies (Bug#27748) * lisp/emacs-lisp/cl-macs.el (cl-defsubst): Use macroexp-parse-progn to drop the docstring. Add a simple docstring to the compiler-macro. 2017-08-30 Paul Eggert Quote file-truename symlink to "../foo:bar:" Problem reported by Michael Albinus (Bug#28264#19). * lisp/files.el (files--splice-dirname-file): Fix bug where a relative symlink to "../foo:bar:" did not quote the result. 2017-08-30 Reuben Thomas Add support for arguments in emacsclient's ALTERNATE_EDITOR (Bug #25082) * lib-src/emacsclient.c (fail): Parse ALTERNATE_EDITOR, or corresponding command-line argument, into quote- or space-separated tokens. If a token starts with a quote, then it naturally is expected to end with a quote; escaping is not supported. This is enough to cope with the typical case of requiring the initial path to be quoted, common on Windows where it may contain spaces. * etc/NEWS: Document. * doc/emacs/misc.texi: Likewise. * doc/man/emacsclient.1: Tweak to remove the implication that only an editor can be specified (the manual already mentions a “command”). Fix a small error where “EDITOR” is referred to rather than “ALTERNATE_EDITOR”. * test/lib-src/emacsclient-tests.el: Add tests. 2017-08-30 Stefan Monnier * lisp/man.el (Man-softhyphen-to-minus): Avoid string-as-multibyte. 2017-08-30 Devon Sean McCullough (tiny change) Correct "hide others" shortcut on macOS (bug#28215) * lisp/term/ns-win.el: Fix shortcut for ns-do-hide-others. 2017-08-30 Eli Zaretskii Sync NEWS with the documentation * etc/NEWS: Mark entries according to documentation. * doc/lispref/functions.texi (Mapping Functions): Document 'mapcan'. 2017-08-30 Michael Albinus Improve symlinks for Tramp * lisp/files.el (files--splice-dirname-file): Quote whole file. * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link): Do not expand TARGET, it could be remote. (tramp-sh-handle-file-truename): Check for cyclic symlink also in case of readlink. Quote result if it looks remote. (tramp-sh-handle-file-local-copy): Use `file-truename'. * test/lisp/net/tramp-tests.el (tramp-test08-file-local-copy) (tramp-test09-insert-file-contents): Test also file missing. (tramp-test21-file-links): Extend test. 2017-08-30 Martin Rudalics Preserve display's foreground color when clearing internal borders (Bug#28278) * src/xterm.c (x_after_update_window_line): Preserve display's foreground color when clearing internal borders (Bug#28278). 2017-08-30 Noam Postavsky Use cl-print for all values printed by `describe-variable' * lisp/help-fns.el (describe-variable): Use cl-prin1 for original and global values too. 2017-08-30 Noam Postavsky Minor simplification for byte-compile-constant-push * lisp/emacs-lisp/bytecomp.el (byte-compile-constant): Move the meat of the code from here... (byte-compile-constant-push): ... to here. No need to bind byte-compile--for-effect anymore. 2017-08-30 Paul Eggert Prefer file-name-quote to concat "/:" Suggested by Michael Albinus (Bug#28264#13). * lisp/files.el (files--splice-dirname-file): Use file-name-quote rather than attempting to do it by hand. 2017-08-30 Paul Eggert * configure.ac: fix typo in previous change 2017-08-29 Paul Eggert Be more conservative in link time optimization doc While testing --enable-link-time-optimization with GCC 7.1.1 I ran into a serious GCC code-generation bug which makes me think that --enable-link-time-optimization should be discouraged for typical installs (Bug#28213). See: https://bugzilla.redhat.com/show_bug.cgi?id=1486455 2017-08-29 Paul Eggert Make garbage collection more conservative Check for a pointer anywhere within the object, as opposed to just the start of the object. This is needed for gcc -Os -flto on x86-64 (Bug#28213). This change means that the garbage collector is more conservative, and will incorrectly keep objects that it does not need to, but that is better than incorrectly discarding objects that should be kept. * src/alloc.c (ADVANCE, VINDEX): Now functions, not macros; this is easier to debug. (setup_on_free_list): Rename from SETUP_ON_FREE_LIST. Now a function with two args, not a macro with three. All callers changed. (live_string_holding, live_cons_holding, live_symbol_holding) (live_misc_holding, live_vector_holding, live_buffer_holding): New functions, which check for any object containing the addressed byte, not just for an object at the given address. (live_string_p, live_cons_p, live_symbol_p, live_misc_p) (live_vector_p, live_buffer_p): Redefine in terms of the new functions. (live_float_p): Refactor slightly to match the new functions. (mark_maybe_object, mark_maybe_pointer): Use the new functions. Don’t bother checking mark bits, as mark_object already does that, and omitting the checks here simplifies the code. Although mark_maybe_object can continue to insist that tagged pointers still address the start of the object, mark_maybe_pointer now is more conservative and checks for pointers anywhere into an object. 2017-08-29 Paul Eggert Improve stack-top heuristic This is needed for gcc -Os -flto on x86-64; otherwise, GC misses part of the stack when scanning for heap roots, causing Emacs to crash later (Bug#28213). The problem is that Emacs's hack for getting an address near the stack top does not work when link-time optimization moves stack variables around. * configure.ac (HAVE___BUILTIN_FRAME_ADDRESS): New macro. * lib-src/make-docfile.c (DEFUN_noinline): New constant. (write_globals, scan_c_stream): Support noinline. * src/alloc.c (NEAR_STACK_TOP): New macro. (SET_STACK_TOP_ADDRESS): Use it. (flush_stack_call_func, Fgarbage_collect): Now noinline. 2017-08-29 Paul Eggert Align stack bottom properly. This is needed for gcc -Os -flto on x86-64 (Bug#28213). * src/emacs.c (main): Align stack-bottom variable as a pointer, since mark_memory requires this. 2017-08-29 Eli Zaretskii Avoid spinning waiting for git-gui.exe on Windows * src/w32proc.c (waitpid): If GetExitCodeProcess returns STILL_ACTIVE, and we were called with WNOHANG, pretend that the process exited. (Bug#28268) 2017-08-29 Eli Zaretskii Document '--module-assertions' * doc/emacs/cmdargs.texi (Initial Options): Document the '--module-assertions' command-line option. * doc/lispref/loading.texi (Dynamic Modules): Add a cross-reference to the description of '--module-assertions'. * etc/NEWS: Update the NEWS entry for --module-assertions. 2017-08-29 Alan Third Add news entry about new macOS features * etc/NEWS: Add entry about ns-appearance, ns-transparent-titlebar and ns-use-thin-smoothing. 2017-08-29 Alan Third Fix cross macOS version building (bug#28222) * src/macfont.h (CGContextSetFontSmoothingStyle): Function declaration. * src/macfont.m (macfont_draw): Limit new code to macOS 10.8 and up. 2017-08-29 Ben Bonfil (tiny change) Enable thin font smoothing in macOS (bug#28222) * src/nsterm.m (syms_of_nsterm): Define var ns-use-thin-smoothing. * src/macfont.m (macfont_draw): Use font smoothing. 2017-08-29 Eli Zaretskii Minor improvement in documentation of display-line-numbers * doc/emacs/display.texi (Display Custom): Document the display-line-numbers-mode and related options. 2017-08-29 Eli Zaretskii Avoid aborting in 'waitpid' on MS-Windows * src/w32proc.c (waitpid): Don't allow quitting if called with WNOHANG in OPTIONS. (Bug#28268) 2017-08-29 Stefan Monnier * lisp/progmodes/sh-script.el: Test "in-string" of the right char! (sh-syntax-propertize-function): Fix off-by-one error. Fixes bug#23526. 2017-08-29 Rasmus Update Org to v9.0.10 Please see etc/ORG-NEWS for major changes. Note, this is a bugfix release. 2017-08-29 Paul Eggert Silence false alarms for symlinks to sources Problem reported by Glenn Morris (Bug#28264). * lisp/files.el (files--splice-dirname-file): New function. (file-truename, file-chase-links): Use it. 2017-08-29 Paul Eggert Simplify remove_slash_colon * src/process.c (remove_slash_colon): Simplify and avoid a special case for "/:" by itself. 2017-08-28 Tassilo Horn Remove font family from minibuffer-prompt face * etc/themes/tsdh-light-theme.el (tsdh-light): Remove font family from minibuffer-prompt face. 2017-08-28 Michael Albinus Further fixes in tramp-smb.el * lisp/net/tramp-smb.el (tramp-smb-handle-file-truename): New defun. (tramp-smb-file-name-handler-alist): Use it. (tramp-smb-handle-make-symbolic-link): Unquote target. * test/lisp/net/tramp-tests.el (tramp--test-ignore-make-symbolic-link-error): New defmacro. (tramp-test18-file-attributes, tramp-test21-file-links) (tramp--test-check-files): Use it. 2017-08-28 Paul Eggert Don’t assume -g3 in .gdbinit * src/.gdbinit (EMACS_INT_WIDTH, USE_LSB_TAG): Use reasonable defaults if not in the symbol table. 2017-08-28 Robert Pluim (tiny change) Use string-match to check for dotfiles in ido * lisp/ido.el (ido-make-file-list): Use string-match to check for dotfiles instead of substring, as when using tramp simplified syntax ido-temp-list may contain empty strings. 2017-08-28 Mark Oteiza Font-lock FDO desktop files correctly Single and double quotes do not have a special meaning in desktop files. https://standards.freedesktop.org/desktop-entry-spec/latest/ * etc/NEWS: Mention new mode. * lisp/files.el (auto-mode-alist): Split out an entry for handling the .desktop extension with conf-desktop-mode. * lisp/textmodes/conf-mode.el (conf-desktop-font-lock-keywords): New variable with rules for booleans and format specifiers. (conf-unix-mode): Remove desktop file entry example from docstring. (conf-desktop-mode): New derived major mode. 2017-08-27 Tom Tromey Fix auto-fill bug in js-mode * lisp/progmodes/js.el (js-do-auto-fill): New function. (js-mode): Set normal-auto-fill-function. * test/lisp/progmodes/js-tests.el (js-mode-fill-comment-bug): New test. 2017-08-27 Noam Postavsky Disable completion while entering python multiline statements The "legacy" completion mechanism sends newlines to the running python process to get the list of completions, which confuses things if the user is in the middle of entering a multiline statement (Bug#28051). It's better to disable completion in this case. * lisp/progmodes/python.el (python-shell--block-prompt): New variable. (python-shell-prompt-set-calculated-regexps): Set it. (python-shell-completion-at-point): Return 'ignore' as the completion function when the current prompt is a block prompt. 2017-08-27 Michael Albinus Tramp cleanup * lisp/net/tramp-sh.el (tramp-sh-extra-args): Remove compat code. (tramp-sh-handle-make-symbolic-link): More robust check for TARGET remoteness. * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory): Disable copying by tar temporarily, it doesn't work reliably. (tramp-smb-do-file-attributes-with-stat): Resolve symlink. (tramp-smb-handle-make-symbolic-link): Fix implementation. * lisp/net/tramp.el (tramp-handle-file-symlink-p): Simplify. * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test. 2017-08-27 Glenn Morris Fix previous xterm.h change for non-gtk builds * src/xterm.h (GTK_CHECK_VERSION) [!USE_GTK]: Define it. 2017-08-27 Philipp Stephani Fix GdkSettings-related deprecation warnings * src/gtkutil.c (xg_initialize): Don’t set deprecated and ignored gtk-menu-bar-accel setting in new versions of GTK+. Use g_object_set instead of deprecated gtk_settngs_set_string_property otherwise. 2017-08-27 Philipp Stephani Always use gtk_window_move in new versions * src/gtkutil.c (my_log_handler): Don’t define in new versions of GTK+. (xg_set_geometry): Always use gtk_window_move in new versions of GTK+. * src/xterm.c (syms_of_xterm): Document that x-gtk-use-window-move is ignored. * lisp/subr.el (x-gtk-use-window-move): Make obsolete. 2017-08-27 Charles A. Roelli Fix 'diff-goto-source' when buffer is narrowed (Bug#21262) * lisp/vc/diff-mode.el (diff-find-file-name): Save the current narrowing, and widen the buffer before searching for the name of the file corresponding to the diff. With thanks to Noam Postavsky. 2017-08-27 Philipp Stephani Remove use of a deprecated GTK+ function in new versions * src/gtkutil.c (xg_make_tool_item): Use gtk_widget_set_focus_on_click if available 2017-08-27 Philipp Stephani Stop using deprecated GdkScreen monitor functions in newer GDK * src/xfns.c (Fx_display_monitor_attributes_list): Use GdkMonitor objects instead of the deprecated GdkScreen functions in GDK 3.22+ 2017-08-27 Philipp Stephani Use GdkSeat in new GDK versions * src/gtkutil.c (xg_event_is_for_scrollbar): Use GdkSeat instead of GdkDeviceManager in GDK 3.20+ 2017-08-27 Philipp Stephani * src/xterm.c (XTflash): Don’t use gdk_cairo_create in GDK 3.22+ 2017-08-27 Philipp Stephani Remove call of deprecated GDK function * src/xterm.h (XSync): Don’t call gdk_window_process_all_updates in GDK 3.22 or later. 2017-08-27 Alan Mackenzie Amend the CC Mode macro cache to cope with changes at the macro start Fixes bug #28233. * lisp/progmodes/cc-engine.el (c-invalidate-macro-cache): Fix an off-by-1 error. 2017-08-27 Paul Eggert Fix over-protection of byte-compiled files Problem reported by Sven Joachim (Bug#28244). Also, fix similar problem for autoload files. * lisp/emacs-lisp/autoload.el (autoload--save-buffer): Set temp file modes to the buffer-file-name file modes (or 666 if not available) as adjusted by umask. * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Set temp file modes to 666 as adjusted by umask. 2017-08-27 Tom Tromey Refine conf-toml-mode font-lock Bug#28218 * lisp/textmodes/conf-mode.el (conf-toml-font-lock-keywords): Use conf-toml-recognize-section. Use \s- in variable regexp. (conf-toml-recognize-section): New function. 2017-08-27 Paul Eggert Do not munge contents of local symbolic links This lets Emacs deal with arbitrary local symlinks without mishandling their contents (Bug#28156). For example, (progn (shell-command "ln -fs '~' 'x'") (rename-file "x" "/tmp/x")) now consistently creates a symbolic link from '/tmp/x' to '~'. Formerly, it did that only if the working directory was on the same filesystem as /tmp; otherwise, it expanded the '~' to the user's home directory. * lisp/dired.el (dired-get-filename): Use files--name-absolute-system-p instead of rolling our own code. * lisp/files.el (files--name-absolute-system-p): New function. (file-truename, file-chase-links): Use it to avoid mishandling symlink contents that begin with ~. (copy-directory, move-file-to-trash): Use concat rather than expand-file-name, to avoid mishandling symlink contents that begin with ~. * src/fileio.c (Fmake_symbolic_link): Do not expand leading "~" in the target unless interactive. Strip leading "/:" if interactive. (emacs_readlinkat): Do not prepend "/:" to the link target if it starts with "/" and contains ":" before NUL. * test/src/fileio-tests.el (try-link): Rename from try-char, and accept a string instead of a char. All uses changed. (fileio-tests--symlink-failure): Also test leading ~, and "/:", to test the new behavior. 2017-08-27 Reuben Thomas Remove invalid regexp for shell builtins for wksh * lisp/progmodes/sh-script.el (sh-builtins): Shell built-ins have to be literal strings, so remove a regexp for wksh. In any case, it’s a defunct proprietary shell. 2017-08-26 Paul Eggert Improve doc for file-name-absolute-p. 2017-08-26 Michael Albinus Fix Tramp part of Bug#28156 * lisp/files.el (file-name-non-special): Use `file-name-quote' instead prefixing "/:", the file could already be quoted. * lisp/net/tramp.el (tramp-error): Handle null arguments. (tramp-handle-make-symbolic-link): * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link) (tramp-sh-handle-add-name-to-file): * lisp/net/tramp-smb.el (tramp-smb-handle-add-name-to-file) (tramp-smb-handle-make-symbolic-link): Adapt implementation to stronger semantics in Emacs. (Bug#28156) * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test. 2017-08-26 Eli Zaretskii Fix bugs merged with bug#25428 * lisp/simple.el (auto-fill-mode, visual-line-mode): Doc fix. (Bug#13926) (Bug#25434) (Bug#25435) 2017-08-26 Eli Zaretskii Improve documentation of Info virtual files and nodes * lisp/info.el (Info-virtual-files, Info-virtual-nodes): Doc fix. (Bug#28237) 2017-08-26 Eli Zaretskii * lisp/delsel.el (delete-selection-mode): Doc fix. (Bug#25428) 2017-08-26 Grégory Mounié (tiny change) Support multi-lingual detection of SEE ALSO man sections * lisp/man.el (Man-see-also-regexp): Add support for SEE ALSO section detection in several langages: French, German, Spanish, Portuguese, Italian, Polish, Turkish, Japanese, Chinese. (Bug#28142) 2017-08-26 Paul Eggert Improve expand-file-name doc * doc/lispref/files.texi (Relative File Names, Directory Names) (File Name Expansion): * doc/lispref/minibuf.texi (Reading File Names): Document expand-file-name behavior with ~ more clearly and accurately. * doc/misc/org.texi (Batch execution): Simplify example script so that it does not need expand-file-name and thus will not mishandle file names with leading ~. 2017-08-26 Jefferson Carpenter (tiny change) Support all perl variable declarators and prefixes (Bug#27613) * lisp/progmodes/perl-mode.el (perl-imenu-generic-expression) (perl-font-lock-keywords-2): Match declators 'anon', 'argument', 'has', 'local', 'state', 'supersede', 'let', and 'temp'. 2017-08-25 Paul Eggert Fix file-attributes race on GNU hosts * doc/lispref/files.texi (File Attributes): Document file-attributes atomicity. * etc/NEWS: Document the fix. * src/dired.c (file_attributes): New args DIRNAME and FILENAME, for diagnostics. All callers changed. On platforms like GNU/Linux that support O_PATH, fix a race condition in file-attributes and similar functions, so that these functions do not return nonsense if a directory entry is replaced while getting its attributes. On non-GNU platforms, do a better (though not perfect) job of detecting the race, and return nil if detected. 2017-08-25 Paul Eggert Simplify expand_and_dir_to_file * src/fileio.c (expand_and_dir_to_file): Simplify by omitting 2nd argument, since in practice it always has the default value. All callers changed. Prefer C99 style decls in nearby code. 2017-08-25 Eli Zaretskii Fix file-name completion on network shares * src/w32.c (faccessat): Don't assume that F_OK is non-zero. (Bug#28207) 2017-08-25 Reuben Thomas Fix a FIXME with an exegetical comment * lisp/progmodes/sh-script.el (sh-builtins): Explain why we have a regexp for wksh builtins. 2017-08-25 Reuben Thomas Minor docstring language fix * lisp/progmodes/sh-script.el (sh-show-indent): Remove spurious “the”. 2017-08-25 Reuben Thomas Remove old commented code from sh-script.el * lisp/progmodes/sh-script.el (sh-abbrevs): Remove commented function and variable, commented since 2001. 2017-08-25 Stefan Monnier * lisp/emacs-lisp/package.el: Don't let failure stop us (package-activate-1): Don't throw an error for missing deps. (package-unpack): Don't bother compiling if activation failed. (package-initialize): Report failures but keep activating other packages. 2017-08-25 Paul Eggert Prefer ‘double’ for FP temps in xterm.c * src/xterm.c (xm_scroll_callback, xaw_jump_callback) (x_set_toolkit_scroll_bar_thumb) (x_set_toolkit_horizontal_scroll_bar_thumb): Prefer ‘double’ to ‘float’ for individual local floating-point temporaries. 2017-08-24 Reuben Thomas Avoid using string-to-multibyte in ispell.el * lisp/textmodes/ispell.el (ispell-get-decoded-string): Use decode-coding-string instead. Note that decode-coding-string returns a string that satisfies multibyte-string-p even if its input is pure ASCII and the third argument is t, so the result of ispell-get-decoded-string is always a multibyte string. 2017-08-24 Tino Calancha Store the regexp just when there are matches * lisp/hi-lock.el (hi-lock-set-pattern): When font-lock-mode is disabled and there are no matches do not store REGEXP in hi-lock-interactive-patterns. 2017-08-24 Tino Calancha Keep face available if there are no matches If font-lock-mode is disabled in the current buffer, and there are no matches for REGEXP, then keep FACE available for a next search. * lisp/hi-lock.el (hi-lock-set-pattern): Add FACE into hi-lock--unused-faces if font-lock-mode is disabled and there are no matches. * test/lisp/hi-lock-tests.el (hi-lock-test-set-pattern): Add test. 2017-08-24 Michael Albinus Minor improvements for tramp-interrupt-process, documentation * doc/lispref/processes.texi (Signals to Processes): * etc/NEWS: Document interrupt-process-functions. * lisp/net/tramp.el (tramp-interrupt-process): Test also for `process-live-p'. * src/process.c (Vinterrupt_process_functions): Fix docstring. * test/lisp/net/tramp-tests.el (tramp-test28-interrupt-process): Extend test. 2017-08-24 Reuben Thomas Fix a comment whitespace typo. src/fileio.c: A double space was added after "..", used in a code example. Make it a single space. 2017-08-24 Reuben Thomas Remove old commented code and obsolete comments * lisp/files.el (locate-dominating-files): Remove old commented implementation from 9 years ago. Since the current version appears (at least to me) not just more efficient but clearer than the version removed, also delete a comment in the new version referring to the old version. Remove old commented heuristic code, and explanatory comments. 2017-08-24 Reuben Thomas Remove old duplicate commented code * lisp/files.el (file-relative-name): Remove old commented version, replaced 14 years ago in commit 753ad9889. 2017-08-24 Tom Tromey Add conf-toml-mode * etc/NEWS: Mention conf-toml-mode. * lisp/files.el (auto-mode-alist): Add entry for .toml. * lisp/textmodes/conf-mode.el (conf-toml-mode-syntax-table) (conf-toml-font-lock-keywords): New defvars. (conf-toml-mode): New mode. 2017-08-23 Alan Third Use lisp type in log message (bug#28176) * src/nsimage.m (ns_load_image): Use make_number on index. 2017-08-23 Alan Third Fix PNGs on macOS (bug#28176) * src/nsimage.m (ns_load_image): Remove index check. (EmacsImage::getAnimatedBitmapImageRep): New function. (EmacsImage::getMetadata): Use getAnimatedBitmapImageRep. (EmacsImage::setFrame): Use getAnimatedBitmapImageRep and check index is valid. 2017-08-23 Alan Third Add ability to change macOS WM theme (bug#27973) * src/frame.c (make_frame, frame_parms, syms_of_frame) [NS_IMPL_COCOA]: Add ns-appearance and ns-transparent-titlebar options. * src/frame.h (ns_appearance_type) [NS_IMPL_COCOA]: Add enum to represent NSAppearance options. (struct frame) [NS_IMPL_COCOA]: Add ns_appearance and ns_transparent_titlebar frame parameters. * src/nsfns.m (ns_frame_parm_handlers) [NS_IMPL_COCOA]: Add ns_set_appearance and ns_set_transparent_titlebar handlers. (Sx_create_frame): Handle ns-appearance and ns-transparent-titlebar frame parameters. (Qdark): Add new symbol for use with ns-appearance. * src/nsterm.h (ns_set_appearance, ns_set_transparent_titlebar) [NS_IMPL_COCOA]: Add prototypes. * src/nsterm.m (ns_set_appearance, ns_set_transparent_titlebar) [NS_IMPL_COCOA]: New functions. (initFrameFromEmacs) [NS_IMPL_COCOA]: Handle ns-appearance and ns-transparent-titlebar frame parameters. * doc/lispref/frames.texi (Window Management Parameters): Document ns-apperance and ns-transparent-titlebar. 2017-08-22 Alan Mackenzie When looking for the end of a declarator, prevent macros fouling up the search The practical implication of this bug was a random jit-lock chunk remaining entirely unfontified. * lisp/progmodes/cc-mode.el (c-fl-decl-end): If point starts inside a macro, restrict two forward searches to the end of that macro. 2017-08-22 Michael Albinus Test `file-expand-wildcards' for Tramp * lisp/net/tramp-compat.el (tramp-advice-file-expand-wildcards): Remove, not needed anymore. * test/lisp/net/tramp-tests.el (top): Require seq.el. (tramp-test16-directory-files): Simplify. (tramp-test16-file-expand-wildcards): New test. (tramp-test28-interrupt-process): Skip for older Emacsen. 2017-08-22 Alexander Gramiak Add tests for cl-macs.el (Bug#27559) * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-test-loop): Remove duplicate. (cl-loop-destructuring-with): Move to cl-macs-tests.el. * test/lisp/emacs-lisp/cl-macs-tests.el: New file. 2017-08-22 Noam Postavsky Optimize skkdic conversion (Bug#28043) The primary speedup comes from the optimizing lookup-nested-alist and set-nested-alist for the case where the key is a string. This brings the time down to less than half the original. * lisp/international/mule-util.el (lookup-nested-alist) (set-nested-alist): Use `assq' instead of `assoc' when KEYSEQ is a string. * lisp/international/ja-dic-cnv.el (skkdic-collect-okuri-nasi) (skkdic-convert-okuri-nasi): Use progress-reporter functions instead of calculating ratio of work done inline. (skkdic-reduced-candidates): Call `char-category-set' on the first character of the string directly, instead of using a regexp for the character category. (skkdic--japanese-category-set): New constant. (skkdic-collect-okuri-nasi): Just set `skkdic-okuri-nasi-entries-count' at once at the end rather than updating it throughout the loop. (skkdic-convert-postfix skkdic-convert-prefix) skkdic-get-candidate-list, skkdic-collect-okuri-nasi) (skkdic-extract-conversion-data): Use `match-string-no-properties' instead of `match-string'. 2017-08-22 Reuben Thomas Treat tests in lib-src like tests in src * test/Makefile.in (test_template): Depend on a .c source file for a test under lib-src, as for src. (Thanks, Glenn Morris for pointing me in the right direction.) 2017-08-22 Paul Eggert Port /bin/sh scripts to Solaris 10 Its /bin/sh builtin ‘test’ command does not support -e. * autogen.sh, build-aux/git-hooks/pre-commit: * build-aux/gitlog-to-emacslog, make-dist: Use test -r, not test -e. 2017-08-21 Eli Zaretskii Avoid losing the buffer restriction in flyspell-mode * src/intervals.c (get_local_map): Don't allow C-g to quit as long as we have the buffer widened, to make sure the restriction is preserved. (Bug#28161) 2017-08-21 Sven Joachim Fix the 'versionclean' target in src/Makefile * src/Makefile.in (versionclean): Don't accidentally remove emacs-module.h. (Bug#28169) 2017-08-21 Michael Albinus Implement `interrupt-process-functions' * lisp/net/tramp.el (tramp-interrupt-process): Rename from `tramp-advice-interrupt-process'. Adapt according to changed API. (top): Add it to `interrupt-process-functions'. * src/process.c (Finternal_default_interrupt_process): New defun. (Finterrupt_process): Change implementation, based on Vinterrupt_process_functions. (Vinterrupt_process_functions): New defvar. * test/lisp/net/tramp-tests.el (tramp-test40-unload): Do not test removal of advice. 2017-08-21 Eli Zaretskii Avoid floating-point exceptions while drawing underwave * src/w32term.c (x_get_scale_factor): * src/xterm.c (x_get_scale_factor): Don't let the scale factors become less than 1. Reported by Yuri D'Elia in https://lists.gnu.org/r/emacs-devel/2017-08/msg00459.html. 2017-08-21 Sam Steingold mark flymake-mode as safe local variable when the value is nil 2017-08-21 Sam Steingold allow nil init in flymake-allowed-file-name-masks to disable flymake (flymake-allowed-file-name-masks): Update doc and :type. (flymake-get-file-name-mode-and-masks): Handle nil init. 2017-08-20 Dmitry Gutov Remove the workaround for bug#20719 * lisp/cedet/semantic/symref/grep.el (semantic-symref-grep-use-template): Remove the workaround for bug#20719, it's been fixed for a while now. 2017-08-20 Dmitry Gutov Fix byte-compilation warnings in semantic/symref/grep * lisp/cedet/semantic/symref/grep.el (greppattern): Remove. (grepflags): Rename to semantic-symref-grep-flags. (semantic-symref-grep-expand-keywords): Update accordingly. (semantic-symref-grep-use-template): Remove the last two arguments to make sure they don't shadow the (not renamed) global variables. (semantic-symref-perform-search) (semantic-symref-parse-tool-output-one-line): Use slot names instead of keywords, like the byte-compiler wants us to. 2017-08-20 Dmitry Gutov Simplify eldoc-message * lisp/emacs-lisp/eldoc.el (eldoc-message): Simplify. Don't use ARGS because no callers pass them. Discussed in bug#27230. 2017-08-20 Noam Postavsky Work around w32-python-2.x bug to fix prompt detection (Bug#21376) * lisp/progmodes/python.el (python-shell-prompt-detect): Don't put carriage returns into the temporary file when running in unbuffered mode, the w32 build of python 2.7 chokes on them. 2017-08-20 Reuben Thomas Add missing require * lisp/textmodes/ispell.el: Require subr-x. (Thanks, Eli Zaretskii.) 2017-08-20 Michael Albinus Implement `interrupt-process' for remote processes (Bug#28066) * lisp/net/tramp-sh.el (tramp-sh-handle-start-file-process): Support sending signals remotely. (tramp-open-connection-setup-interactive-shell): Trace "remote-tty" connection property. * lisp/net/tramp.el (tramp-advice-interrupt-process): New defun. (top): Add advice to `interrupt-process'. (Bug#28066) * test/lisp/net/tramp-tests.el (tramp-test28-interrupt-process): New test. (tramp-test29-shell-command) (tramp-test30-environment-variables) (tramp-test30-environment-variables-and-port-numbers) (tramp-test31-explicit-shell-file-name) (tramp-test32-vc-registered) (tramp-test33-make-auto-save-file-name) (tramp-test34-make-nearby-temp-file) (tramp-test35-special-characters) (tramp-test35-special-characters-with-stat) (tramp-test35-special-characters-with-perl) (tramp-test35-special-characters-with-ls, tramp-test36-utf8) (tramp-test36-utf8-with-stat, tramp-test36-utf8-with-perl) (tramp-test36-utf8-with-ls) (tramp-test37-asynchronous-requests) (tramp-test38-recursive-load, tramp-test39-remote-load-path) (tramp-test40-unload): Rename. (tramp-test40-unload): Test also removal of advice. 2017-08-20 Reuben Thomas Document Enchant support * doc/emacs/fixit.texi: Mention Enchant. * doc/misc/efaq.texi: Likewise. * etc/NEWS: Add an item on Enchant support. 2017-08-20 Reuben Thomas Remove old comments and a redundant FIXME * lisp/textmodes/ispell.el (ispell-process-line): Remove some old commented code, a redundant FIXME, and outdated usage instructions. 2017-08-20 Reuben Thomas Add Enchant support to ispell.el (Bug#17742) * lisp/textmodes/ispell.el (ispell-program-name): Add “enchant”. (ispell-really-enchant): Add variable. (ispell-check-version): If using Enchant, check it’s new enough (at least 1.6.1). (Like the ispell check, this is absolute: cannot work without.) (ispell-enchant-dictionary-alist): Add variable. (ispell-find-enchant-dictionaries): Add function, based on ispell-find-aspell-dictionaries. (ispell-set-spellchecker-params): Allow dictionary auto-detection for Enchant, and call ispell-find-enchant-dictionaries to find them. Use old ispell name to locale mapping code for Enchant too. (ispell-send-replacement): Make it work with Enchant. 2017-08-20 Noam Postavsky * lisp/term.el (term-mode): Use `window-text-height' (Bug#5615). 2017-08-20 Noam Postavsky Stop printing '4' in .elc files after 'define-symbol-prop' calls * lisp/emacs-lisp/bytecomp.el (byte-compile-define-symbol-prop): Return nil in case we have compiled the form, to prevent a redundant constant from getting added to the compiled output. 2017-08-20 Paul Eggert Change recent symlink tests to just test ASCII * test/src/fileio-tests.el (fileio-tests--symlink-failure): Be less ambitious about testing non-ASCII chars and encoding errors, as there are too many portability issues. 2017-08-20 Paul Eggert Don’t adjust CRLF in file names * doc/misc/gnus.texi (Non-ASCII Group Names): * etc/NEWS: * test/lisp/net/tramp-tests.el (tramp--test-utf8): Use utf-8-unix, not utf-8, for default-file-name-coding-system, so that CRLF in file names is left alone. * lisp/international/mule-cmds.el (set-default-coding-systems): Do not alter CRLF in file name coding systems. (prefer-coding-system): Ignore differences in CRLF processing when checking whether we used the user-specified file name coding system. * test/src/fileio-tests.el: New file. 2017-08-19 Eli Zaretskii Make list-processes support display-line-numbers * lisp/simple.el (process-menu-mode): Move the call to tabulated-list-init-header from here... (list-processes--refresh): ...to here. (Bug#27895) 2017-08-19 Eli Zaretskii Improve support of display-line-numbers in package.el * lisp/emacs-lisp/package.el (package-menu--refresh): Redisplay the header. (Bug#27895) * lisp/emacs-lisp/tabulated-list.el (tabulated-list-line-number-width): Fix the case when display-line-numbers is nil. 2017-08-19 Eli Zaretskii Improve support of display-line-numbers in tabulated-list-mode * lisp/emacs-lisp/tabulated-list.el (tabulated-list-line-number-width): New function. (tabulated-list-init-header, tabulated-list-print-entry): Use it. (Bug#27895) 2017-08-19 Martin Rudalics Fix one more issue reported by Alex (Bug#27999) * doc/lispref/windows.texi (Preserving Window Sizes) (Window Parameters): Use the term `window-preserved-size' instead of `preserved-size' (Bug#27999). 2017-08-19 Martin Rudalics Rename `no-delete-other-window' to `no-delete-other-windows' 2017-08-19 Martin Rudalics Fix two side window problems noted by Alex (Bug#27999) * lisp/window.el (display-buffer-in-side-window): Fix doc-string typo. (delete-other-windows): Rename the `no-delete-other-window' parameter to `no-delete-other-windows' (see the discussion in Bug#27999 for the rationale of this change). * doc/lispref/windows.texi (Deleting Windows) (Frame Layouts with Side Windows, Window Parameters): Rename `no-delete-other-window' to `no-delete-other-windows'. 2017-08-19 Alex Schroeder Use define-minor-mode for rcirc-omit-mode 2017-08-19 Paul Eggert Clarify behavior of symlinks and directories * doc/lispref/files.texi (Saving Buffers): Document how functions like rename-file work with symlinks and directories. This patch attempts to document the current behavior better, in preparation for possibly changing it. See Bug#27986. 2017-08-19 Paul Eggert Fix recently-introduced file descriptor leak * src/fileio.c (Fmake_temp_file_internal): Don’t leak a file descriptor if write_region signals an error. 2017-08-19 Paul Eggert Improve make-temp-file performance on local files * lisp/files.el (make-temp-file): Let make-temp-file-internal do the work of inserting the text. * src/fileio.c (Fmake_temp_file_internal): New arg TEXT. All callers changed. 2017-08-19 Noam Postavsky Don't lose arguments to eshell aliases (Bug#27954) * lisp/eshell/em-alias.el (eshell-maybe-replace-by-alias): Use ARGS. 2017-08-19 Ted Zlatanov * lisp/files.el (make-temp-file): Fix directory use case. 2017-08-19 Ted Zlatanov Fix and document make-temp-file optional text parameter * lisp/files.el (make-temp-file): Fix initial TEXT parameter. (files--make-magic-temp-file): Support optional TEXT parameter. * etc/NEWS: Document it. * doc/lispref/files.texi: Document it. * test/lisp/auth-source-tests.el: Minor reformat. 2017-08-19 Ted Zlatanov * test/lisp/auth-source-tests.el: Avoid `string-join' to be simple. * test/lisp/auth-source-tests.el: Minor cleanups to use CL. 2017-08-19 João Távora Fix default value of electric-pair-pairs and electric-pair-text-pairs (Bug#24901) A previous change, titled "Add support for curly quotation marks to electric-pair-mode", attempted to add these characters to the default value of these variables. But it did so in a quoted list, preventing evaluation of the relevant expressions and resulting in an invalid format. * lisp/elec-pair.el (electric-pair-pairs, electric-pair-text-pairs): Use backquote and comma. 2017-08-19 Noam Postavsky * lisp/elec-pair.el (electric-pair-text-pairs): Don't autoload (Bug#24901). * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Require `elec-pair' explicitly in the interactive case. 2017-08-19 Mats Lidell * etc/tutorials/TUTORIAL.sv: synced with TUTORIAL 2017-08-19 Ted Zlatanov Add auth-source tests and codify its API better The auth-source behavior was unclear in some API use cases, so these extra tests codify and test it. For details see https://github.com/DamienCassou/auth-password-store/issues/29 * lisp/files.el (make-temp-file): Add new initial TEXT parameter. * test/lisp/auth-source-tests.el (auth-source-test-searches): Add auth-source tests and simplify them with the new `make-temp-file'. 2017-08-18 Eli Zaretskii Don't call the same hook twice due to obsolete aliases * lisp/international/robin.el (robin-activate): * lisp/international/quail.el (quail-activate): * lisp/international/mule-cmds.el (deactivate-input-method): * lisp/emulation/viper-init.el (viper-deactivate-input-method): Don't call the same hook twice, when the obsolete and the advertised symbols are aliased. (Bug#28118) 2017-08-18 Felipe Ochoa (tiny change) A new face for show-paren in expression mode * lisp/faces.el (show-paren-match-expression): Define the new face. * lisp/paren.el (show-paren-function): Apply the different face when in expression mode. (Bug#28047) 2017-08-18 Eli Zaretskii Non-ASCII support for man page section and header names * lisp/man.el (Man-name-regexp, Man-page-header-regexp) (Man-heading-regexp): Replace ASCII character classes by equivalent classes that allow non-ASCII characters. Suggested by Grégory Mounié . (Bug#27978) 2017-08-18 Eli Zaretskii Implement HiDPI support for underwave on MS-Windows * src/w32term.c (x_get_scale_factor): New function. (w32_draw_underwave): Use it. * src/xterm.c (x_draw_underwave): Offset the wave starting point to make it identical with original code. 2017-08-18 Stephen Pegoraro (tiny change) Support HiDPI displays for wave style underlines * src/xterm.c (x_draw_underwave): Compute height, length and thickness based on scale factor. (x_get_scale_factor): New function. 2017-08-18 Bastien Delete library-of-babel.org * etc/org/library-of-babel.org: Delete file. 2017-08-18 Glenn Morris * doc/emacs/files.texi (Copying and Naming): Avoid confusing texi2pdf. 2017-08-18 Noam Postavsky Remove custom version parsing from epg-config.el (Bug#27963) * lisp/epg-config.el (epg-config--compare-version) (epg-config--parse-version): Remove. (epg-check-configuration): Use `version<=' instead. 2017-08-18 Mark Oteiza Treat control characters in JSON strings as invalid * lisp/json.el (json-peek): Reduce to following-char. (json-pop, json-read): Zero (null char) means end of file. (json-read-escaped-char): Delimit URL properly. (json-read-string): Signal error for ASCII control characters. * test/lisp/json-tests.el (test-json-peek): Check for zero instead of :json-eof symbol. (test-json-read-string): New test for control characters in JSON strings. 2017-08-17 Eli Zaretskii Support Posix semantics of 'rename' on MS-Windows * src/w32.c (sys_rename_replace): Support Posix semantics of 'rename': return an error if OLD is a directory while NEW is not, or vice versa. 2017-08-17 Eli Zaretskii * src/w32.c (sys_rename_replace): Support renaming a directory. 2017-08-17 Eli Zaretskii Fix the MS-Windows build * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_open): Omit Gnulib module 'open'. * lib-src/etags.c (O_CLOEXEC) [WINDOWSNT]: Restore definition. 2017-08-17 João Távora Add flymake-backends defcustom * lisp/progmodes/flymake-proc.el (flymake-proc-can-syntax-check-buffer): Rename from flymake-can-syntax-check-file. Suitable for adding to flymake-backends. (flymake-proc-start-syntax-check): Rename from flymake-start-syntax-check. Don't check again if buffer can be checked. (add-to-list flymake-backends): Hook only flymake-ui.el * lisp/progmodes/flymake-ui.el (flymake-backends): New defcustom. (flymake-on-timer-event, flymake-after-change-function) (flymake-after-save-hook, flymake-find-file-hook): Call new flymake--start-syntax-check-buffer and flymake--can-syntax-check-buffer. (flymake-mode): Call flymake--can-syntax-check-buffer and set flymake-backend. (flymake--backend): New buffer-local variable. 2017-08-17 João Távora Split flymake.el into flymake-proc.el and flymake-ui.el flymake.el is now a stub that requires both files. * lisp/progmodes/flymake-proc.el: New file. * lisp/progmodes/flymake-ui.el: New file. * lisp/progmodes/flymake.el: Split into flymake-ui.el and flymake-proc.el. Require both files. 2017-08-17 Michael Albinus Set `default-directory' for watchdog in tramp-test.el * test/lisp/net/tramp-tests.el (tramp-test36-asynchronous-requests): Set `default-directory' for watchdog. 2017-08-17 Andreas Schwab * lisp/term/konsole.el: New file. 2017-08-17 Noam Postavsky * lisp/woman.el (woman-push, woman-pop): Remove. (Bug#27962) (woman2-RS): Use plain `push' instead of `woman-push'. (woman2-RE): Conditionally `pop' instead of `woman-pop'. 2017-08-16 Paul Eggert Merge from Gnulib; use ‘open’ for O_CLOEXEC This incorporates: 2017-08-15 renameat: ensure declaration in on NetBSD 2017-08-15 extensions: enable NetBSD specific extensions 2017-08-14 open: support O_CLOEXEC 2017-08-13 reallocarray: new module * admin/merge-gnulib (AVOIDED_MODULES): Remove ‘open’, since it now supports O_CLOEXEC and this simplifies Emacs. * build-aux/config.guess, lib/fcntl.in.h, lib/stdio.in.h: * lib/stdlib.in.h, m4/extensions.m4, m4/stdlib_h.m4: Copy from Gnulib. * lib/cloexec.c, lib/cloexec.h, lib/open.c: * m4/mode_t.m4, m4/open-cloexec.m4, m4/open.m4: New files, copied from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib-src/etags.c (O_CLOEXEC) [WINDOWSNT]: Remove, as Gnulib does this for us. * src/filelock.c (create_lock_file): * src/sysdep.c (emacs_open, emacs_pipe): Don’t worry about O_CLOEXEC == 0, as Gnulib no longer sets it to 0. 2017-08-16 Alan Third Charles A. Roelli Allow use of run-time OS version checks on macOS (bug#27810) * src/nsterm.h (NSWindowTabbingMode): Define in pre-Sierra macOS. (MAC_OS_X_VERSION_10_6, MAC_OS_X_VERSION_10_7, MAC_OS_X_VERSION_10_8, MAC_OS_X_VERSION_10_9, MAC_OS_X_VERSION_10_12, HAVE_NATIVE_FS): Remove defines. (NSWindowStyleMaskFullScreen, NSWindowCollectionBehaviorFullScreenPrimary, NSApplicationPresentationFullScreen, NSApplicationPresentationAutoHideToolbar): Define in macOS 10.6. * src/nsterm.m (colorForEmacsRed, colorUsingDefaultColorSpace, check_native_fs, ns_read_socket, ns_select, runAlertPanel, initFrameFromEmacs, windowDidMiniaturize, windowDidEnterFullScreen, windowDidExitFullScreen, isFullscreen, updateCollectionBehavior, toggleFullScreen, constrainFrameRect, scrollerWidth, syms_of_nsterm): Allow use of run-time checks and replace version check macros. * src/nsfns.m (ns_screen_name): Use run-time OS version checks. * src/macfont.m (macfont_draw): Use run-time OS version checks. * src/nsmenu.m (menuWillOpen): Use run-time OS version checks. 2017-08-16 Alan Third Add multiframe image support to NS port (bug#21714) * src/nsimage.m (ns_load_image): Handle multiple frames. (EmacsImage::getMetadata, EmacsImage::setFrame): New functions. * src/nsterm.h (EmacsImage::getMetadata, EmacsImage::setFrame): New function prototypes. 2017-08-16 Tino Calancha files-tests.el: Remove unused lexical variable * test/lisp/files-tests.el (file-test--do-local-variables-test); Remove unused var 'files-test-queried'. 2017-08-16 Michael Albinus * doc/emacs/files.texi (Copying and Naming): Mention restrictions to add-name-to-file and make-symbolic-link on remote systems. 2017-08-16 Michael Albinus * lisp/net/ange-ftp.el (ange-ftp-skip-msgs): Further support ftp-ssl. 2017-08-16 Noam Postavsky Add tests for previous commit * test/lisp/progmodes/elisp-mode-tests.el (elisp-mode-tests--face-propertized-string): New function. (elisp--highlight-function-argument-indexed) (elisp--highlight-function-argument-keyed-1) (elisp--highlight-function-argument-keyed-2): New tests. 2017-08-16 Thierry Volpiatto Fix eldoc highlighting for &key args (Bug#27272) * lisp/progmodes/elisp-mode.el (elisp--highlight-function-argument): Only switch to keyword-based searching if INDEX point beyond `&key' in the argument list. All arguments prior to the `&key' are position based. Additionally, be more strict about what is a keyword when searching for the current keyword. 2017-08-15 Paul Eggert Do not assume regular Git .git/hooks dir Apparently Gitlab doesn’t create .git/hooks, like regular Git does. Problem reported by Ted Zlatanov in: https://lists.gnu.org/r/emacs-devel/2017-08/msg00380.html * autogen.sh (git_sample_hook_src): New function. Use it to work even if .git/hooks or its samples do not exist. 2017-08-15 Paul Eggert New manual section "Copying and Naming" * doc/emacs/files.texi (Copying and Naming): New section, split off from Misc File Ops and containing the operations that copy, name or rename files. This fixes some confusion caused by the incorrect phrase "The same rule applies to all the remaining commands in this section" in the old manual. This change does not affect the confusion about directories (see Bug#27986 for ongoing discussion). 2017-08-15 Eli Zaretskii Fix the MS-Windows build * src/fileio.c (Frename_file): Don't use ENOTSUP if it is equal to ENOSYS. (Bug#28097) (Bug#27986) 2017-08-15 Ted Zlatanov * .gitlab-ci.yml: run "autogen.sh autoconf" to avoid Git. * .gitlab-ci.yml: add Git to the installed packages. 2017-08-15 Simen Heggestøyl Support indentation of detached Less CSS rulesets * lisp/textmodes/css-mode.el (css-smie-rules): Provide better support for indentation of detached rulesets passed to Less mixins. * test/manual/indent/less-css-mode.less: New file. 2017-08-15 Simen Heggestøyl Fixes and tweaks for the new Less CSS mode * etc/NEWS: Add an entry for the new mode. * lisp/textmodes/less-css-mode.el (less-css): Tweak docstring. (less-css-lessc-command): Tweak docstring. Don't mark it as safe. Don't autoload. (less-css-compile-at-save, less-css-lessc-options) (less-css-output-directory): Tweak docstrings. Don't autoload. (less-css-output-file-name): Tweak docstring. Don't mark it as safe. (less-css-input-file-name): Tweak docstring. Don't autoload. (less-css-compile-maybe): Use `when' for one-armed `if'. (less-css--output-path): Tweak docstring. (less-css--maybe-shell-quote-command): Remove function. (less-css-compile): Don't autoload. Tweak docstring and message. Fix compiler warning. Use `string-join' instead of `mapconcat'. (less-css-font-lock-keywords): Use `font-lock-variable-name-face' for variables. (less-css-mode-syntax-table, less-css-mode-map): New variables. (less-css-mode): Change status line mode name from "LESS" to "Less". Tweak docstring. Move syntax table definitions to `less-css-mode-syntax-table'. (less-css-indent-line): Remove function. 2017-08-15 Steve Purcell New major mode: Less CSS mode * lisp/textmodes/less-css-mode.el: New file. 2017-08-15 Tino Calancha archive-int-to-mode: Fix order of testing S_ISUID, S_ISGID bits * lisp/arc-mode.el (archive-int-to-mode): Swap order of 2048 and 1024 tests (Bug#28092). * test/lisp/arc-mode-tests.el (arc-mode-test-archive-int-to-mode): Update test. 2017-08-15 Paul Eggert Improve rename-file port to macOS * src/fileio.c (Frename_file): On macOS, renameat_noreplace can fail with errno == ENOTSUP on file systems where it is not supported, according to the Apple documentation. 2017-08-15 Noam Postavsky Speed up ./configure with more caching (Bug#27960) * configure.ac: Cache the 'GTK compiles', 'GSettings is in gio', 'LN_S', '-znocombreloc', 'sysinfo', 'gcc autodepends', '-b link', 'Xkb', 'Xpm preprocessor', 'tputs library' 'GLib', 'signals via characters', and 'Windows API header' checks. Remove pause after warning about GTK bug. 2017-08-15 Paul Eggert Improve rename-file behavior on macOS Problem reported by Philipp Stephani (Bug#27986). * src/fileio.c (Frename_file): Worry about file name case sensitivity only if CYGWIN or DOS_NT. * src/sysdep.c (renameat_noreplace): Use renameatx_np on macOS, since this provides the necessary atomicity guarantees. 2017-08-14 Glenn Morris Clean up temp files after some tests * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--with-temp-file): Also delete .elc file if present. * test/lisp/progmodes/etags-tests.el (etags-buffer-local-tags-table-list): Delete temp file at end. 2017-08-14 Eli Zaretskii Implement renameat_noreplace for MS-Windows * src/sysdep.c (renameat_noreplace) [WINDOWSNT]: Implement minimal emulation for MS-Windows. (Bug#27986) 2017-08-14 Eli Zaretskii Fix 'rename' on MS-Windows * src/w32.c (sys_rename_replace): Use the FORCE argument only if the primitive rename errors out with EEXIST. 2017-08-14 Michael Albinus * lisp/net/ange-ftp.el (ange-ftp-skip-msgs): Support ftp-ssl. 2017-08-14 Mark Oteiza Tiny JSON performance improvement Get rid of some needless uses of apply. Measuring with (benchmark-run 10 (json-read-file "test.json")) showed 1.5-2.5% reduction of execution time. * lisp/json.el (json-peek): Nix let-binding. (json-read-string): Use concat for making a string from chars. (json-read-array): Use cond and more appropriate conversion instead of blindly applying. 2017-08-13 Paul Eggert Be consistent in spelling 'ok-if-already-exists'. 2017-08-13 Alexander Gramiak Use 'header-line-highlight' face in proced and erc * lisp/erc/erc-list.el (erc-list-button): * lisp/proced.el (proced-format): Use the 'header-line-highlight face. (Bug#28033) 2017-08-13 Ulf Jasper Remove feeds with dead uris from newsticker--raw-url-list-defaults * lisp/net/newst-backend.el (newsticker--raw-url-list-defaults): Remove feeds with dead uris. 2017-08-13 Eli Zaretskii Fix vertical cursor motion when cursor is on the fringe * lisp/simple.el (line-move-visual): Fix an off-by-one error in setting temporary-goal-column when newline overflows into the fringe. Support that use case in R2L paragraphs as well. 2017-08-13 Eli Zaretskii Fix vertical cursor motion across too wide images * src/indent.c (Fvertical_motion): If lines are truncated and we end up beyond the right margin of the window, don't assume we are in the next screen line, unless VPOS actually says so. (Bug#28071) 2017-08-13 Tino Calancha Add test suites for arc-mode and tar-mode * test/lisp/arc-mode-tests.el (arc-mode-test-archive-int-to-mode) * test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode): New tests. 2017-08-13 Tino Calancha * lisp/tar-mode.el (tar-grind-file-mode): Fix docstring 2017-08-13 Ulf Jasper Fix uri of Emacs Wiki * lisp/net/newst-backend.el (newsticker--raw-url-list-defaults): Fix uri of Emacs Wiki. (Bug#27981) 2017-08-13 Paul Eggert Fix make-temp-file bug with ""/"."/".." prefix The bug with "." and ".." has been present for a while; I introduced the bug with "" earlier today in my patch for Bug#28023. * lisp/files.el (make-temp-file): Do not use expand-file-name if PREFIX is empty or "." or "..", as it does the wrong thing. Compute absolute-prefix here ... (files--make-magic-temp-file): ... instead of here ... * src/fileio.c (Fmake_temp_file_internal): ... or here. * lisp/files.el (make-temp-file): If the prefix is empty, append "/" to the absolute prefix so that the new files are children rather than siblings of temporary-file-directory. This fixes a bug introduced in the previous change. * test/lisp/files-tests.el (files-test-make-temp-file-empty-prefix): New test, for the bug. 2017-08-13 Paul Eggert Improve make-temp-file performance on local files For the motivation behind this patch, please see Bug#28023 and: http://emacshorrors.com/posts/make-temp-name.html Although, given the recent changes to Tramp, the related security problem in make-temp-file is already fixed, make-temp-file still has several unnecessary system calls. In the typical case on GNU/Linux, this patch replaces 8 syscalls (symlink, open, close, readlinkat, uname, getpid, unlink, umask) by 2 (open, close). * admin/merge-gnulib (GNULIB_MODULES): Add tempname, now that Emacs is using it directly. * configure.ac (AUTO_DEPEND): Remove AC_SYS_LONG_FILE_NAMES; no longer needed. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lisp/files.el (files--make-magic-temp-file): Rename from make-temp-file. (make-temp-file): Use make-temp-file-internal for non-magic file names. * src/fileio.c: Include tempname.h. (make_temp_name_tbl, make_temp_name_count) (make_temp_name_count_initialized_p, make_temp_name): Remove. (Fmake_temp_file_internal): New function. (Fmake_temp_name): Use it. * src/filelock.c (get_boot_time): Use Fmake_temp_file_internal instead of make_temp_name. 2017-08-12 Paul Eggert Document internal-use naming conventions * doc/lispref/functions.texi (Function Names): * doc/lispref/variables.texi (Tips for Defining): Document naming conventions for internal-use functions and vars. See Bug#28023#59. 2017-08-12 Paul Eggert Simplify re and document 'autoconf.sh all' * GNUmakefile (ALL_IF_GIT): Remove; no longer needed, now that ./autogen.sh defaults to "all". All uses removed. * README: Mention autoconf.sh's effect on Git configuration. 2017-08-12 Paul Eggert Default autogen.sh to 'all' This addresses a problem noted by RMS in: https://lists.gnu.org/r/emacs-devel/2017-08/msg00052.html * autogen.sh (do_git): Set to true if this script is invoked with no arguments and there is a .git subdirectory. 2017-08-12 Paul Eggert Adjust jka-compr to recent Tramp changes. * lisp/jka-compr.el (jka-compr-write-region): Two new args LOCKNAME and MUSTBENEW. 2017-08-12 Eli Zaretskii Improve doc strings of 2 functions in simple.el * lisp/simple.el (beginning-of-visual-line) (move-beginning-of-line): Doc fix. Reported by Justin Burkett . 2017-08-12 Eli Zaretskii Fix completion on directory names on MS-DOS/MS-Windows * src/msdos.c (faccessat): * src/w32.c (faccessat): Support relative file names, and add D_OK to 'mode' if the argument is a directory. This unbreaks file-name completion when the completion result is a directory. 2017-08-12 Michael Albinus Implement EXCL of write-region for Tramp * lisp/net/ange-ftp.el (ange-ftp-write-region): * lisp/net/tramp-adb.el (tramp-adb-handle-write-region) * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region) * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Implement MUSTBENEW. * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file) * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link) (tramp-sh-handle-add-name-to-file) (tramp-do-copy-or-rename-file) * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link): Adapt error message for `file-already-exists'. * src/lisp.h: * src/eval.c (call8): New function. * src/fileio.c (write_region): Pass also lockname and mustbenew to the file name handler. * test/lisp/net/tramp-tests.el (tramp-test10-write-region): Add tests for MUSTBENEW. 2017-08-12 Eli Zaretskii Adapt Proced display to display-line-numbers * lisp/proced.el (proced-header-line): Account for the width taken by display-line-numbers. (Bug#27895) 2017-08-12 Eli Zaretskii Adapt tabulated list when display-line-number is turned on * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Add a hook to revert the display when display-line-numbers is turned on. (Bug#27895) 2017-08-12 Eli Zaretskii Use Gnulib 'tempname' on MS-Windows * lib-src/ntlib.h (mkdir, open): Remove redefinitions. They are now in nt/inc/ms-w32.h. * lib-src/ntlib.c (sys_mkdir, sys_open): New functions. (mkostemp): Remove. * src/w32.c (mkostemp): Remove. (sys_mkdir): Accept a second (unused) argument. * src/fileio.c (Fmake_directory_internal): Remove the WINDOWSNT specific call to mkdir. (Bug#28023) * nt/inc/ms-w32.h (mkdir): Remove from "#ifdef emacs" and redefine to accept 2 arguments. (open): Remove from "#ifdef emacs". * nt/mingw-cfg.site (ac_cv_func_mkostemp): Remove. * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_mkostemp) (OMIT_GNULIB_MODULE_tempname): Remove. 2017-08-12 Alexander Gramiak Add new face 'header-line-highlight' * lisp/faces.el: Define the face. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header): * lisp/info.el (Info-fontify-node): Use the new face. * doc/emacs/display.texi (Standard Faces): * etc/NEWS: Document the new face. (Bug#28033) 2017-08-12 Arash Esbati Make a case-sensitive match for strings * lisp/textmodes/reftex.el (reftex-typekey-check): Temporarily let-bind `case-fold-search' to nil in order to be case-sensitive when matching a string. (Bug#27518) 2017-08-11 Stephen Berman Fix a minor todo-mode regression * lisp/calendar/todo-mode.el (todo-get-overlay): Wrap in save-excursion. This fixes a regression introduced by the fix for bug#27609, whereby trying to raise the priority of the first item or lower the priority of the last item, which should be noops, moves point to the item's start. Clarify comment. * test/lisp/calendar/todo-mode-tests.el (todo-test-raise-lower-priority): Add test cases for trying to raise first item and lower last item. (with-todo-test): Clear abbreviated-home-dir, since we change HOME. (todo-test-toggle-item-header02): Remove ":expected-result :failed" and tests of point after todo-next-item, since the effect when using Todo mode is not reproducible in the test environment. Add commentary about this. 2017-08-11 Paul Eggert Improve performance for rename-file etc. Although this does not fix Bug#27986, it is a step forward. I plan to propose a more-significant patch later. * lisp/files.el (directory-name-p): Move from here ... * src/fileio.c (Fdirectory_name_p): ... to here. (directory_like, cp_like_target): New static functions. (Fcopy_file, Frename_file, Fadd_name_to_file) (Fmake_symbolic_link): Use them, to avoid directory-testing syscalls on file names that must be directories if they exist. Omit unnecessary initializations and CHECK_STRING calls. (Frename_file): Don't call file_name_case_insensitive_p twice on the same file. Compare both file names expanded, instead of the old name expanded and the new one unexpanded. 2017-08-11 Noam Postavsky Respect buffer-local value of tags-table-list (Bug#27772) * lisp/progmodes/etags.el (visit-tags-table-buffer): Save the current buffer around the `tags-table-including' calls so as to get buffer local variables from the right buffer later. * test/lisp/progmodes/etags-tests.el (etags-visit-tags-table-buffer): New test. * test/lisp/progmodes/etags-tests.el (etags-tests--test-dir): New constant. (etags-bug-158, etags-bug-23164): Use it so that when running the test interactively, setting EMACS_TEST_DIRECTORY is not needed. 2017-08-10 Tom Tromey Fix auto-filling regression Bug#28003 * lisp/newcomment.el (comment-indent-new-line): Check comment-auto-fill-only-comments. Reverts earlier change. * lisp/simple.el (internal-auto-fill): Call auto-fill-function, not do-auto-fill. 2017-08-09 Paul Eggert Merge from gnulib This incorporates: 2017-08-09 tempname: do not depend on secure_getenv 2017-08-08 extensions: add _OPENBSD_SOURCE 2017-08-06 manywarnings: Add support for C++ 2017-08-06 warnings, manywarnings: Add support for multiple languages * admin/merge-gnulib: Don't use m4/manywarnings-c++.m4. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/secure_getenv.c, m4/secure_getenv.m4: Remove. * lib/tempname.c, m4/extensions.m4, m4/manywarnings.m4, m4/warnings.m4: Copy from gnulib. 2017-08-09 Eli Zaretskii Fix crashing emacs-module tests on MS-Windows * src/w32fns.c (syms_of_w32fns) : New variable. (emacs_abort): If w32-disable-abort-dialog is non-nil, abort right away, without displaying the Abort dialog, which waits for the user. * test/src/emacs-module-tests.el (module--test-assertion): Run the inferior Emacs with the w32 abort dialog disabled. Expect the status of the aborted Emacs sub-process to be 3 on MS-Windows and 2 on MS-DOS. 2017-08-09 Tino Calancha dired-delete-file: Dont't ask for empty dirs * lisp/dired.el (dired--yes-no-all-quit-help): New defun. (dired-delete-file): Use it. Dont't ask for empty dirs (Bug#27940). * test/lisp/dired-tests.el (dired-test-with-temp-dirs): New auxiliar macro. (dired-test-bug27940): Add new test. 2017-08-09 Tino Calancha Ask files for deletion in buffer order: top first, botton later * lisp/dired.el (dired-do-flagged-delete, dired-do-delete): Call `nreverse' t invert the output of `dired-map-over-marks'. 2017-08-09 Alexander Gramiak Use help-mode xrefs in describe-font * lisp/international/mule-diag.el (describe-font): Use help-setup-xref (Bug#27890). 2017-08-09 Katsumi Yamaoka Don't try to jump to non-existent part (bug#28013) * lisp/gnus/gnus-art.el (gnus-article-edit-part): Don't try to jump to the next part if there is the only one part in the article (bug#28013). 2017-08-08 Mark Oteiza Replace some uses of eval There are a number of places where eval is used unnecessarily to get or set the value of a symbol. * lisp/calendar/calendar.el (diary-date-forms): Use default-value in custom setter. * lisp/desktop.el (desktop-clear): Use set-default instead. * lisp/international/ogonek.el (ogonek-read-encoding): Use symbol-value. 2017-08-08 Mark Oteiza Convert uses of looking-at in viper-ex to following-char * lisp/emulation/viper-ex.el (viper-get-ex-token): Bind (following-char) and use it in the subsequent cond's clauses. (viper-ex, ex-quit, viper-get-ex-file): Use following-char instead. Convert single branch ifs to when 2017-08-08 Mark Oteiza Some cleanup in message.el * lisp/gnus/message.el (message-cross-post-insert-note): (message-strip-forbidden-properties): Mark unused args. (message-canlock-generate): Remove extinct variable sha1-maximum-internal-length. (message-make-mail-followup-to): Use loop's thereis clause. 2017-08-08 Paul Eggert Document make-temp-name magic limitations * doc/lispref/files.texi (Unique File Names): * src/fileio.c (Fmake_temp_name): Document that make-temp-name does not guarantee uniqueness on magic file names. 2017-08-08 Tom Tromey Show number of errors in compilation-mode mode-line Bug#25354 * lisp/progmodes/compile.el (compilation-num-errors-found): Provide default value. (compilation-num-warnings-found, compilation-num-infos-found): New defvars. (compilation-mode-line-errors): New defconst. (compilation-face): Remove. (compilation-type, compilation--note-type): New functions. (compilation-parse-errors): Call compilation--note-type. (compilation-start): Include compilation-mode-line-errors in mode-line-process. (compilation-setup): Initialize compilation-num-* variables to 0. (compilation-handle-exit): Include compilation-mode-line-errors in mode-line-process. * doc/emacs/building.texi (Compilation): Document new feature. 2017-08-08 Mark Oteiza Do some cleanup in mailcap.el * lisp/net/mailcap.el: Use lexical-binding. (mailcap--set-user-mime-data, mailcap-possible-viewers): Use pcase destructuring. (mailcap-mime-data): Remove some entries for ancient functions. (mailcap-parse-mailcaps, mailcap-mime-info): Nix single-branch ifs. (mailcap-parse-mimetype-file): Just use append. (mailcap-command-p): Remove unused function. 2017-08-08 Tino Calancha query-replace: Undo replacements performed with 'comma During a `query-replace', the char ',' replaces the character at point and doesn't move point; right after, the char 'u' must undo such replacement (Bug#27268). * lisp/replace.el (replace--push-stack): New macro extracted from `perform-replace'. (perform-replace): Use it. * test/lisp/replace-tests.el (query-replace--undo): Add test. 2017-08-08 Noam Postavsky Don't define gv expanders in compiler's runtime (Bug#27016) This prevents definitions being compiled from leaking into the current Emacs doing the compilation. * lisp/emacs-lisp/gv.el (gv-define-expander): Use function-put instead of `put' with `eval-and-compile'. * test/lisp/emacs-lisp/gv-tests.el: New tests. 2017-08-08 Noam Postavsky Let the cl-typep effects of defclass work during compilation (Bug#27718) * lisp/emacs-lisp/eieio.el (defclass): Use `define-symbol-prop' instead of `put'. * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-tests--dummy-function): Remove. (eieio-test-25-slot-tests, eieio-test-23-inheritance-check): Don't expect to fail if compiled. 2017-08-08 Stefan Monnier Noam Postavsky Let `define-symbol-prop' take effect during compilation * src/fns.c (syms_of_fns): New variable `overriding-plist-environment'. (Fget): Consult it. * lisp/emacs-lisp/bytecomp.el (byte-compile-close-variables): Let-bind it to nil. (byte-compile-define-symbol-prop): New function, handles compilation of top-level `define-symbol-prop' and `function-put' calls by putting the symbol setting into `overriding-plist-environment'. 2017-08-08 Gemini Lasswell Add a test of handling of circular values to testcover-tests * test/lisp/emacs-lisp-testcover-resources/testcases.el (testcover-testcase-cyc1): New function. (testcover-tests-circular-lists-bug-24402): New test. 2017-08-08 Noam Postavsky Don't error on circular values in testcover * lisp/emacs-lisp/testcover.el (testcover-after, testcover-1value): Consider circular lists to be non-equal instead of signaling error. 2017-08-08 Alexander Gramiak Catch argument and macroexpansion errors in ert This kludge catches errors caused by evaluating arguments in ert's should, should-not, and should-error macros; it also catches macroexpansion errors inside of the above macros (Bug#24402). * lisp/emacs-lisp/ert.el: (ert--should-signal-hook): New function. (ert--expand-should-1): Catch macroexpansion errors. * test/lisp/emacs-lisp/ert-tests.el (ert-test-should-error-argument) (ert-test-should-error-macroexpansion): Tests for argument and expansion errors. 2017-08-07 Reuben Thomas Revert "Add Enchant support to ispell.el (Bug#17742)" This reverts commit 7136e6723d87b51ae3089f5ceef6b14621bfaf87. 2017-08-07 Reuben Thomas Revert "Add support for arguments in ALTERNATE_EDITOR to emacsclient" This reverts commit 28f1fe97daa13e13714e6c43c9a6fbb0c0e99a26. 2017-08-07 Reuben Thomas Add support for arguments in ALTERNATE_EDITOR to emacsclient * lib-src/emacsclient.c (fail): Parse ALTERNATE_EDITOR, or corresponding command-line argument, into space-separated tokens. * etc/NEWS: Document. * test/lib-src/emacsclient-tests.el: Add a test. 2017-08-07 Reuben Thomas Add Enchant support to ispell.el (Bug#17742) * lisp/textmodes/ispell.el (ispell-program-name): Add “enchant”. (ispell-really-enchant): Add variable. (ispell-check-version): If using Enchant, check it’s new enough (at least 1.6.1). (Like the ispell check, this is absolute: cannot work without.) (ispell-enchant-dictionary-alist): Add variable. (ispell-find-enchant-dictionaries): Add function, based on ispell-find-aspell-dictionaries. (ispell-set-spellchecker-params): Allow dictionary auto-detection for Enchant, and call ispell-find-enchant-dictionaries to find them. Use old ispell name to locale mapping code for Enchant too. (ispell-send-replacement): Make it work with Enchant. 2017-08-07 Reuben Thomas Allow async command output buffer to be shown only on output * lisp/simple.el (async-shell-command-display-buffer): Add defcustom. (shell-command): Use the new defcustom to determine whether to show the buffer immediately, or add a process filter that shows it only when there is some output. * etc/NEWS: Document the new variable. * doc/emacs/misc.texi: Likewise. Thanks to Juri Linkov and Eli Zaretskii for advice and guidance. 2017-08-07 Eli Zaretskii Fix infinite recursion under prettify-symbols-mode and linum-mode * src/xdisp.c (get_overlay_strings_1) (handle_single_display_spec, push_prefix_prop): Invalidate the composition information before starting to iterate on a string. Otherwise we might think in set_iterator_to_next that we are delivering characters from a composition, and do all kinds of nonsensical things, like over-step the string end. (Bug#27761) 2017-08-07 Stefan Monnier * lisp/gnus/gnus-bcklg.el (gnus-backlog-request-article): Fix thinko. 2017-08-07 Martin Rudalics Fix doc-string of `delete-other-windows' * lisp/window.el (delete-other-windows): Fix doc-string. 2017-08-07 Paul Eggert Fix a couple more make-temp-file races * lisp/files.el (basic-save-buffer-2, move-file-to-trash): Use make-temp-name, not make-temp-file with retry. (basic-save-buffer-2): Use condition-case, instead of unwind-protect with a success flag. 2017-08-07 Noam Postavsky Merge null and without-null regexp alists (Bug#27840, Bug#27873) * lisp/progmodes/grep.el (grep-mode-font-lock-keywords): Allow for NUL characters following filename in grep context lines. (grep--regexp-alist-column, grep--regexp-alist-bin-matcher) (grep-with-null-regexp-alist, grep-fallback-regexp-alist): Remove. (grep-regexp-alist): Recombine their contents here. (grep-mode): * lisp/cedet/semantic/symref/grep.el (semantic-symref-parse-tool-output-one-line): * lisp/progmodes/xref.el (xref-collect-matches): Use the variable `grep-regexp-alist' rather than the function. 2017-08-07 Paul Eggert Fix some crashes on self-modifying Elisp code Prompted by a problem report by Alex in: https://lists.gnu.org/r/emacs-devel/2017-08/msg00143.html * src/eval.c (For, Fprogn, Fsetq, FletX, eval_sub): Compute XCDR (x) near XCAR (x); although this doesn't fix any bugs, it is likely to run a bit faster with typical hardware caches. (Fif): Use Fcdr instead of XCDR, to avoid crashing on self-modifying S-expressions. (Fsetq, Flet, eval_sub): Count the number of arguments as we go instead of trusting an Flength prepass, to avoid problems when the code is self-modifying. (Fquote, Ffunction, Fdefvar, Fdefconst): Prefer !NILP to CONSP where either will do. This is mostly to document the fact that the value must be a proper list. It's also a tiny bit faster on typical machines nowadays. (Fdefconst, FletX): Prefer XCAR+XCDR to Fcar+Fcdr when either will do. (eval_sub): Check that the args are a list as opposed to some other object that has a length. This prevents e.g. (if . "string") from making Emacs dump core in some cases. * test/src/eval-tests.el (eval-tests--if-dot-string) (eval-tests--let-with-circular-defs, eval-tests--mutating-cond): New tests. 2017-08-06 Eli Zaretskii * etc/tutorials/TUTORIAL.he: Update to match recent changes to TUTORIAL. 2017-08-06 Tino Calancha Minor tweak in a dired test * test/lisp/dired-tests.el (dired-test-bug27968): Ensure the new header has different length than the original one. 2017-08-06 Tino Calancha dired-delete-file: Do not TAB complete the user answer This action might delete directories containing valuable information. Before previous commit, we prompted users with `yes-or-no-p' which doesn't TAB complete the user answer. Let's play safe and keep requiring full answers. * lisp/dired.el (dired-delete-file): Use `read-string' instead of `completing-read' to read the user answers. 2017-08-06 Tino Calancha dired-do-delete: Allow to delete dirs recursively without prompts * lisp/dired.el (dired-delete-file): Accept 2 additional answers: 'all', to delete all directories recursively and no prompt anymore. 'quit', to cancel directory deletions (Bug#27940). Show help message when user inputs 'help'. (dired-do-flagged-delete): Bind locally dired-recursive-deletes so that we can overwrite its global value. Wrapp the loop within a catch '--delete-cancel to catch when the user abort the directtry deletion. * doc/emacs/dired.texi (Dired Deletion): Update manual. * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 26.1): Announce this change. 2017-08-06 Paul Eggert Fix a couple of make-temp-file races * lisp/emacs-lisp/autoload.el (autoload--save-buffer): * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use make-temp-file, not make-temp-name, to avoid an unlikely race that could lose data. Remove the deletion hook as quickly as possible after the file is renamed; though a race still remains here, it is smaller than before. 2017-08-06 Tino Calancha Dired w/ eshell-ls: Handle shell wildcards in file name * lisp/eshell/em-ls.el (eshell-ls--insert-directory): Use eshell-extended-glob (Bug#27844). * test/lisp/dired-tests.el (dired-test-bug27844): Add test. 2017-08-06 Tino Calancha dired-revert: save line numbers instead of positions Positions might change if the length of one dired header line changes; this happen, for instance, if we add new files. Instead, line numbers are invariant under shrinks/enlargements of the file header. https://lists.gnu.org/r/emacs-devel/2017-07/msg01092.html * lisp/dired.el (dired-save-positions): Save the line numbers at point. (dired-restore-positions): Use forward-line to restore the original position (Bug#27968). * test/lisp/dired-tests.el (dired-test-bug27968): Add test. 2017-08-06 Tom Tromey Respect comment-auto-fill-only-comments Respect comment-auto-fill-only-comments when auto-filling and a comment syntax is defined. * lisp/newcomment.el (comment-indent-new-line): Do not check comment-auto-fill-only-comments. * lisp/simple.el (internal-auto-fill): New defun. * src/cmds.c (internal_self_insert): Call Qinternal_auto_fill, not auto_fill_function. (syms_of_cmds): Define Qinternal_auto_fill. 2017-08-05 Richard Stallman * etc/tutorials/TUTORIAL: Update. 2017-08-05 Eli Zaretskii Unify CNS11643-15 in a way that avoids segfaults * lisp/international/mule-conf.el: Redo unification of cns11643-15. (Bug#27964) (chinese-cns11643-15): Add the missing :unify-map attribute. 2017-08-05 Eli Zaretskii Avoid segfaults while producing Punct.el * lisp/international/mule-conf.el: Undo unification of cns11643-15, as that causes segfaults during bootstrap. (Bug#27964) 2017-08-05 Eli Zaretskii Make header line in some modes be sensitive to display-line-numbers * lisp/ruler-mode.el (ruler-mode-ruler, ruler-mode-window-col): * lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header) (tabulated-list-print-entry): Account for the width taken by line-number display. (Bug#27895) 2017-08-05 Eli Zaretskii Fix a bug in 'generate-new-buffer-name' * src/buffer.c (Fgenerate_new_buffer_name): Test IGNORE for being nil before calling string-equal, since the latter will compare "nil and 'nil' as equal. (Bug#27966) * test/src/buffer-tests.el (test-generate-new-buffer-name-bug27966): New test. 2017-08-05 Eli Zaretskii Unify CNS11643-15 * lisp/international/mule-conf.el (chinese-cns11643-15): Add a unify-charset form for it. (Bug#27964) 2017-08-05 Eli Zaretskii Improve test of error message when Emacs cannot be suspended * lisp/term/x-win.el (x-win-suspend-error): * lisp/term/ns-win.el (ns-suspend-error): Improve the error message. (Bug#27901) 2017-08-05 Alexander Gramiak Make "C-h o" show faces as well as variables * lisp/faces.el (describe-face): Return (buffer-string). Reorder the placement of variables/faces in describe-symbol, to put more emphasis on the variable entry rather than the face. (Bug#24543) 2017-08-05 Eli Zaretskii Fix files-tests.el for MS-Windows * test/lisp/files-tests.el (files-tests--file-name-non-special--subprocess): Fix this test for MS-Windows. 2017-08-05 Eli Zaretskii Improve documentation of 'region-extract-function' * lisp/simple.el (region-extract-function): Rename the argument to METHOD. Doc fix. (Bug#27927) 2017-08-05 Paul Eggert Merge from gnulib This incorporates: 2017-08-04 manywarnings: port to 64-bit GCC builds of Emacs 2017-08-01 manywarnings: port to 32-bit GCC bug * lib/gnulib.mk.in: Regenerate. * m4/manywarnings.m4: Copy from gnulib. 2017-08-05 Paul Eggert Port recent rename changes to Ubuntu 14.04 * src/sysdep.c (renameat_noreplace) [!RENAME_NOREPLACE]: Don’t use syscall. Problem reported by Tino Calancha (Bug#27946#10). 2017-08-05 Tino Calancha insert-directory-wildcard-in-dir-p: Tweak regexp This function must return non-nil for a wildcard like '/*/*.txt'. * lisp/files.el (insert-directory-wildcard-in-dir-p): Adjust regexp. * test/lisp/files-tests.el (files-tests--insert-directory-wildcard-in-dir-p): Add test. 2017-08-04 Toby S. Cubitt Implement iterator generator for avl-trees. * lisp/emacs-lisp/avl-tree.el (avl-tree-iter): New iter-defun. 2017-08-04 Tino Calancha ls-lisp: Drop eshell dependencies Use 'file-expand-wildcards' instead of 'eshell-extended-glob' to expand the wildcards. Suggested by Fabrice Popineau in: https://lists.gnu.org/r/emacs-devel/2017-08/msg00108.html * lisp/ls-lisp.el (ls-lisp--dired): Use file-expand-wildcards. 2017-08-04 Tino Calancha Fix dired-test-bug27631 on MS-Windows Skip the test if Dired use 'ls' emulation with lisp. The same bug is tested in their respective test suites: ls-lisp-tests.el and em-ls-tests.el. * test/lisp/dired-tests.el (dired-test-bug27631): Skip test if 'ls-lisp' or 'eshell' features are enabled. 2017-08-04 Eli Zaretskii Fix dired-test-bug25609 on MS-Windows * test/lisp/dired-tests.el (dired-test-bug25609): On MS-Windows, pass temporary files through file-truename, to avoid bogus failures due to file-name comparison as strings. 2017-08-04 Tino Calancha Fix 2 tests that fail in MS-Windows https://lists.gnu.org/r/emacs-devel/2017-08/msg00018.html * test/lisp/vc/ediff-ptch-tests.el (ediff-ptch-test-bug26084): Add comments to explain the test logic. Pass '--binary' option to 'patch' program in windows environments. Check explicitly that a backup is created before compare file contents. * test/lisp/dired-tests.el (dired-test-bug25609): Declare variable 'dired-dwim-target' right before the test. Add comments to explain the test logic. Ensure, before test the bug condition, that we are displaying the 2 dired buffers created in this test, and no other dired buffer is shown. 2017-08-04 Stefan Monnier * lisp/shell.el (explicit-shell-file-name): Mention shell-file-name * lisp/files.el (insert-directory): Don't hardcode "-c". * lisp/term.el (term, ansi-term): Use shell-file-name. 2017-08-04 Paul Eggert Fix version numbers for some GnuTLS features Problem reported by Glenn Morris (Bug#27708#58). * src/gnutls.c (HAVE_GNUTLS_X509_SYSTEM_TRUST): New macro. Use it instead of low-level version number checks. (HAVE_GNUTLS_AEAD): Move here from gnutls.h, and rename from HAVE_GNUTLS3_AEAD. All uses changed. Indent preprocessor lines. * src/gnutls.h (HAVE_GNUTLS3_CIPHER, HAVE_GNUTLS3_DIGEST) (HAVE_GNUTLS3_HMAC): Remove, since these were available before GnuTLS 3.0.0 and the code checks them only if HAVE_GNUTLS3 is defined. Remove all uses; this simplifies the code a bit. 2017-08-04 Paul Eggert Port recent rename changes to RHEL 7 + NFS Problem reported by Ted Zlatanov in: https://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html * src/fileio.c (Frename_file): On RHEL 7 + NFS, renameat2 can fail with errno == EINVAL when it is not supported. So treat that case like errno == ENOSYS. Also, when ok_if_already_exists is neither nil nor an integer, just call plain rename; this avoids an extra syscall to renameat2 when the latter fails with errno == EINVAL or ENOSYS or ENOENT. 2017-08-03 Paul Eggert Port GnuTLS usage to Ubuntu 16.04.2 LTS * src/gnutls.h (HAVE_GNUTLS3_AEAD): Define only if GnuTLS 3.5.1 or later, as opposed to the old 3.4.0 or later. 2017-08-03 Paul Eggert Simplify configuration of HAVE_GNUTLS3 etc. There's only one GnuTLS, so configuring these symbols at 'configure' time is overkill. Simplify things by moving their configuration to src/gnutls.h (Bug#27708). * configure.ac (HAVE_GNUTLS3, HAVE_GNUTLS3_HMAC, HAVE_GNUTLS3_AEAD) (HAVE_GNUTLS3_CIPHER, HAVE_GNUTLS3_DIGEST): Move these definitions from here ... * src/gnutls.h: ... to here, and simplify. 2017-08-03 Paul Eggert Default to --with-mailutils if it is installed * configure.ac (with_mailutils): Default to 'yes' if GNU Mailutils is installed. See: https://lists.gnu.org/r/emacs-devel/2017-08/msg00054.html 2017-08-02 Paul Eggert Clarify when autogen.sh should run only autoconf * Makefile.in (configure, bootstrap): Run ‘./autogen.sh autoconf’, not plain ‘./autogen.sh’, to make it clear that only autoconf-related tools should be run here. 2017-08-02 Toon Claes .gitlab-ci.yml: Use stretch Debian image instead of unstable 2017-08-02 Stephen Berman Add debugging messages to a Dired test * test/lisp/dired-tests.el (dired-test-bug27243-01): Log positions saved and restored by dired-revert to try and find out why the test fails on Hydra. 2017-08-02 Tino Calancha ls-lisp: Autoload call instead of cookie * lisp/ls-lisp.el (eshell-extended-glob): autoload call instead of cookie. 2017-08-02 Paul Eggert When renaming a file, ask only if EEXIST or ENOSYS * src/fileio.c (Frename_file): Avoid calling Ffile_directory_p more than once on FILE. Use renameat_noreplace, so that we can ask the user (and unlink and retry) only if this fails with errno == EEXIST or ENOSYS. This avoids the need to ask the user for permission to do an operation that will fail anyway. Simplify computation of ok_if_already_exists for subsidiary functions. * src/filelock.c (rename_lock_file): Prefer renameat_noreplace if it works, as this avoids the need to link and unlink. * src/lisp.h (renameat_noreplace): New decl. * src/sysdep.c [HAVE_LINUX_FS_H]: Include linux/fs.h and sys/syscall.h. (renameat_noreplace): New function. 2017-08-02 Paul Eggert When creating a link, ask only if EEXIST * src/fileio.c (Fadd_name_to_file, Fmake_symbolic_link): Ask the user (and unlink and retry) only if link creation fails with errno == EEXIST. This avoids the need to ask the user for permission to do an operation that will fail anyway. 2017-08-02 Tino Calancha dired-align-file: Inherit text properties in inserted spaces * lisp/dired.el (dired-align-file): Inherit text properties in inserted spaces (Bug#27899). * test/lisp/dired-tests.el (dired-test-bug27899): Add test. 2017-08-02 Tino Calancha Don't assume /bin/sh as the 'sh' location in the local host * lisp/dired.el (dired-insert-directory): Use executable-find in a local host. 2017-08-02 Tino Calancha Move dired tests using ls emulation to different files Suggested in: https://lists.gnu.org/r/emacs-devel/2017-08/msg00018.html * test/lisp/dired-tests.el (dired-test-bug27693) (dired-test-bug27762, dired-test-bug27817) (dired-test-bug27631, dired-test-bug27843): Delete those parts requiring either ls-lisp or eshell-ls. * test/lisp/ls-lisp-tests.el (ls-lisp-test-bug27762) (ls-lisp-test-bug27631, ls-lisp-test-bug27693): Add all dired tests using ls-lisp here. * test/lisp/eshell/em-ls-tests.el (em-ls-test-bug27631) (em-ls-test-bug27817, em-ls-test-bug27843): New test file. Add all dired tests using eshell-ls here. 2017-08-02 Tino Calancha * test/lisp/ls-lisp-tests.el: Rename it from ls-lisp.el 2017-08-02 Katsumi Yamaoka * lisp/gnus/mm-uu.el (mm-uu-org-src-code-block-extract): Say the handle is already decoded. cf. in the info-gnus-english list. 2017-08-02 Paul Eggert Don’t worry about unlink if errno == ENOENT * src/fileio.c (Fdelete_file): * src/keyboard.c (Fopen_dribble_file): Do not report failure to remove a file if unlink fails with errno == ENOENT. This can happen even if Emacs is the only program removing the file, in case an NFS cache overflows. The file does not exist if errno == ENOENT, so it is OK to proceed. 2017-08-01 Tino Calancha Fix misalignment in Dired when dired-directory is a cons * lisp/dired.el (dired--need-align-p, dired--align-all-files): New defuns. (dired-internal-noselect): Call dired--align-all-files when dired-directory is a cons (Bug#27762). * test/lisp/dired-tests.el (dired-test-bug27762): Test should pass. 2017-08-01 Eli Zaretskii Fix some dired-tests.el on MS-Windows * test/lisp/dired-tests.el (dired-test-bug27243-01) (dired-test-bug27243-02): On MS-Windows, pass test-dir through file-truename, to avoid bogus failures due to file-name comparison as strings. 2017-08-01 Tino Calancha Insert subdir content if dir-or-list is a string w/o wildcards * lisp/eshell/em-ls.el (eshell-ls--insert-directory): Append '("-d") into 'eshell-ls-dired-initial-args' if 'dired-directory' is a cons or there are wildcars (Bug#27843). * test/lisp/dired-tests.el (dired-test-bug27843): Add test. 2017-08-01 Stephen Berman Update todo-mode defcustoms in a less hideous way * lisp/calendar/todo-mode.el (todo-reevaluate-filelist-defcustoms) (todo-reevaluate-default-file-defcustom) (todo-reevaluate-category-completions-files-defcustom) (todo-reevaluate-filter-files-defcustom): Delete these functions. (todo-update-filelist-defcustoms): New function. This replaces todo-reevaluate-filelist-defcustoms, using the 'custom-type' property instead of re-evaluating the defcustoms. (todo-add-file, todo-rename-file, todo-delete-file) (todo-delete-category, todo-move-category) (todo-convert-legacy-files, todo-check-file): Replace call of todo-reevaluate-filelist-defcustoms by todo-update-filelist-defcustoms. (todo-show, todo-category-completions): Replace call of todo-reevaluate-* function by use of 'custom-type' property. 2017-08-01 Tino Calancha Add more should form calls in a failing dired test Some dired tests fail intermittently in hydra. Add few more should form calls for debugging. See: https://lists.gnu.org/r/emacs-devel/2017-07/msg01092.html * test/lisp/dired-tests.el (dired-test-bug27243-01): Add few more should forms for debugging. 2017-08-01 Michael Albinus Follow SAUNA recommendations for display-line-numbers-type * lisp/display-line-numbers.el (display-line-numbers-type): Do not autoload. * lisp/menu-bar.el (display-line-numbers-type): Declare. 2017-07-31 Paul Eggert Avoid most stat calls when completing file names * admin/merge-gnulib (GNULIB_MODULES): Add d-type. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * m4/d-type.m4: New file, copied from gnulib. * src/dired.c (DT_UNKNOWN, DT_DIR, DT_LINK) [!HAVE_STRUCT_DIRENT_D_TYPE]: New constants. (dirent_type): New function. (file_name_completion): Use it, to avoid unnecessary calls to stat-like functions on GNU/Linux and other platforms with d_type. (file_name_completion_stat): Just follow the link; there is no need to try first with AT_SYMLINK_NOFOLLOW since the directory entry was already checked to exist. 2017-07-31 Tino Calancha dired-tests: Unload tested features after test them Some tests are for Dired with ls-lisp or eshell-ls. Requiring these features add an advice on `dired' and might affect other tests. Do not require these features at the top of the file; require then inside the tests and unload then at the end. * test/lisp/dired-tests.el (dired-test-bug27693) (dired-test-bug7131, dired-test-bug27817, dired-test-bug27631): require ls-lisp and/or eshell-ls inside the test; unload the features at the end. 2017-07-31 Michael Albinus Small adaptions for directory wildcards * lisp/dired.el (dired-insert-directory): Remove "--dired" when there are wildcards, and the directory is remote. * test/lisp/net/tramp-tests.el (tramp--test-make-temp-name): Adapt docstring. (tramp-test17-dired-with-wildcards): Skip for all methods but those from tamp-sh.p. 2017-07-31 Tino Calancha * lisp/dired.el (dired-trivial-filenames): Use \` and \' to match string bounds. 2017-07-31 Paul Eggert Merge from gnulib This incorporates: 2017-07-30 Don't interpret EOVERFLOW to mean nonexistence * lib/tempname.c: Copy from gnulib. 2017-07-30 Tino Calancha ls-lisp: Do not require em-glob at top of the file Require em-glob inside 'ls-lisp--dired'. This is necessary to not break the Emacs build. See following thread for details: https://lists.gnu.org/r/emacs-devel/2017-07/msg01083.html * lisp/ls-lisp.el (dired-goto-next-file) (dired-read-dir-and-switches, eshell-extended-glob): Add function declarations. * lisp/eshell/em-ls.el (dired-goto-next-file): Fix function declaration. 2017-07-30 Michael Albinus * lisp/dired.el (dired-insert-directory): Move `file-remote-p' check up. * test/lisp/net/tramp-tests.el (tramp-test17-dired-with-wildcards): New test. 2017-07-30 Simen Heggestøyl Change default CSS property face * lisp/textmodes/css-mode.el (css-property): Inherit from `font-lock-keyword-face' instead of `font-lock-variable-name-face' to distinguish CSS properties from variables. 2017-07-30 Tino Calancha Dired: Handle posix wildcards in directory part Allow Dired to handle calls like \(dired \"~/foo/*/*.el\"), that is, with wildcards within the directory part of the file argument (Bug#27631). * lisp/files.el (insert-directory-wildcard-in-dir-p): New predicate. (insert-directory-clean): New defun extracted from insert-directory. (insert-directory) * lisp/dired.el (dired-internal-noselect) (dired-insert-directory): Use the new predicate; when it's true, handle the directory wildcards with a shell call. * lisp/eshell/em-ls.el (eshell-ls-use-in-dired): Add/remove both advices. (eshell-ls-unload-hook): New defun. Use it in eshell-ls-unload-hook instead of an anonymous function. (eshell-ls--dired) * lisp/ls-lisp.el (ls-lisp--dired): Advice dired to handle wildcards in the directory part with both eshell-ls and ls-lisp. * etc/NEWS: Announce it. * doc/emacs/dired.texi (Dired Enter): Update manual. * test/lisp/dired-tests.el (dired-test-bug27631): Add test. 2017-07-29 Tino Calancha * lisp/find-lisp.el: Enable lexical binding * lisp/find-dired.el: Enable lexical binding 2017-07-29 Mark Oteiza * lisp/kmacro.el: Use lexical binding. 2017-07-29 Mark Oteiza Use lexical-binding in dired-aux.el * lisp/dired.el: Use lexical binding. (dired-do-shell-command): Remove unused bindings. 2017-07-29 Mark Oteiza * lisp/ido.el: Use lexical binding. * lisp/whitespace.el: Use lexical binding. 2017-07-29 Stephen Berman artist.el: Avoid error with keyboard command invocation * lisp/textmodes/artist.el (artist-mouse-choose-operation): Call x-popup-menu with t instead of last-nonmenu-event as the value of the position argument; this allows invoking the command from the keyboard without raising an error (bug#27819). 2017-07-29 Stephen Berman Preserve point under 'dired-auto-revert-buffer' (third case) * lisp/files.el (find-file): Use pop-to-buffer-same-window instead of switch-to-buffer. This preserves Dired window point when dired-auto-revert-buffer is non-nil. (Bug#27243) * test/lisp/dired-tests.el (dired-test-bug27243-01) (dired-test-bug27243-02, dired-test-bug27243-03): New tests. The first two replace a previous test that combined them; that test intermittently fails in the Hydra build system, so maybe separating the two cases will help locate the point of failure. The third test involves find-file but is here because it, like the others, is testing the effect of dired-auto-revert-buffer. 2017-07-29 Allen Li (tiny change) Do not unset user key remaps in dired-x * lisp/dired-x.el (dired-x-bind-find-file): Don't map any keys if user sets dired-x-hands-off-my-keys. (Bug#27828) 2017-07-29 Eli Zaretskii Improve documentation of 'occur' * doc/emacs/search.texi (Other Repeating Search): * lisp/replace.el (occur): Make the documentation of 'occur' be more accurate when matches overlap. (Bug#27818) 2017-07-29 Eli Zaretskii Minor copyedits of comments in faces.el * lisp/faces.el (face-font-family-alternatives): More info about requirements from "Monospace Serif". 2017-07-29 Paul Eggert Do not worry about paxctl on newer NetBSD Problem reported privately by Thomas Klausner. * configure.ac (emacs_uname_r): New var. Use it to avoid paxctl on newer NetBSD platforms, where it is not needed. Also use it to simplify Cygwin diagnostic. 2017-07-29 Eli Zaretskii Clarify documentation of ':inherit' face attribute * doc/lispref/display.texi (Face Attributes): Document the special treatment of 'unspecified' in the ':inherit' attribute. 2017-07-28 Stefan Monnier * lisp/password-cache.el (password-data): Use a hash-table * lisp/auth-source.el (auth-source-magic): Remove. (auth-source-forget+, auth-source-forget-all-cached): Adjust to new format of password-data. (auth-source-format-cache-entry): Just use a cons. (password-cache-remove, password-cache-add, password-reset) (password-read-from-cache, password-in-cache-p): Adjust accordingly. (Bug#26699) 2017-07-28 Stefan Monnier * lisp/subr.el (define-symbol-prop): New function (symbol-file): Make it find symbol property definitions. * lisp/emacs-lisp/pcase.el (pcase-defmacro): * lisp/emacs-lisp/ert.el (ert-set-test): Use it instead of `put'. (ert-describe-test): Adjust call to symbol-file accordingly. 2017-07-28 Stefan Monnier * lisp/subr.el (method-files): Move function to cl-generic.el * lisp/emacs-lisp/cl-generic.el (cl-generic-p): New function. (cl--generic-method-files): New function, moved from subr.el. * lisp/emacs-lisp/edebug.el (edebug-instrument-function): Use them. * test/lisp/emacs-lisp/cl-generic-tests.el: * test/lisp/subr-tests.el: Move and adjust method-files tests accordingly. 2017-07-28 Eli Zaretskii Preserve this-command-keys across recursive-edit invocations * src/minibuf.c (read_minibuf, read_minibuf_unwind): Save and restore this-command-keys, to preserve it across recursive-edit. (Bug#27470) 2017-07-28 Eli Zaretskii Improve doc string of 'locate-dominating-file' * lisp/files.el (locate-dominating-file): Doc fix. (Bug#27798) 2017-07-28 Drew Adams New commands 'apropos-local-variable', 'apropos-local-value' * lisp/apropos.el (apropos-local-variable, apropos-local-value): New functions. (Bug#27424) * doc/emacs/help.texi (Apropos): Document 'apropos-local-variable' and 'apropos-local-value'. * etc/NEWS: Mention the new commands. 2017-07-28 Stefan Monnier * lisp/loadhist.el (unload-feature): Remove ad-hoc ELP code * lisp/emacs-lisp/elp.el (loadhist-unload-element): Un-instrument functions. 2017-07-27 Alan Mackenzie Fix C++ class initializers not always being fontified at mode start. The problem here happened when an "outer list" of declarations moved beyond an "inner list" containing class initializers. These weren't being checked for by the code. Also, fix places in c-get-fontification-context where point is undefined. * lisp/progmodes/cc-fonts.el (c-get-fontification-context): when argument not-front-decl is set, test for class initializers. Also, anchor point in places where it is moved and is otherwise undefined. 2017-07-27 Alan Mackenzie Fix variables in C++ "for" statement not always being fontified. The error happened when there was a comma inside template delimiters. * lisp/progmodes/cc-fonts.el (c-get-fontification-context): In "for" statements, recognize template delimiters containing "," and "&". 2017-07-27 Michael Albinus Add watchdog process to tramp-test36-asynchronous-requests * test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): New defun. (tramp-test36-asynchronous-requests): Use a watchdog process, listening for SIGUSR1. 2017-07-27 Alan Mackenzie CC Mode: Fix declarator being cut off from terminator by end of jit-lock chunk If a declarator is so cut off, extend the fontification chunk to include it. * lisp/progmodes/cc-mode.el (c-fl-decl-end): New function. (c-change-expand-fl-region, c-context-expand-fl-region): Use the new function. 2017-07-27 Stefan Monnier * lisp/vc/smerge-mode.el: Avoid N² blow up in degenerate cases (smerge--refine-long-words): New var. (smerge--refine-chopup-region): Use it. 2017-07-27 Stefan Monnier * lisp/url/url-cookie.el: Use lexical-binding (url-cookie-host-can-set-p): Remove unused var `last'. Use string-suffix-p. (url-cookie-list): De morgan. (url-cookie-quit): Remove. (url-cookie-mode): Inherit from special-mode. (url-cookie-mode-map): Simplify accordingly. 2017-07-27 Stefan Monnier * lisp/calendar/todo-mode.el (todo-print-buffer-function): Rework docstring. * lisp/ruler-mode.el (ruler-mode-ruler): Document problem. 2017-07-27 Stefan Monnier * lisp/emacs-lisp/cl-generic.el (cl-generic-define-method): Record this as the function's definition site if it's the first def. 2017-07-26 Glenn Morris * doc/lispref/loading.texi (When to Autoload): New section. 2017-07-26 Glenn Morris Stop using unibyte buffers for ert backtraces * lisp/emacs-lisp/ert.el (ert-results-pop-to-backtrace-for-test-at-point): Set multibyte true, not false. This copies a debugger-setup-buffer change from 2009-08-30, and stops the "Backtrace for" header line containing ^X and ^Y. 2017-07-26 Dmitry Gutov Fix semantic-symref-parse-tool-output-one-line after 644cdd1aa0 * lisp/cedet/semantic/symref/grep.el (semantic-symref-grep--line-re): Delete. (semantic-symref-parse-tool-output-one-line): Use regexp and group numbers from (grep-regexp-alist). 2017-07-26 Grégoire Jadi Fix cl-defmethod indentation * lisp/emacs-lisp/cl-generic.el (cl-defmethod): Declare (indent defun). Fixes bug#23994. 2017-07-26 Martin Rudalics Fix two customization types in frame.el * lisp/frame.el (window-divider-default-bottom-width) (window-divider-default-right-width): Fix customization types. 2017-07-26 Tino Calancha Dired: Support eshell-ls from the beginning if the user wants to * lisp/dired.el (dired-insert-directory): Check for eshell-ls as well (Bug#27817). * test/lisp/dired-tests.el (dired-test-bug27817): Add test. 2017-07-26 Mark Oteiza * lisp/progmodes/sh-script.el (sh-mode): Recognize mkshrc. 2017-07-25 Stefan Monnier * lisp/emacs-lisp/eieio-compat.el (eieio--defgeneric-init-form): Adjust to change in cl-generic-ensure-function. 2017-07-25 Tino Calancha ls-lisp: Add an unload function and enable lexical binding Enable lexical binding. * lisp/ls-lisp.el (ls-lisp-unload-function): New defun. * test/lisp/ls-lisp-tests.el (ls-lisp-unload): Add test. 2017-07-25 Tino Calancha register-read-with-preview: Quit if user input C-g or ESC * lisp/register.el (register-read-with-preview): Quit if user input C-g or ESC (bug#27634). * doc/emacs/regs.texi (Registers): Update manual. * test/lisp/register-tests.el (register-test-bug27634): Add test. 2017-07-25 Mark Oteiza Recognize MirBSD Korn shell rc file * lisp/files.el (auto-mode-alist): Add .mkshrc to the list. 2017-07-25 Glenn Morris * configure.ac: Be explicit about ImageMagick version in summary. 2017-07-25 Andreas Schwab Properly align global lispsym * lib-src/make-docfile.c (close_emacs_globals): Wrap struct Lisp_Symbols inside struct. * src/alloc.c (sweep_symbols): Update use of lispsym. * src/lisp.h (builtin_lisp_symbol): Likewise. 2017-07-25 Paul Eggert Do not use ImageMagick 7 and later Suggested by Glenn Morris (Bug#25967#15). * configure.ac (IMAGEMAGICK_MODULE): Reject 7 and later. 2017-07-25 Stefan Monnier * lisp/progmodes/perl-mode.el: Add support for indented here docs * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Recognize the new <<~ syntax for indented here docs. (perl-syntax-propertize-special-constructs): Adjust search of the end of here docs accordingly. * test/manual/indent/perl.perl: Add test for indented here docs. 2017-07-24 Stefan Monnier (loadhist-unload-element): Move ERT and cl-generic methods * lisp/loadhist.el (loadhist-unload-element): Don't define cl-generic and ert methods here. (loadhist-unload-element) <(head define-type)>: Remove unused var `slots'. * lisp/emacs-lisp/cl-generic.el (loadhist-unload-element): Define unload method for cl-defmethod. (cl-generic-ensure-function): Remove redundant `defalias'. * lisp/emacs-lisp/ert.el (ert-set-test): Move the current-load-list setting here... (ert-deftest): ...from here. (loadhist-unload-element): Define unload method for ert-deftest. 2017-07-24 Michael Albinus Fix Bug#27371 * lisp/loadhist.el (loadhist-unload-element): Declare for different entry types of `load-history'. (loadhist--restore-autoload): New variable. (loadhist--unload-function): New defun. (unload-feature): Use `loadhist-unload-element'. Recommended by Stefan Monnier. (Bug#27371) * test/lisp/net/tramp-tests.el (tramp-test39-unload): Check, that the `tramp-file-name' structure has been unloaded. 2017-07-24 Grégoire Jadi Ensure that we parse images right in shr.el * lisp/net/shr.el (shr-image-fetched): Go back to the beginning of the buffer before trying to parse the image fetched. 2017-07-24 Paul Eggert Update .gitignore for Valgrind and no Automake * .gitignore: Remove .deps/ since we no longer use Automake. Add vgcore.*[0-9], for debugging Emacs with Valgrind+GDB. 2017-07-24 Paul Eggert Merge from gnulib This incorporates: 2017-07-23 Rename module 'strftime' to 'nstrftime' * admin/merge-gnulib (GNULIB_MODULES): Add nstrftime, remove strftime. * build-aux/config.guess: Copy from gnulib. * lib/nstrftime.c: Rename from lib/strftime.c. * m4/nstrftime.m4: Rename from m4/strftime.m4. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. 2017-07-23 Philipp Stephani Add 'rx' pattern for pcase. * lisp/emacs-lisp/rx.el (rx): New pcase macro. * test/lisp/emacs-lisp/rx-tests.el (rx-pcase): Add unit test. 2017-07-23 Mark Oteiza Use a named function for global minor mode turn-on argument * lisp/display-line-numbers.el (turn-on-display-line-numbers-mode): New function. (global-display-line-numbers-mode): Use it. 2017-07-23 Charles A. Roelli Enable GUI Emacs without 'make install' on macOS (Bug #27645) * nextstep/INSTALL: Correct it, and mention that Emacs can be run from 'src/emacs'. * src/nsterm.m (applicationDidFinishLaunching:): When Emacs is launched outside of a macOS application bundle, change its activation policy from the default 'prohibited' to 'regular'. 2017-07-23 Alan Mackenzie Convert CC Mode's c-found-types from an obarray to a hash table. * lisp/progmodes/cc-engine.el (c-clear-found-types): create a hash table rather than an obarray. (c-copy-found-types): Remove. (c-add-type, c-unfind-type, c-check-type, c-list-found-types): Amend to use the new hash table. (c-forward-<>-arglist): Use copy-hash-table rather than c-copy-found-types. 2017-07-23 Lars Ingebrigtsen Fix image/svg+xml display in shr * lisp/net/shr.el (shr-put-image): Display svg images as svg (bug#27799). I suspect the previous change was checked in by accident in conjuction with some other svg changes. 2017-07-23 Michael Albinus * lisp/display-line-numbers.el (display-line-numbers-type): Autoload it. 2017-07-23 Glenn Morris Don't automatically enable Gconf if Gsettings was found * configure.ac (HAVE_GCONF) [HAVE_GSETTINGS]: Don't test for Gconf unless specifically requested. Gconf was deprecated in favor of Gsettings several years ago. 2017-07-23 Glenn Morris * configure.ac (MODULES_SUFFIX): Always give it a value. This prevents a Makefile thinko like "rm *${MODULE_SUFFIX}". 2017-07-23 Glenn Morris * doc/emacs/frames.texi (Fonts): Mention Gsettings. 2017-07-22 Michael Albinus Add line numbers display to the Options menu * lisp/menu-bar.el (toggle-display-line-numbers): Remove. (menu-bar-display-line-numbers-mode): New defun. (menu-bar-showhide-line-numbers-menu): New defvar. (menu-bar-showhide-menu): Use `menu-bar-showhide-line-numbers-menu' 2017-07-22 Noam Postavsky Signal error for symbol names with strange quotes (Bug#2967) * src/lread.c (read1): Signal an error when a symbol starts with a non-escaped quote-like character. * test/src/lread-tests.el (lread-tests--funny-quote-symbols): New test. * etc/NEWS: Announce change. 2017-07-22 Noam Postavsky Revert "Let delete-selection-mode work with popup-menu commands (Bug#27569)" It turns out that this change is not needed, and it leaves several command loops settings not done. https://lists.gnu.org/r/emacs-devel/2017-07/msg00757.html https://lists.gnu.org/r/emacs-devel/2017-07/msg00840.html 2017-07-22 Alexander Gramiak Add a minor mode interface for display-line-numbers * lisp/cus-start.el: Use the new display-line-numbers group. * lisp/display-line-numbers.el: New file. * doc/emacs/custom.texi (Init Rebinding): Re-add entry that used to belong to linum-mode. * doc/emacs/modes.texi (Minor Modes): Summarize the mode. * etc/NEWS: Document display-line-numbers-mode and its customization variables, and mention that display-line-numbers-width is buffer-local. * src/xdisp.c (syms_of_xdisp) : Fix a typo. 2017-07-22 vividsnow (tiny change) Support indented HERE-DOCs in cperl-mode * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Support indented here-docs. (Bug#27254) (Bug#27697) 2017-07-22 Eli Zaretskii Document the support for "scrollBar" X resource * doc/emacs/xresources.texi (Table of Resources): Document the new 'scrollBar' setting. * etc/NEWS: Document the new 'scrollBar' setting. 2017-07-22 Matthew Bauer (tiny change) Add 'scroll-bar-mode' to settings in 'x-apply-session-resources' * lisp/startup.el (x-apply-session-resources): Add scroll-bar-mode settings. 2017-07-22 Alexander Kuleshov Update ld-script mode (bug#27629) * lisp/progmodes/ld-script.el: (ld-script-keywords): New commands NOCROSSREFS_TO and HIDDEN added. Fix documentation sections numbers for PROVIDE/PROVIDE_HIDDEN commands. (ld-script-builtins): New builtin function LOG2CEIL added. 2017-07-22 Eli Zaretskii Index 'rectangle' in the ELisp manual * doc/lispref/text.texi (Registers): Index the "rectangle" value. (Bug#27541) 2017-07-22 Eli Zaretskii * lisp/subr.el (add-to-history): Doc fix. (Bug#27494) 2017-07-22 Eli Zaretskii Doc fixes for kmacro.el functions * lisp/kmacro.el (kmacro-start-macro, kmacro-call-macro) (kmacro-end-and-call-macro): Don't use "permanent name", as that could be misinterpreted. (Bug#27492) 2017-07-22 Charles A. Roelli ElDoc: add docstrings and minor refactoring * lisp/emacs-lisp/eldoc.el (eldoc-edit-message-commands): Add docstring. (turn-on-eldoc-mode): Fix capitalization. (eldoc--supported-p): Add docstring. (eldoc-schedule-timer): Add docstring and use 'eldoc--supported-p'. (eldoc-message): Add docstring and make calling convention clearer. (eldoc--message-command-p): (eldoc-pre-command-refresh-echo-area): (eldoc-display-message-p): (eldoc-display-message-no-interference-p): (eldoc-print-current-symbol-info): (eldoc-docstring-format-sym-doc): (eldoc-add-command, eldoc-add-command-completions): (eldoc-remove-command, eldoc-remove-command-completions): Add docstring. (Bug#27230) 2017-07-22 Fabrice Bauzac (tiny change) Mention 'C-M-i' as key binding for 'ispell-complete-word' * doc/emacs/fixit.texi (Spelling): ispell-complete-word can also be invoked by C-M-i. (Bug#27349) 2017-07-22 Fabrice Bauzac (tiny change) Fix the eww-search-words description in the Emacs manual * doc/emacs/search.texi (Word Search): Include the key binding for eww-search-words in the manual. Fix the spelling of the 'eww-search-words' command. 2017-07-22 Andrew L. Moore Introduce defcustom 'executable-prefix-env' * lisp/progmodes/executable.el (executable-prefix): Update the doc string. (executable-prefix-env): New defcustom. (executable-set-magic): Use executable-prefix-env. * etc/NEWS: Document the new variable. 2017-07-22 Glenn Morris * test/lisp/ibuffer-tests.el: Delete temporary files. 2017-07-21 Glenn Morris Further attempt to avoid hang in network-stream-tests * test/lisp/net/network-stream-tests.el (connect-to-tls-ipv6-nowait): Limit the time we wait for the external process. 2017-07-21 Glenn Morris Stop skipping many ibuffer tests by default * test/lisp/ibuffer-tests.el (ibuffer-0autoload): Rename so it sorts first. (ibuffer-save-filters, ibuffer-filter-inclusion-1) (ibuffer-filter-inclusion-2, ibuffer-filter-inclusion-3) (ibuffer-filter-inclusion-4, ibuffer-filter-inclusion-5) (ibuffer-filter-inclusion-6, ibuffer-filter-inclusion-7) (ibuffer-filter-inclusion-8, ibuffer-decompose-filter) (ibuffer-and-filter, ibuffer-or-filter, ibuffer-format-qualifier) (ibuffer-unary-operand): Require ibuf-ext so tests not skipped. 2017-07-21 Stefan Monnier Use lexical-binding in todo-mode.el Adjust code accordingly and make various minor improvements. * lisp/calendar/todo-mode.el: Enable lexical-binding. (dayname, monthname, day, month, year): Make forward defvars of these keywords from macros defined in calendar.el; wrap them in with-no-warnings. (todo-files, todo-files-function, todo-date-pattern) (todo-mode-line-function, todo-show, todo-forward-category) (todo-edit-item--header, todo-set-category-number) (todo-adjusted-category-label-length) (todo-total-item-counts, todo-filter-items) (todo-print-buffer-function, todo-convert-legacy-date-time) (todo-category-number, todo-category-completions) (todo-read-file-name, todo-read-category) (todo-validate-name, todo-read-date) (todo-set-show-current-file, todo-modes-set-1) (todo-modes-set-2, todo-modes-set-3, todo-mode): Use #' instead of ' to quote functions. (todo-files): Use \' instead of $ in regexp. (todo--files-type-list): New function. (todo-default-todo-file, todo-category-completions-files) (todo-filter-files, todo-multiple-filter-files) (todo-reevaluate-default-file-defcustom) (todo-reevaluate-category-completions-files-defcustom) (todo-reevaluate-filter-files-defcustom): Use it. (todo-show, todo-rename-file, todo-move-category) (todo-edit-item--text, todo-edit-quit, todo-edit-item--header) (todo-item-undone, todo-unarchive-items, todo-search) (todo-filter-items, todo-filter-items-1, todo-find-item) (todo-category-select, todo-read-date) (todo-nondiary-marker-matcher, todo-date-string-matcher) (todo-diary-expired-matcher, todo-convert-legacy-files) (todo-read-category): Reformat to avoid code hiding behind a more deeply embedded element. (todo-forward-category, todo-set-category-number): Use 'funcall' instead of 'apply'. (todo-toggle-mark-item, todo-edit-item--diary-inclusion) (todo-edit-category-diary-inclusion) (todo-insert-sort-button, todo-insert-category-line) (todo-multiple-filter-files): Mark unused local variables. (todo-edit-item--header, todo-move-item, todo-print-buffer) (todo-edit-item--header, todo-move-item, todo-check-file) (todo-edit-item--next-key): Remove unused local variables. (todo-insert-sort-button, todo-insert-category-line): Use a closure instead of a backquoted lambda. (todo-update-categories-display, todo-print-buffer): Simplify code. (todo-print-buffer-function): Document calling convention. (todo-category-completions): Use cl-pushnew instead of add-to-list. (todo-mode-map, todo-archive-mode-map) (todo-categories-mode-map, todo-filtered-items-mode-map): Remove superfluous call of suppress-keymap, since it's already in the parent special-mode-map. 2017-07-21 Tino Calancha dired: Revert buffer when DIRNAME is a cons * lisp/dired.el (dired-internal-noselect): Revert buffer if DIR-OR-LIST is a cons, or dired-directory is a cons and DIR-OR-LIST a string (Bug#7131). Update the comments. * test/lisp/dired-tests.el (dired-test-bug7131): Test should pass. 2017-07-21 Tino Calancha Handle when dired-directory is a cons in some Dired functions * lisp/dired-aux.el (dired-rename-subdir-1) * lisp/dired-x.el (dired-mark-omitted): Handle when dired-directory is a cons. 2017-07-21 Noam Postavsky Make eshell-next-prompt more reliable (Bug#27405) * lisp/eshell/em-prompt.el (eshell-next-prompt): Search for `eshell-prompt-regexp' (and `read-only' text-property if `eshell-highlight-prompt' is set) rather than trying to use `forward-paragraph'. (eshell-previous-prompt): Don't count prompt on current line. 2017-07-21 Paul Eggert Simplify recent gnutls.c changes * src/gnutls.c (clear_storage) [HAVE_GNUTLS3_AEAD]: Remove. All uses replaced by calls to explicit_bzero; that’s clear enough. (gnutls_symmetric_aead) [HAVE_GNUTLS3_AEAD]: Simplify by coalescing duplicate actions. There is no need to invoke SAFE_FREE before calling ‘error’. 2017-07-20 Michael Albinus Stylistic changes in tramp-cache.el * lisp/net/tramp-cache.el (tramp-get-file-property) (tramp-set-file-property): Use `bound-and-true-p'. Add counter variables to `tramp-cache-unload-hook'. 2017-07-20 Glenn Morris * admin/notes/hydra: Small updates. 2017-07-20 Glenn Morris Make tramp unloading handle debug counter variables * lisp/net/tramp-cache.el (tramp-get-file-property) (tramp-set-file-property): Add counter variables to tramp-unload-hook. 2017-07-20 Eli Zaretskii Fix hscrolling calculations when display-line-numbers is set * src/xdisp.c (move_it_in_display_line_to): Account for line numbers in hscrolled lines. (Bug#27756) 2017-07-20 Katsumi Yamaoka Fix the bogus change made 13 years ago (bug#27084) * lisp/gnus/gnus-sum.el (gnus-summary-toggle-header): Fix the way to test if there is no visible header (bug#27084). 2017-07-20 Noam Postavsky Use grep's --null option (Bug#6843) * lisp/progmodes/grep.el (grep-use-null-filename-separator): New option. (grep--regexp-alist-column, grep--regexp-alist-bin-matcher) (grep-with-null-regexp-alist, grep-fallback-regexp-alist): New constants, replacing `grep-regexp-alist'. (grep-regex-alist): Mark the variable obsolete, add a new function of the same name to replace it. (grep-compute-defaults): Compute default for `grep-use-null-filename-separator'. (grep-mode): Set compilation-error-regexp-alist (buffer locally) to the value of `grep-with-null-regexp-alist' or `grep-fallback-regexp-alist' according to `grep-use-null-filename-separator'. * lisp/progmodes/xref.el (xref-collect-matches): Call `grep-regex-alist' instead of the obsolete variable. Don't hardcode grep-regexp-alist match groups. * etc/NEWS: Announce new use of --null. Move 'grep-save-buffers' item under "Grep" heading as well. 2017-07-19 Philipp Stephani * src/gnutls.c (clear_storage): Define only if needed. 2017-07-19 Stephen Berman Adjust todo-quit to recent change in dired * lisp/calendar/todo-mode.el (todo-quit): Use quit-window instead of bury-buffer to exit todo-mode. This restores the desired behavior of not immediately returning to the exited todo-mode buffer on quitting another buffer, which a dired bug fix had changed (see https://lists.gnu.org/r/emacs-devel/2017-07/msg00739.html). 2017-07-19 Tino Calancha Add test for bugs 7131, 27762 Require 'ls-lisp' at top of the file. * test/lisp/dired-tests.el (dired-test-bug7131, dired-test-bug27762): New tests. (dired-test-bug27693): Delete Dired buffer at the end. 2017-07-18 Michael Albinus * admin/notes/hydra: Mention environment variable EMACS_HYDRA_CI. 2017-07-18 Stefan Monnier * lisp/emacs-lisp/nadvice.el (advice--defalias-fset): Strip advices This tries to make sure that (defalias F (symbol-function F)) stays a no-op. 2017-07-18 Glenn Morris Use a more specific test for running on hydra.nixos.org * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): * test/Makefile.in (WRITE_LOG): * test/lisp/filenotify-tests.el: * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el (eieio-test-method-order-list-6): * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test-37-obsolete-name-in-constructor): * test/lisp/net/tramp-tests.el: Replace NIX_STORE with EMACS_HYDRA_CI. 2017-07-18 Eli Zaretskii Avoid infloop due to Eshell's "smart" redisplay * src/xdisp.c (pos_visible_p): Save and restore the window's mode-line and header-line height. (Bug#27752) 2017-07-18 Stefan Monnier * lisp/emacs-lisp/cl-lib.el (cl--old-struct-type-of): Accept `[]' 2017-07-18 Eli Zaretskii Fix indentation when display-line-numbers is non-nil * src/xdisp.c (x_produce_glyphs): Fix a typo in deciding whether to go one more tab stop to display a TAB. (Bug#27743) 2017-07-18 Lars Ingebrigtsen Don't use gtk_widget_get_scale_factor on old GTK3 versions * src/gtkutil.c (xg_get_scale): gtk_widget_get_scale_factor is only present since GTK 3.10. 2017-07-18 Noam Postavsky Let delete-selection-mode work with popup-menu commands (Bug#27569) * lisp/menu-bar.el (popup-menu): Run `pre-command-hook' with `this-command' set to the selected command. 2017-07-18 Paul Eggert Port gnutls.c to older (buggier?) GnuTLS Problem reported for GnuTLS 3.2.1 by Glenn Morris in: https://lists.gnu.org/r/emacs-devel/2017-07/msg00716.html https://lists.gnu.org/r/emacs-devel/2017-07/msg00742.html Although I don't see how this bug can occur with vanilla GnuTLS 3.2.1, perhaps hydra was using a modified GnuTLS. * src/gnutls.c (Fgnutls_ciphers): Don't assume GNUTLS_CIPHER_NULL is at the end of the list returned by gnutls_cipher_list, or that the earlier ciphers all have non-null names. 2017-07-17 Vincent Belaïche Fix relocation with named cell referred to by a one-symbol formula. * lisp/ses.el (ses-replace-name-in-formula): Fix bug for it to work also with one symbol formulas. * test/lisp/ses-tests.el (ses-tests-renaming-cell-with-one-symbol-formula): Add new test for renaming with relocating a one symbol formula. 2017-07-17 Vincent Belaïche Fix symbol completion and document it. * doc/misc/ses.texi (Configuring what printer function applies): Add description of keys for completing local printer symbols and listing local printers in a help buffer. (Formulas): Add decription for key to list the named cell symbols in a help buffer. * lisp/ses.el (ses-completion-keys): New constant. (ses--completion-table): New defvar. (ses--list-orig-buffer): New defvar. (ses-mode-edit-map): Fixed for symbol completion, plus add help functions to list named cells or local printers. (ses-edit-cell-complete-symbol) (ses--edit-cell-completion-at-point-function): New defuns for completion during formula edition. (ses-edit-cell): Redefine dynamically edit keymap for completion keys to point at the right function. (ses-read-printer-complete-symbol) (ses--read-printer-completion-at-point-function): New defuns for completion during printer edition. (ses-read-printer): Redefine dynamically edit keymap for completion keys to point at the right function. (ses-list-local-printers): New defun. (ses-list-named-cells): New defun. 2017-07-17 Lars Ingebrigtsen Move comments around 2017-07-17 Lars Ingebrigtsen Make scaling work (?) on pre-GTK3 systems * src/gtkutil.c (xg_get_gdk_scale): Reinstate function. (xg_get_scale): Use it on non-GTK3 systems. 2017-07-17 Lars Ingebrigtsen Always return the GDK scale * src/gtkutil.c (xg_get_scale): Return the GDK scale always. 2017-07-17 Lars Ingebrigtsen Remove usage of the GDK_SCALE variable * src/gtkutil.c (xg_get_gdk_scale): Remove. (xg_get_default_scrollbar_height) (xg_get_default_scrollbar_width): Pass in a frame to check for scaling. (xg_frame_set_char_size): Use the API for querying scale instead of looking at the GDK_SCALE variable. (xg_get_default_scrollbar_width): Ditto. (xg_get_default_scrollbar_height): Ditto. (xg_update_scrollbar_pos): Ditto. * src/xfns.c (x_set_scroll_bar_default_height): Pass in the frame to get the width. 2017-07-17 Lars Ingebrigtsen Get positions of menus and tooltips right on HiDPI * src/gtkutil.c (xg_get_scale): New function. (xg_show_tooltip): Use it. * src/xmenu.c (create_and_show_popup_menu): Put menus in the right place. 2017-07-17 Eli Zaretskii Allow user control on what starts and ends a paragraph for bidi * src/buffer.h (struct buffer): New members bidi_paragraph_separate_re_ and bidi_paragraph_start_re_. * src/buffer.c (bset_bidi_paragraph_start_re) (bset_bidi_paragraph_separate_re): New setters/ (Fbuffer_swap_text): Swap the values of bidi-paragraph-start-re and bidi-paragraph-separate-re. (init_buffer_once): Init the values of bidi-paragraph-start-re and bidi-paragraph-separate-re. (syms_of_buffer) : New per-buffer variables. * src/bidi.c (bidi_at_paragraph_end, bidi_find_paragraph_start): Support bidi-paragraph-start-re and bidi-paragraph-separate-re. (bidi_move_to_visually_next): Handle correctly the case when the separator matches an empty string. (Bug#27526) * doc/emacs/mule.texi (Bidirectional Editing): * doc/lispref/display.texi (Bidirectional Display): Document bidi-paragraph-start-re and bidi-paragraph-separate-re. * etc/NEWS: Mention bidi-paragraph-start-re and bidi-paragraph-separate-re. 2017-07-17 Tino Calancha * lisp/emacs-lisp/map.el (map-put): Fix redundancy in docstring. 2017-07-17 Tino Calancha alist-get: Add optional arg TESTFN If TESTFN is non-nil, then it is the predicate to lookup the alist. Otherwise, use 'eq' (Bug#27584). * lisp/subr.el (alist-get): Add optional arg FULL. * lisp/emacs-lisp/map.el (map-elt, map-put): Add optional arg TESTFN. * lisp/emacs-lisp/gv.el (alist-get): Update expander. * doc/lispref/lists.texi (Association Lists): Update manual. * etc/NEWS: Announce the changes. * test/lisp/emacs-lisp/map-tests.el (test-map-put-testfn-alist) (test-map-elt-testfn): New tests. 2017-07-17 Michael Albinus Fix `tramp-test39-unload' * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case-p) (tramp--test-instrument-test-case): Rename. Adapt all callees. (tramp-test36-asynchronous-requests): Bind `timer-max-repeats'. (tramp-test39-unload): Expect it to pass. Ignore buffer-local variables and autoload functions; they are not removed. Check also for `-function(s)'. 2017-07-17 Stephen Berman Preserve point under 'dired-auto-revert-buffer' (second case) * lisp/dired.el (dired): Use pop-to-buffer-same-window instead of switch-to-buffer. This preserves Dired window point when dired-auto-revert-buffer is non-nil. (Bug#27243) * test/lisp/dired-tests.el (dired-test-bug27243): New test. 2017-07-17 Martin Rudalics Have Fgnutls_available_p return Qnil when GNUTLS is undefined * src/gnutls.c (Fgnutls_available_p): Return Qnil when GNUTLS is undefined to allow --with-gnutls=no builds to proceed. 2017-07-17 Paul Eggert * src/gnutls.c: Restore some comments. 2017-07-17 Paul Eggert Use memset, not bzero * src/ftcrfont.c (ftcrfont_glyph_extents): Use memset instead of the (less-portable) bzero. 2017-07-17 Paul Eggert Use explicit_bzero to clear GnuTLS keys * admin/merge-gnulib (GNULIB_MODULES): Add explicit_bzero. * lib/explicit_bzero.c, m4/explicit_bzero.m4: New files. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * src/gnutls.c (clear_storage): New function. (gnutls_symmetric_aead): Use it instead of memset. 2017-07-17 Paul Eggert Merge from gnulib This incorporates: 2017-07-16 explicit_bzero: new module 2017-07-15 getdtablesize: Add minimal support for OpenVMS. * lib/getdtablesize.c, lib/string.in.h, m4/getdtablesize.m4: * m4/string_h.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate. 2017-07-17 Dieter Deyke Fix vc-src-dir-status-files * lisp/vc/vc-src.el (vc-src-dir-status-files): Fix broken copy-paste from b1a765b3 (bug#27641). 2017-07-16 Wilfred Hughes Fix mismatched parens * etc/NEWS.21: Remove excess parenthesis in code example 2017-07-16 Alan Third Add missing declare-function for new function * lisp/frame.el: Add declare function for ns-mouse-absolute-pixel-position. 2017-07-16 R. Bernstein Realgud for tango themes 2017-07-16 Noam Postavsky Fix test when running from test/lisp/subr-tests.elc * test/lisp/subr-tests.el (subr-test-backtrace-simple-tests): Don't assume a lambda expression will be `equal' to its quoted form. That's not true if the lambda expression has been compiled. 2017-07-15 Alan Third Fix some frame handling issues on NS * lisp/frame.el (mouse-absolute-pixel-position): Use new NS function. * src/nsfns.m (Sns_mouse_absolute_pixel_position): New function. * src/nsterm.m (x_make_frame_visible): Re-establish parent-child relationship if it's broken. 2017-07-15 Tino Calancha ls-lisp: Fix file size format * lisp/ls-lisp.el (ls-lisp-filesize-d-fmt, ls-lisp-filesize-f-fmt) (ls-lisp-filesize-b-fmt): Add space in front (Bug#27693). * test/lisp/dired-tests.el (dired-test-bug27693): Add test. 2017-07-15 Eli Zaretskii Avoid link errors with older versions of GnuTLS * src/gnutls.c (Fgnutls_ciphers, gnutls_symmetric_aead) (Fgnutls_macs, Fgnutls_digests): Conditionally compile code that calls GnuTLS functions which might be unavailable in older versions of GnuTLS. 2017-07-15 Eli Zaretskii Improve comments in faces.el * lisp/faces.el (face-font-family-alternatives): Improve commentary. 2017-07-15 Eli Zaretskii Improve some GnuTL error messages * src/gnutls.c (gnutls_symmetric_aead, gnutls_symmetric): * src/fns.c (Fsecure_hash_algorithms): Fix error messages. 2017-07-15 Eli Zaretskii Fix the Elisp manual wrt GnuTL cryptography * doc/lispref/elisp.texi (Top): Update the master menu. * doc/lispref/text.texi (GnuTLS Cryptography): Add a @menu, to avoid errors in makeinfo. 2017-07-15 Eli Zaretskii Fix compilation of gnutls.c with older GnuTLS * src/gnutls.c (syms_of_gnutls): Condition some defsubr's on HAVE_GNUTLS3, to avoid compilation errors when GnuTLS v3.X is not available. Reported by Colin Baxter . 2017-07-15 rocky Realgud for two more light themes 2017-07-15 Eli Zaretskii Rearrange MS-Windows code that dynamically loads GnuTLS functions * src/gnutls.c [WINDOWSNT]: Reorganize definitions and loading of functions using the same preprocessing directives as in the code. 2017-07-15 Eli Zaretskii Fix the MS-Windows build broken in gnutls.c * src/gnutls.c (Fgnutls_available_p) [WINDOWSNT]: Move the DLL loading code to after 'capabilities' has been calculated. Remove redundant comments. 2017-07-15 Lars Ingebrigtsen src/image.c (compute_image_size): Remove superfluous checks. * src/image.c (compute_image_size): Remove superfluous checks. 2017-07-15 Lars Ingebrigtsen Make combinations of :width/:max-height image specs work reliably * doc/lispref/display.texi (ImageMagick Images): Document :width/:max-height combinations (etc) (bug #25583). * src/image.c (compute_image_size): Handle :width/:max-height (etc) combinations consistently (by letting "max" win and preserve ratio). * test/manual/image-size-tests.el (image-size-tests): Add tests for :width/:max-height (etc) combinations. 2017-07-15 Glenn Morris Fix recent theme changes * etc/themes/manoj-dark-theme.el, etc/themes/tsdh-dark-theme.el: Fix typos in recent changes. 2017-07-15 Paul Eggert GnuTLS integer-overflow and style fixes This tweaks the recently-added GnuTLS improvements so that they avoid some integer-overflow problems and follow typical Emacs style a bit better. * configure.ac (HAVE_GNUTLS3_HMAC, HAVE_GNUTLS3_AEAD) (HAVE_GNUTLS3_CIPHER): Use AC_CACHE_CHECK so that the configure-time results are displayed. * src/fns.c (extract_data_from_object): Return char *, not char const *, since one gnutls caller wants a non-const pointer. Use CONSP rather than !NILP when testing for conses. Use CAR_SAFE instead of rolling our own code. Prefer signed types to unsigned when either will do. Report problems for lengths out of range, instead of silently mishandling them. * src/gnutls.c (emacs_gnutls_strerror): New function, to simplify callers. All callers of gnutls_sterror changed. (Fgnutls_boot): Check for integers out of range rather than silently truncating them. (gnutls_symmetric_aead): Check for integer overflow in size calculations. (gnutls_symmetric_aead, Fgnutls_macs, Fgnutls_digests): Prefer signed to unsigned integers where either will do. (gnutls_symmetric_aead, gnutls_symmetric): Work even if ptrdiff_t is wider than ‘long’. (gnutls_symmetric, Fgnutls_hash_mac, Fgnutls_hash_digest): Check for integer overflow in algorithm selection. 2017-07-14 Noam Postavsky * .gitlab-ci.yml: Don't install a C++ compiler. Suppress apt interaction. 2017-07-14 Eli Zaretskii Fix the MS-Windows build due to added GnuTLS functions * src/gnutls.c [WINDOWSNT]: Add DEF_DLL_FN for new functions. (init_gnutls_functions) [WINDOWSNT]: Add LOAD_DLL_FN for new functions. Add #define redirections for new functions. (gnutls_symmetric_aead): Fix format specs to be more portable when printing ptrdiff_t arguments. * src/fns.c (gnutls_rnd) [WINDOWSNT]: Redirect to w32_gnutls_rnd wrapper. * src/gnutls.h [WINDOWSNT]: Add prototype for w32_gnutls_rnd. * test/lisp/net/gnutls-tests.el (gnutls-tests-tested-macs) (gnutls-tests-tested-digests, gnutls-tests-tested-ciphers): Call gnutls-available-p, otherwise GnuTLS functions might not be loaded from the DLL on MS-Windows. 2017-07-14 Stefan Monnier * lisp/emacs-lisp/bytecomp.el: Fix bug#14860. * lisp/emacs-lisp/bytecomp.el (byte-compile--function-signature): New fun. Dig into advice wrappers to find the "real" signature. (byte-compile-callargs-warn, byte-compile-arglist-warn): Use it. (byte-compile-arglist-signature): Don't bother with "new-style" arglists, since bytecode functions are now handled in byte-compile--function-signature. * lisp/files.el (create-file-buffer, insert-directory): Remove workaround introduced for (bug#14860). * lisp/help-fns.el (help-fns--analyse-function): `nadvice` is preloaded. * lisp/help.el (help-function-arglist): Dig into advice wrappers to find the "real" signature. 2017-07-14 Ted Zlatanov GnuTLS HMAC and symmetric cipher support * etc/NEWS: Add news for new feature. * doc/lispref/text.texi (GnuTLS Cryptography): Add documentation. * configure.ac: Add macros HAVE_GNUTLS3_DIGEST, HAVE_GNUTLS3_CIPHER, HAVE_GNUTLS3_AEAD, HAVE_GNUTLS3_HMAC. * src/fns.c (Fsecure_hash_algorithms): Add function to list supported `secure-hash' algorithms. (extract_data_from_object): Add data extraction function that can operate on buffers and strings. (secure_hash): Use it. (Fsecure_hash): Mention `secure-hash-algorithms'. * src/gnutls.h: Include gnutls/crypto.h. * src/gnutls.c (Fgnutls_ciphers, gnutls_symmetric_aead) (gnutls_symmetric, Fgnutls_symmetric_encrypt, Fgnutls_symmetric_decrypt) (Fgnutls_macs, Fgnutls_digests, Fgnutls_hash_mac, Fgnutls_hash_digest) (Fgnutls_available_p): Implement GnuTLS cryptographic integration. * test/lisp/net/gnutls-tests.el: Add tests. 2017-07-14 Stefan Monnier * lisp/emacs-lisp/cl-lib.el (cl--random-time): Remove as well It's also defined in cl-extra.el. 2017-07-14 Paul Eggert Do not convert ij and IJ to compatibility chars * lisp/leim/quail/latin-alt.el: Omit lines for ij and IJ in Dutch. Problem reported by James Cloos (Bug#518#10). 2017-07-14 Toon Claes Remove Turkish ligatures from Dutch input method * lisp/leim/quail/latin-alt.el: Remove Turkish ligatures (Bug#518). 2017-07-14 Paul Eggert Improve stack-overflow heuristic on GNU/Linux Problem reported by Steve Kemp (Bug#27585). * src/eval.c (near_C_stack_top): Remove. All uses replaced by current_thread->stack_top. (record_in_backtrace): Set current_thread->stack_top. This is for when the Lisp interpreter calls itself. * src/lread.c (read1): Set current_thread->stack_top. This is for recursive s-expression reads. * src/print.c (print_object): Set current_thread->stack_top. This is for recursive s-expression printing. * src/thread.c (mark_one_thread): Get stack top first. * src/thread.h (struct thread_state.stack_top): Now void *, not char *. 2017-07-14 Paul Eggert Remove duplicate cl--random-state definition * lisp/emacs-lisp/cl-lib.el (cl--random-state): Remove. This variable is now defined in cl-extra.el (Bug#27617). 2017-07-14 Michael Albinus Adjust timer in tramp-test36-asynchronous-requests * test/lisp/net/tramp-tests.el (tramp-test36-asynchronous-requests): Adjust timer if it takes too much time. 2017-07-14 Eli Zaretskii Always display rmail progress report under user control * lisp/mail/rmail.el (rmail-show-message-1): Delete the second copy of '(message "Showing message %d..." msg)'. (Bug#27535) 2017-07-14 Eli Zaretskii Avoid byte-compilation warnings for advised functions * lisp/files.el (insert-directory, create-file-buffer): Add an advertised-calling-convention form to shut up byte-compilation warnings. (Bug#14860) 2017-07-14 Eli Zaretskii Add assertion related to display-line-numbers * src/xdisp.c (maybe_produce_line_number): Add assertion for the condition regarding IT->glyph_row->used[TEXT_AREA] expected by the code. (Bug#27668) 2017-07-14 Eli Zaretskii Prevent display corruption when display-line-numbers is set * src/xdisp.c (try_window_reusing_current_matrix): If giving up due to display-line-numbers, clear the window's desired glyph matrix before returning, as the following call to try_window will call display_line, which expects rows of the desired matrix cleared. (Bug#27668) 2017-07-14 Eli Zaretskii Revert "Use fixed-pitch font for display-line-numbers" This reverts commit d014a5e15c1110af77e7a96f06ccd0f0cafb099f. * lisp/faces.el (line-number): Don't use a fixed-pitch font, by popular demand. For relevant discussions, see https://lists.gnu.org/r/emacs-devel/2017-07/msg00433.html https://lists.gnu.org/r/emacs-devel/2017-07/msg00445.html 2017-07-14 Paul Eggert Merge from gnulib This incorporates: 2017-07-13 Improve cross-compilation guesses for native Windows 2017-07-11 More systematic m4 quoting and indentation 2017-07-10 Make sure $host and $host_os are defined when used 2017-07-03 stdioext: Port to OpenVMS 2017-06-24 xalloc-oversized: port to icc * doc/misc/texinfo.tex, lib/fpending.c, lib/stdio-impl.h: * lib/xalloc-oversized.h, m4/dirfd.m4, m4/gettimeofday.m4: * m4/lstat.m4, m4/mktime.m4, m4/pselect.m4, m4/putenv.m4: * m4/stdint.m4, m4/strtoimax.m4, m4/utimes.m4: Copy from Gnulib. 2017-07-13 Alan Mackenzie C++ Mode. Fix anomaly occurring when a ">" is deleted then reinserted. This fontification anomaly happened because after deleting the ">", c-forward-<>-arglist parses the preceding identifier as a putative type but stores it in c-found-types before it becomes clear it is not an unambiguous type. c-forward-<>-arglist fails, leaving the spurious type id in c-found-types. Fix this by "binding" c-found-types "to itself" in c-forward-<>-arglist, and restoring the original value when that function call fails. * lisp/progmodes/cc-engine.el (c-copy-found-types): New function. (c-forward-<>-arglist): Record the original value of c-found-types at the beginning of the function, and restore it at the end on failure. * lisp/progmodes/cc-mode.el (c-unfind-coalesced-tokens): Rewrite more accurately. 2017-07-13 Vincent Belaïche Add tests for SES, and fix one more cell renaming bug. * lisp/ses.el (ses-relocate-all): In case of insertion, do not relocate value for named cells as they keep the same symbol. (ses-rename-cell): Set new cell name symbol to cell value --- do not rely on recalculating. Push cells with updated data --- cell name, cell reference list, or cell formula --- to deferred write list. * test/lisp/ses-tests.el: New file, with 7 tests for SES. 2017-07-12 Alan Mackenzie Fix some bugs in c-defun-name. This fixes bug #25623. * lisp/progmodes/cc-cmds.el (c-defun-name): Fix some bugs to do with structs, etc. 2017-07-12 Vasilij Schneidermann Make prog-mode-map the parent of c-mode-base-map. Fixes bug #26658. * lisp/progmodes/cc-mode.el (top level): Make prog-mode-map the parent of c-mode-base-map if possible. 2017-07-12 Alan Mackenzie CC Mode: create and use c-set-keymap-parent. * lisp/progmodes/cc-defs.el (c-set-keymap-parent): New macro. * lisp/progmodes/cc-mode.el (top-level): Remove cc-bytecomp-defun for set-keymap-parents. (c-make-inherited-keymap): Use c-set-keymap-parent in place of inline code. 2017-07-12 Martin Rudalics Minor tweaks of new line number display variables * src/xdisp.c (Vdisplay_line_numbers): Tweak doc-string. (Vdisplay_line_number_width): Rename to Vdisplay_line_numbers_width. (maybe_produce_line_number): Comply with above rename. * lisp/cus-start.el (standard): * lisp/frame.el (top-level): * etc/NEWS: Comply with renaming of `display-line-number-width' to `display-line-numbers-width'. 2017-07-12 Eli Zaretskii Avoid assertion violations in close_infile_unwind * src/lread.c (close_infile_unwind): A temporary band-aid solution for bug#27642: allow 'infile' be NULL. 2017-07-11 Eli Zaretskii Use fixed-pitch font for display-line-numbers * lisp/faces.el (line-number): Use a fixed-pitch font by default, even if the default face uses a variable-pitch font. Reported by James Cloos . 2017-07-11 Eli Zaretskii Improve documentation of display-line-numbers * src/xdisp.c (syms_of_xdisp) : Improve the doc string. Suggested by Alex . 2017-07-11 Nicolas Petton Add an optional testfn parameter to assoc * src/fns.c (assoc): New optional testfn parameter used for comparison when provided. * test/src/fns-tests.el (test-assoc-testfn): Add tests for the new 'testfn' parameter. * src/buffer.c: * src/coding.c: * src/dbusbind.c: * src/font.c: * src/fontset.c: * src/gfilenotify.c: * src/image.c: * src/keymap.c: * src/process.c: * src/w32fns.c: * src/w32font.c: * src/w32notify.c: * src/w32term.c: * src/xdisp.c: * src/xfont.c: Add a third argument to Fassoc calls. * etc/NEWS: * doc/lispref/lists.texi: Document the new 'testfn' parameter. 2017-07-10 Michael Albinus Use `with-demoted-errors' in Tramp * lisp/net/tramp.el (tramp-with-demoted-errors): New defmacro. * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered): Use it. 2017-07-10 Michael Albinus Add Quick Start Guide to Tramp manual * doc/misc/tramp.texi: Use consequently "@value{tramp}" and "MS Windows". (Quick Start Guide): New node. * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.3.3-pre". 2017-07-10 Glenn Morris Fix failing module tests on GNU/Linux * test/src/emacs-module-tests.el (module--test-assertions--load-non-live-object) (module--test-assertions--call-emacs-from-gc): Avoid test failures due to backtraces. 2017-07-10 Paul Eggert Fix core dump in substitute-object-in-subtree Without this fix, (substitute-object-in-subtree #0=(#0# 'a) 'a) would dump core, since the C code would recurse indefinitely through the infinite structure. This patch adds an argument to the function, and renames it to lread--substitute-object-in-subtree as the function is not general-purpose and should not be relied on by outside code. See Bug#23660. * src/intervals.c (traverse_intervals_noorder): ARG is now void *, not Lisp_Object, so that callers need not cons unnecessarily. All callers changed. Also, remove related #if-0 code that was “temporary” in the early 1990s and has not been compilable for some time. * src/lread.c (struct subst): New type, for substitution closure data. (seen_list): Remove this static var, as this info is now part of struct subst. All uses removed. (Flread__substitute_object_in_subtree): Rename from Fsubstitute_object_in_subtree, and give it a 3rd arg so that it doesn’t dump core when called from the top level with an already-cyclic structure. All callers changed. (SUBSTITUTE): Remove. All callers expanded and then simplified. (substitute_object_recurse): Take a single argument SUBST rather than a pair OBJECT and PLACEHOLDER, so that its address can be passed around as part of a closure; this avoids the need for an AUTO_CONS call. All callers changed. If the COMPLETED component is t, treat every subobject as potentially circular. (substitute_in_interval): Take a struct subst * rather than a Lisp_Object, for the closure data. All callers changed. * test/src/lread-tests.el (lread-lread--substitute-object-in-subtree): New test, to check that the core dump does not reoccur. 2017-07-10 Philipp Stephani Minor simplification of module_free_global_ref * src/emacs-module.c (module_free_global_ref): Remove unused variable 'hashcode'. Inline variable 'value' that's only used once. 2017-07-10 Philipp Stephani Re-add a useful assertion * src/emacs-module.c (module_free_global_ref): Re-add assertion that the reference count is zero. This assertion was removed in commit 8afaa1321f8088bfb877fe4b6676e8517adb0bb7, but it's not included in the test performed by XFASTINT before, because the previous reference count could have been zero already in the case of a buggy implementation. This assertion might have detected Bug#27587. 2017-07-10 Valentin Gatien-Baron (tiny change) Fix bug in module_free_global_ref (Bug#27587) * src/emacs-module.c (module_free_global_ref): Actually remove entry from hash table. 2017-07-09 Philipp Stephani Further improve electric quote support for Markdown (Bug#24709) Markdown sets both 'comment-start' and 'comment-use-syntax' to non-nil values. Therefore 'electric-quote-mode' recognized it as a programming mode. Fix this by first checking whether the current major mode is derived from 'text-mode'. * lisp/electric.el (electric-quote-post-self-insert-function): Treat 'text-mode' as stronger signal than comment syntax. * test/lisp/electric-tests.el (electric-quote-markdown-in-text) (electric-quote-markdown-in-code): Adapt unit tests. 2017-07-09 Philipp Stephani Remove pointless code in 'electric-quote-mode' * lisp/electric.el (electric-quote-post-self-insert-function): Remove pointless form. 2017-07-09 Philipp Stephani Refactor 'electric-quote-mode' * lisp/electric.el (electric-quote-post-self-insert-function): Remove local variable 'start', which was misnamed and only used once. 2017-07-09 Saulius Menkevičius (tiny change) Avoid crashes on MS-Windows starting 64-bit .NET executables * src/w32proc.c (w32_executable_type): Don't assume that the import directory in a DLL will always be non-NULL. (Bug#27527) 2017-07-09 Eli Zaretskii Avoid compilation warning in files.el * lisp/files.el (auto-save-visited-file-name): Avoid obsoletion warning due to its use in auto-save-visited-mode. 2017-07-09 Eli Zaretskii Improve indexing of VC-related stuff in the Emacs manual * doc/emacs/maintaining.texi (Version Control): Add a "VC" index entry. (Bug#27627) 2017-07-09 Eli Zaretskii Speed up display of line numbers for very large buffers * src/xdisp.c (maybe_produce_line_number): Speed up line counting using values cached by mode-line display of line numbers. (Bug#27622) 2017-07-09 Alexander Kuleshov Define internal_border_parts for window systems only (Bug#27615) * src/keyboard.c: (internal_border_parts): Define only when HAVE_WINDOW_SYSTEM is enabled. (Bug#27615) 2017-07-09 R. Bernstein Add realgud faces faces to whiteboard... Adjust wheatgrass to use underline for enabled/disabled breakpoints 2017-07-08 Noam Postavsky Optimize UCS normalization tests Brings the the time for `ucs-normalize-part1' from 200s down to 130s. * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-tests--parse-column): Use character instead of string of length 1 for terminator. Convert return value into string since all callers need that form anyway. (ucs-normalize-tests--normalization-equal-p): Rename from ucs-normalize-tests--normalize. Use dedicated buffer instead of messing with narrowing. Take string to compare against and insert it into buffer so that compare-buffer-substrings can be used instead of allocating a new string from buffer contents. (ucs-normalize-tests--normalization-chareq-p): New macro, specialized for comparing single character. (ucs-normalize-tests--rule1-holds-p) (ucs-normalize-tests--rule2-holds-p): Turn into defsubst. (ucs-normalize-tests--rule1-failing-for-partX): Use `eq' instead of `='. 2017-07-08 Noam Postavsky Update failing lines for UCS normalize tests * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-tests--failing-lines-part2): Update for new admin/unidata/NormalizationTest.txt version. 2017-07-08 Noam Postavsky Semi-automate the procedure for updating UCS normalize test bad lines * test/lisp/international/ucs-normalize-tests.el: Remove incorrect commentary describing a manual procedure for producing the updated failing lines, it did not actually work. Replace it with pointer to new function which prints the updated values. (ucs-normalize-tests--rule1-holds-p): Renamed from ucs-normalize-tests--invariants-hold-p. (ucs-normalize-tests--rule2-holds-p): Renamed from ucs-normalize-tests--invariants-rule2-hold-p. (ucs-normalize-tests--rule1-failing-for-partX): Renamed from ucs-normalize-tests--invariants-failing-for-part. (ucs-normalize-tests--rule1-failing-for-lines): Renamed from ucs-normalize-tests--invariants-failing-for-lines. (ucs-normalize-tests--part2-rule1-failed-lines): New variable. (ucs-normalize-part2): Set it. (ucs-normalize-part1): Always run through to end of test before checking for failures. (ucs-normalize-tests--insert-failing-lines) (ucs-normalize-check-failing-lines): New functions, used to update the *--failing-lines-part* variables. 2017-07-08 Paul Eggert * lisp/cus-start.el (standard): Spelling fix. 2017-07-08 Philipp Stephani Module assertions: check for garbage collections It's technically possible to write a user pointer finalizer that calls into Emacs module functions. This would be disastrous because it would allow arbitrary Lisp code to run during garbage collection. Therefore extend the module assertions to check for this case. * src/emacs-module.c (module_assert_thread): Also check whether a garbage collection is in progress. * test/data/emacs-module/mod-test.c (invalid_finalizer) (Fmod_test_invalid_finalizer): New test module functions. (emacs_module_init): Register new test function. * test/src/emacs-module-tests.el (module--test-assertion) (module--with-temp-directory): New helper macros. (module--test-assertions--load-non-live-object): Rename existing unit test, use helper macros. (module--test-assertions--call-emacs-from-gc): New unit test. 2017-07-08 Eli Zaretskii Capitalize the menu entry for display-line-numbers * lisp/menu-bar.el (menu-bar-showhide-menu): Capitalize menu item for display-line-numbers. Suggested by Martin Rudalics . 2017-07-08 Eli Zaretskii Update Unicode data and files to Unicode 10.0 * admin/notes/unicode: * admin/unidata/README: * admin/unidata/BidiBrackets.txt: * admin/unidata/BidiMirroring.txt: * admin/unidata/Blocks.txt: * admin/unidata/IVD_Sequences.txt: * admin/unidata/NormalizationTest.txt: * admin/unidata/SpecialCasing.txt: * admin/unidata/UnicodeData.txt: * lisp/international/characters.el: * lisp/international/fontset.el (script-representative-chars): * lisp/international/mule-cmds.el (ucs-names): Update per Unicode 10.0. 2017-07-08 Alexander Gramiak Support '=' in Scheme and Lisp tags in 'etags' * lib-src/etags.c (get_lispy_tag): New function. (L_getit, Scheme_functions): Use get_lispy_tag (Bug#5624). * test/manual/etags/CTAGS.good: * 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: * test/manual/etags/Makefile: * test/manual/etags/el-src/TAGTEST.EL: Update tests. * test/manual/etags/scm-src/test.scm: New tests for Scheme. 2017-07-08 Alexander Kuleshov Avoid compiler warnings in xdisp.c debugging code * src/xdisp.c (dump_glyph, dump_glyph_row, Fdump_glyph_matrix): Use pD directives for ptrdiff_t values instead of pI, to avoid compilation warnings on 64-bit hosts. (Bug#27597) 2017-07-08 Eli Zaretskii Commentary enhancement in frame.el * lisp/frame.el: Explain how to test whether a variable needs to be added to the list of those which are watched for buffer redisplay. 2017-07-08 Eli Zaretskii Support display of line numbers natively This merges branch 'line-numbers'. * src/buffer.c (disable_line_numbers_overlay_at_eob): New function. * src/lisp.h (disable_line_numbers_overlay_at_eob): Add prototype. * src/dispextern.h (struct it): New members pt_lnum, lnum, lnum_bytepos, lnum_width, and lnum_pixel_width. * src/indent.c (line_number_display_width): New function, refactored from line-number width calculations in vertical-motion. (Fvertical_motion): Call line_number_display_width when the width of line-number display is needed. (Fline_number_display_width): New defun. (syms_of_indent): Defsubr it. * src/indent.c (Fvertical_motion): Help C-n/C-p estimate correctly the width used up by line numbers by looking near the window-start point. If window-start is outside of the accessible portion, temporarily widen the buffer. * src/term.c (produce_glyphs): Adjust tab stops for the horizontal space taken by the line-number display. * src/xdisp.c (display_count_lines_logically) (display_count_lines_visually, maybe_produce_line_number) (should_produce_line_number, row_text_area_empty): New functions. (try_window_reusing_current_matrix): Don't use this method when display-line-numbers is in effect. (try_window_id, try_cursor_movement): Disable these optimizations when the line-number-current-line face is different from line-number face and for relative line numbers. (try_window_id, redisplay_window, try_cursor_movement): For visual line-number display, disable the same redisplay optimizations as for relative. (x_produce_glyphs): Adjust tab stops for the horizontal space taken by the line-number display. (hscroll_window_tree): Adjust hscroll calculations to line-number display. (DISP_INFINITY): Renamed from INFINITY to avoid clashes with math.h; all users changed. (set_cursor_from_row): Fix calculation of cursor X coordinate in R2L rows with display-produced glyphs at the beginning. (display_line): Use should_produce_line_number to determine whether a line number should be produced for each glyph row, and maybe_produce_line_number to produce line numbers. Don't display line numbers in the minibuffer and in tooltip frames. Call row_text_area_empty to verify that a glyph row's text area is devoid of any glyphs that came from a buffer or a string. This fixes a bug with empty-lines indication disappearing when line numbers or line-prefix are displayed. (syms_of_xdisp) : New buffer-local variables. : New variable. * lisp/cus-start.el (standard): Provide customization forms for display-line-numbers and its sub-features. * lisp/faces.el (line-number, line-number-current-line): New faces. * lisp/frame.el: Add display-line-numbers, display-line-numbers-widen, display-line-numbers-current-absolute, and display-line-number-width to the list of variables that should trigger redisplay of the current buffer. * lisp/menu-bar.el (menu-bar-showhide-menu): Add menu-bar item to turn display-line-numbers on and off. (toggle-display-line-numbers): New function. * lisp/simple.el (last--line-number-width): New internal variable. (line-move-visual): Use it to adjust temporary-goal-column when line-number display changes its width. * doc/emacs/basic.texi (Position Info): Add cross-reference to "Display Custom", for line-number display. * doc/emacs/custom.texi (Init Rebinding): * doc/emacs/modes.texi (Minor Modes): Remove references to linum-mode. * doc/emacs/display.texi (Display Custom): Describe the line-number display. * doc/lispref/display.texi (Size of Displayed Text): Document line-number-display-width. * etc/NEWS: Document display-line-numbers and its customizations. 2017-07-08 Paul Eggert Fix more ungetc bugs with encoding errors * src/lread.c (infile): New variable, replacing ... (instream): ... this. All uses changed. (readbyte_from_stdio): New function, which deals with lookahead. (readbyte_from_file, Fget_file_char): Use it. (Fget_file_char): When misused, signal an error instead of relying on undefined behavior. (close_infile_unwind): New function. (Fload): Use it. (readevalloop): 2nd arg is now struct infile *, not FILE *. All callers changed. (read1): Handle lookahead when copying doc strings with encoding errors. 2017-07-08 Paul Eggert Avoid ungetc when loading charset maps from files * src/charset.c (read_hex): New args LOOKAHEAD and TERMINATOR, replacing the old EOF. All callers changed. This avoids the need to call ungetc. 2017-07-08 Paul Eggert Fix ungetc bug when reading an encoding error * src/lread.c (readchar, read_emacs_mule_char): Fix off-by-one error when reading an encoding error from a file, e.g., a symbol in an .elc file whose name is "\360\220\200\360". 2017-07-07 Stefan Monnier * lisp/wid-edit.el (widget-color--choose-action): Use a closure * lisp/window.el (display-buffer--special-action): Use a closure. 2017-07-07 Stephen Berman Add new todo-mode.el tests * test/lisp/calendar/todo-mode-tests.el (with-todo-test): Declare an Edebug spec. Restore pre-test-run state of test files. (todo-test--show, todo-test--move-item) (todo-test--insert-item): New functions. (todo-test-get-archive): Remove, as subsumed by todo-test--show. Adjust all callers. (todo-test--is-current-buffer): Rename from todo-test-is-current-buffer and adjust uses. (todo-test-item-highlighting): Use todo-test--show. (todo-test-revert-buffer01, todo-test-revert-buffer02) (todo-test-raise-lower-priority) (todo-test-todo-mark-unmark-category, todo-test-move-item01) (todo-test-move-item02, todo-test-move-item03) (todo-test-move-item04, todo-test-move-item05) (todo-test-toggle-item-header01) (todo-test-toggle-item-header02) (todo-test-toggle-item-header03) (todo-test-toggle-item-header04) (todo-test-toggle-item-header05) (todo-test-toggle-item-header06) (todo-test-toggle-item-header07): New tests. * test/lisp/calendar/todo-mode-resources/todo-test-1.toda: * test/lisp/calendar/todo-mode-resources/todo-test-1.todo: Modify to accommodate new tests. 2017-07-07 Stephen Berman todo-mode.el: Fix handling of hidden item headers (bug#27609) * lisp/calendar/todo-mode.el (todo--item-headers-hidden): New variable. (todo-toggle-item-header): Use it. Make this command a noop if the file has no items. (todo-move-item, todo-item-done): Instead of concatenating the items to move into one string, make a list of them to facilitate handling hidden headers. Adjust insertion accordingly. (todo-archive-done-item): Handle hidden headers in archive file. (todo-unarchive-items): Handle hidden headers in todo file. (todo-backward-item): Use todo--item-headers-hidden and handle moving backward work when item date-time headers are hidden. (todo-remove-item): Delete date-time header overlay. (todo-get-overlay, todo-insert-with-overlays): Make them work with hidden date-time headers. (todo-modes-set-2): Make todo--item-headers-hidden buffer local. 2017-07-07 Stephen Berman Fix several todo-mode bugs found while debugging bug#27609 * lisp/calendar/todo-mode.el (todo-toggle-mark-item): Calculate current category only once. (todo-mark-category): Update number of marked items to avoid spurious duplication in todo-categories-with-marks alist and corruption of the todo-categories alist. Handle empty line when there are no todo items and done items are shown. (todo-set-item-priority): Make noop if called from todo-raise-item-priority or todo-lower-item-priority when point is on a done todo item or an empty line. (todo-move-item): Use markers instead of integer positions to correctly handle deleting the now moved items from the source category (without markers an infinite loop arises when moving marked item to a preceding category). (todo-unarchive-items): Put point on the (first) restored done item, instead of leaving it at the end of the done items separator string. (todo-revert-buffer): Ensure buffer remains read-only after reverting. 2017-07-07 Eli Zaretskii Exclude blank columns from value of line-number-display-width * src/indent.c (Fline_number_display_width): Don't add 2 to the number of columns we return, to make this consistent with display-line-number-width. 2017-07-07 Eli Zaretskii Fix vertical-motion across the place where line-number width changes * src/indent.c (line_number_display_width): New function, refactored from line-number width calculations in vertical-motion. (Fvertical_motion): Call line_number_display_width when the width of line-number display is needed. (Fline_number_display_width): New defun. (syms_of_indent): Defsubr it. * doc/lispref/display.texi (Size of Displayed Text): Document line-number-display-width. * etc/NEWS: Mention line-number-display-width. * lisp/simple.el (last--line-number-width): New internal variable. (line-move-visual): Use it to adjust temporary-goal-column when line-number display changes its width. 2017-07-07 Martin Rudalics Remove Vwindow_text_change_functions and related code Vwindow_text_change_functions had been provided for implementing line numbers but apparently was never functional or in use. * src/xdisp.c (redisplay_window): Remove handling of Vwindow_text_change_functions. (syms_of_xdisp): Remove Qwindow_text_change_functions. (Vwindow_text_change_functions): Remove variable. * doc/lispref/hooks.texi (Standard Hooks): Remove entry for `window-text-change-functions'. 2017-07-07 Mark Oteiza Convert more uses of looking-at to following-char More followup to Karl Fogel's commit a84da83c1. * lisp/dired-aux.el (dired-add-entry, dired-subdir-hidden-p): * lisp/dired-x.el (dired-mark-unmarked-files, dired-mark-sexp): * lisp/help-fns.el (doc-file-to-man, doc-file-to-info): * lisp/proced.el (proced-toggle-marks): * lisp/progmodes/f90.el (f90-indent-line): * lisp/ses.el (ses-load): * lisp/tar-mode.el (tar-expunge): Replace instances of looking-at with char comparisons using following-char. 2017-07-07 Noam Postavsky Don't skip epg tests (Bug#23561) * test/lisp/epg-tests.el (with-epg-tests): Ignore REQUIRE-PASSPHRASE parameter, since we supply the passphrase via pinentry-program for all GPG versions (as of 2017-02-28 "Fix epg-tests with dummy-pinentry program (Bug#23619)"). (epg-tests-program-alist-for-passphrase-callback): Remove. 2017-07-06 Eli Zaretskii Implement line numbers that disregard narrowing * src/xdisp.c (display_count_lines_logically): New function, counts line numbers disregarding narrowing. Suggested by Andy Moreton . (maybe_produce_line_number): Call display_count_lines_logically instead of display_count_lines. Adapt BEGV, ZV, etc. to display-line-numbers-widen. (syms_of_xdisp) : New buffer-local variable. * lisp/cus-start.el (standard): Provide a customization form for display-line-numbers-widen. * lisp/frame.el: Add display-line-numbers-widen, display-line-numbers-current-absolute, and display-line-number-width to the list of variables that should trigger redisplay of the current buffer. * doc/emacs/display.texi (Display Custom): Document display-line-numbers-widen. 2017-07-06 Noam Postavsky Fix lisp-comment-indent for single-semicolon case * lisp/emacs-lisp/lisp-mode.el (lisp-comment-indent): Only check for open paren if we're looking at multiple comment characters. * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-comment-indent-1) (lisp-comment-indent-2): New tests. 2017-07-06 Paul Eggert Spelling fixes * lisp/org/org-table.el (org-table-sort-lines): Fix misspelling in prompt. * lisp/org/ox-ascii.el (org-ascii--describe-datum): Fix misspelling in call to org-element-lineage. 2017-07-06 Noam Postavsky Don't put whitespace between open paren and comment in Lisp modes (Bug#19740) * lisp/emacs-lisp/lisp-mode.el (lisp-comment-indent): If current line's code ends in open paren, set comment indentation exactly to column following it. (lisp-mode-variables): Set `comment-indent-function' to `lisp-comment-indent'. 2017-07-06 Noam Postavsky Allow comment-indent-functions to specify exact indentation (Bug#385) * lisp/newcomment.el (comment-choose-indent): Interpret a cons of two integers as indicating a range of acceptable indentation. (comment-indent): Don't apply `comment-inline-offset', `comment-choose-indent' already does that. (comment-indent-function): * doc/emacs/programs.texi (Options for Comments): Document new acceptable return values. * etc/NEWS: Announce it. 2017-07-06 Paul Eggert Check for integer overflow in xbm images * src/image.c (XBM_TK_OVERFLOW): New constant. (xbm_scan): Check for integer overflow instead of relying on undefined behavior. Check that octal digits are actually octal. 2017-07-06 Paul Eggert Convert hex digits more systematically This makes the code a bit smaller and presumably faster, as it substitutes a single lookup for conditional jumps. * src/character.c (hexdigit): New constant. (syms_of_character) [HEXDIGIT_IS_CONST]: Initialize it. * src/character.h (HEXDIGIT_CONST, HEXDIGIT_IS_CONST): New macros. (hexdigit): New decl. (char_hexdigit): New inline function. * src/charset.c: Do not include c-ctype.h. * src/charset.c (read_hex): * src/editfns.c (styled_format): * src/image.c (xbm_scan): * src/lread.c (read_escape): * src/regex.c (ISXDIGIT) [emacs]: Use char_hexdigit insted of doing it by hand. 2017-07-06 Paul Eggert Don’t use -Woverride-init I have some further changes in mind that would also need to disable the -Woverride-init warnings. In practice these warnings seem to be more trouble than they’re worth, so disable them in the cc command line. * configure.ac: Disable -Woverride-init here ... * src/bytecode.c: ... rather than here. 2017-07-05 Glenn Morris * lisp/progmodes/python.el (auto-mode-alist): Add .pyi. (Bug#27847) * lisp/org/ox-html.el (org-html-infojs-template): Update copyright. 2017-07-05 Glenn Morris Small fix for bug-reference.el * lisp/progmodes/bug-reference.el (bug-reference-bug-regexp): Autoload safety property. (Bug#27481) 2017-07-05 Michael Albinus Suppress timers in Tramp * lisp/net/tramp.el (tramp-file-name-handler): Don't trigger timers. * test/lisp/net/tramp-tests.el (tramp-test36-asynchronous-requests): Trigger timers. (tramp-test37-recursive-load, tramp-test38-remote-load-path): Set `default-directory' to a trustworthy value. 2017-07-05 rocky Add realgud face definitions Add realgud faces to tdsh-dark-theme 2017-07-05 Stefan Monnier * lisp/progmodes/cc-awk.el: Mark unused args * lisp/progmodes/cc-bytecomp.el: Mark unused args 2017-07-05 Stefan Monnier * lisp/progmodes/cc-defs.el (lookup-syntax-properties): Move ... ... before first use 2017-07-05 Stefan Monnier * lisp/progmodes/cc-vars.el: Mark unused args 2017-07-05 Stefan Monnier * lisp/progmodes/cc-langs.el: Mark unused args (c-primary-expr-regexp): Remove unused vars ambiguous-prefix-ops and unambiguous-prefix-ops. 2017-07-05 Stefan Monnier * lisp/progmodes/cc-engine.el: Mark unused args (c-beginning-of-statement-1, c-guess-basic-syntax): Remove unused var c-in-literal-cache. (c-debug-sws-msg): Silence byte-compiler, even if we don't use the arg. (c-append-to-state-cache): Remove unused var `bra+1s'. (c-remove-stale-state-cache): Remove unused var `pps-point-state'. (c-invalidate-state-cache-1): Remove unused var `pa'. (c-forward-decl-or-cast-1): Change comments so they don't look like outline headers. (c-restricted-<>-arglists, c-parse-and-markup-<>-arglists): Declare before first use. (c-forward-decl-or-cast-1): Remove unused var `backup-kwd-sym'. (c-backward-over-enum-header): Remove unused var `up-sexp-pos'. 2017-07-05 Stefan Monnier * lisp/progmodes/cc-cmds.el: Remove unused vars (c-syntactic-context): Declare as dynbound. (c-beginning-of-defun, c-end-of-defun): Remove unused var `start'. 2017-07-05 Stefan Monnier * lisp/progmodes/cc-guess.el: Remove unused var (c-guess-view-reorder-offsets-alist-in-style): Remove redundantly bound and computed variable `guessed-syntactic-symbols'. 2017-07-05 Stefan Monnier * lisp/progmodes/cc-align.el: Mark unused arguments 2017-07-05 Stefan Monnier * lisp/progmodes/cc-mode.el: Mark unused arguments (c-parse-quotes-before-change, c-parse-quotes-after-change): Remove unused vars. 2017-07-05 Noam Postavsky Mention `ffap-url-unwrap-local' in find-file-at-point's docstring (Bug#27564) * lisp/ffap.el (find-file-at-point): Mention `ffap-url-unwrap-local' and `ffap-url-unwrap-remote'. 2017-07-05 Noam Postavsky Fix infloop in uncomment-region-default (Bug#27112) When `comment-continue' has only blanks, `comment-padright' produces a regexp that matches the empty string, so `uncomment-region-default' will loop infinitely. * lisp/newcomment.el (comment-padright): Only return a regexp if STR has nonblank characters. 2017-07-04 Eli Zaretskii Fix display of current line number in visual mode * src/xdisp.c (maybe_produce_line_number): Fix visual-mode display of current line when line-number-current-line face was customized. Reported by Filipe Silva . 2017-07-03 Philipp Stephani Use hook instead of face list to inhibit electric quoting This is more flexible and doesn't couple electric quoting to font locking. Give that 'electric-quote-code-faces' was just introduced, remove it without formal deprecation. * lisp/electric.el (electric-quote-inhibit-functions): New abnormal hook variable. (electric-quote-post-self-insert-function): Run the hook. Remove use of old 'electric-quote-code-faces' variable. * test/lisp/electric-tests.el (electric-quote-markdown-in-text) (electric-quote-markdown-in-code): Adapt unit tests. 2017-07-03 Ingo Lohmar Offer non-aligned indentation in lists in js-mode (Bug#27503) * lisp/progmodes/js.el (js--proper-indentation): New customization option 'js-indent-align-list-continuation'. Affects argument lists as well as arrays and object properties. * test/manual/indent/js-indent-align-list-continuation-nil.js: Test the change. 2017-07-03 Eli Zaretskii Avoid errors in vertical-motion when buffer is narrowed * src/indent.c (Fvertical_motion): If need to start from window-start, and it is outside of the accessible portion, temporarily widen the buffer. This avoids errors in evil-mode. Reported by James Nguyen . 2017-07-03 Michael Albinus (Re-)activate remote tests of filenotify-tests.el * test/lisp/filenotify-tests.el (file-notify-test-remote-temporary-file-directory): Declare default host for mock method. Offer home directory for mock method if it doesn't exist. (file-notify-test09-watched-file-in-watched-dir-remote): Remove, it doesn't work reliably. 2017-07-03 Noam Postavsky Reset ansi escape context before printing eshell prompt (Bug#27407) * lisp/eshell/em-prompt.el (eshell-emit-prompt): Reset `ansi-color-context-region'. 2017-07-03 Noam Postavsky Let ansi-color overlay hooks work in eshell (Bug#27407) * lisp/ansi-color.el (ansi-color-make-extent): Add `ansi-color-freeze-overlay' to `insert-behind-hooks' as well. * lisp/eshell/esh-mode.el (eshell-output-filter): Let-bind `inhibit-modification-hooks' to nil while inserting the string. 2017-07-03 Noam Postavsky Fix and simplify ansi escape detection (Bug#21381) * lisp/ansi-color.el (ansi-color-regexp, ansi-color-drop-regexp): Remove. (ansi-color-control-seq-regexp): New constant, matches all escape sequences. (ansi-color-filter-apply, ansi-color-apply) (ansi-color-filter-region, ansi-color-apply-on-region): Use it instead of matching color sequences separately from ignored sequences. Differentiate color sequences simply by checking the last character. 2017-07-03 Damien Cassou Add absolute optional parameter to line-number-at-pos (Bug#26417) * lisp/simple.el (line-number-at-pos): Add a second optional argument 'absolute'. * test/lisp/simple-tests.el: Add tests for 'line-number-at-pos'. 2017-07-03 R. Bernstein Add realgud faces 2017-07-03 Michael Albinus Fix tramp-tests.el for hydra * test/Makefile.in: Remove instrumentation for tramp-tests. * test/lisp/net/tramp-tests.el (tramp-test36-asynchronous-requests): Remove instrumentation. Wrap with a timeout. Give hydra another timer value. Set `default-directory' in timer. 2017-07-03 Bastien Merge branch 'master' into scratch/org-mode-merge Merge branch 'master' into scratch/org-mode-merge 2017-07-03 Tino Calancha dired-do-shell-command: Fix check for wildcards * lisp/dired-aux.el (dired-do-shell-command): Replace just '?', '*' and '`?' i.e., keep the whitespaces. * test/lisp/dired-aux-tests.el (dired-test-bug27496): Add test. 2017-07-02 Noam Postavsky Split shr-copy-url dwim behavior into separate functions (Bug#26826) * lisp/net/shr.el (shr-url-at-point, shr-probe-url) (shr-probe-and-copy-url, shr-maybe-probe-and-copy-url): New functions, split out from `shr-copy-url'. (shr-copy-url): Only copy the url, don't fetch it. (shr-map): Bind 'w' and 'u' to `shr-maybe-probe-and-copy-url', which has the same behavior as the old `shr-copy-url'. * etc/NEWS: Announce changes. 2017-07-02 Alex Branham (tiny change) Make eww-search-words prompt for query if nothing selected * lisp/net/eww.el (eww-search-words): Make eww-search-words prompt the user for a search query if the region is inactive or if the region is just whitespace. 2017-07-02 Noam Postavsky * lisp/emacs-lisp/cl-print.el (cl-print-compiled-button): t by default. * lisp/emacs-lisp/debug.el (debugger-insert-backtrace): * lisp/help-fns.el (describe-variable): No need to let-bind `cl-print-compiled-button' to t anymore. 2017-07-02 Philipp Stephani Electric quotes: Improve support for Markdown mode (Bug#24709) Introduce a new user option 'electric-quote-context-sensitive'. If non-nil, have ' insert an opening quote if sensible. Also introduce a new variable 'electric-quote-code-faces'. Major modes such as 'markdown-mode' can add faces to this list to treat text as inline code and disable electric quoting. * lisp/electric.el (electric-quote-context-sensitive): New user option. (electric-quote-code-faces): New variable. (electric-quote-post-self-insert-function): Treat ' as ` if desired and applicable; disable electric quoting for given faces. * test/lisp/electric-tests.el (electric-quote-opening-single) (electric-quote-closing-single, electric-quote-opening-double) (electric-quote-closing-double) (electric-quote-context-sensitive-backtick) (electric-quote-context-sensitive-bob-single) (electric-quote-context-sensitive-bob-double) (electric-quote-context-sensitive-bol-single) (electric-quote-context-sensitive-bol-double) (electric-quote-context-sensitive-after-space-single) (electric-quote-context-sensitive-after-space-double) (electric-quote-context-sensitive-after-letter-single) (electric-quote-context-sensitive-after-letter-double) (electric-quote-context-sensitive-after-paren-single) (electric-quote-context-sensitive-after-paren-double) (electric-quote-markdown-in-text) (electric-quote-markdown-in-code): New unit tests. 2017-07-02 Michael Albinus * doc/misc/tramp.texi: Replace ftp:// and http:// URLs by https://. 2017-07-02 Eli Zaretskii Avoid off-by-one errors in column C-n/C-p calculations * src/indent.c (Fvertical_motion): Help C-n/C-p estimate correctly the width used up by line numbers by looking near the window-start point. 2017-07-02 Tino Calancha Ask confirmation for all suspicious wildcards * lisp/dired-aux.el (dired-do-shell-command): Check that all the wildcards are right. Otherwise, ask for confirmation (Bug#27496). 2017-07-02 Tino Calancha Extend dired-do-shell-command substitutions Substitute "`?`" inside command with the current file name. See details in: https://lists.gnu.org/r/emacs-devel/2017-06/msg00618.html * lisp/dired-aux.el (dired-quark-subst-regexp, dired-star-subst-regexp): Mark as obsolete. (dired-isolated-string-re): New defun. (dired--star-or-qmark-p): New predicate. (dired-do-shell-command): Use dired--star-or-qmark-p. Substitute "`?`" with the current file name. * doc/emacs/dired.texi (Shell Commands in Dired): Update manual. 2017-07-02 Alan Mackenzie Fix bug in yesterday's CC Mode commit. * lisp/progmodes/cc-mode.el (c-quoted-number-head-before-point): Check a search has succeded before using the match data. (c-quoted-number-head-before-point, c-quoted-number-head-after-point): Specify that the position of the extremity of the head or tail is in the match data. 2017-07-02 Philipp Stephani Remove FIXME comments about sentinel values These FIXMEs can't be addressed because they would require breaking changes to the module API. Furthermore, other module functions don't return sentinel values as well, so users generally have to call non_local_exit_check anyway. * src/emacs-module.c (module_set_user_ptr) (module_set_user_finalizer, module_vec_set, module_vec_size): Remove FIXME comments. 2017-07-02 Philipp Stephani Adapt Lisp reference to reader changes The reader now warns about some unescaped character literals, but still allows them for compatibility reasons. Slightly adapt the manual to forbid them officially. * doc/lispref/objects.texi (Basic Char Syntax): Document that backslashes are now required before some characters. 2017-07-02 Michael Albinus Fix Bug#27502 * lisp/autorevert.el (auto-revert-find-file-function): New defun. (find-file-hook): Use it. (Bug#27502) (auto-revert-remove-current-buffer): New defun. (auto-revert-mode, auto-revert-buffers): Use it. 2017-07-02 Noam Postavsky Let test summary go through even if some logs were not generated * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): Check for existence of log files before reading. 2017-07-01 Philipp Stephani * src/module-env-25.h (copy_string_contents): Fix comment. 2017-07-01 Philipp Stephani Also mark module init function as noexcept if possible * src/emacs-module.h.in (emacs_module_init): Mark as noexcept if possible. 2017-07-01 Philipp Stephani Improve C++98 compatibility * src/emacs-module.h.in (emacs_funcall_exit): Lose trailing comma. C++98 doesn't allow trailing commas in enumerations. 2017-07-01 Eli Zaretskii Minor copyedits of manuals regarding bidi conformance * doc/emacs/mule.texi (Bidirectional Editing): * doc/lispref/display.texi (Bidirectional Display): Update the bidi conformance text. 2017-07-01 Alan Mackenzie Make C++ digit separators work. Amend the handling of single quotes generally Single quotes, even in strings and comments, are now marked with the "punctuation" syntax-table property, except where they are validly bounding a character literal. They are font locked with font-lock-warning-face except where they are valid. This is done in C, C++, ObjC, and Java Modes. * lisp/progmodes/cc-defs.el (c-clear-char-property-with-value-on-char-function) (c-clear-char-property-with-value-on-char, c-put-char-properties-on-char): New functions/macros. * lisp/progmodes/cc-fonts.el (c-font-lock-invalid-single-quotes): New function. (c-basic-matchers-before): invoke c-font-lock-invalid-single-quotes. * lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): Remove c-before-after-change-digit-quote from wherever it occurs. Insert c-parse-quotes-before-change into the entries for the languages where it is needed. (c-before-font-lock-functions): Remove c-before-after-change-digit-quote from wherever it occurs. Insert c-parse-quotes-after-change into the entries for the languages which need it. (c-has-quoted-numbers): New lang-defconst/-defvar. * lisp/progmodes/cc-mode.el (c-before-after-change-digit-quote): Remove. (c-maybe-quoted-number-head, c-maybe-quoted-number-tail) (c-maybe-quoted-number): New defconsts. (c-quoted-number-head-before-point, c-quoted-number-tail-after-point) (c-quoted-number-straddling-point, c-parse-quotes-before-change) (c-parse-quotes-after-change): New functions. 2017-07-01 Noam Postavsky Ignore mouse-movement for describe-key-briefly (Bug#12204) * lisp/help.el (help-read-key-sequence): Add optional argument ot ignore `mouse-movement' events. (describe-key-briefly): Use it. * doc/emacs/help.texi (Key Help): * etc/NEWS: Mention that mouse movement is ignored. 2017-07-01 Noam Postavsky Refactor key describing commands * lisp/help.el (help-read-key-sequence, help--analyze-key): New functions, extracted from `describe-key' and `describe-key-briefly'. (describe-key, describe-key-briefly): Use them. 2017-07-01 Eli Zaretskii Improve display of tabs with line numbers * src/xdisp.c (x_produce_glyphs): Improve calculation of next tab stop in hscrolled lines. Prevent aborts in compute_line_metrics. 2017-07-01 Alan Third Fix threads on NS (bug#25265) src/nsterm.h (ns_select): Compiler doesn't like sigmask being const. (ns_run_loop_break) [HAVE_PTHREAD]: New function. src/nsterm.m (ns_select): Call thread_select from within ns_select. (ns_run_loop_break) [HAVE_PTHREAD]: New function. (ns_send_appdefined): Don't wait for main thread when sending app defined event. src/process.c (wait_reading_process_output): Call thread_select from within ns_select. src/systhread.c (sys_cond_broadcast) [HAVE_NS]: Break ns_select out of its event loop using ns_run_loop_break. 2017-07-01 Eli Zaretskii Avoid slow redisplay under 'visual' mode of line numbers * src/xdisp.c (display_count_lines_visually): Avoid very slow redisplay when this function is invoked very far from point. Reported by Alex . 2017-07-01 Noam Postavsky * lisp/help-fns.el (describe-variable): Let-bind cl-print-compiled-button. 2017-07-01 Stefan Monnier * lisp/emacs-lisp/cl-extra.el (cl--random-state): New defstruct (cl--random-state, cl--random-time): Move from cl-lib.el. (cl-random): Use struct accessors. (cl-random-state-p): Remove, provided by the defstruct. (cl-make-random-state): Rewrite to struct constructor. 2017-07-01 Stefan Monnier * lisp/emacs-lisp/debug.el (debugger-list-functions): Remove obsolete msg 2017-06-30 Eli Zaretskii Improve documentation of faces related to display-line-numbers * lisp/faces.el (line-number, line-number-current-line): Warn against using non-monospaced fonts. 2017-06-30 Eli Zaretskii Fix relative-number display with non-nil display-line-number-width * src/xdisp.c (maybe_produce_line_number): Don't treat a zero value of display-line-number-width as acceptable. Handle the case of 'relative' with display-line-number-width non-nil and smaller than the absolute line number requires. Reported by Alex . 2017-06-30 Michael Albinus Release Tramp 2.3.2 * doc/misc/tramp.texi (Android shell setup): Show default file name. Structure section. * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.3.2". * test/lisp/net/tramp-tests.el (tramp-test-temporary-file-directory): Offer home directory for mock method if it doesn't exist. 2017-06-30 Eli Zaretskii Add documentation for display-line-numbers * doc/emacs/custom.texi (Init Rebinding): * doc/emacs/modes.texi (Minor Modes): Remove references to linum-mode. * doc/emacs/display.texi (Display Custom): Describe the line-number display. (Optional Mode Line): Fix the index entry to not conflict with that in "Display Custom". * doc/emacs/basic.texi (Position Info): Add cross-reference to "Display Custom", for line-number display. * src/xdisp.c (syms_of_xdisp): : Mention display-line-numbers-disable in the doc string. * lisp/cus-start.el (standard): Fix lst change. 2017-06-30 Eli Zaretskii Support displaying zero as the number of the current line * src/xdisp.c (syms_of_xdisp) : New variable. : Doc fix. (maybe_produce_line_number): Support nil value of display-line-numbers-current-absolute. * lisp/cus-start.el (standard): Add customization form for display-line-numbers-current-absolute. * etc/NEWS: Document recently introduced features. 2017-06-30 Eli Zaretskii Speed up the visual-mode relative line numbers * src/xdisp.c (display_count_lines_visually): Introduce a shortcut: if a relative line number was already calculated for this iterator object, just increase it instead of the expensive call to move_it_to. Argument list changed to pass a pointer to the iterator object. (maybe_produce_line_number): Adjust for change in signature of display_count_lines_visually. Record the relative line number and the corresponding byte position in the iterator object also in the 'visual' mode. 2017-06-30 Eli Zaretskii Fix hscrolling with line numbers on TTY frames * src/xdisp.c (hscroll_window_tree): Correct the X offset calculations on TTY frames. * src/term.c (produce_glyphs): Use it->lnum_pixel_width instead of a kludge using it->lnum_width. 2017-06-30 Eli Zaretskii Fix TAB display when the line-number face uses a smaller/larger font * src/dispextern.h (struct it): New member lnum_pixel_width. * src/xdisp.c (maybe_produce_line_number): Compute the width of the line-number display in pixels. (x_produce_glyphs): Use it->lnum_pixel_width instead of a kludge that used it->lnum_width and made assumptions about pixel width. 2017-06-30 Noam Postavsky Escape NUL bytes in X selections (Bug#6991) * lisp/term/w32-win.el (w32--set-selection): * lisp/select.el (xselect--encode-string): Replace NUL bytes with "\0". * doc/emacs/killing.texi: Document new behavior. * etc/NEWS (times): Announce it. 2017-06-30 Noam Postavsky Hide byte code in backtraces (Bug#6991) * lisp/emacs-lisp/debug.el (debugger-print-function): New defcustom, defaulting to `cl-print'. (debugger-insert-backtrace, debugger-setup-buffer): Use it instead of `prin1'. * etc/NEWS: Announce it. 2017-06-30 Noam Postavsky Don't redundantly cl-print arglist in function docstring again * lisp/emacs-lisp/cl-print.el (cl-print-object): Don't print arglist part of docstring. * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-1): Update test accordingly. 2017-06-30 Noam Postavsky Escape control characters in backtraces (Bug#6991) * src/print.c (syms_of_print): Add new variable, print-escape-control-characters. (print_object): Print control characters with octal escape codes when print-escape-control-characters is true. * lisp/subr.el (backtrace): * lisp/emacs-lisp/debug.el (debugger-setup-buffer): Bind `print-escape-control-characters' to t. 2017-06-30 Noam Postavsky Improve ert backtrace recording Change ert to use the new `backtrace-frames' function instead of collecting frames one by one with `backtrace-frame'. Additionally, collect frames starting from `signal' instead the somewhat arbitrary "6 from the bottom". Skipping 6 frames would skip the expression that actually caused the signal that triggered the debugger. Possibly 6 was chosen because in the case of a failed test, the triggering frame is an `ert-fail' call, which is not so interesting. But in case of a test throwing an error, this drops the `error' call which is too much. * lisp/emacs-lisp/debug.el (debugger-make-xrefs): Remove. * lisp/emacs-lisp/ert.el (ert--make-xrefs-region): Bring in relevant code from `debugger-make-xrefs'. (ert--print-backtrace): Add DO-XREFS parameter, delegate to `debugger-insert-backtrace'. (ert--run-test-debugger): Record the backtrace frames starting from the instigating `signal' call. (ert-run-tests-batch): Pass nil for `ert--print-backtrace's new DO-XREFS parameter. (ert-results-pop-to-backtrace-for-test-at-point): Pass t as DO-XREFS to `ert--print-backtrace' and remove call to `debugger-make-xrefs'. * test/lisp/emacs-lisp/ert-tests.el (ert-test-record-backtrace): Check the backtrace list instead of comparing its string representation. Expect `signal' to be the first frame. 2017-06-30 Noam Postavsky Operate on frame list instead of printed backtrace * lisp/emacs-lisp/debug.el (debugger-insert-backtrace): New function, prints the given backtrace frames. (debugger-setup-buffer): Use it instead of editing the backtrace buffer text. 2017-06-29 Eli Zaretskii Minor fixes * src/xdisp.c (maybe_produce_line_number): Fix bug that caused line numbers to be displayed in empty lines beyond ZV. (x_produce_glyphs): Start fixing TAB display in truncated lines. 2017-06-29 Michael Albinus Improve timer handling when Tramp accepts output * lisp/net/tramp-compat.el: Avoid compiler warning. * lisp/net/tramp-sh.el (tramp-sh-file-name-handler): Remove lock machinery. * lisp/net/tramp.el (tramp-locked, tramp-locker): Move up. (tramp-file-name-handler): Add lock machinery from `tramp-sh-file-name-handler'. Allow timers to run. (tramp-accept-process-output): Remove nasty workaround. Suppress timers. * test/lisp/net/tramp-tests.el (shell-command-sentinel): Suppress run in tests. (tramp--instrument-test-case-p): New defvar. (tramp--instrument-test-case): Use it in order to allow nested calls. (tramp--test-message, tramp--test-backtrace): New defsubst, will be used for occasional test instrumentation. (tramp-test00-availability, tramp-test31-vc-registered): Use them. (tramp-test28-shell-command) (tramp--test-shell-command-to-string-asynchronously): Suppress nasty messages. Don't overwrite sentinel. (tramp-test36-asynchronous-requests): Rewrite major parts. Expect :passed. 2017-06-28 Stefan Monnier * lisp/url/url-history.el: Use lexical-binding (url-completion-function): Mark as obsolete. Mark unused args accordingly. 2017-06-28 Noam Postavsky Don't assume url structs are vectors (Bug#27333) * lisp/url/url-history.el (url-history-update-url): Use `url-p' instead of `vectorp'. 2017-06-28 Mark Oteiza Replace with dolist some uses of while * lisp/calc/calc-units.el (calc-permanent-units): (math-compare-unit-names, math-simplify-units-quotient): (math-build-units-table-buffer): Use dolist to replace extra bindings and some while loops. 2017-06-28 Noam Postavsky Make tcl-auto-fill-mode obsolete (Bug#10772) * lisp/progmodes/tcl.el (tcl-auto-fill-mode): Declare obsolete. * etc/NEWS: Announce it. 2017-06-28 Noam Postavsky Don't read eshell/which output from *Help* buffer (Bug#26894) * lisp/help-fns.el (help-fns--analyse-function) (help-fns-function-description-header): New functions, extracted from describe-function-1. (describe-function-1): Use them. * lisp/eshell/esh-cmd.el (eshell/which): Use `help-fns-function-description-header' instead of `describe-function-1'. 2017-06-27 Eli Zaretskii Support default-text-properties * src/xdisp.c (should_produce_line_number): Call get-char-property at ZV as well, to support default-text-properties. 2017-06-27 Eli Zaretskii Avoid segfaults when some display vector is an empty string * src/xdisp.c (next_element_from_display_vector): Don't try accessing the dpvec[] array if its size is zero. (Bug#27504) 2017-06-26 Eli Zaretskii Initial support for visually-relative line numbers Works very slowly. * src/xdisp.c (display_count_lines_visually): New function. (maybe_produce_line_number): Support 'visual' mode of line-number display. * src/xdisp.c (maybe_produce_line_number): Update IT's metrics also when glyph_row is NULL. This is important for move_it_* functions. (syms_of_xdisp) : Now buffer-local. (try_window_id, redisplay_window, try_cursor_movement): For 'visual' line-number display, disable the same redisplay optimizations as for 'relative'. * lisp/cus-start.el (standard): Add new value for the customization form of display-line-numbers. 2017-06-26 Eli Zaretskii Update IT's metrics while simulating display * src/xdisp.c (maybe_produce_line_number): Update IT's metrics also when glyph_row is NULL. This is important for move_it_* functions. 2017-06-26 Teemu Likonen Fix bug in handling GnuPG's TRUST_MARGINAL status * lisp/epg.el (epg--status-TRUST_MARGINAL): Change symbol `marginal' to `good'. 2017-06-26 Tino Calancha Prefer `when' instead of 1-branch `if' * lisp/dired-aux.el (dired-do-shell-command): Store condition value in local variable ok. Use `when' instead of 1-branch `if'. 2017-06-26 Tino Calancha Use #' instead of (function ...) * lisp/dired-aux.el (dired-do-chxxx, dired-clean-directory) (dired-mark-confirm, dired-query, dired-byte-compile) (dired-load, dired-update-file-line, dired-after-subdir-garbage) (dired-relist-file, dired-rename-subdir, dired-do-create-files) (dired-mark-read-file-name, dired-do-copy, dired-do-symlink) (dired-do-hardlink, dired-do-rename, dired-do-rename-regexp) (dired-do-copy-regexp, dired-do-hardlink-regexp) (dired-do-symlink-regexp, dired-create-files-non-directory) (dired-upcase, dired-downcase) * lisp/dired.el (dired-mode, dired-copy-filename-as-kill) (dired-internal-do-deletions, dired-internal-do-deletions): Prefer #' instead of (function ...). 2017-06-26 Tino Calancha Don't quote lambda forms * lisp/dired.el (dired-re-maybe-mark, dired-map-over-marks) (dired-mark, dired-desktop-buffer-misc-data) * lisp/dired-aux.el (dired-do-create-files, dired-do-create-files-regexp) (dired-create-files-non-directory, dired-insert-subdir-validate) (dired-alist-sort, dired-do-shell-command): Don't quote lambda forms. 2017-06-26 Stefan Monnier * lisp/progmodes/cc-fonts.el: Remove/mark unused vars (c-font-lock-declarators): Remove unused vars `id-end', `paren-depth', and `brackets-after-id'. (c-font-lock-objc-methods): Mark unused args. 2017-06-25 Paul Eggert Omit null-pointer test in intervals.h FRAME * src/intervals.h (ROOT_INTERVAL_P, ONLY_INTERVAL_P) (INTERVAL_LAST_POS): Omit unnecessary parens. (LENGTH): Omit test for null pointer. The argument is never null. The unnecessary test causes GCC 7.1.0 to assume that the argument might be null, and therefore to issue false alarms when the argument is dereferenced in other expressions. 2017-06-25 Paul Eggert Parenthesize frame.h macro definitions * src/frame.h (FRAME_TOOL_BAR_POSITION) (FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS) (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT) (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT) (FRAME_OVERRIDE_REDIRECT, FRAME_UNDECORATED, FRAME_PARENT_FRAME) (FRAME_SKIP_TASKBAR, FRAME_NO_FOCUS_ON_MAP) (FRAME_NO_ACCEPT_FOCUS, FRAME_NO_SPECIAL_GLYPHS, FRAME_Z_GROUP) (FRAME_Z_GROUP_NONE, FRAME_Z_GROUP_ABOVE, FRAME_Z_GROUP_BELOW) (FRAME_HAS_HORIZONTAL_SCROLL_BARS): Parenthesize macro definiens to allow arbitrary expression arguments. 2017-06-25 Paul Eggert Port recent frame changes to GCC 7 * src/frame.c (keep_ratio): New arg P. Caller changed. Since it is non-null, it avoids a GCC 7 warning that FRAME_PARENT_FRAME might return null. This also avoids a run-time test. 2017-06-25 Eli Zaretskii Minor aesthetic fix of last change. 2017-06-25 Eli Zaretskii Allow to disable display of line numbers beyond EOB * src/buffer.c (disable_line_numbers_overlay_at_eob): New function. * src/lisp.h (disable_line_numbers_overlay_at_eob): Add prototype. * src/xdisp.c (should_produce_line_number): When at ZV, call disable_line_numbers_overlay_at_eob to determine whether line numbers should be displayed beyond ZV. 2017-06-25 Michael Albinus Fix Android 6/7 problems in Tramp * lisp/net/tramp-adb.el (tramp-adb-ls-toolbox-regexp): Fix link part. (tramp-adb-handle-directory-files-and-attributes) (tramp-adb-handle-file-name-all-completions): Insert "." and ".." only when needed. (tramp-adb-get-ls-command): Force one column output for toybox. 2017-06-25 Stefan-W. Hahn (tiny change) * lisp/subr.el (setq-local): Add debug declaration (Bug#27408). 2017-06-25 Eli Zaretskii Fix line number display for overlay/display strings with newlines * src/xdisp.c (maybe_produce_line_number): Fix the condition for producing space glyphs instead of a line number to include the case of display strings and overlays. 2017-06-25 Alan Mackenzie Make CC Mode load cl-lib rather than cl in Emacs 26. * lisp/progmodes/cc-cmds.el (c-declaration-limits): Remove unused local variable. * lisp/progmodes/cc-defs.el (c--mapcan-status): Remove. (c--cl-library): New variable. (Top level): Amend the form which requires library cl or cl-lib. (c--mapcan, c--set-difference, c--intersection, c--macroexpand-all) (c--delete-duplicate): Amend to use c--cl-library instead of c--mapcan-status. * lisp/progmodes/cc-engine.el (c-syntactic-skip-backward) (c-back-over-compound-identifier): Remove unused local variables. * lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Remove an unused local variable. * lisp/progmodes/cc-langs.el (Top level): Amend to use c--cl-library instead of c--mapcan-status. * lisp/progmodes/cc-styles.el (Top level): Add a cc-bytecomp-defun to try to silence a compiler warning. 2017-06-25 Martin Rudalics Provide additional support for child frames Provide mouse dragging and resizing of frames. Allow resizing frames proportionally. Provide additional functionality for child frames. Minor bug fixes. * lisp/frame.el (frame-border-width, frame-pixel-width) (frame-pixel-height): Alias to `frame-internal-border-width', `frame-native-width' and `frame-native-height'. (frame-inner-width, frame-inner-height, frame-outer-width) (frame-outer-height): New functions. * lisp/minibuffer.el (completion-auto-help): Fix typo. * lisp/mouse.el (mouse-drag-line, mouse-drag-mode-line) (mouse-drag-header-line): Allow moving a frame by dragging the mode line of its bottommost window (on a minibuffer-less frame) or the header line of its topmost window. (mouse-drag-vertical-line): Mention argument in doc-string. (mouse-resize-frame, mouse-drag-frame, mouse-drag-left-edge) (mouse-drag-top-left-corner, mouse-drag-top-edge) (mouse-drag-top-right-corner, mouse-drag-right-edge) (mouse-drag-bottom-right-corner, mouse-drag-bottom-edge) (mouse-drag-bottom-left-corner): New functions for resizing a frame by dragging its internal border together with corresponding key bindings. * lisp/tooltip.el (tooltip-frame-parameters): Add 'no-special-glyphs' to default parameters and update version tag. * lisp/window.el (frame-auto-hide-function): Add choice to make frame invisible and update version tag. (window--delete): Handle 'auto-hide-function' frame parameter. (window--maybe-raise-frame): Respect 'no-focus-on-map' and 'no-accept-focus' frame parameters. (display-buffer--action-function-custom-type): Add `display-buffer-in-child-frame'. (display-buffer): Mention `display-buffer-in-child-frame' in doc-string. (display-buffer-in-child-frame): New action function for `display-buffer'. (window--sanitize-margin): Return zero when MARGIN cannot be sanitized. (fit-frame-to-buffer): Major rewrite to handle child frames and 'fit-frame-to-buffer-sizes' and 'fit-frame-to-buffer-margins' frame parameters. (window-largest-empty-rectangle--maximums-1) (window-largest-empty-rectangle--maximums) (window-largest-empty-rectangle--disjoint-maximums) (window-largest-empty-rectangle): New functions. * src/dispextern.h (WINDOW_WANTS_MODELINE_P) (WINDOW_WANTS_HEADER_LINE_P): Remove. Functionality is now provided by corresponding functions window_wants_modeline and window_wants_header_line in window.c. Adjust users. * src/dispnew.c (adjust_glyph_matrix) (buffer_posn_from_coords): Use window_wants_modeline and window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P. * src/frame.c (keep_ratio): New function. (adjust_frame_size): Call keep_ratio for each of F's child frames. (make_frame): Initialize no_special_glyphs slot. (frame_internal_border_part): New function. (Fframe_pixel_width, Fframe_pixel_height, Fborder_width): Rename to Fframe_native_width, Fframe_native_height mand Fframe_internal_border_width. (frame_parm_table): Add Qno_special_glyphs entry. (frame_float_type): New enumeration type. (frame_float): New function to handle frame size and position ratios. (x_set_frame_parameters): Handle size and position ratios. (x_set_no_special_glyphs): New function (x_figure_window_size): Handle size and position ratios. (syms_of_frame): Add Qdisplay_monitor_attributes_list, Qno_special_glyphs, Qframe_edges, Qkeep_ratio, Qwidth_only, Qheight_only, Qleft_only and Qtop_only. * src/frame.h (internal_border_part): New enumeration type. (struct frame): New slot no_special_glyphs. (FRAME_NO_SPECIAL_GLYPHS): New macro. * src/gtkutil.c (xg_frame_restack): Return immediately for GTK versions before 2.18.0. * src/keyboard.c (internal_border_parts): New array constant. (make_lispy_position): For frames with border dragging enabled return internal border part. (syms_of_keyboard): New symbols Qdrag_internal_border, Qleft_edge, Qtop_left_corner, Qtop_edge, Qtop_right_corner, Qright_edge, Qbottom_right_corner, Qbottom_edge and Qbottom_left_corner. * src/minibuf.c (read_minibuf_unwind): When exiting the minibuffer deal with frames that have the 'minibuffer-exit' parameter set. (syms_of_minibuf): New symbol Qminibuffer_exit. * src/nsfns.m (frame_parm_handler): Add entry for x_set_no_special_glyphs. (Fx_create_frame): Handle 'no-special-glyphs' parameter. Intitialize new cursor types for dragging frame borders. * src/nsterm.h (struct ns_output): Add new cursor types for dragging frame borders. * src/w32fns.c (w32_frame_parm_handlers): Add entry for x_set_no_special_glyphs. (Fx_create_frame): Handle 'no-special-glyphs' parameter. Intitialize new cursor types for dragging frame borders. * src/w32term.h (struct w32_output): Add new cursor types for dragging frame borders. * src/window.c (coordinates_in_window) (Fwindow_line_height, window_internal_height): Use window_wants_modeline and window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P. (Fwindow_lines_pixel_dimensions): New function. (window_parameter): New function. (Fwindow_parameter): Call window_parameter. (window_wants_mode_line, window_wants_header_line): New functions replacing the macros WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P from dispextern.h. (syms_of_window): New symbols Qmode_line_format and Qheader_line_format. * src/window.h: Reorganize and re-comment macros. Use window_wants_modeline and window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P. (MINI_NON_ONLY_WINDOW_P, MINI_ONLY_WINDOW_P): Minor rewrite. (WINDOW_BUFFER): New macro. (WINDOW_BOX_LEFT_EDGE_COL, WINDOW_BOX_RIGHT_EDGE_COL): Remove. * src/xdisp.c (window_text_bottom_y, window_box_height) (window_box, start_display) (compute_window_start_on_continuation_line) (try_cursor_movement, redisplay_window) (try_window_reusing_current_matrix, try_window_id) (display_line, expose_window): Use window_wants_modeline and window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P. (pos_visible_p, display_mode_lines): Respect W's 'mode-line-format' and 'header-line-format' window parameters. (init_iterator): Use window_wants_modeline and window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P. For tip frames respect no_special_glyphs value. (note_mouse_highlight): Set frame border cursors when on internal border. (x_draw_right_divider, x_draw_bottom_divider): Try to improve drawing of window dividers. * src/xfns.c (mouse_cursor): Add entries for border parts. (mouse_cursor_types): Add entries for cursor types to drag frame borders. (INSTALL_CURSOR): Add entries for new cursor types to drag frame borders. (Fx_create_frame): Handle 'no-special-glyphs' parameter. (x_frame_parm_handlers): Add entry for x_set_no_special_glyphs. (Vx_window_left_edge_shape, Vx_window_top_left_corner_shape) (Vx_window_top_edge_shape, Vx_window_top_right_corner_shape) (Vx_window_right_edge_shape) (Vx_window_bottom_right_corner_shape) (Vx_window_bottom_edge_shape) (Vx_window_bottom_left_corner_shape): New variables. (x_frame_restack): Call xg_frame_restack only for GTK versions starting with 2.18.0. * src/xterm.c (x_free_frame_resources): Remove new cursors for dragging frame borders. * src/xterm.h (struct x_output): Add new cursor types for dragging frame borders. * doc/lispref/display.texi (Size of Displayed Text): Document `window-lines-pixel-dimensions'. * doc/lispref/elisp.texi (Top): Add entry for "Mouse Dragging Parameters". * doc/lispref/frames.texi (Frame Size): Replace frame-pixel-width/-height by frame-native-width/-height. Add frame-inner-width/-height and frame-outer-width/-height docs. (Position Parameters): Describe specifying position as ratios. Clarify remark about positions relative to bottom/ridge display edge. (Size Parameters): Describe specifying sizes as ratios. Describe 'fit-frame-to-buffer-margins' and 'fit-frame-to-buffer-sizes' parameters. (Layout Parameters): Describe 'no-special-glyphs' parameter. (Frame Interaction Parameters): Describe 'auto-hide-function', 'minibuffer-exit' and 'keep-ratio' parameters. (Mouse Dragging Parameters): New section describing 'drag-internal-border', 'drag-with-header-line', 'drag-with-mode-line', 'snap-width', 'top-visible' and 'bottom-visible' parameters. (Management Parameters): Mention that `override-redirect' has no effect on MS Windows. (Font and Color Parameters): Mention child frames for `alpha' parameter. (Child Frames): Rewrite section with description and cross references to new frame parameters added. * doc/lispref/modes.texi (Mode Line Basics): Mention 'mode-line-format' and 'header-line-format' window parameters. * doc/lispref/windows.texi (Resizing Windows): Mention effect of `fit-frame-to-buffer-margins' for child frames. (Display Action Functions): New action function `display-buffer-in-child-frame'. (Quitting Windows): Mention `make-frame-invisible' as optional value of `frame-auto-hide-function' and `auto-hide-function' frame paameter. (Coordinates and Windows): Describe new function `window-largest-empty-rectangle'. (Window Parameters): Describe new parameters 'mode-line-format' and 'header-line-format'. Index all window parameters described in this section. 2017-06-25 Paul Eggert Adjust lm-verify to accept current notices Problem reported by Mike Kupfer in: https://lists.gnu.org/r/emacs-devel/2017-06/msg00512.html * lisp/emacs-lisp/lisp-mnt.el (lm-crack-copyright): Do not require later lines in a copyright notice to have more indentation than earlier lines. 2017-06-24 Eli Zaretskii Minor change in NEWS. Improve documentation in NEWS. 2017-06-24 Eli Zaretskii Move additional hscrolling code into a suitable 'if' * src/xdisp.c (hscroll_window_tree): Make additional calculations regarding glyphs produced for line numbers conditional on line-number display. 2017-06-24 Eli Zaretskii Partial fix of hscroll of truncated lines with line numbers * src/xdisp.c (x_produce_glyphs, hscroll_window_tree): Adjust hscroll calculations to line-number display. * src/term.c (produce_glyphs): Adjust tab stop to window's hscroll. These two changes fix horizontal scrolling when line numbers are displayed. But there's still a bug: the horizontal shift of lines that begin with a TAB is different from the rest. * src/xdisp.c (move_it_in_display_line_to): Call should_produce_line_number to determine whether a line number should be produced for this screen line. 2017-06-24 Noam Postavsky Don't change byte-compile-delete-errors at runtime (Bug#27340) * lisp/emacs-lisp/eieio-core.el: Confine `cl-declaim' calls to compile time. 2017-06-24 Eli Zaretskii Allow Lisp program to disable line-number display for specific lines * etc/NEWS: Update the documentation. * src/xdisp.c (syms_of_xdisp) : New symbol. (should_produce_line_number): New function. (display_line): Use should_produce_line_number to determine whether a line number should be produced for each glyph row. 2017-06-24 Stefan Monnier * lisp/net/html2text.el: Move to obsolete/. 2017-06-24 Eli Zaretskii Support a separate face for displaying the current line's number * lisp/faces.el (line-number-current-line): New face. * src/xdisp.c (syms_of_xdisp) : New symbol. (try_window_id, try_cursor_movement): Disable these optimizations when the line-number-current-line face is different from line-number face. (maybe_produce_line_number): Display the current line in the line-number-current-line face, if it's different from line-number. 2017-06-24 Eli Zaretskii Change display of current line in relative mode * src/xdisp.c (maybe_produce_line_number): In relative mode display the current line number as its absolute value, not as zero. 2017-06-24 Eli Zaretskii Rename display-line-width * etc/NEWS: * src/xdisp.c (syms_of_xdisp, maybe_produce_line_number): * lisp/cus-start.el: Rename display-line-width to display-line-number-width. 2017-06-24 Eli Zaretskii Fix tab stops when line numbers are displayed * src/xdisp.c (x_produce_glyphs): * src/term.c (produce_glyphs): Adjust tab stops for the horizontal space taken by the line-number display. 2017-06-24 Eli Zaretskii Fix crashes on TTY frames due to negative lnum_width. Don't display line numbers in the minibuffer and in tooltip frames. 2017-06-24 Eli Zaretskii Fix problems with line-number updates in Follow mode * src/xdisp.c (redisplay_window): If forced window-start requires to move a window's point, and the window is under relative line-number display, force another round of redisplay to update the relative line numbers. This fixes follow-mode "redisplay" of its window group. * lisp/frame.el: Add display-line-numbers to the list of variables that should trigger redisplay of the current buffer. 2017-06-24 Eli Zaretskii Fix display of line numbers with fonts larger than the default * src/xdisp.c (maybe_produce_line_number): Update the metrics in IT, not in IT->glyph_row, since the latter gets overwritten in display_line. Fixes display of line numbers when the font used for them is larger than that of the default face. 2017-06-23 Eli Zaretskii Fix background color beyond EOB and cursor display * src/xdisp.c: (maybe_produce_line_number): Use the default face for background of the blank glyphs in the line-number area which are drawn beyond EOB. (display_line): Reset the glyph row's displays_text_p flag only on empty lines that don't display line numbers. This fixes cursor display beyond EOB. Fix the bidi information in the glyphs produced for line numbers. Set the avoid_cursor_p flag of glyphs produced for line numbers. 2017-06-23 Eli Zaretskii Fix display of indicate-empty-lines when line numbers are displayed * src/xdisp.c (row_text_area_empty): New function. (display_line): Call row_text_area_empty to verify that a glyph row's text area is devoid of any glyphs that came from a buffer or a string. This fixes a bug with empty-lines indication disappearing when line numbers or line-prefix are displayed. (display_line): Delete the argument FORCE; all callers changed. Remove the condition for actually producing the glyphs for the line number, as even if the number didn't change we need to produce empty space. 2017-06-23 Vincent Belaïche Fix symbol relocation when the relocated cell is renamed. * lisp/ses.el (ses-sym-rowcol): Check that the renamed cell hashmap has been instantiated before getting data from it. When editing several spreadsheets, and you have spreadsheet #1 with a cell named `foo', and no renamed cell in spreadsheet #2, then if you make a formula with `foo' in spreadsheet #2, not doing this check will make an error. (ses-cell-set-formula): Robustify versus incorrect cell references given in the user provided formula. An explicit error message is provided after the action when the user gives an incorrect cell reference, but the formula edition is not changed. This means that if the incorrect reference is to a cell that is created someday, then this new cell will not have the edited cell in its reference list. Fixing this can still be done by editing again the first cell formula. (ses-relocate-symbol): Do not create symbol of referred-to cell when this is a renamed cell. 2017-06-23 Rasmus Synchronize with the "emacs-sync" branch from Org 2017-06-22 Paul Eggert Remove getc_unlocked configure-time check * configure.ac (getc_unlocked): Remove check, as unlocked-io now does this for us. 2017-06-22 Paul Eggert Use unlocked stdio more systematically This can improve performance significantly on stdio-bottlenecked code. E.g., make-docfile is 3x faster on my Fedora 25 x86-64 desktop. * admin/merge-gnulib (GNULIB_MODULES): Add unlocked-io. * lib-src/ebrowse.c, lib-src/emacsclient.c, lib-src/etags.c: * lib-src/hexl.c, lib-src/make-docfile.c, lib-src/movemail.c: * lib-src/profile.c, lib-src/update-game-score.c: Include unlocked-io.h instead of stdio.h, since these programs are single-threaded. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/unlocked-io.h, m4/unlocked-io.m4: New files, copied from Gnulib. * src/charset.c, src/cm.c, src/emacs.c, src/image.c, src/keyboard.c: * src/lread.c, src/term.c: Include sysstdio.h, possibly instead of stdio.h, to define the unlocked functions if the system does not provide them. * src/charset.c, src/lread.c (getc_unlocked): Remove, since sysstdio.h now defines it if needed. * 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/fileio.c (Fdo_auto_save, Fset_binary_mode): * 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_file): * src/minibuf.c (read_minibuf_noninteractive): * src/print.c (printchar_to_stream, strout) (Fredirect_debugging_output): * src/sysdep.c (reset_sys_modes, 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): Use unlocked stdio when it should be safe. * src/sysstdio.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_unloced): Provide substitutes if not declared. 2017-06-22 Glenn Morris * lisp/net/shr.el (shr-fill-text): Actually fill the text. (Bug#27399) 2017-06-22 Michal Nazarewicz unidata: don’t check special casing in unidata-check (bug#26656) * admin/unidata/unidata-gen.el (unidata-check): Do not test special casing mapping of characters since that mapping is not constructed from the unidata.txt file. Also, check for integer decoder and cons char earlier so that less unnecessary processing is performed. 2017-06-22 Stefan Monnier * lisp/descr-text.el (describe-char): Avoid string-*-multibyte Avoid string-to-multibyte and string-as-unibyte. Don't make *Help* unibyte just because the char was in a unibyte buffer. 2017-06-22 Rasmus Add Org schemas.xml contents to Emacs schemas.xml Entries from the Org version of schemas.xml have been added to the Emacs version of schemas.xml. 2017-06-22 Rasmus Update Org to v9.0.9 Please see etc/ORG-NEWS for details. 2017-06-22 Vincent Belaïche Do not hard code A1 cell reference, as it may be renamed. * lisp/ses.el (ses-recalculate-all): `A1' -> `(ses-cell-symbol 0 0)' 2017-06-22 Martin Rudalics Fix make_hash_table calls in lread.c * src/lread.c (readevalloop, read_internal_start): Fix make_hash_table calls to make build succeed. 2017-06-22 Ken Raeburn Merge several Lisp reader speedups. 2017-06-22 Ken Raeburn Create less garbage to collect while reading symbols. * src/lread.c (read1): When interning a symbol, only create a new string object for the name if we're going to use it for a new symbol object. 2017-06-22 Ken Raeburn Replace read_objects assoc list with two hash tables. For larger input files with lots of shared data structures, an association list is too slow. * src/lread.c (read_objects_map, read_objects_completed): New variables, replacing read_objects. (readevalloop): Initialize them with hash tables before starting a top-level read, if they're not already empty hash tables, and reset them to Qnil afterwards if something was added to the hash tables. (read_internal_start): Likewise. (read1): Store first the placeholder and later the newly read object into read_objects_map under the specified object number. If the new object can contain a reference to itself, store it in read_objects_completed. (substitute_objects_recurse): Check read_objects_completed instead of read_objects for the known possibly-recursive objects. (syms_of_lread): Update initializations. 2017-06-22 Ken Raeburn Use getc_unlocked. * configure.ac: Check for getc_unlocked. * src/charset.c (read_hex, load_charset_map_from_file): Use getc_unlocked instead of getc. (getc_unlocked) [!HAVE_GETC_UNLOCKED]: Fall back to getc. * src/lread.c (readbyte_from_file, Fget_file_char, read1, getc_unlocked): Likewise. 2017-06-22 Stefan Monnier Reduce lread substitutions. * src/lread.c (read1): After reading an object using the "#n=" syntax, if the read object is a cons cell, instead of recursively substituting the placeholder with the new object, mutate the placeholder cons cell itself to have the correct car and cdr values. 2017-06-22 Ken Raeburn Short-circuit substitutions for some simple types. Values that don't contain other values cannot be circular, so checking for circular objects is a waste of cycles. * src/lread.c (substitute_object_recurse): If the subtree being examined is a symbol, number, or property-less string, just return it. 2017-06-22 Paul Eggert Limit style_format to MAX_ALLOCA * src/editfns.c (styled_format): Subtract initial buffer size from sa_avail, since it is nontrivial. 2017-06-22 Paul Eggert Limit bidi_find_bracket_pairs to MAX_ALLOCA * src/bidi.c (MAX_BPA_STACK): Now a constant, not a macro. Shrink it to allow for the two struct bidi_it objects in the same frame. (PUSH_BPA_STACK): Avoid integer overflow with enormous bidi cache. (bidi_find_bracket_pairs): Use compile-time check instead of runtime. 2017-06-22 Paul Eggert Limit insert-file-contents to MAX_ALLOCA * src/fileio.c (READ_BUF_SIZE): Don’t allocate more than MAX_ALLOCA bytes in a single stack array. 2017-06-21 Paul Eggert Remove malloc_find_address relic * src/gmalloc.c (register_heapinfo, _malloc_internal_nolock): Omit unnecessary initialization. 2017-06-21 Paul Eggert Fix temacs hybrid_malloc core dump Without this patch, ./temacs would dump core sometimes on Fedora 25 x86-64. The problem was that the hybrid allocator assumed that all pointers into bss_sbrk_buffer are allocated via gmalloc. This assumption is not true on Fedora, because the standard memory allocator calls gdefault_morecore, which means its blocks are interleaved with our blocks. Usually the code happened to work, because our data structures agreed with the glibc data structures, but this was merely luck due to a shared pedigree, and as glibc mutates our luck has run out. * src/gmalloc.c (ALLOCATED_BEFORE_DUMPING) [HYBRID_MALLOC]: Remove; no longer needed. (BLOCK): Use unsigned division, as that does the right thing near zero. (register_heapinfo, __malloc_internal_nolock, __free_internal_nolock) (_realloc_internal_nolock): Big blocks now have type -1, not 0, as 0 now means the block is not ours. (morecore_nolock): Omit now-unnecessary casts to size_t. (allocated_via_gmalloc) [HYBRID_MALLOC]: New function. (hybrid_free, hybrid_realloc) [HYBRID_MALLOC]: Use it, to avoid calling the wrong free or realloc function in some cases. 2017-06-21 Katsumi Yamaoka Make gnus-article-date-user work * lisp/gnus/gnus-art.el (article-date-ut): Work for unfolded multi-line Date header. (article-transform-date): Refactor; add header name if it is missing in user-defined date line. (article-date-user): Fix name of date type. 2017-06-21 Noam Postavsky Keep order of completion candidates (Bug#25995, Bug#24676) * lisp/minibuffer.el (completion-pcm--filename-try-filter) (completion-pcm--all-completions): Use nreverse to undo the reversing caused by using push in the loop. 2017-06-21 Glenn Morris * src/lread.c (syms_of_lread) : Doc fix. 2017-06-21 Alex Gramiak Mark prolog indent variables as safe (bug#27369) * lisp/progmodes/prolog.el (prolog-indent-width) (prolog-left-indent-regexp, prolog-paren-indent-p) (prolog-paren-indent): Add :safe property. 2017-06-20 Simen Heggestøyl Remove `:options' from `css-electric-keys' * lisp/textmodes/css-mode.el (css-electric-keys): Remove `:options` since it just duplicates the default value. 2017-06-20 Paul Eggert Fix crash when built by GNU Gold linker on x86 Problem reported by Andrés Musetti (Bug#27248). * src/widget.c (emacsFrameClassRec): Do not initialize superclass here. (emacsFrameClass): Now a function (which initializes the superclass) instead of a variable. All uses changed. 2017-06-20 Paul Eggert Simplify autogen.sh version checking * autogen.sh (get_version): Simplify and make more reliable by using expr rather than echo | sed. Check exit status of program. Run program in subshell in case it cannot be executed. (check_version): Check exit status of command rather than its output. Check return status of get_version. 2017-06-20 Katsumi Yamaoka Delete old Date header in a simple way * lisp/gnus/gnus-art.el (article-date-ut): Don't rely on text prop when searching the old Date header boundary in order to delete it. 2017-06-20 Bastien Revert "Don't bind org-agenda key to an anonymous function" This reverts commit 49c0ff29c2e0243ba35ec17e3e3af49369be43db. 2017-06-20 Katsumi Yamaoka Bind enable-local-variables to nil globally (fix dbe3e41) * lisp/gnus/mm-view.el (mm-display-inline-fontify): Bind enable-local-variables to nil globally instead of making it buffer-local; remove let-bind of local-enable-local-variables. cf. in the emacs-devel list. 2017-06-20 Glenn Morris kill-matching-buffers to optionally not confirm * lisp/files.el (kill-matching-buffers): Add option to not confirm killing. (Bug#27286) 2017-06-20 Glenn Morris * lisp/files.el (local-enable-local-variables): Doc fix. 2017-06-20 Glenn Morris autogen.sh: try to check for tool being present but broken * autogen.sh (get_version): Check return status of "--version". (check_version): Try to distinguish between a missing tool and a broken one. (Bug#27288) 2017-06-19 Glenn Morris Avoid a custom-variable-type error (bug#27363) * lisp/cus-edit.el (custom-variable-type): Avoid an error due to plist-put becoming stricter of late. 2017-06-19 Glenn Morris Don't put deleted packages in the trash (bug#14967) * lisp/emacs-lisp/package.el (package-delete): Don't pay attention to delete-by-moving-to-trash. 2017-06-19 Nicolas Petton Revert "Add current-line in simple.el" This reverts commit ae98cdf9431604d0f722f1db217ca06debfbb7b6. 2017-06-19 Damien Cassou Add current-line in simple.el * lisp/simple.el (current-line): New function. * test/lisp/simple-tests.el: Add tests for current-line. 2017-06-19 Katsumi Yamaoka Don't try to eval local variables in Gnus article * lisp/gnus/mm-view.el (mm-display-inline-fontify): Disable local vars. 2017-06-18 Paul Eggert Fix emacs-module.h cleaning * src/Makefile.in (clean): Do not remove emacs-module.h.in. (bootstrap-clean): Remove emacs-module.h. 2017-06-18 Andreas Schwab * lisp/url/url-util.el (url-get-url-at-point): Add missing group in regex. 2017-06-18 Paul Eggert * lib/gettext.h: Merge from gnulib. 2017-06-18 Paul Eggert Merge from gnulib This (and my previous patch) incorporate: 2017-06-17 diffseq: port to GCC 7 with --enable-gcc-warnings 2017-06-15 gettext-h: Update comment * lib/diffseq.h: Copy from gnulib. 2017-06-17 Noam Postavsky * test/Makefile.in: Don't suppress test failure for single tests. 2017-06-17 Philipp Stephani emacs-module.h: Create emacs_env_26 This was part of the original design of the module API (https://lists.gnu.org/r/emacs-devel/2015-02/msg00960.html), but I didn't take it into account when adding the should_quit function. Instead of duplicating the environment fields or using the C preprocessor, use configure to build emacs-module.h. * configure.ac: Expand emacs-module.h template. 2017-06-17 Eli Zaretskii Improve documentation of replace-buffer-contents * etc/NEWS (replace-buffer-contents): Fix formatting. * src/editfns.c (Freplace_buffer_contents): Doc fix. 2017-06-17 Eli Zaretskii Finish up native display of line numbers * src/xdisp.c (maybe_produce_line_number): Produce a blank before the number, for R2L rows. Increment 'g' in the loop even if glyph_row is NULL. Accept 2nd argument FORCE and produce the line-number glyphs if it is non-zero. (move_it_in_display_line_to): Account for the space taken by the line-number glyphs. Call maybe_produce_line_number with 2nd argument non-zero. (set_cursor_from_row): Fix calculation of cursor X coordinate in R2L rows with display-produced glyphs at the beginning. (syms_of_xdisp) : New face symbol. : New symbols. (maybe_produce_line_number): Use the line-number face for displaying line numbers. Support relative line-number display. Support user-defined width for displaying line numbers. (try_cursor_movement, try_window_id): Disable these optimizations when displaying relative line numbers. * src/dispextern.h (struct it): New member 'pt_lnum'. * lisp/faces.el (line-number): New face. * lisp/cus-start.el (standard): Provide customization forms for display-line-numbers and display-line-width. * lisp/menu-bar.el (menu-bar-showhide-menu): Add menu-bar item to turn display-line-numbers on and off. * etc/NEWS: Document the new feature. 2017-06-17 Philipp Stephani Allow local variables section to begin with a square bracket Fixes Bug#27391. * lisp/international/mule.el (find-auto-coding): Fix regular expression for "Local Variables" section. * test/lisp/international/mule-tests.el (find-auto-coding--bug27391): Add unit test. 2017-06-17 Philipp Stephani Remove unnecessary point motion * src/editfns.c (Freplace_buffer_contents): Remove unnecessary point motion. 2017-06-17 Philipp Stephani Add command to replace buffer contents Add a new command 'replace-buffer-contents' that uses the Myers diff algorithm to non-destructively replace the accessible portion of the current buffer. The Myers algorithm is implemented in Gnulib. * src/editfns.c (Freplace_buffer_contents): New command. (set_bit, bit_is_set, buffer_chars_equal): New helper functions. (syms_of_editfns): Define new command. * test/src/editfns-tests.el (replace-buffer-contents-1) (replace-buffer-contents-2): New unit tests. * src/buffer.h (BUF_FETCH_CHAR_AS_MULTIBYTE): New helper macro. * admin/merge-gnulib (GNULIB_MODULES): Add diffseq.h and minmax.h. 2017-06-17 Andreas Schwab * lisp/international/characters.el: Update list of zero and full width characters according to Unicode 9.0.0. 2017-06-17 Simen Heggestøyl Complete CSS property values less eagerly (Bug#27392) * lisp/textmodes/css-mode.el (css--complete-property-value): Be less eager by looking for a colon after the property which values are being completed for. * test/lisp/textmodes/css-mode-tests.el (css-test-complete-property): Add a test case ensuring that properties that are prefixes of other properties don't hinder further completion. 2017-06-17 Noam Postavsky Handle integer indices for eshell variables (Bug#26055) * lisp/eshell/esh-var.el (eshell-index-value): Convert index to number if it's been marked as one, just like `eshell-lisp-command' does. 2017-06-17 Mark Oteiza Don't bind org-agenda key to an anonymous function * lisp/org/org-agenda.el: Bind "g" to named command. (org-agenda-redo-all): New command. Extend the previous functionality through a prefix argument. 2017-06-17 Dmitry Gutov Add test for the fix in the parent commit * test/src/undo-tests.el (undo-test-skip-invalidated-markers): New test, for the fix in the parent commit. 2017-06-17 Nitish Chandra (tiny change) primitive-undo: Update only the currently valid markers * lisp/simple.el (primitive-undo): Update only the currently valid markers (bug#25599). 2017-06-16 Eli Zaretskii Initial version of native display of line numbers * src/xdisp.c (syms_of_xdisp) : New buffer-local variable. Include . (maybe_produce_line_number): New function. (DISP_INFINITY): Rename from INFINITY, since math.h defines INFINITY. (try_window_reusing_current_matrix): Don't use this method when display-line-numbers is in effect. * src/dispextern.h (struct it): New members 'lnum'. 2017-06-16 Philipp Stephani Correctly detect URLs surrounded by parentheses in comments * lisp/thingatpt.el (thing-at-point--bounds-of-well-formed-url): Make parentheses match work inside comments. * test/lisp/thingatpt-tests.el (thing-at-point-url-in-comment): Add unit test. 2017-06-16 Michael Albinus Fix load-path issue when it contains remote directories * lisp/net/tramp.el (tramp-file-name-handler): Use `autoloadp'. (tramp-use-absolute-autoload-file-names): New defun. Call it after loading tramp.el. * test/lisp/net/tramp-tests.el (tramp-test38-remote-load-path): New test. (tramp-test39-unload): Rename. 2017-06-16 Alan Mackenzie Ensure C++ initializer lists don't get fontified. * lisp/progmodes/cc-cmds.el (c-block-comment-flag): Move declaration to solve compiler warning. * lisp/progmodes/cc-fonts.el (c-get-fontification-context): Add an extra clause to handle C++ member initialization lists. (c-font-lock-single-decl): New function, extracted from c-font-lock-declarations. (c-font-lock-declarations): Call c-font-lock-single-decl in place of inline code. (c-font-lock-cut-off-declarators): Make more rigorous by calling c-get-fontification-context, c-forward-decl-or-cast-1, and c-font-lock-single-decl in place of rather approximate code. 2017-06-16 Alan Mackenzie Fix hang in CC Mode when ":" is typed after identifier at EOB. * lisp/progmodes/cc-engine.el (c-forward-declarator): Fix coding error confusing ":" and EOB. 2017-06-15 Alan Mackenzie Create a toggle between block and line comments in CC Mode. Also (unrelated change) initialize the modes' keymaps at each loading. * lisp/progmodes/cc-cmds.el (c-update-modeline): amend for the new information on the modeline. (c-block-comment-flag): New variable. (c-toggle-comment-style): New function. * lisp/progmodes/cc-langs.el (c-block-comment-starter) (c-line-comment-starter): Make them c-lang-defvars. (c-block-comment-is-default): New c-lang-defvar. (comment-start, comment-end): Make the default values dependent on c-block-comment-is-default. * lisp/progmodes/cc-mode.el (c-mode-base-map): Define C-c C-k in this map. (c-basic-common-init): Initialize c-block-comment-flag. (c-mode-map, c++-mode-map, objc-mode-map, java-mode-map, idl-mode-map) (pike-mode-map, awk-mode-map): Make entries in these key maps each time the mode is loaded rather than just once per Emacs session. * doc/misc/cc-mode.texi (Comment Commands): Introduce the notion of comment style. (Minor Modes): Define comment style. Describe how comment style influences the information displayed on the modeline. Document c-toggle-comment-style. (FAQ): Add a question about toggling the comment style. 2017-06-15 Paul Eggert Pacify clang without munging C source * configure.ac (WARN_CFLAGS): With Clang, use -Wno-tautological-compare regardless of --enable-gcc-warnings. (WERROR_CFLAGS): Simplify assignments, and guarantee it’s always set. * lib/strftime.c: Copy from gnulib, reverting Clang-specific change which I hope is no longer needed. * src/emacs.c (main): Revert rlim_t change, as rlim_t is signed on some older non-POSIX hosts. 2017-06-15 Paul Eggert No need to complicate make-docfile.c for Clang * lib-src/make-docfile.c (put_filename): Undo recent change. The Clang false alarm occurs only with CFLAGS=-save-temps and we needn’t worry about pacifying unusual compiler configurations. 2017-06-15 Paul Eggert Port './configure CC=clang' to Fedora 25 * configure.ac (HAVE_IMAGEMAGICK): Disable if even a standard function like MagickRelinquishMemory does not link. 2017-06-15 Paul Eggert Don’t worry about __STDC_VERSION__ in emacs-module * src/emacs-module.h: Remove __STDC_VERSION__ check. In the past we’ve found that some compilers do not define this symbol even when they work well enough. If necessary features like stdbool.h are missing the compiler will complain eventually anyway. 2017-06-14 Paul Eggert Port cleanup check to Oracle Studio 12.5 * src/conf_post.h (__has_attribute_cleanup): Resurrect. * src/emacs-module.c: Verify __has_attribute (cleanup), but in an #if this time. 2017-06-14 Bastien Fix misformatted changelog entry 2017-06-14 Eli Zaretskii Avoid compiler warning in image.c on MS-Windows * src/image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Avoid compilation warning under -Warray-bounds by temporarily disabling the -Warray-bounds option. 2017-06-14 Michael Albinus Fix Bug#27315 * lisp/net/tramp-cache.el (tramp-cache-read-persistent-data): New defvar. (top): Use it. * lisp/net/tramp.el (tramp-handle-file-name-case-insensitive-p): Check for connected, not for connectable. (Bug#27315) (tramp-process-actions): * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): Use `tramp-cache-read-persistent-data'. * test/lisp/net/tramp-tests.el (top): Set also `tramp-cache-read-persistent-data'. 2017-06-14 Noam Postavsky Give a fixed default value for icomplete-prospects-height (Bug#26939) * lisp/icomplete.el (icomplete-prospects-height): Default to 2. (icomplete-prospects-length): Remove. * etc/NEWS: Announce removal. 2017-06-14 Philipp Stephani Remove some tautological comparisons involving rlim_t Clang on macOS warns about these with -Wtautological-compare. POSIX guarantees that rlim_t is unsigned (cf. http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html), so these resource limits can never be negative. * src/emacs.c (main): Remove tautological comparisons. 2017-06-14 Philipp Stephani Use --module-assertions if modules are available Using --module-assertions helps us find bugs in the test module. But we can use it only if Emacs was compiled with module support. * test/Makefile.in (MODULES_EMACSOPT): New variable. (emacs): Use it. 2017-06-14 Philipp Stephani Define --module-assertions only of modules are available Fixes Bug#27352. * src/emacs.c (usage_message, standard_args): Define --module-assertions only if Emacs has been compiled with module support. 2017-06-14 Katsumi Yamaoka gnus-article-read-summary-keys: Don't move point for WDD and WDW commands * lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): No need to restore window config for WDD and WDW commands. 2017-06-14 Thomas Fitzsimmons lisp/net/soap-client.el: Bump version to 3.1.3 * lisp/net/soap-client.el: Bump version to 3.1.3. (soap-name-p): Fix checkdoc issue. 2017-06-14 Alex Harsanyi Fix an HTTP encoding error in soap-client.el * lisp/net/soap-client.el (soap-invoke-internal): Make SOAPAction header a UTF-8 encoded string. 2017-06-14 Paul Eggert Port cleanup attribute to Oracle Studio 12.5 * INSTALL (--with-modules): List cleanup attribute as prereq. * src/conf_post.h (__has_attribute_cleanup): Remove; no longer needed. * src/emacs-module.c (MODULE_SETJMP_1): Don’t attempt to verify (__has_attribute (cleanup)), as Oracle Studio 12.5 supports __has_attribute only inside preprocessor expressions. The C compiler should check the cleanup attribute in the next line anyway. (module_reset_handlerlist): Remove an unnecessary ‘const’ that causes Oracle Studio 12.5 to refuse to compile. 2017-06-14 Glenn Morris Fix running tests in without-modules builds * test/Makefile.in (EMACSOPT): Remove option that is only defined with-modules. emacs-module-tests.el passes it where needed. 2017-06-13 Glenn Morris * test/Makefile.in (src/emacs-module-tests.log): Out-of-tree fix. 2017-06-13 Philipp Stephani Inline test module Makefile into main test Makefile The test/data/emacs-module/Makefile only built a single target, and inlining it into test/Makefile simplifies dependency tracking and reduces code duplication. * configure.ac: Don't build test/data/emacs-module/Makefile. * Makefile.in ($(test_module)): Inline compilation. (clean): Also clean test module outputs. 2017-06-13 Michael Albinus * lisp/net/tramp-sh.el (tramp-set-file-uid-gid): Do not handle locally on w32. 2017-06-13 Michael Albinus Minor tweaks in Tramp manual * doc/misc/trampver.texi: Add prefixwithspace flag. * doc/misc/tramp.texi (Password handling): Harmonize example. (File name completion): Use prefixwithspace flag. (Frequently Asked Questions): Explain `tramp-histfile-override'. 2017-06-13 Philipp Stephani Silence two Clang warnings by introducing additional local variables * lib/strftime.c (libc_hidden_def): * lib-src/make-docfile.c (put_filename): Introduce local variables to silence Clang warnings. 2017-06-13 Noam Postavsky Fix wrong indentation after string literal (Bug#27306) * lisp/emacs-lisp/lisp-mode.el (lisp-indent-state) (lisp-indent-calc-next): Remove `depth' field, use (car ppss) instead. * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-indent-region-after-string-literal): New test. 2017-06-13 Philipp Stephani Fix version checks for emacs-module.h We don't need C11 or C++11 because stdbool.h is in C99, and for C++ we don't need it at all. 2017-06-13 Noam Postavsky Buttonize # part of printed functions (Bug#25226) * lisp/emacs-lisp/cl-print.el: Autoload `disassemble-1'. (cl-print-compiled-button): New variable. (help-byte-code): New button type, calls `disassemble' in its action. (cl-print-object): Use it if `cl-print-compiled-button' is non-nil. 2017-06-12 Philipp Stephani Print module structure sizes when initializing test module * test/data/emacs-module/mod-test.c (emacs_module_init): Print compile-time and runtime sizes of module structures to ease debugging 2017-06-12 Glenn Morris Small portability fix for emacs-module.h (bug#27346) * src/emacs-module.h (EMACS_ATTRIBUTE_NONNULL) [!__has_attribute]: Avoid 'error: missing binary operator before token "("'. 2017-06-12 Glenn Morris Give a more informative failure in module assertion test * test/src/emacs-module-tests.el (module--test-assertions): Rephrase final check to give a more informative failure. 2017-06-12 Philipp Stephani Fix off-by-one error * test/data/emacs-module/mod-test.c (emacs_module_init): Fix off-by-one error. 2017-06-12 Glenn Morris Clean up after module assertion tests * test/src/emacs-module-tests.el (module--test-assertions): Use a temporary directory to contain any core dumps. 2017-06-12 Glenn Morris Small improvement for module assertion test * test/src/emacs-module-tests.el (module--test-assertions): Don't rely on the precise form of an "Abort" message. 2017-06-12 Glenn Morris Improve previous test/data/emacs-module/Makefile change * test/data/emacs-module/Makefile.in (clean): Avoid doing unpleasant things if run in a build without modules. 2017-06-12 Glenn Morris Small improvements for test/data/emacs-module/Makefile * test/data/emacs-module/Makefile.in (%.o): Fix emacs-module dependency. (SECONDARY): Stop make automatically deleting *.o. (clean): New rule. 2017-06-12 Glenn Morris * make-dist: Skip some more generated files in test/. 2017-06-12 Alan Third Note how fullscreen differs on the NS port doc/lispref/frames.texi (Size Parameters): doc/emacs/frames.texi (Tool Bars): Add a description of how macOS hides the tool-bar and menu-bar in fullscreen. 2017-06-12 Alan Third Add no-focus-on-map to NS build (bug#25408) * src/nsfns.m (ns_frame_parm_handlers): Add x_set_no_focus_on_map. (x-create-frame): Check for no-focus-on-map. * src/nsterm.h (x_set_no_focus_on_map): New function. * src/nsterm.m (x_set_no_focus_on_map): New function. (ns_raise_frame): Add parameter for specifying whether to focus the frame. (ns_frame_raise_lower): (x_make_frame_visible): Handle new parameter for ns_raise_frame. 2017-06-12 Paul Eggert _Noreturn not noreturn _Noreturn is more portable to non-C11 platforms. See: https://www.gnu.org/software/gnulib/manual/html_node/stdnoreturn_002eh.html * src/emacs-module.c: Use _Noreturn, not noreturn. No need to include . Reindent to fit in 80 columns. 2017-06-12 Glenn Morris Update make-dist for recent test/ changes * make-dist: No longer distribute test/data/emacs-module/Makefile. 2017-06-12 Michael Albinus Handle port and domain in Tramp's password cache * doc/misc/tramp.texi (Password handling): Explain port and domain handling in authinfo. * lisp/net/tramp.el (tramp-process-actions, tramp-clear-passwd): * lisp/net/tramp-gvfs.el (tramp-gvfs-handler-askpassword): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band) (tramp-maybe-open-connection): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl) (tramp-smb-maybe-open-connection): Handle also domain and port. 2017-06-12 Eli Zaretskii Avoid compilation warnings with pre-C99 libc * src/emacs-module.c (module_free_global_ref) (module_assert_runtime, module_assert_env, value_to_lisp): Use 'pD' instead of C99 't' format descriptor. 2017-06-12 Philipp Stephani Flush all output streams before aborting Maybe the stdout buffer still contains something interesting that should be flushed. * src/emacs-module.c (module_abort): Flush all output streams before aborting. 2017-06-12 Philipp Stephani Remove an assertion that doesn't test Emacs invariants * src/emacs-module.c (module_copy_string_contents): Remove an assertion that doesn't test Emacs invariants. 2017-06-12 Philipp Stephani Test module: add necessary version checks * test/data/emacs-module/mod-test.c (emacs_module_init): Add necessary version checks. 2017-06-12 Philipp Stephani Use additional CFLAGS from configure 2017-06-12 Philipp Stephani Use Autoconf to generate the test module Makefile This makes it easier to pass compilation flags around. * configure.ac: Also build test module Makefile. * test/data/emacs-module/Makefile.in: New makefile template. * test/Makefile.in ($(test_module)): No longer necessary to pass @MODULES_SUFFIX@ around. * .gitignore: Test module Makefile can now be ignored. 2017-06-12 Philipp Stephani Also compile test module as C11 * test/data/emacs-module/Makefile (CFLAGS): Compile test module as C11 2017-06-12 Philipp Stephani Implement module assertions for users Add a new command-line option '-module-assertions' that users can enable developing or debugging a module. If this option is present, Emacs performs additional checks to verify that modules fulfill their requirements. These checks are expensive and crash Emacs if modules are invalid, so disable them by default. This is a command-line option instead of an ordinary variable because changing it while Emacs is running would cause data structure imbalances. * src/emacs.c (main): New command line option '-module-assertions'. * src/emacs-module.c (module_assert_main_thread) (module_assert_runtime, module_assert_env, module_assert_value): New functions to assert module requirements. (syms_of_module): New uninterned variable 'module-runtimes'. (init_module_assertions, in_main_thread, module_abort): New helper functions. (initialize_environment): Initialize value list. If assertions are enabled, use a heap-allocated environment object. (finalize_environment): Add assertion that environment list is never empty. (finalize_runtime_unwind): Pop module runtime object stack. (value_to_lisp): Assert that the value is valid. (lisp_to_value): Record new value if assertions are enabled. (mark_modules): Mark allocated object list. (MODULE_FUNCTION_BEGIN_NO_CATCH) (module_non_local_exit_check, module_non_local_exit_clear) (module_non_local_exit_get, module_non_local_exit_signal) (module_non_local_exit_throw): Assert thread and environment. (module_get_environment): Assert thread and runtime. (module_make_function, module_funcall, module_intern) (module_funcall, module_make_integer, module_make_float) (module_make_string, module_make_user_ptr, module_vec_get) (funcall_module, Fmodule_load): Adapt callers. (module_make_global_ref): If assertions are enabled, use the global environment to store global values. (module_free_global_ref): Remove value from global value list. * test/Makefile.in (EMACSOPT): Enable module assertions when testing modules. * test/data/emacs-module/mod-test.c (Fmod_test_invalid_store) (Fmod_test_invalid_load): New functions to test module assertions. (emacs_module_init): Bind the new functions. * test/src/emacs-module-tests.el (mod-test-emacs): New constant for the Emacs binary file. (mod-test-file): New constant for the test module file name. (module--test-assertions): New unit test. 2017-06-12 Philipp Stephani emacs-module: Use __attribute__((nonnull)) Annotate all parameters with __attribute__((nonnull)) that may not be NULL. 2017-06-12 Philipp Stephani Explicitly require C11 or C++11 in emacs-module.h We already implicitly require them by including stdbool.h. Just make the error message a bit clearer, and remove an unnecessary version comparison. 2017-06-12 Philipp Stephani Add missing 'require' forms to prevent compiler warnings. * lisp/eshell/esh-ext.el (esh-arg, esh-proc): Add missing requirements. 2017-06-12 Paul Eggert Merge from gnulib This incorporates: 2017-06-11 getopt-posix: port to glibc 2.25.90 2017-06-04 same-inode: port better to VMS 8.2 and later * doc/misc/texinfo.tex, lib/getopt-pfx-core.h, lib/getopt-pfx-ext.h: * m4/sys_types_h.m4: Copy from gnulib. 2017-06-12 Paul Eggert Remove Lisp_Misc_Float * src/data.c (Ftype_of): Do not worry about Lisp_Misc_Float. * src/lisp.h (Lisp_Misc_Float): Remove. This placeholder has been unused for two decades; if we ever want to change floats to be a misc type we can bring it back then. 2017-06-12 Paul Eggert Make two symbols private to emacs-module.c * src/lisp.h (allocate_module_function, XSET_MODULE_FUNCTION): Move from here ... * src/emacs-module.c: ... to here. 2017-06-12 Glenn Morris Merge from origin/emacs-25 da62c1532e4 (origin/emacs-25) Improve the documentation of filesets 2017-06-12 Glenn Morris Merge from origin/emacs-25 e80f6a210b0 Describe problems with Microsoft Intellipoint a73ec1edb07 More accurate documentation of the ':box' face attribute 2017-06-12 Glenn Morris Merge from origin/emacs-25 eaa00584ceb Improve documentation of 'gnutls-verify-error' 908498cc01b ; etc/PROBLEMS: Describe GTK-related crashes on elementar... 741daec617e ; Describe the problem with ksh when resizing shell window 2017-06-11 Michael Albinus Some further improvements for tramp-gvfs.el * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name) (tramp-gvfs-get-file-attributes) (tramp-gvfs-maybe-open-connection): Handle davs? properly. (tramp-gvfs-handler-askquestion): Improve `yes-or-no-p' prompt. Show question also in batch mode. Cache result. * test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion): Support completion for host names and ports. 2017-06-11 Simen Heggestøyl Fix highlighting of CSS selectors with double hyphens * lisp/textmodes/css-mode.el (css--font-lock-keywords): Fix highlighting of selectors that contain double hyphens. They would be mistaken for a variable. 2017-06-11 Philipp Stephani Support threads in modules Rather than checking for the main thread, check for the current thread. * src/emacs-module.c (check_thread): New function. (MODULE_FUNCTION_BEGIN_NO_CATCH, module_get_environment) (module_non_local_exit_check, module_non_local_exit_clear) (module_non_local_exit_get, module_non_local_exit_signal) (module_non_local_exit_throw, module_is_not_nil, module_eq): Use it. 2017-06-11 Philipp Stephani Allow non-local exits in module initializers Previously signals, throws, and quits from module initialization functions were ignored. These function aren't special, and better errors can be reported using signals than with the initialization return code, so allow non-local exits. * src/emacs-module.c (module_signal_or_throw): New helper function. (Fmodule_load, funcall_module): Use it. (Fmodule_load): Also allow quitting. 2017-06-11 Noam Postavsky Let eshell/sudo handle absolute command names (Bug#27167) * lisp/eshell/esh-ext.el (eshell-find-interpreter): Don't change absolute paths into relative ones. 2017-06-10 Alan Third Don't wait for toolbar in NS native fullscreen * src/nsterm.m (EmacsView:updateFrameSize): Don't short-circuit the function when in fullscreen. 2017-06-10 Alexander Gramiak Fix the placement of GTK menus on multi-monitor systems menu_position_func did not properly use the current monitor's resolution. Also see commit '2016-02-06 22:12:53 +0100'. * lisp/frame.el (frame-monitor-attribute, frame-monitor-geometry) (frame-monitor-workarea): New functions. * src/xmenu.c (menu_position_func): Take into account the workarea of the monitor that contains the mouse. (Bug#23568) 2017-06-10 Eli Zaretskii Clarify documentation of 'face-spec-set' * lisp/faces.el (face-spec-set): Clarify the description of SPEC-TYPE in the doc string. * doc/lispref/display.texi (Defining Faces): Clarify the description of 'face-spec-set's SPEC-TYPE argument. (Bug#27246) 2017-06-10 Michael Albinus Fix domain port and handling in tramp-gvfs.el * lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-byte-array-to-string): Return nil if BYTE-ARRAY is nil. (tramp-gvfs-url-file-name, tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec): Fix domain and port handling. * lisp/net/tramp.el (tramp-handle-file-name-case-insensitive-p): Ignore errors. 2017-06-10 Eli Zaretskii Improve documentation of 'face-spec-set-2' * lisp/faces.el (face-spec-recalc, face-spec-set-2): Rename 'spec' to 'face-attrs'. (face-spec-choose, face-spec-set-2): Doc fix. (Bug#27238) 2017-06-10 Eli Zaretskii Fix handling of Python/Guile commands with arguments in gdb-mi.el * lisp/progmodes/gdb-mi.el (gdb-python-guile-commands-regexp): New variable. (gdb-control-commands-regexp): Use it. (gdb-send): Don't increment gdb-control-level if the command matches gdb-python-guile-commands-regexp and has non-empty arguments. Reported by David Boles in https://lists.gnu.org/r/emacs-devel/2017-06/msg00009.html. 2017-06-10 Eli Zaretskii Preserve point in Dired windows under 'dired-auto-revert-buffer' * lisp/dired.el (dired-find-file): When dired-auto-revert-buffer is non-nil, bind switch-to-buffer-preserve-window-point to nil while calling find-file. (Bug#27243) 2017-06-09 Philipp Stephani Give test files a -tests.el suffix Rename a couple of test files that have the same name as the library they test. This harmonizes the naming pattern and makes it possible to have the tests directories in the load path. 2017-06-09 Philipp Stephani Fix another compiler warning on macOS * src/image.c (x_query_frame_background_color): Don't define if we have NextStep but no image support. 2017-06-09 Philipp Stephani Add garbage collection support for module environments * src/emacs-module.c (mark_modules): New function. (initialize_environment): Properly initialize Lisp objects. * src/alloc.c (garbage_collect_1): Call it. 2017-06-08 Glenn Morris Make autogen.sh report relevant environment variables * autogen.sh (check_version): Indicate if using an environment variable. 2017-06-08 Noam Postavsky Split variable macro env from function env * lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Remove. (cl-symbol-macrolet): Instead of adding each binding directly into the main environment with a special key format, put all symbol macro bindings into a single entry in the main environment under `:cl-symbol-macros'. (cl--sm-macroexpand): Look up symbol bindings in the `:cl-symbol-macros' entry of the environment. 2017-06-07 Glenn Morris * make-dist: Directory modules/mod-test no longer exists. 2017-06-07 Glenn Morris More authors.el updates * admin/authors.el (authors-ignored-files, authors-valid-file-names) (authors-renamed-files-alist): Additions. 2017-06-07 Glenn Morris * make-dist: Check a release has a ChangeLog with a release notice. * make-dist: Use existing ChangeLog if present. 2017-06-07 Michael Albinus * lisp/net/tramp-sh.el (tramp-maybe-open-connection): Fix port handling. 2017-06-07 Lars Ingebrigtsen (url-cookie-host-can-set-p): Protect against zero-length domains * lisp/url/url-cookie.el (url-cookie-host-can-set-p): Protect against zero-length domains. Backtrace of a real-world site that triggers a bug: Debugger entered--Lisp error: (args-out-of-range "" 0) url-cookie-host-can-set-p("www.washingtonpost.com" "") url-cookie-handle-set-cookie("utm_term=0;Expires=Thursday, 01-January-1970 00:00:00 GMT; path=/; domain=") url-http-handle-cookies() 2017-06-06 Glenn Morris More authors.el updates * admin/authors.el (authors-obsolete-files-regexps) (authors-valid-file-names, authors-renamed-files-alist) (authors-renamed-files-regexps): Additions. 2017-06-06 Glenn Morris More small authors.el updates * admin/authors.el (authors-aliases): Fix recent addition. (authors-obsolete-files-regexps, authors-no-scan-regexps) (authors-ignored-files, authors-valid-file-names) (authors-renamed-files-alist): Additions. 2017-06-06 Glenn Morris Make authors.el report names that were ignored * admin/authors.el (authors-ignored-names): New. (authors-canonical-author-name): Add file and position arguments. Record ignored authors. (authors-scan-change-log, authors-scan-el): Pass file and position to authors-canonical-author-name. (authors): Also print authors that were ignored. 2017-06-06 Glenn Morris * admin/authors.el (authors-aliases): Additions. 2017-06-06 Tino Calancha * test/lisp/subr-tests.el (subr-tests-bug22027): Add test. 2017-06-06 Noam Postavsky * lisp/subr.el (read-passwd): Don't delete return value (Bug#22027). 2017-06-06 Dmitry Gutov Enable ElDoc messages after the newline command * lisp/emacs-lisp/eldoc.el: Add "newline" to the eldoc-add-command-completions call (bug#27228). 2017-06-06 Dmitry Gutov Enable eldoc-mode explicitly inside read--expression * lisp/simple.el (read--expression): Call eldoc-mode (bug#27202). 2017-06-06 Andy Moreton Fix check for package-unsigned-archives during retrieval * lisp/emacs-lisp/package.el (package--download-one-archive): Fix check for package-unsigned-archives. 2017-06-05 Noah Friedman Merge etc/emacs-buffer.gdb from emacs-25 to master. 2017-06-05 Philipp Stephani Fix undefined behavior in mapbacktrace * src/eval.c (Fmapbacktrace): Don't assume that PDL is still valid. 2017-06-05 Eli Zaretskii Fix emacs-module-tests on MS-Windows * src/print.c (print_vectorlike): Make sure module function's address prints with a leading "0x". This fixes emacs-module-tests on MS-Windows. Fix whitespace. * src/dynlib.c (dynlib_addr): Remove unused variable. Update commentary. 2017-06-05 Philipp Stephani Use unwind protection to clean up data structures in modules Reuse existing functionality and simplify the code a bit. * src/emacs-module.c (Fmodule_load): Use unwind protection to clean up runtime object. (funcall_module): Use unwind protection to clean up environment object. (finalize_environment): Simplify signature. (finalize_environment_unwind, finalize_runtime_unwind): New functions. 2017-06-05 Michael Albinus Some minor tweaks in tramp-tests.el * test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name-relative): Let it pass for all gfvs based methods. (tramp-test24-file-name-completion): Run method and host completion for all syntaxes only when expensive tests are enabled. Do not check host completion for gvfs based methods. (tramp--test-gvfs-p): Add optional METHOD argument. (tramp--test-afp-or-smb-p): Remove. 2017-06-05 Michael Albinus Fix error in Tramp rsync method * lisp/net/tramp-sh.el (tramp-methods) : Add "-c" argument. Otherwise, `tramp-test10-write-region' could fail. 2017-06-05 Philipp Stephani Inline module_has_cleanup This constant is only used once, and we fail compilation anyway if it's false. * src/emacs-module.c (MODULE_SETJMP_1): Inline __has_attribute. 2017-06-05 Philipp Stephani Add missing dependency to test module source file 2017-06-05 Paul Eggert Omit space that broke ‘make check’ * src/print.c (print_vectorlike): Omit stray space. 2017-06-05 Paul Eggert Remove easserts etc. from emacs-module.c Most of these seem to run afoul of the comment "Do NOT use 'eassert' for checking validity of user code in the module." * src/emacs-module.c (MODULE_FUNCTION_BEGIN_NO_CATCH) (module_non_local_exit_check, module_non_local_exit_clear) (module_non_local_exit_get, module_non_local_exit_signal) (module_non_local_exit_throw, module_make_string): Remove unnecessary easserts that pointers are nonnull. Hardware checks this for us nowadays, and the checks just clutter up the code. (module_extract_integer): Remove unnecessary verify that a C signed integer is in the range INTMAX_MIN..INTMAX_MAX. The C standard guarantees this. (module_copy_string_contents): Remove unnecessary eassert that Lisp strings are null-terminated. (module_function_arity): Remove unnecessary easserts that function arities are in range. 2017-06-05 Paul Eggert Remove unnecessary checking in emacs-module.c * src/emacs-module.c (module_copy_string_contents): Remove checking, as string lengths are always nonnegative and less than STRING_BYTES_BOUND, and this is checked elsewhere. (module_make_string): Check length against STRING_BYTES_BOUND, a tighter bound than MOST_POSITIVE_FIXNUM. (funcall_module): Don't assume that an out-of-range integer is nonnegative. 2017-06-05 Paul Eggert SCHARS and STRING_BYTES are nonnegative Tell the compiler that SCHARS and STRING_BYTES are nonnegative, in the hopes that this will optimize a bit better. Also, check this at runtime if ENABLE_CHECKING. * src/lisp.h (SCHARS, STRING_BYTES): eassume that these functions return nonnegative values. (STRING_SET_CHARS) [ENABLE_CHECKING]: eassert that newsize is nonnegative. 2017-06-05 Noam Postavsky * lisp/desktop.el (desktop-clear): Skip the daemon's frame (Bug#26912). 2017-06-04 Philipp Stephani Remove an unused error symbol * src/emacs-module.c (syms_of_module): Remove unused error symbol 'invalid-module-call'. 2017-06-04 Philipp Stephani Support quitting in modules The idea is that modules should call env->should_quit from time to time and return as quickly as possible if it returns true. * src/emacs-module.c (module_should_quit): New module function. (initialize_environment): Use it. (funcall_module): Process potential pending quit. * src/eval.c (maybe_quit): Add reference to module_should_quit. 2017-06-04 Philipp Stephani Use more specific errors for module load failure * src/emacs-module.c (syms_of_module): Add more specific error symbols. (Fmodule_load): Use them. 2017-06-04 Philipp Stephani Remove an unneeded assertion * src/emacs-module.c (module_copy_string_contents): Remove unneeded assertion. If this assertion triggers, we raise an error anyway. 2017-06-04 Philipp Stephani Guard against signed integer overflows * src/emacs-module.c (module_extract_integer) (module_copy_string_contents, module_make_string): Guard against signed integer overflows. 2017-06-04 Philipp Stephani Add a couple more assertions to the module code These can help module authors debug crashes. * src/emacs-module.c (module_non_local_exit_check) (module_non_local_exit_clear, module_non_local_exit_get) (module_non_local_exit_signal, module_non_local_exit_throw) (module_copy_string_contents, module_make_string) (funcall_module, initialize_environment): Add assertions 2017-06-04 Philipp Stephani Use ATTRIBUTE_MAY_ALIAS where alias violations are likely In particular, alias violations are likely for the return values of dlsym(3), which get cast around arbitrarily. * src/emacs-module.c (Fmodule_load): Use ATTRIBUTE_MAY_ALIAS. 2017-06-04 Philipp Stephani Simplify interface of dynlib_attr. Instead of returning bool, set the argument pointers to NULL if the information is not available. * src/dynlib.c (dynlib_addr): Don't return bool. 2017-06-04 Philipp Stephani Rationalize environment lifetime management functions * src/emacs-module.c (Fmodule_load, funcall_module): Adapt callers. (finalize_environment): Add parameter for public part of the environment, like 'initialize_environment'. Add assertions. 2017-06-04 Philipp Stephani Rework printing of module functions Fix a FIXME in emacs-module.c. Put the printing into print.c, like other types. * src/print.c (print_vectorlike): Add code to print module functions. * src/emacs-module.c (funcall_module): Stop calling 'module_format_fun_env'. Now that module functions are first-class objects, they can be added to signal data directly. (module_handle_signal): Remove now-unused function 'module_format_fun_env'. * test/src/emacs-module-tests.el (mod-test-sum-test): Adapt unit test. * src/eval.c (funcall_lambda): Adapt call to changed signature of 'funcall_module'. 2017-06-04 Philipp Stephani Define helper macro to reduce code duplication * src/emacs-module.c (MODULE_FUNCTION_BEGIN_NO_CATCH): New helper macro. (MODULE_FUNCTION_BEGIN, module_type_of, module_is_not_nil, module_eq): Use it. 2017-06-04 Philipp Stephani Remove two FIXMEs that can't be fixed 2017-06-04 Eli Zaretskii Avoid slow startup in daemon mode when global-linum-mode is on * lisp/linum.el (linum-on): Don't turn on linum-mode in a non-client frame of a daemon session. (Bug#27210) 2017-06-04 Paul Eggert Fix eldoc bug with curved quote * lisp/progmodes/elisp-mode.el (elisp-get-fnsym-args-string): Substitute quotes in documentation before returning it (Bug#27159). 2017-06-04 Paul Eggert Tune ‘format’ after recent fix * doc/lispref/strings.texi (Formatting Strings): * src/editfns.c (Fformat): Format field numbers no longer need to be unique, reverting the previous doc change since that has now been fixed. Also, document that %% should not have modifiers. * src/editfns.c (styled_format): Improve performance. Remove the need for the new prepass over the format string, by using a typically-more-generous bound for the info array size. Initialize the info array lazily. Move string inspection to the same area to help caching. Avoid the need for a converted_to_string bitfield by using EQ. Cache arg in a local and avoid some potential aliasing issues to help the compiler. Info array is now 0-origin, not 1-origin. 2017-06-04 Nikolay Kudryavtsev Improve of file-local-name use in vc-git-checkin * lisp/vc/vc-git.el (vc-git-checkin): Use file-local-name only when calling git commit. 2017-06-03 Simen Heggestøyl Support a new CSS indentation style * lisp/textmodes/css-mode.el (css-smie-rules): Indent after property immediately followed by a newline. * test/manual/indent/css-mode.css: Add test for the change above. * test/manual/indent/scss-mode.scss: Ditto. 2017-06-03 Philipp Stephani Fix a bug when using format field numbers Previously styled_format overwrite the argument vector. This is no longer possible because there might be more than one specification per argument. Use the existing auxiliary info array instead. * src/editfns.c (styled_format): Record arguments in the info structure instead of overwriting them. * test/src/editfns-tests.el (format-with-field): Add unit test. 2017-06-03 Paul Eggert Document uniqueness limitation of ‘format’ * doc/lispref/strings.texi (Formatting Strings): * src/editfns.c (Fformat): Document that field numbers should be unique within a format. 2017-06-03 Glenn Morris Small rmailmm fix (bug#27203) * lisp/mail/rmailmm.el (rmail-mime-insert-bulk): Fall back to HOME if no match in rmail-mime-attachment-dirs-alist. 2017-06-03 Glenn Morris * admin/authors.el (authors-aliases): Addition. 2017-06-03 Glenn Morris Add watch for password back to inferior python comint filter It was removed along with other items for speed (bug#16875), but doesn't seem to have been causing an issue, and it's useful to have it there (bug#27154). * lisp/progmodes/python.el (inferior-python-mode): Add comint-watch-for-password-prompt to comint-output-filter-functions. 2017-06-03 Ryan (tiny change) Use completing-read-default in tmm-prompt tmm uses completing-read, but customizes its behavior so much that any alternative completing-read-function will almost certainly break it. For example, both ido-ubiquitous and ivy have special code to deactivate themselves for tmm. * lisp/tmm.el (tmm-prompt): Use completing-read-default instead of completing-read. (Bug#27193) 2017-06-02 Mats Lidell * etc/tutorials/TUTORIAL.sv: synced with TUTORIAL (Bug#20371) 2017-06-02 Glenn Morris Fix with-todo-test * test/lisp/calendar/todo-mode-tests.el (with-todo-test): HOME should be a directory, not a file. Delete it when finished. 2017-06-02 Lele Gaifax (tiny change) Update TUTORIAL.it * etc/tutorials/TUTORIAL.it: Adjust to recent changes in TUTORIAL. 2017-06-02 Eli Zaretskii Fix cursor position in Dired buffers after dired-sort-toggle * src/xdisp.c (display_and_set_cursor): Record cursor coordinates even if the frame is marked as garbaged. (Bug#27187) 2017-06-02 Eli Zaretskii Update TUTORIAL.he * etc/tutorials/TUTORIAL.he: Adjust to recent changes in TUTORIAL. 2017-06-02 Noam Postavsky * etc/tutorials/TUTORIAL: Explain how to stop the tutorial (Bug#20371). 2017-06-02 Paul Eggert Limit format fields to more POSIX-like spec * doc/lispref/strings.texi (Formatting Strings): Don’t allow mixing numbered with unnumbered format specs. * src/editfns.c (styled_format): Don’t bother checking for field 0, since it doesn’t crash and the behavior is not specified. * test/src/editfns-tests.el (format-with-field): Adjust tests to match current doc. Add more tests for out-of-range fields. 2017-06-02 Paul Eggert Improve performance by avoiding strtoumax This made (string-to-number "10") 20% faster on my old desktop, an AMD Phenom II X4 910e running Fedora 25 x86-64. * admin/merge-gnulib (GNULIB_MODULES): Remove strtoumax. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/strtoul.c, lib/strtoull.c, lib/strtoumax.c, m4/strtoull.m4: * m4/strtoumax.m4: Remove. * src/editfns.c (str2num): New function. (styled_format): Use it instead of strtoumax. Use ptrdiff_t instead of uintmax_t. Check for integer overflow. * src/lread.c (LEAD_INT, DOT_CHAR, TRAIL_INT, E_EXP): Move to private scope and make them enums. (string_to_number): Compute integer value directly during first pass instead of revisiting it with strtoumax later. 2017-06-02 Paul Eggert Minor improvements to format field numbers * src/editfns.c (styled_format): Allow field numbers in a %% spec. No need for a special diagnostic for field numbers greater than PTRDIFF_MAX. Reword diagnostic for field 0. * test/src/editfns-tests.el (format-with-field): Adjust to match. 2017-06-02 Philipp Stephani Implement field numbers in format strings A field number explicitly specifies the argument to be formatted. This is especially important for potential localization work, since grammars of various languages dictate different word orders. * src/editfns.c (Fformat): Update documentation. (styled_format): Implement field numbers. * doc/lispref/strings.texi (Formatting Strings): Document field numbers. * lisp/emacs-lisp/bytecomp.el (byte-compile-format-warn): Adapt. * test/src/editfns-tests.el (format-with-field): New unit test. 2017-06-01 Alexander Gramiak Limit scope of local overriding-terminal-local-map The function `binding' may call isearch-done, which globally sets overriding-terminal-local-map to nil (Bug#23007). * lisp/isearch.el (isearch-mouse-2): Don't bind overriding-terminal-local-map around the call to `binding'. 2017-06-01 Stephen Berman Correct and isolate the todo-mode test environment This avoids having to set todo-mode variables globally in the test file and prevents any exisiting user todo-mode files from influencing the tests. * test/lisp/calendar/todo-mode-tests.el: (with-todo-test): New macro. (todo-test-todo-quit01, todo-test-todo-quit02) (todo-test-item-highlighting): Use it. 2017-06-01 Alan Third Fix build errors on macOS 10.6 (bug#27059) * src/nsfns.m (compute_tip_xy): Don't use CGRectContainsPoint. 2017-06-01 Eli Zaretskii Improve testing of octal and hex display of raw bytes * test/manual/redisplay-testsuite.el (test-redisplay-5-toggle) (test-redisplay-5): Add a test with a large codepoint. 2017-06-01 Vasilij Schneidermann Add customizable to display raw bytes as hex * src/xdisp.c (get_next_display_element): Dispatch used format string for unprintables based on new display-raw-bytes-as-hex variable. (display-raw-bytes-as-hex): New variable. (Bug#27122) * lisp/cus-start.el: Add defcustom form for display-raw-bytes-as-hex. * doc/emacs/display.texi: Document the new variable. * etc/NEWS: Mention display-raw-bytes-as-hex. * test/manual/redisplay-testsuite.el (test-redisplay-5-toggle) (test-redisplay-5): New tests. (test-redisplay): Call test-redisplay-5. 2017-06-01 Eli Zaretskii Revert "Add customizable to display raw bytes as hex" This reverts commit 7c9ac111c5e5d92e620b666893993d5dc562e483. 2017-06-01 Eli Zaretskii Add customizable to display raw bytes as hex * src/xdisp.c (get_next_display_element): Dispatch used format string for unprintables based on new display-raw-bytes-as-hex variable. (display-raw-bytes-as-hex): New variable. (Bug#27122) * lisp/cus-start.el: Add defcustom form for display-raw-bytes-as-hex. * doc/emacs/display.texi: Document the new variable. * etc/NEWS: Mention display-raw-bytes-as-hex. * test/manual/redisplay-testsuite.el (test-redisplay-5-toggle) (test-redisplay-5): New tests. (test-redisplay): Call test-redisplay-5. 2017-06-01 Eli Zaretskii Fix linum under text-scaling when leuven-theme is used * etc/themes/leuven-theme.el (linum): Make the 'linum' face inherit from 'default' and 'shadow', so that margins are enlarged as expected under text-scaling. 2017-06-01 Paul Eggert Free cwd when no longer needed * lib-src/emacsclient.c (main): Don’t dally when freeing cwd. 2017-06-01 Anders Waldenborg (tiny change) Fix memory leak of cwd string in emacsclient (Bug#26628) * lib-src/emacsclient.c (main): emacsclient retrieves the current working directory using get_current_dir_name which returns a newly allocated string. Make sure this string is freed before exiting. 2017-06-01 Glenn Morris Quieten compilation of some test files * test/lisp/dired-tests.el (dired-test-bug25609): Mark unused args. * test/src/data-tests.el (binding-test-set-constant-t) (binding-test-set-constant-nil, binding-test-set-constant-keyword) (binding-test-set-constant-nil): Silence compiler. * test/src/regex-tests.el (regex-tests-BOOST): Escape char literal. 2017-06-01 Glenn Morris Use true names for invocation- and source-directory * src/emacs.c (init_cmdargs) : * src/lread.c (init_lread) : Use true names. 2017-06-01 Glenn Morris Avoid elisp-mode test failures when source dir has multiple names * test/lisp/progmodes/elisp-mode-tests.el (emacs-test-dir): Use the true name of the directory. 2017-06-01 Paul Eggert Fix bug with "%%" in error format * src/doprnt.c (doprnt): Format "%%" correctly. Problem reported by Philipp Stephani in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00901.html 2017-06-01 Paul Eggert * src/editfns.c (Fmessage): Improve doc string (Bug#23425#130). 2017-06-01 Katsumi Yamaoka Revert mml-generate-mime-1 (bug#27141) * lisp/gnus/mml.el (mml-generate-mime-1): Reverted to emacs-25 version with slight modernizations (bug#27141). 2017-05-31 Michael Albinus Fix Bug#27108 * lisp/recentf.el (recentf-load-list): Bind `non-essential', in order to avoid Tramp password requests during Emacs startup. (Bug#27108) 2017-05-31 Glenn Morris * test/Makefile.in (.SECONDARY): Stop make deleting .elc files. 2017-05-31 Eli Zaretskii Document current-line hscrolling in ELisp manual * doc/lispref/windows.texi (Horizontal Scrolling): Document the new mode of auto-hscrolling only the current line. 2017-05-31 Eli Zaretskii Support lower bound on hscrolling when only current line scrolls * doc/emacs/display.texi (Horizontal Scrolling): Document the new mode of auto-hscrolling only the current line. * src/xdisp.c (init_iterator): When hscrolling only the current line, apply the window's min_hscroll here, so that non-current lines will be hscrolled by that minimum. Suggested by Stephen Berman . (hscroll_window_tree): Account for window's min_hscroll when deciding whether to recompute the hscroll. (display_line): Subtract window's min_hscroll from x_incr, as that was already accounted for in init_iterator. (Bug#27008) 2017-05-31 Noam Postavsky cl-print: handle circular objects when `print-circle' is nil (Bug#27117) * lisp/emacs-lisp/cl-print.el (cl-print--currently-printing): New variable. (cl-print-object): When `print-circle' is nil, bind it to a list of objects that are currently printing to avoid printing the same object endlessly. * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-circle): New test. 2017-05-31 Noam Postavsky Further simplify test/Makefile, optionally load elc tests * test/Makefile.in: Use make's error ignoring feature instead of suppressing test errors with shell. Compile test files in the main make invocation instead of a recursive 'make' call. Optionally load .elc test files if TEST_LOAD_EL is set to something other than 'yes'. Remove obsolete commentary. 2017-05-31 Eli Zaretskii Avoid inflooping in redisplay due to Spacemacs and linum-mode * src/xdisp.c (redisplay_internal): Limit the number of redisplay retries when a frame becomes garbaged as result of redisplaying it. (Bug#27115) 2017-05-31 Tino Calancha * src/editfns.c (decode-time): Fix docstring. 2017-05-31 Glenn Morris * admin/update_autogen: Remove bzr support. 2017-05-31 Glenn Morris Avoid subr test failure when source dir has multiple names * test/lisp/subr-tests.el (subr-tests--this-file): Use the true name of the file. The following test does a string comparison of this value with that from method-files, which uses load-history, which contains true names. 2017-05-31 Dmitry Gutov Extract eldoc--supported-p * lisp/emacs-lisp/eldoc.el (eldoc--supported-p): New function. (turn-on-eldoc-mode, eldoc-mode): Use it. (https://lists.gnu.org/r/emacs-devel/2017-05/msg00865.html) 2017-05-30 Glenn Morris Make "make check" less verbose by default * test/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_ELC, am__v_ELC_) (am__v_ELC_0, am__v_ELC_1, AM_V_GEN, am__v_GEN_, am__v_GEN_0) (am__v_GEN_1, AM_V_at, am__v_at_, am__v_at_0, am__v_at_1): New, copied from lisp/Makefile.in. (%.elc, %.log): Simplify and quieten. 2017-05-30 Alan Mackenzie Mode line "%q" construct: Just use one number when both would be the same. * src/xdisp.c (decode_mode_spec): recode the "%q" bit appropriately. 2017-05-30 Alan Mackenzie Merge branch 'master' of /home/acm/emacs/emacs.git/master 2017-05-30 Alan Mackenzie c-defun-name: Return fully qualified method names when wanted in C++, etc. * lisp/progmodes/cc-cmds.el (c-defun-name): Use c-back-over-compound-identifier in place of c-backward-token-2 near the end of the function. 2017-05-30 Glenn Morris Reduce scope of recent test/Makefile HOME change * test/Makefile.in (%.log): Move setting of HOME here from top-level. 2017-05-30 Paul Eggert Skip .#* temporaries when finding sources Without this patch, ‘make check’ can fail with the diagnostic ‘invalid syntax in conditional’ if there is an Emacs temporary file whose name starts with ‘.#’, because the ‘#’ is treated as the start of a Make comment. * lisp/Makefile.in (loaddefs, tagsfiles, check-defun-deps): * test/Makefile.in (ELFILES): Skip files starting with ‘.’, so that the .#* files do not cause trouble. (We cannot easily skip just files starting with ‘.#’, since ‘#’ starts a Make comment!) 2017-05-30 Alan Mackenzie Merge branch 'master' of /home/acm/emacs/emacs.git/master 2017-05-30 Alan Mackenzie Fix the mouse help/key map on the "%p" part of the mode line. * lisp/bindings.el (mode-line-percent-position): give it a `risky-local-variable' property. (mode-line-position): correct the quoting on the mode-line-percent-position part of the variable, allowing the properties to be properly recognized. 2017-05-30 Alan Mackenzie Fix the mouse help/key map on the "%p" part of the mode line. * lisp/bindings.el (mode-line-percent-position): give it a `risky-local-variable' property. (mode-line-position): correct the quoting on the mode-line-percent-position part of the variable, allowing the properties to be properly recognized. 2017-05-30 Paul Eggert Merge from gnulib * build-aux/config.guess: Copy from gnulib. * lib/gnulib.mk.in: Regenerate. 2017-05-30 Glenn Morris Stop make check interacting with HOME * test/Makefile.in (HOME): Export a non-existent value. 2017-05-30 Paul Eggert Update .gitattributes to match sources better * .gitattributes: Remove nt/nmake.defs. Move dostorture.c, c.C, algrthms.html. Use pattern for todo-mode. Improve patterns for Ada, C, ObjC, shell. Add Pascal. Remove unused pattern *.ruby. Add config.guess and config.sub as shell files. 2017-05-30 Noam Postavsky Rename '--new-daemon' to 'fg-daemon' and '--old-daemon' to '--bg-daemon' * doc/emacs/cmdargs.texi (Initial Options): * doc/lispref/os.texi (Startup Summary): * etc/NEWS: * etc/emacs.service: * src/emacs.c (main): * src/lisp.h: Rename '--new-daemon' to 'fg-daemon' and '--old-daemon' to '--bg-daemon'. 2017-05-30 Glenn Morris todo-mode: don't assume an ordering of tests * test/lisp/calendar/todo-mode-tests.el (todo-test-todo-quit02) (todo-test-item-highlighting): Avoid prompting for input file. 2017-05-30 Paul Eggert Improve .gdbinit Lisp value pretty-printing * src/.gdbinit (to_string): Use an unsigned representation for Lisp values, as requested by Eli Zaretskii (Bug#27098). Also, use "make_number(N)" for Lisp integers. 2017-05-30 Dmitry Gutov Turn global-eldoc-mode into a globalized minor mode * lisp/emacs-lisp/eldoc.el (global-eldoc-mode): Turn into globalized mode (bug#19853). (turn-on-eldoc-mode): Make it into a wrapper instead of alias. (eldoc-mode): Only show the message when called interactively. 2017-05-29 Dmitry Gutov Use regexp matching instead of checking exit status * lisp/progmodes/xref.el (xref-collect-matches): See if the output buffer contents look like Grep output instead of checking exit status (bug#23451). 2017-05-29 Stephen Berman Add initial tests for todo-mode.el *test/lisp/calendar/todo-mode-tests.el: *test/lisp/calendar/todo-mode-resources/todo-test-1.toda: *test/lisp/calendar/todo-mode-resources/todo-test-1.todo: New files. * .gitattributes: Ignore trailing whitespace in todo-mode test data files, since it is part of the todo-mode file format. 2017-05-29 Stephen Berman Make `todo-toggle-item-highlighting' work on multiline items (bug#27133) * lisp/calendar/todo-mode.el (todo-hl-line-range): New named function, replacing an anonymous function for the sake of `describe-variable'. (todo-modes-set-2): Use it as buffer-local value of hl-line-range-function and remove boundp test of this variable, so its value is available on invoking `todo-toggle-item-highlighting'. 2017-05-29 Alan Third Fix build error on macOS 10.6 * src/nsfns.m (compute_tip_xy): Cast NSRect to CGRect and NSPoint to CGPoint. 2017-05-29 Jules Tamagnan (tiny change) Comply with pep 8 style guide for backslash in assignment (Bug#24809) * lisp/progmodes/python.el (python-indent--calculate-indentation): Increase indent by `python-indent-offset' after `:after-backslash-assignment-continuation'. 2017-05-29 Wilfred Hughes Add suggestion to docstring * lisp/subr.el (interactive-p): Mention commandp, as this is often what users are actually looking for. 2017-05-29 Wilfred Hughes Ensure button-get works in any buffer * lisp/button.el (button-get): Previously we assumed that button-get was called in the buffer containing the button. In other buffers, button-get always returned nil. Fix this by passing the relevant buffer from the marker. 2017-05-29 Dmitry Gutov Signal error if find-grep returns a nonzero status * lisp/progmodes/xref.el (xref-collect-matches): Signal error if find-grep returns a nonzero status (bug#23451). Remove the comment: even if some output is present, a non-zero status means something went wrong and it can't be relied upon. 2017-05-29 Stephen Berman Make sure exiting todo-mode buffer buries it (bug#27121) This failed due to commit ea3ae33b from 2013-05-16, which prevented quitting todo-mode buffer after visiting todo-archive buffer from making the archive buffer current again. Avoid this now by simply killing the archive buffer, since there's no need to keep it a live buffer. Consequently, quitting a todo-mode buffer can now use bury-buffer without an argument, which ensures that is will not becomes current on quitting the buffer that replaced it in the window. * lisp/calendar/todo-mode.el (todo-quit): Kill todo-archive-mode buffer instead of burying it. This now allows exiting the todo-mode buffer by bury-buffer without an argument, so do that. 2017-05-28 Michael Albinus Some tweaks, almost all for Tramp adb method * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): Use `make-tramp-file-name'. (tramp-adb-get-device): Use `tramp-file-name-port-or-default'. (tramp-adb-maybe-open-connection): Set "prompt" property. (tramp-adb-wait-for-output): Use it. * lisp/net/tramp-cache.el (tramp-cache-print): Use `elt'. (tramp-dump-connection-properties): Check also that there are properties to be saved. Don't save "started" property of "ftp" method. * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name): Use `make-tramp-file-name'. * lisp/net/tramp.el (tramp-remote-file-name-spec-regexp): Host could be empty. (tramp-file-name-port-or-default): New defun. (tramp-dissect-file-name): Simplify `make-tramp-file-name' call. (tramp-handle-file-name-case-insensitive-p): Use a progress reporter. (tramp-call-process, tramp-call-process-region): Use `make-tramp-file-name'. * test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults): Revert change from 2017-05-24. (tramp-test05-expand-file-name-relative): Let it also pass for "adb" method. 2017-05-28 Jürgen Hötzel Fix Tramp for Android 7 * lisp/net/tramp-adb.el (tramp-adb-ls-toolbox-regexp): Username part of prompt is empty on Android 7. (tramp-adb-ls-toolbox-regexp): Ignore addition links column on Android 7. (tramp-adb-get-ls-command): Dont use --color=none when using toybox (Android 7). It's not possible to disable coloring explicitly for toybox ls. 2017-05-27 Svante Carl v. Erichsen (tiny change) Fix cl-indent for `loop' with :keywords (Bug#15543) * lisp/emacs-lisp/cl-indent.el (lisp-extended-loop-p): Allow for ":keywords". 2017-05-27 Paul Eggert Depromiscuify inotify with IN_MASK_ADD Use IN_MASK_ADD instead of using a no-longer-promiscuous-enough mask. This simplifies the code and restores the ability to use IN_ACCESS, IN_CLOSE_WRITE, IN_CLOSE_NOWRITE, and IN_OPEN in some cases (Bug#26973). * src/inotify.c (INOTIFY_DEFAULT_MASK): Remove. (Finotify_add_watch): Use IN_MASK_ADD instead. 2017-05-27 Paul Eggert Restore inotify onlydir support There was no need to remove it in the 2017-03-26 inotify change, as it is like IN_DONT_FOLLOW and does not affect other watchers for the same file. * src/inotify.c (symbol_to_inotifymask, Finotify_add_watch) (syms_of_inotify): Bring back onlydir. 2017-05-27 Paul Eggert Simplify computation of inotify mask * src/inotify.c (add_watch): Accept uint32_t imask instead of Lisp_Object aspect. Caller changed. (Finotify_add_watch): Use aspect_to_inotifymask earlier, to simplify the code. 2017-05-27 Eli Zaretskii Improve the documentation of filesets * doc/emacs/files.texi (Filesets): Fix the description of fileset-init's effect on the menu bar. (Bug#27015) 2017-05-27 Philipp Stephani Don't attempt to recover from undefined behavior in some cases These functions can only be run in batch mode and exit Emacs on return, so nothing can be recovered. Disable unsafe recover mechanisms so that we get real failures and good stack traces on fatal signals. * lisp/emacs-lisp/bytecomp.el (batch-byte-compile) (batch-byte-recompile-directory): * lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit) (ert-summarize-tests-batch-and-exit): Don't attempt to recover from undefined behavior. 2017-05-27 Philipp Stephani Avoid another compiler warning on macOS When configured with --without-ns, HAVE_NS is not defined on macOS, thus 'memory-limit' calls the deprecated sbrk(2) function. Avoid that by using the pre-defined __APPLE__ preprocessor macro. * src/alloc.c (Fmemory_limit): Never use sbrk(2) on macOS. 2017-05-27 Luke Yen-Xun Lee Fix ruler-mode text-scaling issues * lisp/ruler-mode.el (ruler-mode-text-scaled-width): New function for computing scaled text width. (ruler-mode-text-scaled-window-hscroll) (ruler-mode-text-scaled-window-width): Compute text scaled `window-width' value. (ruler-mode-mouse-grab-any-column, ruler-mode-mouse-add-tab-stop) (ruler-mode-ruler): Change `window-hscroll' into `ruler-mode-text-scaled-window-hscroll', and change `window-width' into `ruler-mode-text-scaled-window-width'. 2017-05-27 Martin Rudalics Minor doc and doc-string fixes (Bug#27091) * src/window.c (Fset_window_scroll_bars): Fix doc-string. * doc/lispref/display.texi (Fringe Size/Pos, Scroll Bars) (Display Margins): Mention that `set-window-buffer' may override settings made by `set-window-fringes', `set-window-scroll-bars' and `set-window-margins'. * doc/lispref/windows.texi (Buffers and Windows): Fix doc of `set-window-buffer'. 2017-05-27 Eli Zaretskii Avoid args-out-of-range errors on fringe clicks after "C-h k" * src/keyboard.c (echo_truncate): Don't call Ftruncate if the echo message is already shorter than NCHARS. (Bug#27040) 2017-05-27 Eli Zaretskii Fix GUD "Stop" display when running pdb * lisp/progmodes/gud.el (gud-menu-map): Don't call gdb-show-stop-p when GUD mode is 'pdb'. (Bug#27024) 2017-05-27 Tak Kunihiro Support drag and drop of region by mouse (Bug#26725) * doc/emacs/frames.texi (Drag and Drop): Document support of drag and drop region by mouse. * lisp/mouse.el (mouse-drag-region): Call mouse-drag-and-drop-region when start-event is on region. (mouse-drag-and-drop-region): New function, moves the region by (mouse-drag-and-drop-region): New defcustom. * etc/NEWS: Mention mouse-drag-and-drop-region. 2017-05-27 Noam Postavsky * lisp/emacs-lisp/eieio.el (defclass): Fix quote in warning message. 2017-05-27 Alan Third Check if instancetype supported in ObjC * configure.ac: Add check for instancetype. * src/nsterm.h [!NATIVE_OBJC_INSTANCETYPE]: Define instancetype. 2017-05-26 Wilfred Hughes Mark keywordp as a safe, error-free function * lisp/emacs-lisp/byte-opt.el: Add keywordp to side-effect-and-error-free-fns. 2017-05-26 Paul Eggert * src/inotify.c: Add FIXME comments. 2017-05-26 Andreas Politz Fix Bug#26973 * src/inotify.c (INOTIFY_DEFAULT_MASK): Removing ACCESS, OPEN and CLOSE events on order do let other processes also reading from their descriptors. (Bug#26973). 2017-05-26 Michael Albinus Remove Emacs 23 compat code from Tramp * doc/misc/tramp.texi (Remote processes): Don't mention Emacs 24 explicitly. (Frequently Asked Questions): Remove Emacs 23 from compatibility list. * lisp/net/tramp.el: * lisp/net/tramp-adb.el: * lisp/net/tramp-cache.el: * lisp/net/tramp-gvfs.el: * lisp/net/tramp-sh.el: * lisp/net/tramp-smb.el: Replace compat function calls. * lisp/net/tramp-compat.el (remote-file-name-inhibit-cache) (tramp-compat-condition-case-unless-debug) (tramp-compat-copy-file, tramp-compat-copy-directory) (tramp-compat-delete-file, tramp-compat-delete-directory) (tramp-compat-process-live-p): Remove them. * lisp/net/trampver.el: Make version check fit for Emacs 24. 2017-05-26 Katsumi Yamaoka Work for application/x-tar-gz and image/svg+xml ;; Try inlining the attachment in the article <87wp94dzj6.fsf@gmail.com> ;; of bug#27078 in the Emacs bug list using Gnus. * lisp/gnus/mm-archive.el (mm-archive-decoders): Add a decoder for application/x-tar-gz. (mm-dissect-archive): Error out if a decoder is not found. * lisp/gnus/mm-decode.el (mm-get-image): Allow image/svg+xml. 2017-05-26 Tino Calancha test-calc-23889: Skip test on 32-bit platforms This test fails on some 32-bit platforms as mentioned in https://lists.gnu.org/r/emacs-devel/2017-05/msg00737.html * test/lisp/calc/calc-tests.el (test-calc-23889): Skip when the Lisp integer is not big enough. 2017-05-25 Alan Third Fix NS tooltips showing in the wrong place (bug#27053) * src/nsfns.m (compute_tip_xy): Get current mouse position instead of last recorded position. 2017-05-25 Thomas Fitzsimmons lisp/net/soap-client.el: Bump version to 3.1.2 * lisp/net/soap-client.el: Bump version to 3.1.2. 2017-05-25 Thomas Fitzsimmons Fix soap-inspect.el doc strings * lisp/net/soap-inspect.el (soap-inspect-xs-attribute): Fix doc string. (soap-inspect-xs-attribute-group): Likewise. 2017-05-25 Thomas Fitzsimmons Fix two soap-client.el byte compilation warnings * lisp/net/soap-client.el (url-http-response-status): Add defvar. (soap-fetch-xml-from-url): Remove special declaration of url-http-response-status. (soap-invoke-internal): Likewise. 2017-05-25 Thomas Fitzsimmons lisp/net/soap-client.el: Require cl-lib version 0.6.1 * lisp/net/soap-client.el: Require cl-lib version 0.6.1. 2017-05-25 Thomas Fitzsimmons Stefan Monnier lisp/net/soap-client.el: Shorten some long lines * lisp/net/soap-client.el (soap-encode-xs-element): Remove unnecessary progn. (soap-xs-add-union): Wrap long line. 2017-05-25 Alex Harsanyi Stefan Monnier Remove cl dependency in soap-client.el and soap-inspect.el * lisp/net/soap-inspect.el: Replace cl library with cl-lib, case with cl-case, destructuring-bind with cl-destructuring-bind and loop with cl-loop. * lisp/net/soap-client.el: Replace cl library with cl-lib, defstruct with cl-defstruct, assert with cl-assert, case with cl-case, ecase with cl-ecase, loop with cl-loop and destructuring-bind with cl-destructuring-bind. 2017-05-25 Michael Albinus Switch Tramp to cl-lib * lisp/net/tramp-compat.el (cl-lib): Require it rather than cl. * lisp/net/tramp-ftp.el: Don't require cl. * lisp/net/tramp-gvfs.el: Don't require cl. (tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-connection-mounted-p): Use `cl-*' macros. * lisp/net/tramp-sh.el: Don't require cl. (tramp-set-file-uid-gid): Use `shell-quote-argument'. (tramp-sh-gvfs-monitor-dir-process-filter) (tramp-sh-inotifywait-process-filter): Use `cl-*' macros. * lisp/net/tramp-smb.el: Don't require cl. (tramp-smb-read-file-entry): Use `cl-*' macros. * lisp/net/tramp.el (cl-lib): Require it rather than cl. (tramp-parse-file, tramp-parse-shostkeys-sknownhosts) (tramp-parse-passwd, tramp-parse-etc-group) (tramp-parse-putty): Use `cl-*' macros. 2017-05-25 Paul Eggert * CONTRIBUTE: Suggest autogen.sh's 'all' operand. 2017-05-25 Paul Eggert Port ATTRIBUTE_MAY_ALIAS to recent icc * src/conf_post.h (ATTRIBUTE_MAY_ALIAS) [__ICC]: Define to empty. Otherwise, icc (ICC) 17.0.4 20170411 says “warning #2621: attribute "__may_alias__" does not apply here” for constructs like ‘struct sockaddr *sa = (whatever); struct sockaddr_in __attribute__ ((__may_alias__)) *sin = (struct sockaddr_in *) sa;’. 2017-05-25 Paul Eggert Merge from gnulib This incorporates: 2017-05-25 port to recent icc * lib/intprops.h: Copy from gnulib. 2017-05-24 Michael Albinus Fix Tramp for python.el * lisp/net/tramp.el (tramp-get-connection-process): Check, that VEC is a `tramp-file-name' structure. 2017-05-24 Alan Third Raise version of macOS we define instancetype for (bug#27059) * src/nsterm.m: Increase supported version number. 2017-05-24 Alan Third Define new types on macOS 10.6 (bug#27041) * src/nsterm.h: Enable instancetype typedef for older macOS, and use correct NSUInteger instead of int. 2017-05-24 Glenn Morris Don't autoload new dns-mode command * lisp/textmodes/dns-mode.el (dns-mode-ipv6-to-nibbles): Remove autoload cookie. 2017-05-24 Stefan Monnier * src/fns.c (sxhash): Fix records hashing (bug#27057, bug#26639) (sxhash_vector): Make it work on pseudo vectors as well. (sxhash): Treat records like vectors. 2017-05-24 Michael Albinus Adapt tramp-tests.el according to new defstruct * test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults): Fix test according to new defstruct. (tramp-test29-environment-variables-and-port-numbers): Expect it now as passed. Cleanup at the end. 2017-05-24 Michael Albinus Introduce a defstruct `tramp-file-name' as central data structure. This solves also Bug#27009. * lisp/net/tramp.el (tramp-current-domain) (tramp-current-port): New defvars. (tramp-file-name): New defstruct. (tramp-file-name-user-domain, tramp-file-name-host-port) (tramp-file-name-equal-p): New defuns. (tramp-file-name-p, tramp-file-name-method) (tramp-file-name-user, tramp-file-name-host) (tramp-file-name-localname, tramp-file-name-hop) (tramp-file-name-real-user, tramp-file-name-domain) (tramp-file-name-real-host, tramp-file-name-port): Remove defuns. They are provided by the defstruct, or not needed anymore. (tramp-dissect-file-name, tramp-buffer-name) (tramp-make-tramp-file-name, tramp-get-buffer) (tramp-set-connection-local-variables) (tramp-debug-buffer-name, tramp-message) (tramp-error-with-buffer, with-parsed-tramp-file-name) (tramp-completion-dissect-file-name1) (tramp-handle-file-name-as-directory) (tramp-handle-file-name-directory) (tramp-handle-file-remote-p, tramp-handle-file-symlink-p) (tramp-handle-find-backup-file-name) (tramp-handle-insert-file-contents, tramp-process-actions) (tramp-check-cached-permissions, tramp-local-host-p) (tramp-get-remote-tmpdir, tramp-call-process) (tramp-call-process-region, tramp-read-passwd) (tramp-clear-passwd): * lisp/net/tramp-adb.el (tramp-adb-parse-device-names) (tramp-adb-handle-expand-file-name) (tramp-adb-handle-file-truename, tramp-adb-handle-copy-file) (tramp-adb-handle-process-file) (tramp-adb-maybe-open-connection): * lisp/net/tramp-cache.el (tramp-get-hash-table) (tramp-get-file-property, tramp-set-file-property) (tramp-flush-file-property, tramp-flush-directory-property) (tramp-get-connection-property) (tramp-set-connection-property, tramp-connection-property-p) (tramp-flush-connection-property, tramp-cache-print) (tramp-list-connections, tramp-dump-connection-properties) (tramp-parse-connection-properties): * lisp/net/tramp-cmds.el (tramp-cleanup-connection): * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name) (tramp-gvfs-url-file-name, tramp-gvfs-handler-askpassword) (tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-mount-spec, 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-do-copy-or-rename-file-out-of-band) (tramp-sh-handle-expand-file-name) (tramp-sh-handle-start-file-process) (tramp-sh-handle-process-file, tramp-compute-multi-hops) (tramp-maybe-open-connection) (tramp-make-copy-program-file-name, tramp-get-remote-path) (tramp-get-inline-coding): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-expand-file-name) (tramp-smb-handle-file-acl, tramp-smb-handle-process-file) (tramp-smb-handle-set-file-acl) (tramp-smb-maybe-open-connection): Adapt according to defstruct. 2017-05-24 Stephen Berman Fix and improve UI of scroll bar menu (bug#27047) In addition, since the Emacs manual writes "scroll bar", "tool bar" and "menu bar", use this convention in the Show/Hide menues and tooltips as well. * lisp/menu-bar.el (menu-bar-showhide-scroll-bar-menu): Make pressing a radio button in the menu actually show that it was pressed. Replace the two radio buttons to turn the horizontal scroll bar on and off with a single check-box toggle and add a separator between this and the vertical scroll bar radio buttons. Use conventional spelling. (menu-bar-horizontal-scroll-bar) (menu-bar-no-horizontal-scroll-bar): Remove, since now unused. (menu-bar-showhide-tool-bar-menu, menu-bar-showhide-menu) (menu-bar-mode): Use conventional spelling. 2017-05-24 Katsumi Yamaoka Remove string-as-unibyte * lisp/gnus/canlock.el (canlock-sha1): Remove useless variable. (canlock-make-cancel-key): No need to use string-as-unibyte. 2017-05-24 Tino Calancha Fix concatenation of "^" with diff-file-junk-re This regexp contains "\\|", thus a concatenation of "^" with it just matches the beginning of line for the first alternative in diff-file-junk-re. * lisp/vc/ediff-ptch.el (ediff-map-patch-buffer): Concat "^" with diff-file-junk-re wrapped in a shy group. 2017-05-24 Glenn Morris Suppress intermittent test failure on hydra * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test-37-obsolete-name-in-constructor): Skip on hydra. 2017-05-24 Peder O. Klingenberg New dns-mode command for IPv6 address conversion This converts IPv6 addresses to a format suitable for reverse lookup zone files. (Bug#26820) * lisp/textmodes/dns-mode.el (dns-mode-map, dns-mode-menu): Add dns-mode-ipv6-to-nibbles. (dns-mode-ipv6-to-nibbles, dns-mode-reverse-and-expand-ipv6): New functions. * test/lisp/dns-mode-tests.el: New file. 2017-05-24 Noam Postavsky Protect *Backtrace* from being killed (Bug#26650) * lisp/emacs-lisp/debug.el (debugger-mode): Call `top-level' in `kill-buffer-hook'. 2017-05-24 Noam Postavsky Give a name to lisp-mode's adaptive-fill-function (Bug#22730) * lisp/emacs-lisp/lisp-mode.el (lisp-adaptive-fill): New function. (lisp-mode-variables): Use it. 2017-05-23 Philipp Stephani vc-hg.el: Silence byte compiler warning * lisp/vc/vc-hg.el (compilation-arguments): Forward-declare. 2017-05-23 Paul Eggert Don't warn about missing brances on macOS On macOS, removing -Wmissing-braces is not enough; the warning has to be disabled explicitly. 2017-05-23 Wilfred Hughes Don't treat ' as a string delimiter in RPM spec files ' is commonly used as an apostrophe in the prose sections of spec files, which was erroneously highlighted as strings. See for example http://kmymoney2.sourceforge.net/phb/rpm-example.html * lisp/progmodes/sh-script.el (sh-mode-syntax-table): Treat ' as punctuation in RPM spec files. 2017-05-23 Stefan Monnier * lisp/emacs-lisp/cl-indent.el: Don't require CL. Use lexical-binding. (common-lisp-indent-function-1): Remove unused var `last-point`. (lisp-indent-error-function): Move defvar before first use. 2017-05-23 Stefan Monnier * lisp/international/rfc1843.el: Don't require CL. Use lexical-binding. * lisp/international/utf7.el: Don't require CL. Use lexical-binding. * lisp/net/shr.el: Use cl-lib instead of cl. 2017-05-23 Stefan Monnier * test/src/fns-tests.el, test/src/data-tests.el: Don't use `cl` * test/src/data-tests.el (binding-test-manual, binding-test-setq-default) (binding-test-makunbound, data-tests-varalias-watchers) (data-tests-local-variable-watchers): Silence compiler warnings. 2017-05-23 Stefan Monnier * lisp/vc/vc-hg.el (compilation-directory): Silence byte-compiler. 2017-05-23 Alan Third Fix GNUstep build * src/nsterm.h [NS_IMPL_GNUSTEP]: Add typedefs for Cocoa-only types. (NSWindowStyleMaskUtilityWindow): #define to NSUtilityWindowMask in GNUstep and old versions of macOS. * src/nsfns.m (ns-set-mouse-absolute-pixel-position): Function only works in cocoa, not GNUstep. 2017-05-23 Michael Albinus Add test for Bug#27009 in tramp-tests.el * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Check `tramp-file-name-real-host' for being a local host. * lisp/net/tramp.el (tramp-postfix-host-regexp): Fix docstring. * test/lisp/net/tramp-tests.el (tramp-test-temporary-file-directory): Declare default host for mock method. (tramp-test29-environment-variables-and-port-numbers): New test. 2017-05-23 Glenn Morris Don't advertise s_client in tls.el docs * lisp/net/tls.el (tls-end-of-info, tls-success, tls-untrusted): Don't mention s_client in docs. (cherry picked from commit 622c24a2b75a564b9861fc3ca7a7878741e8568d) 2017-05-23 Rob Browning Remove s_client usage from tls.el * lisp/net/tls.el (tls-program, tls-checktrust): Remove s_client. Ref http://bugs.debian.org/766397 https://lists.gnu.org/r/emacs-devel/2014-10/msg00803.html (cherry picked from commit 6e45de6bacc508db11b15b2c8ba86aad8c0570df) 2017-05-22 Stefan Monnier * lisp/mail/rfc2047.el (rfc2047-decode-encoded-words): Set `words` to nil. 2017-05-22 Sam Steingold Fix "g" in hg&git push&pull buffers lisp/vc/vc-git.el (vc-git--pushpull): Set locally `compilation-directory' and `compilation-arguments'. lisp/vc/vc-hg.el (vc-hg--pushpull): Likewise. 2017-05-22 Eli Zaretskii Fix current-line hscrolling in buffers with header-line * src/xdisp.c (display_line): When testing the glyph row's vertical position against the cursor position, account for header line, if any. (Bug#27014) 2017-05-22 Stefan Monnier * lisp/mail/rfc2047.el: Use cl-lib & lexical-binding, silence warning (rfc2047-decode-encoded-words): Use dolist. (rfc2047-decode-string): Avoid string-to-multibyte. (rfc2047-pad-base64): Use pcase. 2017-05-21 Dima Kogan Make ff-find-other-file symmetric for C++ (Bug#20192) `cc-other-file-alist' has a mapping of file extensions to switch between headers and sources, but the mappings weren't completely symmetric. In particular .cpp would map to .hh, but .hh would NOT map to .cpp. * lisp/find-file.el (cc-other-file-alist): Map ".hh" and ".h" to all C++ extensions to make them symmetric with the C++ extensions that map to them. This lets repeated invocations of `ff-find-other-file' toggle between all pairs of sources/headers. 2017-05-21 Philipp Stephani Fix definition of whitespace in JSON See https://lists.gnu.org/r/emacs-devel/2017-05/msg00115.html. * lisp/json.el (json-skip-whitespace): Fix definition. * test/lisp/json-tests.el (test-json-skip-whitespace): Adapt unit test. 2017-05-21 Philipp Stephani Improve module function terminology Module functions were previously called "function environments" when the functions created by module_make_functions were lambdas. Now we can adapt the terminology and rename "function environments" to "module functions" everywhere. This also removes the name clash between "function environments" and "module environments." * src/emacs-module.c (module_make_function): Adapt comment to reality; stop using "function environment" terminology. (funcall_module): Stop using "function environment" terminology. 2017-05-21 Philipp Stephani Avoid uninitialized read * src/nsterm.m (ns_read_socket): Don't read uninitialized variable 'nevents'. 2017-05-21 Philipp Stephani Fix call of registerServicesMenuSendTypes * src/nsterm.m (initFrameFromEmacs:): nil is not allowed for returnTypes; pass an empty array instead. 2017-05-21 Philipp Stephani Clean up code around 'ns-list-services' * src/nsfns.m (Fns_list_services): Remove unreachable code. In this branch NS_IMPL_COCOA cannot be defined. (interpret_services_menu): Define only if called to avoid compiler warnings about unused static functions. 2017-05-21 Philipp Stephani Remove unused automatic variables * src/nsterm.m (ns_read_socket): * src/macfont.m (macfont_open): Remove unused automatic variables. 2017-05-21 Philipp Stephani Nextstep: Replace deprecated enumerators * src/nsmenu.m (initWithContentRect:styleMask:backing:defer:): Replace deprecated enumerator. 2017-05-21 Philipp Stephani Nextstep: remove some deprecated method calls * src/nsterm.m (mouseDown:): * src/nsmenu.m (runMenuAt:forFrame:keymaps:): Remove call to deprecated method. The return value is always nil. * src/macfont.m (mac_font_shape_1): Replace call to deprecated method. 2017-05-21 Philipp Stephani Remove trailing semicolons in method definitions These semicolons are ignored and cause compiler warnings. * src/nsimage.m (setPixelAtX:Y:toRed:green:blue:alpha:): * src/nsterm.m (init, updateFrameSize:): (setFrame:): Remove trailing semicolon. 2017-05-21 Philipp Stephani Remove calls to deprecated setUsesScreenFonts * src/macfont.m (mac_screen_font_get_metrics): Don't call setUsesScreenFonts. (mac_font_shape_1): Remove screen_font_p parameter. (mac_screen_font_shape): Remove screen_font_p argument. 2017-05-21 Philipp Stephani Make a function static that isn't used outside this file * src/kqueue.c (kqueue_directory_listing): Make static. 2017-05-21 Philipp Stephani Use NSCharacterCollection instead of CTCharacterCollection This should not cause behavior changes, but fixes a compiler warning due to implicit conversions between the enums. * src/macfont.m (macfont_cache, macfont_lookup_cache) (macfont_get_glyph_for_cid, macfont_get_uvs_table) (macfont_variation_glyphs): Use NSCharacterCollection. 2017-05-21 Philipp Stephani Remove unused function print_regions 2017-05-21 Philipp Stephani Declare Nextstep unexec functions in lisp.h This removes compiler warnings about missing prototypes on macOS. 2017-05-21 Philipp Stephani Nextstep: Use instancetype explicit return type This removes compiler warnings on macOS and improves type safety. * src/nsterm.m (initFrameFromEmacs:): (menuDown:): (toolbarClicked:): (toggleToolbar:): (setMiniwindowImage:): (initFrame:window:): (condemn, reprieve, setPosition:portion:whole:): (repeatScroll:): * src/nsmenu.m (initWithTitle:): (initWithTitle:frame:): (initForView:withIdentifier:): (init, initWithContentRect:styleMask:backing:defer:): (initFromContents:isQuestion:): * src/nsimage.m (allocInitFromFile:): (initFromXBM:width:height:fg:bg:): (setXBMColor:): (initForXPMWithDepth:width:height:): Use instancetype as return type instead of implicit id. 2017-05-21 Tino Calancha * lisp/emacs-lisp/package.el (package-delete): Delete readme file as well. 2017-05-21 Alan Mackenzie Enhance mode-line percentage offset facility, with "%o" and "%q" "%o" will display the percentage "travel" of the window through the buffer. "%q" will display a combination of the percentage offsets of the top and bottom of the window. The new user option mode-line-percent-position will facilitate selecting a setting for this part of the mode line. * lisp/bindings.el (mode-line-percent-position): New customizable user option. (mode-line-position): Use mode-line-percent-position in place of "%p", etc. * src/xdisp.c (decode_mode_spec): Add handlers for "%o" and "%q". * doc/lispref/modes.texi (Mode Line Variables): Document mode-line-percent-position. (%-Constructs): Document %o and %q. * etc/NEWS: Add an entry for these new facilities. 2017-05-21 Paul Eggert Work around macOS bug in create_process, too * src/process.c (create_process) [DARWIN_OS]: Reset SIGCHLD after vfork here, too. 2017-05-21 Paul Eggert Work around macOS bug with vforked child * src/callproc.c (call_process) [DARWIN_OS]: Include workaround for apparent macOS bug. 2017-05-21 Paul Eggert Pacify --enable-gcc-warnings without modules * src/print.c (print_vectorlike): New function, taken from part of print_object. This one is indented properly, and pacifies --enable-gcc-warnings by using a default case instead of listing all the enum values, sometimes incompletely. (print_object): Use it. 2017-05-21 Paul Eggert Remove DARWIN_OS_CASE_SENSITIVE_FIXME code It does not appear to be needed (Bug#24441). * etc/PROBLEMS: Remove DARWIN_OS_CASE_SENSITIVE_FIXME stuff. * src/fileio.c (file_name_case_insensitive_p): Remove DARWIN_OS_CASE_SENSITIVE_FIXME code. 2017-05-21 Paul Eggert Narrow DARWIN_OS_CASE_SENSITIVE_FIXME to 1 choice * etc/PROBLEMS: Document this (Bug#24441). * src/fileio.c (file_name_case_insensitive_p): Prefer pathconf with _PC_CASE_SENSITIVE, if it works, to DARWIN_OS_CASE_SENSITIVE_FIXME code. Support just one method for DARWIN_OS_CASE_SENSITIVE_FIXME, which matches the Apple documentation more precisely. 2017-05-21 Tom Tromey Fix mhtml-mode fontification bug Bug#26922 * lisp/textmodes/mhtml-mode.el (mhtml-syntax-propertize): Call sgml-syntax-propertize-inside if not in a submode. * test/manual/indent/html-multi-4.html: New file. 2017-05-21 Ryan (tiny change) Fix ido-enable-dot-prefix for empty choice (Bug#26997) * lisp/ido.el (ido-set-matches-1): Only check first character of item if it's non-empty. 2017-05-21 Ari Roponen * lisp/svg.el (svg-line): Fix x/y typo. (Bug#26953) 2017-05-21 Glenn Morris Prevent loading vc-bzr writing to ~/.bzr.log * lisp/vc/vc-bzr.el (vc-bzr-status-switches): Disable bzr logging. 2017-05-21 Glenn Morris Prevent running vc-tests writing to ~/.bzr.log * test/lisp/vc/vc-tests.el (vc-test--create-repo) (vc-test--register, vc-test--working-revision) (vc-test--checkout-model): Set temporary BZR_HOME, to disable logging. 2017-05-21 Noam Postavsky Don't end non-hook variable with "-hook" (Bug#26623) * lisp/follow.el (follow-inside-post-command-hook-call): Renamed from follow-inside-post-command-hook, update uses. 2017-05-21 Charles A. Roelli Fix macOS mouse movement * lisp/frame.el (ns-set-mouse-absolute-pixel-position): New function (Lisp). (set-mouse-absolute-pixel-position): Change it to call `ns-set-mouse-absolute-pixel-position' on macOS. * src/nsfns.m (Fns_set_mouse_absolute_pixel_position): New function. * src/nsterm.h (NS_PARENT_WINDOW_TOP_POS): Use the primary screen's height as a base for calculating global coordinates. * src/nsterm.m (frame_set_mouse_pixel_position): Fix it in macOS. * test/lisp/mouse-tests.el (bug26816-mouse-frame-movement): Test movement of mouse relative to frame. 2017-05-21 Alan Third Show tooltip on correct screen (bug#26905) * src/nsfns.m (compute_tip_xy): Find the correct screen for the tooltip and constrain it to that screen. 2017-05-21 Andreas Politz Don't save unrelated buffers before recompiling directory (Bug#25964) * lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Only save buffers visiting lisp files under the directory being compiled. 2017-05-20 Paul Eggert Minor fixes for arity ranges in emacs modules * src/emacs-module.c (module_make_function): Check that arities fit into fixnums, for func-arity’s benefit. (funcall_module): Avoid unnecessary conversion to EMACS_INT. (module_function_arity): Allow arities greater than SHRT_MAX. 2017-05-20 Philipp Stephani Reimplement module functions Instead of a lambda, create a new type containing all data required to call the function, and support it in the evaluator. Because this type now also needs to store the function documentation, it is too big for Lisp_Misc; use a pseudovector instead. That also has the nice benefit that we don't have to add special support to the garbage collector. Since the new type is user-visible, give it a predicate. Now we can easily support 'help-function-args' and 'func-arity'; add unit tests for these. * src/lisp.h (allocate_module_function, MODULE_FUNCTIONP) (XMODULE_FUNCTION): New pseudovector type 'module function'. * src/eval.c (FUNCTIONP): Also treat module functions as functions. (funcall_lambda, Ffuncall, eval_sub): Add support for calling module functions. (Ffunc_arity): Add support for detecting the arity of module functions. * src/emacs-module.c (module_make_function): Adapt to new structure. Return module function object directly instead of wrapping it in a lambda; remove FIXME. (funcall_module): New function to call module functions. Replaces `internal--module-call' and is called directly from eval.c. (syms_of_module): Remove internal helper function, which is no longer needed. (module_function_arity): New helper function. * src/data.c (Ftype_of): Adapt to new implementation. (Fmodule_function_p, syms_of_data): New user-visible function. Now that module functions are first-class objects, they deserve a predicate. Define it even if not compiled with --enable-modules so that Lisp code doesn't have to check for the function's existence. * src/doc.c (Fdocumentation): Support module functions. * src/print.c (print_object): Adapt to new implementation. * src/alloc.c (mark_object): Specialized garbage collector support is no longer needed. * lisp/help.el (help-function-arglist): Support module functions. While there, simplify the arity calculation by using `func-arity', which does the right thing for all kinds of functions. * test/data/emacs-module/mod-test.c: Amend docstring so we can test the argument list. * test/src/emacs-module-tests.el (mod-test-sum-docstring): Adapt to new docstring. (mod-test-non-local-exit-signal-test): Because `internal--module-call' is gone, the backtrace has changed and no longer leaks the implementation. (module--func-arity): New test for `func-arity'. (module--help-function-arglist): New test for `help-function-arglist'. 2017-05-20 Eli Zaretskii Avoid crashes in GC due to unescaped characters warning * src/lread.c (load_warn_unescaped_character_literals): Don't cons Lisp objects from stack-based variables. (Bug#26961) 2017-05-20 Charles A. Roelli New commands: find-library-other-window, find-library-other-frame * lisp/emacs-lisp/find-func.el (find-library-other-window) (find-library-other-frame): New commands to complement the existing 'find-library' command. (Bug#26712) (read-library-name): New function to read a library name. * etc/NEWS: Mention 'find-library-other-window' and 'find-library-other-frame'. 2017-05-20 Eli Zaretskii Fix automatic hscrolling of only the current line * src/xdisp.c (display_line): When hscrolling only the current line, increment iterator's first_visible_x and last_visible_x values to account for the hscroll. This propagates the hscroll effect on the iterator geometry all the way down to the subroutines called by display_line, and avoids scrolling bugs under large hscroll values. (Bug#26994) 2017-05-20 Paul Eggert Add handlerlist assertion to module code * src/emacs-module.c (module_reset_handlerlist): Check handlerlist. Suggested by Philipp Stephani in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00521.html 2017-05-20 Paul Eggert Port --enable-gcc-warnings to clang 3.9.1 * configure.ac (WERROR_CFLAGS): Omit -Wmissing-braces for Clang, to shut off a false alarm. Problem reportd by Philipp Stephani in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00521.html 2017-05-20 Noam Postavsky Limit integers printed as characters (Bug#16828) * lisp/simple.el (eval-expression-print-maximum-character): New variable. (eval-expression-print-format): Only display value as character if it's less than or equal to `eval-expression-print-maximum-character'. (eval-expression-get-print-arguments): Check eval-expression-print-maximum-character, allow negative arg to override it. (eval-expression): * lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): (elisp--eval-last-sexp-print-value): Handle new variable. * doc/emacs/building.texi (Lisp Eval): Document new variable and behavior. * etc/NEWS: Announce it. * test/lisp/progmodes/elisp-mode-tests.el (eval-last-sexp-print-format-small-int) (eval-last-sexp-print-format-small-int-echo) (eval-last-sexp-print-format-large-int) (eval-last-sexp-print-format-large-int-echo): * test/lisp/simple-tests.el (eval-expression-print-format-small-int) (eval-expression-print-format-small-int-echo) (eval-expression-print-format-large-int) (eval-expression-print-format-large-int-echo): New tests. 2017-05-20 Noam Postavsky Refactor lisp eval result printing * lisp/simple.el (eval-expression-print-format): Don't check `standard-output' or `current-prefix-arg'. (eval-expression-get-print-arguments): New function, centralizes decision about how to print results of `eval-expression' and `eval-last-sexp'. (eval-expression): * lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp-print-value): Use it. 2017-05-19 Paul Eggert Check that signed right shift is arithmetic * src/data.c (ash_lsh_impl): Verify that signed right shift is arithmetic; if we run across a compiler that uses a logical shift we’ll need to complicate the code before removing this compile-time check. Help the compiler do common subexpression elimination better. 2017-05-19 Paul Eggert Minor .gitignore fixes * .gitignore: modules/mod-test/Makefile was renamed to test/data/emacs-module/Makefile. Omit [0-9]*.core, subsumed by *.core. test/indent/*.new was renamed to test/manual/indent/*.new. Add *.swp, for Vim. 2017-05-19 Stefan Monnier * lisp/emacs-lisp/package.el: Quote `package-desc' in docstrings 2017-05-19 Eli Zaretskii Describe problems with Microsoft Intellipoint * etc/PROBLEMS: Describe problems with Microsoft Intellipoint and mouse-2 events. For the details, see https://lists.gnu.org/r/help-emacs-windows/2017-05/msg00009.html. 2017-05-19 Nick Helm (tiny change) Fix turning off whitespace-mode * lisp/whitespace.el (whitespace-display-char-on): Correct the way the original buffer-display-table is saved and restored when global-whitespace-mode is active. (Bug#26892) * test/lisp/whitespace-tests.el (whitespace-tests-whitespace-mode-on): New function. (whitespace-tests-display-tables): New test. 2017-05-19 Michael Albinus Minor tweaks in tramp-tests.el * test/lisp/net/tramp-tests.el (tramp--test-afp-or-smb-p): New defun. (tramp-test05-expand-file-name-relative): Use it. (tramp-test38-unload): Run only in batch mode. 2017-05-19 Michael Albinus Fix a problem with OpenSSH 7 in Tramp * lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options): Set also "ConnectTimeout" during test. Otherwise, OpenSSH 7 will hang. 2017-05-19 Jean-Christophe Helary Improve documentation of 'split-string' * doc/lispref/strings.texi (Creating Strings): Rearrange text to make it more readable. (Bug#26925) 2017-05-19 Ruslan Bekenev Fix typos in doc strings * lisp/mail/rfc2231.el (rfc2231-encode-string): * lisp/mail/rfc2047.el (rfc2047-encode-parameter): * lisp/mail/rfc2045.el (rfc2045-encode-string): Fix typos in doc strings. (Bug#26103) 2017-05-19 Philipp Stephani Fix module tests on some systems If dladdr(3) isn't available or didn't work, the printed representation of a module function will not include the file name, but only the address. Make the tests pass in that case. * test/src/emacs-module-tests.el (module-function-object): Fix match for module function printed representation 2017-05-19 Jean-Christophe Helary Add an optional arguments to string-trim * lisp/emacs-lisp/subr-x.el (string-trim-left, string-trim-right) (string-trim): Add optional args that serve as defaults per the original behavior. (Bug#26908) 2017-05-19 Stephen Berman Fix typo in last change to auto-hscroll-mode * lisp/cus-start.el (standard): Fix typo in value of auto-hscroll-mode. 2017-05-19 Eli Zaretskii Support remote editing in emacsclient via Tramp * lib-src/emacsclient.c (main, decode_options) (print_help_and_exit, longopts): New option '--tramp' / '-T' which specifies how emacs should use tramp to find remote files. * doc/emacs/misc.texi (TCP Emacs server): New subsection describing the various knobs to tune server.el for TCP opereation. (emacsclient Options): Reference "TCP Emacs server" from description of --server-file. Document the new '--tramp' / '-T' options. * doc/emacs/emacs.texi (Top): Update the top-level menu. * etc/NEWS: Mention the new option. 2017-05-19 Eli Zaretskii * lisp/replace.el (query-replace-regexp-eval): Doc fix. 2017-05-19 Paul Eggert Attempt to work around macOS vfork bug Problem reported by YAMAMOTO Mitsuharu in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00342.html This is related to the fix for Bug#26397. * src/callproc.c (call_process_cleanup, call_process) [!MSDOS]: Report internal error if wait_for_termination fails. * src/sysdep.c (get_child_status): Return -1 if waitpid is buggy, instead of aborting. (wait_for_termination): Return bool success value. All callers changed. 2017-05-19 Eli Zaretskii Adjust defcustom form for 'auto-hscroll-mode' * lisp/cus-start.el (standard) : Adjust the defcustom form. Suggested by Stephen Berman . 2017-05-19 Paul Eggert Fix DARWIN_OS_CASE_SENSITIVE_FIXME==2 false alarm * src/fileio.c (file_name_case_insensitive_p): Don’t compile the (DARWIN_OS_CASE_SENSITIVE_FIXME == 2) code unless DARWIN_OS_CASE_SENSITIVE_FIXME is 2. Problem reported by Philipp Stephani in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00495.html 2017-05-19 Paul Eggert Port --enable-gcc-warnings to clang 3.9.1 * configure.ac (WERROR_CFLAGS): Omit -Wdouble-promotion if clang. Problem reported by Philipp Stephani in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00495.html 2017-05-19 Paul Eggert Clean up compiler warning in emacs-module.c * src/emacs-module.c (MODULE_SETJMP_1): Use the local var instead of leaving it unused, to pacify picky compilers. (module_reset_handlerlist): Now takes a dummy pointer to a struct handler *, instead of a dummy pointer to an int. All uses changed. 2017-05-19 Philipp Stephani Clean up some compiler warnings * src/sysdep.c (system_process_attributes) [DARWIN_OS]: Remove unused locals. 2017-05-18 Eli Zaretskii Support hscrolling only the current line * src/xdisp.c (hscrolling_current_line_p): New function. (init_iterator): If auto-hscrolling just the current line, don't increment the iterator's first_visible_x and last_visible_x variables. (hscroll_window_tree): Recompute window's hscroll when moving vertically to another screen line. (redisplay_window): If we are hscrolling only the current line, disable the optimizations that rely on the current matrix being up-to-date. (display_line): Accept an additional argument CURSOR_VPOS, the vertical position of the current screen line which might need hscrolling; all callers changed. Compute first_visible_x and last_visible_x specially when auto-hscrolling current line, by repeating the calculation that is done in init_iterator in other modes. (syms_of_xdisp) : No longer boolean, it can now accept a 3rd value 'current-line, to turn on the mode where only the current line is hscrolled. * etc/NEWS: Mention the new auto-hscroll-mode value. 2017-05-18 Eli Zaretskii Fix last change in line-move-finish * lisp/simple.el (line-move-finish): Fix last change. This corrects a regression in C-n and C-p when lines are truncated, introduced by the change in 2017-05-10. 2017-05-18 Simen Heggestøyl Expand docstring for CSS mode * lisp/textmodes/css-mode.el (css-completion-at-point, css-mode): Expand docstrings. 2017-05-18 Tino Calancha Use the expression angle units while simplifying it Don't use the angle mode, use the angle units included in the expression instead (Bug#23889). * lisp/calc/calc-alg.el (calc-input-angle-units): New defun. (math-simplify): Use it. * lisp/calc/calc-forms.el (math-to-hms, math-from-hms): Don't use calc-angle-mode if math-simplifying-units is non-nil. * lisp/calc/calc-math.el (calcFunc-nroot, math-from-radians) (math-to-radians-2, math-from-radians-2): Don't convert angle to radians if math-simplifying-units is non-nil. * test/lisp/calc/calc-tests.el (test-calc-23889): Add test. 2017-05-18 Tino Calancha Revert "Ignore angle mode while simplifying units" This reverts commit 713e922243fb60d850f7b0ff83f3e2a3682f1832. This commit causes Bug#25652. 2017-05-17 Paul Eggert Avoid undefined behavior in struct sockaddr Problem noted by Philipp Stephani in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00391.html * src/conf_post.h (ATTRIBUTE_MAY_ALIAS, DECLARE_POINTER_ALIAS): New macros. * src/process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr) (connect_network_socket, network_interface_info) (server_accept_connection): Use it when aliasing non-char objects. 2017-05-17 Stefan Monnier * lisp/vc/smerge-mode.el (smerge-refine-regions): Work in multi-bufs Rename from smerge-refine-subst. Allow the `beg's to be markers. Add autoload cookie. (smerge--refine-forward): Rename from smerge-refine-forward. (smerge--refine-chopup-region): Rename from smerge-refine-chopup-region. Assume that its `beg` arg is a marker. (smerge--refine-highlight-change): Rename from smerge-refine-highlight-change. Remove `buf` arg. (smerge-refine-subst): Redefine as an obsolete alias. 2017-05-17 Paul Eggert Work around AddressSanitizer bug with vfork Problem reported by Jim Meyering in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00246.html * src/conf_post.h (vfork) [ADDRESS_SANITIZER]: Define to fork. Unfortunately with the AddressSanitizer in Fedora 25 x86-64, the vforked child messes up the parent’s shadow memory. This is too bad, as we’d rather have AddressSanitizer catch memory-access bugs related to vfork. 2017-05-17 Paul Eggert Catch IPv4/IPv6 issues at compile time * src/process.c (connect_network_socket): Use verify, not eassert, so that any problems are caught at compile-time. Avoid dodgy cast by using a local var of the correct type. 2017-05-17 Paul Eggert Pacify --enable-gcc-warnings --with-x-toolkit=no * src/composite.c (autocmp_chars) [!HAVE_WINDOW_SYSTEM]: Avoid unused local. 2017-05-17 Glenn Morris * admin/update_autogen (commit): Pull before push. 2017-05-17 Glenn Morris autoload-rubric no longer provides a feature by default * lisp/emacs-lisp/autoload.el (autoload-rubric): Stop providing a feature unless explicitly requested. (autoload-find-generated-file): Update autoload-rubric call. 2017-05-17 Eli Zaretskii Remove redundant code in connect_network_socket * src/process.c (connect_network_socket) [HAVE_GETSOCKNAME]: Remove redundant type-casting and variables. Don't call 'getsockname' to find the port for AF_LOCAL sockets. [AF_INET6]: Add an assertion to verify that the ports in the IPv4 and IPv6 structures are at the same offset and have the same size. 2017-05-16 Paul Eggert Fix minor timezone memory leak * src/editfns.c (wall_clock_tz): Remove; unused. 2017-05-16 Paul Eggert Do not discard AddressSanitizer stderr * src/emacs.c (close_output_streams) [ADDRESS_SANITIZER]: Do not close stderr. 2017-05-16 Paul Eggert Simplify procname code to avoid GCC bug * src/process.c (server_accept_connection): Simplify and avoid multiple calls and struct literals in the last case of a switch. The old code ran afoul of GCC bug 80659, which caused an internal compiler error. Problem reported by Jim Meyering in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00182.html https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80659 2017-05-16 Paul Eggert Pacify GCC 7 with --enable-gcc-warnings * src/regex.c (regex_compile): Swap labels, so that the FALLTHROUGH immediately precedes the case label. 2017-05-16 Paul Eggert Merge with gnulib, pacifying GCC 7 This incorporates: 2017-05-16 manywarnings: update for GCC 7 2017-05-15 sys_select: Avoid "was expanded before it was required" * configure.ac (nw): Suppress GCC 7’s new -Wduplicated-branches and -Wformat-overflow=2 options, due to too many false alarms. * doc/misc/texinfo.tex, lib/strftime.c, m4/manywarnings.m4: Copy from gnulib. * m4/gnulib-comp.m4: Regenerate. * src/coding.c (decode_coding_iso_2022): Fix bug uncovered by -Wimplicit-fallthrough. * src/conf_post.h (FALLTHROUGH): New macro. Use it to mark all switch cases that fall through. * src/editfns.c (styled_format): Use !, not ~, on bool. * src/gtkutil.c (xg_check_special_colors): When using sprintf, don’t trust Gtk to output colors in [0, 1] range. (xg_update_scrollbar_pos): Avoid use of possibly-uninitialized bool; this bug was actually caught by Clang. * src/search.c (boyer_moore): Tell GCC that CHAR_BASE, if nonzero, must be a non-ASCII character. * src/xterm.c (x_draw_glyphless_glyph_string_foreground): Tell GCC that glyph->u.glyphless.ch must be a character. 2017-05-16 Michael Albinus Make autoloading Tramp more robust * lisp/net/tramp.el (tramp-file-name-for-operation): Use `default-directory' where appropriate. (tramp-file-name-handler): Do not autoload. (tramp-autoload-file-name-handler): Reintroduce function. (tramp-register-autoload-file-name-handlers): Use it. 2017-05-16 Michael Albinus Extend tramp-tests.el * test/lisp/net/tramp-tests.el (tramp-change-syntax): Remove declaration, not needed anymore. (tramp-test05-expand-file-name-relative): New test. (tramp-test10-write-region): Extend test. 2017-05-16 Michael Albinus * lisp/net/tramp.el: Avoid recursive load of Tramp. (Bug#26943) 2017-05-16 Noam Postavsky Make `indent-line-to' respect field boundaries (Bug#26891) * lisp/indent.el (indent-line-to): Use `back-to-indentation' instead of `backward-to-indentation'. 2017-05-16 Noam Postavsky Make sure indent-sexp stops at end of sexp (Bug#26878) * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Check endpos before indenting. * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp-stop): New test. 2017-05-16 Glenn Morris Stop some epg tests failing on rhel7 with gpg 2.0.22 (bug#23619) * test/lisp/epg-tests.el (with-epg-tests): Also set GNUPGHOME in the environment of child processes. This avoids problems if gpg does not pass --homedir to spawned agent. 2017-05-16 Glenn Morris Add oldxmenu to system-configuration-features * configure.ac (HAVE_OLDXMENU): New. (emacs_config_features): Add oldxmenu. 2017-05-15 Ted Zlatanov * .gitlab-ci.yml: Adjust disclaimer as per RMS. 2017-05-15 Eli Zaretskii Remove unneeded stuff from nt/inc/sys/time.h * nt/inc/sys/time.h (_TIMEVAL_DEFINED, struct timevat, timerisset) (timercmp, timerclear): Don't define. Instead, include the system header sys/time.h, and add only the interval timers stuff. This avoids compiler warnings about 'gettimeofday's prototype, and also avoids redefinition of macros from system headers. 2017-05-15 Paul Eggert Fix address violation found by AddressSanitizer * src/process.c (connect_network_socket): Use struct sockaddr_storage, not struct sockaddr_in, to store info about a socket address. Problem reported by Philipp Stephani in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00314.html This fix is based on a patch by Philipp in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00357.html 2017-05-14 Gemini Lasswell Make edebug-step-in work on generic methods (Bug#22294) * lisp/emacs-lisp/edebug.el (edebug-match-cl-generic-method-args): New function to implement the edebug-form-spec property of the symbol cl-generic-method-args. (edebug-instrument-function): If the function is a generic function, find and instrument all of its methods. Return a list instead of a single symbol. (edebug-instrument-callee): Now returns a list. Update docstring. (edebug-step-in): Handle the list returned by edebug-instrument-callee. * lisp/emacs-lisp/cl-generic.el (cl-defmethod): Use name and cl-generic-method-args in its Edebug spec. * lisp/emacs-lisp/eieio-compat.el (defmethod): Use name and cl-generic-method-args in its Edebug spec. * lisp/subr.el (method-files): New function. * test/lisp/subr-tests.el (subr-tests--method-files--finds-methods) (subr-tests--method-files--nonexistent-methods): New tests. 2017-05-14 Paul Eggert Merge from gnulib This incorporates: 2017-05-14 same-inode: Adapt for windows-stat-inodes 2017-05-14 windows-stat-inodes: New module 2017-05-14 stat-time: Adapt for windows-stat-timespec * lib/gnulib.mk.in: Regenerate. * lib/stat-time.h, lib/sys_types.in.h, m4/sys_types_h.m4: Copy from gnulib. 2017-05-14 Eli Zaretskii Remove gettimeofday from w32 sources * lib-src/ntlib.c (gettimeofday): * nt/inc/sys/time.h (gettimeofday, struct timezone): Remove unused function 'gettimeofday' and all of its supporting code. 2017-05-14 Eli Zaretskii Fix the MS-Windows build * nt/inc/sys/time.h (gettimeofday): * src/w32.c (gettimeofday): Adjust signature to match Gnulib. 2017-05-14 Eli Zaretskii More accurate documentation of the ':box' face attribute * doc/lispref/display.texi (Face Attributes): Fix the description of negative width of the ':box' attribute. (Bug#26920) 2017-05-14 Paul Eggert Merge from gnulib This incorporates: 2017-05-13 largefile: Simplify 2017-05-13 largefile: Improve and document 2017-05-13 truncate: New module 2017-05-13 windows-stat-timespec: New module 2017-05-13 windows-stat-override: New module 2017-05-11 getopt-posix: port to mingw 2017-05-11 gettimeofday: Increase precision on mingw 2017-05-10 time: Fix missing initialization of HAVE_TIMEZONE_T 2017-05-10 Implement a way to opt out from MSVC support 2017-05-09 tzset: Expand comment about TZ problem on native Windows * build-aux/config.guess, lib/dup2.c, lib/fcntl.c, lib/fsync.c: * lib/getdtablesize.c, lib/getopt.c, lib/gettimeofday.c: * lib/mktime.c, lib/stat-time.h, lib/sys_stat.in.h, lib/unistd.in.h: * lib/utimens.c, m4/gettimeofday.m4, m4/largefile.m4: * m4/sys_stat_h.m4, m4/sys_time_h.m4, m4/time_h.m4, m4/time_rz.m4: * m4/unistd_h.m4: Copy from gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. 2017-05-14 Marcin Borkowski Merge branch 'fix/bug-21072' 2017-05-14 Ted Zlatanov * .gitlab-ci.yml: Add setup for GitLab CI builds. 2017-05-13 Tak Kunihiro New minor mode 'pixel-scroll-mode' * lisp/pixel-scroll.el: New file. * etc/NEWS: Mention pixel-scroll-mode. 2017-05-13 Philipp Make `old-style-backquotes' variable internal * src/lread.c (load_warn_old_style_backquotes, Fload, read1) (syms_of_lread): Rename `old-style-backquotes' to `lread--old-style-backquotes', and clarify that it's for internal use only. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Rename variable. * test/src/lread-tests.el (lread-tests--old-style-backquotes): Add unit test. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--old-style-backquotes): Add unit test. 2017-05-13 Philipp Stephani Improve unescaped character literal warnings * src/lread.c (load_warn_unescaped_character_literals) (syms_of_lread): lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Improve formatting of unescaped character literal warnings. * 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. 2017-05-12 Alan Mackenzie Fontify C++ for loop variable as variable, even when followed by parentheses In the following: "for (auto *Friend : Class->friends()) {", "Friend" was getting fontified as a function, due to insufficient checking of the tokens between it and "()". * lisp/progmodes/cc-langs.el (c-:-op-cont-tokens, c-:-op-cont-regexp): New lang-consts/vars. * lisp/progmodes/cc-engine.el (c-forward-declarator): After finding a putative declarator's identifier, check for a ":" token inside a for's parentheses, and abort the search for "(" if this is found. 2017-05-12 Michael Albinus Make Tramp backward compatible * lisp/net/tramp-cmds.el (tramp-change-syntax): Set tramp-autoload cookie. * lisp/net/tramp-compat.el: Run `tramp-change-syntax' at startup, if necessary. * lisp/net/tramp.el (tramp-syntax): Use `tramp-compat-user-error'. (tramp-register-autoload-file-name-handlers): Do not mark `operations' for `tramp-file-name-handler'. (tramp-register-file-name-handlers): Remove also `tramp-autoload-file-name-handler' for backward compatibility. (tramp-register-foreign-file-name-handler): Use `delete-dups'. * test/lisp/net/tramp-tests.el (tramp-change-syntax): Declare. 2017-05-12 Noam Postavsky Modify `beginning-of-defun-comments' * lisp/emacs-lisp/lisp.el (beginning-of-defun-comments): Try not to stop in the middle of a multiline comment. 2017-05-12 Noam Postavsky Fix elisp-tests-with-temp-buffer compilation * test/lisp/emacs-lisp/lisp-tests.el (elisp-tests-with-temp-buffer): Don't refer to the =!NAME= as "markers" since they produce variables with just plain positions, not marker objects. Explicitly specify that CONTENTS is evaluated at compile time. Don't re-evaluate CONTENTS at runtime. Fix debug specification. Suppress warnings due to BODY not using =!NAME= variables. (elisp-test-point-position-regex): Rename from `elisp-test-point-marker-regex'. (mark-defun-test-buffer): Wrap in `eval-and-compile'. 2017-05-12 Noam Postavsky * lisp/emacs-lisp/lisp.el (mark-defun): Simplify moving the point. 2017-05-12 Marcin Borkowski Fix Bug#21072 and rework `mark-defun' * test/lisp/progmodes/elisp-mode-tests.el (mark-defun-test-buffer): New variable (mark-defun-no-arg-region-inactive) (mark-defun-no-arg-region-active) (mark-defun-arg-region-active) (mark-defun-pos-arg-region-inactive) (mark-defun-neg-arg-region-inactive, mark-defun-bob): Add tests for the new `mark-defun'. * lisp/emacs-lisp/lisp.el (beginning-of-defun--in-emptyish-line-p): New function. (beginning-of-defun-comments): New function. (mark-defun): Fix bug#21072, also rewrite large parts of `mark-defun' to accept a numerical prefix argument. 2017-05-12 Alfred M. Szmidt * lisp/mail/rmail.el (rmail-ignored-headers): Add 3 headers to ignore. 2017-05-12 Eli Zaretskii Improve doc strings in net-utils.el * lisp/net/net-utils.el (ifconfig, iwconfig, netstat, arp) (route, traceroute, nslookup, ftp, smbclient) (smbclient-list-shares, finger, whois) (network-connection-to-service, network-service-connection) (network-connection-reconnect): Improve doc strings. 2017-05-12 Andrew Robbins Extend DNS lookup commands to allow specifying the name server * lisp/net/net-utils.el (ffap-string-at-point): Removed due to 'net-utils-machine-at-point' obviating this autoloaded function (Bug#25426). (dig-program-options): New customization variable. (nslookup-host, dns-lookup-host, run-dig): Can now specify optional name server argument interactively (by prefix arg) and non-interactively. * etc/NEWS: Mention the extension of DNS lookup commands. 2017-05-12 Glenn Morris Don't hard-code loaddefs files in lisp/Makefile * lisp/Makefile.in (loaddefs): New variable. (AUTOGENEL): Use $loaddefs, and include directory. (bootstrap-clean): Update for AUTOGENEL change. 2017-05-11 Katsumi Yamaoka Kill modified buffers silently when quitting (bug#26862) * lisp/gnus/gnus-start.el (gnus-clear-system): Run do-auto-save to make sure that latest drafts are saved, and kill modified buffers silently. 2017-05-10 Perry E. Metzger Implement 1-based column numbering in mode line * src/xdisp.c (decode_mode_spec): Implement the %C construct. * lisp/bindings.el (column-number-indicator-zero-based): New defcustom. (mode-line-position): Use %C when column-number-indicator-zero-based is nil. * src/xdisp.c (syms_of_xdisp) : * src/buffer.c (syms_of_buffer) : * doc/lispref/modes.texi (%-Constructs): * doc/lispref/frames.texi (Frame Titles): Document the %C construct. * doc/emacs/display.texi (Optional Mode Line): Document 'column-number-indicator-zero-based'. * etc/NEWS: Mention 'column-number-indicator-zero-based' and the %C construct. 2017-05-10 Eli Zaretskii Ensure cursor's foreground color is in sync with 'default' face * src/w32term.c (x_set_cursor_gc): Don't reuse cursor GC if its foreground color is different from the background of the glyph string's face. (Bug#26851) 2017-05-10 Eli Zaretskii Fix vertical cursor motion when columns are of unequal size * lisp/simple.el (line-move-finish): In line-move-visual mode, use vertical-motion to move to the goal column, as the goal column should in that case be interpreted in units of frame's canonical character width. (Bug#26852) 2017-05-10 Glenn Morris Fix finding test .el files * test/Makefile.in (ELFILES): Exclude the data/ directory. * test/src/lread-tests.el (lread-test-bug26837): Revert previous. 2017-05-10 Tino Calancha Tweak a recent test This test fails in my local machine because the data files are compiled, and the test doesn't expect that. * test/src/lread-tests.el (lread-test-bug26837): Match a suffix ending with '.elc' when the data files are compiled. 2017-05-10 Glenn Morris Put license information in each generated uni-*.el * admin/unidata/unidata-gen.el (unidata-gen-file): Get Copyright line from copyright.html. Put information in file header, not separate README. (unidata-gen-charprop): Mention the source location. * lisp/international/README: Remove file. 2017-05-10 Noam Postavsky Fix lisp-indent-region and indent-sexp (Bug#26619) The new lisp-indent-region introduced in 2017-04-22 "Add new `lisp-indent-region' that doesn't reparse the code." is broken because it doesn't save the calculated indent amounts for already seen sexp depths. Fix this by unifying the indent-sexp and lisp-indent-region code. Furthermore, only preserve position 2 of the running parse when the depth doesn't change. * lisp/emacs-lisp/lisp-mode.el (lisp-ppss): Use an OLDSTATE that corresponds with the start point when calling parse-partial-sexp. (lisp-indent-state): New struct. (lisp-indent-calc-next): New function, extracted from indent-sexp. (indent-sexp, lisp-indent-region): Use it. (lisp-indent-line): Take indentation, instead of parse state. * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-mode-tests--correctly-indented-sexp): New constant. (lisp-indent-region, lisp-indent-region-defun-with-docstring): (lisp-indent-region-open-paren, lisp-indent-region-in-sexp): New tests. 2017-05-10 Dmitry Gutov Simplify url-encode-url and add a test * lisp/url/url-util.el (url-encode-url): Simplify. url-generic-parse-url copes with multibyte strings just fine (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24117#185). * test/lisp/url/url-parse-tests.el (url-generic-parse-url/multibyte-host-and-path): New test. 2017-05-10 Glenn Morris More informative error when required feature missing * src/fns.c (Frequire): Include file name in missing feature error. * doc/lispref/loading.texi (Named Features): Don't quote actual error. 2017-05-10 Glenn Morris Put re-loaded file back at start of load-history (bug#26837) * src/lread.c (readevalloop): Fix the "whole buffer" check to operate in the correct buffer. (Feval_buffer): Move point back to the start after checking for lexical binding. * test/src/lread-tests.el (lread-test-bug26837): New test. * test/data/somelib.el, test/data/somelib2.el: New test data files. 2017-05-09 Eli Zaretskii Improve documentation of 'gnutls-verify-error' * lisp/net/gnutls.el (gnutls-verify-error): Improve and expand doc string. (Bug#26845) 2017-05-09 Glenn Morris Don't duplicate autoload code in package.el * lisp/emacs-lisp/autoload.el (autoload-rubric): Add a package option. * lisp/emacs-lisp/package.el (autoload-rubric): Declare. (package-autoload-ensure-default-file): Use autoload-rubric. 2017-05-09 Michael Albinus * test/lisp/net/tramp-tests.el: Keep additional test. 2017-05-09 Marcin Borkowski Add elisp-tests-with-temp-buffer, a new testing macro * test/lisp/emacs-lisp/lisp-tests.el (elisp-test-point-marker-regex) New variable. (elisp-tests-with-temp-buffer): New macro to help test functions moving the point and/or mark. 2017-05-09 Noam Postavsky Revert "Output number of characters added to file (Bug#354)" The extra message text turned out to be quite annoying in practice, and is generally more trouble than it's worth. Also revert several related changes. Partially revert "Handle `write-region' messages in Tramp properly" Revert "New var write-region-verbose, default nil" Revert "* src/fileio.c (write_region): Don't say "1 characters". (Bug#26796)" Revert "Minor tuneup of write-region change" Revert "Adjust write-region so file name is at the beginning again" Revert "Fix handling of non-integer START param to write-region" Revert "Output number of characters added to file (Bug#354)" * doc/emacs/files.texi (Misc File Ops): * etc/NEWS: * lisp/epa-file.el (epa-file-write-region): * lisp/gnus/mm-util.el (mm-append-to-file): * lisp/jka-compr.el (jka-compr-write-region): * lisp/net/ange-ftp.el (ange-ftp-write-region): * lisp/net/tramp-adb.el (tramp-adb-handle-write-region): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region): * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): * lisp/net/tramp.el (tramp-handle-write-region-message): * src/fileio.c (write_region, syms_of_fileio): * test/lisp/net/tramp-tests.el (tramp-test10-write-region): Remove extra characters from file writing messages. 2017-05-09 Noah Friedman (ybuffer-list): $alist must be ptr-unmasked at the end of the loop, because $ptr is modified by ygetptr and we use $ptr immediately at the beginning. 2017-05-08 Ken Brown Skip a test from filenotify-tests.el on Cygwin * test/lisp/filenotify-tests.el (file-notify-test02-rm-watch): Skip the last part of the test on Cygwin; it fails due to timing issues. (file-notify--test-read-event): Remove `sit-for' that was added for Cygwin. 2017-05-08 Paul Eggert Merge from gnulib This incorporates: 2017-05-08 intprops: don’t depend on ‘verify’ 2017-05-07 utimens: on native Windows, improve resolution if fd < 0 2017-05-07 utimens: Improve error code on native Windows * lib/intprops.h, lib/utimens.c: Copy from gnulib. 2017-05-08 Wilson Snyder Fix various verilog-mode.el issues. * lisp/progmodes/verilog-mode.el (verilog-read-decls): Fix SystemVerilog 2012 import breaking AUTOINST. Reported by Johannes Schaefer. (verilog-auto-wire-type, verilog-insert-definition): Fix AUTOWIRE using logic in top-level non-SystemVerilog module, bug1142. Reported by Marcin K. (verilog-define-abbrev-table) (verilog-mode-abbrev-table): Don't expand abbrev inside comment/strings, bug1102. Reported by Slava Yuzhaninov. (verilog-auto): Fix AUTORESET widths pulling from AUTOREGINPUT, msg2143. Reported by Galen Seitz. (verilog-modify-compile-command): Fix expansion of __FLAGS__ when compile-command is globally set, bug1119. Reported by Galen Seitz. 2017-05-08 Michael Albinus Handle `write-region' messages in Tramp properly * lisp/net/tramp.el (tramp-handle-write-region-message): New defsubst. * lisp/net/tramp-adb.el (tramp-adb-handle-write-region): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region): * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Use it. * lisp/net/tramp.el (tramp-password-prompt-regexp) (tramp-completion-mode-p): * lisp/net/tramp-cmds.el (tramp-reporter-dump-variable) (tramp-append-tramp-buffers): * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): Use `bound-and-true-p'. * lisp/net/tramp-compat.el (tramp-compat-delete-file): Don't check for `boundp' anymore. * test/lisp/net/tramp-tests.el (ert-x): Require it. (tramp--test-messages): New defvar. (tramp-test10-write-region): Extend test. 2017-05-08 YAMAMOTO Mitsuharu Fix glyph string generation for multi-font compositions (Bug#26742) * src/xdisp.c (glyph_string_containing_background_width): New function. (draw_glyphs): Use it to get correct background width. (compute_overhangs_and_x): Don't change x in the middle of composite characters. 2017-05-07 Philipp Stephani Fix all unescaped character literals 2017-05-07 Alan Mackenzie CC Mode internal cache: Handle a cache pos being inside a two-char construct. Cache c-state-semi-nonlit-pos-cache was failing when a cache position was, e.g., between the two characters of an opening comment "/*", and additionally there were an odd number of quote marks (apostrophes) in the comment. This happened in .../src/xdisp.c in the Emacs master branch around 2017-05-02 at buffer position 615001. * lisp/progmodes/cc-defs.el (c-emacs-features): Repurpose symbol pps-extended-state to mean that there are at least 11 elements in the parser state. * lisp/progmodes/cc-engine.el (c-cache-to-parse-ps-state) (c-parse-ps-state-to-cache): Rewrite these to use enhanced cache element list types which indicate potentially being inside two-char constructs. (c-parse-ps-state-below): Rewrite to use the new versions of the above two functions. 2017-05-07 Glenn Morris Silence an mh-compat compiler warning * lisp/mh-e/mh-compat.el (mh-url-unreserved-chars): Always define. 2017-05-07 Glenn Morris Evaluate mh-require when compiling * lisp/mh-e/mh-alias.el, lisp/mh-e/mh-folder.el: * lisp/mh-e/mh-gnus.el, lisp/mh-e/mh-search.el: Evaluate mh-require when compiling, as require is automatically. * lisp/mh-e/mh-gnus.el: No longer disable byte-compilation. 2017-05-07 Glenn Morris Remove obsolete method of changing byte-compile-dest-file * lisp/emacs-lisp/bytecomp.el (byte-compile-dest-file): Define unconditionally. 2017-05-07 Paul Eggert New var write-region-verbose, default nil By popular demand, write-region char counts are now off by default (Bug#26796). * src/fileio.c (write-region-verbose): New Lisp var. (write_region): Output char count only if the var is non-nil. * doc/emacs/files.texi (Misc File Ops), etc/NEWS: Document this. 2017-05-07 Glenn Morris Write autoloads file atomically * lisp/emacs-lisp/autoload.el (autoload--save-buffer): New function, to save buffer atomically. (autoload-save-buffers, update-directory-autoloads): Use autoload--save-buffer. * lisp/Makefile.in ($(lisp)/loaddefs.el): No longer write to a temp file by hand. 2017-05-07 Glenn Morris Write autoloads file once only * lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Simplify. Don't bother about ensuring the output file exists. (autoload-generated-file): Add doc. (autoload-ensure-writable): Update doc. (autoload-ensure-file-writeable): Handle non-existing file. (autoload-ensure-default-file): Remove function. 2017-05-07 Paul Eggert Port .gdbinit to GDB 7.11.1 + Python 2.7.12 * src/.gdbinit (Lisp_Object_Printer.to_string): Explicitly convert integer val to 'int', so that older GDBs do not complain about the conversion. * src/lisp.h (Lisp_Object) [CHECK_LISP_OBJECT_TYPE]: Give the struct a tag, so that older GDB pretty-printers have a tag to hang their hat on. 2017-05-06 Paul Eggert Pretty-print const Lisp_Objects in .gdbinit * src/.gdbinit (Emacs_Pretty_Printers.__call__): Compare unqualified type to Lisp_Object, to do the right thing when the expression has type ‘Lisp_Object const’. Problem reported by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2017-05/msg00138.html 2017-05-06 Paul Eggert Pacify GCC setjmp/longjmp warning * src/eval.c (internal_lisp_condition_case): Do not modify local var VAR, to pacify GCC’s setjmp/longjmp warning which in some cases mistakenly diagnoses VAR possibly being modified between a setjmp and a longjmp. 2017-05-06 Philipp Fix bootstrap build of files.el * lisp/files.el (file-name-non-special): Don't use cl-letf. 2017-05-06 Eli Zaretskii Fix last change for MS-Windows * test/src/emacs-module-tests.el (module-function-object): Port to MS-Windows. 2017-05-06 Philipp Stephani Introduce new misc type for module function This resolves a couple of FIXMEs in emacs-module.c. * src/lisp.h (MODULE_FUNCTIONP, XMODULE_FUNCTION): New functions. * src/alloc.c (make_module_function): New function. (mark_object): GC support. * src/data.c (Ftype_of, syms_of_data): Handle module function type. * src/print.c (print_object): Print support for new type. * src/emacs-module.c (module_make_function, Finternal_module_call): Use new module function type, remove FIXMEs. (module_format_fun_env): Adapt and give it external linkage. * test/src/emacs-module-tests.el (module-function-object): Add unit test. 2017-05-06 Philipp Stephani Fix quoted files for 'verify-visited-file-modtime' Fixes Bug#25951. * lisp/files.el (file-name-non-special): Set the file name for the correct buffer. * test/lisp/files-tests.el (files-tests--file-name-non-special--buffers): Add unit test. (files-tests--with-advice, files-tests--with-temp-file): New helper macros. 2017-05-06 Eli Zaretskii * src/fileio.c (write_region): Don't say "1 characters". (Bug#26796) 2017-05-06 Eli Zaretskii Turn on GC_CHECK_MARKED_OBJECTS by default under ENABLE_CHECKING * src/alloc.c (GC_CHECK_MARKED_OBJECTS): Define to 1 by default of ENABLE_CHECKING is defined. (mark_object): Test for GC_CHECK_MARKED_OBJECTS being non-zero, instead of being defined. 2017-05-06 Tom Tromey Fix erc-join with channel password Bug#25349 * lisp/erc/erc-join.el (erc-autojoin-after-ident): Switch order of server names. (erc-autojoin-channels, erc-autojoin-add, erc-autojoin-remove): Likewise. (erc-server-join-channel): Move to erc.el. * lisp/erc/erc.el (erc-server-join-channel): Move from erc-join.el. (erc-cmd-JOIN): Use erc-server-join-channel. 2017-05-06 Tino Calancha Ensure the created temp file in a test is new * test/lisp/buff-menu-tests.el (buff-menu-24962): Use `make-temp-file' to create the temp file. 2017-05-06 Glenn Morris Decruftify dns-mode.el a little bit * lisp/textmodes/dns-mode.el (dns-mode-control-entities): New constant. (dns-mode-control-entity, dns-mode-bad-control-entity) (dns-mode-type, dns-mode-class): New faces. (dns-mode-control-entity-face, dns-mode-bad-control-entity-face) (dns-mode-type-face, dns-mode-class): Make these variables use the new faces, and mark as obsolete. (dns-mode-font-lock-keywords): Use dns-mode-control-entities. 2017-05-06 Paul Eggert Pretty-print Lisp_Object values in GDB * src/.gdbinit: Add a pretty-printer for Lisp_Object values. Now, GDB displays them as "XIL(0xXXX)" rather than displaying them as "..." when CHECK_LISP_OBJECT_TYPE is in effect and as "DDDDD" otherwise. 2017-05-05 Peder O. Klingenberg Tweak dns-mode font-lock * lisp/textmodes/dns-mode.el (dns-mode-font-lock-keywords): Highlight $TTL as a control entity. (Bug#26780) 2017-05-05 Glenn Morris Fontify the doc-string in some CL forms as such * lisp/emacs-lisp/lisp-mode.el (defconstant, defparameter): Add the doc-string-elt property. (Bug#26778) 2017-05-05 Glenn Morris * lisp/emacs-lisp/cl-lib.el (cl-mapcar): Remove recent autoload cookie. 2017-05-05 Dmitry Gutov cl-defmethod: Make the edebug spec more technically correct * lisp/emacs-lisp/cl-generic.el (cl-defmethod): Denote the edebug spec part for qualifiers as [&rest atom], per https://lists.gnu.org/r/emacs-devel/2017-05/msg00053.html. 2017-05-05 Mike Kupfer Fix MH-E not to load cl at runtime (Bug#25552) * lisp/mh-e/mh-acros.el (defun-mh): Check at runtime, not compile time, whether the target is bound. * lisp/mh-e/mh-compat.el: Enable compilation. Pull in mh-acros at compile time. Authored-by: Glenn Morris , Noam Postavsky 2017-05-04 Jean-Christophe Helary Multiline support in NS "Open Selected File" service. * lisp/term/ns-win.el (ns-open-file-service): new function. Wraps the original call in a (split-string) to create as many calls as there are lines. (ns-spi-service-call): Call `ns-open-file-service' instead of `dnd-open-file'. 2017-05-04 Göktuğ Kayaalp Require cl-lib at runtime in vc-hg * lisp/vc/vc-hg.el: Require cl-lib at runtime as well (bug#26609). 2017-05-04 Tino Calancha Inherit incompatible/obsolete package faces from error Don't use the same face for installed packages as for incompatible or obsolete ones. * lisp/emacs-lisp/package.el (package-status-incompat): Inherit from error. 2017-05-04 Michael Albinus Set process property `adjust-window-size-function' to `ignore' in Tramp * lisp/net/tramp-adb.el (tramp-adb-parse-device-names) (tramp-adb-maybe-open-connection): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band) (tramp-maybe-open-connection): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl) (tramp-smb-maybe-open-connection): Set process property `adjust-window-size-function' to `ignore'. 2017-05-04 Nicolas Petton * lisp/emacs-lisp/seq.el: Bump seq version. 2017-05-04 Damien Cassou Add seq-set-equal-p to test for set equality * lisp/emacs-lisp/seq.el (seq-set-equal-p): Add function to compare two lists as if they were sets. * test/lisp/emacs-lisp/seq-tests.el (test-seq-set-equal-p): Add test for seq-set-equal-p. 2017-05-04 Paul Eggert Spelling fixes * lisp/gnus/nndiary.el (nndiary-last-occurrence): Rename from nndiary-last-occurence. (nndiary-next-occurrence): Rename from nndiary-next-occurence. All uses changed. 2017-05-04 Paul Eggert Merge from pkg-config * m4/pkg.m4: Copy from pkg-config 0.29.1. 2017-05-04 Tom Tromey Add color highlighting to css-mode Bug#25525 * lisp/textmodes/css-mode.el (css--color-map): New constant. (css-value-class-alist): Use css--color-map. (css--number-regexp, css--percent-regexp) (css--number-or-percent-regexp, css--angle-regexp): New constants. (css--color-skip-blanks, css--rgb-color, css--hsl-color): New functions. (css--colors-regexp): New constant. (css--hex-color, css--named-color, css--compute-color) (css--contrasty-color, css--fontify-colors) (css--fontify-region): New functions. (css-mode): Set font-lock-fontify-region-function. (css-mode-syntax-table): Set syntax on more characters. (css-fontify-colors): New defcustom. (scss-mode-syntax-table): Define syntax for ?$ and ?%. * test/lisp/textmodes/css-mode-tests.el (css-test-property-values): Update. (css-test-rgb-parser, css-test-hsl-parser) (css-test-named-color): New tests. * etc/NEWS: Add entry. 2017-05-03 Michael Albinus Fix Bug#26763 * lisp/files.el (delete-directory): Call file name handler with `trash' argument. * lisp/net/ange-ftp.el (ange-ftp-delete-directory): * lisp/net/tramp-sh.el (tramp-sh-handle-delete-directory): Add TRASH arg. Implement it. (Bug#26763) (tramp-get-remote-trash): Check for `delete-by-moving-to-trash'. * lisp/net/tramp-adb.el (tramp-adb-handle-delete-directory): * lisp/net/tramp-smb.el (tramp-smb-handle-delete-directory): Add _TRASH arg. 2017-05-03 Paul Eggert Use ptrdiff_t, not int, for stack sizes * src/thread.c (invoke_thread_function): * src/xterm.c (x_cr_export_frames): Don’t assume SPECPDL_INDEX fits in ‘int’. 2017-05-03 Paul Eggert Check list object type if --enable-gcc-warnings * configure.ac (--enable-check-lisp-object-type): Default to "yes" if --enable-gcc-warnings is not "no". * etc/NEWS: Mention this. * src/eval.c (internal_lisp_condition_case): Fix some glitches with 'volatile' uncovered by the above: in particular, 'clauses' should be a pointer to volatile storage on the stack, and need not be volatile itself. Use an int, not ptrdiff_t, to count clauses. Don’t bother gathering binding count if VAR is nil. Use more-specific local names to try to clarify what’s going on. 2017-05-02 Glenn Morris Tweak auth-source-pass.el to avoid run-time subr-x * lisp/auth-source-pass.el (auth-source-pass--parse-data): Avoid needing subr-x at run-time. 2017-05-02 Charles A. Roelli Constrain non-child frames to screen area in OS X * src/nsterm.m (constrainFrameRect:toScreen:): Constrain non-child frames in OS X, if they would otherwise go offscreen. (Bug#25818) 2017-05-02 Michael Albinus Fix error in completion for separate Tramp syntax * lisp/net/tramp.el (tramp-completion-file-name-regexp-separate): Tweak regexp. * test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion): Run method and host name completion for all syntaxes. 2017-05-02 Eli Zaretskii Avoid compilation warnings * src/w32fns.c (Fx_file_dialog, w32_parse_and_hook_hot_key): * src/w32term.c (x_draw_glyph_string): * src/w32fns.c (compute_tip_xy): * src/w32font.c (w32font_text_extents): * src/w32menu.c (set_frame_menubar): * src/search.c (Freplace_match): Avoid compiler warnings in optimized builds. 2017-05-02 Paul Eggert Merge from gnulib This incorporates: 2017-05-02 utimens: port to Emacs + MS-Windows * lib/utimens.c: Copy from gnulib. 2017-05-02 Gemini Lasswell Fix Edebug specs for 'cl-defmethod' and 'defmethod' * lisp/emacs-lisp/cl-generic.el (cl-defmethod): Change Edebug spec to make Edebug generate a new symbol for each method (Bug#24753) and to support a string following :extra (Bug#23995). * lisp/emacs-lisp/eieio-compat.el (defmethod): Change Edebug spec to make Edebug generate a new symbol for each method (Bug#24753). 2017-05-02 Eli Zaretskii Temporary fix for the MS_Windows build * nt/inc/ms-w32.h (WIN32_LEAN_AND_MEAN): Define to an empty value, to be consistent with Gnulib's utimens.c. This is because utimens.c unconditionally defines WIN32_LEAN_AND_MEAN to an empty value, so the previous definition here conflicted with that. 2017-05-02 Paul Eggert Port format-time-string to MS-Windows better * test/src/editfns-tests.el (format-time-string-with-zone): Port test cases to MS-Windows. 2017-05-02 Paul Eggert Merge from gnulib This incorporates: 2017-05-01 New module 'localtime-buffer' 2017-04-30 utimens: Add support for native Windows * admin/merge-gnulib (AVOIDED_MODULES): Add tzset. * configure.ac (tzset): No need for Emacs itself to check now. * lib/gettimeofday.c, lib/time.in.h, lib/time_rz.c, lib/utimens.c: * m4/gettimeofday.m4, m4/time_h.m4, m4/time_rz.m4: Copy from gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/localtime-buffer.c, lib/localtime-buffer.h: * m4/localtime-buffer.m4: New files, copied from gnulib. * src/editfns.c (init_editfns): Assume tzset is callable. 2017-05-01 Dmitry Gutov Speed up project-find-regexp for simple regexps * lisp/progmodes/xref.el (xref--regexp-syntax-dependent-p): New function. (xref--collect-matches): Use it. Don't try to enable the appropriate major mode and file-local variables if the regexp does not depend on the buffer's syntax (bug#26710). (xref--collect-matches-1): Don't syntax-propertize in that case either. 2017-05-01 Philipp Stephani Warn about missing backslashes during load * src/lread.c (load_warn_unescaped_character_literals, Fload, read1) (syms_of_lread): Warn if unescaped character literals are found (Bug#20152). * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Check for unescaped character literals during byte compilation. * test/src/lread-tests.el (lread-tests--unescaped-char-literals): New unit test. (lread-tests--with-temp-file, lread-tests--last-message): Helper functions for unit test. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--unescaped-char-literals): New unit test. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--with-temp-file): Helper macro for unit test. 2017-05-01 Ken Brown * configure.ac: Suggest Mailutils on Cygwin. 2017-05-01 Paul Eggert Don’t stress-test time zones near the Epoch * test/src/editfns-tests.el (format-time-string-with-zone) (format-time-string-with-outlandish-zone): Don’t format timestamps near the Epoch, as this runs into bugs on MS-Windows, and we don’t want to worry about those bugs. 2017-05-01 Glenn Morris Tweak vc-tests.el for bzr * test/lisp/vc/vc-tests.el (vc-test--working-revision): Handle test environments where HOME does not exist. 2017-05-01 Dmitry Gutov vc-git-state: Return `ignored' as appropriate with newer Git * lisp/vc/vc-git.el (vc-git--program-version): New variable. (vc-git--program-version): New function. (vc-git-state): Use it to choose whether to add '--ignored' (bug#19343). 2017-05-01 Dmitry Gutov vc-git-state: Bring back CentOS 6 compatibility * lisp/vc/vc-git.el (vc-git-state): Bring back CentOS 6 compatibility (bug#19343). 2017-05-01 Martin Rudalics Rewrite w32fns.c's `x_set_menu_bar_lines' * src/w32fns.c (x_set_menu_bar_lines): Redraw frame immediately regardless of whether menu bar is added or removed. Clear under internal border iff a W32 window exists. Store either 0 or 1 as new parameter value. (x_change_tool_bar_height): Use FRAME_W32_WINDOW instead of FRAME_X_WINDOW. 2017-05-01 Michael Albinus Fix filenotify-tests.el for cygwin * test/lisp/filenotify-tests.el (file-notify--test-read-event): Add an additional `sit-for'. (file-notify-test02-rm-watch): Add an additional `file-notify--test-read-event' call. 2017-05-01 Jonathan Ganc Speed up vc-git-status and make it more precise * lisp/vc/vc-git.el (vc-git-state) (vc-git--git-status-to-vc-state): Update 'vc-git-state' to use 'git status', so that 'vc-git-state' can now return 'ignored', 'conflict', or 'unregistered' when appropriate. Discussed in bug#26066. Fixes bug#19343. 2017-05-01 Dmitry Gutov Fix Git revision navigation in currently removed directories * lisp/vc/vc-git.el (vc-git-next-revision): Use the repo root as default-directory because FILE's parent directory might not exist anymore (bug#26345). 2017-04-30 Paul Eggert Merge from gnulib This incorporates: 2017-04-30 strftime-fixes: New module 2017-04-30 mktime: Work around TZ problem on native Windows 2017-04-30 ctime, localtime: New modules 2017-04-30 gettimeofday: Provide higher resolution on native Windows 2017-04-29 utime-h: Modernize handling of 'struct utimbuf' 2017-04-29 Make use of module 'utime-h' 2017-04-30 Fix a few typos * admin/merge-gnulib (AVOIDED_MODULES): Avoid utime-h, too. * lib/gettimeofday.c, lib/mktime.c, lib/time.in.h, lib/utimens.c: * m4/gettimeofday.m4, m4/include_next.m4, m4/mktime.m4: * m4/strftime.m4, m4/time_h.m4, m4/timegm.m4, m4/utimens.m4: Copy from gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. 2017-04-30 Eli Zaretskii Don't lose key bindings on mis-spelled text in flyspell-mode * lisp/textmodes/flyspell.el (flyspell-mouse-map): Bind mouse-2 explicitly. (make-flyspell-overlay): If the mis-spelled text already has a 'keymap' property, make that keymap the parent of flyspell-mouse-map, so as not to lose the parent's bindings. (Bug#26672) 2017-04-30 Martin Rudalics Fix `delete-frame' behavior including Bug#26682 * src/frame.c (other_frames): Accept two arguments now. Don't care about minibuffer window. Don't care about visibility when called from delete_frame with FORCE true (Bug#26682). (delete_frame, Fmake_frame_invisible): Adjust other_frames calls. * src/w32term.c (w32_read_socket): Don't add a move frame event for an invisible frame. * lisp/frame.el (handle-delete-frame): Don't kill Emacs when attempting to delete a surrogate minibuffer frame. 2017-04-30 Paul Eggert Merge from gnulib This avoids incorporating the following, which I suspect are more trouble for Emacs than they’re worth: 2017-04-29 stat, fstat: fix time_t etc. on native Windows platforms * admin/merge-gnulib (AVOIDED_MODULES): Avoid stat, too. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/pathmax.h, lib/stat.c, m4/pathmax.m4, m4/stat.m4: Remove. 2017-04-30 Paul Eggert Fix buffer overflow in make-docfile * lib-src/make-docfile.c (scan_c_stream): Check for buffer overflow when reading an identifier. Use a static buffer for NAME rather than a small dynamically-allocated buffer. 2017-04-30 Paul Eggert Merge from gnulib This incorporates: 2017-04-29 getopt: port to Solaris 10 with circa-1997 glibc getopt.h * lib/getopt-pfx-ext.h: Copy from gnulib. * lib/gnulib.mk.in: Regenerate. 2017-04-30 Tino Calancha Fix dependency error during bootstrap * lisp/files.el: Require pcase and easy-mmode at compile time. 2017-04-30 Mats Lidell * etc/tutorials/TUTORIAL.sv: synced with TUTORIAL 2017-04-29 Philipp Stephani Reimplement auto-saving to visited files This reacts to confusing behavior of 'auto-save-visited-file-name', cf. Bug#25478. * lisp/files.el (auto-save-visited-interval): New customization option. (auto-save-visited-mode): New global minor mode. (auto-save-visited-file-name): Make obsolete. (auto-save--timer): New internal helper variable. * doc/emacs/files.texi (Auto Save Files): Document 'auto-save-visited-mode' instead of obsolete 'auto-save-visited-file-name'. (Auto Save Control): Document customization option 'auto-save-visited-interval'. 2017-04-29 Paul Eggert Allow bypassing of some checks when merging * build-aux/git-hooks/pre-commit: Don't check merged-in changes. 2017-04-29 Philipp Stephani Integrate module test with normal test suite * test/Makefile.in (ELFILES): Exclude module test if modules aren't configured. (EMACS_TEST_DIRECTORY): Expand test directory so that it's set correctly even if Emacs changes the current directory. ($(srcdir)/src/emacs-module-tests.log) ($(test_module)): Proper dependency tracking for test module. * test/data/emacs-module/Makefile (ROOT): Adapt to new location. Remove 'check' target and EMACS variable, which are no longer necessary. (SO): Change to include period. * test/src/emacs-module-tests.el (mod-test): Use EMACS_TEST_DIRECTORY environment variable to reliably find test data. * configure.ac (HAVE_MODULES, MODULES_SUFFIX): Add necessary substitutions. 2017-04-28 Glenn Morris Broaden comint-password-prompt-regexp * lisp/comint.el (comint-password-prompt-regexp): Broaden the regexp, for non-English locales. (Bug#26698) 2017-04-28 Stefan Monnier * lisp/auth-source.el (auth-source-backend-parse): `return' -> cl-return. 2017-04-28 Bartosz Duszel Don't pass the value of point to 'push-mark', as that's the default. * lisp/textmodes/bib-mode.el (mark-bib): * lisp/simple.el (mark-whole-buffer, yank): * lisp/ses.el (ses--advice-yank, ses-mark-row, ses-mark-column): * lisp/progmodes/xscheme.el (xscheme-yank): * lisp/progmodes/verilog-mode.el (verilog-mark-defun): * lisp/progmodes/perl-mode.el (perl-mark-function): * lisp/progmodes/pascal.el (pascal-mark-defun): * lisp/progmodes/meta-mode.el (meta-mark-defun): * lisp/progmodes/icon.el (mark-icon-function): * lisp/progmodes/cc-cmds.el (c-mark-function): * lisp/obsolete/vip.el (ex-goto): * lisp/obsolete/vi.el (vi-put-before): * lisp/mouse.el (mouse-yank-primary): * lisp/menu-bar.el (menu-bar-select-yank): * lisp/mail/sendmail.el (mail-yank-original): * lisp/hexl.el (hexl-beginning-of-buffer, hexl-end-of-buffer): * lisp/emulation/viper-cmd.el (viper-mark-beginning-of-buffer) (viper-mark-end-of-buffer): * lisp/cedet/semantic/senator.el (senator-mark-defun): * lisp/allout.el (allout-mark-topic): Remove unnecessary argument `(point)' from calls to `push-mark'. (Bug#25565) 2017-04-28 Glenn Morris Merge from origin/emacs-25 784602b1050 (origin/emacs-25) ; Add release notice 3a34412caae (tag: emacs-25.2) Set Emacs version to 25.2 and update AU... 56a4461a48d ; Move stray item from admin/notes/repo to CONTRIBUTE 2b0d1118199 ; CONTRIBUTE: Remove stray header. f2ab09ec60d Fix a typo in indexing the user manual bc55a574235 * lisp/menu-bar.el (kill-this-buffer): Doc fix. (Bug#26466) a6d50401b4b Document 'line-pixel-height' 0c55cf43e61 * search.c (Fre_search_forward, Fre_search_backward): Imp... c7ed57eaef4 Mention that processes start in default-directory (Bug#18... 856ec9ffa1f * src/xdisp.c (vmessage, message): Clarify commentary. 849a0aaa1c9 Belated fixes for admin.el's M-x make-manuals-dist 84938d79698 default-directory: Remark that it must be a directory name 3f0d047d2eb Delete confuse statement in manual ee1bd94dd0c Improve packaging documentation fb18bff91f0 Expand manual section on quitting windows 9a737079645 Fix docstring of dabbrev-abbrev-char-regexp afe8849bac1 * doc/misc/cl.texi (Iteration Clauses): Clarify example (... ada79442c07 ;* doc/misc/info.texi (Choose menu subtopic): Improve ind... d38fd9229c0 Narrow scope of modification hook renabling in org-src fo... e0e9db4c84a ; Spelling fix # Conflicts: # README # etc/AUTHORS # etc/HISTORY # lisp/ldefs-boot.el 2017-04-28 Glenn Morris * doc/misc/auth.texi: Commas don't work in node names. * test/lisp/auth-source-pass-tests.el: Fix loading of cl-lib. 2017-04-28 Paul Eggert Test format-time-string with zone arg * test/src/editfns-tests.el (format-time-string-with-zone) (format-time-string-with-outlandish-zone): New tests. 2017-04-28 Paul Eggert Merge from gnulib This incorporates: 2017-04-24 time_rz: fix heap buffer overflow vulnerability 2017-04-23 stat-time: Update comments. 2017-04-22 ftoastr: cite a newer paper 2017-04-21 gettext-h: Avoid -Wundef warning. * lib/ftoastr.c, lib/gettext.h, lib/stat-time.h, lib/time_rz.c: * m4/getopt.m4: Copy from gnulib. * m4/gnulib-comp.m4: Regenerate. 2017-04-27 Damien Cassou auth-source-pass: Add documentation; fix tests and indentation. * doc/misc/auth.texi: Document new integration with Pass. Use @itemize instead of @enumerate. * lisp/auth-source-pass.el: Fix indentation. (auth-source-pass--remove-directory-name): Remove. * test/lisp/auth-source-pass-tests.el: Adjust test macros. 2017-04-27 foudfou auth-source-pass: Enable finding entries by "host/username" * lisp/auth-source-pass.el: Enable finding entries by "host/username". * test/lisp/auth-source-pass-tests.el: Adjust tests to check it. 2017-04-27 Damien Cassou Integrate auth-source with password-store * lisp/auth-source-pass.el: auth-source backend for password-store. * test/lisp/auth-source-pass-tests.el: Tests for auth-source-pass behavior. 2017-04-27 Damien Cassou * lisp/auth-source.el: Document parser functions. 2017-04-27 Ted Zlatanov auth-source: factor out parsers and add tests * lisp/auth-source.el: Factor out the source parsers. Clean up comments. * test/lisp/auth-source-tests.el: Add tests. 2017-04-27 Martin Rudalics Fix doc and customization type of `window-combination-limit' (Bug#26673) * src/window.c (Vwindow_combination_limit): Fix doc-string. * lisp/cus-start.el (window-combination-limit): Fix customization type. * doc/lispref/windows.texi (Recombining Windows): Fix documentation of `window-combination-limit'. 2017-04-27 Tino Calancha Drop face from hi-lock--unused-faces only when used * lisp/hi-lock.el (hi-lock-set-pattern): If REGEXP is already highlighted, then push FACE into hi-lock--unused-faces (Bug#26666). * test/lisp/hi-lock-tests.el (hi-lock-bug26666): Add test. 2017-04-26 Alan Third Fix macOS version check (bug#26664) * src/nsterm.m (initFrameFromEmacs): Prevent window tabbing mode on macOS versions 10.12+. 2017-04-26 Glenn Morris Make charprop.el provide a feature * admin/unidata/unidata-gen.el (unidata-gen-charprop): Provide a feature. * lisp/loadup.el: Use the charprop feature. 2017-04-26 Glenn Morris * lisp/loadup.el: Get charprop.el into etc/DOC again. 2017-04-26 Stefan Monnier * lisp/ido.el (ido-everywhere): Use add-function. 2017-04-26 Martin Rudalics Try to fix latest fix of w32_mouse_position * src/w32term.c (w32_mouse_position): Fix a bug introduced by latest fix and try to make the affected code more rigorous. 2017-04-26 Eli Zaretskii Avoid segfaults when 'find-font' is invoked for a TTY frame * src/font.c (font_pixel_size): Don't call GUI functions if F is a text-mode frame. (Bug#26646) 2017-04-26 Michael Albinus * lisp/net/tramp.el (tramp-set-connection-local-variables-for-buffer): New defun. 2017-04-26 Glenn Morris * src/Makefile.in (leimdir): Remove variable, no longer used. 2017-04-26 Glenn Morris Generate leim-list via lisp/Makefile, not src/Makefile * src/Makefile.in ($(leimdir)/leim-list.el): Remove rule. (emacs$(EXEEXT)): Don't depend on leim-list. * lisp/Makefile.in ($(lisp)/loaddefs.el): Depend on gen-lisp again. 2017-04-25 Alan Third Fix define for GNUstep builds * src/nsterm.m (initFrameFromEmacs): Fix the ifdef so that GNUstep doesn't see the code. 2017-04-25 Glenn Morris Suppress intermittent test failure on hydra * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el (eieio-test-method-order-list-6): Skip on hydra. 2017-04-25 Alan Third Fix some NS frame handling issues * src/nsterm.m (FRAME_DECORATED_FLAGS, FRAME_UNDECORATED_FLAGS): New defines intended to make things tidier. (x_set_undecorated): Use the new defines. (windowWillResize): Don't use new macOS 12+ only feature. (initFrameFromEmacs): Use the new defines, and disable automatic window tabbing feature in macOS 12. (x_set_undecorated, x_set_parent_frame, x_set_no_accept_focus, x_set_z_group): Add NSTRACE notices. 2017-04-25 Glenn Morris Avoid parallel race condition * lisp/Makefile.in ($(lisp)/loaddefs.el): Remove gen-lisp for now. 2017-04-25 Glenn Morris Generate each unicode lisp file independently This is better for parallel builds, eg it eliminates race conditions from having one process write multiple files. * admin/unidata/Makefile.in (lparen, unifiles): New variables. Parse unidata-gen.el, not charprop.el, to get the list of uni- files. (all): Explicitly list the output lisp files. (PHONY_EXTRAS): Remove. (${unidir}/charprop.el): Change rule to just be for this file. (${unifiles}): New rule to write each unicode lisp file. (extraclean): Simplify. * admin/unidata/unidata-gen.el (unidata-gen-charprop): Quieten in batch mode. (unidata-gen-files): Remove, no longer used. * lisp/loadup.el: Update command-line parser. 2017-04-25 Glenn Morris Further refactoring in unidata-gen.el * admin/unidata/unidata-gen.el (unidata-gen-charprop): New function, split from unidata-gen-files. (unidata-gen-files): Use unidata-gen-charprop. 2017-04-25 Glenn Morris Allow unidata-gen-file to work independently * admin/unidata/unidata-gen.el (unidata-gen-file): Make it work as a stand-alone function in batch mode. (unidata-gen-files): Pass extra arguments to unidata-gen-file. 2017-04-25 Glenn Morris Preparatory refactoring in unidata-gen.el * admin/unidata/unidata-gen.el (unidata-gen-file): New function, split from unidata-gen-files. (unidata-gen-files): Use unidata-gen-file. 2017-04-25 Glenn Morris Write each generated character property lisp file only once * admin/unidata/unidata-gen.el (unidata-file-alist): Rename from unidata-prop-alist. All users changed. Use file name rather than property name as the key. (unidata-prop-prop): New function. (unidata-prop-index, unidata-prop-generator, unidata-prop-docstring) (unidata-prop-describer, unidata-prop-default, unidata-prop-val-list): Change to parse the argument rather than unidata-prop-alist. (unidata-gen-table-character, unidata-gen-table) (unidata-gen-table-symbol, unidata-gen-table-integer) (unidata-gen-table-numeric, unidata-gen-table-word-list) (unidata-gen-table-name, unidata-gen-table-decomposition) (unidata-gen-table-special-casing): Pass index as an argument. (unidata-check): Adapt to unidata-file-alist. Pass index to generator functions. (unidata-gen-files): Adapt to unidata-file-alist. Write each output file once only. Overwrite rather than delete. 2017-04-25 Andrew G Cohen Fix requesting sparse articles in gnus * lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): Delete the sparse article number from the list, not its id. 2017-04-25 Glenn Morris Don't advertise s_client in tls.el docs * lisp/net/tls.el (tls-end-of-info, tls-success, tls-untrusted): Don't mention s_client in docs. 2017-04-25 Rob Browning Remove s_client usage from tls.el * lisp/net/tls.el (tls-program, tls-checktrust): Remove s_client. Ref http://bugs.debian.org/766397 https://lists.gnu.org/r/emacs-devel/2014-10/msg00803.html 2017-04-25 Glenn Morris Further robustify cedet bootstrap to loaddefs not yet built * lisp/cedet/semantic/util.el (semantic-something-to-tag-table): Avoid void-function error when bootstrapping and semantic/loaddefs.el does not yet exist. 2017-04-24 Alan Third Fix XBM color rendering in NS port (bug#22060) src/nsimage.m (setXBMColor): Fix calculation of xbm_fg. 2017-04-24 Vibhav Pant Add support for IRCv3 message tags. * lisp/erc/erc-backend.el: erc-response: Add `tags' element. Add (erc-parse-tags). (erc-parse-server-response): Use (erc-parse-tags) to parse message tags (if any), and store them in `erc-resopnse' struct. * lisp/erc/erc.el: (erc-display-message): Expose message tags with text properties of the corresponding message line. 2017-04-24 Lars Ingebrigtsen Add image sizing tests for an image that's narrow Needlessly refactor tests for clarity 2017-04-23 Philipp Stephani Add missing remappings for Ido mode Among others, add a remapping for C-x 4 d, cf. Bug#26360. * lisp/ido.el (ido-mode): Remap missing commands. (ido-file-internal, ido-visit-buffer): Add support for new methods. (ido-display-buffer-other-frame) (ido-find-alternate-file-other-window, ido-dired-other-window) (ido-dired-other-frame): New commands. * test/lisp/ido-tests.el (ido-tests--other-window-frame): Add unit test for the bindings. 2017-04-23 Martin Rudalics Let w32_mouse_position pick a child window only if it has a child frame * src/w32term.c (w32_mouse_position): When using a frame found by ChildWindowFromPoint make sure it's a child frame (Bug#26615, maybe). 2017-04-23 Noam Postavsky Don't require bytecomp for running ert tests "Fix ert-tests when running compiled" 2016-12-06 accidentally introduced a dependency on `bytecomp' into `ert'. As mentioned in "Avoid ert test failures" 2017-04-18, the accidental dependency of ert on bytecomp was masked by loading other libraries until recently. * lisp/emacs-lisp/ert.el (ert--expand-should-1): Only use `byte-compile-macro-environment' if it's bound. * test/src/eval-tests.el: Add defvar for dynamic variable `byte-compile-debug'. 2017-04-23 Andrew G Cohen Eliminate unneeded warp-to-article in gnus article referral * lisp/gnus/gnus-sum.el (gnus-summary-refer-thread): (gnus-summary-refer-article): Remove gnus-warp-to article call. 2017-04-23 Andrew G Cohen Allow limiting gnus summary buffers to a thread * lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Include an optional argument to allow limiting the summary buffer to just the thread-related articles. (gnus-refer-thread-limit-to-thread): Introduce customizable variable to control whether thread-referral adds the thread to the summary buffer or limits to just the thread. (gnus-summary-refer-thread): Use the new variable. 2017-04-23 Andrew G Cohen Correct gnus-newsgroup-limits in gnus when including thread * lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Should only add one list of thread-related articles to gnus-newsgroup-limits rather than two. 2017-04-23 Andrew G Cohen Improve gnus thread matching of similar subjects * lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Use the more liberal gnus-general-simplify-subject regexp to find thread articles with similar subjects. 2017-04-22 Noam Postavsky Add new `lisp-indent-region' that doesn't reparse the code. Both `lisp-indent-region' and `lisp-indent-line' now use `syntax-ppss' to get initial state, so they will no longer indent string literal contents. * lisp/emacs-lisp/lisp-mode.el (lisp-ppss): New function, like `syntax-ppss', but with a more dependable item 2. (lisp-indent-region): New function, like `indent-region-line-by-line' but additionally keep a running parse state to avoid reparsing the code repeatedly. Use `lisp-ppss' to get initial state. (lisp-indent-line): Take optional PARSE-STATE argument, pass it to `calculate-lisp-indent', use `lisp-ppss' if not given. (lisp-mode-variables): Set `indent-region-function' to `lisp-indent-region'. 2017-04-22 Noam Postavsky Remove ignored argument from lisp-indent-line * lisp/emacs-lisp/lisp-mode.el (lisp-indent-line): Remove WHOLE-EXP argument, the behavior has long since been handled in `indent-for-tab-command'. Also remove redundant `beg' and `shift-amt' variables and use `indent-line-to'. 2017-04-22 Noam Postavsky * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Clean up marker. 2017-04-22 Noam Postavsky Don't reparse the sexp in indent-sexp (Bug#25122) * lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent): Let PARSE-START be a parse state that can be reused. (indent-sexp): Pass the running parse state to calculate-lisp-indent instead of the sexp beginning position. Saving the CONTAINING-SEXP-START returned by `calculate-lisp-indent' is no longer needed. Don't bother stopping if we don't descend below init-depth, since we now alway scan the whole buffer (via syntax-ppss) anyway. * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp): Add blank line to test case. 2017-04-22 Vibhav Pant Add cond test cases for singleton clauses. * test/lisp/emacs-lisp/bytecomp-tests.el: Add test cond forms where the default clause is a single non-nil expression. 2017-04-22 Vibhav Pant b-c--cond-jump-table-info: Use correct body for singleton clauses * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-jump-table-info): When a clause's body consists of a single constant expression, use that expression as the body to be compiled. This fixes switch bytecode evaluating to nil to such clauses. 2017-04-22 Philipp Stephani ffap: Don't switch window unless needed When using ffap-other-window, don't change the window configuration unless a new buffer has actually been created (Bug#25352). * lisp/ffap.el (ffap-other-frame): Don't change the window configuration if no new buffer has been created. * test/lisp/ffap-tests.el (ffap-other-window--bug-25352): Add unit test. 2017-04-22 Alan Mackenzie Fix fontification of C++ declaration with type FOO::FOO. * lisp/progmodes/cc-engine.el (c-find-decl-spots): Initialize cfd-top-level properly. (c-forward-decl-or-cast-1): On finding FOO::FOO, check it is followed by "(" before deciding it is a constructor. * lisp/progmodes/cc-fonts.el (c-font-lock-complex-decl-prepare): Negate the result of the c-bs-at-toplevel-p call passed to c-font-lock-declarators (simple bug fix). 2017-04-22 Philipp Stephani Fix usage of FRAME_Z_GROUP * src/nsterm.m (initFrameFromEmacs:): FRAME_Z_GROUP does not return a Lisp object, cf. Bug#26597. 2017-04-22 Alan Third Fix GNUstep build * src/nsfns.m (Fns_frame_z_list_order): Rewrite for GNUstep compatibility. * src/nsmenu.m (update_frame_tool_bar): Remove unused variable. 2017-04-21 Alan Third Add no-accept-focus and frame-list-z-order to NS port * lisp/frame.el (frame-list-z-order): Add NS. * src/nsfns.m: Add x_set_no_accept_focus to handler struct. (Fx_create_frame): Handle no-accept-focus parameter. (ns_window_is_ancestor): (Fns_frame_list_z_order): New functions. * src/nsterm.m (x_set_no_accept_focus): New function. (initFrameFromEmacs): Use EmacsWindow instead of EmacsFSWindow for non-fullscreen windows. (EmacsWindow:canBecomeKeyWindow): New function. 2017-04-21 Stefan Monnier Improve prefix handling for dash.el * lisp/emacs-lisp/autoload.el (autoload--make-defs-autoload): Don't drop dash's "-" prefixes. 2017-04-21 Stefan Monnier * lisp/emacs-lisp/cl-macs.el: Fix symbol-macrolet Revert 0d112c00ba0ec14bd3014efcd3430b9ddcfe1fc1 (to fix bug#26325) and use a different fix for bug#26068. (cl--symbol-macro-key): New function. (cl--sm-macroexpand, cl-symbol-macrolet): Use it instead of `symbol-name`. * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet): Failure is not expected any more. 2017-04-21 Eli Zaretskii Avoid infinite loop in redisplay when header-line-format is invalid * src/xdisp.c (handle_invisible_prop): Avoid inflooping when the string has an invalid %-construct in it and is displayed as part of mode-line or header-line. (Bug#26586) 2017-04-21 Lars Ingebrigtsen Add tests to check image scaling functionality This is in preparation to doing further work in this area to avoid regressions. * test/data/image/blank-200x100.png: New file for testing image scaling. * test/manual/image-size-tests.el: New file. 2017-04-21 Lars Ingebrigtsen Allow svg-image to take all create-image PROPS * lisp/svg.el (svg-image): Allow passing in PROPS when creating an image for convenience. 2017-04-21 George D. Plymale II (tiny change) Treat non-erroring lisp call as successful eshell command (Bug#26161) This lets a compound command like 'cd .. && echo ok' print 'ok', similar to how most other shells behave. * lisp/eshell/esh-cmd.el (eshell-exit-success-p): Only check if the last exit code was zero, rather than first checking whether the last command returned nil. (eshell-exec-lisp): Set `eshell-last-command-status' to 1 on error. 2017-04-21 Reuben Thomas Fix reading of tab settings in whitespace-mode lisp/whitespace.el (whitespace-indent-tabs-mode) whitespace-tab-width): Remove these variables. The underlying variables `indent-tabs-mode' and `tab-width' are already buffer-local when needed, and whitespace-mode never changes them. (whitespace-ensure-local-variables): Remove this function, which only existed to set the above variables. (whitespace-cleanup-region, whitespace-regexp) (whitespace-indentation-regexp, whitespace-report-region) (whitespace-turn-on, whitespace-color-on): Adjust these functions to use `indent-tabs-mode' and `tab-width' directly, and not call `whitespace-ensure-local-variables'. 2017-04-20 Stefan Monnier * lisp/vc/vc-hg.el (vc-hg-state-fast): Fix compiler warning by simplifying ascii-test. 2017-04-20 Vibhav Pant bytecomp: Don't inline functions that use byte-switch (Bug#26518) * lisp/emacs-lisp/bytecomp.el (byte-compile-unfold-bcf): Don't inline FORM if the bytecode uses the byte-switch instruction. It is impossible to guess the correct stack depth while inlining such bytecode, resulting in faulty code. 2017-04-20 Nicolas Petton Set Emacs version to 25.2 and update AUTHORS file * README: Set Emacs version to 25.2. * etc/HISTORY: Add release log. * lisp/ldefs-boot.el: * etc/AUTHORS: * ChangeLog.2: Update. 2017-04-20 Noam Postavsky Don't register "def" as an autoload prefix (Bug#26412) * lisp/emacs-lisp/autoload.el (autoload--make-defs-autoload): Don't accept "def" as a prefix. 2017-04-20 Stefan Monnier Use substring completion for Info menus and index * lisp/info.el (Info-complete-menu-item): Add `category' metadata. (Info-menu): Simplify now that we use the `default' arg of completing-read. * lisp/minibuffer.el (completion-category-defaults): Use substring completion for `info-menu`. 2017-04-19 Glenn Morris Remove some explicit runtime loads of pcase Pcase is macros, so these should have used eval-when-compile. Anyway, pcase entry points are autoloaded, so the compiler handles it. * lisp/profiler.el, lisp/emacs-lisp/eieio-core.el: * lisp/emacs-lisp/generator.el, lisp/emacs-lisp/subr-x.el: * lisp/progmodes/xref.el: No need to require pcase. 2017-04-19 Glenn Morris Stop cl-lib loading pcase at runtime The cause was an unexpanded pcase-defmacro in cl-loaddefs. * lisp/emacs-lisp/autoload.el (make-autoload): Treat pcase-defmacro like defmacro. 2017-04-19 Alan Third Note frame documentation exceptions for NS builds * doc/lispref/frames.texi (Management Parameters, Child Frames): Note NS differences. 2017-04-19 Alan Third Fix bug introduced by my last commit * src/nsterm.m (ns_draw_fringe_bitmap): Revert key-mashing accident. 2017-04-19 Alan Third Add new frame functionality to NS port * lisp/frame.el (frame-restack): Call ns-frame-restack. * src/keyboard.c (kbd_buffer_get_event) [HAVE_NS]: Enable MOVE_FRAME_EVENT handling. * src/frame.h: * src/frame.c: Enable 'z-group', 'undecorated' and 'parent' frame definitions. * src/nsfns.m: Add x_set_z_group, x_set_parent_frame and x_set_undecorated (Cocoa only) to handler struct. (Fx_create_frame): Handle 'z-group', 'parent-frame' and 'undecorated' frame parameter. (Fns_frame_restack): New function. * src/nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): FRAME_TOOLBAR_HEIGHT is no longer a variable. * src/nsterm.h (NS_PARENT_WINDOW_LEFT_POS, NS_PARENT_WINDOW_TOP_POS): Add #defines to find the screen position of the parent frame. (NS_TOP_POS): Remove defun. (EmacsView): Remove redundant toolbar variables and add createToolbar method. (FRAME_NS_TITLEBAR_HEIGHT, FRAME_TOOLBAR_HEIGHT): Always calculate the values instead of storing them in a variable. * src/nsterm.m (x_set_offset, windowDidMove): Take parent frame position into account when positioning frames. (initFrameFromEmacs): Remove toolbar creation code and handle new frame parameters. (x_set_window_size): Remove toolbar height calculation. (x_set_z_group): (x_set_parent_frame): (x_set_undecorated) [NS_IMPL_COCOA]: New function. (x_destroy_window): Detach parent if child closes. (updateFrameSize): Change NSTRACE message to reflect new reality and no longer reset frame size. (windowWillResize): Don’t change NS window name when the titlebar is invisible. (createToolbar): Move toolbar creation code into it’s own method. (toggleFullScreen): FRAME_TOOLBAR_HEIGHT and FRAME_NS_TITLEBAR_HEIGHT are no longer variables. (windowDidMove): Fire MOVE_FRAME_EVENT Emacs event. 2017-04-19 Glenn Morris Tweak bytecomp's loading of cl-extra * lisp/emacs-lisp/bytecomp.el: Don't force load of cl-extra in a post-bootstrap emacs where cl-loaddefs does exist. 2017-04-19 Glenn Morris Avoid unnecessary loading of subr-x at run-time * lisp/doc-view.el, lisp/filenotify.el, lisp/info-look.el: * lisp/svg.el, lisp/emacs-lisp/byte-opt.el, lisp/net/shr.el: * lisp/textmodes/sgml-mode.el, test/lisp/dom-tests.el: No need to load subr-x at run-time. * lisp/gnus/nnheader.el: No need to load subr-x. 2017-04-18 michael schuldt (tiny change) Use iteration in math-factorial-iter * lisp/calc/calc-comb.el (math-factorial-iter): Use iteration instead of recursion to avoid max-specpdl-size problem. 2017-04-18 Glenn Morris * test/lisp/kmacro-tests.el: Require seq, for seq-concatenate. 2017-04-18 Glenn Morris Avoid ert test failures * lisp/emacs-lisp/ert.el (ert--expand-should-1): Avoid errors related to undefined byte-compile-macro-environment. Somehow masked until very recently because loading seq (eg) loads bytecomp. http://hydra.nixos.org/build/51730765 2017-04-18 Eli Zaretskii Fix a typo in indexing the user manual * doc/emacs/cmdargs.texi (General Variables): Fix a horrible typo. 2017-04-18 Noam Postavsky Fix find-library-name for load-history entries with nil FILE-NAME (Bug#26355) * lisp/emacs-lisp/find-func.el (find-library--from-load-history): Rename from find-library--from-load-path. Check for `load-history' entries with nil FILE-NAMEs. Simplify by not double checking for suffixes and making use of `locate-file'. 2017-04-18 Alan Third YAMAMOTO Mitsuharu Use vfork if possible on Darwin (bug#26397) * src/conf_post.h (HAVE_WORKING_VFORK): Don't undef. (vfork): Don't define. * src/process.c (create_process) [DARWIN_OS]: Use fork if pty_flag is set, otherwise vfork. * src/callproc.c (call_process) [DARWIN_OS]: Use TIOCNOTTY to detach the controlling terminal instead of setsid. 2017-04-18 Fran Litterio Small erc-kill-channel fix (bug#23700) * lisp/erc/erc.el (erc-kill-channel): Handle null erc-default-target. 2017-04-18 Glenn Morris ediff: use user-error rather than debug-ignored-errors * lisp/vc/ediff-diff.el (ediff-prepare-error-list): * lisp/vc/ediff-help.el (ediff-help-for-quick-help): * lisp/vc/ediff-init.el (ediff-barf-if-not-control-buffer) (ediff-check-version): * lisp/vc/ediff-merg.el (ediff-shrink-window-C): * lisp/vc/ediff-mult.el (ediff-draw-dir-diffs, ediff-show-dir-diffs) (ediff-append-custom-diff, ediff-meta-show-patch) (ediff-filegroup-action, ediff-show-meta-buffer, ediff-show-registry) (ediff-get-meta-info, ediff-patch-file-form-meta): * lisp/vc/ediff-ptch.el (ediff-patch-file-internal): * lisp/vc/ediff-util.el (ediff-toggle-autorefine) (ediff--check-ancestor-exists, ediff-toggle-read-only) (ediff-toggle-wide-display, ediff-toggle-multiframe) (ediff-toggle-use-toolbar, ediff-toggle-show-clashes-only) (ediff-next-difference, ediff-previous-difference) (ediff-pop-diff, ediff-read-file-name, ediff-verify-file-buffer) (ediff-save-buffer): * lisp/vc/ediff-wind.el (ediff-make-wide-display): * lisp/vc/ediff.el (ediff-find-file, ediff-buffers-internal) (ediff-directories-internal, ediff-directory-revisions-internal) (ediff-regions-wordwise, ediff-regions-linewise) (ediff-load-version-control): Use user-error. (debug-ignored-errors): No longer modify. 2017-04-18 Glenn Morris mh-e: use user-error rather than debug-ignored-errors * lisp/mh-e/mh-alias.el (mh-alias-grab-from-field): * lisp/mh-e/mh-utils.el (mh-get-msg-num): Use user-error. (debug-ignored-errors): No longer modify. 2017-04-18 Glenn Morris ispell.el: use user-error rather than debug-ignored-errors * lisp/textmodes/ispell.el (ispell-get-word): Use user-error. (debug-ignored-errors): No longer modify. 2017-04-17 Paul Eggert * src/xterm.c (x_fill_rectangle): Now static. 2017-04-17 Paul Eggert Tighten recently-added UTF-8 check * src/coding.c (encode_coding_utf_8): Now extern. * src/terminal.c (terminal_glyph_code) [HAVE_STRUCT_UNIPAIR_UNICODE]: Check for UTF-8, not just for multibyte. 2017-04-17 David Engster xml: Properly handle symbol-qnames for attribute parsing * lisp/xml.el (xml-parse-attlist): Do not strip 'symbol-qnames from xml-ns argument (reverts aea67018) (Bug#26533). (xml-maybe-do-ns): Properly handle default namespace by not interning new symbol when 'special' flag is set. * test/lisp/xml-tests.el (xml-parse-test--namespace-attribute-qnames) (xml-parse-namespace-attribute-qnames): Add test for Bug#26533. 2017-04-17 Paul Eggert * src/lisp.h (STRING_SET_CHARS): Simplify assertion. 2017-04-17 Eli Zaretskii Fix assertion violations when displaying thread-related error * src/process.c (Faccept_process_output): Don't assume a thread's name is always a string. 2017-04-17 Paul Eggert dired ‘M’ should not complain about ‘.’ and ‘..’ * lisp/dired-aux.el (dired-do-redisplay): Allow redisplay of ‘.’ and ‘..’ (Bug#26528). 2017-04-17 Paul Eggert Remove unused coding enums * src/coding.h (enum coding_system_type, enum end_of_line_type): Remove; unused. 2017-04-17 Paul Eggert Work around bug with unibyte Linux consoles * src/terminal.c (terminal_glyph_code): Skip the UTF-8 stuff if the terminal's coding system is unibyte (Bug#26396). 2017-04-16 Teemu Likonen Fix org-agenda's command for calendar-lunar-phases Function org-agenda-phases-of-moon tries to call a non-existing function calendar-phases-of-moon. The correct function is calendar-lunar-phases. 2017-04-16 Michael Albinus Tuning for `separate' Tramp syntax * lisp/net/tramp.el (tramp-method-regexp): Fix it for `separate' syntax. (tramp-completion-file-name-regexp-separate): Simplify. * test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect-separate): Extend test. 2017-04-16 Alan Mackenzie Fix bug #26529: C-h k errors with a lambda function bound to a key. * lisp/help-fns.el (help-fns--signature, describe-function-1): Check `function' is a symbol before trying to get property `reader-construct' from it. 2017-04-16 Simen Heggestøyl Fix highlighting of short selectors in CSS mode * lisp/textmodes/css-mode.el (css--font-lock-keywords): Highlight selectors where the part before a colon is only one character long, such as `a:hover'. 2017-04-16 Eli Zaretskii Fix redisplay performance problems with some fonts * src/font.c (font_list_entities): Revert part of the changes introduced on Apr 2, 2014 to fix bug#17125. It turns out having zero_vector in the font-cache is an important indication that cannot be removed. (Bug#21028) 2017-04-16 Eli Zaretskii Add assertion to STRING_SET_CHARS * src/lisp.h (STRING_SET_CHARS): Add an assertion and commentary to prevent incorrect usage. For details, see this discussion: https://lists.gnu.org/r/emacs-devel/2017-04/msg00412.html. 2017-04-16 Eli Zaretskii Avoid compilation warnings on MS-Windows * src/w32term.c (w32_read_socket): Avoid compiler warnings about parentheses around assignment. * src/w32fns.c (w32_createwindow): Remove unused variable dwStyle. Use "|=" where appropriate. 2017-04-16 Paul Eggert Merge from gnulib This incorporates: 2017-04-14 intprops: try to avoid tickling similar bugs 2017-04-14 intprops: port to Oracle Studio 12.3 x86 * doc/misc/texinfo.tex, lib/intprops.h: Copy from gnulib. 2017-04-15 Martin Rudalics Fix bugs in `with-displayed-buffer-window' and `fit-window-to-buffer' * lisp/window.el (with-displayed-buffer-window): When a 'window-height' action alist entry specifies a function, call `temp-buffer-window-show' with a '(window-height . t)' dummy entry so `window--try-to-split-window' will bind `window-combination-limit' to t and that function does not resize any other window but the one we split this one off (Bug#25055, Bug#25179). (fit-window-to-buffer): Call `window-max-delta' with NOUP t so we steal space only from windows in the same combination. Stealing space from other windows would not allow us to return that space later when this window is deleted (Bug#25055, Bug#25179). 2017-04-15 Glenn Morris Avoid userlock queries hanging forever in batch mode * lisp/userlock.el (ask-user-about-lock) (ask-user-about-supersession-threat): Abort in batch mode. 2017-04-14 Martin Rudalics Fix segfault when calling frame_ancestor_p (Bug#26493) * src/xterm.c (handle_one_xevent): Check that hf was not reset before calling frame_ancestor_p (Bug#26493). 2017-04-14 Martin Rudalics A few additional copy-edits in documentation of frames * doc/lispref/frames.texi (Frame Layout) (Implied Frame Resizing): Windows -> MS-Windows. (Deleting Frames): Fix typo. 2017-04-14 Glenn Morris Use user-error for some ert.el errors * lisp/emacs-lisp/ert.el (ert-read-test-name, ert-delete-all-tests) (ert-results-find-test-at-point-other-window, ert-describe-test): Use user-error. 2017-04-14 Glenn Morris Use user-error for customize's "invalid face" error * lisp/cus-edit.el (customize-face): Use user-error. (debug-ignored-errors): No more need to add "Invalid face". 2017-04-14 Glenn Morris Remove duplicate lisp-eval-defun definition * lisp/emacs-lisp/lisp-mode.el (lisp-eval-defun): Autoload rather than defining a stub. 2017-04-14 Glenn Morris * lisp/Makefile.in (check-defun-dups): Ignore obsolete files. 2017-04-14 Glenn Morris Create generated lisp files before main loaddefs.el This should improve reproducibility of lisp/loaddefs.el. * lisp/Makefile.in (gen-lisp): New phony target. ($(lisp)/loaddefs.el, compile-main): Depend on gen-lisp. * src/Makefile.in ($(leimdir)/leim-list.el): Depend on all of ../leim. * lisp/cedet/semantic.el (semantic-mode): * lisp/cedet/semantic/fw.el (top-level): * lisp/emacs-lisp/eieio-core.el (top-level): Robustify to generated input files maybe not yet existing. 2017-04-14 Paul Eggert Fix minor quoting issues in Makefile.in * Makefile.in (install-arch-dep, uninstall): Quote EMACS and EMACS_NAME more consistently. 2017-04-13 Glenn Morris * Makefile.in (install-etc): Use existing Makefile variables. 2017-04-13 Eli Zaretskii Minor copyedits of recent changes in documentation * doc/lispref/frames.texi (Frame Layout, Frame Position) (Frame Size, Frame Interaction Parameters, Input Focus) (Raising and Lowering, Child Frames): Improve wording and indexing. * doc/emacs/cmdargs.texi (Borders X): Improve indexing. 2017-04-13 Glenn Morris Small src/Makefile simplification * src/Makefile.in ($(lispsource)/international/ucs-normalize.elc) ($(lispsource)/term/ns-win.elc): Combine rules. 2017-04-13 Simen Heggestøyl Add grid layout module to CSS property list * lisp/textmodes/css-mode.el (css-property-alist) (css-value-class-alist): Add new properties and value classes from CSS Grid Layout Module. 2017-04-13 Martin Rudalics Describe recent frame and window changes in manuals * doc/emacs/emacs.texi (Top): * doc/emacs/cmdargs.texi (Borders X): Clearly separate the terms "outer border" (for the X border which can be set from within Emacs) and "external border" (for the border which is added by the window manager). * doc/lispref/display.texi (Tooltips): Clarify slightly. * doc/lispref/elisp.texi (Top): Update node and section names. * doc/lispref/frames.texi (Frames): Describe difference between top-level and child frames. (Frame Layout): Describe outer border. Add more details about how Emacs obtains the outer size and position of a frame and about menu bar/tool bar wrapping. Add references to new frame parameters. (Size and Position): Remove subsection. (Frame Position): New subsection excerpted from the earlier Size and Position subsection. Clarify positioning concepts and some of their shortcomings. Describe `move-frame-functions'. (Frame Size): New subsection excerpted from the earlier Size and Position subsection. Describe how to track frame size changes and the new function `frame-size-changed-p'. (Position Parameters): Describe child frame positioning. Warn about negative offsets. Describe 'z-group' parameter. (Size Parameters): Describe 'text-pixels' specification facility and new 'min-width' and 'min-height' parameters. (Layout Parameters): Clarify description of 'tool-bar-lines' and 'menu-bar-lines' parameters. (Frame Interaction Parameters): New subsubsection describing 'parent-frame', 'delete-before', 'mouse-wheel-frame' and 'no-other-frame' parameters. (Management Parameters): Describe 'skip-taskbar', 'no-focus-on-map', 'no-accept-focus', 'undecorated' and 'override-redirect' parameters. (Deleting Frames): Describe handling of 'delete-before' parameter and child frames for `delete-frame' and `delete-other-frames'. (Finding All Frames): Describe `frame-list-z-order' and handling of 'no-other-frame' parameter by `next-frame'. (Minibuffers and Frames): Minor clarifications. (Input Focus): Document `x-focus-frame'. Clarify descriptions of `focus-in-hook', `focus-out-hook' and `focus-follows-mouse'. (Visibility of Frames): Describe mapping and how the visibility of a parent frame affects that of its child frames. (Raising and Lowering): Describe restacking of frames and z-groups. (Child Frames): New section. * doc/lispref/windows.texi (Selecting Windows): Describe additional semantics of NORECORD argument of `select-window' and how `buffer-list-update-hook' can emulate a "select window hook". (Mouse Window Auto-selection): New section. 2017-04-13 Damien Cassou Fix imenu--sort-by-position for non-pairs parameters (bug#26457) * lisp/imenu.el (imenu--sort-by-position): Fix to accept lists beyond pairs. * test/lisp/imenu-tests.el: Add 2 tests for `imenu--sort-by-position`. 2017-04-13 Eli Zaretskii Avoid unnecessary regeneration of the entire loaddefs.el * lisp/Makefile.in (autoloads .PHONY): Add commentary explaining why $(lisp)/loaddefs.el is a dependency of '.PHONY'. ($(lisp)/loaddefs.el): Copy an existing loaddefs.el to loaddefs.tmp before running 'batch-update-autoloads' on it, to avoid slow regeneration of the full contents. (Bug#26459) Use 'move-if-change' instead of 'mv', to avoid producing a new Emacs binary when not necessary. 2017-04-13 Dmitry Gutov Handle indentation of nested ternary operators in JS * lisp/progmodes/js.el (js--looking-at-operator-p): Handle nested ternary operators. 2017-04-12 Eli Zaretskii Don't call 'kill-this-buffer' outside of menus * lisp/simple.el (kill-current-buffer): New function. (completion-list-mode-map): Use it instead of kill-this-buffer. * lisp/type-break.el (type-break-mode): * lisp/term/ns-win.el (global-map): * lisp/progmodes/gdb-mi.el (gdb-memory-mode-map) (gdb-disassembly-mode-map, gdb-frames-mode-map) (gdb-locals-mode-map, gdb-registers-mode-map): * lisp/org/org-mhe.el (org-mhe-follow-link): * lisp/net/secrets.el (secrets-mode-map): * lisp/net/eudc.el (eudc-mode-map): * lisp/net/eudc-hotlist.el (eudc-hotlist-mode-map): Use kill-current-buffer instead of kill-this-buffer. (Bug#26466) 2017-04-12 Eli Zaretskii * lisp/menu-bar.el (kill-this-buffer): Doc fix. (Bug#26466) 2017-04-12 Martin Rudalics New internal-border face and args for select-window and x-focus-frame Add `internal-border' face and handle it whenever clearing the internal border. If NORECORD equals the symbol 'mark-for-redisplay', `select-window' will not record the window but still mark it for redisplay. The new argument NOACTIVATE for `x-focus-frame' tries to not activate FRAME when set. * lisp/faces.el (internal-border): New face. * lisp/mwheel.el (mwheel-scroll): Select window to scroll with `mark-for-redisplay'. * lisp/scroll-bar.el (scroll-bar-drag) (scroll-bar-horizontal-drag, scroll-bar-scroll-down) (scroll-bar-scroll-up, scroll-bar-toolkit-scroll) (scroll-bar-toolkit-horizontal-scroll): Select window to scroll with `mark-for-redisplay'. * lisp/window.el (handle-select-window): When `focus-follows-mouse' is not 'auto-raise' try to not activate FRAME. * src/dispextern.h (face_id): Add INTERNAL_BORDER_FACE_ID. * src/frame.c (Fx_focus_frame): New argument NOACTIVATE. * src/frame.h (x_focus_frame): Update extern declaration. * src/gtkutil.c (xg_clear_under_internal_border): Remove function. (xg_frame_resized, xg_frame_set_char_size): Call x_clear_under_internal_border. (xg_tool_bar_callback): Adapt x_focus_frame call. * src/gtkutil.h (xg_clear_under_internal_border): Remove declaration. * src/nsfns.m (x_focus_frame): Add argument NOACTIVATE. * src/w32fns.c (x_clear_under_internal_border): Fill border with internal-border background if specified. * src/w32term.h (x_clear_under_internal_border): Add extern declaration. * src/w32term.c (x_after_update_window_line): Fill border with internal-border background if specified. (w32_set_vertical_scroll_bar, w32_set_horizontal_scroll_bar) (x_scroll_bar_clear, w32_read_socket): Call x_clear_under_internal_border. (x_focus_frame): New argument NOACTIVATE. * src/window.c (select_window): Mark WINDOW for redisplay when NORECORD equals 'mark-for-redisplay'. (Fselect_window): Update doc-string. (syms_of_window): Define Qmark_for_redisplay. * src/xdisp.c (clear_garbaged_frames, echo_area_display) (redisplay_internal): Call x_clear_under_internal_border. * src/xfaces.c (lookup_basic_face): Handle `window-divider' and `internal-border' faces. (realize_basic_faces): Realize `internal-border' face. (syms_of_xfaces): Define Qinternal_border. * src/xfns.c (x_set_internal_border_width): Remove call for xg_clear_under_internal_border. (x_focus_frame): New argument NOACTIVATE. When non-nil try to not activate frame. * src/xterm.c (x_fill_rectangle): No more static. (x_clear_under_internal_border, x_after_update_window_line): Fill border with internal-border background if specified. (xt_horizontal_action_hook): Rewrite. (handle_one_xevent): Call x_clear_under_internal_border. * src/xterm.h (x_fill_rectangle): Add extern declaration. 2017-04-12 Paul Eggert Port recent frame changes to --enable-gcc-warnings * src/frame.c (next_frame, prev_frame): Remove now-redundant assertions. * src/frame.h (FOR_EACH_FRAME): Assume Vframe_list is nonempty. 2017-04-12 Tak Kunihiro Scroll right and left using wheel-right and wheel-left. These changes also make use of touchpad and trackpad (Bug#26347). * doc/emacs/frames.texi (Mouse Commands): Document horizontal scrolling using the mouse wheel. * lisp/mwheel.el (mwheel-scroll): Respond to wheel-right and wheel-left. (mwheel-tilt-scroll-p, mwheel-flip-direction) (mwheel-scroll-left-function, mwheel-scroll-right-function): New defcustoms. (mouse-wheel-left-event, mouse-wheel-right-event): New variables, events that calls wheel-left/right. * etc/NEWS: Mention horizontal scrolling using the mouse wheel. 2017-04-12 Eli Zaretskii * lisp/Makefile.in (autoloads-force): Fix usage of ".PHONY". 2017-04-12 Martin Rudalics Add new frame parameters and associated functions Add new frame parameters `undecorated', `override-redirect', `parent-frame', `skip-taskbar', `no-focus-on-map', `no-accept-focus', `z-group', `delete-before', `no-other-frame', `mouse-wheel-frame', `min-width', `min-height'. Add new functions `frame-restack' and `frame-list-z-order'. * lisp/cus-start.el (focus-follows-mouse): Adapt customization type. * lisp/frame.el (handle-delete-frame): Handle child and `delete-before' frames. (other-frame): Stop looking for other frame after one round. (frame-list-z-order, frame-restack): New functions. (delete-other-frames): Handle child frames. * lisp/frameset.el (frameset-persistent-filter-alist) (frameset--record-relationships): Handle `delete-before', `parent-frame' and `mouse-wheel-frame' parameters. Rename latter from `frameset--record-minibuffer-relationships'. (frameset--restore-frame): Handle ‘parent-frame’ parameter specially. (frameset-restore): Handle `delete-before', `parent-frame' and `mouse-wheel-frame' parameters. * lisp/mwheel.el (mwheel-scroll): Handle `mouse-wheel-frame' parameter. * lisp/window.el (window--min-size-ignore-p): Fix doc-string. (mouse-autoselect-window-select, handle-select-window): Major rewrite. Try to not ignore errors. Handle auto-selection of child frames and different values of `focus-follows-mouse'. * src/frame.c (frame_windows_min_size): Handle new `min-width' and `min-height' frame parameters. (make_frame): Initialize new frame structure members. (do_switch_frame): Don't reset internal_last_event_frame for descendant frames. (Fframe_parent, frame_ancestor_p, Fframe_ancestor_p): New functions. (candidate_frame): Don't return `no-other-frame' frame. (other_frames): New function replacing other_visible_frames. (delete_frame): Rewrite. Handle child and `delete-before' frames. (Fmake_frame_invisible): Call other_frames. (store_frame_param): Check `delete-before' and `parent-frame' parameters for circular dependencies. (frame_parms, syms_of_frame): Add entries for and define new frame parameters. (focus_follows_mouse): New meaningful value `auto-raise'. * src/frame.h (z_group): New enumeration type. (frame): New slots parent_frame, undecorated, override_redirect, skip_taskbar, no_focus_on_map, no_accept_focus, z_group. (fset_parent_frame): New inlined function. (FRAME_UNDECORATED, FRAME_OVERRIDE_REDIRECT) (FRAME_PARENT_FRAME, FRAME_SKIP_TASKBAR, FRAME_NO_FOCUS_ON_MAP) (FRAME_NO_ACCEPT_FOCUS, FRAME_Z_GROUP, FRAME_Z_GROUP_NONE) (FRAME_Z_GROUP_ABOVE, FRAME_Z_GROUP_ABOVE_SUSPENDED) (FRAME_Z_GROUP_BELOW): New macros. (frame_ancestor_p): Add declaration. * src/gtkutil.c (xg_create_frame_widgets): Handle `undecorated' and `override-redirect' frame parameters. (x_wm_set_size_hint): None for child frames. (xg_set_undecorated, xg_frame_restack, xg_set_skip_taskbar) (xg_set_no_focus_on_map, xg_set_no_accept_focus) (xg_set_override_redirect): New functions. (xg_update_scrollbar_pos, xg_update_horizontal_scrollbar_pos): Don't let scrollbars obscure child frames. * src/gtkutil.h: (xg_set_undecorated, xg_frame_restack) (xg_set_skip_taskbar, xg_set_no_focus_on_map) (xg_set_no_accept_focus, xg_set_override_redirect): Add extern declarations. * src/nsfns.m (ns_frame_parm_handlers): Add entries for new frame parameters. (Fx_create_frame): Install `min-width' and `min-height' frame parameters. * src/nsterm.m (mouseMoved:): Handle focus_follows_mouse change. * src/w32fns.c (WS_EX_NOACTIVATE): Define if necessary. (x_real_positions): Handle child frames. (x_set_menu_bar_lines): Don't for child frames. (x_set_undecorated, x_set_parent_frame, x_set_skip_taskbar) (x_set_no_focus_on_map, x_set_no_accept_focus) (x_set_z_group): New functions. (w32_createvscrollbar, w32_createhscrollbar): Don't draw scroll bars over child frames. (w32_createwindow): Handle new frame parameters and child frames. (w32_wnd_proc): Let mouse clicks into a child frame activate the frame. Try to handle the `no-accept-focus' parameter. Do SetFocus when our window is brought to top or becomes the foreground window. (w32_window): Don't initialize menu bar for child frames. (Fx_create_frame): Handle new frame parameters. (x_create_tip_frame): Set explicit_parent slot. (w32_dialog_in_progress): New function. (Fx_file_dialog): Handle `z-group-above' frames. (w32_frame_list_z_order, Fw32_frame_list_z_order) (w32_frame_restack, Fw32_frame_restack): New functions. (w32_frame_parm_handlers): Add entries for new frame parameters. * src/w32font.c (Fx_select_font): Handle `z-group-above' frames during font selection dialogue. * src/w32term.c (construct_mouse_wheel): Construct mouse wheel event from F's w32 window. (w32_mouse_position): Handle child frames. (w32_set_vertical_scroll_bar, w32_set_horizontal_scroll_bar): Don't draw scroll bars over child frames. (w32_read_socket): Always erase background of child frames. When generating SELECT_WINDOW_EVENTs handle new value of `focus-follows-mouse' and handle `no-accept-focus' parameter. Handle `mouse-wheel-frame' parameter. (x_calc_absolute_position, x_set_offset, x_set_window_size): Handle child frames. (x_make_frame_visible): Handle child frames specially. Handle `no-focus-on-map' parameter. * src/w32term.h (w32_dialog_in_progress): Add external declaration. * src/xdisp.c (x_consider_frame_title, prepare_menu_bars): Not for child frames. * src/xfns.c (Xm/MwmUtil.h): Include for WM hints. (PropMotifWmHints, PROP_MOTIF_WM_HINTS_ELEMENTS): Define for non-Motif, non-GTK case. (x_real_pos_and_offsets): Handle child frames. (x_set_undecorated, x_set_parent_frame) (x_set_no_focus_on_map, x_set_no_accept_focus) (x_set_override_redirect): New functions. (x_set_menu_bar_lines): Not for child frames. (x_window): Handle `undecorated' and `override_redirect' cases. (Fx_create_frame): Handle new frame parameters. (frame_geometry): Handle child frames and outer border. (x_frame_list_z_order, Fx_frame_list_z_order) (x_frame_restack, Fx_frame_restack): New functions. (Fx_file_dialog, Fx_select_font): Set x_menu_set_in_use. (x_frame_parm_handlers): Add entries for new frame parameters. * src/xmenu.c (x_menu_set_in_use): Handle `z-group-above' frames. * src/xterm.c (x_set_frame_alpha): Don't set alpha of parent for child frames. (XTmouse_position): Handle child frames. (x_scroll_bar_create, x_scroll_bar_expose): Don't let scroll bars obscure child frames. (handle_one_xevent): Handle child frame positions. If necessary set `skip-taskbar' and reassign proper `z-group' when we are mapped. When generating SELECT_WINDOW_EVENTs handle new value of `focus-follows-mouse'. Handle `mouse-wheel-frame' parameter. Let mouse clicks into a child frame activate the frame. (x_calc_absolute_position, x_set_offset): Handle child frames specially. (x_set_skip_taskbar, x_set_z_group): New functions. (x_make_frame_visible): Handle child frames. (ATOM_REFS_INIT): Add entries for Xatom_net_wm_state_skip_taskbar, Xatom_net_wm_state_above, Xatom_net_wm_state_below. * src/xterm.h (top-level): Declare Xatom_net_wm_state_above, Xatom_net_wm_state_below and Xatom_net_wm_state_skip_taskbar. (x_set_skip_taskbar, x_set_z_group): Add extern declarations. 2017-04-11 Glenn Morris Update a package test for hydra * test/lisp/emacs-lisp/package-tests.el (with-package-test): Also bind package-gnupghome-dir, see eg http://hydra.nixos.org/build/51462182 . 2017-04-11 Martin Rudalics Frame movement, focus and hook related changes New hook `move-frame-functions'. Run `focus-in-hook' after switching to frame that gets focus. Don't run XMoveWindow for GTK. * lisp/frame.el (handle-move-frame, frame-size-changed-p): New functions. * src/frame.c (do_switch_frame): Simplify code. (Fhandle_switch_frame): Switch frame before running `handle-focus-in'. (Vfocus_in_hook, Vfocus_out_hook): Clarify doc-strings. (Vmove_frame_functions): New hook variable. * src/keyboard.c (kbd_buffer_get_event): Handle MOVE_FRAME_EVENT. Handle SELECT_WINDOW_EVENT separately. (head_table): Add Qmove_frame entry. (syms_of_keyboard): Add Qmove_frame. (keys_of_keyboard): Define key for `move-frame'. * src/termhooks.h (event_kind): Add MOVE_FRAME_EVENT. * src/w32term.c (w32_read_socket): Create MOVE_FRAME_EVENT. * src/window.c (run_window_size_change_functions): Record size of FRAME's minibuffer window too. * src/xterm.c (handle_one_xevent): Create MOVE_FRAME_EVENT. (x_set_offset): For GTK call gtk_widget_move instead of XMoveWindow. 2017-04-11 Werner LEMBERG Avoid abort in ftfont.c due to faulty fonts * src/ftfont.c (ftfont_get_metrics): Try loading the font without hinting, before aborting. (Bug#25945) 2017-04-11 Eli Zaretskii Document 'line-pixel-height' * doc/lispref/display.texi (Size of Displayed Text): Document line-pixel-height. Suggested by Tak Kunihiro . (Bug#26379) 2017-04-11 Jens Lechtenboerger Introduce customizable variable 'package-gnupghome-dir' * lisp/emacs-lisp/package.el (package-import-keyring) (package--check-signature-content, package-check-signature): Use new variable package-gnupghome-dir to control which GnuPG homedir to use. * doc/emacs/package.texi: Mention package-gnupghome-dir. * etc/NEWS: Mention package-gnupghome-dir. 2017-04-11 Martin Rudalics Set x_gtk_use_window_move by default for fixing bug#25851 and bug#25943 This activates a change that was installed a few weeks ago but whose ChangeLog was inadvertently dropped during its commit. The proper ChangeLog is included below as part of the present commit. * src/gtkutil.c (xg_set_geometry): When x_gtk_use_window_move is set avoid calling x_gtk_parse_geometry (Bug#25851). (x_wm_set_size_hint): When x_gtk_use_window_move is set, set PPosition, USPosition and USSize flags if requested. * src/xterm.c (x_set_offset): With GTK when x_gtk_use_window_move is set, leave it entirely to gtk_window_move to position the window and skip any post-adjustments (Bug#25851 and Bug#25943). (x_gtk_use_window_move): New variable. 2017-04-10 Alan Mackenzie Fix a loop in C Mode caused by inadequate analysis of comments. After M-;, and the insertion of the opening "/*", the CC Mode after-change function got confused, since the new comment opener matched the end of a subsequent comment, but moving back over that comment did not come back to the starting point. Fix this. * lisp/progmodes/cc-engine.el (c-end-of-macro): Add a limit parameter, wherer point is left if no end-of-macro is found before it. (c-forward-sws): Change the `safe-start' mechanism. Now `safe-start' is non-nil except where we have an unclosed block comment at the end of a macro. This enables us to populate the cache more fully, at the cost of some run time. 2017-04-10 Lars Brinkhoff Add PVSIZE function to return the size of a pseudovector. * src/lisp.h (PVSIZE): New function. * src/chartab.c (copy_char_table): * src/data.c (Ftype_of, Finteractive_form, Faref, Faset): * src/doc.c (Fdocumentation, store_function_docstring): * src/eval.c (Fcommandp, funcall_lambda, lambda_arity, Ffetch_bytecode): * src/fns.c (Flength, Fcopy_sequence): * src/font.h (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P): * src/lread.c (substitute_object_recurse): * src/print.c (print_object): Use it. 2017-04-10 Michael Albinus Add Tramp tests * lisp/net/tramp.el (tramp-syntax): Adapt docstring. * test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax-simplified) (tramp-test01-file-name-syntax-separate) (tramp-test02-file-name-dissect-simplified) (tramp-test02-file-name-dissect-separate): New tests. 2017-04-10 Martin Rudalics Make sure that `shell' makes BUFFER current * lisp/shell.el (shell): Restrict scope of recently added `with-current-buffer' to make sure that BUFFER is current when `shell' returns. 2017-04-10 Jim Blandy Default to PCRE syntax when reading .hgignore * lisp/vc/vc-hg.el (vc-hg--slurp-hgignore-1): Default to the PCRE syntax (bug#26249). 2017-04-09 Michael Albinus Document Tramp changes * doc/misc/tramp.texi (Change file name syntax): New node. * etc/NEWS: Mention `tramp-change-syntax'. * lisp/net/tramp.el (tramp-file-name-regexp): Reinsert it. External packages uses it. (tramp-syntax): Set also `tramp-file-name-regexp'. 2017-04-09 Paul Eggert Merge from gnulib (Bug#26398) This incorporates: 2017-04-08 getopt: prefer - to _ in new file names 2017-04-08 getopt: port recent getopt changes to macOS * .gitignore: Add lib/getopt-cdefs.h. * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h. * lib/getopt-core.h: Rename from lib/getopt_core.h. * lib/getopt-ext.h: Rename from lib/getopt_ext.h. * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h. * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h. * lib/getopt.in.h, lib/unistd.in.h, m4/getopt.m4: Copy from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. 2017-04-09 Ken Raeburn Write updated loaddefs to a temporary file and rename into place. In a parallel build, byte compilation can be running at the same times as loaddefs.el is being regenerated. However, in a CANNOT_DUMP build, loaddefs.el is read at startup and must always be in a usable state. * lisp/Makefile.in ($(lisp)/loaddefs.el): Write generated output to loaddefs.el.new and then rename it to loaddefs.el. 2017-04-09 Glenn Morris In the manual, mention pops and imaps * doc/emacs/rmail.texi (Movemail, Remote Mailboxes): Mention pops and imaps protocols. 2017-04-09 Glenn Morris * doc/emacs/rmail.texi: Prefer @command to @code for movemail. 2017-04-09 Sergey Poznyakoff Fix rmail handling of movemail protocols (bug#18278) * lisp/mail/rmail.el (rmail-remote-proto-p): New function. (rmail-parse-url): Return protocol in second list element. Only use passwords with remote mailboxes. (rmail-insert-inbox-text): Handle non-simple local mailboxes (maildir, MH, etc.). 2017-04-09 Glenn Morris Fix typos in manual re movemail local mailboxes * doc/emacs/rmail.texi (Movemail, Other Mailbox Formats): Fix examples of local mailbox urls. 2017-04-08 Glenn Morris * lisp/gnus/nnmail.el (nnmail-crosspost-link-function): Simplify. 2017-04-08 Glenn Morris Remove references to OS/2 in code, doc, and comments * lisp/gnus/nnheader.el (nnheader-read-timeout) (nnheader-file-name-translation-alist): Remove OS/2 case, and simplify. * lisp/emulation/viper-util.el (viper-color-defined-p): * lisp/net/pop3.el (pop3-read-timeout): * lisp/net/imap.el (imap-read-timeout): * lisp/url/url-privacy.el (url-setup-privacy-info): Remove OS/2 case. * lisp/emulation/viper-ex.el (viper-glob-function): * lisp/vc/ediff-util.el (ediff-submit-report): Doc fix. * lisp/cus-edit.el (custom-display): Remove "pm" (OS/2). * doc/emacs/msdos-xtra.texi (MS-DOS): * doc/misc/gnus.texi (Various Various): * doc/misc/viper.texi (Rudimentary Changes): Remove mentions of OS/2. 2017-04-08 Michael Albinus Tune Tramp syntax * lisp/net/tramp-cmds.el (tramp-change-syntax): Use `tramp-syntax-values'. * lisp/net/tramp-compat.el (tramp-compat-tramp-syntax): New defsubst. * lisp/net/tramp.el (tramp-syntax): Rename possible values. (tramp-syntax-values): New defun. (tramp-prefix-format, tramp-method-regexp) (tramp-postfix-method-format, tramp-prefix-ipv6-format) (tramp-postfix-ipv6-format, tramp-postfix-host-format) (tramp-completion-file-name-regexp): Use `tramp-compat-tramp-syntax' and changed values. (tramp-completion-file-name-regexp-default): Rename from `tramp-completion-file-name-regexp-unified'. Adapt docstring. (tramp-completion-file-name-regexp-simplified): Rename from `tramp-completion-file-name-regexp-old-style'. Adapt docstring. (tramp-initial-completion-file-name-regexp): Use `tramp-completion-file-name-regexp-default'. (tramp-run-real-handler): Do not autoload any longer. 2017-04-08 Mark Oteiza Replace more nested ifs with cond This is a continuation of d526047 "Replace more nested ifs with cond". * lisp/play/dunnet.el (dun-firstword, dun-firstwordl, dun-cat): Use when and cond where appropriate. 2017-04-08 Mark Oteiza Adjust the edebug spec of if-let* This was fixed in Bug#24748, but now looking more closely, using gate in the spec seems correct. See (info "(elisp) Backtracking"). * lisp/emacs-lisp/subr-x.el (if-let*): Use gate in edebug spec. 2017-04-08 Mark Oteiza Replace some uses of cl-member-if with apply From the mhtml-mode series. Some of the uses of cl-lib are not necessary. * lisp/align.el: Don't require cl-lib. (align-region): Use apply instead of cl-member-if. * lisp/emulation/viper.el: Don't require cl-lib. (viper-mode, this-major-mode-requires-vi-state): Use apply instead of cl-member-if. 2017-04-08 Philipp Stephani Validate SPEC of `dolist', cf. Bug#25477. * lisp/subr.el (dolist): Test type and length of SPEC. * test/lisp/subr-tests.el (subr-tests--dolist--wrong-number-of-args): Add unit test. 2017-04-08 Philipp Stephani Add unit test for Bug#26378 * test/lisp/vc/ediff-diff-tests.el (ediff-diff-tests--ediff-exec-process--nil): New unit test. 2017-04-08 Lars Brinkhoff Fix circular read syntax for records. * src/lread.c (substitute_object_recurse): Work with records. * test/src/lread-tests.el (lread-record-1): New test. 2017-04-08 Paul Eggert Deprecate copy-record in favor of copy-sequence Since copy-sequence seems to be needed anyway for records, have it work on records, and remove copy-record as being superfluous. * doc/lispref/records.texi (Records, Record Functions): * lisp/emacs-lisp/cl-macs.el (cl-defstruct): * lisp/emacs-lisp/eieio.el (make-instance, clone): * test/src/alloc-tests.el (record-3): Use copy-sequence, not copy-record, to copy records. * doc/lispref/sequences.texi (Sequence Functions) (Array Functions): Document that aref and copy-sequence work on records. * etc/NEWS: Omit copy-record. * src/alloc.c (Fcopy_record): Remove. * src/data.c (Faref): Document that arg can be a record. * src/fns.c (Fcopy_sequence): Copy records, too. 2017-04-08 Paul Eggert Fix dependency checking in src/Makefile.in * src/Makefile.in (AUTO_DEPEND, DEPDIR, DEPFLAGS): Move includes of dependency files until after ALLOBJS is defined, since it uses ALLOBJS. Otherwise, some dependencies will be missed. 2017-04-08 Paul Eggert Minor tuneup of write-region change * src/fileio.c (write_region): Use SCHARS, not Flength, on a value known to be a string. 2017-04-08 Noam Postavsky Adjust write-region so file name is at the beginning again * lisp/epa-file.el (epa-file-write-region): * lisp/gnus/mm-util.el (mm-append-to-file): * lisp/jka-compr.el (jka-compr-write-region): * lisp/net/ange-ftp.el (ange-ftp-write-region): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region): * src/fileio.c (write_region): Put file name at the beginning and move number of characters to the end of the message. 2017-04-08 Kaushal Modi Check that file argument is a string * lisp/vc/ediff-diff.el (ediff-exec-process): Check that the argument passed to `file-local-copy' is a string (Bug#26378). Also fix the existing comment for this function, and convert it to its doc-string. 2017-04-08 Noam Postavsky Fix handling of non-integer START param to write-region The previous patch for Bug#354 incorrectly assumed that START would always be an integer. * lisp/epa-file.el (epa-file-write-region): * lisp/jka-compr.el (jka-compr-write-region): * lisp/net/ange-ftp.el (ange-ftp-write-region): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region): * src/fileio.c (write_region): Handle nil and string values of START. 2017-04-07 Glenn Morris * lisp/textmodes/rst.el (rst-package-emacs-version-alist): Fixes. 2017-04-07 Michael Albinus Add Tramp versions to `customize-package-emacs-version-alist' * lisp/net/trampver.el (customize-package-emacs-version-alist): Add Tramp versions to `customize-package-emacs-version-alist'. 2017-04-07 Tom Tromey * lisp/textmodes/rst.el (rst-toc-link-keymap): Move before first use. 2017-04-07 Lars Brinkhoff * doc/lispref/records.texi (Record Functions): fix typo. 2017-04-07 Paul Eggert More casefiddle minor fixes * src/casefiddle.c (case_character_impl): Omit unnecessary casts. (case_character_impl): Avoid reevaluation of CHAR_TABLE_REF. (GREEK_CAPITAL_LETTER_SIGMA): Fix typo in my previous change. 2017-04-07 Jeff Clough Output number of characters added to file (Bug#354) * src/fileio.c (write_region): * lisp/epa-file.el (epa-file-write-region): * lisp/jka-compr.el (jka-compr-write-region): * lisp/net/ange-ftp.el (ange-ftp-write-region): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region): * lisp/gnus/mm-util.el (mm-append-to-file): Functions now output characters written in addition to file name. * doc/lispref/files.texi: Added documentation to write-region and append-to-file describing their output. 2017-04-07 Noam Postavsky Fix ‘!NILP (Vpurify_flag)’ assertion failure during temacs bootstrap The recent changes to src/casefiddle.c cause build failure as seen below: Starting program: /home/npostavs/src/emacs/emacs-bootstrapping/src/temacs --batch --load loadup bootstrap [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Loading loadup.el (source)... Using load-path (/home/npostavs/src/emacs/emacs-bootstrapping/lisp /home/npostavs/src/emacs/emacs-bootstrapping/lisp/emacs-lisp /home/npostavs/src/emacs/emacs-bootstrapping/lisp/language /home/npostavs/src/emacs/emacs-bootstrapping/lisp/international /home/npostavs/src/emacs/emacs-bootstrapping/lisp/textmodes /home/npostavs/src/emacs/emacs-bootstrapping/lisp/vc) Loading emacs-lisp/byte-run (source)... Loading emacs-lisp/backquote (source)... Loading subr (source)... Loading version (source)... Loading widget (source)... Loading custom (source)... Loading emacs-lisp/map-ynp (source)... Loading international/mule (source)... Loading international/mule-conf (source)... lread.c:3914: Emacs fatal error: assertion failed: !NILP (Vpurify_flag) Breakpoint 1, terminate_due_to_signal at emacs.c:363 363 signal (sig, SIG_DFL); (gdb) bt #0 0x0000000000579826 in terminate_due_to_signal at emacs.c:363 #1 0x000000000060ec33 in die at alloc.c:7352 #2 0x000000000066db40 in intern_c_string_1 at lread.c:3914 #3 0x0000000000576884 in intern_c_string at lisp.h:3790 #4 0x00000000005dc84f in prepare_casing_context at casefiddle.c:69 #5 0x00000000005dd37f in casify_object at casefiddle.c:311 #6 0x00000000005dd47f in Fcapitalize at casefiddle.c:356 #7 0x00000000006325ac in eval_sub at eval.c:2219 #8 0x0000000000632368 in eval_sub at eval.c:2184 #9 0x000000000063446c in apply_lambda at eval.c:2875 #10 0x00000000006329af in eval_sub at eval.c:2294 #11 0x000000000062d462 in Fprogn at eval.c:449 #12 0x000000000062d4cf in prog_ignore at eval.c:461 #13 0x000000000062f19c in Fwhile at eval.c:982 #14 0x00000000006321f4 in eval_sub at eval.c:2172 #15 0x000000000062d462 in Fprogn at eval.c:449 #16 0x000000000062f0c4 in Flet at eval.c:963 #17 0x00000000006321f4 in eval_sub at eval.c:2172 #18 0x0000000000632963 in eval_sub at eval.c:2290 #19 0x000000000062d462 in Fprogn at eval.c:449 #20 0x000000000062f0c4 in Flet at eval.c:963 #21 0x00000000006321f4 in eval_sub at eval.c:2172 #22 0x0000000000668caa in readevalloop at lread.c:1927 #23 0x0000000000667253 in Fload at lread.c:1332 #24 0x0000000000632683 in eval_sub at eval.c:2233 #25 0x0000000000668caa in readevalloop at lread.c:1927 #26 0x0000000000667253 in Fload at lread.c:1332 #27 0x0000000000632683 in eval_sub at eval.c:2233 #28 0x0000000000631be5 in Feval at eval.c:2041 #29 0x000000000057e1af in top_level_2 at keyboard.c:1121 #30 0x000000000062ffc7 in internal_condition_case at eval.c:1324 #31 0x000000000057e1f0 in top_level_1 at keyboard.c:1129 #32 0x000000000062f51e in internal_catch at eval.c:1091 #33 0x000000000057e0ea in command_loop at keyboard.c:1090 #34 0x000000000057d6d5 in recursive_edit_1 at keyboard.c:697 #35 0x000000000057d8b4 in Frecursive_edit at keyboard.c:768 #36 0x000000000057b55b in main at emacs.c:1687 Lisp Backtrace: "capitalize" (0xffffcf70) "format" (0xffffd130) "define-charset" (0xffffd370) "while" (0xffffd560) "let" (0xffffd7c0) "dolist" (0xffffd910) "let" (0xffffdb70) "load" (0xffffdfe0) "load" (0xffffe4a0) * src/casefiddle.c (syms_of_casefiddle): Declare four new symbols: Qtitlecase, Qspecial_uppercase, Qspecial_lowercase and Qspecial_titlecase. (prepare_casing_context): Use aforementioned symbols. 2017-04-07 Paul Eggert Merge from gnulib This merges some getopt fixes from Zack Weinberg, and affects only non-GNUish platforms. It incorporates: 2017-04-06 getopt-gnu: omit some duplicate code 2017-04-06 getopt-posix: use angle-bracket include 2017-04-06 getopt: annotate files with relationship to glibc 2017-04-06 getopt: split up getopt.in.h and eliminate __need_getopt 2017-04-06 getopt: better handling of ambiguous options 2017-04-06 getopt: refactor long-option handling 2017-04-06 getopt: tidy up _getopt_initialize a bit 2017-04-06 getopt: merge from glibc: repetition reduction 2017-04-06 getopt: clean up error reporting 2017-04-06 getopt: fix fencepost error in ambiguous-W-option handling 2017-04-06 getopt: clean up getopt.c and getopt1.c file headers 2017-04-06 getopt: harmonize comments with glibc 2017-04-06 getopt: remove USE_NONOPTION_FLAGS 2017-04-06 getopt: tabify, in preparation for merge with glibc 2017-04-06 md5, sha1, sha256, sha512: Add comments re correctness * build-aux/config.sub, doc/misc/texinfo.tex, lib/getopt.c: * lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h, lib/md5.c: * lib/md5.h, lib/sha1.c, lib/sha1.h, lib/sha256.c, lib/sha256.h: * lib/sha512.c, lib/sha512.h, lib/unistd.in.h, m4/getopt.m4: Copy from gnulib. * lib/getopt_cdefs.in.h, lib/getopt_core.h, lib/getopt_ext.h: * lib/getopt_pfx_core.h, lib/getopt_pfx_ext.h: New files, taken from gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. 2017-04-07 Hong Xu * src/search.c (Fre_search_forward, Fre_search_backward): Improve doc (Bug#25193). 2017-04-07 Noam Postavsky Mention that processes start in default-directory (Bug#18515) * doc/lispref/processes.texi (Synchronous Processes): (Asynchronous Processes): * lisp/subr.el (start-process): * src/callproc.c (call-process): Mention that the subprocess starts in `default-directory' when local, suggest `start-file-process' and `process-file' otherwise. 2017-04-07 Noam Postavsky * src/xdisp.c (vmessage, message): Clarify commentary. 2017-04-07 Paul Eggert Minor casefiddle.c cleanups * src/casefiddle.c: Redo recent changes to match GNU style, and prefer C99-style decls within blocks. (GREEK_CAPITAL_LETTER_SIGMA): Rename from CAPITAL_SIGMA, so that we are merely using the Unicode name, and make it a constant rather than a macro. All uses changed. (SMALL_SIGMA): Remove; unused. (GREEK_SMALL_LETTER_FINAL_SIGMA): Rename from SMALL_FINAL_SIGMA, and make it a constant rather than a macro. All uses changed. (do_casify_multibyte_string): Use ‘verify’ rather than an unportable static_assertion local. 2017-04-07 Paul Eggert * lisp/international/README: Update to match current list. 2017-04-06 Paul Eggert Fix 'make clean' in lib subdirectory * lib/Makefile.in (clean): Remove *-t files. (mostlyclean): Remove MOSTLYCLEANFILES that are not *-t files. This removes files like lib/getopt.h that should be removed even if this configuration did not need to build them. (maintainer-clean): Remove TAGS here, not in distclean, to be consistent with ../src/Makefile.in. 2017-04-06 Michael Albinus Add new Tramp syntax * lisp/net/tramp-cmds.el (tramp-change-syntax): New defun. * lisp/net/tramp.el (tramp-syntax): Change default to `def'. Add :set function. (tramp-prefix-port-format): Simplify. (tramp-file-name-regexp-separate): Remove. (tramp-initial-file-name-regexp) (tramp-completion-file-name-regexp-old-style) (tramp-initial-completion-file-name-regexp): New defconst. (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-file-name-regexp) (tramp-completion-file-name-regexp) (tramp-rfn-eshadow-update-overlay-regexp): Change them to be defuns. (tramp-tramp-file-p, tramp-find-method) (tramp-dissect-file-name, tramp-make-tramp-file-name) (tramp-completion-make-tramp-file-name) (tramp-rfn-eshadow-update-overlay) (tramp-register-autoload-file-name-handlers) (tramp-register-file-name-handlers) (tramp-unload-file-name-handlers) (tramp-completion-handle-file-name-all-completions) (tramp-completion-dissect-file-name, tramp-clear-passwd): * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered) (tramp-compute-multi-hops): Use them. 2017-04-06 Michal Nazarewicz Implement special sigma casing rule (bug#24603) In Greek, a sigma character has two lower case forms which depend on their position in the word. Implement logic determining it. * src/casefiddle.c (struct casing_context, case_character_impl): Don’t assume inword is true when flag is CASE_UP and false when flag is CASE_DOWN. For final sigma detection we need this information tracked reliably;. (CAPITAL_SIGMA, SMALL_SIGMA, SMALL_FINAL_SIGMA): New macros defining Unicode code point of different forms of sigma letter. (case_character): Implement support for final sigma casing. (do_casify_multibyte_string, do_casify_multibyte_region): Update after changes to case_character. * test/src/casefiddle-tests.el (casefiddle-tests-casing): Add test cases for final sigma. 2017-04-06 Michal Nazarewicz Support casing characters which map into multiple code points (bug#24603) Implement unconditional special casing rules defined in Unicode standard. Among other things, they deal with cases when a single code point is replaced by multiple ones because single character does not exist (e.g. ‘fi’ ligature turning into ‘FL’) or is not commonly used (e.g. ß turning into SS). * admin/unidata/SpecialCasing.txt: New data file pulled from Unicode standard distribution. * admin/unidata/README: Mention SpecialCasing.txt. * admin/unidata/unidata-gen.el (unidata-gen-table-special-casing, unidata-gen-table-special-casing--do-load): New functions generating ‘special-uppercase’, ‘special-lowercase’ and ‘special-titlecase’ character Unicode properties built from the SpecialCasing.txt Unicode data file. * src/casefiddle.c (struct casing_str_buf): New structure for representing short strings used to handle one-to-many character mappings. (case_character_imlp): New function which can handle one-to-many character mappings. (case_character, case_single_character): Wrappers for the above functions. The former may map one character to multiple (or no) code points while the latter does what the former used to do (i.e. handles one-to-one mappings only). (do_casify_natnum, do_casify_unibyte_string, do_casify_unibyte_region): Use case_single_character. (do_casify_multibyte_string, do_casify_multibyte_region): Support new features of case_character. * (do_casify_region): Updated to reflact do_casify_multibyte_string changes. (casify_word): Handle situation when one character-length of a word can change affecting where end of the word is. (upcase, capitalize, upcase-initials): Update documentation to mention limitations when working on characters. * test/src/casefiddle-tests.el (casefiddle-tests-char-properties): Add test cases for the newly introduced character properties. (casefiddle-tests-casing): Update test cases which are now passing. * test/lisp/char-fold-tests.el (char-fold--ascii-upcase, char-fold--ascii-downcase): New functions which behave like old ‘upcase’ and ‘downcase’. (char-fold--test-match-exactly): Use the new functions. This is needed because otherwise fi and similar characters are turned into their multi- -character representation. * doc/lispref/strings.texi: Describe issue with casing characters versus strings. * doc/lispref/nonascii.texi: Describe the new character properties. 2017-04-06 Michal Nazarewicz Split up casify_region function (bug#24603) No functional changes at this time but splitting casify_region into a function dealing with multibyte and another dealing with unibyte buffers will make future code changes slightly easier. * src/casefiddle.c (casify_region): Move most of the code into two new functions: (do_casify_multibyte_region, do_casify_unibyte_region): new functions. 2017-04-06 Michal Nazarewicz Add support for title-casing letters (bug#24603) * src/casefiddle.c (struct casing_context, prepare_casing_context): Add titlecase_char_table member. It’s set to the ‘titlecase’ Unicode property table if capitalization has been requested. (case_character): Make use of the titlecase_char_table to title-case initial characters when capitalising. * test/src/casefiddle-tests.el (casefiddle-tests--characters, casefiddle-tests-casing): Update test cases which are now passing. 2017-04-06 Michal Nazarewicz Introduce case_character function Move single-character casing logic into a separate function so that it is collected in a single place. This will make future changes to the logic easier. This commit introduces no functionality changes. * src/casefiddle.c (struct casing_context, prepare_casing_context): New structure for saving casing context and function to initialize it. (case_character): New function which cases character base on provided context. (do_casify_integer, do_casify_multibyte_string, do_casify_unibyte_string, casify_object, casify_region): Convert to use casing_context and case_character. 2017-04-06 Michal Nazarewicz Split casify_object into multiple functions casify_object had three major cases to cover and those were mostly independent of each other. Move those branches to separate function so it’s easier to comprehend each individual case. While at it, use somewhat more descriptive ch and cased variable names rather than c and c1. This commit introduces no functional changes. * src/casefiddle.c (casify_object): Split into… (do_casify_integer, do_casify_multibyte_string, do_casify_unibyte_string): …new functions. 2017-04-06 Lars Brinkhoff Update documentation for type semantics of records. * doc/lispref/objects.texi (Record Type): improve description of what `type-of' returns for records. (Type Descriptors): new section. * doc/lispref/elisp.texi: reference it. * doc/lispref/records.texi (Records): reference it. Document behavior when type slot is a record. * admin/alloc-colors.c (Fmake_record, Frecord): mention type desciptors. 2017-04-06 Stefan Monnier * lisp/help-fns.el (describe-symbol): `nil' is not an interesting default. 2017-04-06 Tom Tromey require cl-lib to fix fallout from mhtml series * lisp/align.el, lisp/calc/calc-embed.el, lisp/cedet/semantic.el, lisp/emulation/viper.el: Require cl-lib. 2017-04-06 Ken Raeburn In CANNOT_DUMP builds, allow editing of files named "dump". * lisp/loadup.el: Perform the "dump" or "bootstrap" actions like calling dump-emacs only if dump-emacs is defined; otherwise, don't treat those command-line argument specially. 2017-04-06 Ken Raeburn In CANNOT_DUMP builds, don't prepare for unexec. Having a command-line argument of "dump" or "bootstrap" would trigger behavior like not installing signal handlers. In CANNOT_DUMP modes, we should get signal handlers installed regardless of whatever funny file names we decide to edit. src/emacs.c (main) [CANNOT_DUMP]: Don't enable the "dumping" alterations to initialization that prepares the process for unexec. 2017-04-06 Ken Raeburn Allow a CANNOT_DUMP build to use exec-path during bootstrap. During a bootstrap, loading rmail.el invokes movemail to determine its flavor, but call-process doesn't work if exec-path is nil. * lisp/loadup.el: Only clear e