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: Fri, 05 Dec 2014 23:33:51 +0100 Message-ID: <87fvctafqo.fsf@wmi.amu.edu.pl> References: <8761drazec.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417818873 11230 80.91.229.3 (5 Dec 2014 22:34:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2014 22:34:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 05 23:34:26 2014 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 1Xx1SB-0002Wr-Ri for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Dec 2014 23:34:23 +0100 Original-Received: from localhost ([::1]:52723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xx1SB-0005AI-Bx for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Dec 2014 17:34:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xx1Rv-0005A6-Ho for help-gnu-emacs@gnu.org; Fri, 05 Dec 2014 17:34:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xx1Rp-0007Ol-IQ for help-gnu-emacs@gnu.org; Fri, 05 Dec 2014 17:34:07 -0500 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:49945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xx1Rp-0007NI-BD for help-gnu-emacs@gnu.org; Fri, 05 Dec 2014 17:34:01 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 44DBB5EC19; Fri, 5 Dec 2014 23:33:59 +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 GhucqBrHUYmD; Fri, 5 Dec 2014 23:33:58 +0100 (CET) Original-Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id A09575E184; Fri, 5 Dec 2014 23:33:57 +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:101434 Archived-At: On 2014-12-04, at 23:34, Stefan Monnier wrote: >> I have a dream: to have the s-exp functions ignore closing parens, >> brackets etc. /after/, say, things matching > >> [;:B]-? > > You can use syntax-propertize-function to change the syntax class of > those parens. Not working. :-( I decided to try this out manually. I put this into my buffer: \emph{Hello world! ;-)} changed the mode to LaTeX-mode (from AUCTeX), put the point at the ")" character, and did M-: (put-text-property (point) (1+ (point)) 'syntax-table '(1)) After inspection by C-u C-x =, it turned out that nothing like a "syntax-table" property got its way into the buffer. Strangeness: if I change the name of the property to, e.g., my-prop, putting (and getting) the property value works as expected. Note: I also set parse-sexp-lookup-properties to t; unsurprisingly, it didn't help. Looks like either a bug in Emacs, or a bug in my mental model of how this should work. The same happens with emacs -Q (though without AUCTeX, just in the stock Emacs latex-mode). > Stefan Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University