Re: [BUG] unregistered buffer warning when saving buffer in org src block [9.6 (9.6-??-dbd192bbc @ /Users/sfq/.my.emacs.d/doom-emacs/.emacs.d/.local/straight/build-27.2/org/)]

2021-11-08 Thread Ihor Radchenko
时芳泉  writes:

> This warning appears when saving a org mode buffer if the poly-org mode is 
> enabled and the cursor is in a source block.

I have an idea what may be happening. Can you check the value of
after-change-functions variable when cursor is inside and outside a
source block?

Best,
Ihor



[BUG] unregistered buffer warning when saving buffer in org src block [9.6 (9.6-??-dbd192bbc @ /Users/sfq/.my.emacs.d/doom-emacs/.emacs.d/.local/straight/build-27.2/org/)]

2021-11-08 Thread 时芳泉



This warning appears when saving a org mode buffer if the poly-org mode is 
enabled and the cursor is in a source block.




Warning (emacs): org-element--cache: Unregistered buffer modifications 
detected. Resetting.
If this warning appears regularly, please report it to Org mode mailing list 
(M-x org-submit-bug-report).
The buffer is:  Building Abstractions with Data.org
Current command: save-buffer
Backtrace:
"  backtrace-to-string(nil)
  org-element--cache-sync(# 1220)
  org-element-at-point()
  org-src-coderef-format((src-block (:language \"racket\" :switches nil 
:parameters nil :begin 4 :end 43 :number-lines nil :preserve-indent nil 
:retain-labels t :use-labels t :label-fmt nil :value \"(version) \\n\" 
:post-blank 0 :post-affiliated 4 :mode planning :granularity element :parent 
(section (:begin 4 :end 43 :contents-begin 4 :contents-end 43 :robust-begin 4 
:robust-end 41 :post-blank 0 :post-affiliated 4 :mode section :granularity 
element :parent (headline (:raw-value \"\" :begin 1 :end 43 :pre-blank 0 
:contents-begin 4 :contents-end 43 :robust-begin 6 :robust-end 41 :level 1 
:priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 
:footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 1 
:title \"\")))
  org-babel-get-src-block-info(light (src-block (:language \"racket\" :switches 
nil :parameters nil :begin 4 :end 43 :number-lines nil :preserve-indent nil 
:retain-labels t :use-labels t :label-fmt nil :value \"(version) \\n\" 
:post-blank 0 :post-affiliated 4 :mode planning :granularity element :parent 
(section (:begin 4 :end 43 :contents-begin 4 :contents-end 43 :robust-begin 4 
:robust-end 41 :post-blank 0 :post-affiliated 4 :mode section :granularity 
element :parent (headline (:raw-value \"\" :begin 1 :end 43 :pre-blank 0 
:contents-begin 4 :contents-end 43 :robust-begin 6 :robust-end 41 :level 1 
:priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 
:footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 1 
:title \"\")))
  xenops-src-parse-at-point()
  funcall(xenops-src-parse-at-point)
  xenops-util-first-result(funcall (xenops-math-parse-block-element-at-point 
xenops-math-parse-inline-element-at-point xenops-math-parse-table-at-point 
xenops-image-parse-at-point xenops-footnote-parse-at-point 
xenops-minted-parse-at-point xenops-src-parse-at-point))
  xenops-parse-any-element-at-point()
  xenops-apply-handlers-at-point((xenops-math-render xenops-image-render 
xenops-footnote-render) nil)
  xenops-apply-operations-at-point((render))
  xenops-render-at-point()
  funcall(xenops-render-at-point)
  (condition-case e (funcall hook) ((debug error) (signal 'doom-hook-error 
(list hook e
  doom-run-hook(xenops-render-at-point)
  run-hook-wrapped(doom-run-hook xenops-render-at-point)
  (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug 
doom-hook-error) (if debug-on-error nil (lwarn hook :error \"Error running hook 
%S because: %s\" (if (symbolp (car (cdr e))) (symbol-name (car (cdr e))) (car 
(cdr e))) (car (cdr (cdr e) (signal 'doom-hook-error (cons hook (cdr e)
  (let ((hook (car --dolist-tail--))) (condition-case e (run-hook-wrapped hook 
#'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook 
:error \"Error running hook %S because: %s\" (if (symbolp (car ...)) 
(symbol-name (car ...)) (car (cdr e))) (car (cdr (cdr e) (signal 
'doom-hook-error (cons hook (cdr e) (setq --dolist-tail-- (cdr 
--dolist-tail--)))
  (while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e 
(run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if 
debug-on-error nil (lwarn hook :error \"Error running hook %S because: %s\" (if 
(symbolp ...) (symbol-name ...) (car ...)) (car (cdr ... (signal 
'doom-hook-error (cons hook (cdr e) (setq --dolist-tail-- (cdr 
--dolist-tail--
  (let ((--dolist-tail-- hooks)) (while --dolist-tail-- (let ((hook (car 
--dolist-tail--))) (condition-case e (run-hook-wrapped hook #'doom-run-hook) 
((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error \"Error 
running hook %S because: %s\" (if ... ... ...) (car ...))) (signal 
'doom-hook-error (cons hook (cdr e) (setq --dolist-tail-- (cdr 
--dolist-tail--)
  doom-run-hooks(before-save-hook)
  apply(doom-run-hooks before-save-hook)
  run-hooks(before-save-hook)
  #f(compiled-function (&optional called-interactively) \"Save the current 
buffer in its visited file, if it has been modified.\\n\\nThe hooks 
`write-contents-functions', `local-write-file-hooks'\\nand 
`write-file-functions' get a chance to do the job of saving;\\nif they do not, 
then the buffer is saved in the visited file in\\nthe usual way.\\n\\nBefore 
and after saving the buffer, this function runs\\n`before-save-hook' and 
`after-save-hook', respectively.\" (interactive '(called-interactively)) 
#)(t)
  apply(#f(compiled-function (&optional called-interactively) \"Save the 
curren

Custom TODO keywords and org-enforce-todo-dependencies

2021-11-08 Thread Edmund Potts
Dear all,

I have read the manual and searched the list archives but not found an
answer to this - so apologies if it was in fact covered somewhere.

I make use of the variable org-enforce-todo-dependencies along with the
:ORDERED: property to have sequentially limited TODO lists.

However I found when experimenting with custom TODO keywords that once they
were enabled, the blocking functionality did not work. I was able to change
any of my TODO headers to "DONE", regardless of the state of the TODO item
immediately preceding them.

Is there a way these two functions can work together? I would appreciate
any guidance.

Thanks and regards,
Edmund Potts


Re: Emacs-26.3: No such file or directory backtrace

2021-11-08 Thread Ihor Radchenko
Max Nikulin  writes:

> With last commit to main d3836c1a13 Emacs-26.3 from Ubuntu-20.04 LTS 
> focal becomes too old for Org:
>
> File mode specification error: (file-missing Cannot open load file No 
> such file or directory backtrace)

Thanks for reporting! Fixed.

Best,
Ihor



Re: upgrade to 9.5 failed:

2021-11-08 Thread Ihor Radchenko
Pete Siemsen  writes:

> I'm running Aquamacs 3.6 on a Mac running macOS 11.6. I've been happily
> running org-mode 9.1.14 for years. Today, for no particular reason, I tried
> to upgrade to org-mode 9.5. I was able to upgrade, and org-version changed
> to "9.5", but when I tried some simple commands in an org file, like "TAB"
> to do an "org-cycle", I got
>
> cannot open load file, no such file or directory, backtrace

Fixed now.

Bes,
Ihor



upgrade to 9.5 failed:

2021-11-08 Thread Pete Siemsen
I'm running Aquamacs 3.6 on a Mac running macOS 11.6. I've been happily
running org-mode 9.1.14 for years. Today, for no particular reason, I tried
to upgrade to org-mode 9.5. I was able to upgrade, and org-version changed
to "9.5", but when I tried some simple commands in an org file, like "TAB"
to do an "org-cycle", I got

cannot open load file, no such file or directory, backtrace

When I looked in the *Messages" buffer, I saw

Error during redisplay: (jit-lock-function 1001) signaled (void-variable
org-element-citation-prefix-re)
Error during redisplay: (jit-lock-function 1501) signaled (void-variable
org-element-citation-prefix-re)
eval-buffer: Cannot open load file: No such file or directory, backtrace
Warning: Bug in org-mode: it forgets to call `run-mode-hooks'
Cannot open load file: No such file or directory, backtrace
Mark set

For now, I've gone back to version 9.1.14, which still works. What might be
wrong?

-- Pete


Re: Problems with bibliography while exporting org files

2021-11-08 Thread Nicolas Goaziou
Hello,

Andrea Lazzarini  writes:

> I’m a Spacemacs user, and I’ve just upgraded to org mode 9.5.
> Coming from 9.4.6, I’m currently trying to figure out how to adapt to the 
> changes in the export mechanism.
>
> When I then try to export an org file via org-export and pandoc, I get the 
> following message:
>
> Wrong type argument: stringp, 
> ("~/Dropbox/Standard/Bibliografia/bibliografia_generale.bib")
>
> I am setting my bibliography thus:
>
> (setq org-cite-global-bibliography
> '("~/Dropbox/Standard/Bibliografia/bibliografia_generale.bib"))

Could you send the backtrace? I cannot reproduce your issue.

Regards,
-- 
Nicolas Goaziou



Incorrect link is stored (org-elements?)

2021-11-08 Thread Max Nikulin
`org-store-link' under some conditions may pick a link to wrong heading. 
Emacs-26.3, Org main~1.


--- >8 ---
* Right

Save this file, kill the buffer, open it again.
Put cursor to the empty line below this paragraph,
type something, e.g. =a=, undo =C-/=, =M-x org-store-link=.
"#its_wrong" is stored instead of "*Right".

** Wrong
:PROPERTIES:
:CUSTOM_ID: its_wrong
:END:
--- 8< ---




Emacs-26.3: No such file or directory backtrace

2021-11-08 Thread Max Nikulin
With last commit to main d3836c1a13 Emacs-26.3 from Ubuntu-20.04 LTS 
focal becomes too old for Org:


File mode specification error: (file-missing Cannot open load file No 
such file or directory backtrace)


and other errors



Re: org-goto shows full-size help window

2021-11-08 Thread Ihor Radchenko
Max Nikulin  writes:

> Ihor, a kind of fix (dropping of `org-no-popus' just for `org-goto') is 
> committed to the main branch only. Neither of discussed approaches has 
> landed to bugfix so far.

I genuinely thought that the fix was on the same branch with the
original commit. Let me cherry-pick Marco's commit and back-port it to
bugfix.

Best,
Ihor



Re: Tables and org babel

2021-11-08 Thread Henrik Frisk
Den mån 8 nov. 2021 kl 12:54 skrev Greg Minshall :

> sorry, in fact, =-Q= doesn't matter:
>
> failing:
> - Org mode version 9.5 (9.5-g531577 @
> /home/minshall/.emacs.d/straight/build/org/)
>
> succeeding:
> - Org mode version 9.5 (9.5-gced2b3 @
> /home/minshall/.emacs.d/straight/build/org/)
>
> cheers, Greg
>

Thanks Greg,

I updated to latest org and it worked again. God, this was driving me crazy
last night!

Problem solved with Org mode version 9.5 (release_9.5-220-g343e22)

/Henrik


Re: org-goto shows full-size help window

2021-11-08 Thread Max Nikulin

On 08/11/2021 21:25, Ihor Radchenko wrote:

Carlos Pita writes:


when calling org-goto I get a full-size help window with very little
content. I believe this window is supposed to be at the bottom of the
indirect search buffer but for some reason it occupies the entire
frame. See the attached screenshot.


See https://list.orgmode.org/orgmode/87mtnovv7f@alphapapa.net/
It should be already fixed on bugfix branch.


Ihor, a kind of fix (dropping of `org-no-popus' just for `org-goto') is 
committed to the main branch only. Neither of discussed approaches has 
landed to bugfix so far.




Re: org-goto shows full-size help window

2021-11-08 Thread Carlos Pita
>
> .See https://list.orgmode.org/orgmode/87mtnovv7f@alphapapa.net/
> It should be already fixed on bugfix branch.
>

Thanks for the prompt response!

I'm going to install it from gnu elpa then. What is the exact relationship
between bugfix and the version of org shipped with emacs? When emacs is
released does it always include the latest org bugfix release available at
the time? I'm not asking about my particular situation, after all I'm
running an emacs prerelease, but  in general.

Best regards,
Carlos

>


Re: Introducing Org-transclusion

2021-11-08 Thread Ihor Radchenko
Noboru Ota  writes:

> Source:
> https://github.com/nobiot/org-transclusion/issues/42#issuecomment-739570395
>
> I personally have never come across such performance issue.  Are you
> aware of some good test file or something to let other people reproduce
> it?

I tried to create an example file, but I start seeing issues far before
the file size becomes large enough for overlays becoming a problem.

Try to open the attached file and run M-x org-transclusion-add-all

Best,
Ihor



huge.org
Description: Lotus Organizer


Re: org-goto shows full-size help window

2021-11-08 Thread Ihor Radchenko
Carlos Pita  writes:

> Hi all,
>
> when calling org-goto I get a full-size help window with very little
> content. I believe this window is supposed to be at the bottom of the
> indirect search buffer but for some reason it occupies the entire
> frame. See the attached screenshot.

See https://list.orgmode.org/orgmode/87mtnovv7f@alphapapa.net/
It should be already fixed on bugfix branch.

Best,
Ihor



Re: Tables and org babel

2021-11-08 Thread Greg Minshall
sorry, in fact, =-Q= doesn't matter:

failing:
- Org mode version 9.5 (9.5-g531577 @ 
/home/minshall/.emacs.d/straight/build/org/)

succeeding:
- Org mode version 9.5 (9.5-gced2b3 @ 
/home/minshall/.emacs.d/straight/build/org/)

cheers, Greg



Re: Tables and org babel

2021-11-08 Thread Greg Minshall
my data point:

- emacs -Q: works as (i assume) expected
- emacs: i get an error, with this backtrace

Debugger entered--Lisp error: (wrong-type-argument markerp nil)
  #f(compiled-function () #)()
  org-babel-insert-result((1 2 3 4) ("replace") ("emacs-lisp" "data" ((:var 
data 1 2 3 4) (:colname-names) (:rowname-names) (:result-params "replace") 
(:result-type . value) (:results . "replace") (:exports . "code") (:session . 
"none") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no") 
(:lexical . "no")) "" nil 16920 "(ref:%s)") nil "emacs-lisp")
  org-babel-execute-src-block(nil ("emacs-lisp" "data" ((:var data 1 2 3 4) 
(:colname-names) (:rowname-names) (:result-params "replace") (:result-type . 
value) (:results . "replace") (:exports . "code") (:lexical . "no") (:tangle . 
"no") (:hlines . "no") (:noweb . "no") (:cache . "no") (:session . "none")) "" 
nil 16920 "(ref:%s)"))
  org-ctrl-c-ctrl-c(nil)
  funcall-interactively(org-ctrl-c-ctrl-c nil)
  call-interactively(org-ctrl-c-ctrl-c nil nil)
  command-execute(org-ctrl-c-ctrl-c)


i haven't noticed anything weird recently, but this may well be
something in my setup that's odder than "normal org mode" stuff.  so, a
grain of salt is warranted.

cheers, Greg



Problems with bibliography while exporting org files

2021-11-08 Thread Andrea Lazzarini
Hi,

I’m a Spacemacs user, and I’ve just upgraded to org mode 9.5.
Coming from 9.4.6, I’m currently trying to figure out how to adapt to the 
changes in the export mechanism.

When I then try to export an org file via org-export and pandoc, I get the 
following message:

Wrong type argument: stringp, 
("~/Dropbox/Standard/Bibliografia/bibliografia_generale.bib")

I am setting my bibliography thus:

(setq org-cite-global-bibliography
'("~/Dropbox/Standard/Bibliografia/bibliografia_generale.bib"))

If I specify a "#+bibliography:” locally in the org file, the same problem 
reoccurs, now stating:

Wrong type argument: stringp, ("local.bib" 
"~/Dropbox/Standard/Bibliografia/bibliografia_generale.bib")

Is there something I must do to be able to export correctly?

Thanks,

Andrea


Emacs  : GNU Emacs 28.0.60 (build 1, x86_64-apple-darwin20.6.0, NS 
appkit-2022.60 Version 11.6 (Build 20G165))
 of 2021-11-02
Package: Org mode version 9.5 (release_9.5-59-g52e6f1 @ 
/usr/local/Cellar/emacs-plus@28/28.0.50/share/emacs/28.0.60/lisp/org/)

current state:
==
(setq
 org-noter--doc-goto-location-hook '(org-noter-pdftools--doc-goto-location)
 org-noter--check-location-property-hook '(org-noter-pdftools--check-link)
 org-link-elisp-confirm-function 'yes-or-no-p
 org-roam-db-gc-threshold 402653184
 org-ref-cite-onclick-function #[257 "\300 \207" [org-ref-citation-hydra/body] 
2 "\n\n(fn _)"]
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
 org-pdftools-get-desc-function 'org-pdftools-get-desc-default
 org-ref-insert-cite-function 'org-ref-insert-cite-link
 org-download-file-format-function 'org-download-file-format-default
 org-log-done 'time
 org-fontify-done-headline nil
 org-roam-dailies-capture-templates '(("d" "default" plain "%?" :target 
(file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n#+startup: content")))
 org-log-into-drawer t
 org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images)
 org-agenda-files '("~/Dropbox/Agenda/todo.org" 
"~/Dropbox/Agenda/todo.org_archive" "~/Dropbox/Corsi/corsi_conclusi.org" 
"/Users/test/Dropbox/org-roam/20210709174709-erc.org"
"/Users/test/Dropbox/org-roam/20211018120015-disfor.org" 
"/Users/test/Dropbox/org-roam/20211104164945-esami.org"

"/Users/test/Dropbox/org-roam/20211009124857-racconti_de_roberto.org" 
"/Users/test/Dropbox/org-roam/20211006180957-curiosity_driven.org"

"/Users/test/Dropbox/org-roam/20211029144338-de_roberto.org")
 org-capture-templates '(("d" "Deadline" entry (file+headline 
"~/Dropbox/Agenda/todo.org" "Tasks") "* TODO %?\n  DEADLINE: %T\n\n")
 ("t" "Task" entry (file+headline 
"~/Dropbox/Agenda/todo.org" "Tasks") "* TODO %?\n  SCHEDULED: %T\n\n")
 ("i" "Idea" entry (file+headline 
"~/Dropbox/Agenda/inbox.org" "Idee") "* %?"))
 org-export-before-parsing-hook '(org-attach-expand-links org-reledmac-export)
 org-default-notes-file "~/Dropbox/Agenda/todo.org"
 org-export-async-init-file 
"/Users/test/.emacs.d/layers/+emacs/org/local/org-async-init.el"
 org-roam-find-file-hook '(org-roam-buffer--setup-redisplay-h 
org-roam--register-completion-functions-h org-roam--replace-roam-links-on-save-h
   org-roam-open-id-with-org-roam-db-h 
org-roam-db-autosync--setup-update-on-save-h)
 org-ref-bibtex-assoc-pdf-with-entry-move-function 'rename-file
 org-publish-timestamp-directory "~/.emacs.d/.cache/.org-timestamps/"
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-file-apps '(("\\.docx\\'" . default) (auto-mode . emacs))
 org-noter-pdftools-markup-pointer-function 
'pdf-annot-add-highlight-markup-annotation
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
 org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS 
WIDTH)"]
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-noter--note-after-tipping-point-hook 
'(org-noter-pdftools--note-after-tipping-point)
 org-modules '(org-habit ol-doi ol-w3m ol-bbdb ol-bibtex ol-docview ol-gnus 
ol-info ol-irc ol-mhe ol-rmail ol-eww)
 org-ref-notes-function 'orb-org-ref-edit-note
 org-image-actual-width nil
 org-mode-hook '(er/add-org-mode-expansions org-ref-org-menu #[0 
"\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all 
append local] 5]
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-babel-show-result-all append local] 5] 
org-babel-result-hide-spec
 org-babel-hide-all-hashes #[0 "\301\211\207" 
[imenu-create-index-function org-imenu-get-tree] 2] flyspell-mode 
spacemacs/org-setup-evil-surround
 spacemacs/load-yasnippet toc-org-enable org-superstar-mode 
(lambda nil (require 'org-ref)) org-download-enable 
dotspacemacs//prettify-spacemacs-docs
 spacemacs//org-babel-do

Re: Tables and org babel

2021-11-08 Thread Eric S Fraga
On Monday,  8 Nov 2021 at 08:45, Henrik Frisk wrote:
> I'm having troubles getting more than one cell from an org table as a
> variable in org-babel. Trying this example from the orgmode manual
> (https://orgmode.org/manual/Environment-of-a-Code-Block.html):

Data point: works just fine for me.

-- 
: Eric S Fraga via Emacs 28.0.60, Org release_9.5-192-gd4e192
: Latest paper written in org: https://arxiv.org/abs/2106.05096