summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAge
* Merge upstream Git snapshot into athena/unstableSean Whitton2024-05-15
|\
| * Avoid resizing mutation in subst-char-in-stringMattias Engdegård2024-05-10
| | | | | | | | | | * lisp/subr.el (subst-char-in-string): Use string-replace to avoid resizing mutation and O(n^2) time.
| * Fix 'dictionary-tooltip-mode'Eli Zaretskii2024-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/tooltip.el (tooltip-event-buffer): Make sure 'posn-window' returns a window before calling 'window-buffer'. * lisp/net/dictionary.el (dictionary-default-dictionary) (dictionary-tooltip-dictionary): Doc fixes. (dictionary-tooltip-dictionary): Change default value to t, which means the same dictionary as 'dictionary-default-dictionary'. (dictionary-do-search): If NOMATCHING is non-nil, do not insert anything into the current buffer, as that is unexpected when showing definitions in tooltips. (dictionary-word-at-mouse-event): Be defensive about the values returned by 'tooltip-event-buffer' and 'posn-point': they can be unexpected when the mouse pointer is on the tool bar or mode line etc. (dictionary-display-tooltip): Ignore errors in this function. (dictionary-tooltip-mode): Ignore mouse-movement events on tool bar and tab-bar. (dictionary-dictionaries): Decode the server response to present dictionaries in human-readable form. Document in the doc string the format of the return value.
| * * lisp/imenu.el (imenu-flatten): New defcustom (bug#70846).Juri Linkov2024-05-10
| | | | | | | | | | | | | | | | | | | | | | (imenu-level-separator): Adjust the docstring. (imenu--flatten-index-alist): New function revived from the initial implementation of this package. (imenu-choose-buffer-index): Use imenu--flatten-index-alist when imenu-flatten is non-nil. (imenu-buffer-menubar): Remove obsolete variable. * doc/emacs/programs.texi (Imenu): Document imenu-flatten.
| * ; Remove unnecessary defvars defined in a file we already 'require'Jim Porter2024-05-09
| | | | | | | | | | * lisp/eshell/esh-cmd.el (eshell-output-handle, eshell-error-handle): Remove superfluous declarations.
| * Fix bug#70856Po Lu2024-05-10
| | | | | | | | | | | | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down) (pixel-scroll-precision-scroll-up): Apply finer threshold for the minimum unit of scrolling. (pixel-scroll-precision-scroll-down-page): Document true restrictions on DELTA. (bug#70856)
| * Don't limit gnus thread searches to a single messageAndrew G Cohen2024-05-10
| | | | | | | | | | | | * lisp/gnus/gnus-search.el (gnus-search-single-p): Searches for a single message id finish after finding this one message; thread searches continue until all messages are found.
| * Improve doc-type determination in doc-viewAndrew G Cohen2024-05-10
| | | | | | | | | | * lisp/doc-view.el (doc-view-set-doc-type): If buffer-file-name is not set try the buffer-name to identify the doc type.
| * Find correct parent for articles in gnusAndrew G Cohen2024-05-10
| | | | | | | | | | | | * lisp/gnus/gnus-sum.el (gnus-summary-refer-parent-article): When an article's headers have been altered, use the altered headers to find the parent.
| * ; * lisp/mail/smtpmail.el (smtpmail-try-auth-method): quote symbol.Andrew G Cohen2024-05-10
| |
| * ; Fix an edge case with Eshell globs when the directory part is quotedJim Porter2024-05-09
| | | | | | | | | | | | | | | | * lisp/eshell/esh-util.el (eshell-split-filename): Escaping shouldn't matter for splitting the name (no other shells handle it like this). * test/lisp/eshell/em-glob-tests.el (em-glob-test/convert/quoted-start-directory): New test.
| * ; Reference the xoauth2 method in nnimap-authenticator docstringJakub Ječmínek2024-05-09
| | | | | | | | | | * lisp/gnus/nnimap.el (nnimap-authenticator): Update variable documentation to include xoauth2 method.
| * ; Fix example code in nnfeedDaniel Semyonov2024-05-09
| | | | | | | | * lisp/gnus/nnfeed.el: Backend declaration example was incorrect.
| * Tramp code cleanupMichael Albinus2024-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-compat.el (tramp-compat-seq-keep): New defalias. * lisp/net/tramp.el (tramp-enable-method): * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): * lisp/net/tramp-cache.el (tramp-list-connections): * lisp/net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers): * lisp/net/tramp-container.el (tramp-container--completion-function) (tramp-toolbox--completion-function) (tramp-flatpak--completion-function) (tramp-apptainer--completion-function): * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): Use it.
| * Fix 'srecode-all-template-hash' always returning nilCharalampos Mitrodimas2024-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The issue was that the function always returned nil because the closing parentheses were in the wrong position. This meant that the function couldn't give back the data it was supposed to, making the whole srecode system not work properly. By moving the parentheses to the correct place, the function now returns a hash table with all the templates it finds. * lisp/cedet/srecode/find.el (srecode-all-template-hash): Adjusted the position of closing parentheses so that the mhash variable is returned correctly. (Bug#70765) Copyright-paperwork-exempt: yes
| * ; Check process in 'python-shell-completion-at-point'Lin Sun2024-05-09
| | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-completion-at-point): Check the PROCESS argument at the beginning of the function. (Bug#70707)
| * Add bitwise assignment operators to 'python--treesit-operators'Noah Peart2024-05-09
| | | | | | | | | | * lisp/progmodes/python.el (python--treesit-operators): Add bitwise assignment operators. (Bug#70666)
| * * lisp/treesit.el (treesit-outline-search): Handle bobp specially.Juri Linkov2024-05-09
| | | | | | | | | | | | At the beginning of the buffer call 'treesit-outline-search' recursively with the `looking-at' argument set to t, since `treesit-navigate-thing' can't find a thing at bobp (bug#70789).
| * Fontify for_statement variable in python-ts-mode (bug#70718)Noah Peart2024-05-08
| | | | | | | | | | * lisp/progmodes/python.el (python--treesit-settings): Add font-lock query for for_statement variable in assignment feature.
| * Fontify namespace in c++-ts-modeYuan Fu2024-05-08
| | | | | | | | | | * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add a rule for namespace.
| * Fix #if defined directive fontification in c-ts-modeYuan Fu2024-05-08
| | | | | | | | | | * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Fontify each part separately so the identifier isn't overriden.
| * Improve indentation in 'lua-ts-mode' (bug#70785)john muhl2024-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules): - Ignore comments when aligning arguments, parameters and fields. - Apply simpler rules to simpler usage of anonymous functions. - Better handling of table as a function argument. (lua-ts--comment-first-sibling-matcher): (lua-ts--first-real-sibling-anchor): (lua-ts--last-arg-function-call-matcher): (lua-ts--top-level-function-call-matcher): New function. (lua-ts--g-parent): (lua-ts--g-g-parent): New function. (lua-ts--g-g-g-parent): Use it. * test/lisp/progmodes/lua-ts-mode-resources/indent.erts: Add tests.
| * Fontify doc comment in c-ts-mode with doc-faceYuan Fu2024-05-08
| | | | | | | | | | * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add rule for /** comments.
| * xref--collect-matches: Fix the application of syntax-propertizeDmitry Gutov2024-05-09
| | | | | | | | | | * lisp/progmodes/xref.el (xref--collect-matches): Add syntax-ppss-flush-cache call when needed (bug#53749).
| * choose-completion: Retain the suffix after completion boundaryDmitry Gutov2024-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/minibuffer.el (completion-base-suffix): Remove as not optimal after all (bug#48356). (completion--replace): Use insert-before-markers-and-inherit. (minibuffer-completion-help): Don't set completion-base-affixes, implement the same logic more optimally by local search and querying for field boundaries. Also fix the problem with completion table, predicate and extra-props being looked up in the wrong buffer. (minibuffer-next-completion, minibuffer-choose-completion): Don't bind completion-use-base-affixes anymore. * lisp/simple.el (completion-base-affixes) (completion-use-base-affixes): Remove. (completion-list-insert-choice-function): Don't pass them through anymore.
| * Prefer erc--skip property to erc-track--skipped-msgsF. Jason Park2024-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/erc/erc-stamp.el (erc-add-timestamp): Honor an overriding `erc--ts' "msg prop". (erc-stamp--defer-date-insertion-on-post-modify): Add `erc--skip' for the `track' module. * lisp/erc/erc-track.el (erc-track--skipped-msgs): Remove unused variable. Originally added as part of bug#60936. (erc-track-modified-channels): Rely on the `erc--skip' "msg prop" instead of the now defunct `erc-track--skipped-msgs' variable for detecting requests to omit `track' mode-line updates during `erc-display-message'.
| * Avoid shared-ref read syntax in ERC message catalogsF. Jason Park2024-05-08
| | | | | | | | | | | | | | | | * lisp/erc/erc.el (erc--message-speaker-ctcp-action-input) (erc--message-speaker-ctcp-action-statusmsg-input): Don't use shared/circular references, like #1=foo ... #1#, in literal strings because it triggers CI validation failures. These message-format definitions were originally introduced as part of bug#67677.
| * Add format-catalog entry for unknown chan mode in ERCF. Jason Park2024-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/erc/erc.el (erc--process-channel-modes): Use format spec catalog entry, and convert char to string. (erc-message-english-channel-mode-unknown): New variable. ;; * test/lisp/erc/erc-scenarios-base-renick.el ;; (erc-scenarios-base-renick-queries-solo): Adjust timeout. ;; * test/lisp/erc/erc-scenarios-ignore.el (erc-scenarios-ignore/basic): ;; Adjust timeouts. ;; * test/lisp/erc/erc-scenarios-misc.el (erc-scenarios-base-flood): ;; Adjust timeouts. ;; * test/lisp/erc/resources/base/assoc/bouncer-history/barnet.eld: ;; Adjust timeouts. ;; * test/lisp/erc/resources/base/reuse-buffers/channel/barnet.eld: ;; Adjust timeouts. ;; * test/lisp/erc/resources/erc-d/erc-d-tests.el (erc-d-run-basic): ;; Adjust timeouts. ;; * test/lisp/erc/resources/sasl/plain.eld: Adjust timeouts. ;; * test/lisp/erc/resources/sasl/external.eld: Adjust timeout. ;; * test/lisp/erc/resources/base/auth-source/foonet.eld: Adjust ;; timeout.
| * (repeat-echo-message-string): Reuse 'r-m-c' prompt formattingEshel Yaron2024-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that 'repeat-mode' supports adding labels ("hints") next to available keys, its prompt is very similar in its structure to what we have in 'read-multiple-choice' (a list of labeled keys). To make the two interfaces more consistent, reuse the prompt formatting that 'read-multiple-choice' employs. See short discussion at https://lists.gnu.org/archive/html/emacs-devel/2024-05/msg00467.html * lisp/repeat.el (repeat-echo-message-string): Use 'rmc--add-key-description' to format keys and their labels.
| * Don't mutate strings in cl-substituteMattias Engdegård2024-05-08
| | | | | | | | | | | | | | | | | | This fixes cl-substitute, cl-substitute-if, cl-substitute-if-not, cl-nsubstitute, cl-nsubstitute-if and cl-nsubstitute-if-not, when called with a string sequence argument. * lisp/emacs-lisp/cl-seq.el (cl-nsubstitute): Avoid running in O(n^2) time and make future-safe.
| * Correct documentation relating to tool-bar-positionPo Lu2024-05-08
| | | | | | | | | | | | | | | | * doc/emacs/android.texi (Android Windowing): Don't claim that tool-bar-position is unsupported on Android. * lisp/tool-bar.el (tool-bar-position): Update doc string to mention that bottom is supported on all systems but Nextstep.
| * Correct earlier change to map-ynpPo Lu2024-05-08
| | | | | | | | | | * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Don't call set-text-conversion-style if not bound.
| * More Tramp optional methodsMichael Albinus2024-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Inline methods) <krlogin, ksu>: (External methods) <fcp, nc>: These are optional methods. * etc/NEWS: Mention more optional Tramp methods. * lisp/net/tramp-androidsu.el (tramp-enable-androidsu-method): Use proper regexp for `tramp-default-user-alist'. * lisp/net/tramp-sh.el (tramp-enable-nc-method) (tramp-enable-ksu-method, tramp-enable-krlogin-method) (tramp-enable-fcp-method): New defuns. Move respective configurations there. * lisp/net/tramp.el (tramp-enable-method): Implement completion for interactive use. * test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults) (tramp-test03-file-name-host-rules): Extend tests.
| * Fix last change in tramp-androidsu.elMichael Albinus2024-05-07
| |
| * ; xref-matches-in-files: Fix the previous change (bug#70813)Dmitry Gutov2024-05-07
| |
| * Support biblatex field in `reftex-cite-format'Arash Esbati2024-05-07
| | | | | | | | | | | | | | | | | | * lisp/textmodes/reftex-cite.el (reftex-format-citation): Recognize the alternative "journaltitle" field which is preferred by biblatex. (bug#38762) * test/lisp/textmodes/reftex-tests.el (reftex-format-citation-test): Adjust test.
| * ; * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Add commentary.Eli Zaretskii2024-05-07
| |
| * Use clear-string instead of fillarray to clobber secret stringsMattias Engdegård2024-05-07
| | | | | | | | | | | | | | | | * lisp/net/sasl-cram.el (sasl-cram-md5-response): * lisp/net/sasl-digest.el (sasl-digest-md5-response-value): * lisp/net/sasl.el (sasl-plain-response): `fillarray` signals an error for strings that contain multibyte chars; `clear-string` always works for this purpose.
| * Add Tramp method "apptainer"Michael Albinus2024-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Top, Configuration): Add "Optional methods". (Optional methods): New section. (Inline methods) <androidsu, toolbox, flatpak>: These are optional methods. (Inline methods) <apptainer>: Add. * etc/NEWS: New Tramp method "apptainer". Some Tramp methods are optional. Fix typos. * lisp/net/tramp-androidsu.el (tramp-enable-androidsu-method): New defun. Call it when `system-type' is `android'. * lisp/net/tramp-container.el (tramp-apptainer-program): New defcustom. (tramp-apptainer-method): New defconst. (tramp-apptainer--completion-function) (tramp-enable-toolbox-method, tramp-enable-flatpak-method) (tramp-enable-apptainer-method): New defuns. * lisp/net/tramp.el (tramp-enable-method): New defun. * test/lisp/net/tramp-tests.el (tramp--test-container-p): Add "apptainer". (tramp--test-supports-processes-p): Extend function.
| * Disable text-conversion in map-ynpPo Lu2024-05-07
| | | | | | | | | | | | * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Bind overriding-text-conversion-style to nil around read-event and arrange that the input method be reset.
| * edebug.el: Fix `edebug-remove-instrumentation` (bug#70791)Stefan Monnier2024-05-06
| | | | | | | | | | * lisp/emacs-lisp/edebug.el (edebug-unwrap*): Traverse interpreted functions.
| * ; * lisp/kmacro.el (kmacro-add-counter): cut useless variable refMattias Engdegård2024-05-06
| |
| * * lisp/tab-bar.el (tab-bar-mouse-1): Avoid infinite recursion (bug#70086).Juri Linkov2024-05-06
| |
| * * lisp/emacs-lisp/warnings.el (display-warning): Add guardrails for window.Juri Linkov2024-05-06
| | | | | | | | | | Check for non-nil 'window' returned from 'display-buffer' for the case when users decide to use 'allow-no-window' in 'display-buffer-alist' (#70795).
| * * lisp/tab-bar.el (tab-bar-select-restore-windows): Use 'special-mode'.Juri Linkov2024-05-06
| |
| * * lisp/tab-bar.el: Support mouse clicks for multi-item 'global-mode-string'.Juri Linkov2024-05-06
| | | | | | | | | | | | (tab-bar-format-global): Split elements of 'global-mode-string' to separate items of the tab bar, so events for each item are handled separately (bug#70086).
| * Revert "Disable text conversion in map-ynp"Eli Zaretskii2024-05-06
| | | | | | | | | | This reverts commit f50a58123a3d386b9bba7c4ba14df62479887bd4. Please don't make such changes without discussing them.
| * ; Avoid byte-compiler warning in comp.elEli Zaretskii2024-05-06
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--symbol-func-to-fun): Move to before its first use.
| * Disable text conversion in map-ynpPo Lu2024-05-06
| | | | | | | | | | * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Read response with read-key, not read-char.
| * Remove unnecessary cons in function-type propertyAndrea Corallo2024-05-05
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp-common.el (comp-function-type-spec): Remove unnecessary car. * lisp/emacs-lisp/comp.el (comp--intern-func-in-ctxt): Likewise. * lisp/emacs-lisp/byte-run.el (byte-run--set-function-type): Update lambda list.