|
From: | YAMAMOTO . Taku |
Subject: | Re: [Erc-discuss] Re: Can I freeze channel buffer ? |
Date: | Fri, 4 May 2007 12:50:57 +0900 |
YAMAMOTO.Taku <address@hidden> writes:
> "Freeze" means I thought is "freeze specific channel buffer stream".
> But I found stop stream by move cursor above ERC> prompt.
Indeed. I've been using the following for a long time to move the
cursor away automatically when I'm not looking at the ERC buffer.
(defun my-erc-leave-last-line (dummy)
"Move point away from the last line in a non-selected ERC buffer.
Normally, when a new message is inserted and point is after the
ERC prompt, point is pushed down along with the prompt after the
newly inserted text. This function moves point above the prompt,
where it will stay, so that you can find the place where you left
off reading."
(when (and (not (eq (window-buffer (selected-window))
(current-buffer)))
(>= (point) erc-insert-marker))
;; now, move
(deactivate-mark)
(goto-char (erc-beg-of-input-line))
(forward-line -1)))
(add-hook 'erc-insert-pre-hook 'my-erc-leave-last-line)
--
Johan Bockgård
_______________________________________________
Erc-discuss mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/erc-discuss
[Prev in Thread] | Current Thread | [Next in Thread] |