From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: Re: how to add button to emacs that play a elisp code Date: Fri, 12 Sep 2014 07:52:58 -0700 (PDT) Message-ID: References: <04dd6007-693a-4e56-9e2a-e930e51a9563@googlegroups.com> <21521.22678.640570.26495@mail.eng.it> <21521.24551.904371.551048@mail.eng.it> <21521.37886.262510.961741@mail.eng.it> <87vbotx3ht.fsf@debian.uxu> <87ioktn2qp.fsf@kuiper.lan.informatimago.com> <87d2b1vh2w.fsf@debian.uxu> <87wq99u0g1.fsf@debian.uxu> <878ulp8wl2.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410533616 8427 80.91.229.3 (12 Sep 2014 14:53:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 14:53:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 12 16:53:30 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1XSSE5-0003MA-Qh for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 16:53:29 +0200 Original-Received: from localhost ([::1]:45534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSSE5-0006T0-Gw for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 10:53:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSSDm-0006R3-1N for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 10:53:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSSDe-0003Ej-FX for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 10:53:09 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:17756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSSDe-0003Eb-9Z for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 10:53:02 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s8CEr0YU024625 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 12 Sep 2014 14:53:00 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s8CEqx2f003932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 12 Sep 2014 14:53:00 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s8CEqxlJ003921 for ; Fri, 12 Sep 2014 14:52:59 GMT In-Reply-To: <878ulp8wl2.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99856 Archived-At: This reply does not directly address the OP question - just an FYI about something somewhat related. With Bookmark+ you can have a bookmark that does pretty much anything, including invoke arbitrary Lisp code. Command `bmkp-insert-bookmark-link' creates a link (button, if you prefer) on any text (e.g. the region) that, when followed, invokes the bookmark (jumps somewhere or does something else). Hitting `?' or double-clicking the link shows the bookmark info in *Help*. [If you also use library font-lock+.el then the links/buttons are highlighted (with face `link') even in font-locked buffers. See Emacs bug #18367 about such highlighting.] http://www.emacswiki.org/BookmarkPlus