1. 07 Dec, 2019 1 commit
    • Juri Linkov's avatar
      * lisp/man.el (Man-width-max): New defcustom (bug#32536, bug#9385) · 7e387c9e
      Juri Linkov authored
      (Man-columns): New buffer-local variable.
      (Man-columns): New function.
      (Man-start-calling): Call Man-columns and set buffer-local Man-columns.
      (Man--window-state-change-timer): New internal variable.
      (Man--window-state-change): New internal function.
      (Man-fit-to-window): New function.
      (Man-mode): Add Man--window-state-change to local hook
      * lisp/image-mode.el (image-fit-to-window): Add window arg to
      window-buffer call.
  2. 05 Dec, 2019 2 commits
    • Eli Zaretskii's avatar
      Minor copyedits of 'jit-lock-antiblink-grace's docs · 21790e54
      Eli Zaretskii authored
      * lisp/jit-lock.el (jit-lock-antiblink-grace):
      * etc/NEWS (value): Reword the NEWS entry and the doc string.
    • Federico Tedin's avatar
      Make HIST arg of read-from-minibuffer work with buffer-local vars · 3586fef2
      Federico Tedin authored
      * lisp/simple.el (minibuffer-history-values): New function, should be
      used to access the minibuffer input history variable when the
      minibuffer might be active.  If the variable is buffer-local, the
      previous buffer's value will be used.
      (goto-history-element): Use the new function to access the minibuffer
      (minibuffer-history-isearch-wrap): Use the new function to access the
      minibuffer history.
      * src/minibuf.c (read_minibuf): Switch to previous buffer temporarily
      before updating history list (Bug#38317).
      (read-from-minibuffer): Extend documentation to mention that the
      result of using the command will be added to the history list by
      * doc/lispref/minibuf.texi (Minibuffer History): Mention the
      possibility of using a buffer-local variable as history.
      * etc/NEWS: Announce changes.
  3. 04 Dec, 2019 4 commits
  4. 03 Dec, 2019 1 commit
  5. 30 Nov, 2019 3 commits
    • Juri Linkov's avatar
      Use run-with-idle-timer instead of debounce for responsive image scaling. · d64ea182
      Juri Linkov authored
      * lisp/emacs-lisp/timer.el (debounce, debounce-reduce): Revert macro addition.
      * lisp/image.el (image-increase-size, image-decrease-size):
      Use run-with-idle-timer.
      (image--change-size): Rename back from image--change-size-function.
      * lisp/image-mode.el (image-mode--setup-mode): Remove hooks
      window-size-change-functions and window-selection-change-functions (bug#32672)
      (image-fit-to-window): Rename from image--window-change-function.
      (image--window-state-change): Rename from image--window-change.
      Use run-with-idle-timer.
    • Andrii Kolomoiets's avatar
      vc-hg: prompt for branch to merge · 561840b5
      Andrii Kolomoiets authored
      * lisp/vc/vc-hg.el (vc-hg-merge-branch): Prompt for revision to merge.
      (vc-hg-revision-table): Use branches, tags and bookmarks as competion
      * etc/NEWS: Mention changes of vc-hg.el
      * doc/emacs/maintaining.texi (Switching Branches): Mention 'hg update'
      (Merging): Mention 'hg merge' command.
      This fixes bug#22860
    • Eli Zaretskii's avatar
      Add ':extend' attribute to faces and themes · 64687872
      Eli Zaretskii authored
      * etc/themes/wombat-theme.el:
      * etc/themes/wheatgrass-theme.el:
      * etc/themes/tsdh-light-theme.el:
      * etc/themes/tsdh-dark-theme.el:
      * etc/themes/tango-theme.el:
      * etc/themes/tango-dark-theme.el:
      * etc/themes/misterioso-theme.el:
      * etc/themes/manoj-dark-theme.el:
      * etc/themes/light-blue-theme.el:
      * etc/themes/leuven-theme.el:
      * etc/themes/dichromacy-theme.el:
      * etc/themes/deeper-blue-theme.el:
      * etc/themes/adwaita-theme.el: Add ':extend' attribute to all
      faces that are by default defined with it.
      * lisp/vc/smerge-mode.el (smerge-upper, smerge-lower)
      * lisp/vc/log-view.el (log-view-file, log-view-message):
      * lisp/vc/ediff-init.el (ediff-current-diff-A)
      (ediff-current-diff-B, ediff-current-diff-C)
      (ediff-current-diff-Ancestor, ediff-even-diff-A)
      (ediff-even-diff-B, ediff-even-diff-C)
      (ediff-even-diff-Ancestor, ediff-odd-diff-A)
      (ediff-odd-diff-B, ediff-odd-diff-C)
      * lisp/vc/diff-mode.el (diff-header, diff-file-header)
      (diff-removed, diff-added): Make sure all definitions of faces
      have the same value of the ':extend' property, otherwise
      customizing background color or underline etc. attributes of
      these faces on some displays will produce effects different
      from other displays.
  6. 29 Nov, 2019 1 commit
    • 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.
  7. 28 Nov, 2019 2 commits
    • 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
      (help-command-error-confusable-suggestions): New function, added to
      (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.
    • Noam Postavsky's avatar
      Stop signaling an error when reading "smart quotes" in symbols · 85f586f3
      Noam Postavsky authored
      Revert commits from 2018-01-28 "Fix round tripping of read->print for
      symbols with strange quotes", and 2017-07-22 "Signal error for symbol
      names with strange quotes (Bug#2967)".
      * etc/NEWS: Remove corresponding entries.
      * src/character.c (confusable_symbol_character_p):
      * test/src/lread-tests.el (lread-tests--old-style-backquotes): Remove.
      * src/lread.c (read1): Don't signal error on confusable character.
      * src/print.c (print_object): Don't escape confusable characters.
  8. 27 Nov, 2019 5 commits
    • Juri Linkov's avatar
      Menu bar rearrangements, move Print menu items to submenu, etc. (bug#37594) · 79218117
      Juri Linkov authored
      * lisp/menu-bar.el (menu-bar-print-menu): New defvar.
      (menu-bar-file-menu): Move print entries to submenu.
      Add menu entries for tab-new, tab-close, make-frame-on-monitor.
      (menu-bar-showhide-menu): Add menu entry for global-tab-line-mode.
      Don't add toggle-tab-bar-mode-from-frame on ns where it's unavailable.
      (menu-bar-tools-menu): Add rgrep.
      * lisp/bindings.el (next-buffer, previous-buffer): Advertise bindings
      'C-x right' and 'C-x left' instead of 'XF86Forward' and 'XF86Back'.
    • 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.
    • Juri Linkov's avatar
      * lisp/image-mode.el: Resize image on window resizing (bug#32672) · b31a966e
      Juri Linkov authored
      * lisp/image-mode.el (image--window-change): New function.
      (image--window-change-function): New variable.
      (image-mode--setup-mode): Add buffer-local hook image--window-change
      to window-size-change-functions, window-state-change-functions,
    • 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.
    • 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.
  9. 26 Nov, 2019 5 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.
    • Juanma Barranquero's avatar
      Fix previous change to (next|previous)-buffer · 75b41a38
      Juanma Barranquero authored
      * lisp/window.el (next-buffer, previous-buffer): If no other
      buffer is available, signal 'user-error' only when called
    • Juanma Barranquero's avatar
      (next|previous)-buffer no longer fail silently (bug#38384) · e495dbea
      Juanma Barranquero authored
      * lisp/window.el (next-buffer, previous-buffer):
      Signal 'user-error' if there is no buffer to switch to.
      * etc/NEWS: Document it.
    • 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
      * 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
    • Robert Pluim's avatar
      Extend network-interface-list to return IPv6 and network info · 650a514e
      Robert Pluim authored
      * 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
      * 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.
  10. 25 Nov, 2019 1 commit
  11. 23 Nov, 2019 3 commits
    • Juri Linkov's avatar
      Use new macro debounce-reduce to make mouse scaling of images more responsive · 4b5d04be
      Juri Linkov authored
      * lisp/emacs-lisp/timer.el (debounce, debounce-reduce): New macros.
      * lisp/image.el (image-increase-size, image-decrease-size):
      Use funcall to call image--change-size-function.
      (image--change-size-function): Move code from defun of
      image--change-size to defvar that has the value of lambda
      returned from debounce-reduce.  (Bug#38187)
    • 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
      * etc/NEWS: network-stream-use-client-certificates defaults to nil
      * doc/lispref/processes.texi (Network): Flip
      network-stream-use-client-certificates description.
      * doc/misc/auth.texi (Help for users): Mention
    • 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
      * etc/NEWS: Announce what-cursor-show-names.
  12. 22 Nov, 2019 1 commit
  13. 21 Nov, 2019 2 commits
    • Stefan Monnier's avatar
    • 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-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.
  14. 20 Nov, 2019 2 commits
    • Paul Eggert's avatar
      * etc/NEWS: Improve XDG_RUNTIME_DIR doc. · c928f413
      Paul Eggert authored
    • 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
      (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-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.
  15. 19 Nov, 2019 1 commit
  16. 14 Nov, 2019 2 commits
  17. 12 Nov, 2019 1 commit
    • 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.
  18. 10 Nov, 2019 1 commit
    • 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-insert-other, empty-history)
      (read-char-from-minibuffer): Move from simple.el to subr.el.
  19. 09 Nov, 2019 2 commits