From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Displaying bytes (was: Inadequate documentation of silly Date: Tue, 24 Nov 2009 21:29:59 -0500 Message-ID: References: <20091119155848.GB1314@muc.de> <87aayiihe9.fsf@lola.goethe.zz> <20091119180848.GE1314@muc.de> <47325.130.55.118.19.1258658705.squirrel@webmail.lanl.gov> <20091119212550.GG1314@muc.de> <87my2ign8u.fsf@lola.goethe.zz> <912155b0911231334s2b52e8eq864251c9aed386b3@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259116227 26636 80.91.229.12 (25 Nov 2009 02:30:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2009 02:30:27 +0000 (UTC) Cc: per.starback@gmail.com, dak@gnu.org, rms@gnu.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 25 03:30:19 2009 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 1ND7e6-0005OD-D9 for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2009 03:30:18 +0100 Original-Received: from localhost ([127.0.0.1]:60197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ND7e5-0006eM-Nv for ged-emacs-devel@m.gmane.org; Tue, 24 Nov 2009 21:30:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ND7e0-0006dz-Gq for emacs-devel@gnu.org; Tue, 24 Nov 2009 21:30:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ND7dv-0006dQ-4I for emacs-devel@gnu.org; Tue, 24 Nov 2009 21:30:11 -0500 Original-Received: from [199.232.76.173] (port=59933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ND7du-0006dN-SL for emacs-devel@gnu.org; Tue, 24 Nov 2009 21:30:06 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:53259 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ND7do-0004h8-UJ; Tue, 24 Nov 2009 21:30:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EAP8kDEtFpYc//2dsb2JhbACBTNRHhDkEgxmGcA X-IronPort-AV: E=Sophos;i="4.47,282,1257138000"; d="scan'208";a="49966562" Original-Received: from 69-165-135-63.dsl.teksavvy.com (HELO ceviche.home) ([69.165.135.63]) by ironport2-out.pppoe.ca with ESMTP; 24 Nov 2009 21:30:00 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id CE1A5B40D8; Tue, 24 Nov 2009 21:29:59 -0500 (EST) In-Reply-To: (Kenichi Handa's message of "Wed, 25 Nov 2009 10:33:54 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:117724 Archived-At: >> If so, should we change the default priorities? > I'm not sure. As it seems that windows-1252 is a superset of > iso-8859-1, it may be ok to give windows-1252 the higher priority. > How do iso-8859-1 users think? The problem with windows-1252 is that all files are valid in that coding-system. So it's OK if there's a really high chance of encountering such files, but otherwise it leads to many misdetections. > For that, it seems that adding that facility in > after-insert-file-set-coding is good. Here's a sample patch. The > actual change should give more information to a user. Maybe we could try that. But I really dislike adding a user-prompt in the middle of some operation that might be performed as part of something "unrelated". And indeed the actual change may need to give a lot more information, mostly displaying the buffer without which the user cannot make a good guess. Stefan