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...


-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes                 | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France     | bureau 110, ancien bât.

Reply via email to