From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.bugs Subject: bug#7252: hexl-revert-buffer Date: Fri, 22 Oct 2010 10:15:16 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1287709975 1787 80.91.229.12 (22 Oct 2010 01:12:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Oct 2010 01:12:55 +0000 (UTC) Cc: 7252@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 22 03:12:52 2010 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.69) (envelope-from ) id 1P96Bf-0000pi-Rn for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Oct 2010 03:12:52 +0200 Original-Received: from localhost ([127.0.0.1]:54676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P96Bf-0006A7-7P for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Oct 2010 21:12:51 -0400 Original-Received: from [140.186.70.92] (port=51961 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P96BX-00068w-6F for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 21:12:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P96BV-0001mX-Vi for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 21:12:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P96BV-0001mS-U7 for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 21:12:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P9670-0005RL-Cl; Thu, 21 Oct 2010 21:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daiki Ueno Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Oct 2010 01:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7252 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7252-submit@debbugs.gnu.org id=B7252.128770967020904 (code B ref 7252); Fri, 22 Oct 2010 01:08:02 +0000 Original-Received: (at 7252) by debbugs.gnu.org; 22 Oct 2010 01:07:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P966o-0005R7-5S for submit@debbugs.gnu.org; Thu, 21 Oct 2010 21:07:50 -0400 Original-Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1P966m-0005R2-4p for 7252@debbugs.gnu.org; Thu, 21 Oct 2010 21:07:49 -0400 Original-Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Fri, 22 Oct 2010 10:11:37 +0900 Original-Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id o9M1BX8H012128; Fri, 22 Oct 2010 10:11:35 +0900 In-Reply-To: (Stefan Monnier's message of "Thu, 21 Oct 2010 13:53:08 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Oct 2010 21:08:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:41060 Archived-At: Stefan Monnier writes: > Actually, I see now that, while your patch is going in the right > direction, the problem is deeper. E.g. M-x find-file-literally RET > foo.tar.gz RET does the right thing but M-x revert-buffer RET in it > ignores the "literally" part and gives you a tar-mode view of the file. Right, but my personal feeling is that typical users would not expect such a "literally"-ness of revert-buffer when the file is opened with M-x find-file-literally, unlike with M-x hexl-find-file. With M-x find-file-literally user's intension would be to quick look at the raw content. In that case he might do M-x revert-buffer to "go back to the normal view of that file" and expect auto-mode conversion. However, with M-x hexl-find-file user's intension would be to analyze the file format or edit the raw content. In that case auto-mode conversion is definitely unwanted. Perhaps it might be better to bring this up in emacs-devel. Regards, -- Daiki Ueno