Re: [PATCH] ox-latex.el: Fix the case of latex-caption-above t

2024-01-16 Thread Mads Bach Villadsen
#+OPTIONS: html-postamble:nil H:5 num:nil ^:{} toc:nil author:nil email:nil tex:dvipng d:nil #+STARTUP: hidestars indent inlineimages :PROPERTIES: :reply-to: ("/var/folders/b9/gky2rvnj4xxd0gl0x7n92j8rgn/T/mm-kl9uCr.html" "/var/folders/b9/gky2rvnj4xxd0gl0x7n92j8rgn/T/cidvUcUMz")

Developing Moodle resources/sites with Org Mode

2024-01-16 Thread Edward Doolittle
Hello everyone, I'm new to Org Mode but I really enjoy working with it. I have begun thinking about how I might use Org mode to improve the experience of developing resources for the open source Moodle LMS or even developing entire Moodle sites. Currently I develop Moodle content for

Re: [POLL] Change calling convention for when `org-link-file-path-type' is set to custom function (was: Enhancement Proposal for 'org-link-file-path-type' Behavior)

2024-01-16 Thread Christopher M. Miles
+1 for this propose. I have one situation need this feature. Assume a file structure like bellowing: #+begin_example `- folder-1 `- file-1.org `- folder-1.2 ` file-1.2.1.org #+end_example When I try to add link of "file-1.org" in "file-1.2.1.org", based on my custom option

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

2024-01-16 Thread Christopher M. Miles
Ihor Radchenko writes: > "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. >

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

2024-01-16 Thread Christopher M. Miles
@Ihor, Thanks for your help. Ihor Radchenko writes: > "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'

Re: [PATCH] Highlight ANSI sequences in the whole buffer (was [PATCH] ANSI color on example blocks and fixed width elements)

2024-01-16 Thread Nathaniel Nicandro
Ihor Radchenko writes: Hello, attached is another updated patch with the following changes: - Made it possible to add headlines or inline tasks to `org-ansi-highlightable-elements', these are added by default now. - To tackle the issue discussed previously about highlights spanning

Re: [BUG] with org-agenda not loading properly after the diff command

2024-01-16 Thread Ihor Radchenko
rameik...@posteo.net writes: > In Emacs, display org-agenda then press key n to show TODOs and agenda. > Now execute M-x diff between an Org file file.org and file.org~ > > Then do M-x org-agenda and press n again. > ... > Obtained result: > > Search failed: "\\]+\\)>" and the agenda stays >

[BUG] with org-agenda not loading properly after the diff command

2024-01-16 Thread rameiko87
In Emacs, display org-agenda then press key n to show TODOs and agenda. Now execute M-x diff between an Org file file.org and file.org~ Then do M-x org-agenda and press n again. Expected result: Your agenda! Obtained result: Search failed: "\\]+\\)>" and the agenda stays empty.

Re: Should org-link-parser add type "file" when link has no "file:" prefix?

2024-01-16 Thread Joseph Turner
Ihor Radchenko writes: > Joseph Turner writes: > I'd like for users to be able to take an existing directory of Org mode documents and copy them all into a hyperdrive. I think the least surprising behavior is for the links between those files to continue working. Perhaps

Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug

