Re: Tableofcontents

2024-01-12 Thread Pedro Andres Aranda Gutierrez
Horst Leps writes: > (I use Emacs 28, Mac-Mini Apple M2, Sonoma 14.2.1) > Since a few days: Orgmode export to Latex only creates one Latex run, so that the table of contents remains empty and no longer shows any sections. - > What to do? Horst Hi, I'm running on master and my ox-latex config

Re: Diary sexp and comparing dates, agenda

2024-01-12 Thread David Rogers
Ihor Radchenko writes: You don't need diary-float - it returns true/false whether current DATE fits the arguments. Instead, you can make use of `calendar-nth-named-absday'. For example, <%%(and (= 245 (mf-days-from-easter)) (< (calendar-absolute-from-gregorian date)

Re: Moving to the next heading does not always work

2024-01-12 Thread Nick Dokos
Rudolf Adamkovič writes: > REPRODUCTION STEPS: > > 1. Launch 'emacs -Q'. > 2. Create a new Org file: > > * 1 > :PROPERTIES: > :CUSTOM_ID: foo > :END: > * [[#foo][foo]] 2 > * 3 > > 3. Open the newly created Org file. > 3. Type M-x org-toggle-link-display RET. > 4. Move the cursor to the first

[BUG] org-table-eval-formula mishandles semicolons in formulas [9.7-pre (release_9.6.14-1019-g5092ec @ /home/nick/src/emacs/org/org-mode/lisp/)]

2024-01-12 Thread Nick Dokos
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: Diary sexp and comparing dates, agenda

2024-01-12 Thread Ihor Radchenko
David Rogers writes: > * Example 1 > <%%(= 245 (mf-days-from-easter))> > > because "mf-days-from-easter" is defined in my init file, along > with the definition of Easter itself. This does what it looks like > it should do; this year, Example 1 is shown on December 1. > > And I can do > > *

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-12 Thread Ihor Radchenko
Stefan Monnier writes: >> (setq-local kill-line-query-function #'org-kill-line-query) > > Please use `add-function` for such things. > That's its raison d'être. When comparing imaginary kill-line-query-functions (abnormal hook) + add-hook vs. kill-line-query-function + add-function, which one

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-12 Thread Stefan Monnier
> (setq-local kill-line-query-function #'org-kill-line-query) Please use `add-function` for such things. That's its raison d'être. Stefan

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-12 Thread Ihor Radchenko
Ihor Radchenko writes: >> --- >> #+begin_src emacs-lisp >> >> #+end_src >> --- > ... > I cannot reproduce. "---" turned out to be important. This is not a bug. After (insert (org-element-interpret-data copy)) The point ends up at --- line, which is not recognized as a source block. So,

Re: Diary sexp and comparing dates, agenda

2024-01-12 Thread Ken Mankoff
Hi David, I'm not sure if this will help, but I have to file time sheets on the last weekday less than or equal to the 15th and last-day-of-month. I wrote two diary functions to achieve this (I don't handle holiday edge cases). I use these functions with: ** INFO [#A] Time Sheet

Re: Why not enable extra keys by default?

2024-01-12 Thread Rudolf Adamkovič
Dear Ihor, Thank you for taking the time to explain the matter to me. All is clear now! Rudy -- "Simplicity is complexity resolved." --- Constantin Brâncuși, 1876-1957 Rudolf Adamkovič [he/him] Studenohorská 25 84103 Bratislava Slovakia

Moving to the next heading does not always work

2024-01-12 Thread Rudolf Adamkovič
REPRODUCTION STEPS: 1. Launch 'emacs -Q'. 2. Create a new Org file: * 1 :PROPERTIES: :CUSTOM_ID: foo :END: * [[#foo][foo]] 2 * 3 3. Open the newly created Org file. 3. Type M-x org-toggle-link-display RET. 4. Move the cursor to the first heading. 5. Type C-c C-n. EXPECTED: The cursor moves

Re: Diary sexp and comparing dates, agenda

2024-01-12 Thread Tory S. Anderson
I don't have an answer -- my own use of diary-sexp is nothing more than standard holiday inclusion -- but I'm interested and watching for answers on the list. I personally didn't know that you could do such calculations the way you are, such as "too close to DATE", so I'm impressed! - Tory

Re: Tableofcontents

2024-01-12 Thread Tory S. Anderson
Horst Leps writes: > (I use Emacs 28, Mac-Mini Apple M2, Sonoma 14.2.1) > Since a few days: Orgmode export to Latex only creates one Latex run, so that > the table of contents remains empty and no longer shows any sections. - > What to do? Horst I don't run the cutting-edge org, but I often

Re: ob-shell: proposal to remove "posh"

2024-01-12 Thread Matt
On Fri, 12 Jan 2024 11:04:33 +0100 Morgan Willcock wrote --- > As I understand it, the code for the cmd.exe shell is not released > anywhere. Ah, okay. I clearly didn't search too hard for it. > That said, I imagine Wine does contain its own implementation of > cmd.exe, although

Re: [BUG] [WORG] Spurious file: https://orgmode.org/worg/org-tutorials/org-R/tmp.html [9.7-pre (release_9.6.16-1057-gdea778 @ /home/yantar92/.emacs.d/straight/build/org/)]

2024-01-12 Thread Ihor Radchenko
Bastien Guerry writes: >> Should we remove it? > > Sure, please go ahead. Thanks! Fixed, on master. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=dda435773 (the link will be available after I push local changes to sr.ht; after it recovers from the ongoing DDOS) -- Ihor

Re: [BUG] [WORG] Spurious file: https://orgmode.org/worg/org-tutorials/org-R/tmp.html [9.7-pre (release_9.6.16-1057-gdea778 @ /home/yantar92/.emacs.d/straight/build/org/)]

2024-01-12 Thread Bastien Guerry
Hi Ihor, Ihor Radchenko writes: > It looks like https://orgmode.org/worg/org-tutorials/org-R/tmp.html is a > draft of https://orgmode.org/worg/org-tutorials/org-R/org-R.html. > tmp.html/tmp.org is also not referenced from anywhere. > > Should we remove it? Sure, please go ahead. Thanks! --

Re: Tableofcontents

2024-01-12 Thread Ihor Radchenko
Horst Leps writes: > (I use Emacs 28, Mac-Mini Apple M2, Sonoma 14.2.1) > > Since a few days: Orgmode export to Latex only creates one Latex run, so that > the table of contents remains empty and no longer shows any sections. - What > to do? Horst Thanks for reporting! What is your value of

Re: the Chinese characters were garbled after reopening a org-mode file.

2024-01-12 Thread Ihor Radchenko
lhb_immortal writes: > 1. the Chinese characters were garbled when reopen a org-mode file . > 2. I opened the file ,and press the tab key ,then encountered the warnings: > The error was: (error "Invalid search bound (wrong side of point)") > Backtrace: > " backtrace-to-string(nil) >

Re: [BUG] Bug in parser [9.7 (9.7-??-57b94f344 @ /home/jose/.config/emacs/.local/straight/build-29.1/org/)]

2024-01-12 Thread Ihor Radchenko
Jose Salazar writes: > This bug often happens when I load things (such as loading a literate agda > program -- "*.lagda.org", or rendering inline latex, e.g. $x = x^2$). > > I'm using Doom and NixOS. > It doesn't actively disrupt my workflow (only that a window is opened) Your Org mode version

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-12 Thread Ihor Radchenko
Eli Zaretskii writes: >> May you please elaborate what you mean by "old one"? > > kill-line-query-function There is no such variable in Emacs. I proposed to introduce a new variable `kill-line-query-function' earlier in this thread. There is no backwards-compatibility problem we need to solve

[BUG] [WORG] Spurious file: https://orgmode.org/worg/org-tutorials/org-R/tmp.html [9.7-pre (release_9.6.16-1057-gdea778 @ /home/yantar92/.emacs.d/straight/build/org/)]

2024-01-12 Thread Ihor Radchenko
Hi, It looks like https://orgmode.org/worg/org-tutorials/org-R/tmp.html is a draft of https://orgmode.org/worg/org-tutorials/org-R/org-R.html. tmp.html/tmp.org is also not referenced from anywhere. Should we remove it? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-12 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: monn...@iro.umontreal.ca, emacs-orgmode@gnu.org, 65...@debbugs.gnu.org, > maniku...@gmail.com, i...@whxvd.name > Date: Fri, 12 Jan 2024 12:39:18 + > > Eli Zaretskii writes: > > >> I think that I see what you mean. What we can do to achieve this is > >>

Re: Bug report for ox-icalendar: newlines should be CRLF

2024-01-12 Thread Ihor Radchenko
Jack Kamm writes: > I've pushed this change now: > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4446ce795c924a1e115e360d3674f6ad89be845 Fixed. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development

Re: [FR] Add buffer-local setting to request specific ESS process/session name (was: [PATCH] Set Python shell in Org edit buffer)

2024-01-12 Thread Sparapani, Rodney
I see. But, I assume that you meant… 8. Observe that the line still goes to "session1" I usually launch another emacs for “session2”. There’s probably a way to do this manually, but, I take your point. However, if you are a non-user, then why do you care? -- Rodney Sparapani, Associate

the Chinese characters were garbled after reopening a org-mode file.

2024-01-12 Thread lhb_immortal
1. the Chinese characters were garbled when reopen a org-mode file .2.  I opened the file ,and press the tab key ,then encountered the warnings:  The error was: (error "Invalid search bound (wrong side of point)") Backtrace:"  backtrace-to-string(nil)  org-element-at-point()  

Re: [External] [FR] Add buffer-local setting to request specific ESS process/session name (was: [PATCH] Set Python shell in Org edit buffer)

2024-01-12 Thread Richard M. Heiberger
This idiscussion s reminding me of the following ESS functions ess-add-ess-process M-x ... RET Execute this command from within a buffer running a process to add ess-request-a-process M-x ... RET Ask for a process, and make it the current ESS process. ess-switch-process

Re: [FR] Add buffer-local setting to request specific ESS process/session name (was: [PATCH] Set Python shell in Org edit buffer)

2024-01-12 Thread Sparapani, Rodney
Hi Jack: Do you have a patch? I’m not an org-mode user so I can’t test this myself. Thanks -- Rodney Sparapani, Associate Professor of Biostatistics, He/Him/His Vice President, Wisconsin Chapter of the American Statistical Association Institute for Health and Equity, Division of Biostatistics

[BUG] Bug in parser [9.7 (9.7-??-57b94f344 @ /home/jose/.config/emacs/.local/straight/build-29.1/org/)]

2024-01-12 Thread Jose Salazar
This bug often happens when I load things (such as loading a literate agda program -- "*.lagda.org", or rendering inline latex, e.g. $x = x^2$). I'm using Doom and NixOS. It doesn't actively disrupt my workflow (only that a window is opened) The message is the following: ⛔ Warning (org-element):

Re: [FR] Add buffer-local setting to request specific ESS process/session name (was: [PATCH] Set Python shell in Org edit buffer)

2024-01-12 Thread Sparapani, Rodney
Oops! Sorry, I misread the signature. That should be… Hi Ihor: Do you have a patch? I’m not an org-mode user so I can’t test this myself. Thanks -- Rodney Sparapani, Associate Professor of Biostatistics, He/Him/His Vice President, Wisconsin Chapter of the American Statistical Association

Tableofcontents

2024-01-12 Thread Horst Leps
(I use Emacs 28, Mac-Mini Apple M2, Sonoma 14.2.1) Since a few days: Orgmode export to Latex only creates one Latex run, so that the table of contents remains empty and no longer shows any sections. - What to do? Horst

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-12 Thread Ihor Radchenko
Eli Zaretskii writes: >> I think that I see what you mean. What we can do to achieve this is >> changing `kill-line-query-function' into abnormal hook >> `kill-line-query-functions'. Then, `kill-line'/`kill-whole-line' will >> use (run-hook-with-args-until-success 'kill-line-query-functions) to

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-12 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: monn...@iro.umontreal.ca, emacs-orgmode@gnu.org, 65...@debbugs.gnu.org, > maniku...@gmail.com, i...@whxvd.name > Date: Fri, 12 Jan 2024 12:24:01 + > > Eli Zaretskii writes: > > >> Then, Org mode can instead have > >> > >> (setq-local kill-line-query-function

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-12 Thread Ihor Radchenko
Eli Zaretskii writes: >> Then, Org mode can instead have >> >> (setq-local kill-line-query-function #'org-kill-line-query) >> (defun org-kill-line-query (beg end) >> (org-with-point-at beg >> (when (and (org-at-heading-p) >>(progn >> (end-of-line) >>

Re: bug#66291: [Leo Vivier] [PATCH] orgalist: Update bug:31361 workaround for new upstream signature

2024-01-12 Thread Ihor Radchenko
Nicolas Goaziou writes: > To answer Ihor's question : I'm out of touch concerning Org development, > so maintaining a package such as Orgalist may be problematic at some > point, indeed. Then, may we need to ask someone to help maintaining orgalist? Similar question about a number of Org mode

Re: org-agenda + [a] generated many duplicated task entries

2024-01-12 Thread Ihor Radchenko
"Christopher M. Miles" writes: > When I execute command "org-agenda" with key "[a]" to generate > org-agenda day view. Many task entries are duplicated. Maybe you have something in `org-agenda-skip-scheduled-if-deadline-is-shown' or similar customization. > I tried many methods trying to

Re: [fr] org-copy-subtree or so with no header

2024-01-12 Thread Ihor Radchenko
Samuel Wales writes: > idk if 2 is a bug vs. overly strict behavior. org-export-with-tasks > is technically doing what it is documented to do. but only > technically. > > it is not useful to me for it to fail to export when you explicitly > try to export a subtree that is forbidden by the

Re: [PATCH v6] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2024-01-12 Thread Ihor Radchenko
"Christopher M. Miles" writes: > Thanks for updating, this patch looks great to me. Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=dea7780d6 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support

[ob-clojure] Clojure sessions in Org Src buffers (was: [PATCH] Set Python shell in Org edit buffer)

2024-01-12 Thread Ihor Radchenko
"Christopher M. Miles" writes: >> (or (org-babel-comint-buffer-livep session) >> (eq org-src-auto-initiate-session t) >> (alist-get (nth 0 info) org-src-auto-initiate-session) >> (alist-get 'default org-src-auto-initiate-session)) >> >> With `org-src-auto-initiate-session' being a

Re: ob-shell: proposal to remove "posh"

2024-01-12 Thread Morgan Willcock
Matt writes: > AFAIKT, both PowerShell and cmd are MIT licensed: > - https://github.com/microsoft/terminal > - https://github.com/PowerShell/PowerShell > > The thought of compiling either for a GNU system is...ugh. But maybe someone > else has gotten them working? Otherwise, it looks like