all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Paul R'" <paul.r.ml@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Opening file with is in killring
Date: Fri, 31 Oct 2008 07:31:35 -0700	[thread overview]
Message-ID: <001001c93b65$6125c250$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <87skqd54om.fsf@gmail.com>

> Decebal> Sometimes I have the name of a file I want to open in the
> Decebal> killring. At the moment I give c-x c-f, delete the current path
> Decebal> and then give c-y. Is there a more efficiënt way to do this?
> 
> yes, with a recent emacs you can only past, after prompt default path,
> and that should override default path. But to visit a file 
> which path is written in a buffer, you may want to use ffap
> (find-file-at-point).

Not sure what you're saying, but I think you're referring to yanking an absolute
file name, or a file name that starts with `~', after the default directory name
in the minibuffer. If so, that is not new but has been an Emacs feature for
decades. But it only works if the file name you yank is absolute or starts with
`~'.

If a relative file name (e.g. `foo.el') is in the kill ring, then I know of
nothing quicker than clearing the minibuffer and then yanking.

But I bind a key (I use `M-k') in the minibuffer keymaps to a command that
clears the minibuffer, so only two keystrokes are needed (`M-k C-y'). Without
such a binding, you can always use `C-x DEL' (`DEL' is typically the Backspace
key), which is `backward-kill-sentence', or `ESC C-backspace' or `ESC C-delete',
which are `backward-kill-sexp'. They can generally help to clear the minibuffer.





  reply	other threads:[~2008-10-31 14:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-31 10:17 Opening file with is in killring Decebal
2008-10-31 12:28 ` Paul R
2008-10-31 14:31   ` Drew Adams [this message]
2008-10-31 14:40     ` Paul R
2008-10-31 15:16       ` Drew Adams
     [not found]       ` <mailman.2573.1225466182.25473.help-gnu-emacs@gnu.org>
2008-11-01  8:27         ` Decebal
     [not found]   ` <mailman.2570.1225463508.25473.help-gnu-emacs@gnu.org>
2008-11-01  8:24     ` Decebal
2008-11-01  8:29       ` Teemu Likonen
2008-11-01 20:07         ` Decebal
2008-11-01 16:45       ` Drew Adams
     [not found]       ` <mailman.2644.1225557931.25473.help-gnu-emacs@gnu.org>
2008-11-01 20:20         ` Decebal
     [not found] ` <mailman.2561.1225456153.25473.help-gnu-emacs@gnu.org>
2008-10-31 14:39   ` Decebal
2008-11-01 13:41     ` Kevin Rodgers

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001001c93b65$6125c250$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=paul.r.ml@gmail.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.