alain.coch...@unistra.fr writes: > Leo Butler writes on Fri 7 Mar 2025 15:59: > > On Fri, Mar 07 2025, alain.coch...@unistra.fr wrote: > > > > > #+BEGIN_SRC sh :var filename=(buffer-file-name) :exports both > > > wc -w $filename > > > #+END_SRC > > > > (buffer-file-name) is evaluating the Emacs Lisp function > > `buffer-file-name', which returns a string with the buffer's filename. > > Thanks a lot for the explanations. I hadn't realized it was elisp; I > should have read more carefully the lines of the manual preceding those > which I quoted. > > Yet, I think it would be clearer hence more helpful if the example were > self-contained. With my poor knowledge of elisp, I still don't know how to > construct one...
May you elaborate? I do not understand which example you are referring to and what you mean by "self-contained". -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>