From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simias Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; hexl-mode and auto-revert-mode incompatibilities Date: Tue, 22 Jan 2008 03:06:45 +0100 Message-ID: <86wsq2txze.fsf@simias.hd.free.fr> References: <8663xouegy.fsf@simias.hd.free.fr> <4794A050.3000902@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200974490 8000 80.91.229.12 (22 Jan 2008 04:01:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jan 2008 04:01:30 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 22 05:01:49 2008 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.50) id 1JHAKX-0004MM-Pf for ged-emacs-devel@m.gmane.org; Tue, 22 Jan 2008 05:01:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHAK8-0007qz-8n for ged-emacs-devel@m.gmane.org; Mon, 21 Jan 2008 23:01:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JH8Xb-00039M-W2 for emacs-devel@gnu.org; Mon, 21 Jan 2008 21:07:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JH8XZ-00037x-Qv for emacs-devel@gnu.org; Mon, 21 Jan 2008 21:07:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JH8XZ-00037i-KT for emacs-devel@gnu.org; Mon, 21 Jan 2008 21:07:05 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JH8XZ-0006Ql-Aj for emacs-devel@gnu.org; Mon, 21 Jan 2008 21:07:05 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JH8XZ-0003eT-2B for emacs-pretest-bug@gnu.org; Mon, 21 Jan 2008 21:07:05 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JH8XW-0006Q3-3a for emacs-pretest-bug@gnu.org; Mon, 21 Jan 2008 21:07:05 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.170]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JH8XV-0006Pu-Mb for emacs-pretest-bug@gnu.org; Mon, 21 Jan 2008 21:07:01 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so1085448ugf.48 for ; Mon, 21 Jan 2008 18:06:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=a5Cp+HmQQ8KD5446kgqdQlmcBQrsA6q3vVlku3UGMVY=; b=EXG5J376KQ2Bpbgr/i/EPFCU+xtuZWhss9U5l7YOanCjRPqIjrM1pkDRKqJvRvTt3dW1RUD5gjUAp0omYAEEP+a2WMZ9eBAM0aIKiQkz0d5FHd42UFIdB7ewzoKP1co9+JR45KY7nxsW7ozX4YG6rICZvxYRqY+oCo8RFcl3GZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=Ef8mxtL89aR2tyYIO83+qPXRnF678ZTkmPmDMsSHzwAznxKuiJXGZU1Sd5C8qCi1olnScD8hh3TJkN1wOjW36HOchZDJjV2XDm6f6QUsjptNYa66U4AsOFmjoPrWbUuQYBMnduJyKMPrAybKbyggOL73l2afvcFKfowbUyokGeY= Original-Received: by 10.66.250.18 with SMTP id x18mr5407320ugh.79.1200967619635; Mon, 21 Jan 2008 18:06:59 -0800 (PST) Original-Received: from simias.hd.free.fr ( [82.243.51.8]) by mx.google.com with ESMTPS id k30sm21519234ugc.53.2008.01.21.18.06.57 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Jan 2008 18:06:58 -0800 (PST) In-Reply-To: <4794A050.3000902@gmx.at> (martin rudalics's message of "Mon, 21 Jan 2008 14:38:24 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (berkeley-unix) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 21 Jan 2008 23:01:16 -0500 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:87272 gmane.emacs.pretest.bugs:20717 Archived-At: martin rudalics writes: >> If I open a file in emacs, enable both hexl-mode and >> auto-revert-mode in its buffer and then modify the content of the file >> externally, the buffer gets refreshed but its content seems... rather >> littered. C-l doesn't fix it. >> >> I have similar problems with "auto-revert-tail-mode", but not when I >> revert the buffer "manually" with M-x revert-buffer. >> >> It seems that when the buffer gets refreshed, it behaves as if >> hexl-mode was not here (for instance with auto-revert-tail-mode, it >> just appends the text, without printing the hex values) but I'm not >> sure about what's going on here. > > It's because `auto-revert-mode' doesn't reset the major mode when > reverting the buffer and `hexl-mode' does nothing when the buffer is > already in `hexl-mode'. Does the attached patch give good results? > *** hexl.el.~1.115.~ Sat Oct 27 12:07:12 2007 > --- hexl.el Mon Jan 21 14:32:58 2008 [...] Thank you for investigating this. It does for auto-revert-mode (everything seems to work fine), however with auto-revert-tail-mode it's even more broken. When I append to a file externally and both auto-revert-tail-mode and hexl-mode are activated, first emacs tells me: "Converting to hexl format discards undo info; ok? (y or n)", and when I answer "yes" the buffer fills with gibberish. Thanks again, -- Simias