unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: Ryan Yeske <rcyeske@gmail.com>
Cc: 4738@emacsbugs.donarmstrong.com, Chong Yidong <cyd@stupidchicken.com>
Subject: bug#4738: 23.1.50; Inconsistent mouse-1 on url in rcirc
Date: Thu, 24 Dec 2009 00:46:39 +0000	[thread overview]
Message-ID: <xbaiiqbxgpw0.fsf@cam.ac.uk> (raw)
In-Reply-To: <87bpk55puo.fsf@freegeek.hackery.lan> (Ryan Yeske's message of "Sat, 17 Oct 2009 20:43:27 -0700")

On 2009-10-18 04:43 +0100, Ryan Yeske wrote:
> Hi,
>
> If I remember correctly, it used to be the case that only mouse-2
> visited hyperlinks in emacs buffers.  Is it standard for mouse-1 to do
> this now?  Should I just change the binding, or duplicate it?
>
> Ryan

On 2009-10-18 05:35 +0100, Chong Yidong wrote:
> Ryan Yeske <rcyeske@gmail.com> writes:
>
>> If I remember correctly, it used to be the case that only mouse-2
>> visited hyperlinks in emacs buffers.  Is it standard for mouse-1 to do
>> this now?  Should I just change the binding, or duplicate it?
>
> Use the "follow-link" functionality.  See the "Defining Clickable Text"
> node in the Emacs Lisp manual; you can look at the way other Emacs modes
> do it for examples.

I tested the following patch and it seems to work correctly.

diff -c -L /Users/admin/lisp/lisp/net/rcirc.el.gz~ -L /Users/admin/lisp/lisp/net/rcirc.el.gz /tmp/jka-com5634zYF /tmp/jka-com5634NtR
--- /Users/admin/lisp/lisp/net/rcirc.el.gz~
+++ /Users/admin/lisp/lisp/net/rcirc.el.gz
@@ -835,7 +835,8 @@
   "Keymap used for browsing URLs in `rcirc-mode'.")

 (define-key rcirc-browse-url-map (kbd "RET") 'rcirc-browse-url-at-point)
 (define-key rcirc-browse-url-map (kbd "<mouse-2>") 'rcirc-browse-url-at-mouse)
+(define-key rcirc-browse-url-map [follow-link] 'mouse-face)

 (defvar rcirc-short-buffer-name nil
   "Generated abbreviation to use to indicate buffer activity.")

Diff finished.  Thu Dec 24 00:41:00 2009






  parent reply	other threads:[~2009-12-24  0:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-18  3:30 bug#4738: 23.1.50; Inconsistent mouse-1 on url in rcirc Chong Yidong
2009-10-18  3:43 ` Ryan Yeske
2009-10-18  4:35   ` Chong Yidong
2009-12-24  0:46   ` Leo [this message]
2009-12-24  1:56     ` Lennart Borgman
  -- strict thread matches above, loose matches on Subject: below --
2010-01-02 16:14 Chong Yidong
2009-10-16 16:04 Leo

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=xbaiiqbxgpw0.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=4738@debbugs.gnu.org \
    --cc=4738@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    --cc=rcyeske@gmail.com \
    /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).