From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Trent W. Buck" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: 23.0.50; ido-make-file-list error taking substring of "" Date: Sat, 26 Jan 2008 18:35:13 +1100 Message-ID: <20080126073510.GA9301@Clio.twb.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0635013795==" X-Trace: ger.gmane.org 1201332933 1620 80.91.229.12 (26 Jan 2008 07:35:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jan 2008 07:35:33 +0000 (UTC) Cc: rfrancoise@debian.org To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 26 08:35:53 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JIfZw-0001mg-QO for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 08:35:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIfZW-00084Q-DA for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 02:35:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIfZR-00084K-Tq for emacs-devel@gnu.org; Sat, 26 Jan 2008 02:35:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIfZR-000847-9K for emacs-devel@gnu.org; Sat, 26 Jan 2008 02:35:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIfZR-000844-69 for emacs-devel@gnu.org; Sat, 26 Jan 2008 02:35:21 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIfZR-0007rc-2u for emacs-devel@gnu.org; Sat, 26 Jan 2008 02:35:21 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JIfZQ-0004R3-GS for emacs-pretest-bug@gnu.org; Sat, 26 Jan 2008 02:35:20 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JIfZN-0007qh-Ms for emacs-pretest-bug@gnu.org; Sat, 26 Jan 2008 02:35:20 -0500 Original-Received: from ipmail01.adl6.internode.on.net ([203.16.214.146]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIfZM-0007qH-K6 for emacs-pretest-bug@gnu.org; Sat, 26 Jan 2008 02:35:17 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAL5wmkd5LOnP/2dsb2JhbACBWKty X-IronPort-AV: E=Sophos;i="4.25,253,1199626200"; d="asc'?scan'208";a="29418853" Original-Received: from ppp121-44-233-207.lns2.mel4.internode.on.net (HELO Clio.twb.ath.cx) ([121.44.233.207]) by ipmail01.adl6.internode.on.net with ESMTP; 26 Jan 2008 18:05:12 +1030 User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87547 gmane.emacs.pretest.bugs:20756 Archived-At: --===============0635013795== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Please CC me; I'm not subscribed to the list.] Invoking emacs thusly: emacs -Q -nw -eval '(load "ido.el")' -f ido-mode -f toggle-debug-on-erro= r /sudo::/ -eval "(call-interactively 'ido-find-file)" causes the following backtrace. The immediate problem is `ido-make-file-list' trying to take the substring [0,1] of an empty string from its local variable `ido-temp-list'. The same problem seems to occur for other TRAMP methods. This is a duplicate of http://article.gmane.org/gmane.emacs.devel/87509 Debugger entered--Lisp error: (args-out-of-range "" 0 1) substring("" 0 1) (string-equal (substring x 0 1) ".") (if (string-equal (substring x 0 1) ".") x) (lambda (x) (if (string-equal ... ".") x))("") mapcar((lambda (x) (if (string-equal ... ".") x)) ("" "bin/" "boot/" "dev= /" "etc/" "home/" "initrd/" "initrd.img" "lib/" "lost+found/" "media/" "mnt= /" "opt/" "proc/" "root/" "sbin/" "srv/" "sys/" "tmp/" "usr/" "var/" "vmlin= uz")) (delq nil (mapcar (lambda ... ...) ido-temp-list)) (ido-to-end (delq nil (mapcar ... ido-temp-list))) (let ((ido-temp-list ...)) (setq ido-temp-list (sort ido-temp-list ...)) = (unless (ido-is-tramp-root ido-current-directory) (let ... ...)) (ido-to-en= d (delq nil ...)) (if (and default ...) (if ... ... ... ...)) (when ido-sho= w-dot-for-dired (setq ido-temp-list ...) (setq ido-temp-list ...)) (run-hoo= ks (quote ido-make-file-list-hook)) ido-temp-list) ido-make-file-list(nil) (and (not ido-directory-nonreadable) (not ido-directory-too-big) (ido-mak= e-file-list ido-default-item)) (setq ido-ignored-list nil ido-cur-list (and (not ido-directory-nonreadab= le) (not ido-directory-too-big) (ido-make-file-list ido-default-item))) (cond (ido-keep-item-list (setq ido-keep-item-list nil ido-rescan nil)) (= (eq ido-cur-item ...) (setq ido-ignored-list nil ido-cur-list ...)) ((eq id= o-cur-item ...) (setq ido-ignored-list nil ido-cur-list ...)) ((eq ido-cur-= item ...) (setq ido-ignored-list nil ido-cur-list ...)) ((eq ido-cur-item .= =2E.) (setq ido-ignored-list nil ido-cur-list ...)) (t nil)) (while (not done) (ido-trace "\n_LOOP_" ido-text-init) (setq ido-exit nil= ) (setq ido-rescan t) (setq ido-rotate nil) (setq ido-text "") (when ido-se= t-default-item (setq ido-default-item ...) (if ... ...) (ido-trace "new def= ault" ido-default-item) (if ido-default-item ...) (setq ido-set-default-ite= m nil)) (if ido-process-ignore-lists-inhibit (setq ido-process-ignore-lists= nil)) (if (and ido-use-merged-list ... ...) (let ... ... ...)) (cond (ido-= keep-item-list ...) (... ...) (... ...) (... ...) (... ...) (t nil)) (setq = ido-rotate-temp nil) (if ido-process-ignore-lists-inhibit (setq ido-process= -ignore-lists t ido-process-ignore-lists-inhibit nil)) (ido-set-matches) (i= f (and ido-matches ...) (setq ido-try-merged-list t)) (let (... ... ... ...= ... ... ...) (setq ido-exit nil) (setq ido-final-text ...)) (ido-trace "co= mpleting-read" ido-final-text) (if (get-buffer ido-completion-buffer) (kill= -buffer ido-completion-buffer)) (ido-trace "\n_EXIT_" ido-exit) (cond (... = =2E.. nil) (... ...) (... ... nil) (... ...) (... ...) (... ...) (... ... .= =2E.) (... ... ...) (... ...) (t ... ...))) (let ((ido-cur-item item) (ido-entry-buffer ...) (ido-process-ignore-list= s t) (ido-process-ignore-lists-inhibit nil) (ido-set-default-item t) ido-de= fault-item ido-selected ido-final-text (done nil) (icomplete-mode nil) ido-= cur-list ido-ignored-list (ido-rotate-temp nil) (ido-keep-item-list nil) (i= do-use-merged-list nil) (ido-try-merged-list t) (ido-pre-merge-state nil) (= ido-case-fold ido-case-fold) (ido-enable-prefix ido-enable-prefix) (ido-ena= ble-regexp ido-enable-regexp)) (ido-setup-completion-map) (setq ido-text-in= it initial) (setq ido-input-stack nil) (run-hooks (quote ido-setup-hook)) (= while (not done) (ido-trace "\n_LOOP_" ido-text-init) (setq ido-exit nil) (= setq ido-rescan t) (setq ido-rotate nil) (setq ido-text "") (when ido-set-d= efault-item ... ... ... ... ...) (if ido-process-ignore-lists-inhibit ...) = (if ... ...) (cond ... ... ... ... ... ...) (setq ido-rotate-temp nil) (if = ido-process-ignore-lists-inhibit ...) (ido-set-matches) (if ... ...) (let .= =2E. ... ...) (ido-trace "completing-read" ido-final-text) (if ... ...) (id= o-trace "\n_EXIT_" ido-exit) (cond ... ... ... ... ... ... ... ... ... ...)= ) ido-selected) ido-read-internal(file "Find file: " ido-file-history nil nil nil) (setq filename (ido-read-internal item (or prompt "Find file: ") (quote i= do-file-history) (and ... buffer-file-name) nil initial)) (let ((minibuffer-completing-file-name t)) (setq filename (ido-read-inter= nal item ... ... ... nil initial))) (if filename nil (setq ido-saved-vc-hb vc-handled-backends) (let (...) (s= etq filename ...))) (unless filename (setq ido-saved-vc-hb vc-handled-backends) (let (...) (s= etq filename ...))) (let (ido-saved-vc-hb (vc-handled-backends ...) (ido-work-directory-index= -1) (ido-work-file-index -1) (ido-find-literal nil)) (unless filename (set= q ido-saved-vc-hb vc-handled-backends) (let ... ...)) (cond (... ...) (... = =2E..) (... ...) (... ...) (... ...) (... ... ... ... ...) (... ... ...) (.= =2E. ... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ..= =2E ... ... ... ...) (filename ... ... ... ... ... ...))) (let ((ido-current-directory ...) (ido-context-switch-command switch-cmd)= ido-directory-nonreadable ido-directory-too-big filename) (if (or ... ...)= (setq filename t ido-exit ...) (setq ido-directory-nonreadable ... ido-dir= ectory-too-big ...)) (when (and ... ...) (let ... ... ...)) (let (ido-saved= -vc-hb ... ... ... ...) (unless filename ... ...) (cond ... ... ... ... ...= ... ... ... ... ... ...))) ido-file-internal(raise-frame) ido-find-file() call-interactively(ido-find-file) eval((call-interactively (quote ido-find-file))) command-line-1(("-eval" "(load \"ido.el\")" "-f" "ido-mode" "-f" "toggle-= debug-on-error" "/sudo::/" "-eval" "(call-interactively 'ido-find-file)")) command-line() normal-top-level() In GNU Emacs 23.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.12.5) of 2008-01-21 on elegiac, modified by Debian (emacs-snapshot package, version 1:20080120-1) configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linu= x-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D/usr= /lib' '--localstatedir=3D/var' '--infodir=3D/usr/share/info' '--mandir=3D/u= sr/share/man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/emacs-snaps= hot:/etc/emacs:/usr/local/share/emacs/23.0.50/site-lisp:/usr/local/share/em= acs/site-lisp:/usr/share/emacs/23.0.50/site-lisp:/usr/share/emacs/site-lisp= :/usr/share/emacs/23.0.50/leim' '--with-x=3Dyes' '--with-x-toolkit=3Dgtk' '= build_alias=3Di486-linux-gnu' 'host_alias=3Di486-linux-gnu' 'CFLAGS=3D-DDEB= IAN -DSITELOAD_PURESIZE_EXTRA=3D5000 -g -O2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C 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: en_AU.utf8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Post Minor modes in effect: xterm-mouse-mode: t shell-dirtrack-mode: t icomplete-mode: t partial-completion-mode: t show-paren-mode: t delete-selection-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC O A ESC O B ESC x r e p o r t SPC e m a c s SPC=20 b u g RET Recent messages: Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done Loading /etc/emacs/site-start.d/50scsh.el (source)...done Loading /etc/emacs/site-start.d/50w3m-el-snapshot.el (source)...done Loading /etc/emacs/site-start.d/51debian-el.el (source)...done Loading subst-ksc...done Loading subst-gb2312...done Loading subst-big5...done Loading subst-jis...done For information about GNU Emacs and the GNU system, type C-h C-a. Modification-flag cleared --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHmuKuLpef9iTtxAYRAnN+AKDx5RU+rMvtnESWecVeCFA32aywWgCgqMFf HzDC9kESA3Qpa+8NDEQVyGk= =+X4I -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0-- --===============0635013795== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0635013795==--