1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-17 05:30:43 -08:00
emacs/lisp/gnus
Basil L. Contovounesios 0185d76e74 Fix and extend format-spec (bug#41758)
* lisp/format-spec.el: Use lexical-binding.  Remove dependence on
subr-x.el.
(format-spec-make): Clarify docstring.
(format-spec--parse-modifiers): Rename to...
(format-spec--parse-flags): ...this and simplify.  In particular,
don't bother parsing :space-pad which is redundant and unused.
(format-spec--pad): Remove, replacing with...
(format-spec--do-flags): ...this new helper function which performs
more of format-spec's supported text manipulation.
(format-spec): Autoload.  Allow optional argument to take on special
values 'ignore' and 'delete' for more control over what happens when
a replacement for a format specification isn't provided.  Bring back
proper support for a precision modifier similar to that of 'format'.

* lisp/battery.el (battery-format): Rewrite in terms of format-spec.
(battery-echo-area-format, battery-mode-line-format): Mention
support of format-spec syntax in docstrings.

* doc/lispref/strings.texi (Custom Format Strings):
* etc/NEWS: Document and announce these changes.

* lisp/dired-aux.el (dired-do-compress-to):
* lisp/erc/erc-match.el (erc-log-matches):
* lisp/erc/erc.el (erc-update-mode-line-buffer):
* lisp/gnus/gnus-sieve.el (gnus-sieve-update):
* lisp/gnus/gssapi.el (open-gssapi-stream):
* lisp/gnus/mail-source.el (mail-source-fetch-file)
(mail-source-fetch-directory, mail-source-fetch-pop)
(mail-source-fetch-imap):
* lisp/gnus/message.el (message-insert-formatted-citation-line):
* lisp/image-dired.el:
* lisp/net/eww.el:
* lisp/net/imap.el (imap-kerberos4-open, imap-gssapi-open)
(imap-shell-open):
* lisp/net/network-stream.el (network-stream-open-shell):
* lisp/obsolete/tls.el (open-tls-stream):
* lisp/textmodes/tex-mode.el:
Remove extraneous loads and autoloads of format-spec now that it is
autoloaded and simplify its uses where possible.

* test/lisp/battery-tests.el (battery-format): Test new format-spec
support.
* test/lisp/format-spec-tests.el (test-format-spec): Rename to...
(format-spec) ...this, extending test cases.
(test-format-unknown): Rename to...
(format-spec-unknown): ...this, extending test cases.
(test-format-modifiers): Rename to...
(format-spec-flags): ...this.
(format-spec-make, format-spec-parse-flags, format-spec-do-flags)
(format-spec-do-flags-truncate, format-spec-do-flags-pad)
(format-spec-do-flags-chop, format-spec-do-flags-case): New tests.
2020-06-18 12:46:21 +01:00
..
.dir-locals.el
canlock.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.1 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.2 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.3 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
deuglify.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
gmm-utils.el Use the "modern" toolbars in Gnus again 2020-05-11 04:34:55 +03:00
gnus-agent.el Merge from origin/emacs-27 2020-04-15 07:50:15 -07:00
gnus-art.el Indicate not downloaded parts in MIME buttons. 2020-05-19 15:17:57 +02:00
gnus-async.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-bcklg.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-bookmark.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-cache.el Fix edge case errors in filename-matching regexps 2020-04-14 12:25:16 +02:00
gnus-cite.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-cloud.el gnus-cloud: Improve cloud sync 2020-06-16 14:10:52 -04:00
gnus-cus.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-delay.el Remove the Date header from message-draft-headers 2020-03-20 11:39:44 -07:00
gnus-demon.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-diary.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-dired.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-draft.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-dup.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-eform.el Derive gnus-edit-form-mode from lisp-data-mode, fix mode map 2020-06-12 09:17:04 -07:00
gnus-fun.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00
gnus-gravatar.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-group.el * lisp/gnus/gnus-start.el (gnus-group-change-level): Simplify 2020-01-04 18:07:23 -05:00
gnus-html.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-icalendar.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-int.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-kill.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-logic.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-mh.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-ml.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-mlspl.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-msg.el Ensure that gnus-summary-attach-article finds the right articles 2020-01-18 13:55:18 -08:00
gnus-notifications.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-picon.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-range.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-registry.el Prevent gnus-registry-handle-action from creating spurious entries 2020-05-20 11:42:30 -07:00
gnus-rfc1843.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-salt.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-score.el Fix edge case errors in filename-matching regexps 2020-04-14 12:25:16 +02:00
gnus-sieve.el Fix and extend format-spec (bug#41758) 2020-06-18 12:46:21 +01:00
gnus-spec.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-srvr.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-start.el Fix some file-modes races 2020-02-19 13:48:27 -08:00
gnus-sum.el Don’t attempt to modify constant conses 2020-05-16 17:05:37 -07:00
gnus-topic.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-undo.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-util.el Use directory-files-no-dot-files-regexp wherever possible 2020-04-16 12:14:38 +02:00
gnus-uu.el Use directory-files-no-dot-files-regexp wherever possible 2020-04-16 12:14:38 +02:00
gnus-vm.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-win.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus.el fix bug#39344 2020-01-29 11:17:50 -05:00
gssapi.el Fix and extend format-spec (bug#41758) 2020-06-18 12:46:21 +01:00
legacy-gnus-agent.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mail-source.el Fix and extend format-spec (bug#41758) 2020-06-18 12:46:21 +01:00
message.el Fix and extend format-spec (bug#41758) 2020-06-18 12:46:21 +01:00
mm-archive.el Fix some file-modes races 2020-02-19 13:48:27 -08:00
mm-bodies.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-decode.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
mm-encode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-extern.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-partial.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-url.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-util.el Correct "different than" to "different from" where appropriate 2020-02-09 14:33:14 +00:00
mm-uu.el Add and remove backslashes in regexps 2020-02-20 16:03:30 +01:00
mm-view.el Wrap some set-auto-mode calls with delay-mode-hooks (bug#39190) 2020-02-06 00:38:53 +02:00
mml-sec.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mml-smime.el Move “Fix some broken conditional forms” to master 2020-01-05 11:50:31 -08:00
mml.el Merge from origin/emacs-27 2020-04-25 07:50:21 -07:00
mml1991.el prune the overly cavalier "kill all gnus buffers exit" 2020-01-30 11:28:30 -05:00
mml2015.el prune the overly cavalier "kill all gnus buffers exit" 2020-01-30 11:28:30 -05:00
nnagent.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnbabyl.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nndiary.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nndir.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nndoc.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nndraft.el Merge from origin/emacs-27 2020-04-15 07:50:15 -07:00
nneething.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnfolder.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nngateway.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnheader.el * lisp/gnus/nnmaildir.el: Fix O(n^2) problem when leaving a group 2020-02-14 11:05:57 -05:00
nnimap.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnir.el Merge from origin/emacs-27 2020-06-07 09:03:59 -07:00
nnmail.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nnmaildir.el * lisp/gnus/nnmaildir.el: Fix O(n^2) problem when leaving a group 2020-02-14 11:05:57 -05:00
nnmairix.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnmbox.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nnmh.el Merge from origin/emacs-27 2020-04-15 07:50:15 -07:00
nnml.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nnnil.el
nnoo.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnregistry.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnrss.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnspool.el Fix edge case errors in filename-matching regexps 2020-04-14 12:25:16 +02:00
nntp.el Remove unnecessary lambda quoting 2020-04-20 11:25:40 -07:00
nnvirtual.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnweb.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
score-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
smiley.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
smime.el prune the overly cavalier "kill all gnus buffers exit" 2020-01-30 11:28:30 -05:00
spam-report.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
spam-stat.el Fix edge case errors in filename-matching regexps 2020-04-14 12:25:16 +02:00
spam-wash.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
spam.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00