Re: org upgrade warnings from a simple package-upgrade

2025-03-15 Thread Ship Mints
On Sat, Mar 15, 2025 at 1:32 PM Ihor Radchenko wrote: > Ship Mints writes: > > > I ran package-upgrade cherry picking org in an Emacs session that was > > running for a week or so. I restarted it after package-upgrade and got > the > > warnings below. > > > &

org upgrade warnings from a simple package-upgrade

2025-02-06 Thread Ship Mints
I ran package-upgrade cherry picking org in an Emacs session that was running for a week or so. I restarted it after package-upgrade and got the warnings below. I ran package-reinstall to force it all to be recompiled and I restarted Emacs with no warnings. I have a feeling what happened is that n

Re: Add org-src-is-fontify-buffer-p (patch attached)

2025-01-18 Thread Ship Mints
Makes sense. I'm not set up to contribute to WORG, perhaps you can do it, if you don't mind? On Sat, Jan 18, 2025 at 7:39 AM Ihor Radchenko wrote: > Ship Mints writes: > > > This could be added to the org-mode documentation as a hint for those who > > use native fo

Re: Add org-src-is-fontify-buffer-p (patch attached)

2025-01-18 Thread Ship Mints
hor Radchenko wrote: > > Ship Mints writes: > > > >> Yes, could do, and nothing needed by org-mode or markdown-mode. Could > also > >> test for buffer-file-name nil. Or test both. Let's recommend that > simpler > >> approach and I will rescind my

Re: Add org-src-is-fontify-buffer-p (patch attached)

2025-01-18 Thread Ship Mints
This could be added to the org-mode documentation as a hint for those who use native fontification. Should I send a patch for that or trivial enough you'd do it, if you agree? On Sat, Jan 18, 2025 at 6:54 AM Ship Mints wrote: > For the record, this is what I've recommended and wh

Re: Add org-src-is-fontify-buffer-p (patch attached)

2025-01-18 Thread Ship Mints
For the record, this is what I've recommended and what I will use: (defun my/XXX-mode-hook () (when (or buffer-file-name (not (string-prefix-p " " (buffer-name ;; do something expensive )) On Sat, Jan 18, 2025 at 6:36 AM Ihor Radchenko wrote

Re: Add org-src-is-fontify-buffer-p (patch attached)

2025-01-18 Thread Ship Mints
Yes, could do, and nothing needed by org-mode or markdown-mode. Could also test for buffer-file-name nil. Or test both. Let's recommend that simpler approach and I will rescind my markdown PR in favor of this simpler suggestion. On Sat, Jan 18, 2025 at 6:18 AM Ihor Radchenko wrote: > Sh

Re: Add org-src-is-fontify-buffer-p (patch attached)

2025-01-18 Thread Ship Mints
at, Jan 18, 2025 at 2:27 AM Ihor Radchenko wrote: > Ship Mints writes: > > > I've added the predicate function org-src-is-fontify-buffer-p which can > be > > used in a prog-mode hook to avoid resource-intensive features such as > eglot > > inside a fontification bu

Add org-src-is-fontify-buffer-p (patch attached)

2025-01-17 Thread Ship Mints
Greetings, org-mode maintainers, I've become an occasional contributor over on the Emacs side. I thought I'd give an org-mode contribution a try. The attached patch came out of the discussion here https://www.reddit.com/r/emacs/comments/1i3mk6m/disable_eglot_in_orgmode_source_blocks/ I've added