unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14507: 24.3; TAB in shell mode never ignores case, even though I want it to
@ 2013-05-29 17:37 Eric Hanchrow
  2016-05-25 18:54 ` Alan Third
  2022-01-30 21:48 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 7+ messages in thread
From: Eric Hanchrow @ 2013-05-29 17:37 UTC (permalink / raw)
  To: 14507

[-- Attachment #1: Type: text/plain, Size: 4286 bytes --]

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)

[-- Attachment #2: Type: text/html, Size: 6155 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14507: 24.3; TAB in shell mode never ignores case, even though I want it to
  2013-05-29 17:37 bug#14507: 24.3; TAB in shell mode never ignores case, even though I want it to Eric Hanchrow
@ 2016-05-25 18:54 ` Alan Third
  2016-05-25 19:18   ` bug#14243: " Eric Hanchrow
  2022-01-30 21:48 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 7+ messages in thread
From: Alan Third @ 2016-05-25 18:54 UTC (permalink / raw)
  To: Eric Hanchrow; +Cc: 14507, 14243

Eric Hanchrow <eric.hanchrow@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14243: bug#14507: 24.3; TAB in shell mode never ignores case, even though I want it to
  2016-05-25 18:54 ` Alan Third
@ 2016-05-25 19:18   ` Eric Hanchrow
  2016-05-25 19:34     ` Alan Third
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Hanchrow @ 2016-05-25 19:18 UTC (permalink / raw)
  To: Alan Third; +Cc: 14507, 14243

[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]

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@idiocy.org> wrote:

> Eric Hanchrow <eric.hanchrow@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
>

[-- Attachment #2: Type: text/html, Size: 1826 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14507: 24.3; TAB in shell mode never ignores case, even though I want it to
  2016-05-25 19:18   ` bug#14243: " Eric Hanchrow
@ 2016-05-25 19:34     ` Alan Third
  2016-05-31 13:17       ` Eric Hanchrow
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Third @ 2016-05-25 19:34 UTC (permalink / raw)
  To: Eric Hanchrow; +Cc: 14507, 14243

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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14507: 24.3; TAB in shell mode never ignores case, even though I want it to
  2016-05-25 19:34     ` Alan Third
@ 2016-05-31 13:17       ` Eric Hanchrow
  0 siblings, 0 replies; 7+ messages in thread
From: Eric Hanchrow @ 2016-05-31 13:17 UTC (permalink / raw)
  To: Alan Third; +Cc: 14507, 14243

[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]

For what it's worth, the problem doesn't repro in emacs23 (specifically,
this commit)
commit c7205e5
Author: Aidan Gauland <aidalgol@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@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
>

[-- Attachment #2: Type: text/html, Size: 1619 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14507: 24.3; TAB in shell mode never ignores case, even though I want it to
  2013-05-29 17:37 bug#14507: 24.3; TAB in shell mode never ignores case, even though I want it to Eric Hanchrow
  2016-05-25 18:54 ` Alan Third
@ 2022-01-30 21:48 ` Lars Ingebrigtsen
       [not found]   ` <CAHZoxq8ATFj1kxTq8SNtFOBj12uE0j_OZdosAeYmtq+QtyaweQ@mail.gmail.com>
  1 sibling, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-30 21:48 UTC (permalink / raw)
  To: Eric Hanchrow; +Cc: 14507

Eric Hanchrow <eric.hanchrow@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14507: 24.3; TAB in shell mode never ignores case, even though I want it to
       [not found]   ` <CAHZoxq8ATFj1kxTq8SNtFOBj12uE0j_OZdosAeYmtq+QtyaweQ@mail.gmail.com>
@ 2022-01-31 15:16     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-31 15:16 UTC (permalink / raw)
  To: Eric Hanchrow; +Cc: 14507

Eric Hanchrow <eric.hanchrow@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.






^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-01-31 15:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 17:37 bug#14507: 24.3; TAB in shell mode never ignores case, even though I want it to Eric Hanchrow
2016-05-25 18:54 ` Alan Third
2016-05-25 19:18   ` bug#14243: " Eric Hanchrow
2016-05-25 19:34     ` Alan Third
2016-05-31 13:17       ` Eric Hanchrow
2022-01-30 21:48 ` Lars Ingebrigtsen
     [not found]   ` <CAHZoxq8ATFj1kxTq8SNtFOBj12uE0j_OZdosAeYmtq+QtyaweQ@mail.gmail.com>
2022-01-31 15:16     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).