; Fix recent changes in rcirc documentation

* doc/misc/rcirc.texi (Changing the time stamp format):
* lisp/net/rcirc.el (rcirc-when): Fix documentation wording.
This commit is contained in:
Eli Zaretskii 2022-01-06 18:53:45 +02:00
parent 0ae38ec94a
commit 7945d86829
2 changed files with 2 additions and 2 deletions

View file

@ -935,7 +935,7 @@ how to include the date in the time stamp:
@findex rcirc-when
If you don't wish to use verbose time formatting all the time, you can
use the @code{rcirc-when} command to printing a complete timestamp for
use the @code{rcirc-when} command to display a complete timestamp for
the message at point.
@node Defining a new command

View file

@ -2048,7 +2048,7 @@ connection."
process sender response target text)))))
(defun rcirc-when ()
"Print a message when the message at point was received."
"Show the time of reception of the message at point."
(interactive)
(if-let (time (get-text-property (point) 'rcirc-time))
(message (format-time-string "%c" time))