2024-01-16 Thread Morgan Smith
Ihor Radchenko writes: > Morgan Smith writes: > >> Ihor Radchenko writes: >> >>> But then `org-agenda-skip-scheduled-if-deadline-is-shown' does not look >>> like the right place for this customization. It would make more sense to >>> have a dedicated custom variable for this. WDYT? >>> .. >> I

Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??

2024-01-16 Thread Juan Manuel Macías
Horst Leps writes: > % Created 2024-01-16 Tue 20:00 > % Intended LaTeX compiler: pdflatex > \documentclass{scrartcl} > \usepackage[utf8]{inputenc} > \usepackage[T1]{fontenc} > \usepackage{graphicx} > \usepackage{grffile} > \usepackage{longtable} > \usepackage{wrapfig} > \usepackage{rotating} >

Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export

2024-01-16 Thread Juan Manuel Macías
Ihor Radchenko writes: > The very reason we use \\[0pt] is because it supposed to prevent > interpreting [...] at the new line/transcoded element as argument. > > You demonstrated that it is yet not always safe enough. > > May it be better to use something like > > \newcommand\nothing{} >

Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??

2024-01-16 Thread Ihor Radchenko
Horst Leps writes: > #+latex_class: koma-article This is non-standard. What is your value of org-latex-classes? > Makes: > ... > \usepackage[germanb]{babel} > ... > \usepackage[greek,german]{babel} > ... > --- > > ! LaTeX Error: Option clash for package babel. >

#+LATEX_HEADER: \usepackage[greek,german]{babel} ??

2024-01-16 Thread Horst Leps
Hi, -- #+latex_class: koma-article #+TITLE: Zu einer aktuellen A #+SUBTITLE: Der Klassiker und einige moderne und aktuelle Texte #+DATE: \today #+AUTHOR: HL #+LATEX_HEADER: \usepackage[utf8]{inputenc} #+LATEX_HEADER: \usepackage[LGR,T1]{fontenc} #+LATEX_HEADER:

Re: [WORG] Status of "Annotated Bibliography Template" page

2024-01-16 Thread Ihor Radchenko
"Thomas S. Dye" writes: >> Thomas, are you still using the described approach or did you >> update it >> to use Org mode's citations? > > Done. Thanks! > ... When I pushed my change to the Worg repo, I got an error new > to me: > > remote: Error submitting build job: A paid account is

Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug

2024-01-16 Thread Ihor Radchenko
Morgan Smith writes: > Ihor Radchenko writes: > >> But then `org-agenda-skip-scheduled-if-deadline-is-shown' does not look >> like the right place for this customization. It would make more sense to >> have a dedicated custom variable for this. WDYT? >> .. > I can't quite remember at this point

Re: [WORG] Status of "Annotated Bibliography Template" page

2024-01-16 Thread Thomas S. Dye
Aloha Ihor, Ihor Radchenko writes: The page https://orgmode.org/worg/exporters/anno-bib-template-worg.html dates back before Org mode had built-in citation support. Thomas, are you still using the described approach or did you update it to use Org mode's citations? Done. When I pushed

Re: back-end - access to :mode attribute for section and symbol-name

