awth13 / org-appear

Toggle visibility of hidden Org mode element parts upon entering and leaving an element
MIT License
383 stars 19 forks source link

Stop working when cursor is on a link if `org-fold-core-style` is set to 'overlays, can anyone else confirm? #53

Closed zbelial closed 4 months ago

zbelial commented 1 year ago

First, thanks for this great package.

I'm using orgmode 9.6.6 with Emacs 29.1 on Linux. I set org-fold-core-style to 'overlays to solve the problem that org-cycle does not work sometimes.

After changing org-fold-core-style to 'test-properties (the default value), org-appear works as expected again.

walseb commented 1 year ago

I'm also on org 9.6.6 and have org-fold-core-style set to 'overlay. Org-appear works for me, although there are freezes sometimes that I believe to be unrelated to this package. I'm running Emacs 30.0.50.

zbelial commented 1 year ago

Hi @walseb , thanks.

I have had no luck. I can reproduce the problem with emacs -Q, the following was how I did:

  1. emacs -Q
  2. eval the config:
    
    (add-to-list 'load-path "/path/to/org-appear")

(setq org-fold-core-style 'overlays)

(require 'org) (require 'org-appear)

(add-hook 'org-mode-hook #'org-appear-mode)

(setq org-appear-trigger 'always) (setq org-appear-autosubmarkers t) (setq org-appear-autoentities t) (setq org-appear-autolinks t)


3. Open an org file with links, org-appear does not work when the cursor is on links

`org-fold-core-style` must be set before loading org.  You set it before or after loading org?  Thanks. 
walseb commented 1 year ago

Hello!

Yes I set it long before org loads, in my early-init.el. However, I don't use org-appear with links, only things like bold, etc. Maybe this is only an issue with links.

psionic-k commented 1 year ago

Also was using (setq org-fold-core-style 'overlays). Turned if off, links work.

gw-lucas commented 6 months ago

Interestingly enough, I now have the exact same problem, but the other way around. In Emacs 29.3, with Org 9.6.15.

(add-to-list 'load-path "/path/to/org-appear")

(setq org-fold-core-style 'text-properties)

(require 'org)
(require 'org-appear)

(add-hook 'org-mode-hook #'org-appear-mode)

(setq org-appear-trigger 'always)
(setq org-appear-autosubmarkers t)
(setq org-appear-autoentities t)
(setq org-appear-autolinks t)

Since text-properties is the default value, links were not revealed at first. When I switched to overlays after seeing this issue, org-appear started working on links.

kvineet commented 4 months ago

I am running emacs 29.3 with org version 9.8. org-fold-core-style is set to 'overlays

Links are not working for me post org-fold support were added to org-appear If I pin to commit 8dd1e564153d8007ebc4bb4e14250bde84e26a34, links work. also no issues observed with org-fold.

awth13 commented 4 months ago

Hey everyone, I'm so sorry it took me so long to respond to this!

It should be fixed now but note that, for Org versions above 9.7, using the org-9.7-fixes branch is recommended. This is all because of huge revamps in org-fold and org-element over the last 2 years.

Please reopen if there are similar issues after the fix.