all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: rms@gnu.org
Cc: emacs-devel@gnu.org, "Johan Bockgård" <bojohan+news@dd.chalmers.se>
Subject: Re: [cjm@pobox.com: Case-insensitive partial-completion bug]
Date: Sun, 04 Mar 2007 13:30:47 -0500	[thread overview]
Message-ID: <871wk4c148.fsf@stupidchicken.com> (raw)
In-Reply-To: <E1HNcUH-0004bK-KZ@fencepost.gnu.org> (Richard Stallman's message of "Sat\, 03 Mar 2007 17\:13\:57 -0500")

Richard Stallman <rms@gnu.org> writes:

>     I hope the bug below will get fixed. I run into it quite frequently
>     when reading Info:
>
>       emacs -Q -f partial-completion-mode -f info-emacs-manual
>
>       `g mark RET' doesn't select and exit minibuffer.
>
> I don't use Partial Completion mode.  Is this a bug in it?
> It looks that way, but I can't be sure.
>
> If it is, does anyone want to fix it?

I think this is an oversight in the logic of `PC-do-completion'.  The
following patch should fix it.

*** emacs/lisp/complete.el.~1.59.~	2007-01-21 08:38:26.000000000 -0500
--- emacs/lisp/complete.el	2007-03-04 13:28:25.000000000 -0500
***************
*** 404,411 ****
  
      ;; Check if buffer contents can already be considered complete
      (if (and (eq mode 'exit)
! 	     (test-completion-ignore-case str table pred))
! 	'complete
  
        ;; Do substitutions in directory names
        (and filename
--- 404,418 ----
  
      ;; Check if buffer contents can already be considered complete
      (if (and (eq mode 'exit)
! 	     (test-completion str table pred))
! 	(progn
! 	  ;; If completion-ignore-case is non-nil, insert the
! 	  ;; completion string since that may have a different case.
! 	  (when completion-ignore-case
! 	    (setq str (try-completion str table pred))
! 	    (delete-region beg end)
! 	    (insert str))
! 	  'complete)
  
        ;; Do substitutions in directory names
        (and filename

      reply	other threads:[~2007-03-04 18:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-13 20:15 [cjm@pobox.com: Case-insensitive partial-completion bug] Richard Stallman
2006-11-13 20:44 ` Markus Triska
2006-11-15  3:14   ` Richard Stallman
2006-11-20 14:21     ` Michael Ernst
2006-11-21  7:47       ` Richard Stallman
2006-11-21 14:20         ` Michael Ernst
2006-11-22 13:16           ` Richard Stallman
2007-03-02  1:18       ` Johan Bockgård
2007-03-03 22:13         ` Richard Stallman
2007-03-04 18:30           ` Chong Yidong [this message]

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=871wk4c148.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=bojohan+news@dd.chalmers.se \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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.