[BUG] org-capture-kill: doesn't remove the right text region

2022-07-14 Thread Caleb Chase
I discovered a bug with org-capture and org-capture kill when canceling an item or plain type template on a heading that has only an empty line for content. Minimal reproduction is as follows: 1. Add the following to =/tmp/capture-bug-init.el=: #+begin_src emacs-lisp :noeval t (require

Re: [tip/offtopic] A function to describe the characters of a word at point

2022-07-14 Thread Juan Manuel Macías
Hi, Marcin and Samuel, thanks for your comments, Marcin Borkowski writes: > You might want to extend it and create a minor mode which would display > data about the current character in the echo area, Eldoc-style, or in > a tooltip when you hover the mouse pointer over a character. Depending >

[BUG] org-colview tests fail in Emacs 29 because of wrong org-colview's assumptions about current-column [9.5.4 (release_9.5.4-626-g45f9d8.dirty @ /home/yantar92/.emacs.d/straight/build/org/)]

2022-07-14 Thread Ihor Radchenko
Hi, On Emacs 29, make test will fail on both bugfix and main: 5 unexpected results: FAILED test-org-colview/columns-move-left FAILED test-org-colview/columns-move-right FAILED test-org-colview/columns-new FAILED test-org-colview/columns-next-allowed-value FAILED

Re: [tip/offtopic] A function to describe the characters of a word at point

2022-07-14 Thread Samuel Wales
good idea for command. i like the additional ideas too like the help text [i hae that put in echo area even in gui]. for even more blue sky stuff, i was thinking along the lines of information about characters, such as en/locale meanings for cjk. or furigana [ruby text] for the echo area.

Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists

2022-07-14 Thread Juan Manuel Macías
Juan Manuel Macías writes: > In any case, I personally think that org-latex-language-alist, as it is > now in this patch, is sufficient. By the way, Maxim. I have been doing some tests with pdfLaTeX. I've known for a while now that it's no longer necessary to load the inputenc package. But it

Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists

2022-07-14 Thread Juan Manuel Macías
Max Nikulin writes: >> Subject: [PATCH] * lisp/ox-latex.el: New variable `org-latex-language-alist' > Writing the previous message I forgot that currently there is no > default option for the fontenc package (PdfLaTeX), e.g. T2A for > Cyrillic. As a result it is not enough to specify just

Re: [tip/offtopic] A function to describe the characters of a word at point

2022-07-14 Thread Marcin Borkowski
On 2022-07-13, at 12:49, Juan Manuel Macías wrote: > Sorry for the slight offtopic. Not off-topic at all, as far as I'm concerned! (Though sending this to help-gnu-emacs might be an even better idea.) I use `C-u C-x =' pretty often, so I fully understand why someone might want to code

Re: Ignore, skip, omit headline when exporting to LaTeX

