Stefan Kangas
b5621dbe2f
Delete some compat code for very old Emacs versions
...
* lisp/apropos.el (apropos-local-value):
* lisp/ido.el (ido-buffer-internal):
* lisp/leim/quail/ipa.el (ipa-x-sampa-prepend-to-keymap-entry):
* lisp/obsolete/iswitchb.el (iswitchb-possible-new-buffer):
* lisp/speedbar.el (speedbar-create-tag-hierarchy): Delete compat code
for very old versions of Emacs.
* lisp/gnus/nnmail.el (nnmail-fancy-expiry-target): Avoid using
obsolete name.
2022-05-15 01:10:11 +02:00
Lars Ingebrigtsen
3c5b332f1a
Make message load eudc-capf more lazily
...
* lisp/gnus/message.el (eudc-capf): Remove require, because all
the relevant eudc-capf functions are autoloaded, apparently.
2022-05-12 02:54:24 +02:00
Alexander Adolf
620ac67355
EUDC: Add completion-at-point support
...
* lisp/net/eudc-capf.el: New file.
* lisp/gnus/message.el (message-mode): Add `eudc-capf-complete' to
`completion-at-point-functions' when a `message-mode' buffer is
created.
* doc/misc/eudc.texi (Inline Query Expansion): Add a new subsection,
describing the new `completion-at-point' mechanism in `message-mode'.
* etc/NEWS (EUDC): Describe the new `completion-at-point' method.
2022-05-10 17:10:19 -04:00
Lars Ingebrigtsen
44db73d968
Fix some quoting problems in defcustom :type
...
* lisp/progmodes/gdb-mi.el
(gdb-restore-window-configuration-after-quit):
* lisp/gnus/gnus.el (large-newsgroup-initial):
* lisp/eshell/em-hist.el (eshell-hist-ignoredups): Fix invalid
quoting in :type.
2022-05-10 18:33:14 +02:00
Eric Abrahamsen
c57a6644ef
Fix handling of IMAP search strings
...
* lisp/gnus/gnus-search.el (gnus-search-imap-handle-string): This was
a misunderstanding of what `multibyte-string-p' means. The check was
actually supposed to be whether the string was non-ascii or not.
2022-05-06 10:15:51 -07:00
Eric Abrahamsen
6d4cc2358b
Don't force Gnus cache usage in nnvirtual
...
* lisp/gnus/nnvirtual.el (nnvirtual-retrieve-headers): We're not sure
why this was happening, but it shouldn't be necessary. Simply calling
`gnus-retrieve-headers' directly will use the cache if the user has
configured it.
2022-05-06 09:43:59 -07:00
dickmao
f1ab92bc23
Transcription error
...
* lisp/gnus/gnus-topic.el (gnus-topic-display-missing-topic):
Indent.
(gnus-topic-update-topic-line): Insert missing fourth argument.
2022-05-04 18:03:10 -07:00
Eric Abrahamsen
2b50dbb1a5
Remove bogus mode check from gnus topic update functions
...
* lisp/gnus/gnus-topic.el (gnus-topic-update-topics-containing-group):
(gnus-topic-update-topic): These functions originally checked to see
if we were in group mode, but later that check was changed to
'gnus-topic-mode, which never passes because 'gnus-topic-mode isn't a
major mode. Revert to checking for 'gnus-group-mode, and use
`derived-mode-p' while we're at it.
2022-05-04 12:54:37 -07:00
Lars Ingebrigtsen
cf0d289e38
Further mm-base64-line-p bug fixes
...
* lisp/gnus/mm-bodies.el (mm-base64-line-p): Fix parsing error
introduced by d90f54d
.
2022-05-03 11:32:03 +02:00
Lars Ingebrigtsen
d5803a0c97
Fix mm-base64-line-p logic
...
* lisp/gnus/mm-bodies.el (mm-base64-line-p): Don't claim that an
empty line is base64.
2022-05-03 11:28:59 +02:00
Lars Ingebrigtsen
f7a6dd4fcc
Re-fix Gcc header tokenization in Gnus
...
* lisp/gnus/gnus-msg.el (gnus-inews-do-gcc): Split the Gcc header
on commas, but allow group names to contain spaces (bug#55217).
2022-05-02 11:37:35 +02:00
Stefan Monnier
2fa11123e5
* lisp/gnus/gnus-util.el (gnus-byte-compile): Use lexical-binding
2022-05-02 01:14:42 -04:00
Lars Ingebrigtsen
159d8f7a0a
Fix the mm-decode-content-transfer-encoding overflow better
...
* lisp/gnus/mm-bodies.el (mm-decode-content-transfer-encoding):
Use it.
(mm-base64-line-p): New function.
2022-05-01 10:20:07 +02:00
Lars Ingebrigtsen
d90f54db22
Avoid regexp overflow in mm-decode-content-transfer-encoding
...
* lisp/gnus/mm-bodies.el (mm-decode-content-transfer-encoding):
The base64 may be huge, so avoid backtracking (bug#55195).
2022-04-30 19:14:35 +02:00
Lars Ingebrigtsen
90904f8ce4
Remove the "retro" Gnus/Message tool bars
...
* doc/misc/gnus.texi (Gravatars): Remove documentation.
* lisp/gnus/gmm-utils.el (gmm-tool-bar-style): Obsoleted.
* lisp/gnus/gnus-group.el (gnus-group-tool-bar): Use the "Gnome"
definition.
(gnus-group-tool-bar-gnome, gnus-group-tool-bar-retro)
(gnus-group-tool-bar-zap-list): Obsolete.
* lisp/gnus/gnus-sum.el (gnus-summary-tool-bar): Use the "Gnome"
definition.
(gnus-summary-tool-bar-gnome, gnus-summary-tool-bar-retro)
(gnus-summary-tool-bar-zap-list): Obsolete.
* lisp/gnus/message.el (message-tool-bar): Use the "Gnome"
definition.
(message-tool-bar-gnome, message-tool-bar-retro)
(message-tool-bar-zap-list): Obsolete.
2022-04-30 18:18:32 +02:00
Andreas Schwab
1e46487e4e
* lisp/gnus/deuglify.el (gnus-article-outlook-rearrange-citation): Add autoload cookie.
2022-04-30 18:04:53 +02:00
Lars Ingebrigtsen
75366be2c0
Kill off more Gnus buffers on Gnus exit
...
* lisp/gnus/gnus.el (gnus-kill-buffer): Make into function;
there's no reason this should be a macro.
* lisp/gnus/nntp.el (nntp-make-process-buffer): Ensure that we
kill these buffers on Gnus exit (bug#55167).
2022-04-28 18:36:59 +02:00
Paul Eggert
d35b6a49b3
Fix gnus-html-image-cache-ttl FIXME
...
* lisp/gnus/gnus-html.el (gnus-html-image-cache-ttl):
Make it a seconds count.
2022-04-26 13:54:38 -07:00
Paul Eggert
d6c7054ff5
Pacify misc/test-custom-opts
...
* lisp/gnus/gnus-html.el (gnus-html-image-cache-ttl):
Also allow it to be a cons of integers.
2022-04-25 17:49:47 -07:00
Lars Ingebrigtsen
bbf389ea6d
Audit quoting the quote character in doc strings
...
* test/src/regex-emacs-tests.el (regex-tests-compare):
(regex-tests-compare):
(regex-tests-match):
* test/lisp/xml-tests.el (xml-parse-tests--qnames):
* test/lisp/mh-e/mh-thread-tests.el (mh-thread-tests-before-from):
* test/lisp/cedet/srecode-utest-template.el (srecode-utest-map-reset):
* test/lisp/calc/calc-tests.el (calc-tests-equal):
* lisp/window.el (get-lru-window):
(get-mru-window):
(get-largest-window):
(quit-restore-window):
(display-buffer):
* lisp/vc/vc-rcs.el (vc-rcs-consult-headers):
* lisp/url/url-auth.el (url-digest-auth-build-response):
* lisp/tutorial.el (tutorial--find-changed-keys):
* lisp/transient.el (transient-suffix-object):
* lisp/textmodes/rst.el (rst-insert-list-new-item):
* lisp/textmodes/bibtex.el (bibtex-clean-entry):
* lisp/tab-bar.el (tab-bar--key-to-number):
(toggle-frame-tab-bar):
* lisp/ses.el (ses-recalculate-cell):
(ses-define-local-printer):
(ses-prin1):
* lisp/progmodes/xref.el (xref--find-ignores-arguments):
* lisp/progmodes/verilog-mode.el (verilog-single-declaration-end):
* lisp/progmodes/tcl.el (tcl-mode-hook):
* lisp/progmodes/gdb-mi.el (gdb-get-buffer-create):
* lisp/progmodes/elisp-mode.el (elisp--xref-make-xref):
* lisp/play/dunnet.el (dun-room-objects):
* lisp/outline.el (outline--cycle-state):
* lisp/org/ox-publish.el (org-publish-find-property):
* lisp/org/ox-html.el (org-html--unlabel-latex-environment):
* lisp/org/org-table.el (org-table-collapse-header):
* lisp/org/org-plot.el (org--plot/prime-factors):
* lisp/org/org-agenda.el (org-agenda--mark-blocked-entry):
(org-agenda-set-restriction-lock):
* lisp/org/ob-lua.el (org-babel-lua-read-string):
* lisp/org/ob-julia.el (org-babel-julia-evaluate-external-process):
(org-babel-julia-evaluate-session):
* lisp/org/ob-core.el (org-babel-default-header-args):
* lisp/obsolete/mouse-sel.el (mouse-select):
(mouse-select-secondary):
* lisp/net/tramp.el (tramp-methods):
* lisp/net/eww.el (eww-accept-content-types):
* lisp/net/dictionary-connection.el (dictionary-connection-status):
* lisp/minibuffer.el (completion-flex--make-flex-pattern):
* lisp/mh-e/mh-mime.el (mh-have-file-command):
* lisp/mh-e/mh-limit.el (mh-subject-to-sequence):
(mh-subject-to-sequence-threaded):
(mh-subject-to-sequence-unthreaded):
* lisp/mail/feedmail.el (feedmail-queue-buffer-file-name):
(feedmail-vm-mail-mode):
* lisp/ls-lisp.el (ls-lisp--sanitize-switches):
* lisp/keymap.el (key-valid-p):
* lisp/international/ccl.el (ccl-compile-branch-blocks):
* lisp/image/image-converter.el (image-convert):
* lisp/gnus/spam.el (spam-backend-check):
* lisp/gnus/nnselect.el (nnselect-generate-artlist):
* lisp/gnus/nnmairix.el (nnmairix-widget-other):
* lisp/gnus/message.el (message-mailto):
* lisp/gnus/gnus-sum.el (gnus-collect-urls-from-article):
* lisp/gnus/gnus-search.el (gnus-search-prepare-query):
* lisp/frame.el (frame-size-history):
* lisp/eshell/esh-var.el (eshell-parse-variable-ref):
* lisp/eshell/em-dirs.el (eshell-expand-multiple-dots):
* lisp/erc/erc-backend.el (erc-bounds-of-word-at-point):
* lisp/emulation/cua-rect.el (cua--rectangle-operation):
* lisp/emacs-lisp/text-property-search.el (text-property-search-forward):
* lisp/emacs-lisp/package.el (package-desc-suffix):
* lisp/emacs-lisp/faceup.el (faceup-test-explain):
* lisp/emacs-lisp/comp.el (comp-curr-allocation-class):
(comp-alloc-class-to-container):
(comp-add-cstrs):
(comp-remove-type-hints-func):
(batch-byte+native-compile):
* lisp/emacs-lisp/cl-macs.el (cl--optimize):
* lisp/elec-pair.el (electric-pair--syntax-ppss):
* lisp/doc-view.el (doc-view-doc-type):
* lisp/cedet/semantic/symref.el (semantic-symref-tool-alist):
(semantic-symref-hit-to-tag-via-db):
(semantic-symref-hit-to-tag-via-buffer):
* lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-get-overlay):
* lisp/cedet/semantic/java.el (semantic-java-doc-keywords-map):
* lisp/cedet/semantic/find.el (semantic-brute-find-tag-by-function):
* lisp/cedet/semantic/db.el (semanticdb-project-predicate-functions):
* lisp/cedet/semantic.el (semantic-working-type):
* lisp/cedet/ede/files.el (ede-flush-directory-hash):
* lisp/calc/calc.el (calc--header-line):
* lisp/auth-source.el (auth-source-pick-first-password):
(auth-source--decode-octal-string):
* etc/themes/modus-themes.el (modus-themes--paren):
(modus-themes--agenda-habit):
* admin/cus-test.el (cus-test-vars-with-changed-state): Fix
quoting in doc strings. In code examples, the ' character is
quoted with \\=, and regularize 'foo to `foo', and quote strings
like "foo" instead of 'foo'.
2022-04-22 16:17:22 +02:00
Andreas Schwab
8ab20cd2d9
gnus: fix %a in topic line
...
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line): Also
bind `entries'.
2022-04-21 11:56:04 +02:00
Lars Ingebrigtsen
843dc435f7
Be more resilient against invalid headers in mml-generate-mime
...
* lisp/gnus/mml.el (mml-generate-mime): Don't bug out when called
with invalid headers (bug#55014).
2022-04-19 13:42:25 +02:00
Eli Zaretskii
8804dfdb1a
Merge from origin/emacs-28
...
5e47d6284b
* lisp/gnus/mm-encode.el (mm-default-file-encoding): Fix "...
e71c7a7c60
Fix default-directory of buffers visiting files in renamed...
cccaa9c31d
Fix a kill-append regression
33828e4818
* doc/misc/eww.texi (Advanced): Correct outdated info (bug...
e8d2f40f41
Clean up the MSDOS port
338eda09d8
Fix typo in next-error-find-buffer-function
# Conflicts:
# doc/misc/eww.texi
2022-04-16 13:45:50 -04:00
Stefan Monnier
eab0105696
* lisp/gnus/gnus.el (toplevel autoloads): Fix file name
...
`score-mode` does not define `gnus-score-edit-all-score`, it's defined
in `gnus-score` instead.
2022-04-14 12:55:23 -04:00
Lars Ingebrigtsen
33cc12498b
Provide a useful default to smime-CA-file
...
* lisp/gnus/smime.el (smime-CA-file): Use `gnutls-trustfiles' to
provide a default so that this will work automatically on many
systems (bug#20960).
2022-04-13 02:29:27 +02:00
Stefan Monnier
5e47d6284b
* lisp/gnus/mm-encode.el (mm-default-file-encoding): Fix "when" arg
2022-04-11 14:24:23 -04:00
Jai Flack
77f3bc37e1
Add a mu backend for gnus-search
...
* lisp/gnus-search.el (gnus-search-mu-program): New defcustom
(gnus-search-mu-switches): New defcustom
(gnus-search-mu-remove-prefix): New defcustom
(gnus-search-mu-config-directory): New defcustom
(gnus-search-mu-raw-queries-p): New defcustom
(gnus-search-mu): New subclass of gnus-search-indexed
(gnus-search-transform-expression): New method
(gnus-search-mu-handle-date): New function
(gnus-search-mu-handle-flag): New function
(gnus-search-indexed-extract): New method
(gnus-search-indexed-search-command): New method (bug#54662).
2022-04-07 13:14:01 +02:00
James Thomas
9f521db6fe
Ensure re-encoding after change in gnus-inews-do-gcc
...
* lisp/gnus/gnus-msg.el (gnus-inews-do-gcc): Re-encode the message
body if it has been modified by gnus-gcc-pre-body-encode-hook
(bug#54687).
2022-04-03 14:14:24 +02:00
Andrew G Cohen
a15f9d4e58
; gnus/nnselect must get headers from the right group
...
* lisp/gnus/nnselect.el (nnselect-retrieve-headers): Make sure we are
in the right group. It might have been affected by another request.
2022-04-02 07:15:23 +08:00
Andrew G Cohen
3b6e74f08e
; * lisp/gnus/nnselect.el (nnselect-get-artlist): Fix last change.
2022-03-26 07:04:39 +08:00
Andrew G Cohen
413ef5a7e6
; Restore regexp-quote for gnus subject match
...
* lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Restore
regexp-quote that was inadvertently dropped in commit 2021-12-21 "Fix
gnus subject matching when subject is empty".
2022-03-26 06:23:20 +08:00
Andrew G Cohen
eb25ae3f2d
Refactor gnus/nnselect artlist saving and getting
...
* lisp/gnus/nnselect.el (nnselect-generate-run): New function that
replaces nnselect-run.
(nnselect-store-artlist): New function.
(nnselect-get-artlist): Update function.
(nnselect-request-group, nnselect-request-thread)
(nnselect-request-create-group, nnselect-request-group-scan): Use the
new functions.
* doc/misc/gnus.texi (Selection Groups): Document artlist storage and
retrieval.
2022-03-23 08:13:28 +08:00
Andrew G Cohen
01336a2582
Fix imap fetching multiple mailboxes (bug#54158)
...
* lisp/gnus/mail-source.el (mail-source-fetch-imap): Variables
mailbox-source-string and remove should be reset for each mailbox.
2022-03-21 07:56:34 +08:00
Stefan Monnier
f51e12fece
* lisp/gnus/mail-source.el (mail-source-set-1): Fix indent and simplify
2022-03-18 11:51:46 -04:00
Andrew G Cohen
7fef2e04b2
Improve propagation of gnus/nnselect group info
...
* lisp/gnus/nnselect.el (nnselect-push-info): Speed up pushing the
nnselect info back to the originating groups.
2022-03-17 19:19:39 +08:00
Andrew G Cohen
90040f0e9f
Fix bug in nnselect fetching new articles in a thread
...
* lisp/gnus/nnselect.el (nnselect-request-thread): Ignore the
Retrieval Status Value in comparing whether articles are the same.
2022-03-17 19:19:39 +08:00
Sean Whitton
da0d598190
Don't use the original sender's address as the envelope-from
...
* lisp/gnus/message.el (message-resend): Avoid setting the
envelope-from to the original sender's address rather than the
resender's (bug#54429).
2022-03-17 11:57:14 +01:00
Sam Steingold
d932e256a4
Extract gnus-collect-urls-from-article' from
gnus-summary-browse-url'
...
* lisp/gnus-sum.el (gnus-collect-urls-from-article):
New function, extracted from `gnus-summary-browse-url'.
(gnus-summary-browse-url): Use it.
2022-03-15 12:22:48 -04:00
Lars Ingebrigtsen
8a9b4cfdff
Revert "New command `gnus-summary-browse-all-urls' bound to "v""
...
This reverts commit f52dcfd03a
.
It was never agreed that this should be added.
2022-03-15 12:36:06 +01:00
Sam Steingold
f52dcfd03a
New command `gnus-summary-browse-all-urls' bound to "v"
...
* lisp/gnus-sum.el (gnus-collect-urls-from-article): New function,
extracted from `gnus-summary-browse-url'.
(gnus-summary-browse-url): Use it; also use `browse-url-button-open-url'
to handle the prefix argument.
(gnus-summary-browse-all-urls): New command.
(gnus-summary-mode-map): Bind `gnus-summary-browse-all-urls' to "v".
2022-03-14 11:28:02 -04:00
Alexander Adolf
f143fcc0ed
Facilitate Customisation of Message-Mode Header Completion Behaviour
...
* lisp/gnus/message.el (message-email-recipient-header-regexp):
New user option.
(message-completion-alist): Use it here.
2022-03-12 18:15:24 +01:00
Lars Ingebrigtsen
5b7ce98ea0
Fix syntax error in obsolete message function
...
* lisp/gnus/message.el (message-send-mail-function): Fix syntax error.
2022-03-06 19:34:54 +01:00
Eli Zaretskii
33958bcd3d
Fix wording and punctuation in recent Gnus documentation changes
...
* lisp/gnus/nnselect.el (nnselect-allow-ephemeral-expiry): Make
the first sentence of the doc string be a single line.
* doc/misc/gnus.texi (Creating Search Groups): Fix space between
sentences.
2022-03-04 13:52:09 +02:00
Andrew G Cohen
62d97d4afd
Turn expiry on for nnselect groups
...
Articles in (persistent) groups from the gnus/nnselect backend will
now be run through the expiry process upon exit, like other persistent
groups. Expiry is not on by default for ephemeral nnselect groups but
may be turned on with nnselect-allow-ephemeral-expiry set to t.
* lisp/gnus/nnselect.el (nnselect-request-expire-articles): Make
article expiry work.
(nnselect-allow-ephemeral-expiry): New variable.
* doc/misc/gnus.texi (Creating Search Groups): Document
nnselect-allow-ephemeral-expiry.
2022-03-04 16:20:01 +08:00
Andrew G Cohen
4f6583ab8a
; Fetch the nnselect-rescan parameter from the topic or group
...
* lisp/gnus/nnselect.el (nnselect-request-scan-group): Allow the
nnselect-rescan parameter to be set in the topic or the group.
2022-03-04 16:08:32 +08:00
Matthias Meulien
06b7c53927
Add more bookmark types
...
* lisp/gnus/gnus-sum.el (gnus-summary-bookmark-jump):
* lisp/man.el (Man-bookmark-jump): Mark the bookmark type
(bug#54030).
2022-02-20 13:23:33 +01:00
Eric Abrahamsen
51e51ce2df
Handle multiple directory separators in gnus-search results
...
Try to treat the file names more like file names, less like strings
to massage.
* lisp/gnus/gnus-search.el (gnus-search-indexed-parse-output): Use
`expand-file-name' to collapse separators and generally canonicalize
the name. Use `file-name-split' and joining instead of regexp
munging.
2022-02-18 08:37:33 -08:00
Andrew G Cohen
9a9a3390ad
Make sure nnselect search query is properly parsed
...
* lisp/gnus/gnus-search.el (gnus-search-make-spec): The search query
should not be interpreted as raw, but whatever the underlying search
engine expects.
2022-02-18 14:01:55 +08:00
Andrew G Cohen
8a924c8b49
Fix gnus searching of native servers
...
* lisp/gnus/gnus-group.el (gnus-group-make-search-group):
(gnus-group-read-ephemeral-search-group): Find the real server even
when the group is native.
2022-02-18 13:59:34 +08:00
Eric Abrahamsen
86ebc88cd8
Fix gnus-search-run-search methods
...
* lisp/gnus/gnus-search.el (gnus-search-run-search): Both these
implementations were setting the current buffer and then not setting
it back.
2022-02-17 21:29:36 -08:00