Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Hadron <hadronquark@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: How to copy URL's to clipboard?
Date: Thu, 12 Jul 2007 14:33:49 +0200	[thread overview]
Message-ID: <87odihdcnm.fsf@gmail.com> (raw)
In-Reply-To: <b4mps2xvpi8.fsf@jpl.org>

Katsumi Yamaoka <yamaoka@jpl.org> writes:

>>>>>> Hadron wrote:
>
>> To recap : I would like another w3m function which allows me to
>> "browse-url" (and thus firefox)  for an embedded link. Or is it already
>> there?
>
> Try adding the following snippets to your ~/.emacs-w3m.el file:
>
> (defun my-w3m-view-this-url-with-firefox ()
>   "View the URL of the link under point using Firefox."
>   (interactive)
>   (let ((w3m-goto-article-function 'browse-url-firefox))
>     (w3m-safe-view-this-url)))
>
> (define-key w3m-minor-mode-map "vv" 'my-w3m-view-this-url-with-firefox)
>
> You can change the `vv' key as you like, but it is a good idea to
> use `v'-prefixed keys since Gnus reserves them for user's commands.

Thanks, but is it possible for this function to also work for real
"visible" links e.g

"follow this link : http://www.bbc.co.com" ?

This is the ideal thing - then I have one "browse with firefox" key for
both link types. I assume the code would first check if its a visible
link and if not then assume a hidden link processable with
w3m-safe-view-this-url.

Also, whats the "vv" key? If I hit v, it invokes the usual w3m-bookmark
with the first v.

Thanks for your feedback.

  reply	other threads:[~2007-07-12 12:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-10 13:13 Svend Tollak Munkejord
2007-07-10 22:16 ` Katsumi Yamaoka
2007-07-11  6:51   ` Svend Tollak Munkejord
2007-07-11 15:31   ` Hadron
2007-07-11 22:49     ` Katsumi Yamaoka
2007-07-12  9:34       ` Hadron
2007-07-12 11:18         ` Katsumi Yamaoka
2007-07-12 12:33           ` Hadron [this message]
2007-07-12 23:24             ` Katsumi Yamaoka
2007-07-13  4:24               ` Katsumi Yamaoka
2007-07-15 17:16                 ` Hadron

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

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

  git send-email \
    --in-reply-to=87odihdcnm.fsf@gmail.com \
    --to=hadronquark@gmail.com \
    --cc=info-gnus-english@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.
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 NNTP newsgroup(s).