From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bmaron2@hotmail.com Newsgroups: gmane.emacs.help Subject: Simple minibuffer completion question Date: 14 Apr 2007 04:33:04 -0700 Organization: http://groups.google.com Message-ID: <1176550384.941960.180950@w1g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1176550569 32060 80.91.229.12 (14 Apr 2007 11:36:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2007 11:36:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 13:36:03 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HcgXy-0003ul-CO for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 13:36:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcgcL-0004NG-Hj for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 07:40:33 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!w1g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 81.179.112.184 Original-X-Trace: posting.google.com 1176550385 27670 127.0.0.1 (14 Apr 2007 11:33:05 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 14 Apr 2007 11:33:05 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: w1g2000hsg.googlegroups.com; posting-host=81.179.112.184; posting-account=RuJ-LQ0AAABy8KUxGsZLBgmQ8g6uR4Rb Original-Xref: shelby.stanford.edu gnu.emacs.help:147070 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42674 Archived-At: 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!