aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use single-arg form of `signal` to re-throw an errorStefan Monnier9 hours4-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/smerge-mode.el (smerge-extend): * lisp/vc/diff-mode.el (diff-beginning-of-file-and-junk): * lisp/transient.el (transient--with-emergency-exit): * lisp/textmodes/tex-mode.el (latex-forward-sexp): * lisp/tar-mode.el (tar-mode): * lisp/savehist.el (savehist--reload): * lisp/progmodes/octave.el (inferior-octave-resync-dirs): * lisp/progmodes/js.el (js--re-search-forward): * lisp/plstore.el (plstore--decrypt): * lisp/net/dbus.el (dbus-ignore-errors, dbus-register-signal) (dbus-handle-event): * lisp/mouse.el (mouse-drag-track, mouse-drag-region-rectangle): * lisp/minibuffer.el (completion-pcm--find-all-completions): * lisp/mail/rfc2231.el (rfc2231-parse-string): * lisp/mail/rfc2047.el (rfc2047-encode-region): * lisp/jit-lock.el (jit-lock-fontify-now): * lisp/international/ja-dic-utl.el (skkdic-lookup-key): * lisp/gnus/nnselect.el (nnselect-generate-artlist): * lisp/gnus/mml-sec.el (mml-secure-epg-encrypt, mml-secure-epg-sign): * lisp/gnus/mail-source.el (mail-source-fetch-pop) (mail-source-check-pop): * lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): * lisp/files.el (basic-save-buffer-2, files--ensure-directory) (files--force, copy-directory): * lisp/eshell/esh-io.el (eshell-output-object-to-target): * lisp/epa.el (epa-decrypt-file, epa-verify-file, epa-sign-file) (epa-encrypt-file, epa-decrypt-region, epa-verify-region) (epa-sign-region, epa-encrypt-region, epa-delete-keys) (epa-export-keys, epa-insert-keys): * lisp/emacs-lisp/package.el (package--unless-error): * lisp/emacs-lisp/multisession.el (multisession--read-file-value): * lisp/emacs-lisp/lisp.el (up-list-default-function): * lisp/desktop.el (desktop-kill): * lisp/calendar/time-date.el (date-to-time): * lisp/calendar/appt.el (appt-display-message): * lisp/calc/calc.el (calc-do): * lisp/bookmark.el (bookmark-handle-bookmark): * src/fileio.c (report_file_errno): * lisp/vc/vc.el (vc-checkout, vc-pull): Use `(signal err)` instead of `(signal (car err) (cdr err))`.
* Use the new error API functionsStefan Monnier9 hours3-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/epa-file.el (epa-file--find-file-not-found-function): Use `error-slot-value` and `error-data`. (epa-file-insert-file-contents): Use `error-has-type-p`, `error-slot-value`, and `error-data`. * lisp/jka-compr.el (jka-compr-insert-file-contents): Use `error-has-type-p` and `error-slot-value` as well as new re-signaling form of `signal`. * lisp/simple.el (minibuffer-error-function): Use `error-has-type-p`. * lisp/startup.el (startup--load-user-init-file): Use `error-message-string`. (command-line): Use `error-has-type-p` and `error-message-string`. * lisp/type-break.el (type-break-demo-life): Use `error-message-string`. * lisp/emacs-lisp/bytecomp.el (batch-byte-compile-file): Use `error-message-string` and `error-has-type-p`. * lisp/emacs-lisp/edebug.el (edebug-safe-eval, edebug-report-error) (edebug-eval-expression): * lisp/emacs-lisp/debug.el (debugger-eval-expression): Use `error-message-string`. * lisp/emacs-lisp/ert.el (ert--should-error-handle-error): Use `error-has-type-p` and `error-type`. * lisp/net/sasl.el (sasl-error): Use `define-error`. * lisp/net/tramp-compat.el (tramp-error-type-p): New function. (tramp-permission-denied, tramp-compat-permission-denied): Use it. * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Use `error-type-p`. * lisp/xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal) (turn-off-xterm-mouse-tracking-on-terminal): Use `error-slot-value`. * lisp/simple.el (next-line, previous-line): Remove useless `condition-case` handler, and hence the whole `condition-case`, and then simplify. * lisp/gnus/nnrss.el (nnrss-insert): Use `with-demoted-errors`. * lisp/gnus/nnmaildir.el (nnmaildir--emlink-p, nnmaildir--enoent-p) (nnmaildir--eexist-p): Use `error-has-type-p`. (nnmaildir--new-number, nnmaildir-request-set-mark): Use single-arg `signal`. * lisp/ffap.el (ffap-machine-p): Use `error-slot-value`. * lisp/emacs-lisp/comp.el (comp--native-compile): Use `error-has-type-p` as well as single-arg `signal`. * lisp/net/ange-ftp.el (ange-ftp-hook-function): Use single-arg `signal`. * lisp/ebuff-menu.el (electric-buffer-menu-looper): Use `error-has-type-p`. * lisp/progmodes/ebrowse.el (ebrowse-electric-list-looper): Use `error-has-type-p`. (ebrowse-electric-position-looper): Make it an alias of `ebrowse-electric-list-looper`. * lisp/ibuffer.el (ibuffer-confirm-operation-on): * lisp/ls-lisp.el (ls-lisp--insert-directory): * lisp/gnus/gnus-search.el (gnus-search-run-query): * lisp/mail/mail-extr.el (mail-extr-safe-move-sexp): * lisp/net/dbus.el (dbus-set-property): * lisp/net/eudc-export.el (eudc-bbdbify-phone): * lisp/net/imap.el (imap-fetch-safe): * lisp/vc/vc.el (vc-root-dir): Use `error-slot-value` and single-arg `signal` to re-signal.
* Error handling clarifications found during error-APIStefan Monnier20 hours1-5/+2
| | | | | | | | | | | * lisp/simple.el (next-line, previous-line): Remove useless `condition-case` handler, and hence the whole `condition-case`, and then simplify. * lisp/emacs-lisp/comp.el (comp--error-add-context): New function. (comp--native-compile): Use it. * lisp/gnus/nnrss.el (nnrss-insert): Use `with-demoted-errors`.
* Remove one lambda level in some Gnus' functionsManuel Giraud2026-02-216-33/+11
| | | | | | | | | | | | * lisp/gnus/gnus-agent.el (gnus-agent-get-undownloaded-list): * lisp/gnus/gnus-cloud.el (gnus-cloud-prune-old-chunks): * lisp/gnus/gnus-draft.el (gnus-draft-check-draft-articles): * lisp/gnus/gnus-group.el (gnus-group-sort-flat) (gnus-group-expire-all-groups): * lisp/gnus/gnus-sum.el (gnus-thread-highest-number): * lisp/gnus/gnus-topic.el (gnus-topic-init-alist) (gnus-topic-sort-topic): Replace the (lambda (x) (fun x)) pattern with #'fun. (Bug#80382)
* Fix selected group sort with topics (bug#80341)Manuel Giraud2026-02-091-2/+26
| | | | | | | | * lisp/gnus/gnus-topic.el (gnus-group-sort-selected-topic): New function to sort selected groups into topic. (gnus-topic-mode): Use it as sort selected function in topic mode. * etc/NEWS: Announce the change.
* Add missing symbolic prefix keybindingManuel Giraud2026-02-091-0/+1
| | | | | | * lisp/gnus/gnus-group.el (:keymap): Add symbolic prefix to group keymap. * etc/NEWS: Announce the change.
* Call browser functions via `browse-url'Daniel Mendler2026-01-201-4/+6
| | | | | | | | | | | | This is in order to apply `browse-url-transform-alist'. * lisp/net/browse-url.el (browse-url-with-browser-kind) (browse-url-button-open, browse-url-button-open-url): * lisp/net/shr.el (shr-browse-url): * lisp/net/eww.el (eww-browse-with-external-browser): * lisp/gnus/gnus-sum.el (gnus-summary-browse-url): * lisp/emacs-lisp/package.el (package-browse-url): Let-bind `browse-url-browser-function' and call `browse-url'.
* ; Gnus: Remove redundant cl-lib runtime dependenciesUSAMI Kenta2026-01-1720-32/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Since Emacs 31 moves 'incf' and 'decf' to core, these Gnus libraries no longer require 'cl-lib' at runtime. * lisp/gnus/gnus-async.el: * lisp/gnus/gnus-cache.el: * lisp/gnus/gnus-logic.el: * lisp/gnus/gnus-salt.el: * lisp/gnus/gnus-spec.el: * lisp/gnus/gnus-srvr.el: * lisp/gnus/gnus-topic.el: * lisp/gnus/gnus-uu.el: * lisp/gnus/gnus-win.el: * lisp/gnus/mm-encode.el: * lisp/gnus/mm-url.el: * lisp/gnus/nnatom.el: * lisp/gnus/nnbabyl.el: * lisp/gnus/nndoc.el: * lisp/gnus/nneething.el: * lisp/gnus/nnmail.el: * lisp/gnus/nnoo.el: * lisp/gnus/nnspool.el: * lisp/gnus/nnvirtual.el: * lisp/gnus/nnweb.el: Remove redundant (require 'cl-lib). (Bug#80129)
* gnus-msg-mail: Attempt to start Gnus if not yet aliveDaniel Mendler2026-01-171-5/+11
| | | | | | * lisp/gnus/gnus-msg.el (gnus-msg-mail): Attempt to start Gnus if not yet alive. In case of failure, fall back to plain message mode. (Bug#80173)
* ; Add 2026 to copyright years.Sean Whitton2026-01-01107-107/+107
|
* Revert the commit 70678cd5 (bug#80052)Katsumi Yamaoka2025-12-231-9/+4
| | | | * message.el (message-get-reply-headers): Revert.
* nnatom: Fix parsing of empty articlesDaniel Semyonov2025-12-131-1/+1
| | | | * lisp/gnus/nnatom.el (nnatom--read-parts): Fix typo (bug#77539).
* gnus-icalendar.el: Avoid EIEIO's non-standard FOO-p predicatesStefan Monnier2025-12-031-5/+6
| | | | | | * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event->gnus-calendar) (gnus-icalendar-event:inline-org-buttons): Avoid EIEIO's non-standard FOO-p predicates.
* Add current subject to future history in `message-change-subject'Rudolf Adamkovič2025-11-291-30/+37
| | | | | | * lisp/gnus/message.el (message-change-subject): Read the new subject with the old subject in the "future history". * etc/NEWS (minutes): Announce the feature. (Bug#79815)
* Merge from origin/emacs-30Eli Zaretskii2025-11-151-58/+58
|\ | | | | | | | | 9b3eb06c76e Indent jsx_text properly with modern grammars 1c87be8ac95 ; * lisp/gnus/gnus.el (gnus-summary-line-format): Reindent.
| * ; * lisp/gnus/gnus.el (gnus-summary-line-format): Reindent.Sean Whitton2025-11-121-58/+58
| |
| * ; gnus-summary-line-format: Fix '%&user-date;' docs (bug#79820).Marc Herbert2025-11-121-2/+2
| |
* | * lisp/gnus/gnus.el (gnus-summary-line-format): Doc fix (bug#79820).Marc Herbert2025-11-151-2/+2
| | | | | | | | Copyright-paperwork-exempt: yes
* | Merge from origin/emacs-30Eli Zaretskii2025-10-181-2/+8
|\ \ | |/ | | | | 53aac6aecd2 ; Improve documentation of commands that split current wi...
| * ; Improve documentation of commands that split current windowEli Zaretskii2025-10-181-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/sending.texi (Sending Mail): * doc/emacs/dired.texi (Dired Enter, Dired Visiting): * doc/emacs/maintaining.texi (Old Revisions) (Change Log Commands, Looking Up Identifiers): * doc/emacs/windows.texi (Displaying Buffers): * doc/emacs/files.texi (Visiting): Add cross-references to where user options are described which control how windows are split. * lisp/mail/sendmail.el (mail-other-window): * lisp/gnus/message.el (message-mail-other-window) (message-news-other-window): * lisp/replace.el (occur-mode-goto-occurrence-other-window): * lisp/vc/vc.el (vc-revision-other-window): * lisp/vc/vc-dir.el (vc-dir-find-file-other-window): * lisp/progmodes/xref.el (xref-find-definitions-other-window): * lisp/simple.el (compose-mail-other-window) (clone-indirect-buffer-other-window): * lisp/vc/add-log.el (add-change-log-entry-other-window): * lisp/view.el (view-file-other-window) (view-buffer-other-window): * lisp/window.el (switch-to-buffer-other-window): * lisp/files.el (find-file-other-window) (find-file-read-only-other-window) (find-alternate-file-other-window): * lisp/dired.el (dired-other-window) (dired-mouse-find-file-other-window) (dired-find-file-other-window, dired-jump-other-window): Mention in the doc strings how to control the way the current window is split.
* | Fix 'mm-copy-to-buffer' when original text is multibyteEli Zaretskii2025-09-291-7/+12
| | | | | | | | | | | | * lisp/gnus/mm-decode.el (mm-copy-to-buffer): Always return a unibyte buffer. If the original text was multibyte, encode it while inserting it into the copy buffer. (Bug#79376)
* | nnmbox-read-mbox: fix Xref header parsingJakub Ječmínek2025-09-261-13/+18
| | | | | | | | | | | | | | * lisp/gnus/nnmbox.el (nnmbox-read-mbox): Use the 'mail-fetch-field' function instead of a broken regexp which matched Date-like headers. (Bug#79167)
* | Prefer tls to ssl in nnimap and smtpmail codeRobert Pluim2025-08-281-4/+5
| | | | | | | | | | | | | | * lisp/gnus/nnimap.el (nnimap-open-connection): Use 'tls. (nnimap-open-connection-1): Check 'tls before 'ssl. * lisp/mail/smtpmail.el (smtpmail-stream-type): Add 'ssl to allowed values, state 'tls is preferred.
* | Handle 'lexical-binding' cookie in nnrss outputManuel Giraud2025-08-161-4/+6
| | | | | | | | | | | | | | | | * lisp/gnus/nnrss.el (nnrss-save-server-data) (nnrss-save-group-data): Add a 'lexical-binding' cookie. * lisp/gnus/nnrss.el (nnrss-read-server-data) (nnrss-read-group-data): Allow missing 'lexical-binding' cookie. (Bug#79199)
* | Merge from origin/emacs-30Eli Zaretskii2025-08-022-6/+7
|\ \ | |/ | | | | | | | | | | | | | | 477335a10ba ; Fix documentation of 'find-file-noselect' 9e3720bbb11 * doc/misc/gnus.texi (Category Syntax): Update gnus-agent... 456f44a7b3c ; Improve documentation of change hooks f20d5e63bc0 ; * lisp/image.el (image-supported-file-p): Doc fix (bug#... 8ec2ddebdd4 ; Update documentation of GC in ELisp manual 57a9798c22a Prefer "tls" to "ssl" in documentation
| * Prefer "tls" to "ssl" in documentationRobert Pluim2025-07-282-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/gnus.texi (NNTP): Refer to 'nntp-open-tls-stream'. (Direct Functions, Customizing the IMAP Connection): Add commentary about desirability of STARTTLS. Correct documentation about use of GnuTLS. Use 'tls in example. * lisp/gnus/nnimap.el (nnimap-server-port): Mention 'tls in preference to 'ssl. * lisp/gnus/nntp.el (nntp-open-connection-function) (nntp-never-echoes-commands): Document 'nntp-open-tls-stream' as preferred to 'nntp-open-ssl-stream'.
* | Add new function 'dom-inner-text'Jim Porter2025-07-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces 'dom-text' and 'dom-texts', and is both more correct and more efficient than them. * lisp/dom.el (dom-text, dom-texts): Make obsolete in favor of... (dom-inner-text--1, dom-inner-text): ... these new functions. Update callers. * doc/lispref/text.texi (Document Object Model): Update documentation to refer to 'dom-inner-text'. * etc/NEWS: Announce this change.
* | Display SVG images inline in GnusJuri Linkov2025-06-291-0/+4
| | | | | | | | * lisp/gnus/mm-decode.el (mm-inline-media-tests): Add "image/svg+xml".
* | Merge from origin/emacs-30Eli Zaretskii2025-05-101-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | 0d493864cee Fix indentation of XML comments 1a2c29b5317 Improve Tramp's make-process handling for Solaris a7dffc2ea38 Document 'time-stamp-time-zone' in Emacs Manual 0b4eb525b69 Make treesit--simple-indent-eval more permissive (bug#78065) ed7b55f6bf1 Adapt Tramp tests b172a1478c1 ; * doc/lispref/tips.texi (Library Headers): Fix wording ... 81629b2b2ba ; * lisp/gnus/mail-source.el (mail-sources): Fix a typo (...
| * ; * lisp/gnus/mail-source.el (mail-sources): Fix a typo (bug#78235).Eli Zaretskii2025-05-041-2/+2
| |
| * ; Delete troff markers from ChangeLog filesemacs-30.1-rc1Stefan Kangas2025-02-203-3/+3
| |
* | nnfeed: Pass through list request failure reportsDaniel Semyonov2025-04-261-9/+11
| | | | | | | | | | | | * lisp/gnus/nnfeed.el (nnfeed-request-list): Report the same message reported by the inheriting backend on failure. (Bug#74857)
* | lisp/gnus/gnus-start.el (gnus-dribble-eval-file): Ignore lexbind warningStefan Monnier2025-04-131-6/+7
| |
* | * lisp/gnus/nnfeed.el (nnfeed--write-server): Use default print settings.James Thomas2025-04-051-1/+1
| | | | | | | | Bug#77113
* | lisp/gnus/mm-encode.el (mm-default-buffer-type): Obey the mode hierarchyStefan Monnier2025-03-251-1/+2
| |
* | * lisp/gnus/mm-encode.el (mm-default-buffer-type): Check `major-mode'.Michael Albinus2025-03-251-4/+2
| |
* | Use better attachment defaults for *diff* buffersMichael Albinus2025-03-252-1/+10
| | | | | | | | | | | | * lisp/gnus/mm-encode.el (mm-default-buffer-type): New defun. * lisp/gnus/mml.el (mml-attach-buffer): Use it.
* | Recommend using 'keymap-set' in CommentariesStefan Kangas2025-03-152-10/+7
| | | | | | | | | | | | | | | | | | | | | | * lisp/calendar/timeclock.el, lisp/comint.el, lisp/ehelp.el: * lisp/gnus/gnus-bookmark.el, lisp/gnus/smiley.el, lisp/ido.el: * lisp/isearchb.el, lisp/mail/mailabbrev.el, lisp/net/ange-ftp.el: * lisp/net/goto-addr.el, lisp/play/fortune.el, lisp/saveplace.el: * lisp/shell.el, lisp/term.el, lisp/textmodes/makeinfo.el: * lisp/textmodes/refer.el, lisp/textmodes/remember.el: * lisp/textmodes/table.el, lisp/woman.el: Recommend using 'keymap-set' instead of 'define-key' in Commentaries.
* | Prefer defvar-keymap in some additional Gnus librariesStefan Kangas2025-03-113-28/+32
| | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-sum.el (gnus-dead-summary-mode-map): * lisp/gnus/gnus.el (gnus-article-mode-map) (gnus-summary-mode-map, gnus-group-mode-map): * lisp/gnus/mm-decode.el (mm-viewer-completion-map): Prefer defvar-keymap. * lisp/gnus/gnus.el (gnus-suppress-keymap): Declare obsolete.
* | Use substitute-command-keys in gnus-score-insert-helpStefan Kangas2025-03-071-23/+20
| | | | | | | | | | * lisp/gnus/gnus-score.el (gnus-score-insert-help): Use substitute-command-keys. Clean up the code a bit.
* | Pass buffer as object in gnus-highlight-selected-treePranshu Sharma2025-03-021-1/+1
| | | | | | | | | | * lisp/gnus/gnus-salt.el (gnus-highlight-selected-tree): Correctly pass buffer object instead of string. (Bug#75557)
* | ; Fix an interactive spec (Bug#71373)Stefan Kangas2025-03-011-1/+1
| |
* | ; Silence byte-compiler during bootstrapStefan Kangas2025-02-281-1/+0
| |
* | Drop hashcash support from Gnus and Message modeStefan Kangas2025-02-243-27/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus.el (gnus-install-group-spam-parameters): Remove 'spam-use-hashcash' option. * lisp/gnus/message.el (message-generate-hashcash): Mark as obsolete, default to nil unconditionally. (message-send-mail, message-setup-1, message-resend): Don't generate hashcash headers. * lisp/gnus/spam.el (hashcash): Don't require. (spam-use-hashcash): (spam-check-hashcash): Mark as obsolete. (spam-install-hooks): Don't install 'spam-use-hashcash' hook. * doc/misc/message.texi (Mail Headers): Don't document above obsoleted variable 'message-generate-hashcash'. * doc/misc/gnus.texi (Hashcash): Delete section. (Anti-spam Hashcash Payments): Delete subsection. (Extending the Spam package): Don't mention Hashcash. (Bug#76195)
* | Prefer incf to cl-incf in gnus/*.elStefan Kangas2025-02-2331-109/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-agent.el (gnus-agent-load-local) (gnus-agent-expire-group-1, gnus-agent-update-files-total-fetched-for): * lisp/gnus/gnus-art.el (gnus-article-header-rank): * lisp/gnus/gnus-async.el (gnus-async-wait-for-article): * lisp/gnus/gnus-cache.el (gnus-cache-update-file-total-fetched-for): * lisp/gnus/gnus-registry.el (gnus-registry-import-eld): * lisp/gnus/gnus-salt.el (gnus-pick-line-number, gnus-tree-minimize) (gnus-generate-vertical-tree): * lisp/gnus/gnus-spec.el (gnus-correct-substring): * lisp/gnus/gnus-start.el (gnus-ask-server-for-new-groups, gnus-method-rank): * lisp/gnus/gnus-sum.el (gnus-data-update-list) (gnus-summary-number-of-articles-in-thread, gnus-build-sparse-threads) (gnus-summary-prepare-threads, gnus-invisible-cut-children) (gnus-summary-limit-children, gnus-expunge-thread) (gnus-summary-refer-references, gnus-summary-update-mark) (gnus-summary-hide-all-threads, gnus-summary-save-parts-1): * lisp/gnus/gnus-topic.el (gnus-topic-articles-in-topic) (gnus-topic-prepare-topic, gnus-topic-display-missing-topic) (gnus-topic-update-topic-line): * lisp/gnus/gnus-uu.el (gnus-uu-post-encoded): * lisp/gnus/gnus-win.el (gnus-configure-frame): * lisp/gnus/mail-source.el (mail-source-fetch-directory) (mail-source-fetch-maildir, mail-source-fetch-imap): * lisp/gnus/message.el (message-remove-header) (message-remove-first-header, message-make-caesar-translation-table): * lisp/gnus/mm-encode.el (mm-qp-or-base64): * lisp/gnus/mml.el (mml-compute-boundary, mml-compute-boundary-1): * lisp/gnus/nnatom.el (nnatom--read-links): * lisp/gnus/nnbabyl.el (nnbabyl-retrieve-headers): * lisp/gnus/nndoc.el (nndoc-oe-dbx-dissection, nndoc-dissect-buffer) (nndoc-dissect-mime-parts-sub): * lisp/gnus/nneething.el (nneething-retrieve-headers): * lisp/gnus/nnheader.el (nnheader-generate-fake-message-id) (nnheader-insert-head, nnheader-translate-file-chars): * lisp/gnus/nnimap.el (nnimap-find-wanted-parts-1) (nnimap-retrieve-group-data-early, nnimap-send-command): * lisp/gnus/nnmail.el (nnmail-process-babyl-mail-format) (nnmail-process-unix-mail-format, nnmail-process-mmdf-mail-format) (nnmail-get-new-mail-1): * lisp/gnus/nnmaildir.el (nnmaildir--scan): * lisp/gnus/nnrss.el (nnrss-check-group): * lisp/gnus/nnselect.el (nnselect-request-thread): * lisp/gnus/nnspool.el (nnspool-retrieve-headers): * lisp/gnus/nntp.el (nntp-retrieve-headers) (nntp-finish-retrieve-group-infos, nntp-retrieve-groups) (nntp-retrieve-articles, nntp-retrieve-headers-with-xover): * lisp/gnus/nnvirtual.el (nnvirtual-create-mapping): * lisp/gnus/nnweb.el (nnweb-google-parse-1, nnweb-google-create-mapping) (nnweb-gmane-create-mapping): * lisp/gnus/spam.el (spam-resolve-registrations-routine): Prefer incf to cl-incf.
* | Prefer decf to cl-decfStefan Kangas2025-02-2311-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/auth-source-pass.el (auth-source-pass--find-match-many): * lisp/calendar/time-date.el (decoded-time-add) (decoded-time--alter-month, decoded-time--alter-day): * lisp/dired.el (dired--move-to-next-line): * lisp/dom.el (dom-pp): * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): * lisp/emacs-lisp/cl-print.el (cl-print-to-string-with-limit): * lisp/emacs-lisp/cl-seq.el (cl-fill, cl-replace, cl-substitute): * lisp/emacs-lisp/comp-cstr.el (comp--range-union) (comp--range-intersection): * lisp/emacs-lisp/comp.el (comp-vec-prepend, comp--emit-narg-prologue): * lisp/emacs-lisp/edebug.el (edebug--strip-instrumentation): * lisp/emacs-lisp/eldoc.el (eldoc--invoke-strategy): * lisp/emacs-lisp/pp.el (pp--format-definition): * lisp/emacs-lisp/smie.el (smie-config--guess-1): * lisp/eshell/esh-io.el (eshell-close-handle, eshell-set-output-handle): * lisp/gnus/gnus-async.el (gnus-async-prefetch-article): * lisp/gnus/gnus-group.el (gnus-group-mark-group) (gnus-group-yank-group): * lisp/gnus/gnus-salt.el (gnus-tree-forward-line): * lisp/gnus/gnus-score.el (gnus-decay-scores): * lisp/gnus/gnus-srvr.el (gnus-browse-toggle-subscription-at-point): * lisp/gnus/gnus-sum.el (gnus-build-sparse-threads, gnus-parent-headers) (gnus-update-marks, gnus-summary-work-articles) (gnus-summary-refer-parent-article, gnus-summary-next-thread) (gnus-read-header, gnus-summary-insert-new-articles): * lisp/gnus/gnus-topic.el (gnus-topic-forward-topic): * lisp/gnus/gnus.el (gnus-short-group-name): * lisp/gnus/message.el (message-remove-first-header) (message-shorten-references, message-insert-screenshot): * lisp/gnus/mm-url.el (mm-url-insert): * lisp/gnus/nnselect.el (nnselect-push-info): * lisp/ibuffer.el (ibuffer-backward-line, ibuffer-forward-line) (ibuffer-map-lines): * lisp/icomplete.el (icomplete--render-vertical): * lisp/image/image-dired-external.el (image-dired-create-thumb-1): * lisp/image/image-dired.el (image-dired-delete-char): * lisp/mail/ietf-drums-date.el (ietf-drums-date--tokenize-string): * lisp/mh-e/mh-utils.el (mh-sub-folders-parse): * lisp/minibuffer.el (minibuffer-completion-help): * lisp/mpc.el (mpc-cmd-move, mpc-songpointer-refresh-hairy): * lisp/net/eww.el (eww-process-text-input): * lisp/net/pop3.el (pop3-wait-for-messages, pop3-uidl-stat) (pop3-uidl-dele): * lisp/net/shr-color.el (shr-color-hue-to-rgb): * lisp/play/5x5.el (5x5-up, 5x5-left): * lisp/play/decipher.el (decipher-read-alphabet, decipher--digram-total) (decipher-analyze-buffer): * lisp/play/hanoi.el (hanoi-insert-ring, hanoi-move-ring): * lisp/profiler.el (profiler-format-number) (profiler-calltree-build-unified): * lisp/progmodes/antlr-mode.el (antlr-next-rule, antlr-indent-line): * lisp/progmodes/c-ts-common.el (c-ts-common-statement-offset): * lisp/progmodes/ebrowse.el (ebrowse-cyclic-display-next/previous-member-list): * lisp/progmodes/hideif.el (hif-backward-comment): * lisp/progmodes/js.el (js-beginning-of-defun, js-end-of-defun) (js-ts--syntax-propertize): * lisp/progmodes/typescript-ts-mode.el (tsx-ts--syntax-propertize-captures): * lisp/rect.el (rectangle--*-char): * lisp/term.el (term-emulate-terminal): * lisp/textmodes/reftex-cite.el (reftex-do-citation): * lisp/textmodes/reftex-index.el (reftex-index-next-phrase): * lisp/textmodes/reftex-parse.el (reftex-init-section-numbers): * lisp/textmodes/reftex-sel.el (reftex-select-unmark): * lisp/textmodes/reftex.el (reftex-silence-toc-markers): * lisp/treesit.el (treesit-navigate-thing): * lisp/vc/diff-mode.el (diff-sanity-check-context-hunk-half, (diff-sanity-check-hunk): * lisp/vc/pcvs-util.el (cvs-first): * lisp/vc/smerge-mode.el (smerge-get-current): * lisp/vc/vc-hg.el (vc-hg--glob-to-pcre): * test/lisp/net/socks-tests.el (socks-tests-perform-hello-world-http-request): * test/src/buffer-tests.el (test-overlay-randomly): Prefer decf to cl-defc in all code where we can.
* | Prefer plusp/minusp to cl-plusp/cl-minuspStefan Kangas2025-02-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired.el (dired--move-to-next-line): * lisp/emacs-lisp/ert.el (ert-run-tests-batch, ert-face-for-stats): * lisp/emacs-lisp/pp.el (pp--format-definition): * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event--org-timestamp): * lisp/ibuffer.el (ibuffer-compile-format, ibuffer--format-title) (ibuffer--format-summary): * lisp/image-mode.el (image-transform-set-percent): * lisp/international/emoji.el (emoji--list-generate, emoji--read-emoji): * lisp/progmodes/ebrowse.el (ebrowse-set-tree-indentation) (ebrowse-set-member-buffer-column-width) (ebrowse-cyclic-display-next/previous-member-list) (ebrowse-draw-member-short-fn) (ebrowse-switch-member-buffer-to-sibling-class, ebrowse-push-position): * lisp/textmodes/dns-mode.el (dns-mode-reverse-and-expand-ipv6): * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--not-writable-directory) (bytecomp-tests--dest-mountpoint) (bytecomp-tests--target-file-no-directory): * test/lisp/emacs-lisp/cl-seq-tests.el (cl-member-if-test) (cl-member-if-not-test, cl-assoc-if-not-test, cl-rassoc-if-test) (cl-rassoc-if-not-test): * test/src/emacs-module-tests.el (mod-test-add-nanosecond/valid): Prefer plusp and minusp to cl-plusp and cl-minusp.
* | Prefer '(evenp A)' to '(= 0 (% A 2))'evenp-oddpStefan Kangas2025-02-173-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calc/calc-comb.el (math-prime-test): * lisp/calc/calc-keypd.el (calc-keypad-press): * lisp/calc/calc-math.el (math-sqrt): (math-sqrt-raw): * lisp/calc/calc-misc.el (math-iipow): (math-iipow-show): * lisp/calc/calc-stat.el (calcFunc-vmedian): * lisp/calendar/cal-tex.el (cal-tex-cursor-filofax-2week): (cal-tex-cursor-filofax-daily): * lisp/elec-pair.el (electric-pair-post-self-insert-function): * lisp/emacs-lisp/checkdoc.el (checkdoc-in-example-string-p): * lisp/emacs-lisp/eieio.el (defclass): * lisp/emacs-lisp/ert-x.el (ert-propertized-string): * lisp/emacs-lisp/ert.el (ert--significant-plist-keys): (ert--plist-difference-explanation): * lisp/emacs-lisp/helper.el (Helper-help-scroller): * lisp/emacs-lisp/pcase.el (pcase-setq): * lisp/files-x.el (setq-connection-local): * lisp/gnus/gnus-uu.el (gnus-uu-post-encoded): * lisp/gnus/message.el (message-make-in-reply-to): * lisp/gnus/nndiary.el (nndiary-last-occurrence): (nndiary-next-occurrence): * lisp/mail/rfc2047.el (rfc2047-decode-region): * lisp/play/5x5.el (5x5-draw-grid): * lisp/play/gametree.el (gametree-compute-reduced-score): (gametree-insert-new-leaf): (gametree-break-line-here): * lisp/play/zone.el (zone-fret): * lisp/vc/ediff-ptch.el (ediff-get-patch-buffer): * lisp/yank-media.el (yank-media--utf-16-p): Prefer '(evenp A)' to '(= 0 (% A 2))' and variations thereof.
* | Fix some uses of `%s` for non-strings/namesStefan Monnier2025-02-141-1/+1
| | | | | | | | | | | | | | * lisp/files.el (normal-mode, set-auto-mode--apply-alist): * lisp/gnus/nnimap.el (nnimap-command): * lisp/emacs-lisp/bytecomp.el (bytecomp--check-cus-type): Prefer %S over %s for arbitrary sexps and lists.
* | Teach gnus/message about international Re: variantsRobert Pluim2025-02-131-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mail/mail-utils.el (mail-re-regexps): New defcustom, contains the components used to construct 'rmail-re-abbrevs' and 'message-subject-re-regexp'. * lisp/gnus/message.el (message-subject-re-regexp): Derive from 'mail-re-regexps'. (message-strip-subject-re): Make the match case-insensitive. * lisp/mail/rmail.el (rmail-re-abbrevs): Derive from 'mail-re-regexps'. Update 'rmail-reply-regexp' when it changes. (rmail-reply-regexp): Set to nil, 'rmail-re-abbrevs' will set it. * doc/emacs/rmail.texi (Rmail Reply): Describe 'mail-re-regexps'. * doc/misc/message.texi (Message Headers): Describe 'mail-re-regexps'. (Bug#72442)