From: Federico Beffa <beffa@ieee.org>
To: emacs-devel@gnu.org
Subject: xscheme minibuffer bug
Date: Tue, 29 Dec 2015 11:34:36 +0100 [thread overview]
Message-ID: <CAKrPhPOQkMHjQFAjJk00RT0D_Xp3bhyEVPg+tc0tZzjTPPCy3A@mail.gmail.com> (raw)
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
next reply other threads:[~2015-12-29 10:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-29 10:34 Federico Beffa [this message]
2015-12-29 17:02 ` xscheme minibuffer bug John Wiegley
2015-12-29 23:12 ` Federico Beffa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKrPhPOQkMHjQFAjJk00RT0D_Xp3bhyEVPg+tc0tZzjTPPCy3A@mail.gmail.com \
--to=beffa@ieee.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).