summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Make eww use the XDG download directoryLars Ingebrigtsen2020-07-291-13/+30
| | | | | | | * lisp/net/eww.el (erc--download-directory): New function (bug#41030). (eww-download-directory): Use it. (eww-download): Use it. (eww-download-callback): Adjust parameters.
* Make the erc-header-line default to header-linePhilip K2020-07-291-1/+1
| | | | | | * lisp/erc/erc.el (erc-header-line): Inherit from header-line (the old values were very similar in light mode, but very different in dark mode) (bug#41095).
* * lisp/vc/vc-git.el (vc-git-log-view-mode): Font-lock AuthorDate (bug#40248)Juri Linkov2020-07-291-1/+1
| | | | | Highlight "AuthorDate" in log-view-font-lock-keywords when [format] pretty = fuller.
* Replace project-kill-buffers-ignores with project-kill-buffer-conditionsPhilip K2020-07-291-27/+102
| | | | | | | | * lisp/progmodes/project.el (project-kill-buffer-conditions): Replace the project-kill-buffers-ignores user option. (project--kill-buffer-check): New function. (project--buffers-to-kill): New function. (project-kill-buffers): Use them. Add the NO-CONFIRM argument.
* Simplify and streamline optimizer clausesMattias Engdegård2020-07-281-14/+9
| | | | | | | | * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Remove clause for 'with-output-to-temp-buffer', since it is a macro and will have been expanded before reaching this point. Move clauses for 'lambda' and 'closure' to avoid splitting a cond jump table.
* Apply simpler fix for Tramp bug#39399Michael Albinus2020-07-281-74/+53
| | | | | | * lisp/net/tramp-sh.el (tramp-open-shell): Remove "~/.editrc" editing. (tramp-open-connection-setup-interactive-shell): Move up "set +o vi +o emacs" command. (Bug#39399)
* Fix thinko in previous nnmail.el patchLars Ingebrigtsen2020-07-281-3/+5
| | | | | * lisp/gnus/nnmail.el (nnmail-check-duplication): Fix thinko in previous patch -- group-art is a list of pairs, not a pair.
* Fix problem with new-mail-mark in Gnus with non-unique namesLars Ingebrigtsen2020-07-284-6/+11
| | | | | | | | | | | | | | * lisp/gnus/gnus-group.el (gnus-group-new-mail): Call with Gnus group name. (gnus-group-catchup): Ditto. * lisp/gnus/gnus-sum.el (gnus-summary-exit): Ditto. * lisp/gnus/nnimap.el (nnimap-update-info): Store Gnus group name. * lisp/gnus/nnmail.el (nnmail-check-duplication): Store unique Gnus names in the history instead of backend-specific (possibly duplicated) group names (bug#41842).
* Make newer ElDoc versions are compatible with Emacs < 28João Távora2020-07-271-6/+10
| | | | | | | | | | | | | | Fixes: bug#42563 For some time, Eldoc has has some Elisp-specific code that shouldn't live there, but in elisp-mode.el. This can be fixed in Emacs master, but since ElDoc is distributed in GNU Elpa and is meant to work with Emacs 26 and 27, this means that that elisp-specific code must still be distributed with eldoc.el and kept up to date. * lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): Ensure implementation is compatible with Emacs < 28. (Version): Bump to 1.8
* Bring back ElDoc's eldoc-display-message-p, but obsolete itJoão Távora2020-07-271-1/+7
| | | | | | | | | Like others, this is an implementation detail that third parties could be relying on. Better not remove it outright just now, since its implementation is very simple anyway. * lisp/emacs-lisp/eldoc.el (Version): Bump to 1.7.0 (eldoc-display-message-p): Bring back, but obsolete.
* Fix argument referenceDmitry Gutov2020-07-271-1/+1
| | | | | * lisp/progmodes/project.el (project-display-buffer-other-frame): Fix argument reference.
* Move project--value-in-dir to a different sectionDmitry Gutov2020-07-271-7/+7
| | | | | * lisp/progmodes/project.el (project--value-in-dir): Move closer to its uses.
* Bind switch-to-buffer-obey-display-actions to tDmitry Gutov2020-07-271-0/+1
| | | | | | | * lisp/progmodes/project.el (project--other-place-command): Bind switch-to-buffer-obey-display-actions to t, so that project-other-window-command and friends can affect project-switch-to-buffer.
* Add project other place commandsSean Whitton2020-07-271-0/+67
| | | | | | | | | | * lisp/progmodes/project.el (project-other-window-map, project-other-frame-map, project--other-place-command, project-other-window-command, project-other-frame-command, project-other-tab-command): Add these functions and maps. * lisp/progmodes/project.el: Bind project-other-window-command to C-x 4 p, project-other-frame-command to C-x 5 p and project-other-tab-command to C-x t p (bug#42210).
* Add project-display-buffer and project-display-buffer-other-frameSean Whitton2020-07-271-1/+28
| | | | | * lisp/progmodes/project.el (project-display-buffer, project-display-buffer-other-frame): Add commands.
* Factor out project--read-project-buffer from project-switch-bufferSean Whitton2020-07-271-15/+17
| | | | | | | | | | * lisp/progmodes/project.el (project--read-project-buffer): New function extracted from project-switch-buffer. * lisp/progmodes/project.el (project-switch-buffer): Instead of unconditionally reading a project buffer from the user, add buffer-or-name argument, and populate it using project--read-project-buffer when called interactively. Update docstring.
* Correct order or eldoc-documentation-functions in Elisp modeJoão Távora2020-07-261-2/+2
| | | | | | | Fixes: bug#42531 * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Reverse order of eldoc-documentation-functions.
* Optimise 3-arg +, - and *Mattias Engdegård2020-07-251-0/+10
| | | | | | | | | | Turn (+ a b c) into (+ (+ a b) c), and do the same for - and *. The 2-arg operations have their own bytecode which results in a 1.5× speed-up. Furthermore, the transform enables other optimisations; for example, (+ a 1 b) -> (+ (1+ a) b). * lisp/emacs-lisp/byte-opt.el (byte-optimize-plus, byte-optimize-minus) (byte-optimize-multiply): Transform (OP a b c) into (OP (OP a b) c).
* Fix display of man pages after killing the 'man' processEli Zaretskii2020-07-251-2/+2
| | | | | | * lisp/man.el (Man-bgproc-filter, Man-bgproc-sentinel): Use 'buffer-live-p' instead of just testing the buffer's name. (Bug#42160)
* project-remember-project: New public functionDmitry Gutov2020-07-251-2/+3
| | | | | | * lisp/progmodes/project.el (project-remember-project): Rename from project--add-to-project-list-front (bug#42332). And autoload it.
* * lisp/vc/vc-git.el (vc-git-log-view-mode): Fix commit regexp (bug#40248)Juri Linkov2020-07-241-1/+1
| | | | | The regexp 'log-view-message-re' should match e.g. "commit 123456789", not "CommitDate".
* Don't call undefined function elisp-eldoc-documentation-function (bug#42493)Tassilo Horn2020-07-231-1/+3
| | | | | | | * lisp/ielm.el (inferior-emacs-lisp-mode): Add `elisp-eldoc-var-docstring' and `elisp-eldoc-funcall' as `eldoc-documentation-functions' instead of the undefined elisp-eldoc-documentation-function (bug#42493).
* bug-reference auto-setup for IRC, implementation for ERCTassilo Horn2020-07-231-23/+43
| | | | | | | | | | | | * lisp/progmodes/bug-reference.el (bug-reference-setup-from-irc-alist): Change SERVER-REGEXP to NETWORK-REGEXP in docstring. * lisp/progmodes/bug-reference.el (bug-reference--maybe-setup-from-irc): Change semantics from requiring a match of channel OR server to requiring a match of both (if both are configured). * lisp/progmodes/bug-reference.el (bug-reference-try-setup-from-erc): New defun doing the auto-setup for ERC. (bug-reference--run-auto-setup): Run bug-reference-try-setup-from-erc. * etc/NEWS: Extend entry describing bug-reference auto-setup.
* Fix viewing of encrypted S/MIME messagesLars Ingebrigtsen2020-07-231-2/+8
| | | | | * lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Don't add a content-type header if there already is one (bug#41659).
* Don't needlessly request docs from ElDoc functionsJoão Távora2020-07-231-19/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: bug#42421 Do this conservatively for now: if the ElDoc helper buffer (as returned by eldoc--doc-buffer) is visible and showing documentation for the very same "situation" (as computed by the the new eldoc--request-state helper), don't request that documentation from sources again. Before this change, not only was that request inefficient but if the user invoked scroll-other-window to see more of the helper buffer, that would eventually cause it to be reformatted and unexpectedly recentered. Later on, when a customizable list of documentation "sinks" is offered to the user, say, something like eldoc-display-functions, this process must be consolidated. In those circumstances, as soon as one of those sinks signals that it doesn't have up-to-date documentation for the state computed by eldoc--request-state, documentation will have to be requested anew from eldoc-documentation-functions via eldoc--invoke-strategy. * lisp/emacs-lisp/eldoc.el (eldoc--request-docs-p): Rework from eglot-display-message-p. (eldoc--last-request-state): New variable. (eldoc--request-state): New helper. (eldoc--handle-docs): Memorize state of request in doc buffer. (eldoc-print-current-symbol-info): Pass a token to eldoc--request-docs-p. (Version): Bump to 1.6.0
* Merge from origin/emacs-27Glenn Morris2020-07-221-3/+4
|\ | | | | | | | | 4db3235fd8 Run custom-magic-reset in the customize buffer 3c9c3f04de ; spelling fix
| * Run custom-magic-reset in the customize bufferRobert Pluim2020-07-211-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | If the user has navigated away from the customize buffer, then clicking on a widget in the customize buffer applies changes in the selected buffer rather than in the customize buffer. Pass the customize buffer to 'custom-magic-reset' to avoid this. * lisp/cus-edit.el (custom-magic-reset): Add optional buffer argument, apply changes in that buffer. (custom-notify): Pass the buffer containing the widget to 'custom-magic-reset'. (Bug#40788)
| * Backport: Rectify allout-widgets region undecoration so item at start is not ↵Ken Manheimer2020-07-201-11/+14
| | | | | | | | | | | | | | | | | | missed. * lisp/allout-widgets.el (allout-widgets-undecorate-region): Reorganize the loop so an item at the start is not skipped. (cherry picked from commit 33d85cb768b40794bffcd9ab22fbdec1211a74e5)
| * Backport: Resolve missing button-region keymap bindings.Ken Manheimer2020-07-201-15/+22
| | | | | | | | | | | | | | | | | | | | * lisp/allout-widgets.el (allout-item-icon-keymap, allout-item-body-keymap, allout-cue-span-keymap, allout-widgets-mode): Inherit from both (current-local-map) and (current-global-map). This provides for missing global bindings when inheriting from just (current-local-map), eg Esc-<. (cherry picked from commit dd7c191291c8eb1afeac0f1512745491c5c7a317)
| * Backport: Provide missing let definition to prevent background void-variable ↵Ken Manheimer2020-07-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | error. * lisp/allout-widgets.el (allout-widgets-exposure-change-processor) Let-declare handled-conceal, for reference through `(symbol-value)' within the let body. (Because the error happens in an after-change-functions hook, so it is caught and reported as a message by allout-widgets-hook-error-handler.) (cherry picked from commit 3c410b6b4753e02269bb36914e7534eb124150dd)
| * Backport: Don't let item decoration be disrupted by too-shallow items.Ken Manheimer2020-07-201-5/+8
| | | | | | | | | | | | | | | | | | | | * lisp/allout-widgets.el (allout-decorate-item-and-context): Check for parent-position having value before using it. Also, shift local emacs vars topic deeper so it doesn't constitute an instance of that particular aberrant case. (cherry picked from commit 8684216542889fa57daa32072104afc69785907f)
| * Backport: Fix allout-widgets-mode handling of edits to item cue, fixing ↵Ken Manheimer2020-07-201-3/+2
| | | | | | | | | | | | | | | | | | | | | | (bug#11312) * lisp/allout-widgets.el (allout-decorate-item-cue): Properly decorate item cue span. (allout-setup-text-properties): use allout-graphics-modification-handler as allout-cue-span-category modification hook. (cherry picked from commit 8e13d332481551e4c8c1c66dd0c69dd09256dffc)
* | Calc: fix interval entry snag (bug#42438)Mattias Engdegård2020-07-221-1/+1
| | | | | | | | | | | | | | * lisp/calc/calc.el (calcDigit-key): Don't signal a 'Bad format' error when entering '..' after pushing an incomplete interval. Reported by Allen Li.
* | Rectify allout-widgets region undecoration so item at start is not missed.Ken Manheimer2020-07-201-11/+14
| | | | | | | | | | * lisp/allout-widgets.el (allout-widgets-undecorate-region): Reorganize the loop so an item at the start is not skipped.
* | Resolve missing button-region keymap bindings.Ken Manheimer2020-07-201-15/+22
| | | | | | | | | | | | | | | | * lisp/allout-widgets.el (allout-item-icon-keymap, allout-item-body-keymap, allout-cue-span-keymap, allout-widgets-mode): Inherit from both (current-local-map) and (current-global-map). This provides for missing global bindings when inheriting from just (current-local-map), eg Esc-<.
* | Provide missing let definition to prevent background void-variable error.Ken Manheimer2020-07-201-0/+1
| | | | | | | | | | | | | | | | * lisp/allout-widgets.el (allout-widgets-exposure-change-processor) Let-declare handled-conceal, for reference through `(symbol-value)' within the let body. (Because the error happens in an after-change-functions hook, so it is caught and reported as a message by allout-widgets-hook-error-handler.)
* | Don't let item decoration be disrupted by too-shallow items.Ken Manheimer2020-07-201-5/+8
| | | | | | | | | | | | | | | | * lisp/allout-widgets.el (allout-decorate-item-and-context): Check for parent-position having value before using it. Also, shift local emacs vars topic deeper so it doesn't constitute an instance of that particular aberrant case.
* | Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)Ken Manheimer2020-07-201-3/+2
| | | | | | | | | | | | | | * lisp/allout-widgets.el (allout-decorate-item-cue): Properly decorate item cue span. (allout-setup-text-properties): use allout-graphics-modification-handler as allout-cue-span-category modification hook.
* | Merge from origin/emacs-27Glenn Morris2020-07-204-9/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cd93debc60 (origin/emacs-27) Merge branch 'emacs-27' of git.savannah.... 2c0c613ec5 Document prefix arg effects for 'epa-mail-{sign,encrypt}' 551123e0b2 * etc/NEWS: Correct description of :client-certificate change 05c4329cf5 Revert "Fix filename completion in shell mode buffers" de68572742 Improve documentation of 'bookmark-bmenu-mode' fd85e70be7 Update systems using GnuTLS certificate files 0d4ba1c2b2 Improve documentation of 'kill-emacs' b3bbd4fd00 Improve documentation of 'display-raw-bytes-as-hex' f50d79af6b Correct descriptions of init file e325d2638c Fix interrupt-process on MS-Windows d24e56a5e4 Revert "* doc/misc/flymake.texi (An annotated example back... # Conflicts: # etc/NEWS
| * Merge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27Eli Zaretskii2020-07-201-1/+4
| |\
| | * Document prefix arg effects for 'epa-mail-{sign,encrypt}'Robert Pluim2020-07-201-1/+4
| | | | | | | | | | | | | | | | | | | | | * doc/misc/epa.texi (Mail-mode integration): Describe effect of prefix arg to 'epa-mail-encrypt' and 'epa-mail-sign'. * lisp/epa-mail.el (epa-mail-sign): Describe effect of prefix arg.
| * | Revert "Fix filename completion in shell mode buffers"Eli Zaretskii2020-07-181-5/+2
| |/ | | | | | | | | | | This reverts commit e4d17d8cb479ffeeb7dfb7320a1432722ac8df75. Per bug#42383 discussions, the fix for bug#34330 probably just works around the real issue, which is in pcomplete.el.
| * Improve documentation of 'bookmark-bmenu-mode'Eli Zaretskii2020-07-181-1/+2
| | | | | | | | | | * lisp/bookmark.el (bookmark-bmenu-mode): Add `bookmark-bmenu-search' to the doc string. (Bug#42325)
| * Update systems using GnuTLS certificate filesEli Zaretskii2020-07-181-2/+3
| | | | | | | | | | | | | | * lisp/net/gnutls.el (gnutls-trustfiles): Update the names of the systems in the comments. Reported by Richard Stallman <rms@gnu.org> in https://lists.gnu.org/archive/html/emacs-devel/2020-07/msg00455.html.
* | Fix problem with Tramp progress reporterMichael Albinus2020-07-201-3/+5
| | | | | | | | | | * lisp/net/tramp.el (with-tramp-progress-reporter): Do not span a new progress reporter if there's already another one.
* | Make xwidget-webkit-browse-url slightly more DWIMLars Ingebrigtsen2020-07-201-0/+3
| | | | | | | | | | * lisp/xwidget.el (xwidget-webkit-browse-url): Prepend "https" to URLs that don't have a protocol (bug#31369).
* | Suppress relint false positive in gnus-start.elMattias Engdegård2020-07-201-0/+1
| | | | | | | | | | | | | | * lisp/gnus/gnus-start.el (gnus-active-to-gnus-format): Add suppressive comment. Prepending "^to\\.\\|" is redundant when 'gnus-ignored-newsgroups' already matches that pattern, but adding logic here is not worth the trouble.
* | ; project.el: Talk about equalityDmitry Gutov2020-07-201-2/+5
| |
* | project.el: Add more docs and two new key bindingsDmitry Gutov2020-07-201-7/+64
| | | | | | | | | | | | | | | | * lisp/progmodes/project.el: Add a longer description of the package and how to use it. (project-prefix-map): Add entries for 'project-or-external-find-file' and 'project-or-external-find-regexp'.
* | Only kill url-retrieve-synchronously connections when we have a timeoutLars Ingebrigtsen2020-07-191-7/+11
| | | | | | | | | | * lisp/url/url.el (url-retrieve-synchronously): Only kill the connections when we have a timeout (bug#34607).