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: Sat, 06 Dec 2014 00:48:06 +0100 Message-ID: <87d27xacax.fsf@wmi.amu.edu.pl> References: <8761drazec.fsf@wmi.amu.edu.pl> <87fvctafqo.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417823327 14087 80.91.229.3 (5 Dec 2014 23:48:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2014 23:48:47 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 06 00:48:41 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 1Xx2c3-0006w7-8F for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Dec 2014 00:48:39 +0100 Original-Received: from localhost ([::1]:52924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xx2c2-0002zO-QC for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Dec 2014 18:48:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xx2bm-0002xA-2s for help-gnu-emacs@gnu.org; Fri, 05 Dec 2014 18:48:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xx2bg-0001pn-Ck for help-gnu-emacs@gnu.org; Fri, 05 Dec 2014 18:48:22 -0500 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:54187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xx2bg-0001pG-5D for help-gnu-emacs@gnu.org; Fri, 05 Dec 2014 18:48:16 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id BFB496AF8D for ; Sat, 6 Dec 2014 00:48:14 +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 3uD4omhQGeQE for ; Sat, 6 Dec 2014 00:48:14 +0100 (CET) Original-Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 61E86670F1 for ; Sat, 6 Dec 2014 00:48:14 +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:101440 Archived-At: On 2014-12-06, at 00:41, Artur Malabarba wrote: >> 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. >> > > Try that again with font-lock-mode disabled. > Major modes can specify other text properties (besides 'face) for > font-lock-mode to set and reset. It's possible AucTex has font-lock-mode > resetting the' syntax-table property. Thank. You. So. Much, Sir! Now it works (the manual fiddling, that is). I assume that if (=when) I hook into `syntax-propertize-function', it will work, too. (I hope so at least!) It's 00:46 (AM) here in Poland and I have still more than an hour of work before I go to sleep, so I will not try that out today, but I will definitely investigate this (and post about it if it works). Thanks again! -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University