Commit graph

3803 commits

Author SHA1 Message Date
Paul Eggert
250d24fa73 Spelling fixes
* lisp/gnus/nndiary.el (nndiary-last-occurrence):
Rename from nndiary-last-occurence.
(nndiary-next-occurrence):
Rename from nndiary-next-occurence.  All uses changed.
2017-05-03 18:23:17 -07:00
Andrew G Cohen
46dafe4103 Fix requesting sparse articles in gnus
* lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): Delete the
sparse article number from the list, not its id.
2017-04-25 13:13:10 +08:00
Andrew G Cohen
5317193fe5 Eliminate unneeded warp-to-article in gnus article referral
* lisp/gnus/gnus-sum.el (gnus-summary-refer-thread):
(gnus-summary-refer-article): Remove gnus-warp-to article call.
2017-04-23 09:05:49 +08:00
Andrew G Cohen
03f6388892 Allow limiting gnus summary buffers to a thread
* lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Include
an optional argument to allow limiting the summary buffer to just the
thread-related articles.
(gnus-refer-thread-limit-to-thread): Introduce customizable variable
to control whether thread-referral adds the thread to the summary
buffer or limits to just the thread.
(gnus-summary-refer-thread): Use the new variable.
2017-04-23 08:25:02 +08:00
Andrew G Cohen
ea9acccd64 Correct gnus-newsgroup-limits in gnus when including thread
* lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Should
only add one list of thread-related articles to gnus-newsgroup-limits
rather than two.
2017-04-23 08:13:09 +08:00
Andrew G Cohen
6df3eea938 Improve gnus thread matching of similar subjects
* lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread):
Use the more liberal gnus-general-simplify-subject regexp to
find thread articles with similar subjects.
2017-04-23 08:08:42 +08:00
Glenn Morris
0f83433946 Avoid unnecessary loading of subr-x at run-time
* lisp/doc-view.el, lisp/filenotify.el, lisp/info-look.el:
* lisp/svg.el, lisp/emacs-lisp/byte-opt.el, lisp/net/shr.el:
* lisp/textmodes/sgml-mode.el, test/lisp/dom-tests.el:
No need to load subr-x at run-time.
* lisp/gnus/nnheader.el: No need to load subr-x.
; * lisp/emacs-lisp/subr-x.el, lisp/gnus/message.el, lisp/net/nsm.el:
; Comments.
2017-04-18 19:07:28 -04:00
Glenn Morris
f4bb93fabc * lisp/gnus/nnmail.el (nnmail-crosspost-link-function): Simplify. 2017-04-08 13:45:55 -07:00
Glenn Morris
bca1fde85f Remove references to OS/2 in code, doc, and comments
* lisp/gnus/nnheader.el (nnheader-read-timeout)
(nnheader-file-name-translation-alist): Remove OS/2 case, and simplify.
* lisp/emulation/viper-util.el (viper-color-defined-p):
* lisp/net/pop3.el (pop3-read-timeout):
* lisp/net/imap.el (imap-read-timeout):
* lisp/url/url-privacy.el (url-setup-privacy-info): Remove OS/2 case.
* lisp/emulation/viper-ex.el (viper-glob-function):
* lisp/vc/ediff-util.el (ediff-submit-report): Doc fix.
* lisp/cus-edit.el (custom-display): Remove "pm" (OS/2).
* doc/emacs/msdos-xtra.texi (MS-DOS):
* doc/misc/gnus.texi (Various Various):
* doc/misc/viper.texi (Rudimentary Changes): Remove mentions of OS/2.
; * lisp/url/url.el, lisp/url/url-vars.el:
; * lisp/progmodes/cperl-mode.el: Remove old comments.
2017-04-08 13:16:08 -07:00
Noam Postavsky
c323659344 Adjust write-region so file name is at the beginning again
* lisp/epa-file.el (epa-file-write-region):
* lisp/gnus/mm-util.el (mm-append-to-file):
* lisp/jka-compr.el (jka-compr-write-region):
* lisp/net/ange-ftp.el (ange-ftp-write-region):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
* lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
* src/fileio.c (write_region): Put file name at the beginning and move
number of characters to the end of the message.
2017-04-07 19:54:11 -04:00
Jeff Clough
cd0a7951fb Output number of characters added to file (Bug#354)
* fileio.c (write_region):
* epa-file.el (epa-file-write-region):
* jka-compr.el (jka-compr-write-region):
* ange-ftp.el (ange-ftp-write-region):
* tramp-gvfs.el (tramp-gvfs-handle-write-region):
* tramp-sh.el (tramp-sh-handle-write-region):
* mm-util.el (mm-append-to-file): Functions now output
characters written in addition to file name.
* files.texi: Added documentation to write-region and
append-to-file describing their output.
2017-04-06 22:23:27 -04:00
Mark Oteiza
e22d740c30 Remove gnus-boundp
* lisp/gnus/gnus-start.el (gnus-display-time-event-handler): Use
bound-and-true-p.
* lisp/gnus/gnus-util (gnus-boundp): Remove.
2017-03-30 22:22:47 -04:00
Katsumi Yamaoka
4da7aaa3a8 gnus-summary-select-article-buffer: Don't re-render existing article
* lisp/gnus/gnus-sum.el (gnus-summary-select-article-buffer):
Don't re-render existing article.
2017-03-02 07:56:31 +00:00
Katsumi Yamaoka
300f72f3a3 Don't add debbugs address to message body (bug#25896)
* lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group):
Don't add debbugs address to message body (bug#25896), and
don't add it to message header either if it already exists.
2017-03-02 07:55:57 +00:00
Eric Abrahamsen
16e304f38e Don't use mapconcat with chars in gnus registry marks (Bug#25839)
* lisp/gnus/gnus-registry.el (gnus-registry-article-marks-to-chars):
Instead, use a plain concat, which will create a string out of a list
of characters.
2017-02-28 21:57:07 -05:00
Katsumi Yamaoka
18c476956d message-goto-body-1: Fix regexp so as not to match multi-line
* lisp/gnus/message.el (message-goto-body-1):
Fix regexp so as not to match multi-line.
2017-02-21 00:24:05 +00:00
Katsumi Yamaoka
b2b31596f8 mm-decode.el: Simplify regexp used to search html meta tag
* lisp/gnus/mm-decode.el (mm-add-meta-html-tag, mm-shr):
Simplify regexp used to search html meta tag.
2017-02-20 06:40:03 +00:00
Katsumi Yamaoka
851b38bcdf mm-shr: Ignore coding-system `ascii'
* lisp/gnus/mm-decode.el (mm-shr): Ignore coding-system `ascii'.
2017-02-20 06:17:20 +00:00
Glenn Morris
22b2207471 Remove the build number from emacs-version variable
It's a largely internal detail that can confuse users.  (Bug#25590)
* lisp/version.el (emacs-build-number): New constant.
(emacs-version): Use emacs-build-number.
* lisp/loadup.el (top-level): When dumping, increment
emacs-build-number rather than emacs-version.
* src/emacs.c (emacs-version): Doc fix.
* doc/lispref/intro.texi (Version Info): Update emacs-version details.
Mention emacs-build-number.
* lisp/gnus/gnus-util.el (gnus-emacs-version):
* lisp/mail/emacsbug.el (report-emacs-bug):
* admin/admin.el (set-version): Update for emacs-version change.
; * etc/NEWS: Mention this.
2017-02-17 20:15:21 -05:00
Katsumi Yamaoka
630e2d2e6a mm-add-meta-html-tag: Improve regexp
* lisp/gnus/mm-decode.el (mm-add-meta-html-tag):
Improve regexp to search html meta tag.
2017-02-17 10:05:56 +00:00
Katsumi Yamaoka
79f017d5c3 mm-shr: Prefer charset specified in html meta tag
* lisp/gnus/mm-decode.el (mm-shr): Prefer charset specified in html
meta tag than mail-parse-charset in the case there is no charset spec
in MIME header.
2017-02-17 09:52:09 +00:00
Glenn Morris
78f869687e Stop duplicating some custom-types in message.el
* lisp/gnus/message.el (user-mail-address, user-full-name):
No need to re-specify custom-type.
2017-02-16 21:43:23 -08:00
Glenn Morris
3f383a4668 Remove overly broad element from default mail-dont-reply-to-names
* lisp/mail/mail-utils.el (mail-dont-reply-to):
Do not include just "user@" in mail-dont-reply-to-names, and simplify.
Ref: lists.gnu.org/archive/html/help-gnu-emacs/2017-02/msg00049.html
* lisp/gnus/message.el (message-dont-reply-to-names): Doc fix.
* doc/misc/message.texi (Wide Reply): Tiny fix re dont-reply-to-names.
2017-02-13 23:36:17 -08:00
Katsumi Yamaoka
4b18ef7ba3 Fix non-ASCII text encoding (bug#25658)
* lisp/gnus/mm-bodies.el (mm-encode-body):
Fix non-ASCII text encoding (bug#25658).
2017-02-13 08:30:28 +00:00
Katsumi Yamaoka
41de25c113 Make mm-shr use mail-parse-charset by default
* lisp/gnus/mm-decode.el (mm-shr): Use mail-parse-charset by default.
This helps an html message with no charset spec to be decoded.
2017-02-09 00:41:19 +00:00
Lars Ingebrigtsen
1af484f87e Ensure that Gnus bugs show up in the Emacs tracker
* lisp/gnus/gnus.el (gnus-bug-package): Include Emacs in the
package spec.
2017-02-07 15:52:42 +01:00
Lars Ingebrigtsen
4b59f53b67 Revert "Don't tag Gnus bugs with "gnus""
This reverts commit b6fa580723.

The debbugs syntax requires a package name
2017-02-07 15:52:41 +01:00
Lars Ingebrigtsen
5d61ef0de9 Revert "DOn't use string-as-unibyte in Gnus"
This reverts commit d1c9310090.

Not all the cases where we had string-as-unibyte were characters,
so this needs to be considered more thoroughly before being redone.
2017-02-01 13:49:11 +01:00
Lars Ingebrigtsen
d1c9310090 DOn't use string-as-unibyte in Gnus
* lisp/gnus/nnmail.el (nnmail-parse-active): Don't use
string-as-unibyte.
(nnmail-insert-xref): Ditto.

* lisp/gnus/canlock.el (canlock-make-cancel-key): Ditto.

* lisp/gnus/gnus-art.el (gnus-article-browse-html-parts): Ditto.

* lisp/gnus/gnus-srvr.el (gnus-browse-foreign-server): Ditto.
(gnus-browse-foreign-server): Ditto.
(gnus-browse-foreign-server): Ditto.

* lisp/gnus/gnus-start.el
(gnus-update-active-hashtb-from-killed): Ditto.
(gnus-read-newsrc-el-file): Ditto.

* lisp/gnus/mml.el (mml-generate-mime-1): Ditto.

* lisp/gnus/nnir.el (nnir-get-active): Ditto.
(nnir-get-active): Ditto.
2017-01-31 17:52:51 +01:00
Juri Linkov
18a3fccd89 Allow C-s C-w to yank ' to the search ring in the Gnus article buffer
* lisp/gnus/gnus-art.el (gnus-article-mode-syntax-table): Make
M-. in article buffers work for `foo' strings, and still allow
C-s C-w to yank ' to the search ring (bug#22248).
2017-01-31 17:36:59 +01:00
Yuri D'Elia
f83363d30e Subject: Check Bcc after the Messag hook has run
* lisp/gnus/message.el (message-send): If the hook modifies
the message (mml tags or headers), we should check bcc on the
final message, not on the original.
2017-01-28 15:21:28 +01:00
Lars Ingebrigtsen
03c1080cd4 Fix charsets and encodings from non-file MIME parts
* lisp/gnus/mml.el (mml-generate-mime-1): Get the charsets and
encoding right for parts that do not originate from files.
2017-01-27 13:54:50 +01:00
Lars Ingebrigtsen
3485c1693e Fix Message check for bogus domain names
* lisp/gnus/message.el (message-make-fqdn): Fix check for
bogus system names (bug#24570).
2017-01-27 01:04:59 +01:00
Øyvind Stegard
7416f008f0 Subject: Restore correct Gnus newsgroup name after sending message
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Set the value of
gnus-newsgroup-name in the correct buffer (bug#24329).

Copyright-paperwork-exempt: yes
2017-01-27 01:02:23 +01:00
Lars Ingebrigtsen
5dd303fe77 Don't try to find charsets of non-text MIME parts
* lisp/gnus/mml.el (mml-generate-mime-1): It seems nonsensical
to try to determine the charset of non-text message parts, so
skip that (bug#24190).  This will also remove messages like
"bunzip2ing /tmp/acsb.cpio.bz2...done" while sending messages
if you include such files.
2017-01-27 00:30:54 +01:00
Lars Ingebrigtsen
a3b6d8e2eb Add new command gnus-article-sort-by-marks
* doc/misc/gnus.texi (Summary Sorting): Mention
gnus-summary-sort-by-marks.

* lisp/gnus/gnus-sum.el (gnus-article-sort-by-marks): New
function (bug#23393).
(gnus-thread-sort-by-marks): Ditto.
(gnus-summary-sort-by-mark): New command suggested by Dan Jacobson.
(gnus-summary-mode-map): Add keystroke.
(gnus-summary-make-menu-bar): Add to menu.
2017-01-27 00:30:54 +01:00
Katsumi Yamaoka
f15bbbec0b Make `C-h b' work correctly in Gnus article buffer (bug#18257)
* lisp/gnus/gnus-art.el (gnus-article-describe-bindings):
Ignore summary commands that aren't bound to
gnus-article-read-summary-keys keys (bug#18257).
2017-01-26 22:43:31 +00:00
Lars Ingebrigtsen
ffdf409ebb Fix crossposting in non-primary groups
* lisp/gnus/message.el
(message-cross-post-followup-to-header): Gnus server prefixes
shouldn't be included in the group names (bug#21661).
(message-cross-post-followup-to): Ditto.
2017-01-26 23:11:50 +01:00
Lars Ingebrigtsen
77bbca8c82 Fill too long mail headers
* lisp/gnus/message.el (message--fold-long-headers): New
function to fold too-long headers (bug#21608).
(message-send-mail): Use it to fill headers longer than 998
characters (which is the protocol limit).
2017-01-26 22:51:19 +01:00
Lars Ingebrigtsen
47e82854ba Make nndoc more resilient against corrupted files
* lisp/gnus/nndoc.el (nndoc-possibly-change-buffer): Don't bug
out on invalid files, like invalid .gz files (bug#21538).
This may hinder Gnus from starting up.
2017-01-26 22:28:17 +01:00
Lars Ingebrigtsen
3a9e56d840 Respect buffer-local message-fcc-handler-function
* lisp/gnus/message.el (message-do-fcc): Copy the local
variables from the Message buffer so that local settings of
`message-fcc-handler-function' etc are respected (bug#21174).
2017-01-26 21:38:40 +01:00
Lars Ingebrigtsen
eba8046f05 (message-do-fcc): Modernise the code slightly.
* lisp/gnus/message.el (message-do-fcc): Modernise the code slightly.
2017-01-26 21:35:58 +01:00
Lars Ingebrigtsen
301ee3d031 Avoid a regexp overflow in message-goto-body
* lisp/gnus/message.el (message-goto-body-1): Avoid using a
complicated backtracking regexp, because they may overflow on
large headers (bug#21160).
2017-01-26 21:12:05 +01:00
Lars Ingebrigtsen
b720f1a336 Refactor message-goto-body
* lisp/gnus/message.el (message-goto-body-1): Refactor out for reuse.
2017-01-26 21:04:00 +01:00
Lars Ingebrigtsen
aeecbc09ad Fix typo in last checkin
* lisp/gnus/nnimap.el (nnimap-shell-program): Document
nnimap-shell-program (bug#20651).
2017-01-26 19:46:27 +01:00
Lars Ingebrigtsen
a1cb68be6c Document nnimap-shell-program
* lisp/gnus/nnimap.el (nnimap-shell-program): Document
nnimap-shell-program (bug#20651).
2017-01-26 19:46:27 +01:00
Lars Ingebrigtsen
079b6bebcb Gnus doc clarification
* lisp/gnus/gnus-sum.el (gnus-summary-save-article): Mention
the gnus-prompt-before-saving variable (bug#20500).
2017-01-26 19:46:27 +01:00
Lars Ingebrigtsen
d47dadd168 Fix the previous mml patch better
* lisp/gnus/mml.el (mml-minibuffer-read-file): Fix the
previous patch in a better way (bug#20480).
2017-01-26 19:46:27 +01:00
Lars Ingebrigtsen
9fc67ae2dd Give a slight better error message in mml-minibuffer-read-file
* lisp/gnus/mml.el (mml-minibuffer-read-file): Give a slightly
better error message when the user enters nothing (bug#20480).
2017-01-26 19:46:27 +01:00
Lars Ingebrigtsen
9527d201c1 Allow mml-attach-file to prompt less
* lisp/gnus/mml.el (mml-attach-file): If given a prefix, don't
prompt for type/description/disposition, but use defaults
(bug#19202).
2017-01-26 18:19:46 +01:00