From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: longlines-mode: font-lock fails (in outline-mode) Date: Thu, 30 Jun 2005 00:38:21 +0100 Message-ID: <13A5DB2D-289D-40A6-88C8-D2DEE72F5BFF@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120089087 18984 80.91.229.2 (29 Jun 2005 23:51:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2005 23:51:27 +0000 (UTC) Cc: cyd@stupidchicken.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 01:51:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DnmKt-0003PK-MZ for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2005 01:51:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DnmT2-00089i-CC for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2005 19:59:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DnmQe-0007P2-KR for emacs-devel@gnu.org; Wed, 29 Jun 2005 19:57:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DnmQd-0007Oc-Bg for emacs-devel@gnu.org; Wed, 29 Jun 2005 19:57:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DnmPj-0006iy-CH for emacs-devel@gnu.org; Wed, 29 Jun 2005 19:56:19 -0400 Original-Received: from [64.233.170.196] (helo=rproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DnmDZ-00057A-KZ for emacs-devel@gnu.org; Wed, 29 Jun 2005 19:43:45 -0400 Original-Received: by rproxy.gmail.com with SMTP id c16so15404rne for ; Wed, 29 Jun 2005 16:38:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=LXwp/JP3caSzW4ppkXvn2QhnHYdJk9WdeAiym1XiNQ3th6hB91CYv7hoybA7ngho4DlBNfH/68b06wXWx7+9jhCfyjgJoADX+YmdngU2kWwmklEflG0/3GZ4G8LITGy815ymtMDrzbM81TZ251MXTbw4Vbzgkgy8E0e3rpnPh7U= Original-Received: by 10.38.76.74 with SMTP id y74mr141706rna; Wed, 29 Jun 2005 16:38:48 -0700 (PDT) Original-Received: from ?10.0.0.60? ([82.26.162.130]) by mx.gmail.com with ESMTP id g2sm142986rne.2005.06.29.16.38.24; Wed, 29 Jun 2005 16:38:48 -0700 (PDT) Original-To: emacs-devel@gnu.org X-Mailer: Apple Mail (2.730) 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:39916 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39916 Chong Yidong wrote: > Only the "New translations... in the" part is highlighted. If this > is not > a problem, neither should it be a problem when longlines-mode is > turned > on.\ I can't quite agree: if you have a soft-newline, that means that the headline (to be marked) continues in the next line. The user has not pressed return! It's like a normal line-wrap. The syntax highlighting should take into account what the compiler (eventually) gets to see (in the case of source code) or what gets written to file. Given that longlines-mode shows that kind of behavior in other major modes as well (e.g. python mode - i reported a bug recently), I think that Richard's suggestion about making '.' match soft-newlines might be a good idea and a general solution to this class of problems. One would obviously want to make sure that the newlines-indicator (I don't know how this is implemented) is unique so that the change of regexp matching doesn't have knock-on effects in other contexts. -D