emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Support for whitespace prefix for :noweb-prefix
@ 2024-03-26 12:44 Doerthous
  2024-03-28 19:25 ` Ihor Radchenko
  0 siblings, 1 reply; 12+ messages in thread
From: Doerthous @ 2024-03-26 12:44 UTC (permalink / raw)
  To: emacs-orgmode

Hi

Can we add a support for whitespace prefix such that the prefix of a
noweb-ref replaced by whitespace characters?

Here is a use case,

#+begin_src elisp :noweb-ref varable-bindings
(a 0)
(b 1)
#+end_src

#+begin_src elisp :noweb-ref do-something
`(,a ,b)
#+end_src

#+name: a-fragment
#+begin_src elisp :noweb yes :noweb-prefix whitespace
  (let (<<varable-bindings>>)
    <<do-something>>)
#+end_src

using whitespace :noweb-prefix, the above code will expand to

#+begin_src elisp
(let ((a 0)
      (b 1))
  `(,a ,b))
#+end_src

Best regards,

D


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-04-03 13:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-26 12:44 Support for whitespace prefix for :noweb-prefix Doerthous
2024-03-28 19:25 ` Ihor Radchenko
2024-03-29  2:55   ` Doerthous
2024-03-29  9:43     ` Ihor Radchenko
2024-03-29 12:47       ` Doerthous
2024-03-29 12:51         ` Ihor Radchenko
2024-03-29 13:30           ` Doerthous
2024-03-29 13:42             ` Ihor Radchenko
2024-03-29 14:01               ` Doerthous
2024-04-03 12:27       ` Fraga, Eric
2024-04-03 13:01         ` Ihor Radchenko
2024-04-03 13:25           ` Fraga, Eric

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