From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#704: 23.0.60; buggy file name completion in *shell* buffer Date: Tue, 12 Aug 2008 23:18:27 +0200 Message-ID: Reply-To: Peter Dyballa , 704@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1218576478 11288 80.91.229.12 (12 Aug 2008 21:27:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2008 21:27:58 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 12 23:28:50 2008 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 1KT1Q8-00030o-Sk for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 23:28:49 +0200 Original-Received: from localhost ([127.0.0.1]:43298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KT1PB-0006Ql-M3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 17:27:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KT1P4-0006OP-E2 for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 17:27:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KT1Oz-0006Fy-14 for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 17:27:41 -0400 Original-Received: from [199.232.76.173] (port=48933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KT1Oy-0006Fp-PT for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 17:27:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57801) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KT1Ow-0005I9-Gp for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 17:27:36 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7CLROLn004532; Tue, 12 Aug 2008 14:27:24 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7CLP4NM003359; Tue, 12 Aug 2008 14:25:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Peter Dyballa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 12 Aug 2008 21:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 704 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12185759351640 (code B ref -1); Tue, 12 Aug 2008 21:25:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 12 Aug 2008 21:18:55 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7CLIoa8001634 for ; Tue, 12 Aug 2008 14:18:51 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:51148) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KT1FK-0003pr-Ql for emacs-pretest-bug@gnu.org; Tue, 12 Aug 2008 17:17:39 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KT1GN-0002YI-GG for emacs-pretest-bug@gnu.org; Tue, 12 Aug 2008 17:18:47 -0400 Original-Received: from mout1.freenet.de ([195.4.92.91]:40366) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KT1GM-0002W8-DU for emacs-pretest-bug@gnu.org; Tue, 12 Aug 2008 17:18:43 -0400 Original-Received: from [195.4.92.12] (helo=2.mx.freenet.de) by mout1.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.69 #65) id 1KT1GF-00081g-W2 for emacs-pretest-bug@gnu.org; Tue, 12 Aug 2008 23:18:36 +0200 Original-Received: from p5b23f2d1.dip.t-dialin.net ([91.35.242.209]:51185 helo=[192.168.1.2]) by 2.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.69 #12) id 1KT1GF-0005Fz-Ak for emacs-pretest-bug@gnu.org; Tue, 12 Aug 2008 23:18:35 +0200 X-Mailer: Apple Mail (2.753.1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 12 Aug 2008 17:27:41 -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:19352 gmane.emacs.pretest.bugs:22823 Archived-At: Hello! In recent GNU Emacs 23.0.60 In GNU Emacs 23.0.60.1 (powerpc-apple-darwin8.11.0, X toolkit, = Xaw3d =20 scroll bars) of 2008-08-09 on Latsche.local Windowing system distributor `The XFree86 Project, Inc', version = =20 11.0.40400000 configured using `configure '--without-sound' '--without-pop' = '--=20 with-dbus' '--with-libotf' '--with-x-toolkit=3Dathena' '--enable-=20 locallisppath=3D/Library/Application Support/Emacs/calendar23:/Library/=20= Application Support/Emacs/caml:/Library/Application Support/Emacs:/sw/=20= share/emacs21/site-lisp/elib' 'PKG_CONFIG_PATH=3D/sw/lib/freetype219/=20 lib/pkgconfig:/sw/lib/fontconfig2/lib/pkgconfig:/sw/lib/qt4-x11/lib/=20 pkgconfig:/sw/lib/pkgconfig:/sw/share/pkgconfig:/usr/lib/pkgconfig:/=20 usr/local/lib/pkgconfig:/usr/X11R6/lib/pkgconfig' 'CFLAGS=3D-ggdb -=20 gfull -H -Wno-pointer-sign -bind_at_load -pipe -fPIC -mcpu=3D7450 -=20 mtune=3D7450 -mno-powerpc64 -fast -mpim-altivec -ftree-vectorize -fno-=20= crossjumping' 'CPPFLAGS=3D-no-cpp-precomp -I/sw/include -I/usr/local/=20 include -idirafter /usr/X11R6/include' 'LDFLAGS=3D-bind_at_load -=20 dead_strip -multiply_defined suppress -L/sw/lib/ncurses -L/sw/lib -L/=20 usr/local/lib -L/usr/X11R6/lib'' =09 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: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t =09 Major mode: Shell =09 Minor modes in effect: shell-dirtrack-mode: t show-paren-mode: t display-time-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-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 transient-mark-mode: t I invoke 'M-x shell RET'. Tcsh is my login shell. No ~/.tcshrc file =20 exists. For tests I renamed ~/.cshrc. ~/.emacs_tcsh has this contents =20= to have a rather clean environment: foreach ENV (`env | awk -F=3D '{print $1}'`) unsetenv $ENV end echo -n "Environment deleted. Proof: the env command's = output..." env unset addsuffix autocorrect autoexpand autolist cdpath correct =20= dextract dunique echo_style fignore inputmode killring listjobs =20 matchbeep nokanji nokanji nostat owd pushdtohome recexact savehist =20 symlinks user_tcsh_initdir default_tcsh_initdir dir tcsh_initdir =20 framework_path histfile history host shlvl set When I type in *shell* buffer 'ls -l /usr/ TAB' and pick 'bin/' from =20 the *Completions* window, the text in *shell* I had already is =20 substituted to 'bin/'. The *Completions* window shows: Click on a completion to select it. In this buffer, type RET to select the completion near point. =09 Possible completions are: ../ ./ X11-vorher/ X11/ X11R6/ = =20 X11R7.1/ X11R7.2/ bin/ include/ lib/ libexec/ = =20 local/ sbin/ share/ standalone/ texbin 'env' shows nothing, 'set' shows these: _=09 argv () cwd /Users/pete dirstack /Users/pete gid 501 group pete home /Users/pete interactive=09 path = (/Library/Frameworks/Python.framework/Versions/Current/bin /=20 Users/pete/bin /sw/lib/freetype219/bin /sw/lib/fontconfig2/bin /usr/=20 local/bin /usr/local/ActivePerl-5.10/bin /usr/local/gwTeX/bin/bin /=20 usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /sw/bin /sw/lib/coreutils/=20= bin /Developer/Tools) prompt [%m:%c3] %n%# prompt2 %R -> prompt3 OK? %R? promptchars %# shell /bin/tcsh status 0 tcsh 6.12.00 term dumb tty ttypd uid 501 user pete version tcsh 6.12.00 (Astron) 2002-07-23 (powerpc-apple-darwin) =20= options 8b,nls,dl,al,kan,sm,rh,color,dspm,filec The same behaviour shows bash, that I start with 'bash -li' or Korn =20 shell that I start with a simple 'ksh' or zsh that I start with a =20 simple 'zsh' or another bash ... In *terminal* buffer I don't see the =20= same. In *eshell* I can try choose from *Completions* but get told in =20= echo-area: "Text is read-only." In this elder version of GNU Emacs 23.0.60 file name completion works =20= fine in *shell*: In GNU Emacs 23.0.60.1 (powerpc-apple-darwin8.11.0, X toolkit, = Xaw3d =20 scroll bars) of 2008-01-04 on Latsche.local Windowing system distributor `The XFree86 Project, Inc', version = =20 11.0.40400000 configured using `configure '--with-x-toolkit=3Dlucid' = '--without-=20 gtk' '--with-dbus' '--without-sound' '--without-pop' '--with-xpm' '--=20 with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--enable-=20 locallisppath=3D/Library/Application Support/Emacs/calendar22:/Library/=20= Application Support/Emacs/caml:/Library/Application Support/Emacs:/sw/=20= share/emacs21/site-lisp/elib' 'PKG_CONFIG_PATH=3D/sw/lib/freetype219/=20 lib/pkgconfig:/sw/lib/fontconfig2/lib/pkgconfig:/sw/lib/pkgconfig:/sw/=20= lib/system-openssl/lib/pkgconfig:/sw/share/pkgconfig:/usr/lib/=20 pkgconfig:/usr/local/lib/pkgconfig:/usr/local/clamXav/lib/pkgconfig:/=20 usr/local/lib/pkgconfig' 'CPPFLAGS=3D-no-cpp-precomp -D__BIND_NOSTATIC -=20= I/usr/include/openssl -I/sw/include/pango-1.0 -I/sw/lib/fontconfig2/=20 include -I/sw/lib/freetype219/include -I/sw/lib/freetype219/include/=20 freetype2 -I/sw/include -I/usr/local/include -idirafter /usr/X11R6/=20 include' 'CXXFLAGS=3D-no-cpp-precomp -I/usr/include/openssl -I/sw/=20 include/pango-1.0 -I/sw/lib/fontconfig2/include -I/sw/lib/freetype219/=20= include -I/sw/lib/freetype219/include/freetype2 -I/sw/include -I/usr/=20 local/include' 'CFLAGS=3D-bind_at_load -pipe -fPIC -mcpu=3D7450 -=20 mtune=3D7450 -fast -mpim-altivec -ftree-vectorize -foptimize-register-=20= move -freorder-blocks -freorder-blocks-and-partition -fthread-jumps -=20 fpeephole -fno-crossjumping -Wno-pointer-sign' 'LDFLAGS=3D-dead_strip -=20= multiply_defined suppress -L/sw/lib/ncurses -L/sw/lib/fontconfig2/lib =20= -L/sw/lib/freetype219/lib -L/sw/lib -L/usr/local/lib -L/usr/X11R6/lib'' =09 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: de_DE.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t =09 Major mode: Shell =09 Minor modes in effect: shell-dirtrack-mode: t show-paren-mode: t display-time-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-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-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t It doesn't work completely, meanwhile. A C-x d leads to an error: Debugger entered--Lisp error: (void-function = completion-table-in-turn) completion-table-in-turn((lambda (&rest --cl-rest--) (apply = #[... =20 "=85" [G40608 G40609 read-file-name-predicate action str lambda ... =20 apply #[... "=85" [f G40606 ... 47 string-match] 3] quote --cl-rest-- =20= complete-with-action read-file-name-internal nil] 7] (quote --cie--) =20 (quote --default--) --cl-rest--)) read-file-name-internal) dired-read-dir-and-switches("") call-interactively(dired nil nil) and *Messages* contains: Note, built-in variable `word-wrap' not bound Note, built-in variable `shift-select-mode' not bound Note, built-in variable `delete-by-moving-to-trash' not bound Note, built-in variable `read-buffer-completion-ignore-case' not = bound Note, built-in variable `underline-minimum-offset' not bound but it still proves that shell-mode once worked correctly in GNU =20 Emacs 23.0.60. ls -lt /usr/local/bin/emacs* -rwxr-xr-t 2 root admin 22341300 9. Aug 13:21 /usr/local/bin/emacs -rwxr-xr-t 2 root admin 22341300 9. Aug 13:21 /usr/local/bin/=20 emacs-23.0.60 -rwxr-xr-x 1 root admin 39576 9. Aug 13:21 /usr/local/bin/=20 emacsclient -rwxr-xr-t 1 root admin 7444704 17. Apr 12:59 /usr/local/bin/emacs-22.2 -rwxr-xr-t 1 root admin 7910316 30. Jan 2008 /usr/local/bin/=20 emacs-23.0.50 -rwxr-xr-t 1 root admin 21404344 4. Jan 2008 /usr/local/bin/=20 emacs-23.0.60-alt -rwxr-xr-t 1 root admin 21236840 8. Okt 2007 /usr/local/bin/=20 emacs-23.0.0 -rwxr-xr-t 1 root admin 7461232 26. Aug 2007 /usr/local/bin/=20 emacs-22.1.50 -- Greetings Pete It isn't pollution that's harming the environment. It's the =20 impurities in our air and water that are doing it.