From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#18950: 24.4.51; Wrong type argument: stringp on completing an asterisk in eshell with pcomplete-cycle-completions disabled Date: Wed, 05 Nov 2014 07:27:56 +0200 Message-ID: <86wq7ai5cz.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1415165367 23411 80.91.229.3 (5 Nov 2014 05:29:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 05:29:27 +0000 (UTC) To: 18950@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 05 06:29:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xlt9i-0003Ci-9A for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 06:29:18 +0100 Original-Received: from localhost ([::1]:44320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlt9h-0004Fr-QL for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 00:29:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlt9Y-0004Ei-GC for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 00:29:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlt9S-0002CA-Gd for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 00:29:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlt9S-0002C6-Cj for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 00:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xlt9S-00012U-2i for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 00:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Nov 2014 05:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14151653213963 (code B ref -1); Wed, 05 Nov 2014 05:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Nov 2014 05:28:41 +0000 Original-Received: from localhost ([127.0.0.1]:49387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xlt96-00011q-2R for submit@debbugs.gnu.org; Wed, 05 Nov 2014 00:28:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38238) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xlt8l-00011N-KW for submit@debbugs.gnu.org; Wed, 05 Nov 2014 00:28:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlt8f-00020P-At for submit@debbugs.gnu.org; Wed, 05 Nov 2014 00:28:19 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlt8f-000204-7W for submit@debbugs.gnu.org; Wed, 05 Nov 2014 00:28:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlt8Z-00046C-5C for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 00:28:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlt8T-0001zc-5j for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 00:28:07 -0500 Original-Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:44127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlt8S-0001yg-VE for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 00:28:01 -0500 Original-Received: by mail-wi0-f182.google.com with SMTP id d1so953436wiv.3 for ; Tue, 04 Nov 2014 21:27:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=DkWLTOejV/GhnKzGXnoUw++3/Hvvakg48Vn0SKrEEqs=; b=mTUmysuAPSexDgUOdYLhHEsY4/8NZ7YPxAisP4wBZwoIuP1WZWXc60UwWDGIWw0tEp xoi1BzeS86T98N2kns1SNFPqjWgF5fMkV0lKxhlyBcc9wNv33QIAxP8zosa6D3+/7F86 txWS1Ti1UkDAbmygdfCEx48xfF8yt2mzciTl0MJq9eTDUDAlYsWhswpFAeywvnIYplsQ +AQEreJNwZncnLo1rWTtd7SWMo/fibE4keHDPvnXJwNLgoZb5ki45QWfFjc6QJaPkGgL kH1xDxI+UQoaXK5b2Jm8PESJ75USQx5GyGQ1gnFmS58/p2BD/hc2NLIcwjoFBjT//wNb SwVw== X-Received: by 10.180.91.49 with SMTP id cb17mr28927879wib.30.1415165279299; Tue, 04 Nov 2014 21:27:59 -0800 (PST) Original-Received: from axl ([82.102.116.197]) by mx.google.com with ESMTPSA id t9sm2717647wjf.41.2014.11.04.21.27.58 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 04 Nov 2014 21:27:58 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95523 1. M-x eshell 2. (setq pcomplete-cycle-completions nil) 3. Type `*', press TAB. 4. See an error, like: Debugger entered--Lisp error: (wrong-type-argument stringp ("Anki/" "Audiob= ooks/" "Desktop/" "Documents/" "Downloads/" ...)) file-name-directory(("Anki/" "Audiobooks/" "Desktop/" "Documents/" "Downl= oads/" ...)) (if (file-name-directory filename) (pcomplete-executables) (if (and (> (l= ength filename) 0) (eq (aref filename 0) eshell-explicit-command-char)) (se= tq filename (substring filename 1) pcomplete-stub filename glob-name t)) (l= et* ((paths (eshell-parse-colon-path eshell-path-env)) (cwd (file-name-as-d= irectory (expand-file-name default-directory))) (path "") (comps-in-path ni= l) (file "") (filepath "") (completions nil)) (while paths (setq path (file= -name-as-directory (expand-file-name (or (car paths) "."))) comps-in-path (= and (file-accessible-directory-p path) (file-name-all-completions filename = path))) (while comps-in-path (setq file (car comps-in-path) filepath (conca= t path file)) (if (and (not (member file completions)) (or (string-equal pa= th cwd) (not ...)) (file-executable-p filepath)) (setq completions (cons fi= le completions))) (setq comps-in-path (cdr comps-in-path))) (setq paths (cd= r paths))) (pcomplete-uniqify-list (if glob-name completions (setq completi= ons (append (and (eshell-using-module ...) (funcall ... filename)) (eshell-= winnow-list (mapcar ... ...) nil (quote ...)) completions)) (append (and (o= r eshell-show-lisp-completions (and eshell-show-lisp-alternatives ...)) (al= l-completions filename obarray (quote functionp))) completions))))) (let ((filename (pcomplete-arg)) glob-name) (if (file-name-directory file= name) (pcomplete-executables) (if (and (> (length filename) 0) (eq (aref fi= lename 0) eshell-explicit-command-char)) (setq filename (substring filename= 1) pcomplete-stub filename glob-name t)) (let* ((paths (eshell-parse-colon= -path eshell-path-env)) (cwd (file-name-as-directory (expand-file-name defa= ult-directory))) (path "") (comps-in-path nil) (file "") (filepath "") (com= pletions nil)) (while paths (setq path (file-name-as-directory (expand-file= -name (or ... "."))) comps-in-path (and (file-accessible-directory-p path) = (file-name-all-completions filename path))) (while comps-in-path (setq file= (car comps-in-path) filepath (concat path file)) (if (and (not ...) (or ..= . ...) (file-executable-p filepath)) (setq completions (cons file completio= ns))) (setq comps-in-path (cdr comps-in-path))) (setq paths (cdr paths))) (= pcomplete-uniqify-list (if glob-name completions (setq completions (append = (and ... ...) (eshell-winnow-list ... nil ...) completions)) (append (and (= or eshell-show-lisp-completions ...) (all-completions filename obarray ...)= ) completions)))))) eshell-complete-commands-list() ... 5. (setq pcomplete-cycle-completions t) -> and it works fine again. In GNU Emacs 24.4.51.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2014-11-03 on axl Repository revision: 117658 michael.albinus@gmx.de-20141102112256-548dk6al6= 3uy76uh Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS