[BUG] org-crypt: CRYPTKEY property does not work as expected [9.5.1 (9.5.1-g36086a @ /home/ignacio/.emacs.d/elpa/org-9.5.1/)]

2021-12-29 Thread Ignacio Casso
Hello, I think I have found a bug in org-crypt, or that org-crypt documentation is not clear enough. The following configuration snippet in the org-crypt section of the org manual, as well as the docstring for org-crypt-key, suggest that a key value of nil can be used to specify symmetric

[BUG] Agenda display + blocked habits + org-agenda-dim-blocked-tasks set to 'invisible

2021-12-09 Thread Ignacio Casso
Hello, I think I've found a bug in the agenda display when 'org-agenda-dim-blocked-tasks' is set to 'invisible', and there is a task that is a habit (i.e., 'STYLE' property set to 'habit') and is blocked (e.g., because 'org-enforce-todo-dependencies' is set to 't' or there is an 'ORDERED'

[BUG] Inconsistent behaviour of TODO + COMMENT + TODO dependencies + agenda? [9.5 (9.5-g0a86ad @ /home/ignacio/.emacs.d/elpa/org-9.5/)]

2021-12-09 Thread Ignacio Casso
Hello, I'm not sure what is the expected behaviour of the COMMENT keyword for TODOs and the agenda, since I only found it in the "Exporting" section of the manual, but I find the following behaviour inconsistent: - Tasks with a COMMENT keyword or under a heading with a COMMENT keyword do not

