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

Previous Next

Package: emacs;

Reported by: Tim Landscheidt <tim <at> tim-landscheidt.de>

Date: Fri, 12 Jan 2018 18:28:02 UTC

Severity: minor

Tags: confirmed, fixed

Found in version 25.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30091 in the body.
You can then email your comments to 30091 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#30091; Package emacs. (Fri, 12 Jan 2018 18:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tim Landscheidt <tim <at> tim-landscheidt.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 12 Jan 2018 18:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tim Landscheidt <tim <at> tim-landscheidt.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.3; Trying to go to non-existent info file puts the cursor in *info*
 buffer, not mini buffer
Date: Fri, 12 Jan 2018 18:26:57 +0000
(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).

Expected result:

- The cursor should be in the mini buffer, not in *info*.




Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 17 Apr 2018 20:56:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30091; Package emacs. (Tue, 17 Apr 2018 20:58:01 GMT) Full text and rfc822 format available.

Message #10 received at 30091 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tim Landscheidt <tim <at> tim-landscheidt.de>
Cc: 30091 <at> debbugs.gnu.org
Subject: Re: bug#30091: 25.3;
 Trying to go to non-existent info file puts the cursor in *info*
 buffer, not mini buffer
Date: Tue, 17 Apr 2018 22:57:29 +0200
Tim Landscheidt <tim <at> tim-landscheidt.de> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30091; Package emacs. (Tue, 17 Apr 2018 21:05:02 GMT) Full text and rfc822 format available.

Message #13 received at 30091 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tim Landscheidt <tim <at> tim-landscheidt.de>
Cc: 30091 <at> debbugs.gnu.org
Subject: Re: bug#30091: 25.3;
 Trying to go to non-existent info file puts the cursor in *info*
 buffer, not mini buffer
Date: Tue, 17 Apr 2018 23:04:46 +0200
OK, one step further.  The following pops to the *info* buffer:

(completion-table-with-context "(foo)" (lambda (string pred action) (complete-with-action action (Info-build-node-completions (Info-find-file "foo")))) nil nil nil)

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





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30091; Package emacs. (Tue, 17 Apr 2018 21:09:01 GMT) Full text and rfc822 format available.

Message #16 received at 30091 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tim Landscheidt <tim <at> tim-landscheidt.de>
Cc: 30091 <at> debbugs.gnu.org
Subject: Re: bug#30091: 25.3;
 Trying to go to non-existent info file puts the cursor in *info*
 buffer, not mini buffer
Date: Tue, 17 Apr 2018 23:08:03 +0200
OK, here's the bug:

	  ;; If there is no previous Info file, go to the directory.
	  (unless Info-current-file
	    (Info-directory))
	  (user-error "Info file %s does not exist" filename)))

Info-current-file is nil here, so it helpfully pops us back to the
*info* buffer before displaying the error.  I'm not sure what the right
fix here is...

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





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30091; Package emacs. (Tue, 17 Apr 2018 21:16:01 GMT) Full text and rfc822 format available.

Message #19 received at 30091 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tim Landscheidt <tim <at> tim-landscheidt.de>
Cc: 30091 <at> debbugs.gnu.org
Subject: Re: bug#30091: 25.3;
 Trying to go to non-existent info file puts the cursor in *info*
 buffer, not mini buffer
Date: Tue, 17 Apr 2018 23:15:07 +0200
I've now pushed a fix in Emacs 27.1.

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





Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 17 Apr 2018 21:16:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 30091 <at> debbugs.gnu.org and Tim Landscheidt <tim <at> tim-landscheidt.de> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 17 Apr 2018 21:16:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 16 May 2018 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 35 days ago.

Previous Next


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