From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: beacon Date: Thu, 15 Oct 2015 23:42:49 +0200 Message-ID: <87oafzerl2.fsf@gmx.us> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444945441 9017 80.91.229.3 (15 Oct 2015 21:44:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 21:44:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 15 23:43:52 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZmqJR-0007T1-CR for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2015 23:43:49 +0200 Original-Received: from localhost ([::1]:49863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmqJQ-0000QN-Je for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2015 17:43:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmqIm-0000P3-36 for emacs-devel@gnu.org; Thu, 15 Oct 2015 17:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmqIi-0007PG-RX for emacs-devel@gnu.org; Thu, 15 Oct 2015 17:43:08 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:59649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmqIi-0007P2-KC for emacs-devel@gnu.org; Thu, 15 Oct 2015 17:43:04 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZmqIf-0006bR-8z for emacs-devel@gnu.org; Thu, 15 Oct 2015 23:43:01 +0200 Original-Received: from 46.166.188.198 ([46.166.188.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Oct 2015 23:43:01 +0200 Original-Received: from rasmus by 46.166.188.198 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Oct 2015 23:43:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 46.166.188.198 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAmJLR0QA/4ePzL8AAAAJcEhZ cwAAAEgAAABIAEbJaz4AAAIMSURBVEjHvZbLleswDEPDjlgKOkEnKAWFoBYW8RayEydRJvM246WO rkjw61v953f7M6DRIFlVBUeSJAIfAYCSLdmWk0QCuj8BTUpKrCQzEfuLSw3IiZRJ1L8S3czYMc8D VH+JkuKMUFXV8kzid9euAOyZiKjqhkRKb+7dqqoosquq9fJsg682LhpQ1Y4toTSnsFfi4pK6SpJo wqMqopoStnmoaldBImgRVCSSErm3QKIKJAGKlGxbfiuQszRIdBVAAAS16iOxXkQ8Mo0jKsR6P5mZ xNoA3QD6AEDK8mFhD1T3chQkAMpJDsTWRsPpEUX0ASRJJtkCIPHIeB+XZ5ngO9AAu6plk6jynF8m vpcTLgBZVcpMzC7Og3g0U9R9ACBV6+HEAi/3fTYITeEOSFXFjAUQugI6AEe8u0RZVVVo2oKzAWZd uR0z4zAM6Z7lmYm9TxyOU655tPIwyWeARyfLJrW4lW57XxqrhSyvVyVatmNb22o9tMuZWLIkKbb2 Fup+2A1099KffAaeGnGVSZzVctsW9arvZncDa3Am0iquLbCKSpRFyqfiT8CSDZz3EzuWVq9/3kD9 aLjY8jegu7rB5Y9Mifi+43oNDWvj0DuAopZkiW+D9QXoLhK0csjdLbnbs+RV3ZYJ9LmB+kdghUcX 5/tJxwtAre17GcBN/BDWNSqvsemXSP3dv8avv39wgAhOeVDQLwAAAABJRU5ErkJggg== User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:HtlM5It7TbnkLRP0A0gTohQvvHs= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191692 Archived-At: Hi, Arthur: great idea. Kaushal Modi 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