emacs-devel
[Top][All Lists]
Advanced

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

Re: [ELPA] New package: beacon


From: Rasmus
Subject: Re: [ELPA] New package: beacon
Date: Thu, 15 Oct 2015 23:42:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Hi,

Arthur: great idea.

Kaushal Modi <address@hidden> writes:

> I haven't read either of the source codes, but is it similar to
> lisp/cedet/pulse.el?

pulse.el is cool!  Thanks for pointing it out.

Unfortunately, the following is a bit too aggressive as it also updated on
ispell events and input-methods:

    (add-to-list 'buffer-list-update-hook
                 (defun rasmus/pulse () (pulse-momentary-highlight-one-line 
(point))))

Is there a hook that would better serve as an easy way to detect real
buffer changes, or would one have to introduce a state variable,
e.g. current buffer name?

    (defvar rasmus/pulse-buffer nil)

    (add-to-list 'buffer-list-update-hook
                 (defun rasmus/pulse () 
                   (unless (equal rasmus/pulse-buffer (buffer-name))
                     (pulse-momentary-highlight-one-line (point))
                     (setq rasmus/pulse-buffer (buffer-name)))))

Thanks,
Rasmus

-- 
Lasciate ogni speranza o voi che entrate: siete nella mani di'machellaio




reply via email to

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