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 03:24:41 +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 1232159098 2164 80.91.229.12 (17 Jan 2009 02:24:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Jan 2009 02:24:58 +0000 (UTC) Cc: Emacs Bug Tracker , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 17 03:26:09 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 1LO0sy-0000hh-KV for ged-emacs-devel@m.gmane.org; Sat, 17 Jan 2009 03:26:08 +0100 Original-Received: from localhost ([127.0.0.1]:48146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LO0rh-00037G-GR for ged-emacs-devel@m.gmane.org; Fri, 16 Jan 2009 21:24:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LO0rc-00036w-CU for emacs-devel@gnu.org; Fri, 16 Jan 2009 21:24:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LO0ra-00036Z-TO for emacs-devel@gnu.org; Fri, 16 Jan 2009 21:24:44 -0500 Original-Received: from [199.232.76.173] (port=44548 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LO0ra-00036V-MM for emacs-devel@gnu.org; Fri, 16 Jan 2009 21:24:42 -0500 Original-Received: from mail-ew0-f17.google.com ([209.85.219.17]:64138) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LO0ra-00046Z-7R for emacs-devel@gnu.org; Fri, 16 Jan 2009 21:24:42 -0500 Original-Received: by ewy10 with SMTP id 10so56356ewy.18 for ; Fri, 16 Jan 2009 18:24:41 -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=ZwRS0NIqfVkKz7b7IxmLMIz2OlYvla6ak2IKqmtHFUs=; b=kS902SXNyMdTRtsLymblRmbbdU+pxtrm67uLwJGaSvcdhcqRum7FGDJfTusnvdzOrV RLcBSzN8ia/ynScAgz6ZchFmrFNxsgFFs46zDLIzPFsz+Si+1nOtDaKtSYa4mFwhCwiV 53gFsXa2AyaPi4NeOyOIaZBCoMHQKBu2q9hhQ= 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=DCm32odGfv/301TEUgY+tCtgtmVRwDFbUfbsns9KZrZ3B8dZJH4mDG4vKPS1gMavJ+ GzedOq02O0Lziys6fsmATIcnsaVVHuHEjiNVXQrTWmKFTTlXXTNzQGKtd9APHpwVMWc+ 42r9pIZQS352Ylnyv0UJ01E0z+qk0v2aDM4YQ= Original-Received: by 10.210.38.5 with SMTP id l5mr4044679ebl.58.1232159081297; Fri, 16 Jan 2009 18:24:41 -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:107922 Archived-At: On Sat, Jan 17, 2009 at 03:11, Stefan Monnier wr= ote: > Actually the raw-text part of a multibyte buffer only affects operation > when it is saved and loaded, so it can contain characters that are > not bytes. Yes, I understand that. >> 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). > > Indeed that's a bug in C-u C-x =3D. It should pay attention to the > buffer's enable-multibyte-characters and then present #xf1 not as > a latin-1 char but as a raw-byte. Well, that makes sense. I'm filing the bug report. Juanma