all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Slass <miknrene@drizzle.com>
Subject: Re: emacs-w3m copy url under point
Date: Sat, 28 Sep 2002 02:49:59 GMT	[thread overview]
Message-ID: <m365wqesix.fsf@localhost.localdomain> (raw)
In-Reply-To: m2bs6jp9hh.fsf@localhost.localdomain

happy@vole.com (mr.sparkle) writes:

>Is there any way in emacs-w3m to copy the url under point? It shows up
>in the minibuffer, so a method of copying minibuffer contents would
>work, if no direct way to do it from emacs-w3m.


Try this:  (VERY lightly tested)

(defun w3m-copy-current-anchor-as-kill ()
  "Copy the link (as a string) under the point to the kill ring"
  (interactive)
  (let ((link (w3m-anchor)))
    (if (not link)
        (message "The point is not over an anchor.")
      (kill-new link)
      (message "Copied \"%s\" to kill-ring." link))))

Bind to your favorite key sequence.



-- 
Mike Slass

  reply	other threads:[~2002-09-28  2:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-27 18:34 emacs-w3m copy url under point mr.sparkle
2002-09-28  2:49 ` Michael Slass [this message]
2002-09-28  6:59   ` Shiro Takeda
2002-09-29 22:32     ` mr.sparkle

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=m365wqesix.fsf@localhost.localdomain \
    --to=miknrene@drizzle.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.