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: No coding system in the modeline for unibyte buffers. Date: Fri, 16 Jan 2009 16:59:48 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232121689 17809 80.91.229.12 (16 Jan 2009 16:01:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 16:01:29 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 16 17:02:41 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 1LNr9Q-0006vM-5J for ged-emacs-devel@m.gmane.org; Fri, 16 Jan 2009 17:02:29 +0100 Original-Received: from localhost ([127.0.0.1]:57330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNr89-0007Kv-HG for ged-emacs-devel@m.gmane.org; Fri, 16 Jan 2009 11:01:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNr6u-0005rL-Pf for emacs-devel@gnu.org; Fri, 16 Jan 2009 10:59:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNr6s-0005oJ-ME for emacs-devel@gnu.org; Fri, 16 Jan 2009 10:59:52 -0500 Original-Received: from [199.232.76.173] (port=44183 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNr6s-0005o8-6A for emacs-devel@gnu.org; Fri, 16 Jan 2009 10:59:50 -0500 Original-Received: from mail-ew0-f17.google.com ([209.85.219.17]:35656) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LNr6r-0000HM-Kb for emacs-devel@gnu.org; Fri, 16 Jan 2009 10:59:49 -0500 Original-Received: by ewy10 with SMTP id 10so318867ewy.18 for ; Fri, 16 Jan 2009 07:59:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=UhpPV/J02E/R2PGb/GjaH+YFtGugH1IzRg4Wb7BRtIA=; b=BKB6dXOh+vziE69vh2PQe17Bw9y6VrPsc1fmaI0HorODMKs0NWkTdvhQMOHA1MT1kg i+I9iFzU3r7Il1lGSIs3VCTqE3JtTlOjTr8Jh4pKLpt84nCvVBRC0HnznSNqmZczXyJB B3cZw4xS9Kmm+ENisffG8MoY/UBJoeI1fgys4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ICCPrxQYb2ituKt1q2w3DwLqortAkJYL2dRqfvxj9LoFy2529XQvChPFwu0DqDOsXV /QP1nWJho1S7XT2iKVH6Ar4uTF3pv6DoFb18CLz9Eq2aQLriujqSh+sl1J3bql43y2BD 5AmIAtPPe/tqn4caWzgcpLyRjuinUr91Jooyg= Original-Received: by 10.210.90.10 with SMTP id n10mr3316808ebb.135.1232121588712; Fri, 16 Jan 2009 07:59:48 -0800 (PST) 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:107904 Archived-At: Obviously, not a bug: 1997-07-29 Richard Stallman * xdisp.c (decode_mode_spec_coding): If multibyte chars disabled. display only the eol flag. But, why? Currently, C-x C-b new -*- coding: raw-text-unix -*- C-x C-s new.txt ;; -t(Unix)--- new.txt [etc] C-x C-k C-x C-f new.txt ;; -(Unix)--- new.txt [etc] which works as expected but it's weird. Is there any downside to just removing the code that forces that behavior? Juanma Index: src/xdisp.c =================================================================== RCS file: /sources/emacs/emacs/src/xdisp.c,v retrieving revision 1.1275 diff -u -2 -r1.1275 xdisp.c --- src/xdisp.c 10 Jan 2009 18:41:07 -0000 1.1275 +++ src/xdisp.c 16 Jan 2009 12:24:56 -0000 @@ -18238,5 +18238,4 @@ { Lisp_Object val; - int multibyte = !NILP (current_buffer->enable_multibyte_characters); const unsigned char *eol_str; int eol_str_len; @@ -18249,6 +18248,5 @@ if (!VECTORP (val)) /* Not yet decided. */ { - if (multibyte) - *buf++ = '-'; + *buf++ = '-'; if (eol_flag) eoltype = eol_mnemonic_undecided; @@ -18263,6 +18261,5 @@ eolvalue = AREF (val, 2); - if (multibyte) - *buf++ = XFASTINT (CODING_ATTR_MNEMONIC (attrs)); + *buf++ = XFASTINT (CODING_ATTR_MNEMONIC (attrs)); if (eol_flag)