emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

continuing about orgalist org-element interaction


From: Rustom Mody
Subject: continuing about orgalist org-element interaction
Date: Wed, 19 Jun 2024 21:37:36 +0530

I guess in a way the other thread (Sub: orgalist send bug) is done and
orgalist in the new version is usable enough for me that I can live
with the warning.

But I was troubled with the possibility of lots of load path shadows
so I spent some time cleaning up. [In any case since emacs had got
upgraded recently, things like use-package are now in emacs so they
had to be removed. So it's good I did that]

But I felt like still poking around seeing if I could see what's the issue.

I figured its these 5 lines at the start of org-element-at-point

(unless (derived-mode-p 'org-mode)
         (display-warning
          '(org-element org-element-parser)
          (format-message
           "`org-element-at-point' cannot be used in non-Org buffer %S (%s)"
         (current-buffer) major-mode)))

Now the current buffer (in my case) is text-mode, obviously not org
mode so why that check??

Commenting out those lines the error message has gone. (And of course
its still working)

[I also checked that the corresponding send from ORGTBL does NOT
invoke org-element-at-point]

Now obviously I dont understand enough about the innards of org to
make any suggestion to remove as Ive currently tried.
But still there is the question (really for Nicolas)
What is the meaning of ensuring that its org mode and warning
otherwise when orgalist (like orgtbl) are meant specifically for non
org buffers?

Thanks
Rusi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]