From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Longlines mode in menu Date: Thu, 12 Jun 2008 11:05:34 -0400 Message-ID: <87bq2666dd.fsf@stupidchicken.com> References: <87wsl41lq0.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213283422 12462 80.91.229.12 (12 Jun 2008 15:10:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2008 15:10:22 +0000 (UTC) Cc: "Kim F. Storm" , Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 12 17:11:05 2008 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 1K6oS5-000381-Oe for ged-emacs-devel@m.gmane.org; Thu, 12 Jun 2008 17:11:02 +0200 Original-Received: from localhost ([127.0.0.1]:38049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6oRI-0002AM-2G for ged-emacs-devel@m.gmane.org; Thu, 12 Jun 2008 11:10:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6oRD-00028Y-GF for emacs-devel@gnu.org; Thu, 12 Jun 2008 11:10:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6oRA-000276-Jr for emacs-devel@gnu.org; Thu, 12 Jun 2008 11:10:07 -0400 Original-Received: from [199.232.76.173] (port=44763 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6oRA-000271-8o for emacs-devel@gnu.org; Thu, 12 Jun 2008 11:10:04 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:52127) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6oRA-0003v0-2E for emacs-devel@gnu.org; Thu, 12 Jun 2008 11:10:04 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 274904E688; Thu, 12 Jun 2008 11:05:34 -0400 (EDT) In-Reply-To: (David Reitter's message of "Thu, 12 Jun 2008 11:48:44 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: 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:99011 Archived-At: David Reitter writes: > Are you aware that syntax hightlighting is broken with longlines mode? > Any (line-based) comments, e.g. in LaTeX, will make it fail. > > When you comment out formulae in LaTeX and they get wrapped in middle, > parsing fails with consequences for the remainder of the > buffer. E.g.,: > > % \begin{quote} > % $P_e(N_i|C_j)$ is empirically defined as $F(N_i \& > C_j)/F(C_j)$, > % where $F(N_i \& C_j)$ is the number of times $i$ is needed > > It seems that syntax highlighting does not know about soft and hard > line breaks. > > Are there any news on the display-time word wrapping patch by Kim > Storm? Back then when he posted the first incarnation, things almost > worked as intended. The display-time work wrapping won't necessarily help. It would interfere with commands that expect soft newlines to behave like newlines (next-line, etc). One way to fix this might be to selectively bind search-spaces-regexp during font-lock, if longlines mode is on.