From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: No coding system in the modeline for unibyte buffers. Date: Sat, 17 Jan 2009 00:47:11 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232149648 13567 80.91.229.12 (16 Jan 2009 23:47:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 23:47:28 +0000 (UTC) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 17 00:48:40 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 1LNyQZ-0003Mn-0Z for ged-emacs-devel@m.gmane.org; Sat, 17 Jan 2009 00:48:39 +0100 Original-Received: from localhost ([127.0.0.1]:53030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNyPI-0004J8-8t for ged-emacs-devel@m.gmane.org; Fri, 16 Jan 2009 18:47:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNyPD-0004Id-5B for emacs-devel@gnu.org; Fri, 16 Jan 2009 18:47:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNyPB-0004IQ-LV for emacs-devel@gnu.org; Fri, 16 Jan 2009 18:47:14 -0500 Original-Received: from [199.232.76.173] (port=42460 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNyPB-0004IL-He for emacs-devel@gnu.org; Fri, 16 Jan 2009 18:47:13 -0500 Original-Received: from mail-ew0-f17.google.com ([209.85.219.17]:61095) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LNyPB-0002Pd-4Y for emacs-devel@gnu.org; Fri, 16 Jan 2009 18:47:13 -0500 Original-Received: by ewy10 with SMTP id 10so15047ewy.18 for ; Fri, 16 Jan 2009 15:47:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=navnfhPO2zQZTUDHlMbpu80Zcnv9o9Z08NLLy29X7O4=; b=JAgHqBALJEPGnBObB3ErsGWiDgwLjTRVUnakFOhPnKh6Dpvsp2bSx1+1OGmafX9IWr gRM17PSzQdU9lYhVigHGCOxpddxQhNNzzi0XOLF9gMn1VVmjsF5rXApP02Q/LMhhqFSF t75MZsWvJj3YLbWjaVvNqA+DVPqoEmv2muunA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mBCD5I9P8zBf6CeDTpOPPn+hqMJJi5cFVrcMyeCzsQXYIj1TbJaBl8GOthQlo8XDyE 90aWkbdoHDcTDnV6ZQ9krQUdYfb7ITAozALjbCQNjp0JXtCCSShzMC+4WFXdFmyyk4pn FAB97bFIMw5Gi6/zjb0VKBz/XUEMtk4JH2/2w= Original-Received: by 10.210.105.20 with SMTP id d20mr533574ebc.84.1232149631424; Fri, 16 Jan 2009 15:47:11 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:107917 Archived-At: On Fri, Jan 16, 2009 at 21:45, Stefan Monnier wr= ote: > Maybe the problem is that you don't realize that a unibyte buffer is > different from a multibyte buffer using raw-text (or binary) encoding? I wouldn't dismiss it. IIUC, a unibyte buffer should contain raw bytes, while a raw-text multibyte buffer would contain the same contents, converted to the internal utf-8 based Emacs representation. But I confess I'm puzzled why M-x find-file-binary test.txt M-: enable-multibyte-characters =3D> nil C-u C-x =3D ; over =C3=B1 character: (241, #o361, #xf1) preferred charset: iso-8859-1 (Latin-1 (ISO/IEC 8859-1)) code point: 0xF1 syntax: w which means: word category: j:Japanese l:Latin buffer code: #xC3 #xB1 file code: #xC3 #xB1 (encoded by coding system no-conversion) If I'm hopelessly wrong, I'm quite ready to be enlightened (and perhaps the docs will need work). Juanma