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

Emacs hangs opening org files with complex tables #35

Open
Addlai opened this issue Dec 4, 2023 · 2 comments
Open

Emacs hangs opening org files with complex tables #35

Addlai opened this issue Dec 4, 2023 · 2 comments

Comments

@Addlai
Copy link

Addlai commented Dec 4, 2023

I'm a heavy user of tables in org mode. Some of the tables I use have org mode html links, which from a comment on the description page I think might be incompatible with valign.

In any case, I thought I should report that I had a problem using valign severe enough that Emacs would hang when visiting an org file with such tables. In some cases, I could partially recover by hitting ctrl-g enough times, but after this, Emacs would have very laggy behavior and did not display tables correctly. (No white space was added, so there was no column alignment.) In other cases, I had to resort to OS-level force-quit (this is macOS).

The fact that the problem was due to links in the table is just my guess. I haven't taken the time to investigate this carefully. I could try to produce a MWE if you think it would be helpful.

@casouri
Copy link
Owner

casouri commented Dec 5, 2023

Hmm, usually large tables are skipped because of valign-max-table-size. Maybe your table are not large, but have something else that slows down parsing? It could really help if you can post some example.

@douo
Copy link

douo commented Dec 12, 2024

same issue.
stack trace:

  valign--calculate-cell-width(176971)
  valign-table-1()
  valign-table-maybe(nil t)
  valign-region()
  valign--buffer-advice()
  valign--org-indent-advice()
  apply(valign--org-indent-advice nil)
  org-indent-initialize-agent()
  apply(org-indent-initialize-agent nil)
  timer-event-handler([t 0 0 200000 t org-indent-initialize-agent nil idle 0 nil])```

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

3 participants