all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 23.0.50; PC-do-completion should fix case if possible
@ 2007-10-02 14:22 Denis Howe
  2007-10-02 21:59 ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Denis Howe @ 2007-10-02 14:22 UTC (permalink / raw)
  To: emacs-pretest-bug

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

In GNU Emacs 23.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.10.11), I do

  (setq read-file-name-completion-ignore-case t)
  (partial-completion-mode)

then type

  C-x C-f c

in a directory containing directory "Cat" and file "Cattle".  Normal
completion will correct the case of my "c", completing to "Cat",
matching the files.  Partial completion (complete.el) completes to
"cat", which is wrong.

Attached is a patch against the latest from CVS.

-- 
Denis Howe <denis.howe@gmail.com>
http://foldoc.org/
T: 020 8450 9448  M: 07950 686 615

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: complete.patch --]
[-- Type: text/x-patch; name="complete.patch", Size: 756 bytes --]

diff -w GNU/complete.el Fixed/complete.el
734,735d733
< 		  ;; Retain capitalization of user input even if
< 		  ;; completion-ignore-case is set.
742a741
>                                            (or
744,747c743
< 					       (downcase (following-char))))
< 				      ;; same char (modulo case); no action
< 				      (forward-char 1)
< 				    (if (and (< (point) end)
---
>                                                 (downcase (following-char)))
750c746
< 							PC-delims-list)))
---
>                                                        PC-delims-list))))
751a748
>                                       ;; or input char by prefix char
763c760
< 					(setq end (1+ end)))))
---
>                                       (setq end (1+ end))))

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

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

end of thread, other threads:[~2009-01-28 15:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02 14:22 23.0.50; PC-do-completion should fix case if possible Denis Howe
2007-10-02 21:59 ` Richard Stallman
2007-10-03 11:00   ` Denis Howe
2009-01-21 14:42     ` bug#1976: " Denis Howe
2009-01-21 22:13       ` Stefan Monnier
2009-01-21 23:09         ` Denis Howe
2009-01-28 15:45       ` bug#1976: marked as done (23.0.50; PC-do-completion should fix case if possible) Emacs bug Tracking System

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.