From: "João Pedro" <jpedrodeamorim@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [Q/Bug?] Comment for noweb reference comments content
Date: Sat, 04 May 2024 00:11:05 -0300 [thread overview]
Message-ID: <87fruy2rw6.fsf@ergo> (raw)
Hi,
Ok so I don't know whether this is a bug or intended behaviour (though
if its the latter I propose we reconsider), but if I have the following
#+begin_src emacs-lisp :noweb yes :comments noweb :tangle /tmp/foo.el
(progn
<<foo>>)
#+end_src
#+name: foo
#+begin_src emacs-lisp
(message "foo")
#+end_src
the resulting foo.el will have a syntax error, since the closing ) for
`progn' will have been commented like so
;; [[file:...][No heading:1]]
(progn
;; [[file:...][foo]]
(message "foo")
;; foo ends here)
^
;; No heading:1 ends here
It seems like some macro let-bound in `org-babel-expand-noweb-refereces'
is doing this, but I couldn't pinpoint exactly what or where. What I
could achieve though, is to add a newline after the second call to
`c-wrap' inside `expand-body''s definition, which at least solve the
problem of throwing syntax errors, but I don't think that would be the
best solution.
Best regards,
--
João Pedro de A. Paula
IT bachelors at Universidade Federal do Rio Grande do Norte (UFRN)
next reply other threads:[~2024-05-04 3:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-04 3:11 João Pedro [this message]
2024-05-04 11:32 ` [Q/Bug?] Comment for noweb reference comments content Ihor Radchenko
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=87fruy2rw6.fsf@ergo \
--to=jpedrodeamorim@gmail.com \
--cc=emacs-orgmode@gnu.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).