aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/emacs-lisp/cl-generic.el: Fix bootstrap.scratch/completion-apiStefan Monnier2019-12-042-15/+37
| | | | | | | | | | Most importantly, prefill dispatchers for the new minibuffer.el methods. * lisp/minibuffer.el (completion-table-category): Return both the category and the default style. (completion-table--call-method): New function. (completion-table-test, completion-table-category) (completion-table-boundaries, completion-table-fetch-matches): Use it.
* WIP of possible new completion APIStefan Monnier2019-11-161-0/+193
|
* * lisp/tab-bar.el: Add missing arg.Juri Linkov2019-11-172-3/+3
| | | | | | | | * lisp/tab-bar.el (tab-bar-list-next-line) (tab-bar-list-prev-line): Add missing interactive spec for prefix arg. * lisp/mouse.el (mouse-buffer-menu-mode-groups): Add "Git" regexp to match "Git-Region-History" mode name for "Version Control" group.
* * lisp/simple.el (eval-expression-print-maximum-character): Use choice type.Juri Linkov2019-11-171-1/+3
| | | | https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00433.html
* * lisp/dired.el (dired-dwim-target): Add choice dired-dwim-target-next-visibleJuri Linkov2019-11-172-7/+18
| | | | | | | | * lisp/dired-aux.el (dired-dwim-target-next): Add arg ALL-FRAMES. (dired-dwim-target-next-visible): New function. * doc/emacs/dired.texi (Operating on Files): Describe function value of dired-dwim-target. (Bug#35385)
* Fix moving files with duplicate names to trash-canShingo Tanaka2019-11-161-1/+2
| | | | | | | | * lisp/files.el (move-file-to-trash): Fix file name in trash-can when another deleted file under the same name is already stored there. (Bug#37922) Copyright-paperwork-exempt: yes.
* tex-mode: paragraph separator groups text and commentsMichael Orlitzky2019-11-161-1/+1
| | | | | | | * lisp/textmodes/tex-mode.el (latex-mode): Don't wrap text with leading spaces into preceding comments (bug#38152). Copyright-paperwork-exempt: yes
* Don't move point on undefined keystrokes in the article bufferLars Ingebrigtsen2019-11-161-26/+21
| | | | | * lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): Don't move point on undefined commands (bug#38227).
* Make button-1 work on all Gnus buttonsLars Ingebrigtsen2019-11-162-5/+12
| | | | | | | | | * lisp/gnus/gnus-icalendar.el (gnus-icalendar-insert-button): * lisp/gnus/gnus-art.el (gnus-insert-mime-button) (gnus-mime-display-alternative, gnus-insert-prev-page-button) (gnus-insert-next-page-button) (gnus-insert-mime-security-button): Make button-1 work on all the Gnus buttons (bug#38144).
* ; * lisp/so-long.el: Silence byte-compiler warningsPhil Sainty2019-11-161-0/+3
|
* Make icomplete-tidy-shadowed-file-names less aggressiveJoão Távora2019-11-151-52/+55
| | | | | | | | | | | | | When using this option and editing input, some transient situations may arise that lead to file-name shadowing, but that shouldn't necessarily lead to auto-delete behaviour, which will be suprising. In '/foo/x/bar', if the user deletes the 'x', shadowing occurs, but probably shouldn't. So, somewhat like ido-mode, only auto-tidy shadowed file names if the user is inserting text at end of input. * lisp/icomplete.el (icomplete-exhibit): Check this-command. (icomplete-tidy-shadowed-file-names): Tweak docstring.
* * lisp/progmodes/perl-mode.el (perl-calculate-indent): Indent qw(...)Stefan Monnier2019-11-151-9/+22
| | | | | Fix initialization of `state`. Special-case `qw(...)` because we do want to indent its contents.
* Used magic-fallback-mode-alist to detect .doc files (Bug#20891)Robert Pluim2019-11-151-1/+2
| | | | | | | | | This avoids running doc-view-mode on files that are actually text files. * lisp/files.el (auto-mode-alist): Don't use doc-view-mode-maybe for .doc (but continue to do so for .docx). (magic-fallback-mode-alist): Add signature for .doc files.
* Avoid using subr-x functionLars Ingebrigtsen2019-11-151-1/+2
| | | | | * lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Avoid using subr-x function (bug#38216).
* In 'dframe-frame-mode' avoid 'switch-to-buffer' (Bug#37840)Martin Rudalics2019-11-151-3/+7
| | | | | | * lisp/dframe.el (dframe-frame-mode): Use 'set-window-buffer' instead of 'switch-to-buffer’ to avoid that 'switch-to-buffer-obey-display-actions' butts in (Bug#37840).
* lisp/vc/vc-hg.el: Don't pass empty string to hg updateAndrii Kolomoiets2019-11-151-1/+1
| | | | | * lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Don't pass empty name to `hg update` (bug#38216).
* Fix minor formatting issue in isearch-forward documentationLele Gaifax2019-11-151-2/+2
| | | | | * lisp/isearch.el (isearch-forward): Doc string formatting fix (bug#38207).
* Make edebug-remove-instrumentation remove macro instrumentationLars Ingebrigtsen2019-11-151-2/+3
| | | | | | * lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): Macros can also have edebug instrumentation, so remove that as well (bug#38195).
* Update nnir-method-default-engines version tagRobert Pluim2019-11-151-1/+1
| | | | * lisp/gnus/nnir.el (nnir-method-default-engines): Update version tag.
* * lisp/cedet/semantic/db.el: Use lexical-bindingStefan Monnier2019-11-141-49/+50
| | | | | | | | | Also prefer setf over oset. (semanticdb-abstract-table-list): Always define. (semanticdb--inhibit-make-directory): Fix name of declaration to match name of variable actually used. (semanticdb-with-match-any-mode): Use `declare`. Add Edebug spec. (semanticdb-project-roots): Remove redundant :group.
* (repos-count-screen-lines): Narrow without changing point-minDmitry Gutov2019-11-141-2/+3
| | | | | | | | | * lisp/reposition.el (repos-count-screen-lines): Narrow without changing point-min. It wasn't necessary for vertical-motion to work, and it had some adverse effects on how font-lock rules were applied (https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00522.html). This can also be an alternative fix for bug#38049.
* CC Mode: Fix two bugs in the "state cache".Alan Mackenzie2019-11-141-19/+42
| | | | | | | | | | | | | | | | This (along with a suggestion to the OP to set open-paren-in-column-0-is-defun-start to nil) fixes bug #37910. It may also have fixed bug #5490 and bug #18072. * lisp/progmodes/cc-engine.el (c-state-cache-non-literal-place): Remove thi non-sensical function, replacing it with .... (c-state-cache-lower-good-pos): New function. (c-renarrow-state-cache, c-append-lower-brace-pair-to-state-cache) (c-remove-stale-state-cache, c-remove-stale-state-cache-backwards): Instead of altering the state-cache list structure with setcar and setcdr, use setq and consing. (c-parse-state-1): Call c-state-cache-lower-good-pos rather than c-state-cache-non-literal-place.
* Make so-long disable flymake, flyspell, flycheckPhil Sainty2019-11-151-0/+3
| | | | | * so-long.el (so-long-minor-modes): Add flymake-mode, flyspell-mode, and flycheck-mode.
* Support loading so-long.el on top of an earlier versionPhil Sainty2019-11-151-0/+50
| | | | | | | | * so-long.el (so-long-version, so-long--latest-version): New variables. This enables users to safely load version 1.0 of so-long.el on top of an earlier version, as well as making provisions for doing likewise following any incompatible changes arising in future versions.
* Backwards-compatibility function definitions for so-long.elPhil Sainty2019-11-151-0/+17
| | | | | | | | | * so-long.el (so-long-inhibit-whitespace-mode) (so-long-make-buffer-read-only, so-long-revert-buffer-read-only) (so-long-inhibit-global-hl-line-mode): Restore dummy definitions of now-obsolete hook functions used by earlier versions of so-long.el, to support users who have saved these symbols in their customized values for the hooks in question.
* * lisp/so-long.el (so-long-unload-function): Improved feature unloadPhil Sainty2019-11-151-8/+39
|
* ; * lisp/so-long.el (so-long-predicate): Custom type consistencyPhil Sainty2019-11-151-2/+2
| | | | | This is for consistency with the other function options, which all used the 'radio' custom type.
* Defer triggering `so-long' until the buffer is displayedPhil Sainty2019-11-151-1/+76
| | | | | | | | | | | | | | | | | * lisp/so-long.el (so-long-invisible-buffer-function): New user option. (so-long--set-auto-mode): Use so-long-invisible-buffer-function. (so-long-deferred): New function/value for so-long-invisible-buffer-function. (so-long, so-long--disable): Support for so-long-deferred. * test/lisp/so-long-tests/autoload-longlines-mode-tests.el * test/lisp/so-long-tests/autoload-major-mode-tests.el * test/lisp/so-long-tests/autoload-minor-mode-tests.el * test/lisp/so-long-tests/so-long-tests.el: Support for so-long-deferred. Pre-existing tests have been updated to ensure the buffer is already displayed in cases where a call to `normal-mode' is the (potential) trigger for `so-long'.
* ; Documentation and spellingPhil Sainty2019-11-151-17/+37
| | | | | | | | | | | | | * lisp/so-long.el: Documentation fixes. For the purposes of consistency, this reverts some of the changes made in commit 41ba8231ef072571e1a6feabc15d113e5cf57556, including one which had introduced inconsistent spelling. ispell configuration and LocalWords have been added such that `ispell-buffer' should find no misspellings for this library. * test/lisp/so-long-tests/spelling-tests.el (so-long-spelling): New test to check the spelling using `ispell-buffer'.
* Obsolete rfc2047-quote-special-characters-in-quoted-strings (bug#38200)Katsumi Yamaoka2019-11-141-0/+50
| | | | | | * lisp/mail/rfc2047.el (rfc2047-quote-special-characters-in-quoted-strings): Make obsolete instead of removing it.
* Remove rfc2047-quote-special-characters-in-quoted-strings (bug#38200)Katsumi Yamaoka2019-11-141-63/+9
| | | | | | * lisp/mail/rfc2047.el (rfc2047-quote-special-characters-in-quoted-strings): Remove function. (rfc2047-encode-message-header, rfc2047-encode-region): Don't use it.
* (vc-default-update-on-retrieve-tag): Accept backend argumentAndrii Kolomoiets2019-11-141-1/+1
| | | | | | * lisp/vc/vc.el (vc-default-update-on-retrieve-tag): Accept backend argument (bug#38156). This fixes a bug introduced in the previous patch.
* Fix mouse-1 on Gnus article buffer buttonsLars Ingebrigtsen2019-11-141-0/+1
| | | | | * lisp/gnus/gnus-art.el (gnus-article-add-button): Make mouse-1 work as required by mouse-1-click-follows-link (bug#38144).
* VC: ability to skip update buffers promptAndrii Kolomoiets2019-11-144-7/+23
| | | | | | | | | | | * lisp/vc/vc.el (vc-default-update-on-retrieve-tag): New function. (vc-retrieve-tag): Call `update-on-retrieve-tag' backend function to determine if prompt for update buffers is needed; Include tag name into the "Retrieving tag" message. * lisp/vc/vc-git.el (vc-git-update-on-retrieve-tag): * lisp/vc/vc-hg.el (vc-hg-update-on-retrieve-tag): * lisp/vc/vc-svn.el (vc-svn-udate-on-retrieve-tag): New functions. Buffers update prompt on `vc-retrieve-tag' is omitted (bug#38156).
* Make clone-buffer not unbind global variableBraun Gábor2019-11-141-1/+1
| | | | | | | * lisp/simple.el (clone-buffer): Make clone-buffer not globally unset locally void variable (bug#38179). Copyright-paperwork-exempt: yes
* 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
|