From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Milliken Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3662: Possible problem with ido-completing-read Date: Wed, 24 Jun 2009 07:37:42 +1000 Message-ID: <791153ba0906231437j7de0768ag1523ff93bfeabb12@mail.gmail.com> Reply-To: Peter Milliken , 3662@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016363b8700f1ffa7046d0acc75 X-Trace: ger.gmane.org 1245814342 7562 80.91.229.12 (24 Jun 2009 03:32:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2009 03:32:22 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 05:32:15 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MJJDZ-0004IW-A2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jun 2009 05:32:15 +0200 Original-Received: from localhost ([127.0.0.1]:39567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJJDY-0001uk-NM for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 23:32:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJDzf-0007xt-Rq for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 17:57:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJDza-0007p0-4s for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 17:57:30 -0400 Original-Received: from [199.232.76.173] (port=43150 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJDzZ-0007oe-WF for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 17:57:26 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54232) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MJDzZ-0003Jq-04 for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 17:57:25 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5NLvMdj030042; Tue, 23 Jun 2009 14:57:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5NLj4ls027605; Tue, 23 Jun 2009 14:45:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Peter Milliken Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 23 Jun 2009 21:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3662 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124579307426555 (code B ref -1); Tue, 23 Jun 2009 21:45:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 23 Jun 2009 21:37:54 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5NLbkMv026537 for ; Tue, 23 Jun 2009 14:37:48 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:50225 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MJDgX-00053t-Pv for emacs-pretest-bug@gnu.org; Tue, 23 Jun 2009 17:37:46 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MJDgW-0007yp-BW for emacs-pretest-bug@gnu.org; Tue, 23 Jun 2009 17:37:45 -0400 Original-Received: from mail-qy0-f185.google.com ([209.85.221.185]:59943) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJDgV-0007yD-KF for emacs-pretest-bug@gnu.org; Tue, 23 Jun 2009 17:37:44 -0400 Original-Received: by qyk15 with SMTP id 15so539198qyk.14 for ; Tue, 23 Jun 2009 14:37:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ENCywUCBn6WSlqdG3C5TxMRQGEiI1aOCxSm/R96h2ZY=; b=NQCKPiuF7XEDolsTicwtiQlbQEewmwUyKUrM9LsFcBxILxVAHIi+j4tm+G4H346j4X cbxmJbVOQiN7bYweimKuVO6SIpMa8mSXR+AnUowd8w2HuqKg7XSfhIEf5Xd7mOD/aa0c gT2dnt3r1gWxoev3vFcdIw7aqjisSGXdJCW3Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=UCeN4e0A7fei+WRscUPszHDbUV9Lz+G8VKlMcWXjX5CpAEBf68lMTw9L40kMOhoUUS JgUiO3H35kUG6eGnnZxkKRuD2m3JGsTEoKjgfoX7YNH9a9YdC/NferkU7CMqJ4SL8Xxg HTWLK0jv0llOsZoVPbt+d5YNiKR/jpXO0aHX0= Original-Received: by 10.220.74.83 with SMTP id t19mr875293vcj.98.1245793062354; Tue, 23 Jun 2009 14:37:42 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 23 Jun 2009 17:57:30 -0400 X-Mailman-Approved-At: Tue, 23 Jun 2009 23:31:56 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28938 gmane.emacs.pretest.bugs:24685 Archived-At: --0016363b8700f1ffa7046d0acc75 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable --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 emacs-pretest-bug@gnu.org 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" (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(" =08 \" =C7=89\n =12=0B&=06 " [item prompt ido-text-init hist= ory 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 C-x x t e s t g a C-g 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... --0016363b8700f1ffa7046d0acc75 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
--text follows this line--

Please write in En= glish if possible, because the Emacs maintainers
usually do not h= ave translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org 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 "han= gs" 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 possi= ble
problems on my part:

(defun test ()<= /div>
=C2=A0=C2=A0(interactive)
=C2=A0=C2=A0(let ((a)(d))=C2=A0
=C2=A0=C2=A0 =C2=A0(setq d '("abc" "xyz" &q= uot;abe" "def"))
=C2=A0=C2=A0 =C2=A0(setq a (ido-c= ompleting-read "prompt: " d))))

My *understanding* of reading the defun documentation is tha= t I should
be able to type "a<TAB>" (at the promp= t) and have a completion list of
"abc" and "abe&qu= ot; offered. But this does not happen, all I get is "a
TAB". If I hit C-g nothing happens, the prompt line remains at th= e
command line. I compiled the above with debug on and received t= he
following trace when I hit C-g:

Debug= ger entered--Lisp error: (quit)
=C2=A0=C2=A0apply(debug error (quit))
=C2=A0=C2=A0edebug(err= or (quit))
=C2=A0=C2=A0signal(quit nil)
=C2=A0=C2=A0ede= bug-signal(quit nil)
=C2=A0=C2=A0signal(quit nil)
=C2= =A0=C2=A0keyboard-quit()
=C2=A0=C2=A0call-interactively(keyboard-= quit nil nil)
=C2=A0=C2=A0completing-read("prompt: " (("dummy" .= 1)) nil nil nil nil)
=C2=A0=C2=A0byte-code(" =C2=A0=08 \" =C7=89\= n =12=0B&=06 " [item prompt ido-text-init history completing-read = ido-make-prompt (("dummy" . 1)) nil] 7)
=C2=A0=C2=A0ido-read-internal(list "prompt: " nil nil nil ni= l)
=C2=A0=C2=A0ido-completing-read("prompt: " ("ab= c" "xyz" "abe" "def"))
=C2=A0= =C2=A0(edebug-after (edebug-before 4) 6 (ido-completing-read "prompt: = " (edebug-after 0 5 d)))
=C2=A0=C2=A0(setq a (edebug-after (edebug-before 4) 6 (ido-completing-= read "prompt: " ...)))
=C2=A0=C2=A0(edebug-after (edebu= g-before 3) 7 (setq a (edebug-after ... 6 ...)))
=C2=A0=C2=A0(let= ((a) (d)) (edebug-after (edebug-before 1) 2 (setq d ...)) (edebug-after (e= debug-before 3) 7 (setq a ...)))
=C2=A0=C2=A0(edebug-after (edebug-before 0) 8 (let (... ...) (edebug-a= fter ... 2 ...) (edebug-after ... 7 ...)))
=C2=A0=C2=A0(lambda ni= l (edebug-after (edebug-before 0) 8 (let ... ... ...)))()
=C2=A0= =C2=A0edebug-enter(test nil (lambda nil (edebug-after (edebug-before 0) 8 (= let ... ... ...))))
=C2=A0=C2=A0edebug-enter(test nil (lambda nil (edebug-after (edebug-be= fore 0) 8 (let ... ... ...))))
=C2=A0=C2=A0test()
=C2= =A0=C2=A0call-interactively(test t nil)
=C2=A0=C2=A0execute-exten= ded-command(nil)
=C2=A0=C2=A0call-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:
=C2=A0=C2=A0 =C2=A0`bt full' and `xba= cktrace'.
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)
=C2=A0of = 2009-06-20 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
=C2=A0=C2=A0value of $LC_ALL: nil
=C2=A0=C2=A0value of $LC_COLLATE: nil
=C2=A0=C2=A0value of $LC_CT= YPE: nil
=C2=A0=C2=A0value of $LC_MESSAGES: nil
=C2=A0= =C2=A0value of $LC_MONETARY: nil
=C2=A0=C2=A0value of $LC_NUMERIC= : nil
=C2=A0=C2=A0value of $LC_TIME: nil
=C2=A0=C2=A0value of $LANG: ENA
=C2=A0=C2=A0value of $XMODIFIERS:= nil
=C2=A0=C2=A0locale-coding-system: cp1252
=C2=A0=C2= =A0default-enable-multibyte-characters: t

Major mo= de: Emacs-Lisp

Minor modes in effect:
=C2=A0=C2=A0show-paren-mode: t
= =C2=A0=C2=A0desktop-save-mode: t
=C2=A0=C2=A0recentf-mode: t
=C2=A0=C2=A0tooltip-mode: t
=C2=A0=C2=A0tool-bar-mode: t
=C2=A0=C2=A0mouse-wheel-mode: t
=C2=A0=C2=A0menu-bar-mode= : t
=C2=A0=C2=A0file-name-shadow-mode: t
=C2=A0=C2=A0global-font= -lock-mode: t
=C2=A0=C2=A0font-lock-mode: t
=C2=A0=C2= =A0blink-cursor-mode: t
=C2=A0=C2=A0global-auto-composition-mode:= t
=C2=A0=C2=A0auto-composition-mode: t
=C2=A0=C2=A0auto-encryption-mode: t
=C2=A0=C2=A0auto-compression-= mode: t
=C2=A0=C2=A0column-number-mode: t
=C2=A0=C2=A0l= ine-number-mode: t

C-u <escape> C-x <esca= pe> x t e s t <return> g a <tab>=C2=A0
C-g <help-echo> <help-echo> <help-echo> <help-ech= o>=C2=A0
<help-echo> <help-echo> <help-echo>= <help-echo> <help-echo>=C2=A0
<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.= ..
--0016363b8700f1ffa7046d0acc75--