all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: two dired questions
Date: Thu, 04 Mar 2010 15:15:45 +0100	[thread overview]
Message-ID: <87r5o0cgvi.fsf@lola.goethe.zz> (raw)
In-Reply-To: eZWdnZc7TfykIhLWnZ2dnUVZ_tSdnZ2d@sysmatrix.net

"B. T. Raven" <nihil@nihilo.net> writes:

> i.
> Is there a function or, better yet, a keychord that backspaces (by
> erasing) subdirectory components in the minibuffer. So, if the current
> directory is deeply embedded in the file hierarchy, can I hit a key
> combo to move backwards (upwards toward the root) in the directory tree:
>
> c:\abc\def\ghi\jkl
> becomes
> c:\abc\def\ghi
> then
> c:\abc\def
>

M-DEL (translated from <M-backspace>) runs the command
backward-kill-word, which is an interactive compiled Lisp function in
`simple.el'.

It is bound to <C-backspace>, M-DEL.

(backward-kill-word ARG)

Kill characters backward until encountering the beginning of a word.
With argument ARG, do this that many times.


> ii.
> Is there a setting that overwrites the dired buffer with the new one
> navigated to (or alternatively kills the one navigated from), so that
> there is only one dired buffer at a time instead of a long trail of them?

dired-find-alternate-file is an interactive compiled Lisp function in
`dired.el'.

(dired-find-alternate-file)

In Dired, visit this file or directory instead of the dired buffer.

[back]

Or more generally:

C-x C-v runs the command find-alternate-file, which is an interactive
compiled Lisp function in `files.el'.

It is bound to C-x C-v.

(find-alternate-file FILENAME &optional WILDCARDS)

Find file FILENAME, select its buffer, kill previous buffer.




-- 
David Kastrup


  reply	other threads:[~2010-03-04 14:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-04 14:10 two dired questions B. T. Raven
2010-03-04 14:15 ` David Kastrup [this message]
2010-03-04 17:52   ` B. T. Raven
2010-05-04 16:50     ` Drew Adams
2010-03-04 17:48 ` José A. Romero L.
2010-03-05 18:48 ` jpkotta
2010-03-07 19:27 ` Colin S. Miller
2010-03-08  4:02   ` B. T. Raven
2010-03-08 22:28     ` Colin S. Miller

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=87r5o0cgvi.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.