From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Patch: Syntax and Hard Newlines Date: Sat, 18 Nov 2006 19:58:38 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163897940 23540 80.91.229.2 (19 Nov 2006 00:59:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2006 00:59:00 +0000 (UTC) Cc: rudalics@gmx.at, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 19 01:58:57 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Glb1K-0000oX-Vn for ged-emacs-devel@m.gmane.org; Sun, 19 Nov 2006 01:58:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Glb1K-0002ow-JU for ged-emacs-devel@m.gmane.org; Sat, 18 Nov 2006 19:58:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Glb1A-0002nS-T6 for emacs-devel@gnu.org; Sat, 18 Nov 2006 19:58:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Glb18-0002lz-Aa for emacs-devel@gnu.org; Sat, 18 Nov 2006 19:58:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Glb18-0002lw-7S for emacs-devel@gnu.org; Sat, 18 Nov 2006 19:58:42 -0500 Original-Received: from [209.226.175.184] (helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Glb16-0006W7-AL; Sat, 18 Nov 2006 19:58:40 -0500 Original-Received: from pastel.home ([70.55.143.67]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20061119005838.QQTO10262.tomts22-srv.bellnexxia.net@pastel.home>; Sat, 18 Nov 2006 19:58:38 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 957528CC3; Sat, 18 Nov 2006 19:58:38 -0500 (EST) Original-To: "Herbert Euler" In-Reply-To: (Herbert Euler's message of "Sat\, 18 Nov 2006 08\:51\:27 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) 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:62440 Archived-At: > BTW: How about this problem? I'm not sure what I should do now. > Could somebody please give some suggestions? Thanks. > A list of problems: > [1] The orignal problem in longlines.el. > [2] Whether adding a `syntax-table' property when inserting > soft newlines. > [3] The problem Johan refered. > [4] The problem Martin refered. I don't know those problems are. But here's what I think you should do: 1 - add a syntax-table property (value (0), meaning "whitespace") on soft newlines. 2 - set parse-sexp-lookup-property to t when turning on the minor mode. 3 - don't unset parse-sexp-lookup-property because it's too much trouble with no known benefit. 4 - if you want to remove the syntax-table property when turning of the minor mode off, that's would be OK, although I'm not sure it's worth the trouble for now. -- Stefan