emacs-erc
[Top][All Lists]
Advanced

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

Re: "*** #debian: You're not on that channel"


From: Emanuel Berg
Subject: Re: "*** #debian: You're not on that channel"
Date: Sat, 29 Jan 2022 01:14:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

J.P. wrote:

>> (defun erc-kill-buffer-cycle ()
>>   (let ((erc-buffers (erc-buffer-list)))
>>     (if (= 1 (length erc-buffers))
>>         (kill-buffer)
>>       (let ((current-buffer (current-buffer)))
>>         (cl-loop
>>          for b in erc-buffers
>>          when (not (eq b current-buffer))
>>          do (erc-cmd-PART "")
>>             (kill-buffer)
>>             (switch-to-buffer b)
>>             (cl-return) )))))
>
> It looks as though you originally meant to make each
> b current in the loop body. [...]

The purpose, and this also happens, is to kill the current ERC
buffer and switch to another ERC buffer.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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