GNU bug report logs - #13110
24.1; Problem chaining archive-mode and tar-mode.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Mihir <mihir.cs.iitd@HIDDEN>; dated Fri, 7 Dec 2012 01:57:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 13110 <at> debbugs.gnu.org:


Received: (at 13110) by debbugs.gnu.org; 7 Dec 2012 03:14:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 06 22:14:30 2012
Received: from localhost ([127.0.0.1]:57568 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TgoOU-00027s-DM
	for submit <at> debbugs.gnu.org; Thu, 06 Dec 2012 22:14:30 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:49865)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1TgoOS-00027k-Ow
	for 13110 <at> debbugs.gnu.org; Thu, 06 Dec 2012 22:14:29 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAG6Zu09soXOY/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOIQppxgViDBw
X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="209262959"
Received: from 108-161-115-152.dsl.teksavvy.com (HELO pastel.home)
	([108.161.115.152])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	06 Dec 2012 22:14:11 -0500
Received: by pastel.home (Postfix, from userid 20848)
	id DEB1658F5C; Thu,  6 Dec 2012 22:14:10 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Mihir <mihir.cs.iitd@HIDDEN>
Subject: Re: bug#13110: 24.1; Problem chaining archive-mode and tar-mode.
Message-ID: <jwv624eimj4.fsf-monnier+emacs@HIDDEN>
References: <87boe6my7t.fsf@HIDDEN>
Date: Thu, 06 Dec 2012 22:14:10 -0500
In-Reply-To: <87boe6my7t.fsf@HIDDEN> (Mihir's message of "Fri,
	07 Dec 2012 07:15:42 +0530")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 13110
Cc: 13110 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.0 (/)

> I was editing a debian binary package (.deb). Finding the file opens it
> in archive-mode, then finding the file 'data.tar.gz' opens it in
> tar-mode. I proceeded to edit the file, which produced a warning message
> reminding me to go and save the buffer for 'data.tar.gz'. However, when
> I attempted to save the buffer for 'data.tar.gz', I got an error message
> saying, "Symbol's value as variable is void: archive-ar-write-file-member".

> I think this is because of a conflict between the hooks added to
> 'write-file-functions' by archive-mode and tar-mode. I notice this is
> handled in archive-mode by this line in arc-mode.el:

There might be such a conflict, indeed (I don't know how well tarballs
inside archives are handled), but arc-mode.el does not support writing
to ar archives anyway.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13110; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Dec 2012 01:56:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 06 20:56:37 2012
Received: from localhost ([127.0.0.1]:57550 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TgnB6-0007yI-7z
	for submit <at> debbugs.gnu.org; Thu, 06 Dec 2012 20:56:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53390)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <mihirthegenius@HIDDEN>) id 1Tgn1j-0007jx-5M
	for submit <at> debbugs.gnu.org; Thu, 06 Dec 2012 20:46:56 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mihirthegenius@HIDDEN>) id 1Tgn1N-0005lY-KN
	for submit <at> debbugs.gnu.org; Thu, 06 Dec 2012 20:46:39 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:51689)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mihirthegenius@HIDDEN>) id 1Tgn1N-0005lU-HG
	for submit <at> debbugs.gnu.org; Thu, 06 Dec 2012 20:46:33 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36510)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mihirthegenius@HIDDEN>) id 1Tgn1J-0001sZ-FL
	for bug-gnu-emacs@HIDDEN; Thu, 06 Dec 2012 20:46:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mihirthegenius@HIDDEN>) id 1Tgn1F-0005l3-7a
	for bug-gnu-emacs@HIDDEN; Thu, 06 Dec 2012 20:46:29 -0500
Received: from mail-pa0-f41.google.com ([209.85.220.41]:55051)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mihirthegenius@HIDDEN>) id 1Tgn1E-0005kq-RC
	for bug-gnu-emacs@HIDDEN; Thu, 06 Dec 2012 20:46:25 -0500
