unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Caleb Chase <chase.caleb@gmail.com>
To: akrl@sdf.org, 51382@debbugs.gnu.org
Subject: bug#51382: 29.0.50; org-offer-links-in-entry is incompatible with native-compile
Date: Wed, 27 Oct 2021 10:13:49 -0500	[thread overview]
Message-ID: <CAKTYAwoChdQ-hw19fFpothfTPv2ueDHhKzh77jPPPMPLF1R47w@mail.gmail.com> (raw)
In-Reply-To: <87a6ixzq6h.fsf@yahoo.com>

Here's a trivial reproduction:

1. Create an org file, e.g. /tmp/test.org. See end of this message for
an example, but essentially any org file with a heading that contains
multiple links somewhere within its contents.
2. Ensure that org.el is natively compiled
3. Run "emacs -Q"
4. "C-x C-f" to open the test file
5. Move point to beginning of the header
6. "C-c C-o 2" to open the second link
7. Bug occurs: first link is opened regardless of choice in the previous step

Workaround:
1. Disable native comp for org.el in your early-init.el: (setq
native-comp-deferred-compilation-deny-list (list (rx "org/org.el"
string-end)))
   - Note: I think putting this early on in init.el would work too, so
long as it is set before org.el is loaded? Not sure.
2. Delete the native-compiled version of org.el. Check
native-comp-eln-load-path to determine the right directories, then in
each one run something like: find the-eln-directory -name
'org-[0-9]*\.eln' -delete

I'm not positive if both steps of the workaround are necessary or just
one of them.

---
Example contents for /tmp/test.org begin on the next line:
* Heading
  - https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51382
  - https://www.gnu.org/software/emacs/





  parent reply	other threads:[~2021-10-27 15:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87a6ixzq6h.fsf.ref@yahoo.com>
2021-10-25  4:25 ` bug#51382: 29.0.50; org-offer-links-in-entry is incompatible with native-compile luangruo--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-25  8:48   ` Andrea Corallo
2021-10-27 15:13   ` Caleb Chase [this message]
2022-09-13 16:05     ` Lars Ingebrigtsen
2022-09-13 16:27       ` Caleb Chase
2022-09-13 16:34         ` Lars Ingebrigtsen

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKTYAwoChdQ-hw19fFpothfTPv2ueDHhKzh77jPPPMPLF1R47w@mail.gmail.com \
    --to=chase.caleb@gmail.com \
    --cc=51382@debbugs.gnu.org \
    --cc=akrl@sdf.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.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).