gnu.emacs.vm.info
[Top] [All Lists]

Re: Help figuring out how clicking on mouse generates action on url...

Subject: Re: Help figuring out how clicking on mouse generates action on url...
From: Ralf Fassel <ralfixx@xxxxxx>
Date: Thu, 03 Jul 2008 11:10:02 +0200
Newsgroups: gnu.emacs.vm.info

* blueman <NOSPAM@xxxxxxxxxx>
| I am writing some code that will take various actions when the
| cursor (point) is over a url. Basically, I need to write an
| (interactive) function that will figure out the URL that is being
| pointed to so that I can then act on that url.

You may want to check how

    `goto-address' is an interactive Lisp function
      -- loaded from "goto-addr"
    (goto-address &optional ARG)

    Documentation:
    Sets up goto-address functionality in the current buffer.
    Allows user to use mouse/keyboard command to click to go to a URL
    or to send e-mail.
    By default, goto-address binds to mouse-2 and C-c RET.

    Also fontifies the buffer appropriately (see `goto-address-fontify-p' and
    `goto-address-highlight-p' for more information).

does it...

R'

<Prev in Thread] Current Thread [Next in Thread>