On Friday,  4 Jan 2019 at 19:38, Win Treese wrote:
> Suppose I have the following Org file contents:
>
> * test
>
> #+BEGIN_SRC emacs-lisp
> (setq yyy 3)
> ;; See https://www.gnu.org
> #+END_SRC
>
> The URL for gnu.org is highlighted as a clickable link. But if I click
> it, the source block is evaluated. This seems rather unexpected,
> especially since my intention was to open the link.

Probably expected albeit maybe not your preferred behaviour; all about
precedence.  In any case, I would suggest that the easy solution would
be to move such links out of the src block.  I usually put these as org
comments, along the lines of

 # See https://www.gnu.org
 #+BEGIN_SRC emacs-lisp
 (setq yyy 3)
 #+END_SRC

My approach to literate programming is to have no (significant) comments
in the code segments themselves.  Each code block is small and has all
commentary in the text, not the code.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442

Reply via email to