1. 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-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
  2. 09 Nov, 2019 4 commits
    • Juri Linkov's avatar
      hack-local-variables-confirm uses the minibuffer to read answer (bug#38076) · 027f218a
      Juri Linkov authored
      * lisp/files.el (hack-local-variables-confirm):
      Use read-char-from-minibuffer instead of read-char-choice.
      Remove special handling of original window scrolling
      that is now supported in the minibuffer.  This fixes
      https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg01020.html
      (files--ask-user-about-large-file): Use read-char-from-minibuffer
      instead of read-char-choice.
      027f218a
    • 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
    • Juri Linkov's avatar
      Run scroll/recenter commands from minibuffer in original window (bug#38076) · 898cdc67
      Juri Linkov authored
      * lisp/minibuffer.el (with-minibuffer-selected-window): New macro.
      (minibuffer-recenter-top-bottom, minibuffer-scroll-up-command)
      (minibuffer-scroll-down-command, minibuffer-scroll-other-window):
      (minibuffer-scroll-other-window-down): New commands.
      (minibuffer-local-map): Remap recenter/scroll symbols to their
      minibuffer wrappers: recenter-top-bottom to minibuffer-recenter-top-bottom.
      
      * src/window.c (Fother_window_for_scrolling): Use 'lambda' value for
      MINIBUF arg of Fnext_window, so minibuffer-scroll-other-window and
      minibuffer-scroll-other-window-down doesn't try to scroll the
      minibuffer window.
      898cdc67
    • 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
  3. 07 Nov, 2019 3 commits
    • Eli Zaretskii's avatar
      ; * etc/NEWS: Fix wording of last change. · 1b715834
      Eli Zaretskii authored
      1b715834
    • Andrii Kolomoiets's avatar
      python.el: Pdbtracking improvements · e50587b1
      Andrii Kolomoiets authored
      Allow not to kill buffers when pdbtracking session is finished.
      Pdbtracking session considered finished judging from the user input.
      
      * lisp/progmodes/python.el (python-pdbtrack-kill-buffers): New
      customizable variable.
      (python-pdbtrack-set-tracked-buffer): Use it.
      (python-pdbtrack-unset-tracked-buffer)
      (python-pdbtrack-tracking-finish): New functions.
      (python-pdbtrack-continue-command, python-pdbtrack-exit-command):
      New customizable variables.
      (python-pdbtrack-process-sentinel): New function.  Finish
      pdbtracking session when process is killed.
      (python-pdbtrack-prev-command-continue): New variable.
      (python-pdbtrack-comint-input-filter-function): New function.
      Finish pdbtracking session based on commands sent to pdb.
      (python-pdbtrack-comint-output-filter-function): Unset/set
      tracking buffer if looking at pdb prompt; finish pdbtracking
      session if filename of current stack frame starts with
      "<" e.g. "<stdin>".
      (python-pdbtrack-comint-output-filter-function): Don't override
      overlay-arrow-string.
      (python-pdbtrack-setup-tracking): New function.
      (inferior-python-mode): Use it.
      (python-pdbtrack-stacktrace-info-regexp): Default value is changed.
      Must also match lines with filename like "<stdin>" and "<string>".
      * etc/NEWS: Mention python-pdbtrack-kill-buffers
      e50587b1
    • Eli Zaretskii's avatar
      3df1cf75
  4. 06 Nov, 2019 1 commit
  5. 05 Nov, 2019 6 commits
    • 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
    • Stefan Kangas's avatar
      Rename *-multiframe-window to *-window-any-frame · c91c145d
      Stefan Kangas authored
      Suggested by Drew Adams.
      
      * lisp/frame.el
      (next-multiframe-window): Define as obsolete alias for...
      (next-window-any-frame): ...new function name.
      (previous-multiframe-window): Define as obsolete alias for...
      (previous-window-any-frame): ...new function name.  (Bug#12436)
      
      * lisp/term/ns-win.el (global-map): Use new command name.
      * doc/emacs/windows.texi (Other Window): Document it.
      * etc/NEWS: Announce it.
      c91c145d
    • Juri Linkov's avatar
      Add prefix arg to more isearch commands (bug#14563) · fbcfee3a
      Juri Linkov authored
      * lisp/isearch.el (isearch--yank-char-or-syntax)
      (isearch-yank-word-or-char, isearch-yank-symbol-or-char)
      (isearch-yank-until-char): Add optional prefix arg.
      fbcfee3a
    • João Távora's avatar
      Document fido-mode · 213643a8
      João Távora authored
      * doc/emacs/buffers.texi (Icomplete): Document Fido Mode.
      
      * etc/NEWS: Mention Fido Mode.
      
      * lisp/icomplete.el (icomplete-mode): Ensure fido-mode is off.
      (fido-mode): Ensure icomplete-mode is off.
      (icomplete-magic-ido-ret): Don't force completions if no
      completions.
      213643a8
    • Robert Pluim's avatar
      Always check for client-certificates · 91c732f6
      Robert Pluim authored
      * lisp/net/network-stream.el
      (network-stream-use-client-certificates): New user option.
      (open-network-stream): If 'network-stream-use-client-certificates'
      is t, and the user hasn't specified :client-certificate, do
      certificate lookups via 'auth-source'.
      (network-stream-certificate): Only return key and certificate
      files that exist.
      
      * doc/lispref/processes.texi (Network): Document new
      client-certificate behavior.
      
      * etc/NEWS: Document 'network-stream-use-client-certificates'.
      91c732f6
    • Paul Eggert's avatar
      Overflow errors are range errors · 799d738b
      Paul Eggert authored
      * etc/NEWS: Mention this.
      * doc/lispref/errors.texi (Standard Errors):
      Document overflow-error, which was formerly undocumented.
      It is a range error, not a domain error.
      * src/data.c (syms_of_data): overflow-error and (undocumented)
      underflow-error are subtypes range-error, not domain-error.
      This fixes bugs in timezone-time-from-absolute and in
      erc-ctcp-reply-PING.
      799d738b
  6. 03 Nov, 2019 1 commit
  7. 02 Nov, 2019 2 commits
  8. 01 Nov, 2019 2 commits
  9. 31 Oct, 2019 2 commits
    • Mattias Engdegård's avatar
      Inhibit undo-in-region for mouse-drag-region (bug#37700) · d75794fd
      Mattias Engdegård authored
      'mouse-drag-region' leaves the region active around the dragged text,
      so a straight undo did not revert the entire operation.  To remedy
      this, inhibit undo-in-region when the last command was
      mouse-drag-region.  (Method suggested by Stefan Monnier.)
      
      * lisp/mouse.el (undo-drag-region): Set the undo-inhibit-region property.
      * lisp/simple.el (undo): Inhibit undo-in-region if the last command
      had the undo-inhibit-region property set.
      * doc/lispref/symbols.texi (Standard Properties):
      * doc/lispref/text.texi (Undo): Document undo-inhibit-region.
      * etc/NEWS: Announce the property.
      d75794fd
    • Robert Pluim's avatar
      Rework vc stash bindings · e168bb73
      Robert Pluim authored
      This adds create/snapshot bindings to the stash button even when there
      are no stashes, and extends the stash menu bindings.
      
      * etc/NEWS: Announce the bindings.
      
      * lisp/vc/vc-git.el (vc-git-stash-shared-map): New keymap.  Holds
      shared bindings between stash button and stash list.
      (vc-git-stash-map): Inherit from vc-git-stash-shared-map.
      (vc-git-stash-button-map): New keymap.  Holds button bindings,
      inherit from vc-git-stash-shared-map.
      (vc-git-stash-shared-help, vc-git-stash-list-help): New
      defconsts.  Abstract out list/button help texts.
      (vc-git--make-button-text): Set keymap property to
      vc-git-stash-button-map.
      (vc-git-make-stash-button): Use vc-git-stash-shared-help.
      (vc-git-stash-menu-map): Add items for vc-git-stash and
      vc-git-stash-snapshot.
      (vc-git-dir-extra-headers): Use vc-git-stash-list-help and
      vc-git-stash-shared-help.  Add vc-git-stash and
      vc-git-stash-snapshot bindings to text shown when there are no stashes.
      e168bb73
  10. 30 Oct, 2019 3 commits
  11. 29 Oct, 2019 2 commits
    • Lars Ingebrigtsen's avatar
      Default exotic image formats (like .webp) to image-mode · 19c98f76
      Lars Ingebrigtsen authored
      * doc/lispref/errors.texi (Standard Errors): Mention the new error.
      
      * lisp/files.el (auto-mode-alist): Add a bunch of image suffixes
      to the list (bug#37972) based on the output from "gm convert -list
      format" (i.e., graphicsmagick).
      
      * lisp/image-mode.el (image-mode): Rewrite to possibly notify the
      user about image-use-external-converter.
      (image-mode--setup-mode): Factor out into own function and don't
      run under `condition-case' as there's nothing here that should
      error.
      
      * lisp/image.el (unknown-image-type): New error.
      (image-type): Signal that error so that image-mode can offer
      sensible feedback to the user.
      19c98f76
    • Filipp Gunbin's avatar
      Add gradle-kotlin to compilation-error-regexp-alist-alist · 6d2c73e8
      Filipp Gunbin authored
      * lisp/progmodes/compile.el: Add gradle-kotlin to
      compilation-error-regexp-alist-alist.
      * etc/compilation.txt: Add samples for it.
      6d2c73e8
  12. 26 Oct, 2019 4 commits
  13. 25 Oct, 2019 2 commits
    • Juanma Barranquero's avatar
      windmove.el: Mark unused code as obsolete · 17db4a0a
      Juanma Barranquero authored
      * lisp/windmove.el (windmove-window-distance-delta)
      (windmove-coord-add, windmove-constrain-to-range)
      (windmove-constrain-around-range, windmove-frame-edges)
      (windmove-constrain-loc-for-movement)
      (windmove-wrap-loc-for-movement, windmove-reference-loc)
      (windmove-other-window-loc): Declare obsolete.
      (windmove-find-other-window, windmove-do-window-select):
      Doc fixes.
      
      * etc/NEWS: Document it.
      17db4a0a
    • Stefan Monnier's avatar
      * lisp/cedet/mode-local.el: Clean up name space · f131e396
      Stefan Monnier authored
      Mostly renaming functions by adding `mode-local--` to their name
      and leaving an obsolete alias behind, just in case.
      
      (define-child-mode): Make obsolete.
      (mode-local--set-parent): Rename from set-mode-local-parent.
      (mode-local--new-bindings): Rename from new-mode-local-bindings.
      Use `obarray-make`.
      (mode-local--activate-bindings): Rename from activate-mode-local-bindings.
      (mode-local--deactivate-bindings): Rename from
      deactivate-mode-local-bindings.
      (make-obsolete-overload): Rename properties with a `mode-local--` prefix.
      Adjust all users.
      (mode-local--overload-obsoleted-by): Rename from overload-obsoleted-by.
      (mode-local--overload-that-obsolete): Rename from overload-that-obsolete.
      (mode-local--function-overload-p): Rename from function-overload-p.
      (mode-local-read-function): Mark obsolete.
      (mode-local--overload-docstring-extension): Rename from
      overload-docstring-extension.
      (mode-local--describe-overload): Rename from describe-mode-local-overload.
      
      * lisp/cedet/semantic/fw.el (semantic-install-function-overrides):
      Remove unused `mode` argument.
      
      * lisp/cedet/semantic/grammar-wy.el (semantic-grammar-wy--install-parser):
      * lisp/cedet/semantic/bovine/grammar.el (bovine-grammar-mode):
      * lisp/cedet/semantic/texi.el (semantic-default-texi-setup):
      * lisp/cedet/semantic/wisent/grammar.el (wisent-grammar-setupcode-builder)
      (wisent-grammar-mode):
      * lisp/cedet/semantic/html.el (semantic-default-html-setup):
      Make the `semantic-` prefix explicit to ease grep search.
      (html-helper-mode): Remove obsolete setting.
      
      * lisp/cedet/semantic/wisent/javascript.el: Fix js-mode/javascript-mode
      mixup so we don't need define-child-mode any more.
      (semantic-get-local-variables, semantic-ctxt-current-symbol)
      (semantic-tag-protection, semantic-analyze-scope-calculate-access):
      Use `js-mode` rather than `javascript-mode` as the mode name since
      that's the real mode's name.
      
      * lisp/cedet/semantic/wisent/python.el (python-2-mode, python-3-mode):
      Remove child declaration for non-existing modes.
      
      * lisp/cedet/srecode/map.el (srecode-map-validate-file-for-mode): Simplify.
      f131e396
  14. 23 Oct, 2019 2 commits
  15. 22 Oct, 2019 3 commits
    • Juri Linkov's avatar
      Tab-line horizontal scrolling with UI buttons and commands (bug#37667) · 095908ae
      Juri Linkov authored
      * etc/images/tabs/left-arrow.xpm:
      * etc/images/tabs/right-arrow.xpm: New images.
      
      * lisp/tab-line.el (tab-line-left-map, tab-line-right-map): New keymaps.
      (tab-line-left-button, tab-line-right-button): New variables.
      (tab-line-tab-name-function): Turn defvar into defcustom.
      (tab-line-tab-name-buffer): New function.
      (tab-line-tab-name-truncated-buffer): Rename from tab-line-tab-name.
      (tab-line-tabs-limit): Default to nil.
      (tab-line-tabs): Behavior depends on tab-line-tabs-limit.
      (tab-line-format): Use window-parameter tab-line-hscroll.
      Add left/right buttons.
      (tab-line-hscroll): New function.
      (tab-line-hscroll-right, tab-line-hscroll-left): New commands
      bound to mouse-wheel.  Rebind tab-switching commands to	mouse-wheel
      with Ctrl-modifier.
      095908ae
    • Lars Ingebrigtsen's avatar
      Make edebug-eval-last-sexp interactively take a zero prefix · 7f5d92e6
      Lars Ingebrigtsen authored
      * lisp/emacs-lisp/edebug.el (edebug-eval-last-sexp): Make the zero
      prefix work analogously to in eval-last-sexp (bug#28895).
      (edebug-eval-print-last-sexp): Ditto.
      7f5d92e6
    • Stefan Kangas's avatar
  16. 21 Oct, 2019 2 commits
    • Robert Pluim's avatar
      Add button to vc-dir to toggle visibility of stash list · a5ca89d3
      Robert Pluim authored
      * lisp/vc/vc-git.el: Move cl-lib require outside 'eval-when-compile'.
      
      * lisp/vc/vc-git.el (vc-git-show-stash):New user option.
      (vc-git-make-stash-button): Create button that allows hiding the stash
      list.
      (vc-git-dir-extra-headers): Split stash list into hideable and
      non-hideable parts depending on value of vc-git-show-stash.  Add
      button to toggle visibility of hideable part.
      
      * etc/NEWS: Announce it.
      a5ca89d3
    • Clément Pit-Claudel's avatar
      Add a way to disable substitution of command keys in help strings · 435eb82e
      Clément Pit-Claudel authored
      * src/keyboard.c (help_echo_substitute_command_keys): New function.
      (help_echo_echo, parse_menu_item): Use it.
      (syms_of_keyboard): Define Qhelp_echo_inhibit_substitution.
      
      * doc/lispref/text.texi (Special Properties), etc/NEWS: Document
      the effect of 'help-echo-inhibit-substitution'.
      435eb82e