From: Rasmus <rasmus@gmx.us>
To: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: beacon
Date: Thu, 15 Oct 2015 23:42:49 +0200 [thread overview]
Message-ID: <87oafzerl2.fsf@gmx.us> (raw)
In-Reply-To: CAFyQvY0SF4Z3hrg+jVUXhdkSK=8g9WCS5efwrDoKaqGw1zJrQA@mail.gmail.com
Hi,
Arthur: great idea.
Kaushal Modi <kaushal.modi@gmail.com> 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
next prev parent reply other threads:[~2015-10-15 21:42 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-15 17:02 [ELPA] New package: beacon Artur Malabarba
2015-10-15 17:24 ` Kaushal Modi
2015-10-15 17:26 ` Kaushal Modi
2015-10-15 17:33 ` Kaushal Modi
2015-10-15 21:27 ` Artur Malabarba
2015-10-15 21:37 ` Kaushal Modi
2015-10-15 21:44 ` Kaushal Modi
2015-10-15 22:13 ` Artur Malabarba
2015-10-15 22:27 ` Kaushal Modi
2015-10-15 22:40 ` Kaushal Modi
2015-10-16 8:06 ` Tassilo Horn
2015-10-15 22:47 ` Artur Malabarba
2015-10-15 21:21 ` Artur Malabarba
2015-10-16 13:11 ` Phillip Lord
2015-10-16 13:54 ` Artur Malabarba
2015-10-15 21:42 ` Rasmus [this message]
2015-10-15 17:36 ` Marcin Borkowski
2015-10-15 17:55 ` Kaushal Modi
2015-10-15 18:17 ` Artur Malabarba
2015-10-15 18:31 ` Howard Melman
2015-10-15 21:36 ` Artur Malabarba
2015-10-21 17:10 ` [ELPA] New package: on-screen (was: [ELPA] New package: beacon) Michael Heerdegen
2015-10-21 18:20 ` [ELPA] New package: on-screen John Wiegley
2015-10-21 18:54 ` John Wiegley
2015-10-21 19:04 ` Michael Heerdegen
2015-10-21 19:28 ` John Wiegley
2015-10-22 7:26 ` David Kastrup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oafzerl2.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).