Subject: Re: bug#23567: find-function-search-for-symbol of find-func.el leaves point moved but should not

From: Robert Weiner <[email-masked]>
Date: Mon, 23 May 2016 13:53:23 -0400

On Thu, May 19, 2016 at 7:47 PM, Dmitry Gutov <[email-masked]> wrote:

> Hi Robert,
>
> On 05/17/2016 10:51 PM, Robert Weiner wrote:
>
> 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.
>>
>
> Could you please describe a step-by-step scenario illustrating such
> problem? Preferably starting with 'emacs -Q'.
>

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.

If you ever need a test case for this, the following code should show the
definition of outline-show-all in only the upper window but when the bug
existed, both windows would be scrolled to its definition.

(progn
  (delete-other-windows)
  (find-library "outline")
  (display-buffer-pop-up-window "outline.el.gz" nil)
  (find-function-search-for-symbol 'outline-show-all nil "outline"))