all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#1667: 23.0.60; env var completion in shell mode - case sensitivity
@ 2008-12-22  0:11 Drew Adams
  2008-12-30 22:33 ` Drew Adams
  2011-10-21 22:32 ` bug#1667: " Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: Drew Adams @ 2008-12-22  0:11 UTC (permalink / raw)
  To: emacs-pretest-bug

emacs -Q
 
I'm on MS Windows. I load these two files, in order:
http://www.emacswiki.org/emacs/cygwin-mount.el
http://www.emacswiki.org/emacs/setup-cygwin.el
 
M-x shell
 
In buffer *shell*, I type lowercase "$hom", then hit TAB. It completes
to "$homE".
 
Dunno whether that is TRT (probably not), but when I hit TAB a second
time, it shows no possible completions. Whereas, there are these
completions for "$HOME": "HOME", "HOMEDRIVE", "HOMEPATH".

The same bug appears in Emacs 22.
 

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-12-19 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
-fno-crossjumping'
 
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: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t
 
Major mode: Shell
 
Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-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
  line-number-mode: t
  transient-mark-mode: t








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

* bug#1667: 23.0.60; env var completion in shell mode - case sensitivity
  2008-12-22  0:11 bug#1667: 23.0.60; env var completion in shell mode - case sensitivity Drew Adams
@ 2008-12-30 22:33 ` Drew Adams
  2011-10-21 22:32 ` bug#1667: " Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2008-12-30 22:33 UTC (permalink / raw)
  To: 'Drew Adams', 1667, emacs-pretest-bug

> From: Drew Adams Sent: Sunday, December 21, 2008 4:11 PM
> emacs -Q
>  
> I'm on MS Windows. I load these two files, in order:
> http://www.emacswiki.org/emacs/cygwin-mount.el
> http://www.emacswiki.org/emacs/setup-cygwin.el
>  
> M-x shell
>  
> In buffer *shell*, I type lowercase "$hom", then hit TAB. It completes
> to "$homE".
>  
> Dunno whether that is TRT (probably not), but when I hit TAB a second
> time, it shows no possible completions. Whereas, there are these
> completions for "$HOME": "HOME", "HOMEDRIVE", "HOMEPATH".
> 
> The same bug appears in Emacs 22.
> 
> In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
>  of 2008-12-19 on LENNART-69DE564
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
> configured using `configure --with-gcc (3.4) --no-opt 
> --cflags -Ic:/g/include -fno-crossjumping'

FYI - The problem comes from the two calls to `string-equal' in the definition
of `comint-dynamic-simple-complete'. Even though the function goes to the
trouble of binding `completion-ignore-case', it defeats this by using
`string-equal', which takes no account of `completion-ignore-case'. 

`comint-dynamic-simple-complete' is general, and can be used for different
thingies - in this case, it is called by
`shell-dynamic-complete-as-environment-variable'. Should env var completion be
case-insensitive on Windows? (dunno)

Either (1) The calling program needs some control over the behavior of
`completion-ignore-case' wrt case, so it can have a say in whether completion
should be case-sensitive for a particular kind of thingy (e.g. env vars). Or (2)
case-insensitive string comparison should be used everywhere in
`comint-dynamic-simple-complete', for (memq system-type '(ms-dos windows-nt
cygwin)).








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

* bug#1667: env var completion in shell mode - case sensitivity
  2008-12-22  0:11 bug#1667: 23.0.60; env var completion in shell mode - case sensitivity Drew Adams
  2008-12-30 22:33 ` Drew Adams
@ 2011-10-21 22:32 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2011-10-21 22:32 UTC (permalink / raw)
  To: 1667-done

AFAIK this has been fixed in the trunk by the rewrite of the
comint/shell completion to use the standard completion UI.


        Stefan





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

end of thread, other threads:[~2011-10-21 22:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-22  0:11 bug#1667: 23.0.60; env var completion in shell mode - case sensitivity Drew Adams
2008-12-30 22:33 ` Drew Adams
2011-10-21 22:32 ` bug#1667: " Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.