unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* xscheme minibuffer bug
@ 2015-12-29 10:34 Federico Beffa
  2015-12-29 17:02 ` John Wiegley
  0 siblings, 1 reply; 3+ messages in thread
From: Federico Beffa @ 2015-12-29 10:34 UTC (permalink / raw)
  To: emacs-devel

Hi,

I use mit-scheme 9.2 with the scheme-mode provided by xscheme in Emacs
24.5.1. I've noticed that there is a problem with the minibuffer. Here
a trivial example:

1. Load 'xscheme' with "(require 'xscheme)" and run the scheme
interpreter with 'run-scheme'.

2. Make a mistake to enter the debugger, say '(+ 1 b)' with 'b' not defined.

3. Tell the debugger you want to define 'b' by entering '(restart 3)'.

4. Now the prompt asks for 'Value to use instead of b:'. The problem
is that if you type a number and press enter it doesn't accept the
input and asks again.

This behavior is controlled by this function:

(defun xscheme-prompt-for-expression-exit ()
  (interactive)
  (if (eq (xscheme-region-expression-p (point-min) (point-max)) 'one)
      (exit-minibuffer)
      (error "input must be a single, complete expression")))

I get the correct behavior if I replace '(point-min)' with
'(minibuffer-prompt-end)'. However, the behavior is only correct if I
load the non-compiled '.el' file. If I byte-compile the file I still
get the problem described above. Any advice on what's going wrong?

Thanks,
Fede



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

end of thread, other threads:[~2015-12-29 23:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-29 10:34 xscheme minibuffer bug Federico Beffa
2015-12-29 17:02 ` John Wiegley
2015-12-29 23:12   ` Federico Beffa

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).