From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] org-babel-tangle: Header arg `:comments org' produces no comment in the output [9.7-pre (release_9.6.6-418-g294a4d @ /home/nick/src/emacs/org/org-mode/lisp/)]
Date: Fri, 23 Jun 2023 23:19:02 -0400 [thread overview]
Message-ID: <87352hk0nt.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 87r0q3ddnb.fsf@localhost
Ihor Radchenko <yantar92@posteo.net> writes:
> Nick Dokos <ndokos@redhat.com> writes:
>
>> Here's an ECM:
>> ...
>> I narrowed it down to this snippet of code in `org-babel-tangle-single-block':
>> ...
>> and bisecting fingered this commit:
>> ...
>> Apparently, `org-back-to-heading' sets match data differently now: `(match-end 0)' gets the end of the line,
>> Before the patch, it got the beginning of the line.
>
> Thanks for the report and for the detailed analysis!
> Fixed, on bugfix.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=79ec91584
Thanks!
A couple of nits: maybe the comment that `org-back-to-heading' sets match
data should be deleted? And there is a typo in the initial comment of
the test you added (thanks for adding it!): `:commends org' should be
`:comments org'.
Also, I found a couple of places in the code where `org-back-to-heading' is called
and then match data are used. I don't know if there is a problem or not, but it might
be worth double checking to make sure that the usage makes sense:
- org.el: l.20792 in `org-forward-heading-same-level'
- org-mouse.el: l.976 in `org-mouse-transform-to-outline'
I'll try to test these cases and report back but I can't promise when.
--
Nick
next prev parent reply other threads:[~2023-06-24 3:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-21 19:45 [BUG] org-babel-tangle: Header arg `:comments org' produces no comment in the output [9.7-pre (release_9.6.6-418-g294a4d @ /home/nick/src/emacs/org/org-mode/lisp/)] Nick Dokos
2023-06-22 9:55 ` Ihor Radchenko
2023-06-24 3:19 ` Nick Dokos [this message]
2023-06-24 12:37 ` Ihor Radchenko
2023-06-27 3:25 ` Nick Dokos
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=87352hk0nt.fsf@alphaville.usersys.redhat.com \
--to=ndokos@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).