From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: XKCD/541 compliance, anyone? Date: Thu, 08 Jan 2015 15:10:58 +0100 Message-ID: <87oaq9xszx.fsf@wmi.amu.edu.pl> References: <8761drazec.fsf@wmi.amu.edu.pl> <87k318npmf.fsf@wmi.amu.edu.pl> <877fwyz1ii.fsf@wmi.amu.edu.pl> <87tx02xelk.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420726608 19472 80.91.229.3 (8 Jan 2015 14:16:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2015 14:16:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 08 15:16:43 2015 Return-path: Envelope-to: geh-help-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 1Y9Do3-0002DF-SK for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jan 2015 15:11:24 +0100 Original-Received: from localhost ([::1]:46206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Do2-0004oZ-Kg for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jan 2015 09:11:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Dnm-0004oT-I3 for help-gnu-emacs@gnu.org; Thu, 08 Jan 2015 09:11:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9Dnj-0004w6-9d for help-gnu-emacs@gnu.org; Thu, 08 Jan 2015 09:11:06 -0500 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:35584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Dnj-0004vt-2p for help-gnu-emacs@gnu.org; Thu, 08 Jan 2015 09:11:03 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 9446646963 for ; Thu, 8 Jan 2015 15:11:00 +0100 (CET) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c5zMCCkaBGSz for ; Thu, 8 Jan 2015 15:11:00 +0100 (CET) Original-Received: from localhost (unknown [150.254.75.184]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 78E5A42061 for ; Thu, 8 Jan 2015 15:11:00 +0100 (CET) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101946 Archived-At: On 2015-01-08, at 04:11, Stefan Monnier wrote: >>>> Do I get it correctly that it's better than my solution (basically, >>>> (syntax-propertize (point-max))) >>> The problem with your solution is "when?". >> Say, in text-mode-hook (or similar)? > > No, that would be "where". Then "when" is something like "after openin= g > the file", "after every command", "after a buffer modification", ... Ah. I thought that if I set up this syntax-propertize-function thing, things will happen after buffer modification automatically. (My =E2=80=93 admittedly limited =E2=80=93 tests showed that this was indeed the case.) I have to say that I'm more and more embarassed to ask somewhat stupid, RTFM-style questions here. However, the part of the manual about syntax parsing is not very verbose. Should I read the parts about font-lock to understand better what's going on here? > Stefan Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University