[BUG] Asked to submit bug report: parse error? [9.7-pre (release_9.6.11-935-g6d7c79 @ /Users/apc/.emacs.d/straight/build/org/)]

2024-01-24 Thread Alejandro Pérez Carballo


I received the following message after trying to follow a search result 
obtained via grep.

⛔ Warning (org-element): org-element--cache: Org parser error in 
gpd.org::14519. Resetting.
 The error was: (error "Invalid search bound (wrong side of point)")
 Backtrace:
"  backtrace-to-string(nil)
  org-element-at-point()
  org-at-item-p()
  org-indent-add-properties(# 464490 (0 2 0))
  org-indent-initialize-buffer(# (0 2 0))
  org-indent-initialize-agent()
  apply(org-indent-initialize-agent nil)
  timer-event-handler([t 0 0 20 t org-indent-initialize-agent nil idle 0 
nil])
"
 Please report this to Org mode mailing list (M-x org-submit-bug-report).






Emacs  : GNU Emacs 29.1 (build 2, aarch64-apple-darwin21.6.0, NS appkit-2113.60 
Version 12.6.2 (Build 21G320))
 of 2023-11-15
Package: Org mode version 9.7-pre (release_9.6.11-935-g6d7c79 @ 
/Users/apc/.emacs.d/straight/build/org/)

current state:
==
(setq
 org-archive-location "~/org/agenda/archives/%s_archive.org::* Misc tasks"
 org-mac-link-brave-app-p nil
 org-roam-db-location "/Users/apc/.emacs.d/var/org/org-roam.db"
 org-link-elisp-confirm-function 'yes-or-no-p
 org-agenda-skip-deadline-prewarning-if-scheduled 2
 org-cite-insert-processor 'citar
 org-after-todo-state-change-hook '(org-checklist)
 org-after-refile-insert-hook '(org-gcal--refile-post)
 org-roam-db-gc-threshold 2305843009213693951
 org-hide-emphasis-markers t
 org-bibtex-headline-format-function 'org-bibtex-headline-format-default
 org-download-file-format-function 'org-download-file-format-default
 org-log-done 'time
 org-attach-id-to-path-function-list '(org-attach-id-ts-folder-format 
org-attach-id-uuid-folder-format org-attach-id-fallback-folder-format)
 org-roam-mode-hook '(my/read-mode-indicator
  my/header-line-hack-face-reset)
 org-ql-views '(("First round candidates" :buffers-files # :query
 (property "FIRST_CUT" "t") :sort nil :narrow nil
 :super-groups nil :title "First round candidates")
("Overview: Agenda-like" :buffers-files
 org-agenda-files :query
 (and (not (done))
  (or (habit) (deadline auto)
   (scheduled :to today) (ts-active :on today))
  )
 :sort (todo priority date) :super-groups
 org-super-agenda-groups :title "Agenda-like")
("Overview: NEXT tasks" :buffers-files
 org-agenda-files :query (todo "NEXT") :sort
 (date priority) :super-groups
 org-super-agenda-groups :title
 "Overview: NEXT tasks")
("Calendar: Today" :buffers-files org-agenda-files
 :query (ts-active :on today) :title "Today"
 :super-groups org-super-agenda-groups :sort
 (priority))
