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

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

Re: Problem with simple script to clean out an ERC buffer


From: J. David Boyd
Subject: Re: Problem with simple script to clean out an ERC buffer
Date: Wed, 06 Jun 2018 08:17:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (cygwin)


Emanuel Berg <address@hidden> writes:

> J. David Boyd wrote:
>
>> So I go into an ERC buffer, put the cursor at
>> the prompt, hit H-C-c, and it always tells me
>> that "Text is read-only"
>>
>> But, if I manually execute the commands
>> above, and press C-w when I get to the
>> delete-region command, it works fine.
>
> Is it a good idea to manually erase the
> text/data of an ERC buffer?
>
> What's the purpose of that?
>
> Perhaps there is an IRC command to do that?


Yes there is, but it doesn't do anything:  erc-cmd-CLEAR

Supposed to "Clear the window content", but the code reads:

(defun erc-cmd-CLEAR ()
  "Clear the window content."
  (recenter 0)
  t)
(put 'erc-cmd-CLEAR 'process-not-needed t)

So not only does it not clear the window, but it seems to be disabled.

Anyway, I like to clear out the buffer so I can reduce my memory footprint.
If there is anything important in it, I usually grab it and put it into an org
file.





reply via email to

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