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
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
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
eff6c6ac85
Don't allow message-newline-and-reformat to be run outside the body
...
* lisp/gnus/message.el (message-newline-and-reformat): Error
out if run outside the body of a message (bug#18820).
2017-01-26 15:07:38 +01:00
Lars Ingebrigtsen
00591a8ee7
Make C-u C-x m work with Message as documented
...
* lisp/gnus/message.el (message-mail): Respect the CONTINUE
parameter (bug#17175).
2017-01-25 18:14:00 +01:00
Paul Eggert
bcf244ef9b
Merge from origin/emacs-25
...
2e2a806
Fix copyright years by hand
5badc81
Update copyright year to 2017
2017-01-01 01:10:47 -08:00
Paul Eggert
5badc81c1c
Update copyright year to 2017
...
Run admin/update-copyright.
2016-12-31 19:42:26 -08:00
Mark Oteiza
ee264827f3
Remove a use of lexical-let
...
* lisp/gnus/message.el (message-completion-function): Just use let,
since the file now uses lexical-binding.
2016-12-27 11:11:30 -05:00
Glenn Morris
f37f93f364
Tweaks for message bogus address detection
...
* lisp/gnus/message.el (message-bogus-recipient-p):
Do not require "@", since some mailers deliver to local addresses
without one. (Bug#23054)
Move "@.*@" from here...
(message-bogus-addresses): ...to here, so it can be customized.
2016-12-10 19:03:28 -08:00
Glenn Morris
67df076793
; Replace "25.2" with "26.1" where appropriate, which is almost everywhere
...
Ref:
http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00692.html
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01215.html
2016-11-17 22:50:40 -08:00
Tino Calancha
5ffdbe0a5e
Update parameter :version to 26.1 in several defcustom
...
Following defcustom where added or modified for 25.2 release.
In fact all these changes belong to 26.1 release.
* lisp/battery.el (battery-linux-sysfs-regexp)
* lisp/comint.el (comint-password-prompt-regexp)
* lisp/dired.el (dired-always-read-filesystem)
* lisp/image.el (image-scaling-factor)
* lisp/ibuf-ext.el (ibuffer-never-search-content-name)
(ibuffer-never-search-content-mode)
* lisp/mouse.el (mouse-select-region-move-to-beginning)
* lisp/net/net-utils.el (iwconfig-program, iwconfig-program-options)
(netstat-program, route-program, route-program-options)
* lisp/net/sieve-manage.el (sieve-manage-default-stream)
* lisp/progmodes/grep.el (grep-save-buffers)
* lisp/vc/add-log.el (change-log-directory-files)
* lisp/url/url-vars.el (url-user-agent)
* lisp/vc/vc-hg.el (vc-hg-symbolic-revision-styles)
(vc-hg-use-file-version-for-mode-line-version)
(vc-hg-parse-hg-data-structures)
* lisp/wdired.el (wdired-create-parent-directories)
* lisp/faces.el (homoglyph, nobreak-hyphen, read-multiple-choice-face)
* lisp/gnus/gnus-art.el (gnus-article-encrypt-protocol)
(gnus-button-url-regexp)
* lisp/window.el (switch-to-buffer-preserve-window-point)
* lisp/ibuffer.el (ibuffer-formats, ibuffer-locked-char)
(ibuffer-locked-buffer)
* lisp/textmodes/flyspell.el (flyspell-sort-corrections-function)
* lisp/emacs-lisp/edebug.el (edebug-sit-on-break)
* lisp/gnus/message.el (message-user-fqdn)
* lisp/simple.el (shell-command-dont-erase-buffer)
(extended-command-suggest-shorter)
* lisp/net/shr.el (shr-use-fonts)
* lisp/files.el (mounted-file-systems, kill-emacs-query-functions)
2016-11-17 00:39:43 +09:00
Daniel Colascione
06cfaa3dfa
Make gnus/message.el work correctly under lexical binding
...
* lisp/gnus/message.el (message-send-mail): Rename `arg' to
`_' to shut up the byte compiler.
(sha1-maximum-internal-length, smtpmail-smtp-server)
(smtpmail-smtp-service): add missing defvars
2016-11-08 12:37:54 -08:00
Mark Oteiza
7a87f82987
Turn on lexical-binding in some more libs
...
* lisp/calendar/icalendar.el:
* lisp/emacs-lisp/regexp-opt.el:
* lisp/emacs-lisp/timer.el:
* lisp/gnus/message.el:
* lisp/hex-util.el: Turn on lexical-binding.
2016-10-31 20:31:22 -04:00
Tino Calancha
5e84dcefb4
call-shell-region: New defun
...
Suggested by Stefan Monnier in Bug#22679.
* lisp/subr.el (call-shell-region): New defun; execute a command
in an inferior shell with the buffer region as input.
* lisp/simple.el (shell-command-on-region): Use it.
* lisp/gnus/message.el (message-do-fcc): Idem.
* doc/lispref/processes.texi: Document call-shell-region in the manual.
;* etc/NEWS: Add entry for this new function.
2016-08-25 22:17:56 +09:00
Lars Magne Ingebrigtsen
70cfe9df95
Find message.el thumbnail toggling
...
* lisp/gnus/message.el (message-toggle-image-thumbnails):
Don't infloop when toggling thumbnails.
2016-08-24 23:56:22 +02:00
Paul Eggert
92e5b41c7c
Spelling and minor grammar fixes
...
* test/file-organization.org: Rename from test/file-organisation.org.
2016-08-05 13:35:13 -07:00
Lars Ingebrigtsen
ad90397c59
Move read-multiple-choice to subr-x.el
...
* lisp/faces.el (read-multiple-choice-face): Fix doc string.
* lisp/emacs-lisp/subr-x.el (read-multiple-choice): Move here
from subr.el.
* lisp/gnus/message.el (subr-x): Ditto.
* lisp/net/nsm.el: Require subr-x for read-multiple-choice.
read-multiple-choice doesn't need to be in the dumped Emacs, so move
it to a less central file.
2016-07-22 11:08:21 +02:00
Glenn Morris
b27c670b9f
Leading "*" in the doc of defvars is long obsolete.
...
* lisp/plstore.el (plstore-encrypt-to):
* lisp/cedet/semantic/lex-spp.el
(semantic-lex-spp-macro-max-length-to-save):
* lisp/cedet/semantic/symref.el (semantic-symref-tool):
* lisp/cedet/semantic/bovine/el.el
(semantic-elisp-store-documentation-in-tag):
* lisp/cedet/semantic/wisent/comp.el (wisent-verbose-flag)
(wisent-expected-conflicts):
* lisp/cedet/semantic/wisent/wisent.el (wisent-parse-verbose-flag):
* lisp/gnus/gnus-agent.el (gnus-category-menu-hook):
* lisp/gnus/gnus-group.el (gnus-group-listing-limit):
* lisp/gnus/gnus-srvr.el (gnus-server-menu-hook)
(gnus-browse-menu-hook):
* lisp/gnus/message.el (message-shoot-gnksa-feet):
* lisp/gnus/mm-decode.el (mm-path-name-rewrite-functions):
* lisp/gnus/mm-util.el (mm-extra-numeric-entities):
* lisp/gnus/mm-view.el (mm-w3m-standalone-supports-m17n-p):
* lisp/gnus/mml.el (mml-generate-multipart-alist):
* lisp/gnus/nndraft.el (nndraft-required-headers):
* lisp/gnus/nnheader.el (nnheader-max-head-length)
(nnheader-head-chop-length, nnheader-file-name-translation-alist)
(nnheader-directory-separator-character)
(nnheader-pathname-coding-system):
* lisp/gnus/nnmail.el (nnmail-pathname-coding-system)
(nnmail-active-file-coding-system):
* lisp/gnus/nnrss.el (nnrss-file-coding-system):
* lisp/gnus/nntp.el (nntp-record-commands):
* lisp/gnus/score-mode.el (gnus-score-edit-done-hook)
(gnus-score-mode-hook, gnus-score-menu-hook):
* lisp/mail/rfc2047.el (rfc2047-header-encoding-alist)
(rfc2047-allow-irregular-q-encoded-words)
(rfc2047-allow-incomplete-encoded-text):
* lisp/mh-e/mh-alias.el (mh-alias-system-aliases):
* lisp/mh-e/mh-e.el (mh-mail-header-separator, mh-x-mailer-string):
* lisp/mh-e/mh-scan.el (mh-scan-format-mh, mh-scan-format-nmh):
* lisp/net/pop3.el (pop3-password):
* lisp/play/animate.el (animate-n-steps):
* lisp/progmodes/cc-vars.el (c-old-style-variable-behavior):
Convert from defvar with leading * to defcustom.
; * lisp/cedet/semantic/lex.el: Comments.
* lisp/emulation/viper-init.el (viper-heading-end):
* lisp/gnus/mm-url.el (mm-url-html-entities):
* lisp/gnus/nnmaildir.el (nnmaildir-article-file-name):
* lisp/mh-e/mh-e.el (mh-invisible-header-fields-compiled):
* lisp/net/tramp-adb.el (tramp-adb-method): Remove leading * from doc.
* lisp/gnus/messcompat.el: Mark (pointless) file not for compilation.
(message-from-style, message-interactive, message-indentation-spaces)
(message-signature, message-signature-file):
Remove settings that match the defaults.
(message-setup-hook, message-mode-hook, message-default-headers)
(message-send-hook, message-send-mail-function):
Just use setq rather than redefining.
* lisp/gnus/nnrss.el (nnrss):
* lisp/mail/rfc2047.el (rfc2047):
* lisp/play/animate.el (animate): New custom groups.
2016-06-10 00:23:33 -04:00
Glenn Morris
f9af5eddc8
Remove obsolete leading * from defcustom, defface doc strings.
...
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
Lars Magne Ingebrigtsen
190942baef
Fix up remainder of the mml property change
...
* lisp/gnus/message.el (message-send-mail): Use the renamed
mml-buffer-substring-no-properties-except-some function.
(message-send-news): Ditto.
2016-05-29 19:42:36 +02:00
Lars Ingebrigtsen
78d3f5494b
Make message-toggle-image-thumbnails work better
...
* lisp/gnus/message.el (message-toggle-image-thumbnails): Use
`insert-image' instead of `put-image' to make it possible to
edit the resulting text in a sensible manner.
2016-05-29 17:16:07 +02:00
Lars Magne Ingebrigtsen
84c4cc589d
Finish idna->puny changes in last Message patch
...
* lisp/gnus/message.el (message-idna-to-ascii-rhs-1): Use puny
instead of idna functions.
2016-04-17 19:30:44 +02:00
Lars Magne Ingebrigtsen
64699a5ac8
Default `message-use-idna' to t
...
* lisp/gnus/message.el (message-use-idna): Default to t (since
Emacs comes with puny.el now).
2016-04-17 19:14:12 +02:00
Paul Eggert
7d835d8e79
Avoid now-obsolete function gmm-format-time-string
...
* lisp/gnus/message.el (message-insert-formatted-citation-line):
Use format-time-string instead of obsolete function
gmm-format-time-string.
2016-04-12 18:06:58 -07:00
Paul Eggert
fdb1ba144c
Support OFFSET and (OFFSET ABBR) time zone rules
...
This simplifies Gnus and VC time zone support, by letting them
feed the output of ‘current-time-zone’ and ‘decode time’ to
primitives that accept time zone arguments.
* doc/lispref/os.texi (Time Zone Rules, Time Conversion):
* etc/NEWS:
* lisp/gnus/message.el (message-insert-formatted-citation-line):
* lisp/org/org.el (org-timestamp-format):
* src/editfns.c (Fformat_time_string, Fdecode_time):
(Fcurrent_time_string, Fcurrent_time_zone, Fset_time_zone_rule):
Document new behavior.
* lisp/gnus/gmm-utils.el (gmm-format-time-string):
* lisp/vc/add-log.el (add-log-iso8601-time-zone):
Mark as obsolete, as it is now just an alias or narrow wrapper
around format-time-string.
* src/editfns.c (tzlookup): Also support integer OFFSET and
list (OFFSET ABBR) as time zone rules.
(Fencode_time): No longer need a special case for a cons ZONE.
(Fcurrent_time_zone): If the time zone string is missing, compute
it the same way the other new code does.
2016-04-12 09:19:38 -07:00
Lars Magne Ingebrigtsen
93d54ba104
Inhibit querying for the encoding of the headers when resending
...
* lisp/gnus/message.el (message-resend): Inhibit querying for
the encoding of the headers when resending.
2016-04-05 10:28:09 +02:00
Lars Ingebrigtsen
c399756dda
Fix typo in message-setup-fill-variables
...
* lisp/gnus/message.el (message-setup-fill-variables): Fix
typo in a recent checkin that used `setq-default' instead of
`setq-local' (bug#22781).
2016-02-23 20:58:54 +11:00
Lars Ingebrigtsen
d9ab2503b1
`message-dont-reply-to-names' can also be a list of regexps
...
* lisp/gnus/message.el (message-dont-reply-to-names):
`message-dont-reply-to-names' can also be a list of regexps (bug#22773).
2016-02-23 20:54:42 +11:00
Michal Nazarewicz
a77c6799c1
message-strip-subject-trailing-was: Refactor
...
* lisp/gnus/message.el (message-strip-subject-trailing-was): Refactor
the function replacing sequence of `if' calls with a mixture of `or'
and `and' calls instead. This makes it shorter and containing less
internal state thus easier to follow.
2016-02-23 14:45:59 +11:00
Lars Ingebrigtsen
66d9ef95c0
Remove compat code for older Emacsen
...
* lisp/gnus/gnus-art.el (gnus-button-url-regexp): Remove
XEmacs compat code.
* lisp/gnus/gnus-sync.el (gnus-sync-json-alist-p): Remove
unused compat function.
(gnus-sync-json-plist-p): Ditto.
* lisp/gnus/message.el (message-default-charset): Make obsolete.
(message-info): Remove compat code.
(message-setup-fill-variables): Remove kludge needed earlier
to not overwrite `normal-auto-fill-function'.
(message-split-line): Remove compat code.
* lisp/gnus/mm-view.el (mm-display-inline-fontify): Remove
compat code.
2016-02-14 17:07:48 +11:00
Lars Ingebrigtsen
9de3de8cbf
Remove some compat functions from gmm-utils.el
...
* lisp/gnus/gmm-utils.el (gmm-tool-bar-from-list): Remove
compat code.
(gmm-image-search-load-path): Remove.
(gmm-image-load-path-for-library): Remove.
2016-02-14 16:35:24 +11:00
Lars Ingebrigtsen
014e0d1519
Remove some compat code from mm-*.el
...
* lisp/gnus/mm-bodies.el (mm-decode-body): Ditto.
* lisp/gnus/mm-decode.el (mm-tmp-directory)
(mm-valid-image-format-p): Remove compat code.
* lisp/gnus/mm-url.el (mm-url-insert-file-contents): Remove
"Connection" "Close" workaround for older Emacsen.
2016-02-14 14:06:23 +11:00
Lars Ingebrigtsen
b9baa80d7f
Remove compat code and functions from message.el
...
* lisp/gnus/message.el (message-send-mail-function): Remove
compat code.
(message-dont-reply-to-names, message-mode)
(message-setup-fill-variables, message-fill-paragraph)
(message-remove-blank-cited-lines, message-make-from)
(message-forward-rmail-make-body, message-tool-bar-gnome)
(message-tab): Remove compat code.
(message-completion-in-region): Remove.
(message-read-from-minibuffer): Remove compat code.
2016-02-14 13:57:55 +11:00
Lars Ingebrigtsen
d98ae99839
Remove some Message compat functions
...
* lisp/gnus/message.el (message-kill-all-overlays): Define
unconditionally.
(message-window-inside-pixel-edges): Remove.
(mail-dont-reply-to): Remove.
2016-02-13 19:00:04 +11:00
Lars Ingebrigtsen
bd066f8290
Revert the gnus-replace-in-string change, fix arguments, reapply
2016-02-12 18:24:30 +11:00
Lars Ingebrigtsen
2a342bda0a
Silence more message.el compilation warnings
...
* lisp/gnus/message.el (message-generate-headers): Don't use
variable values directly to get the header values, because
that breaks with lexical binding (without unprefixed defvars).
2016-02-12 17:59:59 +11:00
Lars Ingebrigtsen
209e8bd102
Fix various compilation warnings in message.el
...
* lisp/gnus/message.el (message-fix-before-sending): Use
read-multiple-choice instead of gnus-multiple-choice.
(mm-util): Require.
(rfc2047): Require.
(message-remove-blank-cited-lines): Use message instead of
gnus-message.
(message-send): Use y-or-n-p instead of gnus-y-or-n-p.
2016-02-12 17:28:10 +11:00
Lars Ingebrigtsen
37cf4454b1
Remove XEmacs compat functions from mm-util.el
...
* lisp/gnus/mm-util.el (mm-special-display-p): Remove.
(mm-decode-coding-string, mm-encode-coding-string)
(mm-decode-coding-region, mm-encode-coding-region): Remove.
(mm-string-to-multibyte): Remove.
(mm-char-or-char-int-p): Remove.
(mm-ucs-to-char): Remove compat versions of the function.
(mm-read-coding-system): Remove.
(mm-coding-system-p): Remove compat code.
(mm-enrich-utf-8-by-mule-ucs): Remove.
(mm-enable-multibyte, mm-disable-multibyte): Remove compat versions.
(mm-delete-duplicates): Remove.
(mm-multibyte-p): Remove compat versions.
(mm-xemacs-find-mime-charset-1): Remove.
(mm-xemacs-find-mime-charset): Remove.
(mm-make-temp-file): Made obsolete.
(mm-find-buffer-file-coding-system): Remove XEmacs compat.
2016-02-12 14:39:30 +11:00
Lars Ingebrigtsen
87931c8dc0
Remove Message and mm-decode XEmacs compat code
...
* lisp/gnus/message.el: Remove XEmacs compat code.
* lisp/gnus/mm-decode.el (mm-create-image-xemacs): Remove.
* lisp/gnus/mm-util.el: Remove some XEmacs compat code.
2016-02-12 13:38:12 +11:00
Lars Ingebrigtsen
ae928ae239
Remove som XEmacs compat code from message.el
...
* lisp/gnus/message.el: Remove some XEmacs compat code.
2016-02-11 16:59:06 +11:00
Lars Ingebrigtsen
efbaf95619
Remove more XEmacs compat functions from gnus-util.el
...
* lisp/gnus/gnus-util.el (gnus-put-display-table): Remove.
(gnus-get-display-table): Remove.
(gnus-format-message): Remove.
2016-02-11 16:45:02 +11:00
Lars Ingebrigtsen
fd8d344fc9
Remove more XEmacs compat functions from Gnus
...
* lisp/gnus/gnus-util.el (gnus-next-char-property-change): Remove.
(gnus-previous-char-property-change): Remove.
(gnus-graphic-display-p): Remove.
(gnus-select-frame-set-input-focus): Remove.
2016-02-11 16:39:23 +11:00
Lars Ingebrigtsen
d4680232fb
Remove gnus-make-local-hook
...
* lisp/gnus/gnus-util.el (gnus-make-local-hook): Remove (and
all its usages).
2016-02-11 16:15:43 +11:00
Lars Ingebrigtsen
21cfd14d54
gnus-replace-in-string -> replace-regexp-in-string
...
* lisp/gnus/gnus-util.el (gnus-replace-in-string): Declare
obsolete. Transform all usages of it into
replace-regexp-in-string.
* lisp/gnus/mailcap.el (mailcap-replace-in-string): Remove.
2016-02-11 16:13:08 +11:00
Lars Ingebrigtsen
ee506a23ed
Remove gmm compat functions
...
* lisp/gnus/gmm-utils.el (gmm-image-search-load-path): Remove.
(gmm-write-region): Remove.
(gmm-called-interactively-p): Remove.
2016-02-10 14:56:30 +11:00
Paul Eggert
05595c2e59
-
2016-02-09 14:23:53 -08:00