2024-01-16 Thread Ihor Radchenko
Garulfo writes: > For "ox-mycontext-section", I try to access the attribute ":mode" of the > section > in order to make the difference between "first-section" and "section". > > I had to use "symbol-name" : > >    (let* >   ((section_mode (symbol-name (org-element-property :mode

Re: [POLL] Any users setting `org-agenda-use-tag-inheritance' to nil or other non-default value?

2024-01-16 Thread Daniel Clemente
> 1. If you customized it to speed up agendas, are agendas still slow on the latest main? I disabled org-agenda-use-tag-inheritance but I can't provide a lot of feedback because I don't use many tag filters: 1. I disabled it in a batch script that exports my agenda, though it doesn't actually

Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug

2024-01-16 Thread Morgan Smith
Ihor Radchenko writes: > But then `org-agenda-skip-scheduled-if-deadline-is-shown' does not look > like the right place for this customization. It would make more sense to > have a dedicated custom variable for this. WDYT? > > I am adding Bastien to the loop - he authored the original feature >

Re: problem with https://orgmode.org/manual/Results-of-Evaluation.html

2024-01-16 Thread Ihor Radchenko
Uwe Brauer via "General discussions about Org-mode." writes: > Ok understood, but then, who can I add hlines to table that does not > possess any? #+name: test | 1 | 2 | | 3 | 4 | #+name: add-hlines #+begin_src emacs-lisp :var table='(1 2) :results value (let (result) (when table (unless

Re: problem with https://orgmode.org/manual/Results-of-Evaluation.html

2024-01-16 Thread General discussions about Org-mode.
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer via "General discussions about Org-mode." > writes: >> #+NAME: many-cols >> | a | b | c | >> | d | e | f | >> | g | h | i | >> >> #+NAME: hline-please >> #+BEGIN_SRC python :var tab=many-cols :hlines yes >> return tab >> #+END_SRC >> >>

Re: [PATCH] Set Python shell in Org edit buffer

2024-01-16 Thread Jack Kamm
Ihor Radchenko writes: >> My concern is that advising `ess-request-a-process' would cause >> maintenance burden on ob-R. It would require some knowledge about the >> ESS internals to maintain properly. > > Not really. I only meant writing an advice iff our request is accepted > by ESS devs.

[POLL] Change calling convention for when `org-link-file-path-type' is set to custom function (was: Enhancement Proposal for 'org-link-file-path-type' Behavior)

2024-01-16 Thread Ihor Radchenko
西 顾 writes: > I'd like to suggest a small enhancement to the > 'org-link-file-path-type' option. When set to 'function', it currently > passes an absolute path to the user's custom function. This limits > flexibility as the original path input is not available to the > function. > > For better

Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2024-01-16 Thread Ihor Radchenko
Ihor Radchenko writes: >> What do you think? > > I think that your use-case is not necessarily common enough to change > the defaults. But we can introduce a defcustom here. Patches welcome! Sławomir, would you be interested to submit a patch here? -- Ihor Radchenko // yantar92, Org mode

Re: Suggestion for org-agenda-list: pre-open org-agenda-files

2024-01-16 Thread Ihor Radchenko
Ihor Radchenko writes: > So, may you dig a bit further and check why `org-agenda-prepare' is not > opening the agenda files? A gentle ping :) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at

Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export

2024-01-16 Thread Ihor Radchenko
Juan Manuel Macías writes: >>> If I'm not mistaken, in TeX '\\' can only be used in horizontal mode: >>> that is, within a paragraph. At the end of an environment like verse >>> (\end{verse}) you are forced to enter vertical mode, and a new paragraph >>> starts. >> >> Is it true for any

Re: [PATCH] Set Python shell in Org edit buffer

2024-01-16 Thread Ihor Radchenko
Jack Kamm writes: >>> Currently I lean towards a combination of #1 and #3, but am not sure, >>> and happy to go with whatever you think is best. >> >> We can also advice `ess-request-a-process' as a temporary workaround. > > My concern is that advising `ess-request-a-process' would cause >

Re: [PATCH] testing: Delete duplicate tests

2024-01-16 Thread Ihor Radchenko
Ilya Chernyshov writes: > There's a lot of tests to change before merging. I'll handle them and > submit a new patch if you have no questions about the code. It has been a while since the last update in this thread. Ilya, do you need any help with the patch? -- Ihor Radchenko // yantar92, Org

Re: Should org-link-parser add type "file" when link has no "file:" prefix?

2024-01-16 Thread Ihor Radchenko
Joseph Turner writes: >>> I'd like for users to be able to take an existing directory of Org mode >>> documents and copy them all into a hyperdrive. I think the least >>> surprising behavior is for the links between those files to continue >>> working. Perhaps the best option is for

Re: [PATCH] org-babel-demarcate-block: split using element API

2024-01-16 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >>> 1 unexpected results: >>>FAILED test-ob/demarcate-block ((should (string= region-text >>> (org-trim (nth 1 info :form (string= "mark this line as region" >>> "") :value nil :explanation (arrays-of-different-length 24 0 "mark >>> this line as

Re: [PATCH] ob-shell: consistent prefix

2024-01-16 Thread Ihor Radchenko
Matt writes: > The attached patch makes names in ob-shell.el use the same prefix > "org-babel-shell-" (along with a few similar minor consistency > updates). > > Without the patch, three naming conventions exist: > > - org-babel-shell > - org-babel-sh > - ob-shell <- that's my fault :) > ...

Re: Basic citations: bugs with citation objects with multiple keys, prefixes, suffixes

2024-01-16 Thread Ihor Radchenko
William Denton writes: > I'm figuring out complex citation objects with prefixes and suffixes and > multiple keys, and found that not all styles export properly (from what I > understand). Here's an Org file that runs through all the citation styles > (the Basic.bib is below). Each

Enhancement Proposal for 'org-link-file-path-type' Behavior

2024-01-16 Thread 西 顾
Dear Org mode maintainers, I'd like to suggest a small enhancement to the 'org-link-file-path-type' option. When set to 'function', it currently passes an absolute path to the user's custom function. This limits flexibility as the original path input is not available to the function. For

Re: [PATCH] ox-latex.el: Fix the case of latex-caption-above t

2024-01-16 Thread Ihor Radchenko
Mads Bach Villadsen writes: > The documentation for `org-latex-caption-above’ seems to imply that it can be > set to a non-nil value to always place captions at the start of environments, > instead of the end. However, with a non-nil value which is not a sequence, > exporting something like