From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: It is prompting me for a filename. I would like to fill in the current filename. Date: 10 Apr 2002 15:28:47 +0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: Reply-To: jidanni@yahoo.com.tw NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018452797 434 127.0.0.1 (10 Apr 2002 15:33:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2002 15:33:17 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16vK61-00006t-00 for ; Wed, 10 Apr 2002 17:33:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vK5v-0004CG-00; Wed, 10 Apr 2002 11:33:11 -0400 Original-Received: from chi6-1.relay.mail.uu.net ([199.171.54.98]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16vK53-0003yt-00 for ; Wed, 10 Apr 2002 11:32:17 -0400 Original-Received: from mail.fu-berlin.de by chi6sosrv13.alter.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQmjzq07142 for ; Wed, 10 Apr 2002 15:32:12 GMT Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Wed, 10 Apr 2002 17:32:11 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Wed, 10 Apr 2002 17:32:11 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 61-227-47-222.hinet-ip.hinet.NET!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 30 X-Orig-NNTP-Posting-Host: 61-227-47-222.hinet-ip.hinet.net (61.227.47.222) X-Orig-X-Trace: fu-berlin.de 1018452730 33732070 61.227.47.222 (16 [99749]) X-Orig-Path: localhost.localdomain!nobody User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:543 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:543 And there it was, on M-n. That means I wasted all your times. Sorry. Maybe I did M-p M-p M-p M-n M-n so thought I checked all around not thinking that it was hiding on the first M-n. Wait, the M-n is far from universal. It is not there often: $ LC_ALL=C emacs -q --no-site-file -nw /tmp ! ESC n sure, you might say that I could use "*" here, but then I would respond that I wished to edit the name. You could say why not use w ! C-y, but I would say I've already hit ! and begun to type other things and it is inconvenient for me to go back and hit w at this time. Sure, C-a C-k C-g w ! C-y C-y M-y or something... inconvenient. Anyways, let's say I had hit M-! instead of ! ... anyways, in each case the user wishes that emacs would have the most relevant file name at the tip of its tongue, ready for use at any time... perhaps have it ready in one of those many registers lying around or something... the idea is a standard key sequence that will yank it, add ^U and you get the full path... not only usable the minibuffer, but even in the file itself. As often even dabbrev-expand doesn't know about the name of the current file we're editing until we've at least saved it and have its name in a dired or something, this feature would be handy. Anyways, M-n will blot out anything else that you have typed in already on that line in the minibuffer. Also it isn't a general solution in case we aren't in the minibuffer. -- http://jidanni.org/ Taiwan(04)25854780