Hello, Aaron Ecay <aarone...@gmail.com> writes:
> This is a step back from the present situation, where a user can get > a custom format applied by default to all inline results by setting > ‘org-babel-inline-result-wrap’. I think it’s reasonable for users to > want to set off babel results in a special font (to indicate that > they are automatically generated, e.g.) This proposal would add an > additional overhead for generating this formatting to every inline > call. I expect Babel to provide a parameter to generate verbatim output, and a way to use this parameter globally. If it doesn't, then we can keep `org-babel-inline-result-wrap' and simply wrap {{{results(...)}}} macro around the output. > I think the method I sketched above will allow users to redefine the > results macro in the same way as any other macro (via #+MACRO), thus > allowing the possibility of user-specified special formatting. Babel output is expected to be modified by Babel functions/variables. I wouldn't want to see macro used as the main tool to modify inline Babel output. Of course, you can still do it. But you're on your own. {{{results(...)}}} is just a wrapper. > Indeed, this seems correct. (The “const” designation is just a hint to > users/developers – it doesn’t affect the ability of people who really > want to customize the value to setq it to something else in their init > file.) Of course, users are free to break their local copy of Org. >> With {{{results(@@backend:...@@)}}}, we don't need the extra trick. Even >> if it is more verbose, I think a regular syntax is better. > > This doesn’t mesh with the suggestion to allow the results macro to > supply formatting. See above. Regards, -- Nicolas Goaziou