all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Denis Howe" <denis.howe@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.50; PC-do-completion should fix case if possible
Date: Tue, 2 Oct 2007 15:22:03 +0100	[thread overview]
Message-ID: <ddae169d0710020722o2efaecdfq45a98db1cd463d2d@mail.gmail.com> (raw)

[-- 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

             reply	other threads:[~2007-10-02 14:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-02 14:22 Denis Howe [this message]
2007-10-02 21:59 ` 23.0.50; PC-do-completion should fix case if possible 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ddae169d0710020722o2efaecdfq45a98db1cd463d2d@mail.gmail.com \
    --to=denis.howe@gmail.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.