help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble getting archives to load as archives


From: Davin Pearson
Subject: Re: Trouble getting archives to load as archives
Date: Sat, 5 Jul 2008 13:37:57 +1200

2008/7/4 Thierry Volpiatto <address@hidden>:
> an other solution is to use avfs, with that you can open any archives on
> read/write mode just as any directory in dired.
> So just install avfs and set fuse in your kernel (and install fuse)
> I use this code to use it in emacs:
>
> ,----[ avfs in dired ]
> | (defun tv-dired-browse-archive ()
> |   "This function use avfs and fuse, so be sure
> | to have these programs and modules installed on your system"
> |   (interactive)
> |   (let ((file-at-point (dired-get-filename)))
> |     (if (or (equal (file-name-extension file-at-point) "gz")
> |             (equal (file-name-extension file-at-point) "bz2")
> |             (equal (file-name-extension file-at-point) "zip"))
> |         (progn
> |           (when (not (cddr (directory-files "~/.avfs")))
> |             (shell-command "mountavfs"))
> |           (find-file (concat "~/.avfs" file-at-point "#")))
> |       (find-file file-at-point))))
> | (define-key dired-mode-map (kbd "z") 'tv-dired-browse-archive)
> `----

Are you sure that it is worth the trouble installing AVS?

Have you got AVS installed on your O/S?

Are you using Linux or Windows XP? I am using XP.

-- 
Sincerely and kindest regards, Davin.
Davin Pearson http://www.davinpearson.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]