("Calendar: This week" .
 #[0
   "\301 \302\303\304\305\304\306\304\307\310\301 
\311%1!>\204%1c\312\313\314%3D\"\210\211\315H\204\232%0\211\315\316\317\320\311%6!>\2048%0\312\313\314%6D\"\210%5\321H\204\223%0\321\311%6!>\210%6\322H%6\323H%6
\324H%6\n\325H%6
\326H%6\f\327H%5\203\215%0\203\215%0\203\215%0\203\215%0\203\215%0\211\203\215%0\330\331%6%6%6%6%6%6&%6!\266\206\202\221%0\330
 
\266\206I\210%5\321H\"!I\210\211\315H\262%1[%6\n#&\302\303\332\305\333\306\333\307\310\327\301
 
\311%1!>\204\300%0\312\313\314%3D\"\210\211\315H\204>%1\211\315\316\317\320\311%6!>\204\334%0\312\313\314%6D\"\210%5\321H\2047%1\321\311%6!>\210%6\322H%6\323H%6
 \324H%6\n\325H%6
\326H%6\f\327H%5\2031%1\2031%1\2031%1\2031%1\2031%1\211\2031%1\330\331%6%6%6%6%6%6&%6!\266\206\2025%1\330
 \266\206I\210%5\321H\"!I\210\211\315H\262%1Z%6#&\334\335 
\336\337%5\340%6\257%5\341\342\343\344\345\346&\207"
   [cl-struct-ts-tags












   ts-now

   

[BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-12-08 Thread Alejandro Pérez Carballo


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.


If point is on a heading followed by a subheading without any text in between, 
the export process is using the tree starting with the subheading instead of 
the tree starting from point position. If instead you have some text after the 
first heading and before the subheading, the tree that is exported is the tree 
starting from point position, as expected. I’m assuming this is a bug, but 
maybe I’m missing something.

For example, take a buffer containing just this:

   * The title
   ** A subtitle
   Some text

If I export this to an HTML buffer, with point at the beginning of the first 
line and  after setting the scope to ‘subtree’, I get an HTML buffer whose 
title is “A subtitle”.

If I follow the same steps on a buffer containing just this: 

   * The title
   Some text
   ** A subtitle

I get an HTML buffer whose title is “The title”.

This doesn’t happen with Org 9.5.5. In both cases, I get what I expect, viz. an 
HTML buffer whose title is “The title”.

I can reproduce this with the following minimal configuration:

I can reproduce this behavior with the following minimal config:

   (setq straight-check-for-modifications '(check-on-save find-when-checking))

   (defvar bootstrap-version)
   (let ((bootstrap-file
 (expand-file-name "straight/repos/straight.el/bootstrap.el" 
user-emacs-directory))
 (bootstrap-version 5))
 (unless (file-exists-p bootstrap-file)
   (with-current-buffer
   (url-retrieve-synchronously
   
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el";
   'silent 'inhibit-cookies)
 (goto-char (point-max))
 (eval-print-last-sexp)))
 (load bootstrap-file nil 'nomessage))

   (setq-default use-package-enable-imenu-support t)
   (setq straight-use-package-by-default t)
   (straight-use-package 'use-package)
   (setq use-package-verbose nil
 use-package-compute-statistics t
 use-package-expand-minimally t
 use-package-always-defer t)

   (straight-register-package 'org)

   (use-package org
 :ensure t)



Emacs  : GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 
Version 12.5 (Build 21G72))
of 2022-09-15
Package: Org mode version 9.6 (9.6-gb3da42 @ 
/Users/apc/.emacs.d/straight/build/org/)



[BUG] Org parser error [9.5.4 (9.5.4-ge36c3c @ /Users/apc/.emacs.d/straight/build/org/)]

2022-09-09 Thread Alejandro Pérez Carballo


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.


I was asked to submit this to the mailing list. Not sure exactly what the 
nature of the problem is, but I have been getting a number of errors concering 
the org-element cache.

Thanks,

APC

Emacs  : GNU Emacs 28.1 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 
Version 12.5 (Build 21G72))
 of 2022-09-01
Package: Org mode version 9.5.4 (9.5.4-ge36c3c @ 
/Users/apc/.emacs.d/straight/build/org/)

current state:
==
(setq
 org-archive-location "~/org/agenda/archives/%s_archive.org::datetree/"
 org-mac-link-brave-app-p nil
 org-roam-db-location "/Users/apc/.emacs.d/var/org/org-roam.db"
 org-link-elisp-confirm-function 'yes-or-no-p
 org-agenda-skip-deadline-prewarning-if-scheduled 2
 org-after-refile-insert-hook '(org-gcal--refile-post)
 org-roam-db-gc-threshold 2305843009213693951
 org-hide-emphasis-markers t
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
 org-log-done 'time
 org-roam-mode-hook '(my/read-mode-indicator)
 org-agenda-custom-commands '(("d" "Default (ignore @sched and @hold)"
   ((agenda ""
 ((org-agenda-span 'day)
  (org-super-agenda-groups
   '((:name none :time-grid t)
 (:name "To do" :and
  (:not (:tag ("@hold")) :not (:tag 
("@sched")))
  :discard (:anything t))
 )
   )
  )
 )
)
   )
  ("z" "Work: focused"
   ((agenda ""
 ((org-agenda-span 'day)
  (org-agenda-files
   `(,(concat my/agenda-dir "/work.org")))
  (org-super-agenda-groups
   '((:name "First and foremost" :and
  (:tag ("@today") :priority "A"))
 (:name "The rest" :tag ("@today") :discard
  (:anything t))
 )
   )
  )
 )
)
   )
  ("p" "Planning view"
   ((agenda ""
 ((org-agenda-span 'day)
  (org-super-agenda-groups
   '((:name "Up next" :and
  (:todo "NEXT" :not (:scheduled past)))
 (:name "New today" :and
  (:not (:todo ("WAIT" "KILL")) :not
   (:tag ("@sched")) :scheduled today)
  :deadline today)
 (:name "In progress" :todo "STRT")
 (:name "Overdue" :and
  (:not (:todo ("DONE" "KILL" "WAIT")) :not
   (:tag ("@sched")) :deadline past)
  )
 (:name "Backlog" :and
  (:not (:todo ("STRT" "DONE" "KILL" 
"WAIT")) :not
   (:tag ("@sched")) :scheduled past)
  :discard (:anything t))
 )
   )
  )
 )
(alltodo ""
 ((org-agenda-overriding-header "")
  (org-super-agenda-groups
   `((:name "Refile" :and
  (:not (:todo ("DONE" "KILL" "WAIT")) :tag
   ("refile") :not (:tag ("read" "gkry")))
  )
 (:name "Next available actions" :and
  (:todo "NEXT" :scheduled future) :and
  (:todo "NEXT" :deadline future))
 (:name "Coming up" :and
  (:todo "TODO" :schedule

Re: Inserting links stored in `org-store-link-plist`

2022-02-25 Thread Alejandro Pérez Carballo
Thanks for the suggestions! Will have a look. 

Best, 

A. 

> On Feb 25, 2022, at 8:25 AM, Max Nikulin  wrote:
> 
> On 25/02/2022 04:11, Alejandro Pérez Carballo wrote:
>> Thanks for your reply. I can store the ID calling `org-store-link'
>> if `org-id-link-to-org-use-id' is set to a non-nil value. But I wanted to be 
>> able to have `org-id-link-to-org-use-id' set to nil and
>> also have a function to store an ID link. (I make use of ID only in
>> certain files and try to avoid them otherwise, preferring the default
>> method of using a link to the file with a search string pointing to
>> the current line in most cases.)
> 
> I have no idea what interface `org-store-link' should have to be really 
> flexible and convenient.
> 
> Have you considered file- (or directory-) local variables?
> info "(emacs) Specifying File Variables"
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html
> 
> # Local Variables:
> # org-id-link-to-org-use-id: use-existing
> # End:
> 
> at the end of specific files.
> 
>> I had expected that `org-insert-link' would be able to retrieve links stored 
>> both with `org-store-link' and `org-id-store-link'—it
>> seemed like a natural assumption, perhaps because I do not know of
>> other reasons for having an interactive function that stores links
>> aside from being able to insert them later?
> I can not say that I am happy with implementation of `org-store-link' or that 
> I fully understand ideas behind ol.el. I just found an example of 
> `org-id-store-link' usage:
> https://git.sr.ht/~bzg/org-contrib/tree/master/item/lisp/org-contacts.el#L1171
> see definition of "org-contact" link a bit above as well.




Re: [BUG] Prompted to submit (unsure what happened) [9.5.2 (9.5.2-g072523 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-02-24 Thread Alejandro Pérez Carballo
One more question: wouldn't replacing `org-in-src-block-p' with a function that 
calls `org-in-src-block-p' only when in org-mode and returns `nil' elsewhere 
suffice to make something that's like `org-in-src-block-p' but that will work 
outside org-mode? E.g.: 

(defun my/org-in-src-block-p (&optional arg)
  (if (derived-mode-p 'org-mode)
  (org-in-src-block-p)
nil))

I'm using this for now as a replacement and it seems to do the trick, at least 
for my present purposes. 

Best, 

Alejandro



> On Feb 24, 2022, at 11:27 AM, Alejandro Pérez Carballo  
> wrote:
> 
> I found the source of the problem. I was trying to disable 
> `electric-quote-mode' when in a src block, and found this snippet somewhere: 
> 
> ```
> (add-hook 'electric-quote-inhibit-functions #'org-in-src-block-p)
> ```
> 
> Any thoughts on alternative ways of achieving similar behavior? Presumably 
> I'd need to find a way to make `electric-quote-inhibit-functions` vary 
> depending on whether I am in org-mode. But I'm very much an Elisp illiterate, 
> so I'd appreciate any suggestions here. 
> 
> Best, 
> 
> Alejandro
> 
>> On Feb 24, 2022, at 5:39 AM, Ihor Radchenko  wrote:
>> 
>> Alejandro Pérez Carballo  writes:
>> 
>>> Sorry about the unclear report. I was indeed _not_ in an org buffer. I do 
>>> not think I was using minibuffer completion, but I cannot remember. I now 
>>> just got a similar error message, this time when working on an Elisp 
>>> buffer. The error message says: 
>>> 
>>> Warning (org-element-cache): org-element--cache: Org parser error in 
>>> setup-biblio.el::5918. Resetting.
>>> The error was: (error "rx ‘**’ range error")
>>> Backtrace:
>>> "  backtrace-to-string(nil)
>>> org-element-at-point()
>>> org-in-src-block-p()
>>> run-hook-with-args-until-success(org-in-src-block-p)
>>> electric-quote-post-self-insert-function()
>>> self-insert-command(1 34)
>>> funcall-interactively(self-insert-command 1 34)
>>> call-interactively(self-insert-command nil nil)
>>> command-execute(self-insert-command)
>>> "
>> 
>> Thanks for the backtrace! It is very clear that something in 
>> electric-quote-mode-hook (or maybe in electric-quote-inhibit-functions)
>> is calling org-in-src-block-p.
>> 
>> org-in-src-block-p does not work outside Org mode. It used to (at least,
>> it did not throw an error), but it is not the case anymore and it was
>> never guaranteed that Org functions can reliably work outside Org mode.
>> 
>> I do not see explicit customisation adding org-in-src-block-p in your
>> config from the first email. I presume that some third-party package is
>> adding org-in-src-block-p to electric-quote-mode. I would first try to
>> check the values of electric-quote-inhibit-functions and
>> electric-quote-mode-hook and check if they contain org-* staff. Then, I
>> would bisect the config to find out which package is doing it. What you
>> are seeing is a bug in that package and should be reported.
>> 
>> Best,
>> Ihor
> 




Re: Inserting links stored in `org-store-link-plist`

2022-02-24 Thread Alejandro Pérez Carballo
Thanks for your reply. I can store the ID calling `org-store-link' if 
`org-id-link-to-org-use-id' is set to a non-nil value. But I wanted to be able 
to have `org-id-link-to-org-use-id' set to nil and also have a function to 
store an ID link. (I make use of ID only in certain files and try to avoid them 
otherwise, preferring the default method of using a link to the file with a 
search string pointing to the current line in most cases.)  

I had expected that `org-insert-link' would be able to retrieve links stored 
both with `org-store-link' and `org-id-store-link'—it seemed like a natural 
assumption, perhaps because I do not know of other reasons for having an 
interactive function that stores links aside from being able to insert them 
later?  But if the point of `org-id-store-link' is not to supply values for 
`org-insert-link', please ignore this.

For now, I've just defined a simple wrapper that temporarily sets the value of 
`org-id-link-to-org-use-id' to `use-existing' and calls `org-store-link', and 
that works fine.

Thanks again, 

Alejandro

> On Feb 23, 2022, at 7:50 AM, Max Nikulin  wrote:
> 
> On 18/02/2022 06:26, Alejandro Pérez Carballo wrote:
>> After storing a link to an ID using `org-id-store-link` I would've
>> expected the stored link to be made available when calling
>> `org-insert-link`,
> I would expect that to store ID link it should be enough to call 
> `org-store-link' having proper configuration. This function calls 
> `org-id-store-link`, see 
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ol.el#n1634
> 
> Unfortunately you did not describe your real problem (or your goal). I am 
> aware of a problem with storing CUSTOM_ID links but it is unlikely related to 
> your one: 
> https://list.orgmode.org/e2c807a7-1924-6f08-9e63-4f70aee9d...@gmail.com




Re: [BUG] Prompted to submit (unsure what happened) [9.5.2 (9.5.2-g072523 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-02-24 Thread Alejandro Pérez Carballo
I found the source of the problem. I was trying to disable 
`electric-quote-mode' when in a src block, and found this snippet somewhere: 

```
(add-hook 'electric-quote-inhibit-functions #'org-in-src-block-p)
```

Any thoughts on alternative ways of achieving similar behavior? Presumably I'd 
need to find a way to make `electric-quote-inhibit-functions` vary depending on 
whether I am in org-mode. But I'm very much an Elisp illiterate, so I'd 
appreciate any suggestions here. 

Best, 

Alejandro

> On Feb 24, 2022, at 5:39 AM, Ihor Radchenko  wrote:
> 
> Alejandro Pérez Carballo  writes:
> 
>> Sorry about the unclear report. I was indeed _not_ in an org buffer. I do 
>> not think I was using minibuffer completion, but I cannot remember. I now 
>> just got a similar error message, this time when working on an Elisp buffer. 
>> The error message says: 
>> 
>> Warning (org-element-cache): org-element--cache: Org parser error in 
>> setup-biblio.el::5918. Resetting.
>> The error was: (error "rx ‘**’ range error")
>> Backtrace:
>> "  backtrace-to-string(nil)
>>  org-element-at-point()
>>  org-in-src-block-p()
>>  run-hook-with-args-until-success(org-in-src-block-p)
>>  electric-quote-post-self-insert-function()
>>  self-insert-command(1 34)
>>  funcall-interactively(self-insert-command 1 34)
>>  call-interactively(self-insert-command nil nil)
>>  command-execute(self-insert-command)
>> "
> 
> Thanks for the backtrace! It is very clear that something in 
> electric-quote-mode-hook (or maybe in electric-quote-inhibit-functions)
> is calling org-in-src-block-p.
> 
> org-in-src-block-p does not work outside Org mode. It used to (at least,
> it did not throw an error), but it is not the case anymore and it was
> never guaranteed that Org functions can reliably work outside Org mode.
> 
> I do not see explicit customisation adding org-in-src-block-p in your
> config from the first email. I presume that some third-party package is
> adding org-in-src-block-p to electric-quote-mode. I would first try to
> check the values of electric-quote-inhibit-functions and
> electric-quote-mode-hook and check if they contain org-* staff. Then, I
> would bisect the config to find out which package is doing it. What you
> are seeing is a bug in that package and should be reported.
> 
> Best,
> Ihor




Re: [BUG] Prompted to submit (unsure what happened) [9.5.2 (9.5.2-g072523 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-02-23 Thread Alejandro Pérez Carballo
Sorry about the unclear report. I was indeed _not_ in an org buffer. I do not 
think I was using minibuffer completion, but I cannot remember. I now just got 
a similar error message, this time when working on an Elisp buffer. The error 
message says: 

Warning (org-element-cache): org-element--cache: Org parser error in 
setup-biblio.el::5918. Resetting.
 The error was: (error "rx ‘**’ range error")
 Backtrace:
"  backtrace-to-string(nil)
  org-element-at-point()
  org-in-src-block-p()
  run-hook-with-args-until-success(org-in-src-block-p)
  electric-quote-post-self-insert-function()
  self-insert-command(1 34)
  funcall-interactively(self-insert-command 1 34)
  call-interactively(self-insert-command nil nil)
  command-execute(self-insert-command)
"

Best, 

Alejandro

> On Feb 22, 2022, at 9:06 PM, Ihor Radchenko  wrote:
> 
> Alejandro Pérez Carballo  writes:
> 
>> I was simply entering an entry to my main bib file. I received an error 
>> message and was asked to submit this report.
> 
> Thanks for the report!
> Do I understand correctly that you got:
> 1. An error message
> 2. A warning popup
> 
> Did it happen when you were _not_ in Org buffer and you did not use
> minibuffer completion?
> 
> Do you recall the error/warning text?
> 
> Best,
> Ihor




[BUG] Prompted to submit (unsure what happened) [9.5.2 (9.5.2-g072523 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-02-22 Thread Alejandro Pérez Carballo



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.


I was simply entering an entry to my main bib file. I received an error message 
and was asked to submit this report.

Thanks,

Alejandro

Emacs  : GNU Emacs 28.0.90 (build 1, x86_64-apple-darwin19.6.0, NS 
appkit-1894.60 Version 10.15.7 (Build 19H1419))
of 2021-12-14
Package: Org mode version 9.5.2 (9.5.2-g072523 @ 
/Users/apc/.emacs.d/straight/build/org/)

current state:
==
(setq
org-archive-location "~/org/agenda/archives/%s_archive.org::datetree/"
org-pomodoro-format "🍅:%s"
org-roam-db-location "/Users/apc/.emacs.d/var/org/org-roam.db"
org-link-elisp-confirm-function 'yes-or-no-p
org-agenda-skip-deadline-prewarning-if-scheduled 2
org-cite-insert-processor 'citar
org-after-refile-insert-hook '(org-gcal--refile-post)
org-roam-db-gc-threshold 80
org-bibtex-headline-format-function #[257 "\300%1\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
org-log-done 'time
org-pomodoro-long-break-sound 
"/Users/apc/.emacs.d/straight/build/org-pomodoro/resources/bell_multiple.wav"
org-roam-mode-hook '(my/read-mode-indicator)
org-roam-dailies-capture-templates '(("d" "default" entry "* %?" :if-new
   (file+head "%<%Y-%m-%d>.org" "#+title: 
%<%Y-%m-%d>"))
  )
org-agenda-custom-commands '(("d" "Default (ignore @sched and @hold)"
   ((agenda ""
 ((org-agenda-span 'day)
  (org-super-agenda-groups
   '((:name none :time-grid t)
 (:name "To do" :and
  (:not (:tag ("@hold")) :not (:tag 
("@sched"))) :discard
  (:anything t))
 )
   )
  )
 )
)
   )
  ("z" "Work: focused"
   ((agenda ""
 ((org-agenda-span 'day)
  (org-agenda-files `(,(concat my/agenda-dir 
"/work.org")))
  (org-super-agenda-groups
   '((:name "First and foremost" :and (:tag 
("@today") :priority "A"))
 (:name "The rest" :tag ("@today") :discard 
(:anything t)))
   )
  )
 )
)
   )
  ("p" "Planning view"
   ((agenda ""
 ((org-agenda-span 'day)
  (org-super-agenda-groups
   '((:name "Up next" :and (:todo "NEXT" :not 
(:scheduled past)))
 (:name "New today" :and
  (:not (:todo ("WAIT" "KILL")) :not (:tag 
("@sched")) :scheduled
   today)
  :deadline today)
 (:name "In progress" :todo "STRT")
 (:name "Overdue" :and
  (:not (:todo ("DONE" "KILL" "WAIT")) :not 
(:tag ("@sched"))
   :deadline past)
  )
 (:name "Backlog" :and
  (:not (:todo ("STRT" "DONE" "KILL" 
"WAIT")) :not
   (:tag ("@sched")) :scheduled past)
  :discard (:anything t))
 )
   )
  )
 )
(alltodo ""
 ((org-agenda-overriding-header "")
  (org-super-agenda-groups
   `((:name "Refile" :and
  (:not (:todo ("DONE" "KILL" "WAIT")) :tag 
("refile") :not
   (:tag ("read" "gkry")))
  )
 (:name "Next available actions" :and
  (:todo "NEXT" :scheduled future) :and
  (:todo "NEXT" :deadline future))
 (:name "Coming u

Inserting links stored in `org-store-link-plist`

2022-02-17 Thread Alejandro Pérez Carballo
Hello, 

After storing a link to an ID using `org-id-store-link` I would've expected the 
stored link to be made available when calling `org-insert-link`, much like when 
storing a link using `org-store-link. But that's not what I see: the link 
stored with `org-id-store-link` is added to `org-store-link-plist` but not to 
`org-stored-links`. 

To my surprise (and this may not be related, but in case it is), the value of 
`org-store-link-plist` is set to `nil` if I call `org-store-link`. Somehow 
calling `org-store-link` results in both the value of the stored link being 
sent to `org-stored-links` *and* in the value of `org-store-link-plist`, but 
calling `org-id-store-link` results in the stored link being sent to 
`org-store-link-plist` without touching the value of `org-stored-links`. 

I'm assuming this is not the expected behavior, but if it is, I'd appreciate 
any suggestions for how to use the values of `org-store-link-plist` when 
calling `org-insert-link`. 

I'm seeing this both with 9.5.2 and 9.5.1.

Thanks in advance for any help, 

APC


[BUG] Bug Report Requested [9.5.2 (9.5.2-ga98ae4 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-01-18 Thread Alejandro Pérez Carballo
Hello, 

I was simply calling `org-agenda` when I was prompted to submit this report. 
I'm submitting this as requested. 

Thanks for all your good work on this, 

APC

Emacs  : GNU Emacs 28.0.90 (build 1, x86_64-apple-darwin19.6.0, NS 
appkit-1894.60 Version 10.15.7 (Build 19H1419))
of 2021-12-14
Package: Org mode version 9.5.2 (9.5.2-ga98ae4 @ 
/Users/apc/.emacs.d/straight/build/org/)

current state:
==
(setq
org-archive-location "~/org/agenda/archives/%s_archive.org::datetree/"
org-roam-db-location "/Users/apc/.emacs.d/var/org/org-roam.db"
org-link-elisp-confirm-function 'yes-or-no-p
org-agenda-skip-deadline-prewarning-if-scheduled 2
org-cite-insert-processor 'citar
org-after-refile-insert-hook '(org-gcal--refile-post)
org-indirect-buffer-display 'current-window
org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
org-log-done 'time
org-agenda-custom-commands '(("d" "Default (ignore @sched and @hold)"
   ((agenda ""
 ((org-agenda-span 'day)
  (org-super-agenda-groups
   '((:name none :time-grid t)
 (:name "To do" :and (:not (:tag ("@hold")) 
:not (:tag ("@sched")))
  :discard (:anything t))
 )
   )
  )
 )
)
   )
  ("z" "Work: focused"
   ((agenda ""
 ((org-agenda-span 'day)
  (org-agenda-files `(,(concat my/agenda-dir 
"/work.org")))
  (org-super-agenda-groups
   '((:name "First and foremost" :and (:tag 
("@today") :priority "A"))
 (:name "The rest" :tag ("@today") :discard 
(:anything t)))
   )
  )
 )
)
   )
  ("p" "Planning view"
   ((agenda ""
 ((org-agenda-span 'day)
  (org-super-agenda-groups
   '((:name "Up next" :and (:todo "NEXT" :not 
(:scheduled past)))
 (:name "New today" :and
  (:not (:todo ("WAIT" "KILL")) :not (:tag 
("@sched")) :scheduled today)
  :deadline today)
 (:name "In progress" :todo "STRT")
 (:name "Overdue" :and
  (:not (:todo ("DONE" "KILL" "WAIT")) :not 
(:tag ("@sched")) :deadline
   past)
  )
 (:name "Backlog" :and
  (:not (:todo ("STRT" "DONE" "KILL" 
"WAIT")) :not (:tag ("@sched"))
   :scheduled past)
  :discard (:anything t))
 )
   )
  )
 )
(alltodo ""
 ((org-agenda-overriding-header "")
  (org-super-agenda-groups
   `((:name "Refile" :and
  (:not (:todo ("DONE" "KILL" "WAIT")) :tag 
("refile") :not
   (:tag ("read" "gkry")))
  )
 (:name "Next available actions" :and 
(:todo "NEXT" :scheduled future)
  :and (:todo "NEXT" :deadline future))
 (:name "Coming up" :and
  (:todo "TODO" :scheduled (before 
,(org-read-date nil nil "+7d"))
   :scheduled future)
  )
 (:name "Important and unscheduled" :and
  (:priority>= "B" :scheduled nil :not 
(:tag ("read"
 (:name "On hold" :todo "WAIT")
 (:name "Etc" :and (:scheduled nil :not 
(:tag ("read"))) :discard
  (:anything t))
 )
   )
  )
 )
)
  

[BUG] Cache corruption [9.6 (9.6-??-27edae8 @ /Users/apc/.emacs.d/.local/straight/build-28.0.90/org/)]

2021-12-15 Thread Alejandro Pérez Carballo



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.


I was simply navigating an org file after installing emacs 28 and doom.
I got the message below and was asked to submit. So here I am.

Emacs  : GNU Emacs 28.0.90 (build 1, x86_64-apple-darwin19.6.0, NS 
appkit-1894.60 Version 10.15.7 (Build 19H1419))
of 2021-12-14
Package: Org mode version 9.6 (9.6-??-27edae8 @ 
/Users/apc/.emacs.d/.local/straight/build-28.0.90/org/)

current state:
==
(setq
org-link-elisp-confirm-function nil
org-directory "~/org/"
org-cite-insert-processor 'citar
org-after-refile-insert-hook '(save-buffer)
org-indirect-buffer-display 'current-window
org-crypt-key nil
org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
org-load-hook '(+org-init-org-directory-h +org-init-appearance-h 
+org-init-agenda-h +org-init-attachments-h +org-init-babel-h
 +org-init-babel-lazy-loader-h +org-init-capture-defaults-h 
+org-init-capture-frame-h +org-init-custom-links-h +org-init-export-h
 +org-init-habit-h +org-init-hacks-h +org-init-keybinds-h 
+org-init-popup-rules-h +org-init-protocol-h
 +org-init-protocol-lazy-loader-h +org-init-smartparens-h)
org-startup-folded nil
org-babel-after-execute-hook '(org-redisplay-inline-images)
org-link-abbrev-alist '(("doom-repo" . 
"https://github.com/hlissner/doom-emacs/%s";) ("wolfram" . 
"https://wolframalpha.com/input/?i=%s";)
 ("wikipedia" . "https://en.wikipedia.org/wiki/%s";) 
("duckduckgo" . "https://duckduckgo.com/?q=%s";)
 ("gmap" . "https://maps.google.com/maps?q=%s";) 
("gimages" . "https://google.com/images?q=%s";)
 ("google" . "https://google.com/search?q=";) ("youtube" 
. "https://youtube.com/watch?v=%s";)
 ("github" . "https://github.com/%s";))
org-agenda-files '("~/org/")
org-capture-templates '(("t" "Personal todo" entry (file+headline 
+org-capture-todo-file "Inbox") "* [ ] %?\n%i\n%a" :prepend t)
 ("n" "Personal notes" entry (file+headline 
+org-capture-notes-file "Inbox") "* %u %?\n%i\n%a" :prepend t)
 ("j" "Journal" entry (file+olp+datetree 
+org-capture-journal-file) "* %U %?\n%i\n%a" :prepend t)
 ("p" "Templates for projects")
 ("pt" "Project-local todo" entry (file+headline 
+org-capture-project-todo-file "Inbox") "* TODO %?\n%i\n%a" :prepend t)
 ("pn" "Project-local notes" entry (file+headline 
+org-capture-project-notes-file "Inbox") "* %U %?\n%i\n%a" :prepend t)
 ("pc" "Project-local changelog" entry (file+headline 
+org-capture-project-changelog-file "Unreleased") "* %U %?\n%i\n%a"
  :prepend t)
 ("o" "Centralized templates for projects")
 ("ot" "Project todo" entry 
#'+org-capture-central-project-todo-file "* TODO %?\n %i\n %a" :heading "Tasks" 
:prepend nil)
 ("on" "Project notes" entry 
#'+org-capture-central-project-notes-file "* %U %?\n %i\n %a" :heading "Notes" 
:prepend t)
 ("oc" "Project changelog" entry 
#'+org-capture-central-project-changelog-file "* %U %?\n %i\n %a" :heading 
"Changelog"
  :prepend t)
 )
org-persist-after-read-hook '(org-element--cache-persist-after-read)
org-format-latex-options '(:foreground default :background default :scale 1.5 
:html-foreground "Black" :html-background "Transparent" :html-scale
1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\["))
org-refile-targets '((nil :maxlevel . 3) (org-agenda-files :maxlevel . 3))
org-export-before-parsing-hook '(org-attach-expand-links)
org-default-notes-file "/Users/apc/org/notes.org"
org-refile-use-outline-path 'file
org-archive-hook '(org-attach-archive-delete-maybe)
org-cite-follow-processor 'citar
org-file-apps '((remote . emacs) (auto-mode . emacs) (directory . emacs) 
("\\.mm\\'" . default) ("\\.x?html?\\'" . default)
 ("\\.pdf\\'" . default))
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
org-catch-invisible-edits 'smart
org-persist-before-read-hook '(org-element--cache-persist-before-read)
org-font-lock-set-keywords-hook '(doom-themes-enable-org-fontification)
org-modules '(ol-bibtex)
org-image-actual-width nil
org-attach-use-inheritance t
org-mode-local-vars-hook '(+org-init-gifs-h eldoc-mode)
org-mode-hook '((closure ((hook . org-mode-hook) (--dolist-tail--) t) (&rest _) 
(add-hook 'before-save