all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Weiner <rsw@gnu.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Suggestion to add clickable text activation function to Emacs
Date: Thu, 28 Sep 2017 13:42:15 -0400	[thread overview]
Message-ID: <CA+OMD9j5+zP5Ask71EVOnq4kHha7XbnOHajOdEKKvSjH6Zicvw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

Emacs allows for the definition of buffer regions that represent "clickable
text", see "(elisp)Clickable Text".  One type of clickable text is a button
which can be programmatically activated (have its action executed) with the
push-button function.

But there does not seem to be a function to programmatically activate other
types of clickable text.  This is a suggestion that such a function be
added to Emacs.  It would be similar to push-button but would account for
all the ways clickable text can be activated.  Right now it appears that
non-button clickable text can be activated essentially only interactively,
e.g. with a press of RET or mouse-2 or invocation of their key bindings.
But that is only one of many possible ways of activating clickable text.

There is a function, mouse-on-link-p, that determines if the given position
is within clickable text, but there is no corresponding activation function.

Bob

[-- Attachment #2: Type: text/html, Size: 1567 bytes --]

             reply	other threads:[~2017-09-28 17:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28 17:42 Robert Weiner [this message]
2017-09-29 16:27 ` Suggestion to add clickable text activation function to Emacs Eli Zaretskii
2017-09-29 16:43   ` Robert Weiner
2017-09-29 18:01     ` Eli Zaretskii

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=CA+OMD9j5+zP5Ask71EVOnq4kHha7XbnOHajOdEKKvSjH6Zicvw@mail.gmail.com \
    --to=rsw@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rswgnu@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 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.