From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: [RFC] Syntax for macros
Date: Thu, 30 Jan 2014 15:56:58 +0100 [thread overview]
Message-ID: <86zjmdfrgl.fsf@somewhere.org> (raw)
In-Reply-To: 8738k57ebi.fsf@gmail.com
Hello Nick,
Nick Dokos wrote:
> "Sebastien Vauban" writes:
>> Bastien wrote:
>>> "Sebastien Vauban" writes:
>>>> Bastien wrote:
>>>>
>>>>> Reducing to {{...}} could be better, but I'm not sure this is
>>>>> what will make your friends happy :)
>>>>
>>>> Not entirely, no! But I think that'd be already a good
>>>> simplification.
>>>
>>> Added to my "will-silently-see-if-this-makes-progress" list :)
>>
>> Isn't it just changing those occurrences?
>>
>> ./org-element.el:3177: (looking-at
>> "{{{\\([a-zA-Z][-a-zA-Z0-9_]*\\)\\(([ \t\n]*\\([^\000]*?\\))\\)?}}}")
>> ./org-element.el:3217:
>> "{{{\\([a-zA-Z][-a-zA-Z0-9_]*\\)\\(([ \t\n]*\\([^\000]*?\\))\\)?}}}"
>> ./org-macro.el:35:;; {{{time(format-string)}}}, {{{property(node-property)}}},
>> ./org-macro.el:36:;; {{{input-file}}} and {{{modification-time(format-string)}}}.
>> ./org-macro.el:38:;; Upon exporting, "ox.el" will also provide {{{author}}}, {{{date}}},
>> ./org-macro.el:39:;; {{{email}}} and {{{title}}} macros.
>> ./org-macro.el:165: (while (re-search-forward "{{{[-A-Za-z0-9_]" nil t)
>> ./org.el:6263: '("{{{.+?}}}" (0 'org-macro t))
>> ./ox.el:3092: ;; Expand export-specific set of macros: {{{author}}},
>> ./ox.el:3093: ;; {{{date}}}, {{{email}}} and {{{title}}}. It must be done
>
> There is also backwards compatibility to consider.
How? You know, when many, many, many keywords or options changed
between Org 7.9 and Org 8.0, there was nothing to support backward
compatibility: much too complex, I guess.
As a reminder, some of the changes:
#+STYLE: ... -> #+HTML_HEAD: ...
#+BEAMER_HEADER_EXTRA: \usetheme{Madrid} -> #+BEAMER_THEME: Madrid
#+ATTR_LaTeX: width=1.1cm -> #+ATTR_LaTeX: :width 1.1cm
#+ATTR_LaTeX: align=lrrrr -> #+ATTR_LaTeX: :align lrrrr
Add a variable "org-support-old-macro-syntax" seems overkill to me. But,
yes, I know, that's something that will have to be clearly mentioned in
the NEWS as something that did change, and as some consequences.
Best regards,
Seb
--
Sebastien Vauban
next prev parent reply other threads:[~2014-01-30 14:56 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-29 8:49 [RFC] Syntax for macros Sebastien Vauban
2014-01-29 9:25 ` Bastien
2014-01-30 10:29 ` Sebastien Vauban
2014-01-30 10:41 ` Bastien
2014-01-30 10:48 ` Sebastien Vauban
2014-01-30 14:08 ` Nick Dokos
2014-01-30 14:56 ` Sebastien Vauban [this message]
2014-01-30 16:59 ` Nick Dokos
2014-01-30 17:22 ` Thorsten Jolitz
2014-01-30 18:03 ` Bastien
2014-01-31 22:13 ` [PATCH] Font-lock: allow hiding of brackets surrounding macros Florian Beck
2014-02-01 0:22 ` Bastien
2014-02-05 10:14 ` Bastien
2014-02-05 13:07 ` Sebastien Vauban
2014-02-05 13:12 ` Bastien
2014-01-30 19:25 ` [RFC] Syntax for macros Florian Beck
2014-01-30 21:11 ` Thomas S. Dye
2014-01-30 18:24 ` Achim Gratz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86zjmdfrgl.fsf@somewhere.org \
--to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).