emacs/lisp/obsolete
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
..
abbrevlist.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
assoc.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
bruce.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cc-compat.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-compat.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl.el ; Fix some typos and doc issues (bug#40695) 2020-04-18 17:10:02 +02:00
complete.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
crisp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cust-print.el * lisp/obsolete/cust-print.el (print-circle): Doc tweak. 2020-01-16 21:15:28 -08:00
erc-hecomplete.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eudcb-ph.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
fast-lock.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gs.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gulp.el Fix edge case errors in filename-matching regexps 2020-04-14 12:25:16 +02:00
html2text.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
info-edit.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
iswitchb.el Remove (or double) redundant backslashes in string literals 2020-01-24 23:04:34 +01:00
landmark.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lazy-lock.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
longlines.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mailpost.el Go back to "Maintainer: emacs-devel@gnu.org" 2019-05-25 14:25:18 -07:00
mantemp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
meese.el Go back to "Maintainer: emacs-devel@gnu.org" 2019-05-25 14:25:18 -07:00
messcompat.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
metamail.el Mark metamail.el as obsolete (Bug#41388) 2020-05-26 04:56:56 +02:00
mouse-sel.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
old-emacs-lock.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
otodo-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
patcomp.el
pc-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pc-select.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pgg-def.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pgg-gpg.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pgg-parse.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pgg-pgp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pgg-pgp5.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pgg.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rcompile.el Remove (or double) redundant backslashes in string literals 2020-01-24 23:04:34 +01:00
s-region.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
sb-image.el Make sb-image.el obsolete (Bug#37837) 2020-01-17 06:55:45 +01:00
sregex.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
starttls.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
sup-mouse.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
terminal.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tls.el Fix and extend format-spec (bug#41758) 2020-06-18 12:46:21 +01:00
tpu-edt.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tpu-extras.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tpu-mapper.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
url-ns.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc-arch.el Use directory-files-no-dot-files-regexp wherever possible 2020-04-16 12:14:38 +02:00
vi.el Remove (or double) redundant backslashes in string literals 2020-01-24 23:04:34 +01:00
vip.el Remove (or double) redundant backslashes in string literals 2020-01-24 23:04:34 +01:00
ws-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
yow.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00