Support for whitespace prefix for :noweb-prefix

2024-03-28 Thread Doerthous
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_s

Re: Support for whitespace prefix for :noweb-prefix

2024-03-28 Thread Doerthous
Ihor Radchenko 于2024年3月29日周五 03:25写道: > > Doerthous writes: > > > Can we add a support for whitespace prefix such that the prefix of a > > noweb-ref replaced by whitespace characters? > > > > ... > > #+name: a-fragment > > #+begin_src elisp :

Re: Support for whitespace prefix for :noweb-prefix

2024-03-29 Thread Doerthous
Ihor Radchenko writes: > I think that a more general approach could be allowing :noweb-prefix to > have a value of string that will be appended to each line on the > expansion. With the use case discussed before, is allowing :noweb-prefix to have a value of string means I need to provide a strin

Re: Support for whitespace prefix for :noweb-prefix

2024-03-29 Thread Doerthous
Ihor Radchenko writes: > I still feel that what you are really looking for is major-mode-specific > indentation, not a prefix. Because indentation may require tabs, not > spaces. Or may interfere with programming language. I kind of understand what you mean: what I need is just the no option, af

Re: Support for whitespace prefix for :noweb-prefix

2024-03-29 Thread Doerthous
Thanks, I'll check it out.

Question about getting properties of org entry

2025-04-04 Thread Doerthous
Hi all, For getting properties of an org entry by ID, I currently (org 9.7) use (org-entry-get (org-id-find ID t) PROP), but `org-id-find' seems too slow. So I wonder this there any recommended ways to do this job? or, maybe we can cache also the marker returned by `org-id-find' in `org-id-locat

Re: Question about getting properties of org entry

2025-04-06 Thread Doerthous
Ihor Radchenko writes: > Doerthous writes: > >> For getting properties of an org entry by ID, I currently (org 9.7) use >> (org-entry-get (org-id-find ID t) PROP), but `org-id-find' seems too >> slow. So I wonder this there any recommended ways to do this job? >