From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Koppelman Newsgroups: gmane.emacs.bugs Subject: bug#192: regexp does not work as documented Date: Sat, 10 May 2008 15:13:37 -0500 Message-ID: References: <87k5i8ukq8.fsf@stupidchicken.com> <200805061335.11379.bruno@clisp.org> <48204B3D.6000500@gmx.at> Reply-To: David Koppelman , 192@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210456942 14283 80.91.229.12 (10 May 2008 22:02:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 May 2008 22:02:22 +0000 (UTC) Cc: Chong Yidong , 192@emacsbugs.donarmstrong.com, Bruno Haible , emacs-devel@gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 11 00:02:57 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jux9c-0003LK-7z for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2008 00:02:56 +0200 Original-Received: from localhost ([127.0.0.1]:33636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jux8t-0001ar-Jk for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 May 2008 18:02:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JuvjR-0008QU-Ec for bug-gnu-emacs@gnu.org; Sat, 10 May 2008 16:31:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JuvjM-0008Lp-EY for bug-gnu-emacs@gnu.org; Sat, 10 May 2008 16:31:47 -0400 Original-Received: from [199.232.76.173] (port=54357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuvjL-0008LM-TR for bug-gnu-emacs@gnu.org; Sat, 10 May 2008 16:31:44 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52906) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JuvjL-0001nG-7N for bug-gnu-emacs@gnu.org; Sat, 10 May 2008 16:31:43 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4AKVdxk001161; Sat, 10 May 2008 13:31:39 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m4AKK2BK031840; Sat, 10 May 2008 13:20:02 -0700 X-Loop: don@donarmstrong.com Resent-From: David Koppelman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 10 May 2008 20:20:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 192 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 192-submit@emacsbugs.donarmstrong.com id=B192.121045042131181 (code B ref 192); Sat, 10 May 2008 20:20:02 +0000 Original-Received: (at 192) by emacsbugs.donarmstrong.com; 10 May 2008 20:13:41 +0000 Original-Received: from ecelsrv1.ece.lsu.edu (ecelsrv1.ece.lsu.edu [130.39.223.98]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4AKDbNZ031175 for <192@emacsbugs.donarmstrong.com>; Sat, 10 May 2008 13:13:39 -0700 Original-Received: from localhost (unknown [127.0.0.1]) by ecelsrv1.ece.lsu.edu (Postfix) with ESMTP id B7D0E2839E; Sat, 10 May 2008 20:13:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at ece.lsu.edu Original-Received: from ecelsrv1.ece.lsu.edu ([127.0.0.1]) by localhost (ecelsrv1.ece.lsu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fh7l+otWzISs; Sat, 10 May 2008 15:13:37 -0500 (CDT) Original-Received: from nested.ece.lsu.edu (nested.ece.lsu.edu [130.39.222.143]) by ecelsrv1.ece.lsu.edu (Postfix) with ESMTP id 186F728018; Sat, 10 May 2008 15:13:37 -0500 (CDT) In-Reply-To: (David Koppelman's message of "Sat, 10 May 2008 14:18:59 -0500") 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, 3) Resent-Date: Sat, 10 May 2008 16:31:47 -0400 X-Mailman-Approved-At: Sat, 10 May 2008 18:02:06 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17948 Archived-At: I *am* able to reproduce the font-lock-multiline limitation martin described if the buffer is in text mode. I had tried to reproduce it in emacs-lisp mode. First I'll work on the hi-lock warning as I described below, then I'll see about detecting and doing something helpful for additional situations where multi-line won't work. David Koppelman writes: > I was able to reproduce the problem with Bruno Haible's testcase and > font-lock-multiline t does "fix" it. However martin rudalics warns that > font-lock-multiline won't work for all cases and provides an example > idea (below). I can't get that to fail. That is, with > font-lock-multiline t the text was correctly fontified (though after a > pause). My realization of the example was to remove and then add the > first quotation mark from one of the interior lines below (also > tried with more quoted lines): > > msgstr "" > "Project-Id-Version: GNU gettext-tools 0.16.2-pre5\n" > "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" > "POT-Creation-Date: 2007-11-02 03:23+0100\n" > "PO-Revision-Date: 2007-10-27 13:35+0200\n" > "Last-Translator: Christophe Combelles \n" > "Last-Translator: Christophe Combelles \n" > x > > The fix I'm contemplating would be to warn the user when a multi-line > regexp was added interactively and font-lock-multiline was nil, and then > perhaps to offer to set font-lock-multiline to t (or to not set it, or > to stop asking).