[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Org and Hyperbole
From: |
David Masterson |
Subject: |
Re: Org and Hyperbole |
Date: |
Wed, 22 Jun 2022 20:46:48 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Bill Burdick <bill.burdick@gmail.com> writes:
> Sure:
>
> (defun bill/restore-calc-point (result)
> (when bill/calc-point
> (goto-char bill/calc-point)
> (setq bill/calc-point nil))
> result)
>
> (advice-add 'hmouse-function :filter-return 'bill/restore-calc-point)
>
> If my recalc function matches, it sets bill/restore-calc-point to a marker
> like this:
>
> (setq bill/calc-point (make-marker))
>
> Since it's normally nil, the advice normally just ignores it.
Thanks. I wanted to learn more about advising functions.
--
David Masterson
Re: Org and Hyperbole, Uwe Brauer, 2022/06/20
Re: Org and Hyperbole, Bill Burdick, 2022/06/20
Re: Org and Hyperbole, indieterminacy, 2022/06/20
Re: Org and Hyperbole, David Masterson, 2022/06/20