summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* ; Clarify what time-stamp-active enablesStephen Gildea2020-01-241-8/+15
| | | | | | Fix documentation strings and comments for time-stamp. Most notably: * lisp/time-stamp.el (time-stamp-active): in the doc string, clarify that time-stamp-active does not add time-stamp to any hook.
* Update ERC module URLsAmin Bandali2020-01-2422-14/+21
| | | | | | | | | | | | | | * lisp/erc/erc-autoaway.el, lisp/erc/erc-button.el, lisp/erc/erc-compat.el, lisp/erc/erc-fill.el, lisp/erc/erc-imenu.el, lisp/erc/erc-join.el, lisp/erc/erc-lang.el, lisp/erc/erc-match.el, lisp/erc/erc-pcomplete.el, lisp/erc/erc-ring.el, lisp/erc/erc-spelling.el, lisp/erc/erc-stamp.el, lisp/erc/erc-track.el: Update URL to friendlier form, over https. * lisp/erc/erc-ibuffer.el: Remove URL to nonexistent page. * lisp/erc/erc-list.el, lisp/erc/erc-log.el, lisp/erc/erc-notify.el, lisp/erc/erc-replace.el, lisp/erc/erc-services.el, lisp/erc/erc-sound.el, lisp/erc/erc-speedbar.el, lisp/erc/erc-truncate.el: Add URL to corresponding EmacsWiki page.
* Minor doc string clarification in use-hard-newlinesLars Ingebrigtsen2020-01-231-1/+1
| | | | | * lisp/textmodes/paragraphs.el (use-hard-newlines): Clarify that this minor mode isn't global (bug#20461).
* Backport: Fix bug 39218Tino Calancha2020-01-231-1/+2
| | | | | * lisp/simple.el (shell-command): Ensure a shell command ending with `&' is run asynchronously.
* Prefer saying "Info manual" to "info page" in docsStefan Kangas2020-01-233-4/+4
| | | | | | | | | | | | | Pointed out by Eli Zaretskii in: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39215#14 * doc/emacs/Makefile.in: * doc/lispintro/Makefile.in: * doc/lispref/Makefile.in: * doc/misc/Makefile.in: * lisp/dired-x.el (top-level): * lisp/gnus/gnus-sum.el (gnus-summary-mode): * lisp/progmodes/cperl-mode.el (cperl-info-page): Doc fix; prefer saying "Info manual" over "info page".
* Tab-bar related finishing touches.Juri Linkov2020-01-232-7/+12
| | | | | | | | | | * lisp/tab-bar.el (tab-bar-tab-name-ellipsis): Use shorter name instead of tab-bar-tab-name-truncated-ellipsis. (tab-bar-new-tab-to) <defcustom>: Add 'function' option. (tab-bar-new-tab-to) <function>: Use it. * lisp/tab-line.el (tab-line-close-tab): Add missing arg 'tab' to tab-line-close-tab-function funcall.
* * lisp/simple.el: Minor fixes to commentary.Paul Eggert2020-01-221-3/+2
|
* Fix doc strings for image-dired rotation commandsChristophe Deleuze2020-01-221-12/+12
| | | | | | | | | * lisp/image-dired.el (image-dired-rotate-thumbnail-left) (image-dired-rotate-thumbnail-right) (image-dired-rotate-original-left) (image-dired-rotate-original-right): Move the text in the doc strings about rotating the originals to the correct commands (bug#38928).
* Render Ido suggestions using an overlayDmitry Gutov2020-01-221-1/+9
| | | | | | * lisp/ido.el (ido--overlay): New variable. (ido-exhibit): Render with 'after-string' on an overlay (bug#38457).
* * lisp/vc/smerge-mode.el (smerge-match-conflict): Fix bug#38456Stefan Monnier2020-01-211-1/+4
| | | | | This situation is not an internal error, but a perfectly normal occurrence, so a `cl-assert` is not right
* Improve display of temporary echo messagesEli Zaretskii2020-01-211-2/+8
| | | | | | | | | * lisp/minibuffer.el (set-minibuffer-message): Fix cursor position for the temporary display of an echo-area message when minibuffer is active. Ensure the message is visible even if the end of the completion candidates presented by the likes of Icomplete mode is not visible due to its length, under resize-mini-windows = nil. (Bug#38457)
* * lisp/menu-bar.el: Remove desktop-save-mode from release branch (bug#37594)Juri Linkov2020-01-211-12/+0
| | | | ; Not to be merged to master
* Allow optional truncation of tab names in tab-bar and tab-line (bug#38693)Juri Linkov2020-01-212-39/+59
| | | | | | | | | | | | | | | | | | | * lisp/tab-line.el (tab-line-tab-name-truncated-max): New defcustom. (tab-line-tab-name-truncated-buffer): Use tab-line-tab-name-truncated-max consistently with similar options in tab-bar.el. (tab-line-tabs-limit): Remove variable. (tab-line-tabs-window-buffers): Remove use of tab-line-tabs-limit that was an experimental feature before horizontal scrolling was implemented. (tab-line-close-tab-function): Rename from tab-line-close-tab-action and allow a customizaed function as option. (tab-line-close-tab): Call function if tab-line-close-tab-function is customized to a function. * lisp/tab-bar.el (tab-bar-tab-name-function): Add option tab-bar-tab-name-truncated. (tab-bar-tab-name-truncated-max): New defcustom. (tab-bar-tab-name-truncated-ellipsis): New variable. (tab-bar-tab-name-truncated): New function.
* * lisp/tab-line.el (tab-line-auto-hscroll): Fix for long tab names.Juri Linkov2020-01-201-12/+16
| | | | | Check for nil value returned by previous-single-property-change that happens when tab name is longer than window width.
* * lisp/menu-bar.el (menu-bar-options-menu): Add desktop-save-mode (bug#37594)Juri Linkov2020-01-201-0/+12
|
* Fix shell-command-dont-erase-buffer featureTino Calancha2020-01-191-16/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (shell-command-dont-erase-buffer): The default, nil, is backward compatible, i.e. it erases the buffer only if the output buffer is not the current one; the new value 'erase always erases the output buffer. Update docstring. (shell-command-save-pos-or-erase): Add optional arg output-to-current-buffer. Rename it so that it's not internal. All callers updated. (shell-command-set-point-after-cmd): Rename it so that it's not internal. All callers updated. Adjust it to cover a side case. (shell-command): Adjust logic to match the specification (Bug#39067). Enable the feature when the output buffer is the current one. (shell-command-on-region): Little tweak to follow `shell-command-dont-erase-buffer' specification. * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Add helper macro. (simple-tests-shell-command-39067) (simple-tests-shell-command-dont-erase-buffer): Add tests. * doc/emacs/misc.texi (Single Shell): Update manual. * etc/NEWS (Single shell commands): Announce the change.
* Doc fixes in package.elStefan Kangas2020-01-191-3/+9
| | | | | | | | * lisp/emacs-lisp/package.el (package-process-define-package) (package-generate-description-file): Doc fixes. (package-generate-autoloads, package--write-file-no-coding) (package--archive-file-exists-p, package-desc-status): Add doc strings.
* Ensure that gnus-summary-attach-article finds the right articlesEric Abrahamsen2020-01-181-5/+6
| | | | | | | | | | * lisp/gnus/gnus-msg.el (gnus-summary-attach-article): Before iterating over the articles to attach, first close any open article. Using `set-buffer' required `gnus-summary-select-article' to re-set the buffer every time, meaning we never got off the original article. (cherry picked from commit 447bb1313a6abc07776d93ee78cd976ab43856e5)
* Remove some doc references to old Emacs versionsStefan Kangas2020-01-182-2/+2
| | | | | | | | * doc/misc/efaq.texi (Horizontal scrolling): Remove section only relevant to Emacs 21 or older. (Repeating commands, Editing MS-DOS files): * lisp/progmodes/gdb-mi.el: * lisp/woman.el: Doc fix - remove some references to Emacs 20 and older.
* Fix infloop in shell.elPieter van Oostrum2020-01-181-1/+1
| | | | | | | | | | | * test/lisp/shell-tests.el (shell-tests-completion-before-semi): Amend the shell.el tests to catch errors such as bug#39057. * lisp/shell.el (shell--parse-pcomplete-arguments): Skip the semi-colon as well. This avoids inflooping when a semi-colon is typed by the user. (Bug#39057) Copyright-paperwork-exempt: yes
* Fix erc-notifications-notify for non-PRIVMSGs, broken in last commitAmin Bandali2020-01-171-4/+6
| | | | | | | | | * lisp/erc/erc-desktop-notifications.el (erc-notifications-notify): Take optional argument `privp', to be non-nil when notifying for a PRIVMSG. This is to work around bug introduced in last commit, as `erc-get-buffer' may return nil for non-PRIVMSG cases. (erc-notifications-PRIVMSG): Call erc-notifications-notify with non-nil `privp', as described above.
* Fix the notification action for PRIVMSG in erc-notifications-notifyAmin Bandali2020-01-171-1/+1
| | | | | | | | | * lisp/erc/erc-desktop-notifications.el (erc-notifications-notify): explicitly request the buffer for `nick', rather than relying on (current-buffer) returning it. That works fine for the very first PRIVMSG sent by `nick', but ERC seems to handle subsequent PRIVMSGs differently, where (current-buffer) would return the server buffer rather than the existing buffer for PRIVMSGs from `nick'.
* ERC: New maintainer.Amin Bandali2020-01-1735-34/+35
| | | | | | * admin/MAINTAINERS: Add entries for Amin Bandali, new maintainer for ERC, and interested in maintaining Eshell. * lisp/erc/*: New maintainer.
* ; spelling fixesPaul Eggert2020-01-174-4/+4
|
* Honor tags-case-fold-search during xref identifer completionDmitry Gutov2020-01-182-11/+20
| | | | | | | | | | | | | | | | * etc/NEWS: New entry. * lisp/progmodes/etags.el (tags-case-fold-search): Mark as safe-local. (find-tag--completion-ignore-case): Extract from tags-completion-at-point-function, find-tag-tag and etags--xref-find-definitions. (xref-backend-identifier-completion-ignore-case): New method. Use it here as well. * lisp/progmodes/xref.el (xref-backend-identifier-completion-ignore-case): New generic. (xref--read-identifier): Use it here.
* Fix wording and punctuation of a recent commitEli Zaretskii2020-01-172-5/+5
| | | | | | * lisp/textmodes/ispell.el (ispell-correct-p): Doc fix. * lisp/emacs-lisp/checkdoc.el (checkdoc-ispell-init): Fix capitalization and punctuation of comments.
* Add unattended spell-checking to checkdocDamien Cassou2020-01-172-62/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes checkdoc capable of spell-checking even when the user isn't using it interactively. When TAKE-NOTES is non-nil, checkdoc will run spell-checking (with ispell) and report spelling mistakes. Fixes: (bug#38583). * lisp/textmodes/ispell.el (ispell-word): Extract part of it to `ispell--run-on-word`. (ispell--run-on-word): New function, extracted from `ispell-word`. (ispell-error-checking-word): New function. (ispell-correct-p): New function. Use `ispell--run-on-word` and `ispell-error-checking-word`. * lisp/emacs-lisp/checkdoc.el (checkdoc-current-buffer): Pass TAKE-NOTES to `checkdoc-start`. (checkdoc-continue): Pass TAKE-NOTES to `checkdoc-this-string-valid`. (checkdoc-this-string-valid): Add optional argument TAKE-NOTES and pass it to `checkdoc-this-string-valid-engine`. (checkdoc-this-string-valid-engine): Add optional argument TAKE-NOTES and pass it to `checkdoc-ispell-docstring-engine`. (checkdoc-ispell-init): Call `ispell-set-spellchecker-params` and `ispell-accept-buffer-local-defs`. These calls are required to properly use ispell. The problem went unnoticed until now because checkdoc was only using ispell through the high-level command `ispell-word` which takes care of all the initialization for the user. (checkdoc-ispell-docstring-engine): Add optional argument TAKE-NOTES to force reporting of spell-checking errors. Throw error when (checkdoc-ispell-init) fails configuring ispell. Replace a few (if cond nil body) with (unless cond body). Replace (let ((var nil))) with (let (var)). Replace (if (not (eq checkdoc-autofix-flag 'never)) body) with just body because `checkdoc-autofix-flag` is checked at the beginning of the function. (cherry picked from commit 25adbc4a5ecc3e16625c0171607e3153bbdf7ab1)
* Fix the error message from makefile-move-to-macroLin Sun2020-01-171-1/+2
| | | | | | | * lisp/cedet/ede/makefile-edit.el (makefile-macro-file-list): regexp-quote the param in makefile-move-to-macro (Bug#39094). (cherry picked from commit a36495da1ec1419998c17fd64fb7439eaf940f36)
* ; * lisp/obsolete/vc-arch.el: Add missing "Obsolete-since" tag.Stefan Kangas2020-01-171-0/+1
|
* ; * lisp/ezimage.el: Fix typo.Stefan Kangas2020-01-171-1/+1
|
* * lisp/minibuffer.el (read-file-name-default): Fix bug#39057Stefan Monnier2020-01-161-2/+7
|
* Make emacs prefer an existing ~/.emacs.d to an existing XDG locationRobert Pluim2020-01-161-21/+21
| | | | | | | | | | | | | | | * doc/emacs/custom.texi (Find Init): Update description of how Emacs finds its init file directory and the interaction with $XDG_CONFIG_HOME (Early Init File): Correct XDG location of early-init.el * etc/NEWS: Update description to make it clear the ~/.emacs.d is preferred, even if the XDG location exists. * lisp/startup.el: Prefer ~/.emacs.d even if the XDG location exists. * lib-src/emacsclient.c (open_config): Prefer home directory the XDG location.
* ; Unmaintain fortran elispGlenn Morris2020-01-152-2/+2
|
* f90: handle F2008 module functionGlenn Morris2020-01-151-5/+12
| | | | | | | * lisp/progmodes/f90.el (f90-font-lock-keywords-1) (f90-looking-at-program-block-start): Handle F2008 "module function" and subroutine. (Bug#38415) * test/lisp/progmodes/f90-tests.el (f90-test-bug38415): New test.
* Move shell-related menu items to "Shell Commands" submenu (bug#37594)Juri Linkov2020-01-161-7/+26
| | | | | | | * lisp/menu-bar.el (menu-bar-shell-commands-menu): New variable. (menu-bar-tools-menu): Move shell-related menu items to 'menu-bar-shell-commands-menu' and add menu items for 'async-shell-command' and 'shell'.
* * lisp/isearch.el: Fix corner cases of isearch-lazy-count.Juri Linkov2020-01-151-2/+5
| | | | | | | | | | | * lisp/isearch.el (isearch-mode): Reset isearch-lazy-count-current and isearch-lazy-count-total to nil, so when isearch-mode is started, there should be no counts from previous Isearch. (isearch-lazy-highlight-new-loop): Call isearch-message after resetting lazy-count variables only when isearch-mode is started. This avoids the problem of inappropriate calls of isearch-message-function when query-replace in the minibuffer performs lazy-highlighting that used to call minibuffer-history-isearch-message unnecessarily.
* ; * lisp/simple.el (messages-buffer): Doc fix. (Bug#39124)Eli Zaretskii2020-01-141-1/+1
|
* Always use lexical-binding in lisp-interaction-mode (bug#38835)Mattias Engdegård2020-01-132-4/+3
| | | | | | | | | | * lisp/progmodes/elisp-mode.el (lisp-interaction-mode): Set lexical-binding. * lisp/startup.el (command-line, startup--get-buffer-create-scratch): Don't set lexical-binding here. * doc/lispref/variables.texi: * etc/NEWS: Make it clear that lisp-interaction-mode uses lexical-binding.
* vc-dir: ensure we don't use a pager with gitRobert Pluim2020-01-131-2/+1
| | | | | * lisp/vc/vc-git.el (vc-git--call): Call git with '--no-pager' to avoid hangs caused by remote pager settings (Bug#38688).
* Improve ERC's matching of nicks and URLs (bug#38257)Amin Bandali2020-01-132-11/+3
| | | | | | | | | | | * lisp/erc/erc-{button,match}.el (erc-{button,match}-syntax-table): Omit (, ), and '; as they're not valid nick characters, per RFC 2812 section 2.3.1. This enables correct matching/highlighting of nicks when they're surrounded by parens, like (nick), and when adjacent to an apostrophe, like nick's. * lisp/erc/erc-button.el (erc-button-url-regexp): Use the regexp from browse-url-button-regexp, which among other things, seems to handle surrounding pair of parens better.
* Handle tab-bar clicks on a GPM-capable console.Juri Linkov2020-01-131-3/+1
| | | | | | | | | | * src/term.c (handle_one_term_event): Call tty_handle_tab_bar_click. * src/xdisp.c (tty_handle_tab_bar_click): Force reset of up_modifier bit from the event modifiers. * lisp/tab-line.el (tab-line-tab-current): No need to use inverse-video on console/xterm because the selected tab already uses inverse-video.
* Reset to the standard value when reverting session's customizationsMauro Aranda2020-01-111-9/+10
| | | | | * lisp/cus-edit.el (custom-variable-reset-saved): When there is no previous saved value, reset to the standard value. (Bug#15214)
* Fix saving multiple themesMauro Aranda2020-01-111-1/+1
| | | | | * lisp/custom.el (enable-theme): Be side-effect free when modifying custom-enabled-themes. (Bug#19999)
* Calc: fix interval entry (bug#39040)Mattias Engdegård2020-01-101-1/+1
| | | | | | | * lisp/calc/calc.el (calcDigit-start): Initialise calc-prev-char to something more reasonable, so that non-algebraic entry of intervals whose start is a single digit, like (1..10), works properly. Reported by Michel Schinz.
* Fix horizontal line display in Custom buffersEli Zaretskii2020-01-101-0/+1
| | | | | * lisp/cus-edit.el (custom-group-value-create): Insert a newline before calling 'custom-group--draw-horizontal-line'. (Bug#39074)
* flymake: fix typo in variable binding (bug#38752)Mattias Engdegård2020-01-101-1/+1
| | | | | | | This mistake was found by an experimental elisp optimiser. * lisp/progmodes/flymake-proc.el (flymake-proc-stop-all-syntax-checks): Add missing brackets.
* Add comment on fido-mode's file-sorting semanticsJoão Távora2020-01-091-0/+6
| | | | * lisp/icomplete.el (icomplete--sorted-completions): Add comment.
* Consider non-string minibuffer-default in icompleteJoão Távora2020-01-091-5/+6
| | | | | | | Fixes: bug#38992 * lisp/icomplete.el (icomplete--sorted-completions): Consider non-string minibuffer-default.
* Fix compression of directories in DiredEli Zaretskii2020-01-081-4/+12
| | | | | | | | | | | | | | | | | | | | | This fixes comporession and uncompression of directories on MS-Windows, but also on other systems. The original code used ":" as the REGEXP of the directory entry in dired-compress-file-suffixes, which on Windows always matched any absolute file name, and can also match unusual file names on Posix hosts. This false match would cause dired-compress-file to act as if we are decompressing a directory, but use a command suitable for compression, which would fail in interesting ways. We now use a REGEXP that can never match any valid file name. * lisp/dired-aux.el (dired-compress-file-suffixes): Make the "compress directory" entry's REGEXP really fail to match any valid file name. (dired-compress-file): Adapt to the change in dired-compress-file-suffixes. (Bug#39024) (dired-compress): If the current file is a directory, or if the uncompressed file is a directory, don't remove the original from the listing, since it is left in the filesystem.
* Further enhancement on `tramp-file-local-name'Michael Albinus2020-01-081-6/+5
| | | | | * lisp/net/tramp.el (tramp-file-local-name): Call `file-local-name' if NAME is not a Tramp file name.