From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Hyperlinks in *vc-change-log* Date: Sun, 13 Apr 2008 19:33:43 +0200 Message-ID: <871w59zmko.fsf@ambire.localdomain> References: <87fxtvng9t.fsf@hagelb.org> <874pa9djro.fsf@hagelb.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208108232 23298 80.91.229.12 (13 Apr 2008 17:37:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Apr 2008 17:37:12 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Phil Hagelberg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 13 19:37:45 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jl69A-00078W-Kq for ged-emacs-devel@m.gmane.org; Sun, 13 Apr 2008 19:37:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl68W-0007QC-IB for ged-emacs-devel@m.gmane.org; Sun, 13 Apr 2008 13:37:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jl67v-0007Nt-BR for emacs-devel@gnu.org; Sun, 13 Apr 2008 13:36:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jl67t-0007Nh-Rg for emacs-devel@gnu.org; Sun, 13 Apr 2008 13:36:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl67t-0007Ne-Mf for emacs-devel@gnu.org; Sun, 13 Apr 2008 13:36:25 -0400 Original-Received: from [151.61.143.103] (helo=ambire.localdomain) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jl67t-0004gr-8h for emacs-devel@gnu.org; Sun, 13 Apr 2008 13:36:25 -0400 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1Jl65H-0003i5-Mh; Sun, 13 Apr 2008 19:33:43 +0200 In-Reply-To: <874pa9djro.fsf@hagelb.org> (Phil Hagelberg's message of "Thu, 10 Apr 2008 22:48:27 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:95116 Archived-At: () Phil Hagelberg () Thu, 10 Apr 2008 22:48:27 -0700 That's great; I love having closures available. A button can store state, not only the text it is attached to (see `button-label'), but other stuff as well. Here, you don't even need that. Probably this suffices: (defun log-view-find-revision-at-button (button) (log-view-find-revision (button-start button))) (make-text-button BEG END 'action 'log-view-find-revision-at-button) thi