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: insert current buffer name anywhere vs. M-p M-n Date: 16 Apr 2002 12:20:31 +0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <3CB70635.620302DC@ihs.com> <3CB724F0.FBB19D10@ihs.com> Reply-To: jidanni@yam.com.tw NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018938069 18631 127.0.0.1 (16 Apr 2002 06:21:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 16 Apr 2002 06:21:09 +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 16xMKz-0004qO-00 for ; Tue, 16 Apr 2002 08:21:09 +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 16xML4-0000lk-00; Tue, 16 Apr 2002 02:21:14 -0400 Original-Received: from mailbox3.ucsd.edu ([132.239.1.55]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16xMHz-0000YW-00 for ; Tue, 16 Apr 2002 02:18:03 -0400 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox3.ucsd.edu (8.12.1/8.12.1) with ESMTP id g3G6I2Ew025545 for ; Mon, 15 Apr 2002 23:18:02 -0700 (PDT) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Tue, 16 Apr 2002 08:18:02 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Tue, 16 Apr 2002 08:18:01 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 61-227-47-122.hinet-ip.hinet.NET!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 18 X-Orig-NNTP-Posting-Host: 61-227-47-122.hinet-ip.hinet.net (61.227.47.122) X-Orig-X-Trace: fu-berlin.de 1018937881 2903682 61.227.47.122 (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:691 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:691 >> > find-alternate-file prompts with the current filename -- quite >> > helpful. However if it is in a dired wildcard directory, e,g, from C-x d >> > *.c then this doesn't work. The *.c isn't even available from M-n either. >> >> Here's a workaround to make it available via `M-n': K> Sorry, that breaks find-alternate-file outside of Dired buffers: Anyways, all the more argument for a set of keybindings that can insert the current file, or current file name, or dired file on line name, or recent-file-excluding-minibuffer-itself name, at point. C-u for full path. Wouldn't that save hacking all the different places it is needed? It could be integrated with C-x r register stuff, but care should be taken that the keystrokes don't get too long. -- http://jidanni.org/ Taiwan(04)25854780