From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: syntax identification (Request for Help) Date: Tue, 11 Aug 2015 22:33:41 +0100 Message-ID: <877fp1o6h6.fsf@russet.org.uk> References: <87h9ofdmng.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439328853 9738 80.91.229.3 (11 Aug 2015 21:34:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2015 21:34:13 +0000 (UTC) Cc: Phillip Lord , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 11 23:34:04 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZPHBK-00021J-PK for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2015 23:34:02 +0200 Original-Received: from localhost ([::1]:35934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPHBK-00006V-0D for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2015 17:34:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPHB5-00006Q-QX for emacs-devel@gnu.org; Tue, 11 Aug 2015 17:33:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPHB1-0006gc-Rb for emacs-devel@gnu.org; Tue, 11 Aug 2015 17:33:47 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:54259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPHB1-0006gV-LV for emacs-devel@gnu.org; Tue, 11 Aug 2015 17:33:43 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1ZPHB0-00077p-F9; Tue, 11 Aug 2015 22:33:42 +0100 Original-Received: from cpc6-benw10-2-0-cust45.gate.cable.virginm.net ([92.238.179.46] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1ZPHB0-000894-G1; Tue, 11 Aug 2015 22:33:42 +0100 In-Reply-To: (Stefan Monnier's message of "Fri, 7 Aug 2015 10:57:51 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188737 Archived-At: Stefan Monnier writes: >> Stefan added comments to omn-mode saying "We could use a >> syntax-propertize-function to do more carefully.". Would anyone be >> willing to help explain to me how this works and help me? I found the >> manual a bit confusing. > > You could start by removing the > > (modify-syntax-entry ?\< "|" st) > (modify-syntax-entry ?\> "|" st) > > and using > > (setq-local syntax-propertize-function > (syntax-propertize-rules > ("\\(<\\)[^ ]*\\(>\\)" (1 "|") (2 "|")))) > > Guaranteed 100% untested. I've just tested it and it seems to work pretty well, actually! Phil