From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: Simple minibuffer completion question Date: Sat, 14 Apr 2007 21:47:08 +0200 Organization: The Church of Emacs Message-ID: <873b32rb5v.fsf@debby.local.net> References: <1176550384.941960.180950@w1g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176580073 27961 80.91.229.12 (14 Apr 2007 19:47:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2007 19:47:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: bmaron2@hotmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 21:47:47 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 1HcoDp-00032O-2t for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 21:47:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcoIE-00015S-Dy for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 15:52:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HcoHw-000147-Dc for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 15:52:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HcoHv-000120-1z for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 15:52:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcoHu-00011x-Sf for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 15:51:58 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HcoDU-0004Px-6d for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 15:47:24 -0400 Original-Received: from [84.167.10.53] (helo=debby.local.net) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1HcoDT1Af1-0005g2; Sat, 14 Apr 2007 21:47:23 +0200 Original-Received: from dieter by debby.local.net with local (Exim 4.63) (envelope-from ) id 1HcoDE-00018Z-Qc; Sat, 14 Apr 2007 21:47:08 +0200 In-Reply-To: <1176550384.941960.180950@w1g2000hsg.googlegroups.com> (bmaron2@hotmail.com's message of "14 Apr 2007 04\:33\:04 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-Provags-ID: V01U2FsdGVkX18h0wigGWWombZDuQuu12teHi34wmGnIspZY1s 7zL/yPnQ0cGpfEjbGjmFZ8bIQM+AyPCKkRi8huwet/+ztdm1AF 2rwbnuDvmWFzrRFwoRzI/S4uMT9wcvj X-detected-kernel: Linux 2.6? (barebone, rare!) 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:42684 Archived-At: 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