From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#14336: 24.3; Octave failed to fontify 'str' if ' is at line-beginning Date: Fri, 03 May 2013 05:17:29 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1367529513 9951 80.91.229.3 (2 May 2013 21:18:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 May 2013 21:18:33 +0000 (UTC) To: 14336@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 02 23:18:32 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UY0tc-0004U8-8b for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 May 2013 23:18:32 +0200 Original-Received: from localhost ([::1]:58511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UY0tb-0008E5-RH for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 May 2013 17:18:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UY0tX-0008Ds-Gw for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 17:18:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UY0tW-0004dX-DP for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 17:18:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UY0tW-0004dT-AC for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 17:18:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UY0u6-0006h2-At for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 17:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 May 2013 21:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14336 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136752950325660 (code B ref -1); Thu, 02 May 2013 21:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 May 2013 21:18:23 +0000 Original-Received: from localhost ([127.0.0.1]:55789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UY0tS-0006fo-3j for submit@debbugs.gnu.org; Thu, 02 May 2013 17:18:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37818) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UY0tP-0006fg-Gv for submit@debbugs.gnu.org; Thu, 02 May 2013 17:18:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UY0so-0004SU-BQ for submit@debbugs.gnu.org; Thu, 02 May 2013 17:17:43 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:39506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UY0so-0004SP-97 for submit@debbugs.gnu.org; Thu, 02 May 2013 17:17:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UY0sm-0007zo-Bd for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 17:17:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UY0sl-0004RQ-6L for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 17:17:40 -0400 Original-Received: from mail-da0-x22c.google.com ([2607:f8b0:400e:c00::22c]:47108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UY0sk-0004RD-VE for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 17:17:39 -0400 Original-Received: by mail-da0-f44.google.com with SMTP id z8so494972daj.3 for ; Thu, 02 May 2013 14:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:x-debbugs-cc:date:message-id :mime-version:content-type; bh=tk4uxMcOzNlMmcgqoxS80czK72IrIyX/5Sjk2v1t9OQ=; b=CmfCyCJylHup4y3nbMqoSBCEfwrautu7x/1NzXe1Bh1YyXW3cA+ygfOXNd40XL2aME 3xK1sWcUWqtPZFW7HltPeAbywXX+0YK/Di/i9B1Q8vZLgp+fgy03HUh/Uzf6Pwrc7Bby zYe+kb3IoKzNcIzPV+PUaRt/RgkFlw9LCzRogv5Kli5AfNpPjq4eQx5g0jxftwIEziBx U9YVlwB/9WpJp0YFSZ1EcQvPrzohtTPUb49D5yGoj/u0RDmHI4C2uE1Utjmjp/z3LTRj B9I+XLnV3tK0Jt4aYt2z9e8ctdqD0cWvSZMkv72JzHaXHfTcqStq2TcDY9M1vGPiabKa GrBg== X-Received: by 10.66.144.69 with SMTP id sk5mr11978824pab.69.1367529457969; Thu, 02 May 2013 14:17:37 -0700 (PDT) Original-Received: from Zeuss-MacBook.local ([110.172.225.137]) by mx.google.com with ESMTPSA id uf2sm8650152pbc.41.2013.05.02.14.17.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 02 May 2013 14:17:36 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73902 Archived-At: As reported in this post: http://article.gmane.org/gmane.comp.gnu.octave.general/48005 'abc' is not fontified if ' is at line beginning. I have installed the following fix: diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index a58fdefb..3c9efad9 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -131,7 +131,7 @@ (defun octave-syntax-propertize-function (start end) (octave-syntax-propertize-sqs end) (funcall (syntax-propertize-rules ;; Try to distinguish the string-quotes from the transpose-quotes. - ("[[({,; ]\\('\\)" + ("\\(?:^\\|[[({,; ]\\)\\('\\)" (1 (prog1 "\"'" (octave-syntax-propertize-sqs end))))) (point) end))