Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evil-local-mode altering match data causing org-mode tables to hang #1642

Closed
cgrabenstein opened this issue Jul 28, 2022 · 1 comment
Closed

Comments

@cgrabenstein
Copy link

Issue type

  • Bug report

Environment

Emacs version: GNU Emacs 28.1 (build 1, x86_64-apple-darwin20.6.0, Carbon Version 164 AppKit 2022.6) of 2022-05-03

Operating System: macOS Monterey
Evil version: 1.15.0
Evil installation type: straight
Graphical/Terminal: Graphical
Tested in a make emacs session (see CONTRIBUTING.md): Yes, together with evil-leader and org-mode

Reproduction steps

  • Start Emacs
  • Install org-mode 9.5.4, evil and evil-leader, and enable evil-mode
    and global-evil-leader-mode.
  • Open or create an org file that has a table like that:
| header | another header |
  • Place your cursor in the header and hit enter (in evil insert mode).
  • Emacs hangs in an endless loop, you will have to interrupt with C-g.

Expected behavior

Emacs should not hang.

Actual behavior

Emacs hangs

Further notes

  • See https://emacs.stackexchange.com/questions/72769/org-mode-tables-slowed-down-by-evil-mode for a bit more background regarding this issue.

  • I originally reported this to the org-mode mailing list, as the described behaviour does not happen with org-mode 9.5.2. But Ihor Radchenko responded:

    evil-local-mode is run in temporary buffer, which is OK. What is not OK is that evil-local-mode is altering the match data. It must not happen.

    Hence I am reporting it here.

@cgrabenstein cgrabenstein changed the title evil-local-altering match data causing org-mode tables to hang evil-local-mode altering match data causing org-mode tables to hang Jul 28, 2022
@wasamasa
Copy link
Member

wasamasa commented Sep 7, 2022

As stated on https://old.reddit.com/r/emacs/comments/x79dds/evil_and_org_tables_what_am_i_missing/inbycsi/ the offending package is evil-leader, so I'm closing this.

@wasamasa wasamasa closed this as completed Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants