From: Robert Weiner <rsw@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Suggestion to add before and after hooks to posn-set-point.
Date: Mon, 18 Sep 2017 23:07:11 -0400 [thread overview]
Message-ID: <CA+OMD9ggpWsa2dgnQXJsXaBLzw7kU+UobQwS4QCiKASjyOk0BQ@mail.gmail.com> (raw)
In-Reply-To: <jwvshfj77p3.fsf-monnier+gmane.emacs.devel@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]
On Mon, Sep 18, 2017 at 10:21 PM, Stefan Monnier <monnier@iro.umontreal.ca>
wrote:
> > It seems as of Emacs 25, there are no hooks in posn-set-point to do
> > something custom before or after point has been set/moved.
>
> There are various ways to do things very similar to what posn-set-point
> does, so a hook on this function seems rather odd to me: it will only
> catch some window selections and some point movements.
>
> IOW I find it difficult to characterize when these hooks will be run
> (except with the trivial characterization that they're run when
>
> posn-set-point is run, which is not very meaningful since no command is
>
> documented to use this function).
>
FYI, the initial desire for these hooks came from wanting to do something
whenever the mouse set point.
Then I thought it would be more useful if it covered any interactive
setting of point, which led to posn-set-point
(called by mouse-set-point). If there are better ways to do this, let's
discuss them.
Bob
[-- Attachment #2: Type: text/html, Size: 2642 bytes --]
prev parent reply other threads:[~2017-09-19 3:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-18 22:32 Suggestion to add before and after hooks to posn-set-point Robert Weiner
2017-09-19 2:21 ` Stefan Monnier
2017-09-19 3:07 ` Robert Weiner [this message]
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+OMD9ggpWsa2dgnQXJsXaBLzw7kU+UobQwS4QCiKASjyOk0BQ@mail.gmail.com \
--to=rsw@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--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.