aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Make dired-do-compress-to require format-specLars Ingebrigtsen2019-11-141-0/+1
| | | | | * lisp/dired-aux.el (dired-do-compress-to): Require format-spec runtime (bug#38189).
* Allow using edebug-remove-instrumentation more fine-grainedLars Ingebrigtsen2019-11-141-17/+31
| | | | | | * lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): Prompt the user for what functions to remove instrumentation from a la cancel-edebug-on-entry (bug#38195).
* time-stamp: update support for time zone numeric offsetStephen Gildea2019-11-131-12/+31
| | | | | | | | | * time-stamp.el (time-stamp-string-preprocess): Change new format for numeric time zone from %:z to %5z to match format-time-string better. (time-stamp-format): Document support for numeric time zone. See discussion in bug#32931. * NEWS: Mention time-stamp-format %5z.
* Don't show Attachment(s) header in html article viewed with browse-urlKatsumi Yamaoka2019-11-141-0/+1
| | | | | * lisp/gnus/gnus-art.el (gnus-article-browse-html-article): Bind gnus-mime-display-attachment-buttons-in-header to nil.
* * lisp/tab-line.el (tab-line-tabs-buffer-list): Use window-prev-buffers too.Juri Linkov2019-11-141-6/+5
| | | | | * lisp/tab-line.el (tab-line-tabs-buffer-list): Move window-prev-buffers here from tab-line-tabs-buffer-groups.
* Finish last Tramp patchMichael Albinus2019-11-131-2/+6
| | | | | | | | | * lisp/net/tramp.el (outline-regexp): Remove declaration. (tramp-debug-outline-regexp): Add thread regexp. (tramp-debug-font-lock-keywords): New defconst. (tramp-debug-outline-level): Adapt to changed `tramp-debug-outline-regexp'. (tramp-get-debug-buffer): Use `tramp-debug-font-lock-keywords'.
* Some refinement in Tramp debug buffer.Michael Albinus2019-11-131-5/+13
| | | | | | * lisp/net/tramp.el (outline-regexp): Remove declaration. (tramp-debug-font-lock-keywords): New defconst. (tramp-get-debug-buffer): Use it.
* Adapt Tramp docstrings according to checkdocMichael Albinus2019-11-1314-79/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-backup-directory-alist) (tramp-echoed-echo-mark-regexp, tramp-syntax-values) (tramp-lookup-syntax, tramp-build-prefix-format) (tramp-build-prefix-regexp, tramp-build-method-regexp) (tramp-build-postfix-method-format) (tramp-build-postfix-method-regexp) (tramp-build-prefix-ipv6-format, tramp-build-prefix-ipv6-regexp) (tramp-build-postfix-ipv6-format) (tramp-build-postfix-ipv6-regexp) (tramp-build-postfix-host-format) (tramp-build-postfix-host-regexp, tramp-unknown-id-string) (tramp-unknown-id-integer, tramp-build-file-name-regexp) (tramp-build-completion-file-name-regexp, tramp-chunksize) (tramp-find-method, tramp-find-user, tramp-find-host) (tramp-dissect-file-name, tramp-get-buffer) (tramp-get-connection-buffer, tramp-debug-message, tramp-error) (with-tramp-connection-property, tramp-run-real-handler) (tramp-file-name-for-operation, tramp-file-name-handler) (tramp-completion-file-name-handler) (tramp-completion-handle-file-name-completion) (tramp-completion-dissect-file-name) (tramp-completion-dissect-file-name1) (tramp-handle-file-name-as-directory) (tramp-handle-file-name-directory) (tramp-handle-file-name-nondirectory, tramp-mode-string-to-int) (tramp-file-mode-from-int): * lisp/net/tramp-adb.el (tramp-adb-file-name-p): * lisp/net/tramp-archive.el (tramp-archive-run-real-handler) (tramp-archive-file-name-handler) (tramp-archive-dissect-file-name) (with-parsed-tramp-archive-file-name) (tramp-archive-gvfs-file-name, tramp-archive-handle-access-file): * lisp/net/tramp-cmds.el (tramp-list-remote-buffers): * lisp/net/tramp-compat.el (tramp-unload-file-name-handlers) (tramp-compat-funcall, tramp-compat-tramp-file-name-slots): * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler) (tramp-ftp-file-name-p): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-p) (tramp-gvfs-file-name-handler) (tramp-gvfs-stringify-dbus-message) (tramp-gvfs-monitor-process-filter) (tramp-gvfs-handler-mounted-unmounted): * lisp/net/tramp-integration.el (tramp-rfn-eshadow-update-overlay-regexp): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-p) (tramp-rclone-file-name-handler, tramp-rclone-send-command): * lisp/net/tramp-sh.el (tramp-sh--quoting-style-options) (tramp-sh-gio-monitor-process-filter) (tramp-sh-gvfs-monitor-dir-process-filter) (tramp-sh-inotifywait-process-filter, tramp-find-executable) (tramp-set-remote-path, tramp-open-shell, tramp-find-shell) (tramp-send-command-and-check, tramp-shell-case-fold) (tramp-get-remote-path): * lisp/net/tramp-smb.el (tramp-smb-file-name-p) (tramp-smb-file-name-handler) (tramp-smb-do-file-attributes-with-stat) (tramp-smb-handle-substitute-in-file-name) (tramp-smb-get-stat-capability, tramp-smb-shell-quote-argument): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-p) (tramp-sudoedit-file-name-handler) (tramp-sudoedit-send-command-string): * test/lisp/net/tramp-archive-tests.el (tramp-archive-test-all): * test/lisp/net/tramp-tests.el (tramp--test-gvfs-p) (tramp--test-with-proper-process-name-and-buffer) (tramp-test-all): Adapt docstrings according to `checkdoc'.
* Avoid fido-mode's setup on non-icomplete minibuffersJoão Távora2019-11-131-7/+8
| | | | | | | | Otherwise we would lose things like C-r (isearch-backward) when doing simple stuff like non-icomplete pp-eval-expression. * lisp/icomplete.el (icomplete--fido-mode-setup): Restrict setup to when icomplete-mode really kicks in.
* * lisp/tab-line.el (tab-line-tabs-buffer-list-function): New variable.Juri Linkov2019-11-121-27/+62
| | | | | | | | | | | | | (tab-line-tabs-buffer-list): New function. (tab-line-tabs-mode-buffers, tab-line-tabs-buffer-groups): Call tab-line-tabs-mode-buffers. (tab-line-tabs-buffer-groups): Add 'close' function that uses kill-buffer instead of bury-buffer that makes no sense here. (tab-line-format): Don't show the close button when a tab has no 'close' function or buffer. (tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab): Support tabs with 'buffer' properties. (tab-line-close-tab): Call 'close' function when defined.
* * lisp/dired.el (dired-dwim-target): Add new choices (bug#35385)Juri Linkov2019-11-122-4/+30
| | | | | | | | | | | | * 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.
* * lisp/emacs-lisp/easymenu.el (easy-menu-make-symbol): Fix last changeStefan Monnier2019-11-121-1/+1
|
* Fix a few more minor quoting problems.Paul Eggert2019-11-116-6/+6
|
* Rename font-log-refontifyLars Ingebrigtsen2019-11-121-2/+2
| | | | | | * 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.
* * lisp/startup.el (command-line): Fix last change in package--activatedStefan Monnier2019-11-111-3/+1
|
* Fix some quoting glitches in doc stringsPaul Eggert2019-11-1172-172/+173
|
* Fix quoting glitch in formatting Gnus messagesPaul Eggert2019-11-111-2/+3
| | | | | * lisp/gnus/gnus-util.el (defmacro, gnus-message): Use ‘format-message’, not ‘format’, to be compatible with ‘message’.
* Fix glitch in generating cxterm doc stringsPaul Eggert2019-11-111-1/+8
| | | | | | * lisp/international/titdic-cnv.el (tit-process-header): In generated doc strings, escape \, ", ', and ` properly. Currently only ' appears but we might as well future-proof this.
* Verilog-Mode collected updates.Wilson Snyder2019-11-111-15/+44
| | | | | | | | | | | | | | | * lisp/progmodes/verilog-mode.el (verilog-read-decls): Fix to skip over base64-encoded protected data while reading AUTO declarations. Reported by Berend Ozceri. (verilog-auto-inst-port, verilog-auto-inst-vector): Support 'unsigned' in `verilog-auto-inst-vector'. Reported by Jeff Riley. (verilog-read-decls): Fix to ignore `line in AUTOINST, git bug18. Reported by Berend Ozceri. (verilog-library-extensions): Support .va /.vah/.sva/.svah file extensions to load verilog-mode for Verilog-AMS. Reported by Shareef Jalloq. (verilog-read-sub-decls-expr): Fix AUTOOUTPUT etc misparsing Verilog casts, bug1526. Reported by Udi Finkelstein.
* Add several configuration files to auto-mode-alistStefan Kangas2019-11-111-2/+3
| | | | | | | * lisp/files.el (auto-mode-alist): Use conf-mode for .asoundrc, .mairixrc, .mbsyncr, .msmtprc, .nvidia-settings-rc, .offlineimaprc, .reportbugrc, .rtorrent.rc, .screenrc, .mpdconf, .notmuch-config. Use conf-windows-mode for .redshift.conf. (Bug#38065)
* Document Lisp floats a bit betterPaul Eggert2019-11-101-9/+7
| | | | | | | | | | | | | * 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.
* * lisp/tab-bar.el: Better handling of closed-tabs in tab-bar-list.Juri Linkov2019-11-101-2/+8
| | | | | | | * lisp/tab-bar.el (tab-bar-list-delete-from-list): Add closed tab to tab-bar-closed-tabs. (tab-bar-list-select): Don't add the closed intermediate tab to tab-bar-closed-tabs.
* * lisp/autorevert.el: Use 'minibuffer-message' to not obscure the prompt.Juri Linkov2019-11-102-2/+3
| | | | | | | | | | | * lisp/autorevert.el (auto-revert-handler): Use 'minibuffer-message' instead of 'message'. Call it from the original window's buffer that in case of the minibuffer should be current, so minibuffer-message could add a message to it. (Bug#34614) * lisp/emacs-lisp/ert-x.el (ert--make-message-advice): Add nil to the list of values to not use for format-message, because minibuffer-message calls 'message' with nil argument, and tests fail.
* Make dired-get-subdir-min obsoleteStefan Kangas2019-11-102-19/+22
| | | | | | | | | | | | | | | * lisp/dired.el (dired-get-subdir-min): Redefine as obsolete function alias for 'cdr'. (Bug#11571) (dired-get-subdir, dired-get-subdir-max, dired-clear-alist) (dired-next-subdir, dired-current-directory): * lisp/dired-aux.el (dired-rename-subdir-2) (dired-alist-sort, dired-insert-subdir-del) (dired-insert-subdir-doupdate, dired-goto-subdir) (dired-hide-subdir, dired-hide-all): Use 'cdr' instead of the above obsolete function. (dired-subdir-alist): Doc fix. Co-authored-by: Drew Adams <drew.adams@oracle.com>
* Move read-char-from-minibuffer from simple.el to subr.el and document it.Juri Linkov2019-11-102-70/+72
| | | | | | | | | | | | * 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.
* * lisp/cedet/semantic/wisent/comp.el (wisent-struct): RemoveStefan Monnier2019-11-091-95/+66
| | | | | | (core, shifts, reductions, errs): Use cl-defstruct instead. Adjust all users of the set-<struct>-<field> setters to use `setf` instead.
* Add extra bindings to fido-mode.Jimmy Aguilar Mena2019-11-101-0/+5
| | | | | * lisp/icomplete.el (icomplete-fido-mode-map) : Add arrows and other bindings to reproduce ido behaviour.
* Don't overwrite y-or-n-p prompt by message from asynchronous man (bug#19064)Juri Linkov2019-11-101-25/+24
| | | | | | | * lisp/man.el (Man-bgproc-sentinel): Postpone displaying the message and deleting the buffer until exiting the code block with with-current-buffer. Use minibuffer-message to display message to handle possibly active minibuffer.
* Don't obscure the minibuffer by message (bug#17272)Juri Linkov2019-11-102-2/+7
| | | | | | | | * lisp/subr.el (do-after-load-evaluation): Use minibuffer-message to not obscure a possibly active minibuffer. * lisp/minibuffer.el (minibuffer-message): Record message in the *Messages* buffer.
* Use the minibuffer to read answer in userlock.el (bug#38076)Juri Linkov2019-11-101-12/+12
| | | | | | * lisp/userlock.el: Rename 'fn' to 'filename'. (ask-user-about-supersession-threat): Use read-char-from-minibuffer instead of read-char-choice.
* * lisp/startup.el (package--activated): Fix redundant definitionStefan Monnier2019-11-091-1/+1
|
* * lisp/ffap.el (ffap-read-file-or-url): Don't use url-file-handlerStefan Monnier2019-11-091-27/+12
| | | | Simplify accordingly (and don't call substitute-in-file-name redundantly).
* hack-local-variables-confirm uses the minibuffer to read answer (bug#38076)Juri Linkov2019-11-101-12/+4
| | | | | | | | | | * 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.
* Add CHARS arg to read-char-from-minibuffer compatible with read-char-choice.Juri Linkov2019-11-102-24/+61
| | | | | | | | | | | | | | | * lisp/simple.el (read-char-history): Rename from read-char-from-minibuffer-history. (Bug#38076) (read-char-from-minibuffer-insert-char): Rename from read-char-from-minibuffer-self-insert. (read-char-from-minibuffer-map-hash): New defconst. (read-char-from-minibuffer-insert-other): New command. (read-char-from-minibuffer): Add optional args CHARS and HISTORY. (zap-to-char): Use 'read-char-history as HISTORY arg of read-char-from-minibuffer. * lisp/emacs-lisp/map-ynp.el (read-answer): Use sit-for instead of sleep-for. Replace short answer history yes-or-no-p-history with read-char-history.
* 'y-or-n-p' now uses the minibuffer to read 'y' or 'n' answer (bug#38076)Juri Linkov2019-11-101-34/+69
| | | | | | | | | | | | * 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.
* Run scroll/recenter commands from minibuffer in original window (bug#38076)Juri Linkov2019-11-091-0/+47
| | | | | | | | | | | | | | * 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.
* Improve an error about the message signerKarl Fogel2019-11-091-1/+9
| | | | | * lisp/gnus/mml-sec.el (mml-secure-epg-sign): Don't suggest setting `mml-secure-smime-sign-with-sender' if it's already non-nil.
* Fix font-lock-keywords slightlyLars Ingebrigtsen2019-11-091-1/+1
| | | | | * lisp/font-lock.el (font-lock-keywords): Tweak doc string slightly (bug#35005).
* Fix an error in selecting encoding when writing zip filesEli Zaretskii2019-11-091-0/+5
| | | | | | | | * lisp/international/mule-cmds.el (select-safe-coding-system): Treat no-conversion-multibyte that came from find-auto-coding the same as no-conversion for the purposes of encoding. The same logic that considers no-conversion always safe should do the same with no-conversion-multibyte. (Bug#38155)
* * lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment):Glenn Morris2019-11-091-1/+1
| | | | Fix version.
* Revert "Nudge icomplete-mode a little closer to fido-mode"João Távora2019-11-091-13/+2
| | | | | | | | | Fixes bug#38131. This is not the best way to have fido-mdoe emulate that particular bit of ido-mode. This reverts commit 5761a1a3939e23d8e8c725241dd9398a12f191b0.
* Rename some commands to reflect they are fido-mode specificJoão Távora2019-11-091-8/+8
| | | | | | | | * lisp/icomplete.el (icomplete-fido-kill) (icomplete-fido-delete-char, icomplete-fido-ret) (icomplete-fido-backward-updir): Rename from icomplete-magic-ido-* versions. (icomplete-fido-mode-map): Use new command names.
* Protect flex's display-sort-function against 0-length candidatesJoão Távora2019-11-091-2/+3
| | | | | * lisp/minibuffer.el (completion--flex-adjust-metadata): Assume a candidate missing a score has a score of 0.
* Widen around c-font-lock-fontify-region. This fixes bug #38049.Alan Mackenzie2019-11-091-38/+40
| | | | | | * lisp/progmodes/cc-mode (c-font-lock-fontify-region): Widen in this function, to ensure that the CC Mode font locking mechanism can examine characters outside the given region.
* CC Mode. Allow fontification of "wrong" style comments with warning face.Alan Mackenzie2019-11-094-1/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix last changeEli Zaretskii2019-11-091-3/+3
| | | | | | | | | * 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)
* Mention future history in history-related minibuffer commandsHong Xu2019-11-091-2/+5
| | | | | | | | | * 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)
* Fix some quoting glitches in doc stringsPaul Eggert2019-11-088-52/+52
| | | | This also fixes a misplaced "only".
* * lisp/ffap.el (ffap-read-file-or-url): Fix some URL casesStefan Monnier2019-11-081-14/+24
|
* * lisp/ffap.el (ffap-read-file-or-url): Simplify furtherStefan Monnier2019-11-081-28/+20
|