bug#3662: Possible problem with ido-completing-read

Peter Milliken <[email protected]>
Newsgroups gmane.emacs.bugs,gmane.emacs.pretest.bugs
Message-ID <[email protected]>
--text follows this line--

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email protected] mailing
list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

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 compiled the above with debug on and received the
following trace when I hit C-g:

Debugger entered--Lisp error: (quit)
  apply(debug error (quit))
  edebug(error (quit))
  signal(quit nil)
  edebug-signal(quit nil)
  signal(quit nil)
  keyboard-quit()
  call-interactively(keyboard-quit nil nil)
  completing-read("prompt: " (("dummy" . 1)) nil nil nil nil)
  byte-code("   \" lj\n & " [item prompt ido-text-init history
completing-read ido-make-prompt (("dummy" . 1)) nil] 7)
  ido-read-internal(list "prompt: " nil nil nil nil)
  ido-completing-read("prompt: " ("abc" "xyz" "abe" "def"))
  (edebug-after (edebug-before 4) 6 (ido-completing-read "prompt: "
(edebug-after 0 5 d)))
  (setq a (edebug-after (edebug-before 4) 6 (ido-completing-read "prompt: "
...)))
  (edebug-after (edebug-before 3) 7 (setq a (edebug-after ... 6 ...)))
  (let ((a) (d)) (edebug-after (edebug-before 1) 2 (setq d ...))
(edebug-after (edebug-before 3) 7 (setq a ...)))
  (edebug-after (edebug-before 0) 8 (let (... ...) (edebug-after ... 2 ...)
(edebug-after ... 7 ...)))
  (lambda nil (edebug-after (edebug-before 0) 8 (let ... ... ...)))()
  edebug-enter(test nil (lambda nil (edebug-after (edebug-before 0) 8 (let
... ... ...))))
  edebug-enter(test nil (lambda nil (edebug-after (edebug-before 0) 8 (let
... ... ...))))
  test()
  call-interactively(test t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
c:/emacs/etc/DEBUG for instructions.


In GNU Emacs 23.0.95.1 (i386-mingw-nt5.1.2600)
 of 2009-06-20 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENA
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  show-paren-mode: t
  desktop-save-mode: t
  recentf-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

C-u <escape> C-x <escape> x t e s t <return> g a <tab>
C-g <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <help-menu> <se
nd-emacs-bug-report>

Recent messages:
Local value of py-indent-offset set to 2
Using the CPython shell
Fill column set to 80 (was 70) [9 times]
Wrote c:/usr/local/.emacs.desktop.lock
Desktop: 51 buffers restored.
Loading c:/usr/local/.session...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Edebug: test
Go...
Entering debugger...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.