From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.devel Subject: Modernize the default list of archives supported by dired guesses Date: Sun, 27 Feb 2011 16:07:25 +0100 Message-ID: <87fwr9ldn6.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298820550 6193 80.91.229.12 (27 Feb 2011 15:29:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Feb 2011 15:29:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 27 16:29:06 2011 Return-path: Envelope-to: ged-emacs-devel@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 1PtiYO-0002ef-3z for ged-emacs-devel@m.gmane.org; Sun, 27 Feb 2011 16:29:00 +0100 Original-Received: from localhost ([127.0.0.1]:60055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtiDu-0001tA-Dp for ged-emacs-devel@m.gmane.org; Sun, 27 Feb 2011 10:07:50 -0500 Original-Received: from [140.186.70.92] (port=60838 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtiDl-0001qu-89 for emacs-devel@gnu.org; Sun, 27 Feb 2011 10:07:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtiDk-00024C-9w for emacs-devel@gnu.org; Sun, 27 Feb 2011 10:07:41 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:47007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtiDk-00023r-4K for emacs-devel@gnu.org; Sun, 27 Feb 2011 10:07:40 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PtiDi-0008Te-0r for emacs-devel@gnu.org; Sun, 27 Feb 2011 16:07:38 +0100 Original-Received: from ney92-7-78-233-218-202.fbx.proxad.net ([78.233.218.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Feb 2011 16:07:38 +0100 Original-Received: from antoine.levitt by ney92-7-78-233-218-202.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Feb 2011 16:07:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ney92-7-78-233-218-202.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136578 Archived-At: Here's a trivial patch to add 7z and unrar (both free software) to the list of guessed archivers. Can you merge it? Antoine diff --git a/lisp/dired-x.el b/lisp/dired-x.el index ce07676..6ed3cd1 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el @@ -988,6 +988,8 @@ replace it with a dir-locals-file `./%s'" '("\\.lzh$" "lharc x") '("\\.arc$" "arc x") '("\\.shar$" "unshar") + '("\\.rar$" "unrar x") + '("\\.7z$" "7z x") ;; Compression. (list "\\.g?z$" '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q")))