org-datetree-insert-line and org-blank-before-new-entry

2021-08-31 Thread Richard Walker
A follow-up to the changes made to org-datetree-insert-line in September 2020. The definition now begins: (defun org-datetree-insert-line (year month day text) (delete-region (save-excursion (skip-chars-backward " \t\n") (point)) (point)) (when (assq 'heading org-blank-before-new-entry)

[PATCH] org-indent: Allow indentation per level to be 0

2021-08-31 Thread David Lukes
* lisp/org-indent.el (org-indent--compute-prefixes): Prefixes should only be computed when `org-indent-indentation-per-level' is greater than 0. For one thing, the current algorithm leads to an error otherwise, and for another, this makes it possible to use org-indent just to preserve indentation

Re: org-indent-indentation-per-level may be broken

2021-08-31 Thread David Lukeš
> No trouble, sometimes the “main people” (Bastien, Nicolas, …) end up > being a bit snowed under and things take a bit longer than one might > hope, but we’ll always try to get back to you . I realize that, I hope I didn't sound snarky, I was being genuinely thankful :) > Would you care to

Re: [BUG] Creating sparse tree with regexp property matches

2021-08-31 Thread Daniel Fleischer
Hi Timothy, Attached is my patch. Best, *Daniel Fleischer* >From 05602a3eb453672893e7e92cc0384e1b6b7784aa Mon Sep 17 00:00:00 2001 From: Daniel Fleischer Date: Tue, 31 Aug 2021 20:01:47 +0300 Subject: [PATCH] org-manual: added section about regular expressions Telling users it's based on

Re: Bug: Error making documentation 9.4.6

2021-08-31 Thread Marco Wahl
>> [... issue with make doc ...] > Sorry about that, I'm new in contributing to org. I found the solution > in the mailing list[1]. There was an old version of `makeinfo'. > [1] > Good to know.

Re: Bug: Error making documentation 9.4.6

2021-08-31 Thread Daniel Fleischer
Hi Marco, Sorry about that, I'm new in contributing to org. I found the solution in the mailing list[1]. There was an old version of `makeinfo'. Daniel Fleischer Footnotes _ [1]

Re: New source block results option for attaching file to node

2021-08-31 Thread Ryan Scott
Great. Yeah I tried to adhere to the commit format the best I could. org-attach-dir is a function for me (latest org pulled using straight.el) org/lisp/org-attach.el:327. The primary use case is src blocks that generate files, in my case usually gnuplot or graphviz, and return a file path. With a

Re: Bug: Error making documentation 9.4.6

2021-08-31 Thread Marco Wahl
Daniel Fleischer writes: > Hi, > > Pulling master @ 1690fbd88, calling `make doc' leads to error: > > > org-version: 9.4.6 (release_9.4.6-635-g1690fb) > makeinfo --no-split org.texi -o org.info > org.texi:6: warning: unrecognized encoding name `UTF-8'. > org.texi:810: Unknown command `arrow'. >

Re: [PATCH] Fix bug assuming canonical duration units in org-agenda-format-items

2021-08-31 Thread Nicolas Goaziou
Hello, Anders Johansson writes: >> I think a proper fix would be to change `org-duration-from-minutes' so >> it removes any unknown unit from what is provided from fmt or >> `org-duration-format', and defaults to (special . h:mm) if nothing is >> left. >> >> WDYT? >> > Perhaps. I don't

Re: [PATCH] Fix match/maxlevel conflict in colview dynblock

2021-08-31 Thread Nick Dokos
Timothy writes: > Hi Nick, > > Thanks for reporting this issue here, and providing a patch. Unfortunately the > “main maintainers” seem to be rather busy as of late, leaving you hanging for > quite a while. I’ve had a look at the issue and your patch, and it the issue > seems clear, and your

Re:[BUG] Indentation broken after double quote

2021-08-31 Thread Ivan Sokolov
Yes, I typed your example and got this: * Some headline "hey" " hey there #+begin_src sh '"' #+end_src

Bug: Error making documentation 9.4.6

2021-08-31 Thread Daniel Fleischer
Hi, Pulling master @ 1690fbd88, calling `make doc' leads to error: org-version: 9.4.6 (release_9.4.6-635-g1690fb) makeinfo --no-split org.texi -o org.info org.texi:6: warning: unrecognized encoding name `UTF-8'. org.texi:810: Unknown command `arrow'. org.texi:810: Misplaced {. org.texi:810:

RE: Bug: Percentage in caption (even escaped) does not work in LaTeX export

2021-08-31 Thread Charest, Luc
Hello Timothy, Yeah, I tried, and it did not worked. I had exchanged emails with Eric, we came to the conclusion that the source of the problem might be a clash between my emacs version 26 and an updated version of the org-mode. I have to try to update my emacs to see where it goes from

Re: Bug: Behavior of org-adapt-indentation [9.4.6 (9.4.6-10-gee652a-elpa @ /home/fsantos/.emacs.d/elpa/org-20210705/)]

2021-08-31 Thread Timothy
Hi Frédéric, I tried to reproduce with emacs -Q but I had no luck (see the image attached). Could you give emacs -Q a go and let us know how it goes? Frédéric Santos writes: > Hi! > > This might not be *really* a bug, but since a recent update of Org, I > noticed an unwanted indentation of

Re: Bug: org-deadline drops warning periods from TIME [9.4.6 (9.4.6-10-gee652a-elpaplus @ /home/fap/.emacs.d/elpa/org-plus-contrib-20210712/)]

2021-08-31 Thread Timothy
Bug confirmed and added to updates.orgmode.org.

Re: [BUG] Indentation broken after double quote

2021-08-31 Thread Timothy
Hi Ivan, I just tried this with the following example ┌ │ * Some headline "hey" │ " │ hey there │ │ #+begin_src sh │ '"' │ #+end_src └ and I couldn’t reproduce your issue. Are you still seeing this issue? All the best, Timothy

Re: [PATCH] Fix bug assuming canonical duration units in org-agenda-format-items

2021-08-31 Thread Anders Johansson
Hi, Oh, I sent a response but failed to send it to the list and only to Nicolas (hard to do things right using the gmail web interface) I include it below: > I think a proper fix would be to change `org-duration-from-minutes' so > it removes any unknown unit from what is provided from fmt or >

Re: Bug: Percentage in caption (even escaped) does not work in LaTeX export

2021-08-31 Thread Timothy
Hi Luc, Eric wrote: > What happens if you do specify a language? > > If I specify a language, the export is fine with % unescaped, by the > way. Have you been able to give this a shot? All the best, Timothy

Re: org-indent-indentation-per-level may be broken

2021-08-31 Thread Timothy
Hi David, > Thanks for getting back to me! No trouble, sometimes the “main people” (Bastien, Nicolas, …) end up being a bit snowed under and things take a bit longer than one might hope, but we’ll always try to get back to you . >> Is the patch in your original email a good fix for this? > >

Re: org-indent-indentation-per-level may be broken

2021-08-31 Thread David Lukeš
Hi Timothy, Thanks for getting back to me! > Is the patch in your original email a good fix for this? Basically yes, though I've simplified it to this: --8<--->8-- diff --git a/lisp/org-indent.el b/lisp/org-indent.el index

Re: [patch] priorities range reversed

2021-08-31 Thread Timothy
Hi Joe, Thanks for looking into this and figuring out a patch. I’ve just taken a peek at your patches, and I have two minor comments: ⁃ Why use saved-position instead of save-excursion ⁃ I’m think ascii versions of ② et. al would be preferable Also, I notice that your patches are just diffs and

[PATCH] Re: Bug: org-edit-special indents inline latex [9.5 (nil @ /home/david/.emacs.d/.local/straight/build-27.2/org-mode/)]

2021-08-31 Thread Sébastien Miquel
Hi, Ihor Radchenko writes: Dávid Jakab writes: When using org-edit-special to edit inline latex, i.e., equations between \( and \), in an org-mode buffer, a number of spaces may get inserted before \( after the latex editing minibuffer is closed. The attached patch fixes this as well as a

Re: [PATCH] Fix match/maxlevel conflict in colview dynblock

2021-08-31 Thread Timothy
Hi Nick, Thanks for reporting this issue here, and providing a patch. Unfortunately the “main maintainers” seem to be rather busy as of late, leaving you hanging for quite a while. I’ve had a look at the issue and your patch, and it the issue seems clear, and your patch small and straightforward

Re: org-indent-indentation-per-level may be broken

2021-08-31 Thread Timothy
Hi David, > I got confused when testing the different variations, I was expecting > the indentation change to happen in the wrong place. Sorry for that! Glad to hear it’s not as bad as you initially thought. > So to be clear: setting org-indent-indentation-per-level to 0 is broken > and leads

Insert outline breadcrumbs just before headings text in agenda view

2021-08-31 Thread Shankar Rao
In Emacs org-mode, I have a set of TODOs in the following format: * H1 ** H2 *** H3 TODO [#A] File Taxes If I activate breadcrumbs in org-agenda-prefix-format (i.e., by doing (setf (alist-get 'agenda org-agenda-prefix-format) " %i %-12:c%?-12t% s%b")), when I look at the agenda-todo view,

Re: ob-R: Error about longer than max-lines even with :result silent

2021-08-31 Thread Timothy
Hi Yasushi, > Yes, that’s exactly what I was looking for. > > I’m attaching patches to document it. Nicolas, or anyone with commit > permission, if you find it useful please merge them. Thanks for going to the effort to document this Yasushi. I’ve taken a look at your patches and they look

Re: [PATCH] Fix bug assuming canonical duration units in org-agenda-format-items

2021-08-31 Thread Timothy
Hi Anders, Did you have any thoughts on Nicolas’ comments? Nicolas Goaziou writes: > Hello, > > Anders Johansson writes: > >> org-duration-from-minutes was called with canonical = t, but without >> providing a corresponding format only using the canonical units. This >> broke if the user’s

Re: [BUG] Creating sparse tree with regexp property matches

2021-08-31 Thread Daniel Fleischer
Timothy [2021-08-31 Tue 19:27] wrote: > Hi Cassio, > >> Ah! Can’t believe I didn’t try that. Well, at least the docs can >> benefit from my confusion. > > Would you be interested in making a patch for the docs, or would you rather > leave that to someone else? Actually I want to do that. I had

Re: Bug: `org-fill-paragraph' relies on M-q being bound to `fill-paragraph' [9.4.6 (9.4.6-12-gdcc3a8-elpa @ /home/mwj/.emacs.d/elpa/org-20210809/)]

2021-08-31 Thread Timothy
"Marvin J." writes: > If you globally rebind M-q, then `org-fill-paragraph' will not work > properly anymore. > The reason is that `org-fill-element' has the line > (src-block (org-babel-do-key-sequence-in-edit-buffer (kbd "M-q"))) > While of course M-q is the default binding for

Re: [BUG] Creating sparse tree with regexp property matches

2021-08-31 Thread Timothy
Hi Daniel, >> Would you be interested in making a patch for the docs, or would you rather >> leave that to someone else? > > Actually I want to do that. I had an idea to add a node (in org) > “reminding” people that all mentions of regex refer to elisp regex, > which could be different than what

Re: [BUG] Creating sparse tree with regexp property matches

2021-08-31 Thread Cassio Koshikumo
Hey, great! I was going to patch the example (was just reading the commit guidelines) but I'll leave it in your hands then. Thanks! Best, On Tue, Aug 31, 2021 at 9:33 AM Daniel Fleischer wrote: > > Timothy [2021-08-31 Tue 19:27] wrote: > > > Hi Cassio, > > > >> Ah! Can’t believe I didn’t try

Re: [PATCH] ox-ascii.el: Fix justify when `indent-tabs-mode' is non-nil

2021-08-31 Thread Timothy
Hi Morgan, > Great! Thank you for taking a look. No problem, thanks for making the patch :) > I used `git send-email` which is listed as being OK on the website: Huh, I guess it should be fine then. I’ve just never seen the commit message at the top like that so I assumed you’d done it by

Re: [PATCH] ox-ascii.el: Fix justify when `indent-tabs-mode' is non-nil

2021-08-31 Thread Morgan Willcock
Timothy writes: > Hi Morgan, > >> I’ve attached a patch to fix an issue where tab characters are generated by >> the ASCII exporter when `indent-tabs-mode’ has its default value of t. > > Thanks for finding this bug, fixing it, and sending us it . I was able to > reproduce your test case with

Re: More options for relative dates when using org-schedule

2021-08-31 Thread Timothy
Hi Tim, > currently when I schedule an item, I can enter for example ’+3’ for 3 days > from > now or ’14:00+3’ for ’14:00-17:00’. It would be nice if I could either specify > fractions, eg ’14:00+0.5’ for ’14:00-14:30’ or a unit ’14:00+30m’ or ’+4w’ > for 4 > weeks. > > What do you think of

Re: Org + git branches for derived files

2021-08-31 Thread Timothy
Hi Ken, It’s been a while, but just to chime in: if you use GitHub you may find to be of use. Let me know if you have any questions, I wrote it a few months ago. Ken Mankoff writes: > Hello, > > I think this might be more of a git question

Re: [PATCH] ox-ascii.el: Fix justify when `indent-tabs-mode' is non-nil

2021-08-31 Thread Timothy
Hi Morgan, > I’ve attached a patch to fix an issue where tab characters are generated by > the ASCII exporter when `indent-tabs-mode’ has its default value of t. Thanks for finding this bug, fixing it, and sending us it . I was able to reproduce your test case with “emacs -Q” (thanks for that,

Re: Repeating task not repeating

2021-08-31 Thread Timothy
Hi Alan, > This seems like the same issue I was having last month. A patch was posted > here: > > > > As far as I can see, it has not yet been applied to the official org repo, > but I > applied the patch manually to my local org and

Re: Bug: inconsistent handling of empty duration cells in table [9.4.6 (9.4.6-12-gdcc3a8-elpa @ /home/jet/.config/emacs/elpa/org-20210816/)]

2021-08-31 Thread Timothy
Hi Jeff, Thanks for the test case. I’ve been able to reproduce the behaviour, and agree that the inconsistency is an issue. As such, I’ve marked this as a bug on updates.orgmode.org. All the best, Timothy

Re: org-cite: enable inserting citation (org-cite-insert) after list bullet [9.5 (9.5-7c78aca @ /home/yuu/.config/emacs/straight/build/org/)]

2021-08-31 Thread Bruce D'Arcus
On Tue, Aug 31, 2021 at 7:21 AM Timothy wrote: > Thinking about this situation, inserting citations should be fine as > long as the `point' isn't before or immediately after the bullet itself > (i.e. no space). I agree. Cites in lists can be useful, including for things like CVs. Bruce

Re: [PATCH] Update some changed export keybindings [worg]

2021-08-31 Thread Timothy
Hi Stefan, Thanks for the patch. I’ve just applied it. I haven’t had a look at the other “C-c C-e” keybindings, but I’m glad that you brought it up. Hopefully someone else will take a look at some point. > The attached patch fixes some incorrect keybindings in worg. > > I’d recommend that

Re: Bug: org-src-font-lock-fontify-block should be wrapped with save-match-data [9.3.7 (9.3.7-4-gba6ca7-elpaplus @ mixed installation! /mnt/c/Users/toz/Weiterbildung/Soft/Emacs/ and /mnt/c/Users/toz/.

2021-08-31 Thread Timothy
Hi Maxim, > Bug: org-src-font-lock-fontify-block should be wrapped with save-match-data > [9.3.7 (9.3.7-4-gba6ca7-elpaplus @ mixed installation! > /mnt/c/Users/toz/Weiterbildung/Soft/Emacs/ and > /mnt/c/Users/toz/.emacs.d/elpa/org-plus-contrib-20200615/) > > Notice “mixed installation!”. Often it

Re: [BUG] Creating sparse tree with regexp property matches

2021-08-31 Thread Timothy
Hi Cassio, > Ah! Can’t believe I didn’t try that. Well, at least the docs can > benefit from my confusion. Would you be interested in making a patch for the docs, or would you rather leave that to someone else? All the best, Timothy

Re: New source block results option for attaching file to node

2021-08-31 Thread Timothy
Hi Ryan, Thanks for submitting your first patch to Org!  Regarding the purpose of the patch, I take it this is useful with source blocks that return a file patch and should be added as an attachment? Would you mind expanding on this use case? Oh, and `org-attach-dir' doesn’t show up a function

Re: org-cite: enable inserting citation (org-cite-insert) after list bullet [9.5 (9.5-7c78aca @ /home/yuu/.config/emacs/straight/build/org/)]

2021-08-31 Thread Timothy
Yuu Yin writes: > Invoking ~org-cite-insert~ after list bullets (e.g. ~-~ and ~1.~ ) > doesn't work. I did a little test myself, and can confirm that it's not currently possible to insert a citation *immediately* after a bullet and space. This can be checked with `org-cite--allowed-p'.

Re: Smart quotes for Greek (questions for a possible patch)

2021-08-31 Thread Juan Manuel Macías
Hello Protesilaos and Michalis, Thank you very much, Protesilaos, for the valuable information. It can be confirmed, then, that the quotation marks rules for current Greek are identical to the rules for Spanish, so it will be enough to copy the existing configuration for Spanish in

Re: [BUG] [BUG] inconsistent behavior when reading multiple tags [9.4.6 (9.4.6-g366444 @ /home/n/.emacs.d/straight/build/org/)]

2021-08-31 Thread Timothy
Hi NoWayman, Thanks for your suggestion. At a glance it looks reasonable to me, but would you be able to explain the default value you’ve set? It isn’t obvious to me how you arrived at `"[ \t]*[^[:alnum:]_@#%][ \t]*"'. Also, do you think a one-size-fits-all solution is a good fit here? I don’t do

Re: Bug: Unintended column added to table [9.4.6 (9.4.6-gab9f2a @ /home/user/.emacs.d/elpa/org-9.4.6/)]

2021-08-31 Thread Timothy
Confirming as a Bug on updates.orgmode.org.