From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Missing follow-links in descr-text Date: Mon, 13 Feb 2006 19:59:09 +0200 Organization: JURTA Message-ID: <878xsf86x7.fsf@jurta.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139855124 27244 80.91.229.2 (13 Feb 2006 18:25:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2006 18:25:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 13 19:25:23 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F8iNI-0005Oz-NS for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2006 19:24:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8iNI-0000BT-6W for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2006 13:24:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F8iLl-000885-QE for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:23:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F8iLj-00086r-Gn for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:23:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8iLj-00086o-Bs for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:22:59 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F8iQE-0002l9-8w for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:27:38 -0500 Original-Received: from mail.neti.ee (80-235-43-67-dsl.mus.estpak.ee [80.235.43.67]) by Relayhost2.neti.ee (Postfix) with ESMTP id 1EF727D63; Mon, 13 Feb 2006 20:22:58 +0200 (EET) Original-To: martin rudalics In-Reply-To: (martin rudalics's message of "Mon, 13 Feb 2006 18:17:44 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:50473 Archived-At: > Please consider adding a few follow-link properties to descr-text.el. > The current behavior of `describe-char', for example, is a bit chaotic > with `mouse-1-click-follows-link' non-nil. Instead of adding `follow-link t' to each and every place, what do you think about fixing this at the top level with the following patch? Index: lisp/button.el =================================================================== RCS file: /sources/emacs/emacs/lisp/button.el,v retrieving revision 1.21 diff -c -r1.21 button.el *** lisp/button.el 6 Feb 2006 14:33:32 -0000 1.21 --- lisp/button.el 13 Feb 2006 17:57:07 -0000 *************** *** 79,84 **** --- 79,85 ---- ;; Default properties for buttons (put 'default-button 'face 'button) (put 'default-button 'mouse-face 'highlight) + (put 'default-button 'follow-link t) (put 'default-button 'keymap button-map) (put 'default-button 'type 'button) ;; action may be either a function to call, or a marker to go to -- Juri Linkov http://www.jurta.org/emacs/