From: "Drew Adams" <drew.adams@oracle.com>
Subject: Find file in Dired - let M-n yank name at point?
Date: Fri, 18 Aug 2006 16:50:31 -0700 [thread overview]
Message-ID: <MEEKKIABFKKDFJMPIOEBCEDJDEAA.drew.adams@oracle.com> (raw)
Just a thought, probably not well thought out -
What about binding `C-x C-f', `C-x 4 f', `C-x C-v', and so on, in Dired, to
Dired-specific commands that let you use `M-n' to yank (append)
`dired-get-file-for-visit' onto the directory name that is the
`default-filename' arg for `read-file-name'?
That is, not change the default value for these commands, which is the
directory name, but let you add the file name under the cursor to that
directory name via `M-n'.
`a', `f', `RET', `o', `e', and `mouse-2' visit the file under the cursor
quickly, but they don't let you edit the name first.
I haven't tried this yet; it just occurred to me. Don't know if it would be
a good idea, but I can't see why not. Currently, `M-n' just says there is
nothing available. Why not make this name available, and give `M-n'
something useful to do in this situation?
next reply other threads:[~2006-08-18 23:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-18 23:50 Drew Adams [this message]
2006-08-20 20:17 ` Find file in Dired - let M-n yank name at point? Drew Adams
2006-08-22 3:09 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MEEKKIABFKKDFJMPIOEBCEDJDEAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).