From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12054: 24.1; regression? font-lock no-break-space with nil nobreak-char-display Date: Sat, 03 Nov 2012 22:57:36 +0200 Message-ID: <83sj8q4d6n.fsf@gnu.org> References: <87mwyzyn76.fsf@gnu.org> <45DEAA69BC6E4630BA8DA0B07A0ECE92@us.oracle.com> <83vcdm4oby.fsf@gnu.org> <124464DE2A8F4248A1F0C156E00E815D@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1351976351 8842 80.91.229.3 (3 Nov 2012 20:59:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Nov 2012 20:59:11 +0000 (UTC) Cc: cyd@gnu.org, 12054@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 03 21:59:20 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TUkoJ-0002MX-Gp for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Nov 2012 21:59:19 +0100 Original-Received: from localhost ([::1]:52914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUkoA-000516-Ud for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Nov 2012 16:59:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUko7-00050q-SX for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2012 16:59:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUko6-0006jU-HO for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2012 16:59:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUko6-0006jN-Dm for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2012 16:59:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TUkqv-0004OC-Qj for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2012 17:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Nov 2012 21:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12054 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12054-submit@debbugs.gnu.org id=B12054.135197648616830 (code B ref 12054); Sat, 03 Nov 2012 21:02:01 +0000 Original-Received: (at 12054) by debbugs.gnu.org; 3 Nov 2012 21:01:26 +0000 Original-Received: from localhost ([127.0.0.1]:47622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUkqL-0004NO-Rh for submit@debbugs.gnu.org; Sat, 03 Nov 2012 17:01:26 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:42042) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUkqJ-0004NG-A9 for 12054@debbugs.gnu.org; Sat, 03 Nov 2012 17:01:24 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MCX00L00JJ87900@a-mtaout20.012.net.il> for 12054@debbugs.gnu.org; Sat, 03 Nov 2012 22:57:47 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MCX00KL1JK9O0F0@a-mtaout20.012.net.il>; Sat, 03 Nov 2012 22:57:46 +0200 (IST) In-reply-to: <124464DE2A8F4248A1F0C156E00E815D@us.oracle.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66413 Archived-At: > From: "Drew Adams" > Cc: , <12054@debbugs.gnu.org> > Date: Sat, 3 Nov 2012 10:22:59 -0700 > > > > Just why is it that the regexp "[\240]+" does not match this char? > > > > Because, for histerical reasons, 'insert' treats strings such as > > "\nnn" as unibyte strings. > > Sorry, I don't understand your point. My question was about the regexp (not) > matching, not about (not) being able to insert the char. It doesn't matter. "\nnn" in a string is still interpreted as unibyte. > I don't see a problem with inserting the char. As I said, the correct char gets > inserted AFAICT, as shown both by `C-u C-x =' and by Yidong's correction of the > font-lock regexp. Insertion with C-q does something different. > > It's an unfortunate dark corner, due to the ambiguity of what \240 > > really means in a string. > > That just makes it darker for me. Can you please elaborate? \240 could be taken as NBPS or as a literal byte. They have different representations in Emacs and are treated differently, but are identical numerically outside of Emacs. > 3. Why not? Why turn it around and speak of "need" to use it? > The real question is why _not_ be able to use octal syntax here? For the same reason you'd use ?a and not \141: it's more clear to the human reader. Using octal escapes for non-ASCII characters in Emacs is deprecated and dangerous. You just bumped into one danger; there are more. I suggest you avoid this notation as much as you can.