bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18207: erc-truncate-buffer-on-save: misleading variable name and doc


From: Lars Ingebrigtsen
Subject: bug#18207: erc-truncate-buffer-on-save: misleading variable name and docstring
Date: Sat, 14 Apr 2018 20:53:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Ivan Shmakov <ivan@siamics.net> writes:

>       The docstring for erc-truncate-buffer-on-save reads:
>
> Truncate any ERC (channel, query, server) buffer when it is saved.
>
>       This is somewhat misleading, as there’re also erc-truncate
>       module, and, in particular, – the erc-truncate-buffer function,
>       which are used to truncate buffer /to a given size/ (see
>       erc-max-buffer-size.)  On the contrary, this variable, when
>       non-nil, forces the buffer to be /completely erased,/ as per the
>       following lisp/erc/erc-log.el fragment:
>
>    434                      (if (and erc-truncate-buffer-on-save
>    435                               (called-interactively-p 'interactive))
>    436                          (progn
>    437                            (let ((inhibit-read-only t)) (erase-buffer))
>    438                            (move-marker erc-last-saved-position 
> (point-max))
>    439                            (erc-display-prompt))
>
>       I believe that this behavior should be made clear in the
>       documentation, like:
>
> Erase ERC (channel, query, server) buffers when one is saved.

I've now made a similar change to Emacs 27.1.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]