[BUG] Typo in manual [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-02-10 Thread Ignacio Casso
Hello, I would like to report a minor typo in the manual, although I'm not sure if this is the right place (please point me to it if it's not). In the section Appendix A Hacking -> Using the Mapping API (https://orgmode.org/manual/Using-the-Mapping-API.html), it says that org-map-entries returns

[BUG] org-capture is not reentrant [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-02-10 Thread Ignacio Casso
Hello, I recently tried to use (org-capture '(4) key) (i.e., C-u prefix argument GOTO, so not actually capturing anything, just moving to the target) as part of the function passed as target for another capture template, using file+function, as in the example below: (setq

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-03-11 Thread Ignacio Casso
Max Nikulin writes: > Ignacio, I think, you can add (require 'org-capture) inside your > function just before `let' and it would work almost as lazy loading. Thanks, I was already using (require 'org-capture) in my init file to solve this. As I said, it's not really a problem for me, I was

Re: [BUG] Resolving idle clocks needs multiple keystrokes [9.5.2 (release_9.5.2-24-g668205 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-13 Thread Ignacio Casso
> So the problem is in (org-user-idle-seconds), which in my window system > boils down to a call to (current-idle-time). It should return 0 after > answering the prompt, but in my system it keeps counting up. At this > point I stopped investigating since that function is defined in C. > I have

Re: org-log-note-clock-out ends action after note, forgetting to clock in to something

2022-03-17 Thread Ignacio Casso
> Anyone else duplicating this error would be useful to know. I can't reproduce this bug in Emacs 27.2. Please send some more information like your Emacs and Org versions and your org related configuration. See https://orgmode.org/manual/Feedback.html for an easy way to include this information

[PATCH] Fix for bug that makes the user have to answer the prompt more than once for resolving running clock after being idle

2022-03-17 Thread Ignacio Casso
Hello, I have fixed the bug reported in https://lists.gnu.org/archive/html/emacs-orgmode/2010-08/msg00188.html, https://lists.gnu.org/archive/html/emacs-orgmode/2019-02/msg00333.html, and https://lists.gnu.org/archive/html/emacs-orgmode/2022-03/msg00127.html. In the last of those threads (two

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-03-14 Thread Ignacio Casso
I've also investigated the issue a little bit further and wrote and email with my conclusions about the same time Max wrote his. I comment inline about a few of your thoughts: > For `defcustom' autoload generates no more than > > (defvar org-capture-templates nil "...") > > It seems, behavior

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-03-15 Thread Ignacio Casso
>>> For `defcustom' autoload generates no more than >>> >>> (defvar org-capture-templates nil "...") >>> >>> It seems, behavior depends on whether `org-capture-templates' has the :set >>> attribute. >> Not really, all defcustoms have a :set attribute, be it passed >> explicitly as a

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-03-15 Thread Ignacio Casso
>>> My recommendation would be to come up >>> with a non-org specific example which reproduces the behaviour and then >>> ask on emacs-devel, using the example to demonstrate the issue. >> >> I agree. I'm on it. After trying to build a simple example I have realized a part of my analysis was

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-03-15 Thread Ignacio Casso
> I'll write now the email to emacs-devel with all these issues and > mention in this thread the corresponding debbugs thread in case anyone > wants to follow it. 54...@debbugs.gnu.org

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-03-14 Thread Ignacio Casso
> While I don't know if this is a bug, it certainly doesn't seem to be > doing the right thing from an 'intuitive' point of view. I would expect > when a variable is bound to a value inside a let and a function is then > called which uses that variable, the initial let bound value should be >

[BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-03-10 Thread Ignacio Casso
Hello, I think I've found a bug with org-capture autoload. If the first time you use org-capture before it's actually loaded is within a let form binding org-capture-templates, it produces an error saying that the template was not found. For example, if we call this: (let

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-03-10 Thread Ignacio Casso
Max Nikulin writes: > On 10/03/2022 19:53, Ignacio Casso wrote: >> For example, if we call this: >>(let ((org-capture-templates >> '(("d" "default" entry >> (file+headline org-default-notes-file "Tasks"

Re: org-log-note-clock-out ends action after note, forgetting to clock in to something

2022-03-17 Thread Ignacio Casso
"Tory S. Anderson" writes: > Ignacio Casso writes: > >>> Anyone else duplicating this error would be useful to know. >> >> I can't reproduce this bug in Emacs 27.2. > > This is good news: it means I can probably proceed with bisection and >

[BUG] Agenda no longer works for timestamps inside properties drawer [9.5.2 (release_9.5.2-24-g668205 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-12 Thread Ignacio Casso
Hello, In Emacs 27.2, with an up to date version of org from ELPA (9.5.2), org-agenda considers timestamps that appear in property drawers, so the entry below appears in the daily agenda view. * Heading :PROPERTIES: :timestamp: <2022-03-12 sáb> :END: However, in the latest Emacs version

[BUG] Resolving idle clocks needs multiple keystrokes [9.5.2 (release_9.5.2-24-g668205 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-12 Thread Ignacio Casso
Hello, > CONTEXT: When I'm idling with the clock running, Org asks if I want > to resolve the clock when I come back (this is by setting > org-clock-idle-time). > > PROBLEM: I'm not sure how recent the change was, but Org started > asking me _multiple times_ what I want to do when back. I have

Re: [BUG] Resolving idle clocks needs multiple keystrokes [9.5.2 (release_9.5.2-24-g668205 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-19 Thread Ignacio Casso
> Hi, > > I don't know how closely it is related to your problem, but I've > reported another issue revolving around the use of read-char for the > prompt to resolve clocks. See > [[https://lists.gnu.org/archive/html/emacs-orgmode/2022-02/msg00278.html]]. > > Unfortunately I an not advanced

Re: [BUG] Agenda no longer works for timestamps inside properties drawer [9.5.2 (release_9.5.2-24-g668205 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-21 Thread Ignacio Casso
>> What you see in the new Org version is not a bug. Property values are >> treated as plain text by Org. >> >> I was unable to find a place in manual describing that timestamps cannot >> be placed inside property values: >> I personally see allowing timestamps (and links) inside property values

Re: [BUG] C-c C-o on headline evaluates source code blocks with links inside [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-24 Thread Ignacio Casso
> The following patch should fix it: > > [4. patch --- text/x-diff; 0001-fixed-bug.patch] > From bc5092fdef512280b7d7d3aa04f1ba887360a759 Mon Sep 17 00:00:00 2001 > From: Ignacio > Date: Thu, 24 Mar 2022 01:15:44 +0100 > Subject: [PATCH] fixed bug > > --- > lisp/org/org.el | 3 ++- > 1 file

[BUG] completion-at-point for [[* only works at end of line [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-26 Thread Ignacio Casso
Hello, The manual says in https://orgmode.org/manual/Internal-Links.html#DOCF25 (footnote 25), that in-buffer completion can be used to insert links targeting a headline in current buffer. So a user can type [[* and C-M-i and all headlines in the buffer are offered for completion. However, that

Re: [BUG] org-agenda thinks timestamps after 23:00 correspond to the next day [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-30 Thread Ignacio Casso
enda as it would a deadline for tomorrow at 22:59, that is, with a warning that it is due in one day, and not as a deadline for today at 22:59 would appear. Regards, Ignacio Ignacio Casso writes: > Hello, > > After last Saturday's hour change in Spain, org-agenda thinks that > times

Re: [BUG] org-agenda thinks timestamps after 23:00 correspond to the next day

2022-03-30 Thread Ignacio Casso
> A first step to debug date issues is to check current timezone Thanks Max. > (getenv "TZ") This returns nil > $ timedatectl And this returns Local time: mié 2022-03-30 12:17:36 CEST Universal time: mié 2022-03-30 10:17:36 UTC RTC time: mié

Re: [BUG] org-agenda thinks timestamps after 23:00 correspond to the next day [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-31 Thread Ignacio Casso
> > Ubuntu-20.04 LTS has emacs-26.3, so... > > Could you, please, try > > (encode-time '(0 0 23 29 3 2022 nil -1 nil)) > ^^^ Thanks. Using -1 as DST argument indeed fixes it. However, while testing that, I've realized that I made a mistake in the bug report.

Re: [BUG] Resolving idle clocks needs multiple keystrokes [9.5.2 (release_9.5.2-24-g668205 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-20 Thread Ignacio Casso
> Hmm, I see the problem. I didn't think about that. > Thank you very much for your suggestion. But what about using > read-char-exclusive? It seems to have a timeout argument too, and > should apparently fix the issue (ie. the prompt will no longer > disappear at the first unintentional click).

[BUG] org-complex-heading-regexp should consider COMMENT keywords [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-22 Thread Ignacio Casso
Hello, I think `org-complex-heading-regexp' and `org-complex-heading-regexp-format' should consider COMMENT keywords, as they do with TODO keywords, priorities, and tags. Firstly, with things as they are, different methods for accessing the headline text are inconsistent. For example, for the

[BUG] org-agenda thinks timestamps after 23:00 correspond to the next day [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-29 Thread Ignacio Casso
Hello, After last Saturday's hour change in Spain, org-agenda thinks that timestamps after 23:00 correspond to the next day in Emacs 29. I'm not actually sure if that is the reason, since I usually use Emacs 27, but I guess it must be that if I have found out three days after the hour change. I

[BUG] C-c C-o on headline evaluates source code blocks with links inside [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-03-23 Thread Ignacio Casso
Hello, The recent threads about timestamps inside property drawers, which mentioned the issue of timestamps and links being recognized in contexts where they should not, had me experimenting a bit, and I found the following bug (point 3) which was probably introduced by some change regarding

[BUG] (org-agenda-files) after restrict agenda to a file [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-04-20 Thread Ignacio Casso
Hello, After restricting the agenda to a file for a single agenda command, with 'C-c a < a', and exiting the agenda with 'x', (org-agenda-files) still returns that file instead of the original list of agenda files. This can be easily solved using the UNRESTRICTED optional argument in

Re: [BUG] link abbreviations do not work inside property drawers [9.5.2 (release_9.5.2-38-g682ccd @ /home/ignacio/repos/emacs/lisp/org/)]

2022-04-24 Thread Ignacio Casso
Ihor Radchenko writes: > Ignacio Casso writes: > >> Link abbreviations do not work inside property drawers and are instead >> confused with internal links. The following org file illustrates this >> behavior. > > This is to be expected. org-op

Re: [BUG] link abbreviations do not work inside property drawers [9.5.2 (release_9.5.2-38-g682ccd @ /home/ignacio/repos/emacs/lisp/org/)]

2022-04-26 Thread Ignacio Casso
Ihor Radchenko writes: > Ignacio Casso writes: > >> So a simple solution to this would be preserving the value of >> `org-link-abbrev-alist-local' when switching to the temporal buffer. I >> think this is orthogonal to the issue of the parser, and it's a bug on >&

Re: [BUG] link abbreviations do not work inside property drawers [9.5.2 (release_9.5.2-38-g682ccd @ /home/ignacio/repos/emacs/lisp/org/)]

2022-04-26 Thread Ignacio Casso
>> (cond ((org-in-regexp org-link-any-re) >>(let ((org-link-abbrev-alist >> (append org-link-abbrev-alist org-link-abbrev-alist-local))) >> (org-link-open-from-string (match-string-no-properties 0 >> ...) >> ... >> What do you think? > > I do not like this

Re: [BUG] link abbreviations do not work inside property drawers [9.5.2 (release_9.5.2-38-g682ccd @ /home/ignacio/repos/emacs/lisp/org/)]

2022-04-27 Thread Ignacio Casso
Ihor Radchenko writes: > Ignacio Casso writes: > >>> A better approach could be using org-link-expand-abbrev. It is an API >>> function and should be forward-compatible. >> >> Do you mean something like this? >> >> (defun org-open-at-point-globa

[BUG] link abbreviations do not work inside property drawers [9.5.2 (release_9.5.2-38-g682ccd @ /home/ignacio/repos/emacs/lisp/org/)]

2022-04-23 Thread Ignacio Casso
Hello, Link abbreviations do not work inside property drawers and are instead confused with internal links. The following org file illustrates this behavior. #+LINK: org-manual https://orgmode.org/manual/ * Heading :PROPERTIES: :myprop: [[org-manual:Hyperlinks.html]] :END: - Opening

Re: [BUG] org-agenda thinks timestamps after 23:00 correspond to the next day [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-04-23 Thread Ignacio Casso
Max Nikulin writes: > On 05/04/2022 11:20, Kyle Meyer wrote: >> Max Nikulin writes: >> >>> Emacs copy of Org changed the way of calling `encode-time' as a result >>> interpretation of last nils returned by `org-parse-string' altered from >>> ignored to "no DST". >>> >> My suggestion: >>1.

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-06-11 Thread Ignacio Casso
> LGTM! Unless others have objections, I am inclined to merge the patch > fully. But please add changlog entries to the commit message. Done. I attach the patch with the new commit message. >From 26d157aedfaf1496174682a1f9033d83160a06c2 Mon Sep 17 00:00:00 2001 From: Ignacio Casso

Re: org-crypt ?

2022-06-11 Thread Ignacio Casso
Hello, I'll take this chance to bring this up again, since it's also an issue concerning org-crypt and it may be relevant if you decide to update org-crypt's documentation: https://lists.gnu.org/archive/html/emacs-orgmode/2021-12/msg00675.html. Regards, Ignacio David Masterson writes: > Ihor

Re: [BUG] org-copy-subtree in a file with local variables marks buffer as modified [9.5.3 (release_9.5.3-6-gef41f3 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-06-14 Thread Ignacio Casso
hing code. Done. I attach the new patch: >From 54e05dc54fe7091f2d1c7e0c44e01cf5abeb4907 Mon Sep 17 00:00:00 2001 From: Ignacio Casso Date: Sun, 12 Jun 2022 10:38:53 +0200 Subject: [PATCH] Do not mark buffer as modified with org-preserve-local-variables * lisp/org-macs.el (org-preserve-local-variables): Do not mark buffer as

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-06-14 Thread Ignacio Casso
to do this for org-mode threads? I know I can reference the Emacs discussion with just bug#54399, but I'm using long lists.gnu.org/archive/... links for org-mode. I attach the new patch (same diff, different commit message): >From c38584ea4e396f56d34ca934582c43436372b102 Mon Sep 17 00:00:00 2001

Re: [BUG] org-copy-subtree in a file with local variables marks buffer as modified [9.5.3 (release_9.5.3-6-gef41f3 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-06-12 Thread Ignacio Casso
r-undo-list' so maybe there are some cases that I have not considered and for which this patch could be problematic. Let me know what you think: >From 14506bea13bf6278d95825257d90bbc3390ae8f1 Mon Sep 17 00:00:00 2001 From: Ignacio Casso Date: Sun, 12 Jun 2022 10:38:53 +0200 Subject: [PATCH] Do not

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-06-11 Thread Ignacio Casso
ch] >From b20e23013329fab574a4d05eb5be8cde1d43dad1 Mon Sep 17 00:00:00 2001 From: Ignacio Casso Date: Fri, 10 Jun 2022 12:39:43 +0200 Subject: [PATCH] using `set-default-toplevel-value' in `defcustom' setters --- lisp/ob-lilypond.el | 2 +- lisp/ob-shell.el | 2 +- lisp/org-capture.el | 2 +- lisp/org-cloc

[BUG] org-copy-subtree in a file with local variables marks buffer as modified [9.5.3 (release_9.5.3-6-gef41f3 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-05-22 Thread Ignacio Casso
Hello, Copying a subtree with `org-copy-subtree' in an org file with local variables marks the buffer as modified. This is because `org-copy-subtree' calls `org-preserve-local-variables', which deletes local variables, executes some body, and then inserts them again, which results in a modified

Re: [BUG] org-complex-heading-regexp should consider COMMENT keywords [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-05-06 Thread Ignacio Casso
> Sounds reasonable. Could you prepare a patch? > COMMENT should be inside a shy group and note that there might be an > arbitrary number of space after COMMENT string. Here it is. >From 54cd366c97bd64c226cc6fc79e125ee9f026ff66 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Fri, 6 May 2022

Re: [BUG] org-complex-heading-regexp should consider COMMENT keywords [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-05-07 Thread Ignacio Casso
Ihor Radchenko writes: > Ignacio Casso writes: > >>> Sounds reasonable. Could you prepare a patch? >>> COMMENT should be inside a shy group and note that there might be an >>> arbitrary number of space after COMMENT string. >> >> Here it is. >

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-04 Thread Ignacio Casso
Ihor Radchenko writes: > Samuel Wales writes: > >> some code removes it. for example creating a link to a headline using >> capture. > > Yeah. org-link--normalize-string. But it is internal function, so I would > not rely on it. > > Also, rather than relying on regexps, I would use >

Re: [BUG] org-complex-heading-regexp should consider COMMENT keywords [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-05-08 Thread Ignacio Casso
in git. It's Ignacio Casso, and I appear in the commit author field as just Ignacio. I have fixed it now for future commits.

[BUG] org-complex-heading-regexp should consider COMMENT keywords [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-05-05 Thread Ignacio Casso
This topic was brought up again in https://lists.gnu.org/archive/html/emacs-orgmode/2022-05/msg00058.html, I continue the discussion here: >> Still, I think it might be interesting to compare this topic with the >> one I linked in my reply, >>

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-05 Thread Ignacio Casso
I've replied to this email in the original thread about the COMMENT keyword to continue the discussion there, since it may be a little off-topic here. --Ignacio >> Still, I think it might be interesting to compare this topic with the >> one I linked in my reply, >>

Re: [BUG] Inconsistent behaviour of TODO + COMMENT + TODO dependencies + agenda? [9.5 (9.5-g0a86ad @ /home/ignacio/.emacs.d/elpa/org-9.5/)]

2022-08-07 Thread Ignacio Casso
>> P.D: Just when I was going to send this I tried to investigate it a >> little bit more to not waste anyone's time, and I found the variable >> 'org-agenda-skip-comment-trees', which defaults to 't'. So now I see that >> if it is set to 'nil' it would not be inconsistent to me anymore, but I