2022-07-14 Thread Max Nikulin
On 08/07/2022 12:04, Ihor Radchenko wrote: ed...@openmail.cc writes: (defun org-export-ignore-headlines-latex (data backend info) "Hack of `org-export-ignore-headlines' for LaTeX: add a conditional for the latex backend and replace 'ignore' with 'ignoreltx'" (when

Re: [BUG] org-auto-repeat-maybe: error "Can’t expand minibuffer to full frame" and missing log note

2022-07-14 Thread Bhavin Gandhi
On Mon, 11 Jul 2022 at 07:26, Ihor Radchenko wrote: > > Bhavin Gandhi writes: > > >> A better fix may relate to the fact that org-add-log-setup is usually > >> used to run org-add-log-note at the end of current command. y-or-n-p or > >> any other kind of command (e.g. added via advice) will

Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists

2022-07-14 Thread Max Nikulin
On 14/07/2022 19:34, Juan Manuel Macías wrote: Subject: [PATCH] * lisp/ox-latex.el: New variable `org-latex-language-alist' Writing the previous message I forgot that currently there is no default option for the fontenc package (PdfLaTeX), e.g. T2A for Cyrillic. As a result it is not enough to

Re: Recent folding issues

2022-07-14 Thread Ihor Radchenko
Jack Kamm writes: >> Can you try the attached patch set? > > Thanks for the very prompt patchset! > > Testing on the minimal example, the patchset solves the problem I > reported. > > After some brief testing with my usual config, it solves the problem of > headlines running together after

Re: [PATCH] ob-core.el: Fix docstring single quotes [9.6 (9.6-gc66bdb @ /home/n/.emacs.d/elpaca/builds/org/)]

2022-07-14 Thread Ihor Radchenko
No Wayman writes: > Emacs 29's byte compiler warns about single quotes in docstring > examples. Thanks! Applied onto main via d94798872. Best, Ihor

Re: Alternatives or org-capture?

2022-07-14 Thread Greg Minshall
ypuntot, by the way, i use =doct= to express org-capture templates: https://github.com/progfolio/doct in case that might seem more "intuitive" for you. cheers, Greg

Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists

2022-07-14 Thread Juan Manuel Macías
Ihor Radchenko writes: > Thanks! > This looks like an improvement. > However, we may need to preserve the old defconsts for the time being > and declare them obsolete. Hi, Ihor, I attach the new version of the patch with both variables declared obsolete. If everything is ok, I can add what is

Re: [Question]: Parsing attribute string

2022-07-14 Thread General discussions about Org-mode.
Thank Ihor, this did the trick!  -- Sent with Tutanota, enjoy secure & ad-free emails. Jul 14, 2022, 12:53 by yanta...@gmail.com: > emacs--- via "General discussions about Org-mode." > writes: > >> I have a quick question about parsing a string containing attributes. >> My string has the

Re: [Question]: Parsing attribute string

2022-07-14 Thread Ihor Radchenko
emacs--- via "General discussions about Org-mode." writes: > I have a quick question about parsing a string containing attributes. > My string has the following form > (setq my-string ":caption the caption :label fig-1 :width 10cm :something > this is an extra option") > I'm looking for a

[Question]: Parsing attribute string

2022-07-14 Thread General discussions about Org-mode.
Dear list,  I have a quick question about parsing a string containing attributes. My string has the following form (setq my-string ":caption the caption :label fig-1 :width 10cm :something this is an extra option") I'm looking for a function which produces an alist or plist with the option

Re: org-capture and fast selection of tags

2022-07-14 Thread Christian Heinrich
Hi Ihor, thanks for your reply. I looked at the code and came up with a patch that works for me (see below). However, this may change behavior for others: 1. The original %^g will work on non-headlines, but if (org-set-tags-command) is called as I do, this is no longer possible and would need

Re: Confused about source code blocks evaluation when exporting

2022-07-14 Thread Fraga, Eric
On Thursday, 14 Jul 2022 at 10:09, alain.coch...@unistra.fr wrote: > #+begin_src emacs-lisp > (setq org-latex-pdf-process ) > #+end_src > > which I want to be evaluated during export but I want neither the code > not its results to appear on the exported pdf file. > > Maybe there are smarter ways

Re: Confused about source code blocks evaluation when exporting

2022-07-14 Thread Alain . Cochard
Fraga, Eric writes on Thu 14 Jul 2022 07:06: > On Wednesday, 13 Jul 2022 at 23:06, alain.coch...@unistra.fr wrote: > > Now I start again, but I do 'C-c C-e l o' instead. I am _not_ asked > > whether I want to evaluate, and the 'foo' file is still there. But > > the pdf file does display > >

Re: index for HTML export

2022-07-14 Thread Fraga, Eric
On Thursday, 14 Jul 2022 at 09:18, Jens Lechtenboerger wrote: > That is strange. File theindex.inc should contain the index entries. > I believe that “:makeindex t” on the Org source files with #+INDEX: > entries should do the job. Well, it seems that index generation by publishing works with

Re: index for HTML export

2022-07-14 Thread Jens Lechtenboerger
On 2022-07-14, Fraga, Eric wrote: > On Thursday, 14 Jul 2022 at 08:13, Jens Lechtenboerger wrote: >> (list "index-terms" > > [...] > >> :preparation-function 'oer-reveal--add-advice-link >> :completion-function 'oer-reveal--remove-advice-link >> :publishing-function

Re: Confused about source code blocks evaluation when exporting

2022-07-14 Thread Fraga, Eric
On Wednesday, 13 Jul 2022 at 23:06, alain.coch...@unistra.fr wrote: > Now I start again, but I do 'C-c C-e l o' instead. I am _not_ asked > whether I want to evaluate, and the 'foo' file is still there. But > the pdf file does display > > rm -f foo > > Does this still qualify as "evaluation"? I

Re: index for HTML export

2022-07-14 Thread Fraga, Eric
On Thursday, 14 Jul 2022 at 08:13, Jens Lechtenboerger wrote: > (list "index-terms" [...] > :preparation-function 'oer-reveal--add-advice-link > :completion-function 'oer-reveal--remove-advice-link > :publishing-function '(org-html-publish-to-html) >

Re: Confused about source code blocks evaluation when exporting

2022-07-14 Thread Alain . Cochard
Rudolf Adamkovič writes on Thu 14 Jul 2022 08:06: > alain.coch...@unistra.fr writes: > > > Org evaluates source code blocks in an Org file during export. > > I have just tried to export the following document: > > #+begin_src emacs-lisp :exports both > (+ 1 1) > #+end_src > > The

Re: [rounding (ceil in matlab)]

2022-07-14 Thread Uwe Brauer
>>> "RA" == Rudolf Adamkovič writes: > Uwe Brauer writes: >> […] the matlab command `ceil' for example does this, I can't find >> anything similar in the documentation. > How about the 'ceiling' function? See '?ceiling'. For example: > ceiling(quantile(c(1, 2, 3), c(1 / 3, 2 / 3, 1)))

Re: [rounding (ceil in matlab)] (was: calculating quartils, tercils (or percentiles) Using R?)

2022-07-14 Thread Rudolf Adamkovič
Uwe Brauer writes: > […] the matlab command `ceil' for example does this, I can't find > anything similar in the documentation. How about the 'ceiling' function? See '?ceiling'. For example: ceiling(quantile(c(1, 2, 3), c(1 / 3, 2 / 3, 1))) Rudy -- "One can begin to reason only when a

Re: index for HTML export

2022-07-14 Thread Jens Lechtenboerger
On 2022-07-13, Fraga, Eric wrote: > Publishing works, in the sense that my org file is exported to HTML just > fine. An index file is created but is not populated with any index > links. What am I missing? The info page is less than helpful > unfortunately. Are index lines, e.g. > > #+index:

Re: Confused about source code blocks evaluation when exporting

2022-07-14 Thread Rudolf Adamkovič
alain.coch...@unistra.fr writes: > Org evaluates source code blocks in an Org file during export. I have just tried to export the following document: #+begin_src emacs-lisp :exports both (+ 1 1) #+end_src The exported HTML file contains the expression '(+ 1 1)' along with '2', its value. It

exporting timestamps to html, day of the week is not exported.

2022-07-14 Thread Uwe Brauer
Hi I only now realized that the day of the week of week in a org timestamp is not exported. Look at these <2022-07-14 Do> <2022-07-14 Thu> <2022-07-14 jue> Time stamps, when I export them I see that org-export-filter-timestamp-functions is a variable defined in ‘ox.el’. Its value is