mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-30 08:09:04 +00:00
Accommodate missing spec values in erc-format-message
* lisp/erc/erc.el (erc-format-message): Although not mentioned in its
log message, commit 5281946fbf
"Make
format-spec accept function substitutions" also fixed a bug involving
the `ignore-missing' parameter of `format-spec'. Until now, ERC has
been relying on the old behavior to gracefully handle malformed server
messages. This commit tries to regain that functionality.
This commit is contained in:
parent
92703e00dc
commit
4a1a4bf0e2
@ -6961,6 +6961,8 @@ shortened server name instead."
|
||||
|
||||
(defvar tabbar--local-hlf)
|
||||
|
||||
;; FIXME when 29.1 is cut and `format-spec' is added to ELPA Compat,
|
||||
;; remove the function invocations from the spec form below.
|
||||
(defun erc-update-mode-line-buffer (buffer)
|
||||
"Update the mode line in a single ERC buffer BUFFER."
|
||||
(with-current-buffer buffer
|
||||
@ -7325,7 +7327,7 @@ See also `format-spec'."
|
||||
(error "No format spec for message %s" msg))
|
||||
(when (functionp entry)
|
||||
(setq entry (apply entry args)))
|
||||
(format-spec entry (apply #'format-spec-make args))))
|
||||
(format-spec entry (apply #'format-spec-make args) 'ignore)))
|
||||
|
||||
;;; Various hook functions
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user