GNU bug report logs - #23567
find-function-search-for-symbol of find-func.el leaves point moved but should not

Previous Next

Package: emacs;

Reported by: Robert Weiner <rswgnu <at> gmail.com>

Date: Wed, 18 May 2016 01:41:02 UTC

Severity: normal

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Robert Weiner <rswgnu <at> gmail.com>
To: 23567 <at> debbugs.gnu.org
Subject: bug#23567: find-function-search-for-symbol of find-func.el leaves point moved but should not
Date: Tue, 17 May 2016 15:51:40 -0400
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]

This bug report was last modified 9 years and 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.