From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: status report of tar-summarize-buffer and/or set-buffer-multibyte? Date: Sun, 24 Aug 2003 19:07:16 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <16200.61636.695272.396005@tfkp07.physik.uni-erlangen.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1061911609 31043 80.91.224.253 (26 Aug 2003 15:26:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2003 15:26:49 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 26 17:26:47 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19rfiZ-0000oK-00 for ; Tue, 26 Aug 2003 17:26:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19rfi8-000143-No for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Aug 2003 11:26:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19rfes-0007EA-B2 for bug-gnu-emacs@gnu.org; Tue, 26 Aug 2003 11:22:58 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19rfeE-0006y6-GU for bug-gnu-emacs@gnu.org; Tue, 26 Aug 2003 11:22:49 -0400 Original-Received: from [131.188.3.214] (helo=max6.rrze.uni-erlangen.de) by monty-python.gnu.org with esmtp (Exim 4.20) id 19rfbl-0005hc-8T for bug-gnu-emacs@gnu.org; Tue, 26 Aug 2003 11:19:45 -0400 Original-Received: from tfkp07.physik.uni-erlangen.de by max6.rrze.uni-erlangen.de with ESMTP for bug-gnu-emacs@gnu.org; Sun, 24 Aug 2003 19:07:35 +0200 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5645 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5645 In GNU Emacs 21.2.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-04-09 on tfkp12 configured using `configure --prefix=/nfs/common --libexecdir=/nfs/common/lib --bindir=/nfs/common/lib/emacs/21.2/bin/i686-Linux --mandir=/nfs/common/share/man --infodir=/nfs/common/share/info --with-gcc --with-pop --with-x --with-x-toolkit=athena i386-pc-linux' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: POSIX 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_US locale-coding-system: iso-latin-1 default-enable-multibyte-characters: nil Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Usually tar mode is a nice tool for viewing tar files. But today, when I tried to view a moderately-sized tar file (25 Mb) it seemed to me that emacs would hang indefinitely. After a while, I figured out that the culprit was the line (set-buffer-multibyte t) in tar-summarize-buffer. On my computer this function needed about two minutes to do its job. Would it make sense here to provide a status report so that impatient people like me are not fooled to believe emacs hangs indefintely? Is this possible?? The point is that tar-mode issues the messages "Parsing tar file..." and "Parsing tar file...done" which gives the impression that the parsing was the biggest part to be done when a tar file is loaded. Apparently, this is not always correct. Roland PS: Let me know if you are interested in an example file. I don't want to send 25 Mb of junk to everybody who is reading this.