Received: by mail-pa0-f41.google.com with SMTP id bj3so79781pad.0
	for <bug-gnu-emacs@HIDDEN>; Thu, 06 Dec 2012 17:46:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:from:to:subject:date:message-id:mime-version:content-type;
	bh=VJztZwAWbD8gaDS1IBjKNE+f5XJm6A8CuSIXHFKIrXs=;
	b=ugFnAjGKyo5mB7I2v0jR1fGlBQs+/PdoGxv4ptKRAMkkXy6R0D1cK0Maf1NlYc2C3g
	phzZn6BNp0RqHF+fjH2zZEp5cF+dtwgxwzXfT50xSo/Wm6TGBpBNuKYBHkb98E8M8y08
	6Fv/DG6oBhFAkLfVGu+iRfOKIOrscgSFrEevKS068W4uj6eFDEr2GNyONX89UKY7O3ZZ
	FWdZhv7L9EJpyK+iVrkfitup4y86JIwDK0xemdJV4+AUHrFJNvg2EACQyZ6fY+T/8OTq
	YmQL5uaRBSIsBVtNtqbX+4JH+Qh1keK3zUZbLk+m3h3xGnoQMM4+pYjyOLCyWqk3tmpx
	1vvA==
Received: by 10.66.82.230 with SMTP id l6mr8554258pay.12.1354844782254;
	Thu, 06 Dec 2012 17:46:22 -0800 (PST)
Received: from ubuntu.ubuntu-domain ([117.215.98.60])
	by mx.google.com with ESMTPS id uq5sm5699917pbc.56.2012.12.06.17.46.19
	(version=TLSv1/SSLv3 cipher=OTHER);
	Thu, 06 Dec 2012 17:46:21 -0800 (PST)
From: Mihir <mihir.cs.iitd@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.1; Problem chaining archive-mode and tar-mode.
Date: Fri, 07 Dec 2012 07:15:42 +0530
Message-ID: <87boe6my7t.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 06 Dec 2012 20:56:35 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

I was editing a debian binary package (.deb). Finding the file opens it
in archive-mode, then finding the file 'data.tar.gz' opens it in
tar-mode. I proceeded to edit the file, which produced a warning message
reminding me to go and save the buffer for 'data.tar.gz'. However, when
I attempted to save the buffer for 'data.tar.gz', I got an error message
saying, "Symbol's value as variable is void: archive-ar-write-file-member".

I think this is because of a conflict between the hooks added to
'write-file-functions' by archive-mode and tar-mode. I notice this is
handled in archive-mode by this line in arc-mode.el:

(remove-hook 'write-contents-functions 'archive-write-file t))

which suggests that a similar fix might help in this case.

I am aware that it is better practice to simply regenerate the .deb
file, but this is a bug in Emacs nonetheless.



In GNU Emacs 24.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-10-31 on ubuntu, modified by Debian
Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-Wall -O2'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -g -g'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  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_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
ESC [ > 1 ; 3 2 0 1 ; 0 c

Recent messages:
("emacs" "-f" "report-emacs-bug")
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
/etc/emacs/xcscope hides /usr/share/emacs/24.1/site-lisp/cscope/xcscope
/usr/share/emacs/24.1/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/etc/emacs/xcscope hides /usr/share/emacs/site-lisp/xcscope
/usr/share/emacs/24.1/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs/24.1/site-lisp/flim/hex-util hides /usr/share/emacs/24.1/lisp/hex-util
/usr/share/emacs/24.1/site-lisp/flim/md4 hides /usr/share/emacs/24.1/lisp/md4
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.1/lisp/textmodes/rst
/usr/share/emacs/24.1/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.1/lisp/textmodes/ispell
/usr/share/emacs/24.1/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.1/lisp/textmodes/flyspell
/usr/share/emacs/24.1/site-lisp/flim/ntlm hides /usr/share/emacs/24.1/lisp/net/ntlm
/usr/share/emacs/24.1/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.1/lisp/net/hmac-md5
/usr/share/emacs/24.1/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.1/lisp/net/sasl-ntlm
/usr/share/emacs/24.1/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.1/lisp/net/sasl-cram
/usr/share/emacs/24.1/site-lisp/flim/hmac-def hides /usr/share/emacs/24.1/lisp/net/hmac-def
/usr/share/emacs/24.1/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.1/lisp/net/sasl-digest
/usr/share/emacs/24.1/site-lisp/flim/sasl hides /usr/share/emacs/24.1/lisp/net/sasl

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)




Acknowledgement sent to Mihir <mihir.cs.iitd@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#13110; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.