From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#20911: 24.5.3; Syntax should not require font-lock Date: Sat, 27 Jun 2015 18:31:02 +0300 Message-ID: <558EC1B6.6090506@yandex.ru> References: <558EBF1B.9090409@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1435419145 24780 80.91.229.3 (27 Jun 2015 15:32:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Jun 2015 15:32:25 +0000 (UTC) To: Andreas =?UTF-8?Q?R=C3=B6hler?= , 20911-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 27 17:32:13 2015 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 1Z8s5U-0002md-P8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jun 2015 17:32:13 +0200 Original-Received: from localhost ([::1]:35915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8s5T-0006SX-Oz for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jun 2015 11:32:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8s5Q-0006SP-HE for bug-gnu-emacs@gnu.org; Sat, 27 Jun 2015 11:32:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8s5L-0006KS-Aw for bug-gnu-emacs@gnu.org; Sat, 27 Jun 2015 11:32:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8s5L-0006KF-7d for bug-gnu-emacs@gnu.org; Sat, 27 Jun 2015 11:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z8s5K-0007Yd-SR for bug-gnu-emacs@gnu.org; Sat, 27 Jun 2015 11:32:02 -0400 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jun 2015 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 20911 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 20911@debbugs.gnu.org, dgutov@yandex.ru, andreas.roehler@easy-emacs.de Original-Received: via spool by 20911-done@debbugs.gnu.org id=D20911.143541907628993 (code D ref 20911); Sat, 27 Jun 2015 15:32:02 +0000 Original-Received: (at 20911-done) by debbugs.gnu.org; 27 Jun 2015 15:31:16 +0000 Original-Received: from localhost ([127.0.0.1]:59300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z8s4Y-0007XY-Sd for submit@debbugs.gnu.org; Sat, 27 Jun 2015 11:31:15 -0400 Original-Received: from mail-wg0-f51.google.com ([74.125.82.51]:35638) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z8s4V-0007XJ-Do for 20911-done@debbugs.gnu.org; Sat, 27 Jun 2015 11:31:12 -0400 Original-Received: by wgjx7 with SMTP id x7so36228445wgj.2 for <20911-done@debbugs.gnu.org>; Sat, 27 Jun 2015 08:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=8kcWvFjtnHfmCHOuFmVZqAL0+peZYwjXlxjtkQRbpcU=; b=LLUvZ0YLMGa/lzJdTcsr4LXTGfCn9MVcsR/CpptpVmn8Mgpd8G9E8uPkMLQGYBc6Qb mb6M+ZwsbnFHDXoPs1u54eovcJqpZPodZatf+g0KBKMyClAqGzmGX4/XNBRA3Y8ZHalX h+V4FjzmYz6rG24fKW210fvrUExiM5U6rzJiQV28Ogp3ixBX6rBRgf3S1S5J8JS8cdZT L4feWsMxjp5Lg+FTMqMq3AfM6aN3rU/0kaPIA3S1mmr1jvNQD/P1m2WzYNZtGwDr0NxM NWedGvEZ6mzvg9QRTtmLnJ2JGGM59CTIYPNsqwEFtdMg3LzFRNvb6UlYQfiOatSpQgEm eF3w== X-Received: by 10.180.228.6 with SMTP id se6mr6498758wic.33.1435419065654; Sat, 27 Jun 2015 08:31:05 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id sc16sm17402528wjb.28.2015.06.27.08.31.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Jun 2015 08:31:05 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <558EBF1B.9090409@easy-emacs.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:104407 Archived-At: Tags: notabug Hi! On 06/27/2015 06:19 PM, Andreas Röhler wrote: > Both macros in question -- for example gen-test-with-python-buffer-- > have this: > > `(when gen-verbose-p > (switch-to-buffer (current-buffer)) > (font-lock-fontify-buffer))` Don't do that, then. > AFAICS the error is caused, because TQS-syntax in python.el is set by > syntax-propertize-function Call (syntax-propertize (point-max)) instead. > Documentation: > Mode-specific function to apply syntax-table' text properties. It is the > work horse of `syntax-propertize', which is called by things like > Font-Lock and indentation. > > > Setting up syntax seems to require font-lock - which doesn't feel right. That only says that font-lock requires it, not vice versa. The docstring even mentions `syntax-propertize'.