summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Clarify lexvar restrictions for add-to-ordered-list, add-to-historyMattias Engdegård2020-02-021-1/+3
| | | | | | | | | * lisp/subr.el (add-to-ordered-list, add-to-history): * doc/lispref/lists.texi (List Variables): * doc/lispref/minibuf.texi (Minibuffer History): Note in the doc string and manual that the variable arguments to add-to-ordered-list and add-to-history cannot refer to a lexical variable (bug#39373).
* Replace add-to-list to lexical variable with push (bug#39373)Mattias Engdegård2020-02-016-20/+19
| | | | | | | | | | | | | | | | | | Since 'add-to-list', being a plain function, cannot access lexical variables, such use must be rewritten for correctness. (Some instances actually do work thanks to a compiler macro, but it's not something code should rely on.) * lisp/autoinsert.el (auto-insert-alist): * lisp/cedet/mode-local.el (mode-local-print-bindings): * lisp/net/tramp-cache.el (tramp-flush-connection-properties) (tramp-list-connections): * lisp/net/zeroconf.el (zeroconf-list-service-names) (zeroconf-list-service-types, zeroconf-list-services): * lisp/org/org.el (org-reload): * lisp/whitespace.el (whitespace-report-region): * test/lisp/emacs-lisp/map-tests.el (test-map-do): Replace add-to-list with push.
* Clarify add-to-list documentation (bug#39373)Mattias Engdegård2020-02-011-0/+1
| | | | | | | | | While add-to-list often works with lexical variables, this is a hack that isn't always effective; better tell the user not to try. * doc/lispref/lists.texi (List Variables): Add a note about lexical variables to the add-to-list description. Fix the equivalent code. * lisp/subr.el (add-to-list): Amend doc string.
* MH-E: alter content in mh-display-msg, not mh-show-modeStephen Gildea2020-02-011-3/+3
| | | | | | | * lisp/mh-e/mh-show.el (mh-display-msg, mh-show-mode): buffer-altering code formerly in mh-show-mode is moved to the location in mh-display-msg where mh-show-mode used to be called before the fix to MH-E bug #470 moved the call earlier.
* Update documentation for mh-show-mode-hookStephen Gildea2020-02-012-5/+6
| | | | | | * lisp/mh-e/mh-e.el, doc/misc/mh-e.texi (mh-show-mode-hook): Now that the fix for MH-E bug #470 calls mh-show-mode-hook earlier, update the documentation to no longer say that the message contents are available.
* Example goto-addr hook: MH-E already uses goto-addressStephen Gildea2020-02-011-4/+4
| | | | | | * lisp/net/goto-addr.el, doc/emacs/misc.texi: Do not use MH-E as the example of how to add a hook to goto-address, because MH-E calls goto-address internally.
* ; Auto-commit of loaddefs files.Glenn Morris2020-02-011-2/+71
|
* * lisp/emacs-lisp/debug.el (debug): Merge the non-interactive casesPaul Pogonyshev2020-01-311-150/+142
| | | | | | bug#38927 (cherry picked from commit 502059433ce0e9699eb73d21656ce6e9e127d63b)
* Add more blackboard bold characters to TeX input methodAnsgar Burchardt2020-01-311-2/+26
| | | | | | | | | | | This patch adds all capital blackboard bold letters and those for "1" and "2". Most characters are in common use in mathematics, but it does not seem useful to exclude the few not widely used. Reference: https://en.wikipedia.org/wiki/Blackboard_bold * lisp/leim/quail/latin-ltx.el (latin-ltx--define-rules): Add all the blackboard bold commands from AMSTeX. (Bug#21103)
* ; * lisp/progmodes/gdb-mi.el (gdb-handle-reply): Fix commentary.Eli Zaretskii2020-01-311-1/+1
|
* Protect against errors in gdb-mi.el handlersYuan Fu2020-01-311-1/+4
| | | | | | * lisp/progmodes/gdb-mi.el (gdb-handle-reply): Handle errors in 'handler-function' so the cleanup code after it runs safely. (Bug#39178)
* Allow exiting the Python interpreter of a GDB sessionEli Zaretskii2020-01-311-2/+4
| | | | | | * lisp/progmodes/gdb-mi.el (gdb-delchar-or-quit): Send EOF to GDB if we are in an embedded interpreter. This allows to exit from "pi" cleanly. (Bug#39140)
* Tab-bar related fixes.Juri Linkov2020-01-303-6/+15
| | | | | | | | | * lisp/cus-start.el (tab-bar-mode): Use dedicated group 'tab-bar'. * lisp/tab-bar.el (tab-bar-history-mode): Add :group 'tab-bar'. (tab-bar-get-buffer-tab): Add optional arg 'ignore-current-tab'. * lisp/desktop.el (desktop-buffers-not-to-save-function): Add docstring.
* dns-mode-soa-auto-increment-serial: safe if symbolpStephen Gildea2020-01-271-0/+1
| | | | | * lisp/textmodes/dns-mode.el (dns-mode-soa-auto-increment-serial): Mark variable as safe as a file local variable when symbolp.
* * lisp/wdired.el: Clean out isearch-filter-predicate (bug#37496)Juri Linkov2020-01-281-0/+2
| | | | | | * lisp/wdired.el (wdired-change-to-dired-mode): Use remove-function to remove wdired-isearch-filter-read-only (whose value was added in wdired-change-to-wdired-mode) from local value of isearch-filter-predicate.
* ; Spelling and URL fixesPaul Eggert2020-01-271-1/+1
|
* Finish the documentation for c-noise-macro-{,with-parens-}names.Alan Mackenzie2020-01-271-4/+11
| | | | | | | | | | | The doc strings and pertinent CC Mode manual page failed to mention that these variables could also be regular expressions. Amend them. * lisp/progmodes/cc-vars.el (c-noise-macro-names) (c-noise-macro-with-parens-names): Amend the doc strings. * doc/misc/cc-mode.texi (Noise Macros): Amend the descriptions of the two variables.
* Objective C Mode: Make c-forward-type work with "unsigned long", etc.Alan Mackenzie2020-01-261-3/+2
| | | | | | | | This allows the correct fontification of and correct functioning of C-c C-z (c-display-defun-name) in ns_get_pixel in Emacs's src/nsimage.m. * lisp/progmodes/cc-langs.el (c-primitive-type-prefix-kwds): For objc, use the same value as for c and c++ rather than the default nil.
* Improve doc string of 'newline'Stefan Kangas2020-01-251-3/+4
| | | | | | | | * lisp/simple.el (newline): Doc fix. Move 'use-hard-newlines' down, since it's less important than the meaning of the prefix argument, and is less frequently used than 'electric-indent-mode' and 'auto-fill-mode'. Change the wording to no longer call it an option.
* Do not refer to obsolete aliasMario Lang2020-01-241-1/+1
|
* ; 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
|