From mboxrd@z Thu Jan 1 00:00:00 1970 From: fredtantini@free.fr Subject: Re: Fxporting a new markup Date: Sun, 10 Apr 2016 10:00:59 +0200 Message-ID: <1460275259.570a083b2ecca@imp.free.fr> References: <1460201066.5708e66ad5db5@imp.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apAIr-0007wi-4X for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 04:01:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apAIn-0004wO-UV for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 04:01:05 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:25200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apAIn-0004wE-PB for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 04:01:01 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Charles C. Berry" Cc: fredtantini@free.fr, "emacs-orgmode@gnu.org" Thanks! I don't know if it was right in front of me or if I didn't look at the ri= ght files, but as it was indicated in the commit and in org-element.el: > ;; Creating a new type of object requires to alter > ;; `org-element--object-regexp' and `org-element--object-lex', add the > ;; new type in `org-element-all-objects', and possibly add > ;; restrictions in `org-element-object-restrictions'. So I did, and my export works now. A big thanks for showing me the right = way! -- Fred Quoting "Charles C. Berry" : > On Sat, 9 Apr 2016, fredtantini@free.fr wrote: > > > Hi everyone, > > > > I need your help. > > > > Prior to version 8.3.* I used a custom marker (‰) to export key= board > > shortcut in html (that is to kbd tags). What I have done is, in ox-or= g.el > or > > org-element.el, every time there was a function with "bold" or "code"= , > > I=A0copied/pasted the function and modified it to meet my needs. > > For instance, I have created a > =3Dorg-element-my-object-keystroke-interpreter=3D > > function, or override the =3Dorg-element-object-successor-alist=3D co= nst. > > > > I have detailed what I=A0have done in this emacs.stackexchange answer= : > > > http://emacs.stackexchange.com/questions/12814/extending-org-mode-with-mo= re-markups/12822#12822 > > > > My setup works great with org versions ≤8.2.10, but with 8.3.1 = (to > 8.3.4), > > it doesn't do the job… I have tried to edebug, and looked at co= mmits, > but > > I can't pinpoint what's the problem. The Release notes doesn't seem e= ither > to > > indicate that there was a change between the versions that could brok= e my > > workflow :( > > > > What have I missed? > > There is no `org-element-object-successor-alist'. You need to look two > years back in the commits: > > bash-3.2$ git log -Sorg-element-object-successor > > commit b5dd32c7e49f3125e5541e85197b8e83e34739a6 > Author: Nicolas Goaziou > Date: Thu Mar 27 00:04:04 2014 +0100 > > org-element: Rewrite object parsing algorithm > > * lisp/org-element.el (org-element-all-successors, > org-element-object-successor-alist): Remove variables. > [...] > > HTH, > > Chuck >