all messages for Emacs-related lists mirrored at yhetil.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

* Re: xscheme minibuffer bug
  2015-12-29 10:34 xscheme minibuffer bug Federico Beffa
@ 2015-12-29 17:02 ` John Wiegley
  2015-12-29 23:12   ` Federico Beffa
  0 siblings, 1 reply; 3+ messages in thread
From: John Wiegley @ 2015-12-29 17:02 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Eli Zaretskii, emacs-devel

>>>>> Federico Beffa <beffa@ieee.org> writes:

> 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?

Hi Federico,

Can you submit this same text through M-x report-emacs-bug, so that we can
discuss under a tracking number?

Side-question for Eli: Is there a way to create a bug on behalf of another
user, such that they appear as the reporter? Or is it just forwarding to
debbugs and using the control address?

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2



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

* Re: xscheme minibuffer bug
  2015-12-29 17:02 ` John Wiegley
@ 2015-12-29 23:12   ` Federico Beffa
  0 siblings, 0 replies; 3+ messages in thread
From: Federico Beffa @ 2015-12-29 23:12 UTC (permalink / raw)
  To: Federico Beffa, emacs-devel, Eli Zaretskii

On Tue, Dec 29, 2015 at 6:02 PM, John Wiegley <jwiegley@gmail.com> wrote:
> Can you submit this same text through M-x report-emacs-bug, so that we can
> discuss under a tracking number?

OK, here it is:

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22265

Regards,
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 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.