mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
; Improve erc-format-privmessage documentation
* etc/ERC-NEWS: Mention that `erc-format-privmessage' has been removed from the default client's primary code path. Revise various headlines. * lisp/erc/erc.el: Bump Compat version to 29.1.4.5. (erc-format-privmessage): Make appeal for users to contact the mailing list if they need to modify speaker-message formatting.
This commit is contained in:
parent
f6bfa1844b
commit
c69c822c59
2 changed files with 40 additions and 25 deletions
|
|
@ -13,7 +13,7 @@
|
|||
;; Michael Olson (mwolson@gnu.org)
|
||||
;; Kelvin White (kwhite@gnu.org)
|
||||
;; Version: 5.6-git
|
||||
;; Package-Requires: ((emacs "27.1") (compat "29.1.4.4"))
|
||||
;; Package-Requires: ((emacs "27.1") (compat "29.1.4.5"))
|
||||
;; Keywords: IRC, chat, client, Internet
|
||||
;; URL: https://www.gnu.org/software/emacs/erc.html
|
||||
|
||||
|
|
@ -6187,7 +6187,15 @@ NUH, and the current `erc-response' object.")
|
|||
(and erc-channel-users (gethash downcased erc-channel-users)))
|
||||
|
||||
(defun erc-format-privmessage (nick msg privp msgp)
|
||||
"Format a PRIVMSG in an insertable fashion."
|
||||
"Format a PRIVMSG in an insertable fashion.
|
||||
|
||||
Note that as of version 5.6, the default client no longer calls this
|
||||
function. It instead defers to the `format-spec'-based message-catalog
|
||||
system to handle all message formatting. Anyone needing to influence
|
||||
such formatting should describe their use case via \\[erc-bug] or
|
||||
similar. Please do this instead of resorting to things like modifying
|
||||
formatting templates to remove speaker brackets (because many modules
|
||||
rely on their presence, and cleaner ways exist)."
|
||||
(let* ((mark-s (if msgp (if privp "*" "<") "-"))
|
||||
(mark-e (if msgp (if privp "*" ">") "-"))
|
||||
(str (format "%s%s%s %s" mark-s nick mark-e msg))
|
||||
|
|
@ -9681,7 +9689,7 @@ See also `format-spec'."
|
|||
erc-networks-shrink-ids-and-buffer-names
|
||||
erc-networks-rename-surviving-target-buffer)
|
||||
"Invoked whenever a channel-buffer is killed via `kill-buffer'."
|
||||
:package-version '(ERC . "5.6") ; FIXME sync on release
|
||||
:package-version '(ERC . "5.6")
|
||||
:group 'erc-hooks
|
||||
:type 'hook)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue