From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: mouse-1-click-follows-link and mime messages Date: Thu, 09 Feb 2006 12:48:41 -0500 Message-ID: References: <87acd48bhi.fsf@stupidchicken.com> <87acd3mx3u.fsf@pacem.orebokech.com> <877j86929j.fsf@stupidchicken.com> <87oe1iwujd.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1139517649 11132 80.91.229.2 (9 Feb 2006 20:40:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2006 20:40:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 09 21:40:42 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 1F7IZu-0007xx-LW for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2006 21:39:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7IZs-00073Y-Re for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2006 15:39:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F7FuO-000205-KT for emacs-devel@gnu.org; Thu, 09 Feb 2006 12:48:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F7FuM-0001yN-Kn for emacs-devel@gnu.org; Thu, 09 Feb 2006 12:48:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7FuM-0001xy-8Y for emacs-devel@gnu.org; Thu, 09 Feb 2006 12:48:42 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F7Fxw-0002Nm-RI for emacs-devel@gnu.org; Thu, 09 Feb 2006 12:52:24 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1F7FuL-0000Lv-H4; Thu, 09 Feb 2006 12:48:41 -0500 Original-To: Chong Yidong In-reply-to: <87oe1iwujd.fsf@stupidchicken.com> (message from Chong Yidong on Tue, 07 Feb 2006 19:42:14 -0500) 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:50256 Archived-At: --- /home/cyd/emacs/lisp/wid-edit.el 2006-02-07 19:32:34.000000000 -0500 *************** *** 1754,1760 **** "An embedded link." :button-prefix 'widget-link-prefix :button-suffix 'widget-link-suffix ! :follow-link "\C-m" :help-echo "Follow the link." :format "%[%t%]") --- 1754,1760 ---- "An embedded link." :button-prefix 'widget-link-prefix :button-suffix 'widget-link-suffix ! :follow-link 'widget-button-click :help-echo "Follow the link." :format "%[%t%]") If that fixes the problem, I suspect there may be a bug in the code that implements :follow-link. Maybe that code needs to select the window that the link is in. Could you take a look? Now, hover the mouse over one of the links in the header line. An error is signalled: Debugger entered--Lisp error: (args-out-of-range 1875 1875) get-char-property(1875 follow-link) mouse-on-link-p((# header-line (118 . 13) 0 (#("Next: Face Customization, Prev: Changing a Variable, Up: Easy Customization" 0 6 ... 6 24 ... 24 27 nil 27 33 ... 33 52 ... 52 55 nil 55 59 ... 59 77 ...) . 16) 1875 (16 . -1) nil (6 . 13) (7 . 14))) I suspect that is a simple bug in mouse-on-link-p, that it doesn't handle all the possible formats of an event.