all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
To: bmaron2@hotmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: Simple minibuffer completion question
Date: Sat, 14 Apr 2007 21:47:08 +0200	[thread overview]
Message-ID: <873b32rb5v.fsf@debby.local.net> (raw)
In-Reply-To: <1176550384.941960.180950@w1g2000hsg.googlegroups.com> (bmaron2@hotmail.com's message of "14 Apr 2007 04\:33\:04 -0700")

bmaron2@hotmail.com writes:

>
> Lets say you're editing a file named reallylongfilename.foo. You want
> to save a copy and call it reallylongfilename2.foo.
>
> If I do a C-x C-w, emacs prompts me for the new file name. Now, how
> can I get it to insert the default file name (reallylongfilename.foo),
> but still allow me to edit the text? If i just press RET it submits
> the default name, not allowing me to add the '2'. TAB and SPC give me
> a list of all the files in the directory, so I still have to type out
> reallylongfilename.foo.

Not exactly, you only have to type the ambiguous part, TAB completes
the rest for you.  Most often one has to type only few chars and TAB.

> An analogous question is if I'm editing reallylongfilename.foo and I
> want to open reallylongfilename.bar. How can I do that without typing
> manually all of reallylongfilename?

Either with (1) M-p, or (2) typing the ambiguous part and then TAB, or
try (3) ido-mode.  With this mode you would just type "C-x C-f .bar"
and then you can select with C-s between all files ending in .bar.

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

      parent reply	other threads:[~2007-04-14 19:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-14 11:33 Simple minibuffer completion question bmaron2
2007-04-14 11:52 ` Eli Zaretskii
     [not found] ` <mailman.2069.1176551798.7795.help-gnu-emacs@gnu.org>
2007-04-14 13:18   ` bmaron2
2007-04-14 19:47 ` Dieter Wilhelm [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=873b32rb5v.fsf@debby.local.net \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=bmaron2@hotmail.com \
    --cc=help-gnu-emacs@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.