GNU bug report logs -
#50642
27.2; autoload xref-pulse-momentarily
Previous Next
Reported by: Howard Melman <hmelman <at> gmail.com>
Date: Fri, 17 Sep 2021 14:44:02 UTC
Severity: normal
Found in version 27.2
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 17.09.2021 17:43, Howard Melman wrote:
> I'm not sure about this but can xref-pulse-momentarily be
> autoloaded?
>
> I'm using consult and it has a consult-after-jump-hook which
> recommends xref-pulse-momentarily as something you may want
> to use in it. I set it and xref-after-jump-hook to:
> '(reposition-window xref-pulse-momentarily).
>
> It works great, but if I use consult before xref I get the error:
> run-hooks: Symbol's function definition is void: xref-pulse-momentarily
> If I add an autoload call myself it does not error.
>
> I looked but didn't find a more suitable function to use.
> It seems like pulse.el should define a function suitable for
> use in a hook, but in its absense xref-pulse-momentarily
> does seem like the best option (though I couldn't follow its
> implementation).
Well, um. I don't really mind but xref-pulse-momentarily was designed to
pulse after a jump to an xref location. That's why it refers to
xref--current-item in its implementation.
It does fall back to pulsing the whole line, so I suppose it can be
useful in other cases too.
But maybe Counsel wants to provide its own version of this function? It
can call xref-pulse-momentarily after xref navigations, but maybe do
some more useful fallbacks for other commands? I'm not sure which other
kinds of jumps consult-after-jump-hook also handles.
This bug report was last modified 3 years and 330 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.