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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#23567: closed (find-function-search-for-symbol of
 find-func.el leaves point moved but should not)
Date: Mon, 23 May 2016 21:18:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 24 May 2016 00:17:01 +0300
with message-id <ec93ad4a-8b31-61ba-0541-18633c0b27fd <at> yandex.ru>
and subject line Re: bug#23567: find-function-search-for-symbol of find-func.el leaves point moved but should not
has caused the debbugs.gnu.org bug report #23567,
regarding find-function-search-for-symbol of find-func.el leaves point moved but should not
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
23567: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23567
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Robert Weiner <rswgnu <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 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 3 (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 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Robert Weiner <rswgnu <at> gmail.com>
Cc: 23567-done <at> debbugs.gnu.org
Subject: Re: bug#23567: find-function-search-for-symbol of find-func.el leaves
 point moved but should not
Date: Tue, 24 May 2016 00:17:01 +0300
On 05/23/2016 08:53 PM, Robert Weiner wrote:

> As of Emacs 25.0.94, I can no longer replicate the problem, so some
> updates must have fixed it.  Great.  Please close this issue.

Good to hear, closing. And that why we usually ask for the reproduction 
scenario in bug reports, not just "this code doesn't look right to me".

I don't think any of the recent changes fixed this. Even as we discussed 
this issue in private (a couple of weeks ago?), I tried to produce a 
problem scenario, and failed.



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.