From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#192: regexp does not work as documented Date: Sun, 11 May 2008 09:40:51 +0200 Message-ID: <4826A303.3030002__24005.3205438473$1210493601$gmane$org@gmx.at> References: <87k5i8ukq8.fsf@stupidchicken.com> <200805061335.11379.bruno@clisp.org> <48204B3D.6000500@gmx.at> Reply-To: martin rudalics , 192@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210493556 18186 80.91.229.12 (11 May 2008 08:12:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2008 08:12:36 +0000 (UTC) Cc: Chong Yidong , 192@emacsbugs.donarmstrong.com, Bruno Haible , emacs-devel@gnu.org To: David Koppelman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 11 10:13:11 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 1Jv6fw-00056n-WD for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2008 10:12:57 +0200 Original-Received: from localhost ([127.0.0.1]:40363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jv6fE-0006kk-C9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2008 04:12:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jv6en-0006LP-Tb for bug-gnu-emacs@gnu.org; Sun, 11 May 2008 04:11:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jv6el-0006HY-Tl for bug-gnu-emacs@gnu.org; Sun, 11 May 2008 04:11:45 -0400 Original-Received: from [199.232.76.173] (port=59986 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jv6el-0006H9-Kz for bug-gnu-emacs@gnu.org; Sun, 11 May 2008 04:11:43 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49468) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jv6el-0003dh-Ex for bug-gnu-emacs@gnu.org; Sun, 11 May 2008 04:11: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 m4B8BdPb032388; Sun, 11 May 2008 01:11:39 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m4B8048I029844; Sun, 11 May 2008 01:00:04 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 11 May 2008 08:00:04 +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.121049230729175 (code B ref 192); Sun, 11 May 2008 08:00:04 +0000 Original-Received: (at 192) by emacsbugs.donarmstrong.com; 11 May 2008 07:51:47 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m4B7phk5029151 for <192@emacsbugs.donarmstrong.com>; Sun, 11 May 2008 00:51:44 -0700 Original-Received: (qmail invoked by alias); 11 May 2008 07:51:37 -0000 Original-Received: from 62-47-54-236.adsl.highway.telekom.at (EHLO [62.47.54.236]) [62.47.54.236] by mail.gmx.net (mp009) with SMTP; 11 May 2008 09:51:37 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/M86d9vM3MXw7/M9IHRmbR1f3AF9VIIiYJzNfGw9 uwHW00ggCpiGAW User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sun, 11 May 2008 04:11:45 -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:17954 Archived-At: > 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. Think of the following pathological case: Devise a regexp to highlight the first line of a buffer provided the buffer does not end with a newline. Doing this with `font-lock-multiline' hardly makes any sense. Maybe users should classify whether a regexp they use (1) doesn't match newlines - no `font-lock-multiline' needed, (2) match at most n newlines in which case you should tell font-lock to rescan from n lines before each buffer change (with large n the display engine will suffer noticeably, mainly because font-lock has to search for all other keywords as well), or (3) may match more than n newlines in which case you should use an idle timer to scan the entire buffer for any matches of such regexps and highlight them separately.