From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: two dired questions Date: Thu, 04 Mar 2010 11:52:24 -0600 Message-ID: References: <87r5o0cgvi.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272988870 31607 80.91.229.12 (4 May 2010 16:01:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 16:01:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 18:01:08 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9KYQ-0001vu-Kr for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 18:01:02 +0200 Original-Received: from localhost ([127.0.0.1]:50798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9KYN-0006pv-LQ for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 12:00:59 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 04 Mar 2010 11:52:17 -0600 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Newsgroups: gnu.emacs.help In-Reply-To: <87r5o0cgvi.fsf@lola.goethe.zz> X-No-Archive: yes Original-Lines: 72 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.132.228 Original-X-Trace: sv3-O0EbNbpU/RcfCFiMPVuhbFvApJptykxmHQjp/zsWINYfflHDzv+L8zMazEXX47ru69yMUlBo12XjZzK!ypjkzPufR9SEp6go5c+SLhfderTpLY96mKYSOT3+2LMjc9rFypqd+lgP8dEQ8ZbAqeUvbVfmXC6Z!JNowx6RpsI+993tv/eRLzU6Oma6+96w= Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: usenet.stanford.edu gnu.emacs.help:177353 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Gmane-Expiry: 2010-05-18 Xref: news.gmane.org gmane.emacs.help:72905 Archived-At: David Kastrup wrote: > "B. T. Raven" 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 ) runs the command > backward-kill-word, which is an interactive compiled Lisp function in > `simple.el'. > > It is bound to , M-DEL. > > (backward-kill-word ARG) > > Kill characters backward until encountering the beginning of a word. > With argument ARG, do this that many times. Thanks, David. I think I knew this once but learning something new knocked it out of my mind. I have customized use-file-dialog t for a long time but now I want use the keyboad as much as possible. To punish my obliviousness, I ran another 10 minute session of keywiz.el. > > >> 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. I know that I can press 'a' instead of RET on a directory line in dired to overwrite the buffer with the new directory but I wanted something like: (put 'dired-find-alternate-file 'disabled nil) to make the behavior more hard-wired. Unfortuneately this didn't work on w32 22.3 dired+.el would probably work for me but that seems like overkill. Thanks again, Ed