unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: mouse-1-click-follows-link and mime messages
Date: Thu, 09 Feb 2006 12:48:41 -0500	[thread overview]
Message-ID: <E1F7FuL-0000Lv-H4@fencepost.gnu.org> (raw)
In-Reply-To: <87oe1iwujd.fsf@stupidchicken.com> (message from Chong Yidong on Tue, 07 Feb 2006 19:42:14 -0500)

    --- /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((#<window 6 on *info*> 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.

  reply	other threads:[~2006-02-09 17:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-06 20:43 mouse-1-click-follows-link and mime messages Chong Yidong
2006-02-07  7:44 ` Romain Francoise
2006-02-07 17:26   ` Chong Yidong
2006-02-07 18:05     ` Romain Francoise
2006-02-07 19:43       ` Chong Yidong
2006-02-07 23:29   ` Chong Yidong
2006-02-08  0:42     ` Chong Yidong
2006-02-09 17:48       ` Richard M. Stallman [this message]
2006-02-08 19:05     ` Richard M. Stallman
2006-02-08 20:51       ` Chong Yidong
2006-02-10  1:12         ` Richard M. Stallman
2006-02-10  1:32           ` David Kastrup
2006-02-16 14:32         ` mouse-1 drag invokes follow-link (was: mouse-1-click-follows-link and mime messages) Reiner Steib
2006-02-16 16:04           ` mouse-1 drag invokes follow-link Chong Yidong
2006-02-16 21:12             ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1F7FuL-0000Lv-H4@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).