GNU bug report logs - #14507
24.3; TAB in shell mode never ignores case, even though I want it to

Previous Next

Package: emacs;

Reported by: Eric Hanchrow <eric.hanchrow <at> gmail.com>

Date: Wed, 29 May 2013 17:40:01 UTC

Severity: normal

Tags: moreinfo

Merged with 14243

Found in version 24.3

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14507 in the body.
You can then email your comments to 14507 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14507; Package emacs. (Wed, 29 May 2013 17:40:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eric Hanchrow <eric.hanchrow <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 29 May 2013 17:40:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Eric Hanchrow <eric.hanchrow <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; TAB in shell mode never ignores case, even though I want it to
Date: Wed, 29 May 2013 10:37:30 -0700
[Message part 1 (text/plain, inline)]
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':

I started emacs with

        /Applications/Emacs.app/Contents/MacOS/Emacs -Q

I typed M-x shell RET

At the shell prompt, I typed "cd doc", then I hit the TAB key.  The
shell's current directory was my home directory, and that directory
contains a subdirectory named "Documents".  I expected the TAB key to
complete the name "Documents", but it just beeped.  I then did M-: (setq
completion-ignore-case t) RET, and tried again, but it still just
beeped.

In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2013-03-12 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1187
Configured using:
 `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
 '--with-ns' 'build_alias=i686-apple-darwin'
 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
 -isystem
 /Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
 -F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Shell

Minor modes in effect:
  shell-dirtrack-mode: t
  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:
C-x d <return> M-x s h e l l <return> l s <return>
c d SPC d e o c <tab> <backspace> <backspace> <backspace>
o c <tab> <tab> C-c C-u C-h v c o m p l e <tab> o <tab>
i <backspace> - i <tab> g <tab> - c <tab> <return>
c d SPC D o <tab> <backspace> <backspace> d o c <tab>
M-x s e t - v a r <tab> <return> c o m p l <tab> -
o <tab> <M-backspace> <M-backspace> i g <tab> <M-backspace>
<backspace> <backspace> - <tab> C-g C-x o <tab> <tab>
<return> C-x 0 C-h v M-p C-k r e a d - f i <tab> i
<tab> <return> C-x 1 C-h c <tab> <tab> M-x s e t -
v a r <tab> <return> c o m p l <tab> <tab> C-g C-h
v M-p C-k c o m p l e <tab> o <tab> - i <tab> g <tab>
- c <tab> <return> M-: M-p M-( s e t q SPC c o m p
l e <M-tab> i <M-tab> o <M-tab> - i <M-tab> g <tab>
- c <tab> SPC t <return> <tab> M-x r e p o r t - e
m <tab> <return>

Recent messages:
TAB (translated from <tab>) runs the command completion-at-point
No match
Making completion list...
Quit
Making completion list...
Type C-x 1 to delete the help window.
user-error: Beginning of history; no preceding item
Making completion list... [2 times]
t
No match

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 help-mode easymenu help-fns pcmpl-unix shell
pcomplete comint ansi-color ring dired time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel ns-win 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 ns multi-tty emacs)
[Message part 2 (text/html, inline)]

Merged 14243 14507. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 29 May 2013 17:54:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14507; Package emacs. (Wed, 25 May 2016 18:55:02 GMT) Full text and rfc822 format available.

Message #10 received at 14507 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Eric Hanchrow <eric.hanchrow <at> gmail.com>
Cc: 14507 <at> debbugs.gnu.org, 14243 <at> debbugs.gnu.org
Subject: Re: bug#14507: 24.3;
 TAB in shell mode never ignores case, even though I want it to
Date: Wed, 25 May 2016 19:54:19 +0100
Eric Hanchrow <eric.hanchrow <at> gmail.com> writes:

> I started emacs with 
>
> /Applications/Emacs.app/Contents/MacOS/Emacs -Q
>
> I typed M-x shell RET
>
> At the shell prompt, I typed "cd doc", then I hit the TAB key. The
> shell's current directory was my home directory, and that directory
> contains a subdirectory named "Documents". I expected the TAB key to
> complete the name "Documents", but it just beeped. I then did M-: (setq
> completion-ignore-case t) RET, and tried again, but it still just
> beeped.

Hi, sorry it's taken so long for someone to get back to you, but this
isn't Emacs's filename completion, this is the shells. Probably bash.
I'm afraid I can't help you with that.
-- 
Alan Third




Added tag(s) notabug. Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Wed, 25 May 2016 18:55:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 14243 <at> debbugs.gnu.org and ua2y-rti1 <at> spamex.com Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Wed, 25 May 2016 18:55:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14507; Package emacs. (Wed, 25 May 2016 19:20:02 GMT) Full text and rfc822 format available.

Message #17 received at 14507 <at> debbugs.gnu.org (full text, mbox):

From: Eric Hanchrow <eric.hanchrow <at> gmail.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 14507 <at> debbugs.gnu.org, 14243 <at> debbugs.gnu.org
Subject: Re: bug#14507: 24.3; TAB in shell mode never ignores case, even
 though I want it to
Date: Wed, 25 May 2016 19:18:55 +0000
[Message part 1 (text/plain, inline)]
So you're saying that

a) Emacs is deferring to Bash to do the completion in this case; and
b) bash is not ignoring case?

I find both of those hard to believe -- particularly since if I type "cd
doc" at a shell prompt that's not inside emacs, but is in a Terminal.app,
it does what I want (namely: completes to "cd Documents").

If a) is in fact correct, then I suppose Emacs is somehow starting the
shell differently than Terminal.app is.

On Wed, May 25, 2016 at 11:54 AM Alan Third <alan <at> idiocy.org> wrote:

> Eric Hanchrow <eric.hanchrow <at> gmail.com> writes:
>
> > I started emacs with
> >
> > /Applications/Emacs.app/Contents/MacOS/Emacs -Q
> >
> > I typed M-x shell RET
> >
> > At the shell prompt, I typed "cd doc", then I hit the TAB key. The
> > shell's current directory was my home directory, and that directory
> > contains a subdirectory named "Documents". I expected the TAB key to
> > complete the name "Documents", but it just beeped. I then did M-: (setq
> > completion-ignore-case t) RET, and tried again, but it still just
> > beeped.
>
> Hi, sorry it's taken so long for someone to get back to you, but this
> isn't Emacs's filename completion, this is the shells. Probably bash.
> I'm afraid I can't help you with that.
> --
> Alan Third
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14507; Package emacs. (Wed, 25 May 2016 19:35:02 GMT) Full text and rfc822 format available.

Message #20 received at 14507 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Eric Hanchrow <eric.hanchrow <at> gmail.com>
Cc: 14507 <at> debbugs.gnu.org, 14243 <at> debbugs.gnu.org
Subject: Re: bug#14507: 24.3; TAB in shell mode never ignores case, even
 though I want it to
Date: Wed, 25 May 2016 20:34:22 +0100
On Wed, May 25, 2016 at 07:18:55PM +0000, Eric Hanchrow wrote:
> So you're saying that
> 
> a) Emacs is deferring to Bash to do the completion in this case; and
> b) bash is not ignoring case?
> 
> I find both of those hard to believe -- particularly since if I type "cd
> doc" at a shell prompt that's not inside emacs, but is in a Terminal.app,
> it does what I want (namely: completes to "cd Documents").
> 
> If a) is in fact correct, then I suppose Emacs is somehow starting the
> shell differently than Terminal.app is.

OK, I think I was talking rubbish. It looks like Emacs does do the
completion.

(BTW, this bug looks like it's OS X specific in debbugs even though
it's reproducible in a GTK+ build on GNU/Linux too.)
-- 
Alan Third




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 25 May 2016 19:51:01 GMT) Full text and rfc822 format available.

Removed tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 25 May 2016 20:57:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14507; Package emacs. (Tue, 31 May 2016 13:19:02 GMT) Full text and rfc822 format available.

Message #27 received at 14507 <at> debbugs.gnu.org (full text, mbox):

From: Eric Hanchrow <eric.hanchrow <at> gmail.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 14507 <at> debbugs.gnu.org, 14243 <at> debbugs.gnu.org
Subject: Re: bug#14507: 24.3; TAB in shell mode never ignores case, even
 though I want it to
Date: Tue, 31 May 2016 13:17:48 +0000
[Message part 1 (text/plain, inline)]
For what it's worth, the problem doesn't repro in emacs23 (specifically,
this commit)
commit c7205e5
Author: Aidan Gauland <aidalgol <at> no8wireless.co.nz>
Date: 2013-02-08 09:44:17 -0500

* doc/misc/eshell.texi: Fill most of the missing sections.

:100644 100644 e05048c... 9fcaa5c... M doc/misc/eshell.texi

On Wed, May 25, 2016 at 12:34 PM Alan Third <alan <at> idiocy.org> wrote:

> On Wed, May 25, 2016 at 07:18:55PM +0000, Eric Hanchrow wrote:
> > So you're saying that
> >
> > a) Emacs is deferring to Bash to do the completion in this case; and
> > b) bash is not ignoring case?
> >
> > I find both of those hard to believe -- particularly since if I type "cd
> > doc" at a shell prompt that's not inside emacs, but is in a Terminal.app,
> > it does what I want (namely: completes to "cd Documents").
> >
> > If a) is in fact correct, then I suppose Emacs is somehow starting the
> > shell differently than Terminal.app is.
>
> OK, I think I was talking rubbish. It looks like Emacs does do the
> completion.
>
> (BTW, this bug looks like it's OS X specific in debbugs even though
> it's reproducible in a GTK+ build on GNU/Linux too.)
> --
> Alan Third
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14507; Package emacs. (Sun, 30 Jan 2022 21:49:02 GMT) Full text and rfc822 format available.

Message #30 received at 14507 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eric Hanchrow <eric.hanchrow <at> gmail.com>
Cc: 14507 <at> debbugs.gnu.org
Subject: Re: bug#14507: 24.3; TAB in shell mode never ignores case, even
 though I want it to
Date: Sun, 30 Jan 2022 22:48:39 +0100
Eric Hanchrow <eric.hanchrow <at> gmail.com> writes:

> I started emacs with 
>
>         /Applications/Emacs.app/Contents/MacOS/Emacs -Q
>
> I typed M-x shell RET
>
> At the shell prompt, I typed "cd doc", then I hit the TAB key.  The
> shell's current directory was my home directory, and that directory
> contains a subdirectory named "Documents".  I expected the TAB key to
> complete the name "Documents", but it just beeped.  I then did M-: (setq
> completion-ignore-case t) RET, and tried again, but it still just
> beeped.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I vaguely remember this being fixed a while back, and I'm not able to
reproduce it myself in Emacs 29 (but I'm testing on Debian).

Are you still seeing this issue in recent Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 30 Jan 2022 21:49:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14507; Package emacs. (Mon, 31 Jan 2022 15:17:02 GMT) Full text and rfc822 format available.

Message #35 received at 14507 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eric Hanchrow <eric.hanchrow <at> gmail.com>
Cc: 14507 <at> debbugs.gnu.org
Subject: Re: bug#14507: 24.3; TAB in shell mode never ignores case, even
 though I want it to
Date: Mon, 31 Jan 2022 16:16:01 +0100
Eric Hanchrow <eric.hanchrow <at> gmail.com> writes:

> Just tried it now, and it seems to still be there.  The repro recipe and details have
> changed slightly:
> GNU Emacs 27.2 (build 1, arm-apple-darwin21.1.0, NS appkit-2113.00 Version
> 12.0.1 (Build 21A559)) of 2021-11-18
>
> * started, as before, via /Applications/Emacs.app/Contents/MacOS/Emacs -Q
> * M-x shell RET
> * cd RET
> * cd d TAB
> * it completed to "docker-build-land" because I happen to have a directory of that
>  name.  But I also have Desktop, Documents, and Downloads, and it didn't offer
>  any of those
> * C-c C-u to erase the previous completion
> * cd de TAB
> * Here of course I was hoping it'd complete to "Desktop", but it just beeped.
> * As before, I did M-: (setq completion-ignore-case t) RET but that had no effect.

Thanks for checking; I can reproduce this in Emacs 27.2, but not on the
current master, so it looks like it's been fixed, and I'm therefore
closing this bug report.





bug marked as fixed in version 29.1, send any further explanations to 14507 <at> debbugs.gnu.org and Eric Hanchrow <eric.hanchrow <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 31 Jan 2022 15:17:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 01 Mar 2022 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 133 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.