unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Peter Milliken <peter.milliken@gmail.com>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: emacs-pretest-bug@gnu.org, 3662@emacsbugs.donarmstrong.com
Subject: bug#3662: Possible problem with ido-completing-read
Date: Thu, 25 Jun 2009 05:45:11 +1000	[thread overview]
Message-ID: <791153ba0906241245i7df59c39u49d8f356a4c7325b@mail.gmail.com> (raw)
In-Reply-To: <874ou6xg5h.fsf@escher.local.home>

[-- Attachment #1: Type: text/plain, Size: 2038 bytes --]

Thanks Steve - that allows it to work.
Although the description for 'ido-mode is "Toggle ido speed-ups on or
off..."

So maybe if I waited a year or two ("speed-ups" must be off by default) then
I would have eventually received the correct prompt/behaviour? :-)

Obviously invoking ido-mode has some undescribed side-effect that allows the
completing-read to  work. Hopefully somebody will either fix this problem or
put in a description in ido-completing-read that you have to turn on
speed-ups first!

Thanks greatly - I can now get my original defun working! :-)

Peter

On Wed, Jun 24, 2009 at 5:08 PM, Stephen Berman <stephen.berman@gmx.net>wrote:

> On Wed, 24 Jun 2009 07:37:42 +1000 Peter Milliken <
> peter.milliken@gmail.com> wrote:
>
> > This bug is also present in Emacs 22.3. I am attempting to use
> > ido-completing-read in a defun and the function "hangs" at the prompt
> > i.e. it does no completion at all, it will not allow me to cancel the
> > command, or accept a string typed in followed by RET.
> >
> > I have produced a small test function to attempt to minimise possible
> > problems on my part:
> >
> > (defun test ()
> >   (interactive)
> >   (let ((a)(d))
> >     (setq d '("abc" "xyz" "abe" "def"))
> >     (setq a (ido-completing-read "prompt: " d))))
> >
> > My *understanding* of reading the defun documentation is that I should
> > be able to type "a<TAB>" (at the prompt) and have a completion list of
> > "abc" and "abe" offered. But this does not happen, all I get is "a
> > TAB". If I hit C-g nothing happens, the prompt line remains at the
> > command line.
>
> I get this behavior as well (with GNU Emacs 23.1.50.1
> (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-06-23 on escher).
> However, if I add `(ido-mode 1)' before the first setq, then it works as
> I assume it's supposed to: typing `M-x test' shows "prompt: {abc | xyz |
> abe | def}" in the minibuffer, and then typing `a' (without subsequent
> TAB) shows "prompt: a[b] {abc | abe}", and `C-g' quits the minibuffer.
>
> Steve Berman
>

[-- Attachment #2: Type: text/html, Size: 2774 bytes --]

  reply	other threads:[~2009-06-24 19:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-23 21:37 bug#3662: Possible problem with ido-completing-read Peter Milliken
2009-06-24  7:08 ` Stephen Berman
2009-06-24 19:45   ` Peter Milliken [this message]
2009-06-24 22:57     ` Lennart Borgman
2010-12-04 11:42 ` Leo

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=791153ba0906241245i7df59c39u49d8f356a4c7325b@mail.gmail.com \
    --to=peter.milliken@gmail.com \
    --cc=3662@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=stephen.berman@gmx.net \
    /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).