all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer
@ 2018-01-12 18:26 Tim Landscheidt
  2018-04-17 20:57 ` Lars Ingebrigtsen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Tim Landscheidt @ 2018-01-12 18:26 UTC (permalink / raw)
  To: 30091

(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*.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer
  2018-01-12 18:26 bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer Tim Landscheidt
@ 2018-04-17 20:57 ` Lars Ingebrigtsen
  2018-04-17 21:04 ` Lars Ingebrigtsen
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-17 20:57 UTC (permalink / raw)
  To: Tim Landscheidt; +Cc: 30091

Tim Landscheidt <tim@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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer
  2018-01-12 18:26 bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer Tim Landscheidt
  2018-04-17 20:57 ` Lars Ingebrigtsen
@ 2018-04-17 21:04 ` Lars Ingebrigtsen
  2018-04-17 21:08 ` Lars Ingebrigtsen
  2018-04-17 21:15 ` Lars Ingebrigtsen
  3 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-17 21:04 UTC (permalink / raw)
  To: Tim Landscheidt; +Cc: 30091

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






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer
  2018-01-12 18:26 bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer Tim Landscheidt
  2018-04-17 20:57 ` Lars Ingebrigtsen
  2018-04-17 21:04 ` Lars Ingebrigtsen
@ 2018-04-17 21:08 ` Lars Ingebrigtsen
  2018-04-17 21:15 ` Lars Ingebrigtsen
  3 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-17 21:08 UTC (permalink / raw)
  To: Tim Landscheidt; +Cc: 30091

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






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer
  2018-01-12 18:26 bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer Tim Landscheidt
                   ` (2 preceding siblings ...)
  2018-04-17 21:08 ` Lars Ingebrigtsen
@ 2018-04-17 21:15 ` Lars Ingebrigtsen
  3 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-17 21:15 UTC (permalink / raw)
  To: Tim Landscheidt; +Cc: 30091

I've now pushed a fix in Emacs 27.1.

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






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-04-17 21:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-12 18:26 bug#30091: 25.3; Trying to go to non-existent info file puts the cursor in *info* buffer, not mini buffer Tim Landscheidt
2018-04-17 20:57 ` Lars Ingebrigtsen
2018-04-17 21:04 ` Lars Ingebrigtsen
2018-04-17 21:08 ` Lars Ingebrigtsen
2018-04-17 21:15 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.