From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Suggestion to add before and after hooks to posn-set-point. Date: Mon, 18 Sep 2017 22:21:05 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505787719 15526 195.159.176.226 (19 Sep 2017 02:21:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 02:21:59 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 19 04:21:54 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1du8Ac-0003mF-Hx for ged-emacs-devel@m.gmane.org; Tue, 19 Sep 2017 04:21:54 +0200 Original-Received: from localhost ([::1]:39742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1du8Aj-00078U-RF for ged-emacs-devel@m.gmane.org; Mon, 18 Sep 2017 22:22:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1du8A1-000777-Ap for emacs-devel@gnu.org; Mon, 18 Sep 2017 22:21:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1du89x-0002Rq-9w for emacs-devel@gnu.org; Mon, 18 Sep 2017 22:21:17 -0400 Original-Received: from [195.159.176.226] (port=34665 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1du89x-0002RX-2n for emacs-devel@gnu.org; Mon, 18 Sep 2017 22:21:13 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1du89n-0001TV-1P for emacs-devel@gnu.org; Tue, 19 Sep 2017 04:21:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:IJ8ySTvVz9vQfcEOedP5Q1519dU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218501 Archived-At: > 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