unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23567: find-function-search-for-symbol of find-func.el leaves point moved but should not
@ 2016-05-17 19:51 Robert Weiner
  2016-05-19 23:47 ` Dmitry Gutov
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Weiner @ 2016-05-17 19:51 UTC (permalink / raw)
  To: 23567

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

find-function-search-for-symbol in find-func.el is called for its
return value and not for side-effects but presently it moves point
around in the buffers it affects.  It needs some save-excursion
protection.  This is true for the most recent 25.1 release I looked at
and I don't think any changes have been made to it since then.

One example of where this causes a problem is in xref-location-marker
of elisp-mode.el.  Again, that is called simply to return the marker
but because it calls find-function-search-for-symbol, it can move
point and cause other problems.

It would be best if someone familiar with this first function made the
change to ensure it is correct.

[-- Attachment #2: Type: text/html, Size: 860 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-23 21:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-17 19:51 bug#23567: find-function-search-for-symbol of find-func.el leaves point moved but should not Robert Weiner
2016-05-19 23:47 ` Dmitry Gutov
2016-05-23 17:53   ` Robert Weiner
2016-05-23 21:17     ` Dmitry Gutov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).