1. 29 Nov, 2019 3 commits
    • Eli Zaretskii's avatar
      Document 'zap-up-to-char' · baa9ea73
      Eli Zaretskii authored
      * doc/emacs/killing.texi (Other Kill Commands): Document
      'zap-up-to-char'.
      
      * lisp/simple.el (zap-to-char): Mention 'zap-up-to-char' in
      the doc string.  (Bug#38392)
      baa9ea73
    • Eli Zaretskii's avatar
      Improve indexing of VC log commands · b20d7f2c
      Eli Zaretskii authored
      * doc/emacs/maintaining.texi (VC Change Log): Add missing
      index entries.
      b20d7f2c
    • Eli Zaretskii's avatar
      Improve documentation and UI of 'C-x v L' · 6e41b08e
      Eli Zaretskii authored
      * lisp/vc/vc.el (vc-print-root-log): Improve the wording of
      the doc string and of the prompt for the root directory.
      
      * etc/NEWS: Improve and expand the wording of the changes in
      'C-x v L'.
      
      * doc/emacs/maintaining.texi (VC Change Log): Improve and
      clarify wording of the 'C-x v L' description.
      6e41b08e
  2. 28 Nov, 2019 1 commit
    • Noam Postavsky's avatar
      Improve errors & warnings due to fancy quoted vars (Bug#32939) · b2790db0
      Noam Postavsky authored
      Add some hints to the message for byte compiler free & unused variable
      warnings, and 'void-variable' errors where the variable has confusable
      quote characters in it.
      * lisp/help.el (uni-confusables), uni-confusables-regexp): New
      constants.
      (help-command-error-confusable-suggestions): New function, added to
      `command-error-function'.
      (help-uni-confusable-suggestions): New function.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-variable-ref):
      * lisp/emacs-lisp/cconv.el (cconv--analyze-use): Use it.
      
      * lisp/emacs-lisp/lisp-mode.el
      (lisp--match-confusable-symbol-character): New function.
      (lisp-fdefs): Use it to fontify confusable characters with
      font-lock-warning-face when they occur in symbol names.
      * doc/lispref/modes.texi (Faces for Font Lock):
      * doc/lispref/objects.texi (Basic Char Syntax): Recommend backslash
      escaping of confusable characters, and mention new fontification.
      * etc/NEWS: Announce the new fontification behavior.
      * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-fontify-confusables):
      New test.
      b2790db0
  3. 27 Nov, 2019 4 commits
    • Juri Linkov's avatar
      'C-1 C-x v L' asks for revision and shows its log entry with diff (bug#38044) · f655967b
      Juri Linkov authored
      * doc/emacs/maintaining.texi (VC Change Log): Explain the numeric prefix arg
      of 'C-x v L' (vc-print-root-log).
      
      * lisp/vc/vc-git.el (vc-git-print-log): Add command line option "-p"
      when vc-log-view-type is 'with-diff'.
      (vc-git-log-view-mode): Use long style when vc-log-view-type is 'with-diff'.
      
      * lisp/vc/vc.el (vc-print-log-internal): Add optional arg 'type'.
      (vc-log-internal-common): Use 'region-history-mode' when type is
      'with-diff' and backend supports 'region-history-mode'.
      (vc-print-root-log): Add optional arg 'revision'.  In interactive spec
      read a revision when current-prefix-arg is 1.  Use current-prefix-arg
      "as is" when it is a number.  Show revision in long style with diff
      when limit is 1 and revision is non-nil.
      f655967b
    • Mattias Engdegård's avatar
      Mouse rectangular region selection (bug#38013) · 4eb7db5d
      Mattias Engdegård authored
      Make it possible to select a rectangular region using the mouse.
      The standard binding is C-M-mouse-1.
      
      * lisp/mouse.el (mouse-scroll-subr): Add ADJUST argument.
      (mouse-drag-region-rectangle): New.
      * lisp/rect.el (rectangle--reset-point-crutches): New.
      (rectangle--reset-crutches): Use 'rectangle--reset-point-crutches'.
      * src/xdisp.c (remember_mouse_glyph, syms_of_xdisp):
      Add 'mouse-fine-grained-tracking'.
      * doc/lispref/commands.texi (Motion Events):
      Document 'mouse-fine-grained-tracking'.
      * doc/emacs/frames.texi (Mouse Commands):
      * doc/emacs/killing.texi (Rectangles):
      * etc/NEWS: Document rectangular selection with the mouse.
      4eb7db5d
    • Lars Ingebrigtsen's avatar
      Fix documentation of eieio-class-name · 99532a87
      Lars Ingebrigtsen authored
      * doc/misc/eieio.texi (Predicates): Update the documentation of
      eieio-class-name to say what it really returns (bug#38365).
      99532a87
    • Mattias Engdegård's avatar
      Fine-grained NS modifier key settings (bug#38296) · 215f678c
      Mattias Engdegård authored
      For the ns-KEY-modifier and ns-right-KEY-modifier variables, KEY
      being 'control', 'command', 'alternate' and 'function', allow
      values on the form (:ordinary SYMBOL :function :SYMBOL :mouse SYMBOL),
      so that the key can be used for different modifiers (or none) in
      different contexts.  This is particularly useful for using the macOS
      Option key for extended character entry while still using it as an
      Emacs modifier for function keys and mouse clicks.
      
      * src/nsterm.m (mod_of_kind, right_mod, nil_or_none): Helper functions.
      (EV_MODIFIERS2): Add KIND argument.
      (EV_MODIFIERS): Adapt call to EV_MODIFIERS2.
      (ns_get_shifted_character): Use correct event kind for modifiers.
      (ns-alternate-modifier, ns-right-alternate-modifier)
      (ns-command-modifier, ns-right-command-modifier)
      (ns-control-modifier, ns-right-control-modifier)
      (ns-function-modifier): Rewrite doc strings for new data format.
      (QCordinary, QCfunction, QCmouse): Define symbols.
      * lisp/cus-start.el: Conform to new data types.
      * doc/emacs/macos.texi (Mac / GNUstep Basics)
      (Mac / GNUstep Customization): Improved documentation.
      * etc/NEWS: Mention the change.
      215f678c
  4. 26 Nov, 2019 4 commits
    • Juri Linkov's avatar
      message uses minibuffer-message in the active minibuffer (bug#17272 bug#19064) · aa89c84e
      Juri Linkov authored
      * doc/lispref/display.texi (Displaying Messages): Explain the
      behavior of using minibuffer-message if the minibuffer is active.
      
      * src/editfns.c (Fmessage_in_echo_area): New function with body
      copied from Fmessage.
      (Fmessage): Call minibuffer-message in the active minibuffer,
      otherwise call Fmessage_in_echo_area.
      (message-in-echo-area): New variable.
      
      * lisp/isearch.el (isearch--momentary-message, isearch-message):
      * lisp/minibuffer.el (minibuffer-message, minibuffer-completion-help):
      Use 'message-in-echo-area' instead of 'message' where necessary.
      
      * lisp/autorevert.el (auto-revert-handler):
      * lisp/man.el (Man-bgproc-sentinel):
      * lisp/subr.el (do-after-load-evaluation):
      Revert recent changes that replaced 'message' with 'minibuffer-message'.
      This is not needed anymore since 'message' uses 'minibuffer-message'
      in the active minibuffer.
      aa89c84e
    • Martin Rudalics's avatar
      2019-11-26 Martin Rudalics <rudalics@gmx.at> · 261b060f
      Martin Rudalics authored
      * lisp/window.el (switch-to-visible-buffer): Declare obsolete.
      (switch-to-prev-buffer-skip): New option.
      (switch-to-prev-buffer, switch-to-next-buffer): Obey
      'switch-to-prev-buffer-skip'.
      * doc/lispref/windows.texi (Window History): Remove
      description of 'switch-to-visible-buffer'.  Describe new
      option 'switch-to-prev-buffer-skip'
      * etc/NEWS: Mention switch from 'switch-to-visible-buffer' to
      'switch-to-prev-buffer-skip'.
      261b060f
    • Robert Pluim's avatar
      Extend network-interface-list to return IPv6 and network info · 650a514e
      Robert Pluim authored
      Bug#38218
      
      * src/process.c (Fnetwork_interface_list): Extend argument list to
      allow requesting full network info and/or IPv4/IPv6 info.
      (network_interface_list) [HAVE_GETIFADDRS]: Use getifaddrs to retrieve
      interface IP addresses.
      
      * src/process.h: Update prototype of network_interface_list.
      
      * src/w32.c (g_b_init_get_adapters_addresses): New init flag.
      (globals_of_w32): Initialize it.
      (GetAdaptersAddresses_Proc): New function typedef.
      (get_adapters_addresses): New wrapper function.
      (init_winsock): Load htonl and ntohl.
      (sys_htonl, sys_ntohl): New wrapper functions.
      (network_interface_list): Implement in terms of
      get_adapters_addresses.
      
      * nt/inc/sys/socket.h: Add sys_htonl and sys_ntohl prototypes.
      
      * etc/NEWS: Announce IPv4/IPv6 changes in network-interface-list.
      
      * doc/lispref/processes.texi (Misc Network): Document updated arglist
      and return values for network-interface-list.
      650a514e
    • Lars Ingebrigtsen's avatar
      Remove outdated documentation · c97c7bb2
      Lars Ingebrigtsen authored
      * doc/misc/eieio.texi (Predicates): Remove documentation of
      same-class-fast-p, which was removed some years back (bug#38362).
      c97c7bb2
  5. 23 Nov, 2019 3 commits
    • Robert Pluim's avatar
      Default network-stream-use-client-certificates to nil · 8934762b
      Robert Pluim authored
      * lisp/net/network-stream.el (network-stream-use-client-certificates):
      Default to nil.
      (open-network-stream): Adapt description to new default of
      network-stream-use-client-certificates.
      
      * etc/NEWS: network-stream-use-client-certificates defaults to nil
      now.
      
      * doc/lispref/processes.texi (Network): Flip
      network-stream-use-client-certificates description.
      
      * doc/misc/auth.texi (Help for users): Mention
      network-stream-use-client-certificates.
      8934762b
    • Robert Pluim's avatar
      Have what-cursor-position optionally show character name · a27c8929
      Robert Pluim authored
      * lisp/simple.el (what-cursor-show-names): New defcustom, default nil.
      (what-cursor-position): Show character names if what-cursor-show-names
      is non-nil.
      
      * doc/emacs/basic.texi (Position Info): Add what-cursor-show-names
      description.
      
      * etc/NEWS: Announce what-cursor-show-names.
      a27c8929
    • Eli Zaretskii's avatar
      Improve indexing of modifier keys · be779cf7
      Eli Zaretskii authored
      * doc/emacs/commands.texi (User Input): Add index entry for
      the Alt key serving as Meta.
      * doc/emacs/custom.texi (Modifier Keys): Add index entries for
      Alt, Super, and Hyper modifier keys.  (Bug#38315)
      be779cf7
  6. 21 Nov, 2019 4 commits
    • Eli Zaretskii's avatar
      Fix a recent change in ELisp manual · 80b8a609
      Eli Zaretskii authored
      * doc/lispref/objects.texi (Special Read Syntax): Fix wording
      of the last change: don't document #' twice.  (Bug#38278)
      80b8a609
    • Eli Zaretskii's avatar
      Support 'vc-region-history' for Mercurial · 1110d142
      Eli Zaretskii authored
      * lisp/vc/vc-hg.el (vc-hg-region-history)
      (vc-hg-region-history-font-lock, vc-hg-region-history-mode):
      New functions.
      (vc-hg-region-history-mode-map)
      (vc-hg--log-view-long-font-lock-keywords)
      (vc-hg-region-history-font-lock-keywords): New variables.
      * lisp/vc/vc-git.el (vc-git-region-history): Update commentary.
      
      * doc/emacs/maintaining.texi (VC Change Log): Add
      'vc-region-history' to the table at beginning of node.  Update
      the VCSes that support 'vc-region-history'.
      
      * etc/NEWS: Mention the new feature of vc-hg.el.
      1110d142
    • Lars Ingebrigtsen's avatar
      Fix up previous #' documentation addition · 4ba880e5
      Lars Ingebrigtsen authored
      * doc/lispref/objects.texi (Special Read Syntax): Add an xref for
      the #' (bug#38278).
      4ba880e5
    • Lars Ingebrigtsen's avatar
      Document the #' syntax · 7ceb22e3
      Lars Ingebrigtsen authored
      * doc/lispref/objects.texi (Special Read Syntax): Document the #'
      syntax (bug#38278).
      7ceb22e3
  7. 20 Nov, 2019 2 commits
    • Michael Albinus's avatar
      Add renaming of remote buffer file names to Tramp · 03593177
      Michael Albinus authored
      * doc/misc/tramp.texi (Default User): Fix typo.
      (Cleanup remote connections): Adapt arguments of
      `tramp-cleanup-connection'.
      (Renaming remote files): New node.
      (Frequently Asked Questions): New item "How to save files when a
      remote host isn't reachable anymore?".
      
      * etc/NEWS: Add `tramp-rename-files' and `tramp-rename-these-files'.
      
      * lisp/net/tramp-cmds.el (tramp-default-rename-alist)
      (tramp-confirm-rename-file-names): New defcustoms.
      (tramp-rename-read-file-name-dir)
      (tramp-rename-read-file-name-init): New defsubsts.
      (tramp-default-rename-file, tramp-rename-files)
      (tramp-rename-these-files): New defuns.
      
      * lisp/net/tramp-integration.el (ido, ivy): Integrate with them.
      03593177
    • Robert Pluim's avatar
      Remove info references to gmane web search · 2709b1e4
      Robert Pluim authored
      * doc/misc/gnus.texi (Foreign Groups, Web Searches, What is nnir?):
      (Setting up nnir, Associating Engines, The imap Engine):
      (Customizations): Remove references to gmane web search.
      2709b1e4
  8. 16 Nov, 2019 2 commits
  9. 15 Nov, 2019 2 commits
  10. 14 Nov, 2019 1 commit
    • Eli Zaretskii's avatar
      Fix recent documentation changes · 75875cac
      Eli Zaretskii authored
      * doc/lispref/minibuf.texi (Multiple Queries): Move the
      reference to 'read-char-from-minibuffer' from here...
      * doc/lispref/commands.texi (Reading One Event): ...to here.
      Fix the wording of the description of
      'read-char-from-minibuffer'.
      75875cac
  11. 12 Nov, 2019 3 commits
    • Juri Linkov's avatar
      * lisp/dired.el (dired-dwim-target): Add new choices (bug#35385) · d0351f4d
      Juri Linkov authored
      * lisp/dired.el (dired-dwim-target): Add choices
      dired-dwim-target-next and dired-dwim-target-recent.
      
      * lisp/dired-aux.el (dired-dwim-target-next)
      (dired-dwim-target-recent): New functions.
      (dired-dwim-target-directories): Call either of them.
      
      * doc/emacs/dired.texi (Operating on Files): Mention new
      preferences in dired-dwim-target.
      d0351f4d
    • Paul Eggert's avatar
      Conditionally omit edition numbers, dates in doc · 4cccf765
      Paul Eggert authored
      This redoes the 2019-11-02T00:24:02!eggert@cs.ucla.edu patch,
      updated after consultation with John Sullivan.
      Omit printed edition numbers in online manuals while keeping
      them in printed manuals.  In online manuals the edition
      numbers seem to cause more confusion than they cure; e.g.,
      https://shop.fsf.org/books/gnu-emacs-manual-18th-edition-v-261
      currently advertises "18th edition" even as it points to
      https://www.gnu.org/software/emacs/manual/pdf/emacs.pdf which
      says "Seventeenth Edition".  It is simpler and less confusing
      to stick to one version number like "27.0" in online manuals.
      For printed manuals people can run, e.g., "texi2any -D
      'EDITION Nineteenth'" when generating the 19th printed edition
      of the Emacs manual.
      * doc/emacs/emacs.texi (EDITION):
      * doc/lispintro/emacs-lisp-intro.texi (edition-number, update-date):
      * doc/lispref/elisp.texi (VERSION, DATE):
      Remove definitions.  Instead, let the person printing the book
      specify these values, with the default being the online version
      which does not have printed edition numbers.
      * doc/lispintro/emacs-lisp-intro.texi (titlepage-edition-number):
      New flag, for the edition number as it appears on the title page.
      4cccf765
    • Lars Ingebrigtsen's avatar
      Rename font-log-refontify · c5fd4d37
      Lars Ingebrigtsen authored
      * lisp/font-lock.el (font-lock-debug-fontify): Rename to make it
      clearer what the function is for.
      * doc/lispref/modes.texi (Font Lock Basics): Ditto.
      c5fd4d37
  12. 10 Nov, 2019 2 commits
    • Paul Eggert's avatar
      Document Lisp floats a bit better · b6942c0c
      Paul Eggert authored
      * doc/lispref/numbers.texi (Float Basics):
      * doc/misc/cl.texi (Implementation Parameters):
      * lisp/emacs-lisp/cl-lib.el (cl-most-positive-float)
      (cl-least-positive-float)
      (cl-least-positive-normalized-float, cl-float-epsilon)
      (cl-float-negative-epsilon):
      Document IEEE floating point better.  Don’t suggest that Emacs
      might use some floating-point format other than IEEE format, as
      Emacs currently assumes IEEE in several places and there seems
      little point in removing those assumptions.
      b6942c0c
    • Juri Linkov's avatar
      Move read-char-from-minibuffer from simple.el to subr.el and document it. · f216f388
      Juri Linkov authored
      * doc/lispref/minibuf.texi (Multiple Queries):
      Document read-char-from-minibuffer (bug#10477, bug#38076).
      
      * lisp/subr.el (read-char-history)
      (read-char-from-minibuffer-map)
      (read-char-from-minibuffer-map-hash)
      (read-char-from-minibuffer-insert-char)
      (read-char-from-minibuffer-insert-other, empty-history)
      (read-char-from-minibuffer): Move from simple.el to subr.el.
      f216f388
  13. 09 Nov, 2019 4 commits
    • Juri Linkov's avatar
      'y-or-n-p' now uses the minibuffer to read 'y' or 'n' answer (bug#38076) · a26a8cc1
      Juri Linkov authored
      * doc/lispref/minibuf.texi (Yes-or-No Queries): Update the fact
      that y-or-n-p uses the minibuffer.
      
      * lisp/subr.el (y-or-n-p-history-variable): New variable.
      (y-or-n-p-map): New keymap.
      (y-or-n-p-insert-y, y-or-n-p-insert-n, y-or-n-p-insert-other):
      New commands.
      (y-or-n-p): Rewrite to use read-from-minibuffer and make-composed-keymap
      with y-or-n-p-map and query-replace-map.
      a26a8cc1
    • Alan Mackenzie's avatar
      CC Mode. Allow fontification of "wrong" style comments with warning face. · b293aa91
      Alan Mackenzie authored
      This fixes bug #4192.
      
      * etc/NEWS: Add a new entry.
      
      * lisp/progmodes/cc-defs.el (c-font-lock-flush): New macro.
      
      * lisp/progmodes/cc-cmds.el (c-toggle-comment-style): On toggling the comment
      style, invoke c-font-lock-flush when c-mark-wrong-style-of-comment is non-nil,
      to cause that marking to be done instead on the other style of comment.
      
      * lisp/progmodes/cc-fonts.el (c-maybe-font-lock-wrong-style-comments): New
      function.
      (c-cpp-matchers): Call c-maybe-font-lock-wrong-style-comments when
      appropriate.
      
      * lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment): New customizable
      option.
      
      * doc/misc/cc-mode.texi (top level, Indentation Commands, Guessing the Style,
      Custom Macros): For some opening quote marks, correct '' to ``.
      (Minor Modes): Add an xref to the new page "Wrong Comment Style" in a
      footnote.
      (Wrong Comment Style): New page.
      b293aa91
    • Eli Zaretskii's avatar
      Fix last change · 4e444027
      Eli Zaretskii authored
      * lisp/simple.el (goto-history-element)
      (next-history-element): Fix quoting of "future history".
      
      * doc/lispref/minibuf.texi (Minibuffer Commands)
      (Text from Minibuffer): Add index entry and cross-reference
      for "future history".  (Bug#38026)
      4e444027
    • Hong Xu's avatar
      Mention future history in history-related minibuffer commands · 15f4c415
      Hong Xu authored
      * lisp/simple.el (goto-history-element):
      * doc/lispref/minibuf.texi (Minibuffer Commands): Explain
      negative NABS.
      * lisp/simple.el (next-history-element):
      * doc/lispref/minibuf.texi (Minibuffer Commands): Mention
      "future history."  (Bug#38026)
      15f4c415
  14. 08 Nov, 2019 2 commits
  15. 06 Nov, 2019 2 commits
    • Eli Zaretskii's avatar
      Minor fix in the Emacs manual · e72a48ee
      Eli Zaretskii authored
      * doc/emacs/msdos.texi (ls in Lisp): Fix the description of
      'ls-lisp-verbosity'.  (Bug#38077)
      e72a48ee
    • Stefan Kangas's avatar
      Avoid changing value of defcustom package-enable-at-startup · 0661a39d
      Stefan Kangas authored
      * lisp/emacs-lisp/package.el (package--activated): New variable to
      avoid changing value of defcustom 'package-enable-at-startup'.
      (package-initialize): Don't set 'package-enable-at-startup'.
      (package-initialize, package-activate-all): Set 'package--activated'
      instead of 'package-enable-at-startup'.
      (package--initialized): Add doc string.
      
      * lisp/startup.el (command-line): Check if 'package--activated' is
      non-nil before activating packages.
      
      * doc/lispref/package.texi (Packaging Basics): Update docs.
      0661a39d
  16. 05 Nov, 2019 1 commit
    • Stefan Kangas's avatar
      Make 'g' refresh package data in package menu · 0c293f15
      Stefan Kangas authored
      * lisp/emacs-lisp/package.el (package-menu--refresh): Rename from
      'package-menu-refresh', make internal and non-interactive.
      (package-menu-mode-map, package-menu-mode-menu, package-menu-mode)
      (list-packages): Use the above.  (Bug#35504)
      (package-menu-refresh): Redefine as obsolete fuction alias for
      'revert-buffer'.
      * doc/emacs/package.texi (Package Menu): Document it.
      * etc/NEWS: Announce it.
      0c293f15