From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: trentbuck@gmail.com Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2353: 23.0.90; jka-compr: LZMA support Date: Mon, 16 Feb 2009 22:36:49 -0800 (PST) Message-ID: <499a5b01.0f98600a.516d.36ee@mx.google.com> Reply-To: trentbuck@gmail.com, 2353@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234854281 1462 80.91.229.12 (17 Feb 2009 07:04:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2009 07:04:41 +0000 (UTC) Cc: rfrancoise@debian.org To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 17 08:05:56 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LZK0v-0000ZR-Ej for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2009 08:05:25 +0100 Original-Received: from localhost ([127.0.0.1]:41894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZJza-0002ks-Ib for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2009 02:03:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZJzX-0002jZ-1C for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 02:03:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZJzW-0002j2-40 for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 02:03:38 -0500 Original-Received: from [199.232.76.173] (port=37610 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZJzW-0002iz-1J for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 02:03:38 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52628) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZJzV-0006NM-Br for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2009 02:03:37 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1H73Zjv007122; Mon, 16 Feb 2009 23:03:35 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1H6j3IU002571; Mon, 16 Feb 2009 22:45:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: trentbuck@gmail.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 17 Feb 2009 06:45:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2353 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12348526181222 (code B ref -1); Tue, 17 Feb 2009 06:45:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 17 Feb 2009 06:36:58 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1H6at8j001216 for ; Mon, 16 Feb 2009 22:36:56 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:51632) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LZJXd-000897-Lf for emacs-pretest-bug@gnu.org; Tue, 17 Feb 2009 01:34:49 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LZJZd-00023H-4K for emacs-pretest-bug@gnu.org; Tue, 17 Feb 2009 01:36:54 -0500 Original-Received: from rv-out-0708.google.com ([209.85.198.251]:62947) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZJZc-00023B-LL for emacs-pretest-bug@gnu.org; Tue, 17 Feb 2009 01:36:53 -0500 Original-Received: by rv-out-0708.google.com with SMTP id f25so2371814rvb.6 for ; Mon, 16 Feb 2009 22:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:cc :subject; bh=3XJd9hzDcRV0Q9jv4cprIC/RmLqdLaXULQpDO4qYcRQ=; b=VCzjbIhJsc7FQZs6Ii/st+GkoEDCYg5gg1HBG9SGauVt77x46k5oxtJ6EJ5GBNqnhN NNBHxtelSKQ3oKEgxz83CGz+PXG17sIDG6G4gBRDHCPuT9nychIDU0GqL7b2+bw3jZ5x IP6i8JHwXVXw/Bf4+GlWpToV0nrZl1TyaT7YQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject; b=pzDOfBmD37COm38PCq/TAxjMELSmbKgeZxeh/oWivJbKseB6AD5Xw4R8ZPTR2QUVD7 O6VLQWhG1nzrPcahsttfwck/mTjZWwGBDRyqSeXjLFD/6aZrOug9mXmjXGXKeOnz/oHK WlduBmOBplP6JclVO4mY4o7NvjZQjYfMsvH3o= Original-Received: by 10.114.197.10 with SMTP id u10mr1080297waf.96.1234852609328; Mon, 16 Feb 2009 22:36:49 -0800 (PST) Original-Received: from localhost (nat064.cyber.com.au [203.7.155.64]) by mx.google.com with ESMTPS id z15sm9238140pod.14.2009.02.16.22.36.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Feb 2009 22:36:49 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 17 Feb 2009 02:03:38 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25352 gmane.emacs.pretest.bugs:23922 Archived-At: >From lzma(1): LZMA (Lempel-Ziv-Markov chain-Algorithm) is an improved version of famous LZ77 compression algorithm. It was improved in way of maximum increasing of compression ratio, keeping high decompression speed and low memory requirements for decompressing. This seems to work such that foo.tar.lzma can be opened happily by Emacs. I suggest adding it to the default list in jka-compr.el. (progn (add-to-list 'jka-compr-compression-info-list ["\\.lzma\\(~\\|\\.~[0-9]+~\\)?\\'" nil "lzma" nil nil "unlzma" nil nil t ""]) (jka-compr-set 'jka-compr-compression-info-list jka-compr-compression-info-list)) PS: I'm not sure whether to use nil or "" for this case: there is no reliable magic for lzma files. From my /usr/share/file/magic: # URL: http://www.7-zip.org/sdk.html # From: Robert Millan and Reuben Thomas # Commented out because apparently not reliable (according to Debian # bug #364260) #0 string ]\000\000\200\000 LZMA compressed data In GNU Emacs 23.0.90.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2009-02-07 on elegiac, modified by Debian (emacs-snapshot package, version 1:20090207-1) configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.90/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.90/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t eldoc-mode: t paredit-mode: t shell-dirtrack-mode: t rcirc-track-minor-mode: t savehist-mode: t icomplete-mode: t partial-completion-mode: t show-paren-mode: t delete-selection-mode: t tooltip-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC x i r c C-j ESC x g n u s RET q y C-c C-@ C-c C-l ESC o ESC a C-c C-@ C-c C-@ C-c C-@ C-c C-@ C-c C-@ C-c C-@ C-x C-f ~ / V C S / C-j C-h C-s ESC O B ESC O B ESC > C-x C-f ~ / . e m a c s RET ESC O A ESC O A ESC [ 1 ~ ESC O A C-@ ESC O B ESC O B ESC O B ESC O B ESC w ESC x r e p o r t SPC e m a c s RET Recent messages: Opening nndoc server on gnus-help...done Checking new news...done Are you sure you want to quit reading news? (y or n) (No changes need to be saved) Activity in this buffer is low priority Rcirc-Omit mode enabled Loading tramp...done Mark set Followed link to /home/twb/Preferences/.emacs Mark set