From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.bugs Subject: bug#15385: [Eshell] Directory completion overwrites preceding characters Date: Sun, 15 Sep 2013 16:11:44 +0200 Message-ID: <87fvt6p42n.fsf@fastmail.fm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1379254394 29053 80.91.229.3 (15 Sep 2013 14:13:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Sep 2013 14:13:14 +0000 (UTC) To: 15385@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 15 16:13:17 2013 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 1VLD4e-0007u3-Ps for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Sep 2013 16:13:17 +0200 Original-Received: from localhost ([::1]:56811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLD4e-00046X-4T for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Sep 2013 10:13:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLD4V-00043u-TM for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2013 10:13:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLD4Q-0001fE-QA for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2013 10:13:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLD4Q-0001fA-Lq for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2013 10:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VLD4Q-00028p-BQ for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2013 10:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joost Kremers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Sep 2013 14:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15385 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.13792543458176 (code B ref -1); Sun, 15 Sep 2013 14:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Sep 2013 14:12:25 +0000 Original-Received: from localhost ([127.0.0.1]:38609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLD3o-00027l-Bn for submit@debbugs.gnu.org; Sun, 15 Sep 2013 10:12:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48782) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLD3l-00027T-B3 for submit@debbugs.gnu.org; Sun, 15 Sep 2013 10:12:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLD3b-0001GN-2D for submit@debbugs.gnu.org; Sun, 15 Sep 2013 10:12:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLD3a-0001GF-UK for submit@debbugs.gnu.org; Sun, 15 Sep 2013 10:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLD3W-000416-0s for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2013 10:12:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLD3O-0001Ee-Tj for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2013 10:12:05 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:38711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLD3O-0001EJ-IB for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2013 10:11:58 -0400 Original-Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id AB22220929 for ; Sun, 15 Sep 2013 10:11:56 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sun, 15 Sep 2013 10:11:56 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= from:to:subject:date:message-id:mime-version:content-type; s= mesmtp; bh=ghlLbfUp1Uvjs3ZwkCKCIS1/TVI=; b=LTCa9mg9kWr676/+U7OCa BBQNEv7buQjRaNsp7of6F2bTSA0QR9RilS9CzL1HyqVFy0jJQfwYIhhKE/PeCro6 q/QlhbBVg2b3iQTvRKHKRsDTgSUmTiqH4uQiSWk0oGomxolhNXGV6yFd3knDsz3K sUdbzAy8JyrY4WgQ9rWf4A= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :mime-version:content-type; s=smtpout; bh=ghlLbfUp1Uvjs3ZwkCKCIS 1/TVI=; b=RPTo88LTlD3JWB2Rj5DViLQeqniR0fpeqF6yFMx02NzSAr4vuhddLT 5vB+Mlr+cB/99R3Ppu/1QcA9DL8eWO9f6aNcs6xqGhCjrQdErx+l2D3QX+nmN459 muCVsCT8W7VpHY4yl/fQJeJCU3gaLK8XIxv7OAZj4K9sX0+hQ5ABQ= X-Sasl-enc: VFedhv8FfkNPmIKGJ6s7WNV+LiL+6I0Xw5SLL+R1RAED 1379254315 Original-Received: from eeenterprise.messagingengine.com (unknown [77.8.31.156]) by mail.messagingengine.com (Postfix) with ESMTPA id 6391E6800C0 for ; Sun, 15 Sep 2013 10:11:55 -0400 (EDT) User-agent: mu4e 0.9.9.5; emacs 24.3.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:78424 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': ============================== Starting from `emacs -Q', if I do (setq eshell-cmpl-ignore-case t) and then start up a shell, TAB completion behaves incorrectly under some conditions. Specifically, I type a command such as: $ cp ~/Dropbox/Work/Reading/Wilbur_Martinez2002.pdf ~/Dro At this point, I hit TAB to complete `~/Dro' and get: $ cp ~/Dropbox/Work/Reading/Wilbur_Martine/home/joost/Dropbox/ Note that the problem does *not* occur with the first file path. If I hit TAB to complete $ cp ~/Dro then completion produces the correct result: $ cp ~/Dropbox/ It seems the problem occurs when the file path is the second argument on the command line, because if I type: $ ls ~/Dropbox/Work/Literature/k/kim2002.pdf ~/dro and hit TAB to complete, the result is also: $ ls ~/Dropbox/Work/Literature/k/ki/home/joost/Dropbox/ It does not occur when there is a switch preceding the file path: $ ls -l ~/dro completes fine. Thanks, Joost Kremers ============================== 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'. For information about debugging Emacs, please read the file /usr/share/emacs/24.3/etc/DEBUG. In GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-08-22 on chindi02, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11103000 System Description: elementary OS Luna Configured using: `configure '--build' 'i686-linux-gnu' '--build' 'i686-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=i686-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: EShell Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ( s e t q SPC c m e s h e l l - c m p l - i g n o r e - c a s e SPC t ) M-x e s h e l l c d SPC d r o D r o W o r R e c d SPC . . / R e a c p SPC W i l SPC ~ / D r o D r o C-x b C-x C-e C-x b d r o e x i t M-x e s h e l l c d SPC d r o r e a w o r r e a c p SPC w i l b ~ / r d r o c d c d SPC ~ / d r o w o M-x r e p o r Recent messages: Loading em-hist...done Loading em-ls...done Loading em-prompt...done Loading em-script...done Loading em-term...done Loading em-unix...done No completions of dro t No completions of /home/joost/dro No completions of Dropbox/rea Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils pcmpl-unix em-unix pcomplete comint ansi-color em-term term disp-table easymenu ehelp electric em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias ring esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc help-fns esh-groups eshell esh-module esh-mode esh-util time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- Joost Kremers Life has its moments