From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: It is prompting me for a filename. I would like to fill in the current filename. Date: Wed, 10 Apr 2002 10:46:56 -0600 Organization: IHS Engineering, Electronic Systems Development Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3CB46C80.B9A37D87@ihs.com> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1018457303 9839 127.0.0.1 (10 Apr 2002 16:48:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2002 16:48:23 +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 16vLGg-0002YS-00 for ; Wed, 10 Apr 2002 18:48:23 +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 16vLGb-0001tu-00; Wed, 10 Apr 2002 12:48:17 -0400 Original-Received: from chx400.switch.ch ([130.59.10.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vLEy-0001pC-00 for ; Wed, 10 Apr 2002 12:46:36 -0400 Original-Received: from mail.fu-berlin.de ([160.45.11.165]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 16vLEx-0003xM-00 for gnu-emacs-bug@moderators.isc.org; Wed, 10 Apr 2002 18:46:35 +0200 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 18:46:34 +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 18:46:34 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 46 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1018457194 33568777 170.207.51.80 (16 [82742]) X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.7 i86pc) X-Accept-Language: en 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:548 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:548 Dan Jacobson wrote: > 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. Depress the clutch pedal before moving the gear shifter. > 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. I do NOT want Emacs manipulating the kill ring behind my back. > 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. That's an interesting idea. Perhaps a dabbrev user can implement it. > Anyways, M-n will blot out anything else that you have typed in > already on that line in the minibuffer. Either use M-n first, or kill whatever you've already typed into the minibuffer so you can yank it back after M-n. > Also it isn't a general > solution in case we aren't in the minibuffer. But your orginal bug report begins: >>Let's say we are in the minibuffer answering a C-x C-w question or a >>dired R or C question. Wouldn't it be great if there were a keystroke >>at this point to insert the current filename... as we probably just >>want to make minor adjustments to it. -- Kevin Rodgers