unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: bmaron2@hotmail.com
To: help-gnu-emacs@gnu.org
Subject: Simple minibuffer completion question
Date: 14 Apr 2007 04:33:04 -0700	[thread overview]
Message-ID: <1176550384.941960.180950@w1g2000hsg.googlegroups.com> (raw)

Hello folks,

I've always wondered how to do this for ages now, and I'm hopeful
there is a simple solution which I haven't figured out.

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.

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?

Thanks in advance!

             reply	other threads:[~2007-04-14 11:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-14 11:33 bmaron2 [this message]
2007-04-14 11:52 ` Simple minibuffer completion question 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

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=1176550384.941960.180950@w1g2000hsg.googlegroups.com \
    --to=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.
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).