Article View: gnu.emacs.help
Article #188743DESIRED: dired-compress on subdirectories
From: Simon Marshall
Date: Mon, 01 Jul 1991 09:23
Date: Mon, 01 Jul 1991 09:23
28 lines
2017 bytes
2017 bytes
| Has someone written a re-definition of
| dired-compress and dired-uncompress
| so that these commands work on subdirectories?
The easiest way would be to type M-! (un)compressdir dirname <RET>
in the dired buffer for the parent directory, or use dirname = . for
current directory. M-! being whatever key the function shell-command
is bound to. This is also the easiest way to implement as a
function, like:
(defun dired-compressdir ()
(interactive)
(shell-command (concat "compressdir " (dired-get-filename))))
Place cursor on offending directory in dired & either invoke by
using M-x dired-compressdir or bind a key to the function. Similarly
for dired-uncompressdir.
Note that this will wait until compressdir has finished, which
could be a long time! To do it asynchronously, you need the
background package from the elisp archive. I think it easier to just
use a *shell* buffer if you don't want the wait!
Simon.
_______________________________________________________________________________
Simon Marshall, Dept. of Computer Science, University of Hull, Hull HU6 7RX, UK
"``La la la la la la la la la'' means I love you."
Email: S.Marshall@Hull.ac.uk Phone: +44 482 465951 (office) Fax: 466666
Technical Details
Message-ID:
<9107010908.AA10218@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!sequent.cc.HUll.ac.UK!S.MarshallShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,508bcba3534c69b8,start X-Google-Attributes: gid103b8b,public X-Google-Thread: 102b9a,508bcba3534c69b8,start X-Google-Attributes: gid102b9a,public X-Google-ArrivalTime: 1991-07-01 02:41:15 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!sequent.cc.HUll.ac.UK!S.Marshall From: S.Marshall@sequent.cc.HUll.ac.UK (Simon Marshall) Newsgroups: gnu.emacs.help,comp.emacs Subject: DESIRED: dired-compress on subdirectories Message-ID: <9107010908.AA10218@life.ai.mit.edu> Date: 1 Jul 91 09:23:45 GMT Sender: daemon@cis.ohio-state.edu Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu Lines: 28