* Fxporting a new markup
@ 2016-04-09 11:24 fredtantini
2016-04-09 16:40 ` Charles C. Berry
2016-04-09 19:00 ` Adam Porter
0 siblings, 2 replies; 5+ messages in thread
From: fredtantini @ 2016-04-09 11:24 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Hi everyone,
I need your help.
Prior to version 8.3.* I used a custom marker (‰) to export keyboard
shortcut in html (that is to kbd tags). What I have done is, in ox-org.el or
org-element.el, every time there was a function with "bold" or "code",
I copied/pasted the function and modified it to meet my needs.
For instance, I have created a =org-element-my-object-keystroke-interpreter=
function, or override the =org-element-object-successor-alist= const.
I have detailed what I have done in this emacs.stackexchange answer:
http://emacs.stackexchange.com/questions/12814/extending-org-mode-with-more-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 commits, but
I can't pinpoint what's the problem. The Release notes doesn't seem either to
indicate that there was a change between the versions that could broke my
workflow :(
What have I missed?
--
Fred
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fxporting a new markup
2016-04-09 11:24 Fxporting a new markup fredtantini
@ 2016-04-09 16:40 ` Charles C. Berry
2016-04-10 8:00 ` fredtantini
2016-04-09 19:00 ` Adam Porter
1 sibling, 1 reply; 5+ messages in thread
From: Charles C. Berry @ 2016-04-09 16:40 UTC (permalink / raw)
To: fredtantini; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1542 bytes --]
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 keyboard
> shortcut in html (that is to kbd tags). What I have done is, in ox-org.el or
> org-element.el, every time there was a function with "bold" or "code",
> I copied/pasted the function and modified it to meet my needs.
> For instance, I have created a =org-element-my-object-keystroke-interpreter=
> function, or override the =org-element-object-successor-alist= const.
>
> I have detailed what I have done in this emacs.stackexchange answer:
> http://emacs.stackexchange.com/questions/12814/extending-org-mode-with-more-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 commits, but
> I can't pinpoint what's the problem. The Release notes doesn't seem either to
> indicate that there was a change between the versions that could broke 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 <n.goaziou@gmail.com>
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fxporting a new markup
2016-04-09 11:24 Fxporting a new markup fredtantini
2016-04-09 16:40 ` Charles C. Berry
@ 2016-04-09 19:00 ` Adam Porter
2016-04-09 22:41 ` Adam Porter
1 sibling, 1 reply; 5+ messages in thread
From: Adam Porter @ 2016-04-09 19:00 UTC (permalink / raw)
To: emacs-orgmode
I don't know if this answers your question, but you can export HTML tags
like this:
Keyboard shortcut: @@html:<kbd>@@C-c C-c@@html:</kbd>@@
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fxporting a new markup
2016-04-09 19:00 ` Adam Porter
@ 2016-04-09 22:41 ` Adam Porter
0 siblings, 0 replies; 5+ messages in thread
From: Adam Porter @ 2016-04-09 22:41 UTC (permalink / raw)
To: emacs-orgmode
Adam Porter <adam <at> alphapapa.net> writes:
> I don't know if this answers your question, but you can export HTML tags
> like this:
>
> Keyboard shortcut: <at> <at> html:<kbd> <at> <at> C-c C-c <at> <at>
html:</kbd> <at> <at>
I'm not sure what happened there, but the manual explains that technique
here:
http://orgmode.org/manual/Quoting-HTML-tags.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fxporting a new markup
2016-04-09 16:40 ` Charles C. Berry
@ 2016-04-10 8:00 ` fredtantini
0 siblings, 0 replies; 5+ messages in thread
From: fredtantini @ 2016-04-10 8:00 UTC (permalink / raw)
To: Charles C. Berry; +Cc: fredtantini, 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 right
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" <ccberry@ucsd.edu>:
> 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 keyboard
> > shortcut in html (that is to kbd tags). What I have done is, in ox-org.el
> or
> > org-element.el, every time there was a function with "bold" or "code",
> > I copied/pasted the function and modified it to meet my needs.
> > For instance, I have created a
> =org-element-my-object-keystroke-interpreter=
> > function, or override the =org-element-object-successor-alist= const.
> >
> > I have detailed what I have done in this emacs.stackexchange answer:
> >
>
http://emacs.stackexchange.com/questions/12814/extending-org-mode-with-more-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 commits,
> but
> > I can't pinpoint what's the problem. The Release notes doesn't seem either
> to
> > indicate that there was a change between the versions that could broke 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 <n.goaziou@gmail.com>
> 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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-04-10 8:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-09 11:24 Fxporting a new markup fredtantini
2016-04-09 16:40 ` Charles C. Berry
2016-04-10 8:00 ` fredtantini
2016-04-09 19:00 ` Adam Porter
2016-04-09 22:41 ` Adam Porter
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).