unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: File name completion glitch
Date: Sat, 14 Mar 2009 21:59:50 -0400	[thread overview]
Message-ID: <jwvljr7eeim.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87vdqcca03.fsf@cyd.mit.edu> (Chong Yidong's message of "Sat, 14 Mar 2009 13:03:24 -0400")

>> In Emacs 23, I get this:
>>
>> Save MIME part to: ~/mys_foo.txt
>> [TAB]
>> Save MIME part to: ~/mys_foo.txt [No match]
>>
>> This happens because the TAB now takes into account the minibuffer
>> contents after the cursor.
>>
>> Stefan, can you suggest a way to fix this problem?

I do C-k ... TAB ... C-y
I learned to do it this way in Emacs-19 and it served me well ever since.

> The easiest "fix" is to add `emacs22' to the last element of
> `completion-styles', which causing Emacs to fall back on Emacs 22
> completion rules if the Emacs 23 rules don't return a match.  Is there
> any reason not to do this anyway?

We could do it this way or fold this behavior directly into
partial-completion.  I find it to be a misfeature in most cases, tho.
I.e. maybe the right fix is to change Gnus so that it behaves more like
C-x C-w (i.e. if you enter a directory name, the default file name is
automatically added).


        Stefan




  reply	other threads:[~2009-03-15  1:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-14 16:07 File name completion glitch Chong Yidong
2009-03-14 17:03 ` Chong Yidong
2009-03-15  1:59   ` Stefan Monnier [this message]
2009-03-15  2:41     ` Chong Yidong
2009-03-15  9:00 ` Richard M Stallman
2009-03-15  9:19   ` Miles Bader
2009-03-15 18:15     ` Drew Adams
2009-03-16  1:00       ` Chong Yidong
2009-03-16  3:32         ` Drew Adams
2009-03-16 11:57       ` David Kastrup
2009-03-16  0:41     ` Stefan Monnier
2009-03-16 16:56     ` Richard M Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvljr7eeim.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@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 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).