From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Re: Adding hypertlink buttons Date: Tue, 30 Oct 2018 19:31:31 -0700 (PDT) Message-ID: <4ffd20a7-499a-42ac-837c-13510f3373e3@googlegroups.com> References: <9da059a8-fc31-4fc2-bd3d-ebe727526dbe@googlegroups.com> <395a5039-1efe-4b06-a77f-e2e98b099983@googlegroups.com> <7527e6ac-383a-4a19-b706-ff1ecd72c227@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1540953202 15149 195.159.176.226 (31 Oct 2018 02:33:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2018 02:33:22 +0000 (UTC) Injection-Date: Wed, 31 Oct 2018 02:31:32 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 31 03:33:18 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHgJq-0003pm-0o for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Oct 2018 03:33:18 +0100 Original-Received: from localhost ([::1]:56804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHgLw-0001jI-BA for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 22:35:28 -0400 X-Received: by 2002:ac8:5347:: with SMTP id d7-v6mr947509qto.33.1540953092334; Tue, 30 Oct 2018 19:31:32 -0700 (PDT) X-Received: by 2002:a0c:98c6:: with SMTP id g6mr15081qvd.1.1540953092202; Tue, 30 Oct 2018 19:31:32 -0700 (PDT) Original-Path: usenet.stanford.edu!e5-v6no718179qtr.0!news-out.google.com!c29-v6ni3143qtg.1!nntp.google.com!e5-v6no718166qtr.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=202.124.123.171; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF Original-NNTP-Posting-Host: 202.124.123.171 Original-Xref: usenet.stanford.edu gnu.emacs.help:224390 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:118519 Archived-At: On Tuesday, October 30, 2018 at 6:44:31 PM UTC+13, Yuri Khan wrote: > On Tue, Oct 30, 2018 at 10:40 AM Davin Pearson wrote: >=20 > > When I execute the following command > > > > (display-splash-screen nil) > > > > It comes up with a screen of hyperlinks. By default Emacs > > shows the splash screen with an extra image and a hyperlink button > > that takes your Web browser to gnu.org, although I have turned > > this feature off and I cannot remember what command to use to > > re-enable a fancy splash screen. > > > > It seems that font lock should be used to add a hyperlink to > > your Elisp code. >=20 > Since you know what function does what you want, and you approximately > know the thing to look for, what is stopping you from reading the code > of that function looking for that thing? >=20 > Specifically, the buffer text of the startup screen is built by > function =E2=80=98fancy-splash-insert=E2=80=99 in startup.el, from data i= n variable > =E2=80=98fancy-startup-text=E2=80=99 in the same file. >=20 > What it=E2=80=99s doing is invoke =E2=80=98insert-button=E2=80=99, with t= he property 'face > specifying 'link (in addition to the current face), 'help-echo setting > a description string displayed in the echo area when point is within > the button, 'follow-link to make it clickable with the mouse, and > 'action specifying a lambda function that invokes =E2=80=98browse-url=E2= =80=99 with > the appropriate link address. You could create a button with its > 'action set to a function that does something else, such as visiting a > specific file and moving point to a specific position. How do I go about setting properties in PLists? Can you give an example? How do I create a plist?