From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Incorrect link is stored (org-elements?)
Date: Wed, 10 Nov 2021 19:52:23 +0700 [thread overview]
Message-ID: <smgfa9$71t$1@ciao.gmane.io> (raw)
In-Reply-To: <871r3po8l8.fsf@localhost>
On 09/11/2021 18:46, Ihor Radchenko wrote:
> Max Nikulin writes:
>
>> `org-store-link' under some conditions may pick a link to wrong heading.
>> Emacs-26.3, Org main~1.
>
> I can reproduce, though not exactly following your steps.
> Can you try the attached patch?
With equivalent patch (attached one has additional differences in spaces
around) my particular case works. I have no idea which additional
scenarios it may affect. I did not test the patch extensively. I faced
the issue while I was preparing a patch to fix storing double #CUSTOM_ID
links.
P.S. I am puzzled that `org-element-at-point' returns paragraph even
when patch is not applied. After such call `org-store-link' does what I
expect. However "after undo" erroneous state survives emacs restart,
thanks to org-persist, I believe.
next prev parent reply other threads:[~2021-11-10 12:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-08 17:01 Incorrect link is stored (org-elements?) Max Nikulin
2021-11-09 11:46 ` Ihor Radchenko
2021-11-10 12:52 ` Max Nikulin [this message]
2021-11-10 13:48 ` Ihor Radchenko
2021-11-11 14:45 ` Max Nikulin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='smgfa9$71t$1@ciao.gmane.io' \
--to=manikulin@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.