unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* try-completion is inconsistent when completion-ignore-case=t
@ 2004-02-23 21:45 Jonathan Yanver
  2004-02-24 17:51 ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Yanver @ 2004-02-23 21:45 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.1.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-03-22 on ws-rh006.franklin.com
configured using `configure  --exec-prefix=/vol/emacs/pkgs/emacs21.1/i686 --prefix=/vol/emacs/pkgs/emacs21.1 --with-pop --with-xpm --with-jpeg --with-tiff --with-gif --with-png'
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: en_US.iso885915
  locale-coding-system: iso-latin-9
  default-enable-multibyte-characters: nil

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


(let ((x '(("TestOne") ("TestTwo")))
      (completion-ignore-case t))
  (print (try-completion "tes"  x))    ;A
  (print (try-completion "test" x))    ;B
  nil)

Results:
  A = "Test"
  B = "test"

I think that B should be "Test".

Same problem when x is an obarray.

Same problem in HEAD rev of Emacs CVS archive.

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

* Re: try-completion is inconsistent when completion-ignore-case=t
  2004-02-23 21:45 try-completion is inconsistent when completion-ignore-case=t Jonathan Yanver
@ 2004-02-24 17:51 ` Richard Stallman
  2004-02-24 18:56   ` Jonathan Yavner
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2004-02-24 17:51 UTC (permalink / raw)
  Cc: bug-gnu-emacs

I am not sure this is wrong.  When the string needs to be changed
for other reasons, Emacs adjusts the case.  When the string as given
is a match, Emacs returns it unchanged.

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

* Re: try-completion is inconsistent when completion-ignore-case=t
  2004-02-24 17:51 ` Richard Stallman
@ 2004-02-24 18:56   ` Jonathan Yavner
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Yavner @ 2004-02-24 18:56 UTC (permalink / raw)
  Cc: bug-gnu-emacs

RMS> When the string needs to be changed for other reasons, Emacs adjusts
RMS> the case.  When the string as given is a match, Emacs returns it
RMS> unchanged.

But "test" is not actually a match.  It's "Test" that's the match.  We're
fuzzing the difference via completion-ignore-case.  Suppose you're typing
in incremental text and the program is displaying the best match so far:

(1) t         => Test
(2) te        => Test
(3) tes       => Test
(4) test      => test
(5) testo     => TestOne
(6) teston    => TestOne
(7) testone   => TestOne

It looks weird to have the initial lowercase `t' only on line (4).

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

end of thread, other threads:[~2004-02-24 18:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-23 21:45 try-completion is inconsistent when completion-ignore-case=t Jonathan Yanver
2004-02-24 17:51 ` Richard Stallman
2004-02-24 18:56   ` Jonathan Yavner

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).