From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: dired: "!" How to see not just result, but !-cmd too? Date: Mon, 17 Jan 2005 09:40:13 -0700 Message-ID: <35283iF4giv32U1@individual.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1105980184 20088 80.91.229.6 (17 Jan 2005 16:43:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Jan 2005 16:43:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 17 17:42:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CqZxz-0005qq-00 for ; Mon, 17 Jan 2005 17:42:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cqa9q-0003eX-RE for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Jan 2005 11:55:14 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-X-Trace: individual.net L3mE4iw/geVFqnGGzkAr1QAc9TXMTUqOu6qfjzY/FCP8gNGs8= User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:127941 Original-To: help-gnu-emacs@gnu.org 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 Xref: main.gmane.org gmane.emacs.help:23428 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23428 David Combs wrote: > Problem: the dired "!"-cmd leaves only it's *output* in *Shell Command > Output*; sure be nice if it also left the *command* (and args) that > got *executed*. > > So that if you come back to that buffer later on, there's > no question as to what !-cmd you did "way back then" > to *create* the buffer! You can access previous shell commands at the `!' prompt via `M-p'. If you want to keep each Dired buffer's commands separate from other shell commands, try this: (add-hook 'dired-mode-hook (lambda () (make-local-variable 'shell-command-history))) -- Kevin Rodgers