all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sean O'Rourke" <sorourke@cs.ucsd.edu>
To: michael@cadilhac.name (Michaël Cadilhac)
Cc: emacs-devel@gnu.org
Subject: Re: PC-do-completion weird behavior acronym expansion.
Date: Sat, 25 Aug 2007 14:24:11 -0700	[thread overview]
Message-ID: <m2d4xb9ukk.fsf@dyn128-54-220-221.ucsd.edu> (raw)
In-Reply-To: <87odgzxkpk.fsf@lrde.org> ("Michaël Cadilhac"'s message of "Thu\, 23 Aug 2007 00\:34\:15 +0200")

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

michael@cadilhac.name (Michaël Cadilhac) writes:
> Before that change :
> M-x fin-fi RET
> Find file: ~/src/emacs/lisp/
> Now :
> M-x fin-fi RET 
> M-x find-file

Please try this patch.

/s

2007-08-25  Sean O'Rourke  <seano@cs.ucsd.edu>

	* complete.el (PC-do-completion): make RET accept a
	  non-unique but complete expansion again.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1153 bytes --]

Index: complete.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/complete.el,v
retrieving revision 1.77
diff -p -u -w -r1.77 complete.el
--- complete.el	7 Aug 2007 03:02:04 -0000	1.77
+++ complete.el	25 Aug 2007 21:20:27 -0000
@@ -831,12 +831,12 @@ GOTO-END is non-nil, however, it instead
                           (setq completion-base-size (if dirname
                                                          dirlength
                                                        (- beg prompt-end))))))
-                             (PC-temp-minibuffer-message " [Next char not unique]"))))))
-           ;; Expansion of filenames is not reversible, so just keep
-           ;; the prefix.
+                             (PC-temp-minibuffer-message " [Next char not unique]"))
+                         ;; Expansion of filenames is not reversible,
+                         ;; so just keep the prefix.
            (when (and abbreviated filename)
              (delete-region (point) end))
-           nil)
+                         nil)))))
 
        ;; Only one possible completion
        (t

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

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

  parent reply	other threads:[~2007-08-25 21:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-22 22:34 PC-do-completion weird behavior acronym expansion Michaël Cadilhac
2007-08-22 22:43 ` Sean O'Rourke
2007-08-25 21:24 ` Sean O'Rourke [this message]
2007-08-26 10:32   ` Michaël Cadilhac
2007-08-26 19:22     ` Michaël Cadilhac
2007-09-03 11:52 ` Romain Francoise
2007-09-06  4:51   ` Sean O'Rourke
2007-09-06 17:12     ` Romain Francoise

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=m2d4xb9ukk.fsf@dyn128-54-220-221.ucsd.edu \
    --to=sorourke@cs.ucsd.edu \
    --cc=emacs-devel@gnu.org \
    --cc=michael@cadilhac.name \
    /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.