different faces for categories in agenda view?

2025-01-14 Thread Fraga, Eric
Dear all, is there any way to apply different faces to entries in the agenda view depending on category? I do have the category displayed as well as a different icon but it would be good to have the whole entry use a specific face as a function of the category. Sort of like hi-lock allows me to

Re: The ob-R :results graphics file :dir "images" :file "plot.png" specified directory not working

2025-01-14 Thread General discussions about Org-mode.
On 2025-01-14 05:29, stardiviner wrote: I tested using org-mode's `make repro` clean Emacs & org-mode environment instance. It works fine. I double checked my Emacs init file about R settings. Have not found suspicious config. So to confirm, you *cannot* reproduce the error with a clean confi

Re: The ob-R :results graphics file :dir "images" :file "plot.png" specified directory not working

2025-01-14 Thread stardiviner
Finally found the real reason: package `project-rootfile` -> (add-to-list 'project-find-functions #'project-rootfile-try-detect t) I don't know why project-rootfile involved in the Org mode Babel source block execution path. I checked out the source code of `project-rootfile`. Have not found any cl

Re: The ob-R :results graphics file :dir "images" :file "plot.png" specified directory not working

2025-01-14 Thread stardiviner
> Some relevant settings that may be altered by your config are `ess-startup-directory` and `ess-startup-directory-function`. It might be, for example, that one of these is forcibly changing the R process' working directory to a project root ("~/Org", in this instance) Yes, I found the reason `pro

Re: [BUG] Cannot tangle src block in capture buffer [9.7.6]

2025-01-14 Thread Ihor Radchenko
Derek Chen-Becker writes: > Thanks for the help on this! I've reworked the changes into two patches > (one for the README and one for tangle) and I think I've covered your > concerns. I also added a unit test for the org-base-buffer-file-name > function to cover the miss on provided buffers. Plea

Re: [BUG] org-agenda-later sometimes creates a void display [9.7.11 (release_9.7.11 @ /usr/local/share/emacs/31.0.50/lisp/org/)]

2025-01-14 Thread Ihor Radchenko
Michael Heerdegen writes: > Yes, this solves my problem indeed, and behaves quite ok. Time will > show whether I like the behavior, but it's a definite improvement, so I > suggest we go with it for now. Applied. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=532

Re: The ob-R :results graphics file :dir "images" :file "plot.png" specified directory not working

2025-01-14 Thread William Denton
On Tuesday, January 14th, 2025 at 11:04, stardiviner wrote: > Finally found the real reason: package `project-rootfile` -> (add-to-list > 'project-find-functions #'project-rootfile-try-detect t) > I don't know why project-rootfile involved in the Org mode Babel source block > execution path. >

Re: [BUG] Cannot tangle src block in capture buffer [9.7.6]

2025-01-14 Thread Derek Chen-Becker
Thanks for the comments! This is my first real foray into non-trivial elisp so I really appreciate your patience and help. Let me try and get these addressed. Cheers, derek On Tue, Jan 14, 2025 at 10:54 AM Ihor Radchenko wrote: > Derek Chen-Becker writes: > > > Thanks for the help on this! I'

Re: [ERROR] org-todo [C-c C-t] change task todo state raised error

2025-01-14 Thread Michael Heerdegen
Ihor Radchenko writes: > > #+begin_example > > Debugger entered--Lisp error: (args-out-of-range # 0 > > 3092985) Looks like invalid match data could be the cause. AFAIU match data is set by this expression: #+begin_src emacs-lisp (or (looking-at (concat " +" org-todo-regexp "\\( +\\|[ \t]*$\\)

Re: [ERROR] org-todo [C-c C-t] change task todo state raised error

2025-01-14 Thread Michael Heerdegen
Michael Heerdegen writes: > #+begin_src emacs-lisp > (or (looking-at (concat " +" org-todo-regexp "\\( +\\|[ \t]*$\\)")) > (looking-at "\\(?: *\\|[ \t]*$\\)")) > #+end_src If you replace that part of `org-todo' with #+begin_src emacs-lisp (or (looking-at (concat " +" org-todo-regexp "\\( +\

Re: [BUG] Cannot tangle src block in capture buffer [9.7.6]

2025-01-14 Thread Michael Heerdegen
Ihor Radchenko writes: > > + (if (buffer-base-buffer BUFFER) > > + (buffer-file-name (buffer-base-buffer BUFFER)) > > +(buffer-file-name BUFFER))) > > Nit: Can also use `if-let*' to avoid calling `buffer-base-buffer' twice. Nit^2: or just (buffer-file-name (or (buffer-base-buffer buffe