Subject: bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 17 Apr 2018 22:57:29 +0200

Tim Landscheidt <[email-masked]> writes:

> (Under Fedora 26 and X, also with master,) to reproduce:
>
> - "emacs -Q",
> - C-h i for *info* buffer,
> - g for "Go to node:",
> - (does-not-exist) RET.
>
> Result:
>
> - Mini buffer says: "Info file does-not-exist does not
>   exist",
> - then switches back to "Go to node: (does-not-exist)",
> - but cursor is put in *info* buffer, thus requiring to C-x
>   o to reenter mini buffer to correct (or abort).

Utterly weird.  I've tried to debug this, and the error is in

(Info-read-node-name "Go to node: ")

If you type "foo", then point does not move to the *info* buffer.  If
you type "(foo)", then point does move to the *info* buffer.

It seems like it's this code

         (lambda (string pred action)
           (complete-with-action
            action
            (Info-build-node-completions (Info-find-file file1))
            string pred))

that somehow (when `Info-find-file' raises a user-error pops to the
*info* buffer...  somehow...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no