all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Suggestion to add before and after hooks to posn-set-point.
Date: Mon, 18 Sep 2017 22:21:05 -0400	[thread overview]
Message-ID: <jwvshfj77p3.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: CA+OMD9j_hS-Dz3_esY4y7sEV96GEADszGB3wVJgygjptb=uR8w@mail.gmail.com

> 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).


        Stefan




  reply	other threads:[~2017-09-19  2:21 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 [this message]
2017-09-19  3:07   ` Robert Weiner

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=jwvshfj77p3.fsf-monnier+gmane.emacs.devel@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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.
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.