Re: [BUG] Org-Agenda leaves frame around [9.7-pre (release_9.6.8-785-g72bbf8.dirty @ /home/bidar/.local/private/etc/emacs/lib/org/lisp/)]

2024-04-15 Thread Björn Bidar
Ihor Radchenko  writes:

>>> Fixed, on main. Alongside with other similar places.
>>> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=78e9dd0c4
>>
>> I noticed after the change that captured links are not picked up.
>>
>> E.g.:
>> 1. I capture a link using org-protocol
>> 2. Switch to the org-buffer
>> 3. C-c C-l
>> 4. RET  <- frame closes however links isn't inserted into the target 
>> org-buffer 
>
> May you provide more details about how to reproduce?

What do you miss after the initial details?



Unsubscribe

2024-04-15 Thread Bob Irving
My book: Hard Fun

My business website 
My personal blog 
Twitter: @birv2
YouTube:  CrouchingPython

Raspberry Pi Certified Educator
Minecraft Global Mentor


Re: [BUG] org-open-at-point not presenting links within heading

2024-04-15 Thread Ihor Radchenko
Joe Gilder  writes:

> When cursor is in a heading, and I call org-open-at-point, it’s supposed to 
> (according to the documentation):
>
> “When point is on a headline, display a list of every link in the
> entry, so it is possible to pick one, or all, of them.”
>
> That’s not happening. If the link is IN the heading, it follows the link. If 
> the link is in the “body” of the heading, it simply tells me “No link to open 
> here”

_on_ a headline, which means that point must be on
* Headline, but not inside the heading body

Not a bug.
Canceled.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] org-open-at-point not presenting links within heading

2024-04-15 Thread Joe Gilder
After a restart of Emacs, it appears to be working. Sorry about that. 

__
JOE GILDER



> On Apr 15, 2024, at 2:46 PM, Joe Gilder  wrote:
> 
> Howdy. 
> 
> When cursor is in a heading, and I call org-open-at-point, it’s supposed to 
> (according to the documentation):
> 
> “When point is on a headline, display a list of every link in the
> entry, so it is possible to pick one, or all, of them.”
> 
> That’s not happening. If the link is IN the heading, it follows the link. If 
> the link is in the “body” of the heading, it simply tells me “No link to open 
> here”
> 
> 
> 
> 
> Emacs  : GNU Emacs 29.1 (build 1, aarch64-apple-darwin21.6.0, Carbon Version 
> 165 AppKit 2113.6)
>  of 2023-08-08
> Package: Org mode version 9.6.6 (release_9.6.6 @ 
> /Applications/Emacs.app/Contents/Resources/lisp/org/)
> 
> current state:
> ==
> (setq
>  org-agenda-prefix-format '((agenda . " %?-10t %s ")
>   (timeline . "  % s")
>   (todo . " %s ")
>   (tags . " %i ")
>   (search . " %i %-12:c"))
>  org-archive-location "~/Emacs/Archive.org ::"
>  org-log-note-headings '((note . "%t"))
>  org-link-elisp-confirm-function nil
>  org-agenda-skip-deadline-prewarning-if-scheduled t
>  org-hide-emphasis-markers t
>  org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 
> "\n\n(fn ENTRY)"]
>  org-download-file-format-function 'org-download-file-format-default
>  org-attach-id-to-path-function-list '(org-attach-id-ts-folder-format)
>  org-agenda-custom-commands '(("i" "INBOX + AGENDA"
>  ((todo "NEXT"
>((org-agenda-overriding-header "Next")
> )
>(org-agenda-skip-function
> '(org-agenda-skip-entry-if 'date 'timestamp 
> 'deadline 'scheduled)
> )
>(org-agenda-block-separator nil)
>)
>   (tags-todo "inbox"
>((org-agenda-overriding-header "Inbox")
> (org-agenda-skip-function
>  '(org-agenda-skip-entry-if
>
> 'timestamp
>
> 'deadline
>
> 'scheduled
>
> 'todo
>
> '("PROJECT" 
> "NEXT" "WAITING" "DONE" "CANCELLED")
>
> )
>  )
> (org-agenda-block-separator nil)
> )
>)
>   (agenda "")
>   (todo "PROJECT"
>((org-agenda-overriding-header "Projects")
> (org-agenda-block-separator 61)
> )
>)
>   (tags-todo "@pam"
>((org-agenda-overriding-header "@Pam")
> (org-agenda-block-separator 61)
> (org-agenda-skip-function
>  '(org-agenda-skip-entry-if
>
> 'deadline
>
> 'scheduled
>
> 'todo
>
> '("PROJECT" 
> "NEXT" "WAITING" "DONE" "CANCELLED")
>
> )
>  )
> )
>)
>   (tags-todo "@work"
>((org-agenda-overriding-header "@Work")
> (org-agenda-block-separator nil)
> (org-agenda-skip-function
>  '(org-agenda-skip-entry-if
>
> 'deadline
>
> 

[BUG] org-open-at-point not presenting links within heading

2024-04-15 Thread Joe Gilder
Howdy. 

When cursor is in a heading, and I call org-open-at-point, it’s supposed to 
(according to the documentation):

“When point is on a headline, display a list of every link in the
entry, so it is possible to pick one, or all, of them.”

That’s not happening. If the link is IN the heading, it follows the link. If 
the link is in the “body” of the heading, it simply tells me “No link to open 
here”




Emacs  : GNU Emacs 29.1 (build 1, aarch64-apple-darwin21.6.0, Carbon Version 
165 AppKit 2113.6)
 of 2023-08-08
Package: Org mode version 9.6.6 (release_9.6.6 @ 
/Applications/Emacs.app/Contents/Resources/lisp/org/)

current state:
==
(setq
 org-agenda-prefix-format '((agenda . " %?-10t %s ")
(timeline . "  % s")
(todo . " %s ")
(tags . " %i ")
(search . " %i %-12:c"))
 org-archive-location "~/Emacs/Archive.org::"
 org-log-note-headings '((note . "%t"))
 org-link-elisp-confirm-function nil
 org-agenda-skip-deadline-prewarning-if-scheduled t
 org-hide-emphasis-markers t
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
 org-download-file-format-function 'org-download-file-format-default
 org-attach-id-to-path-function-list '(org-attach-id-ts-folder-format)
 org-agenda-custom-commands '(("i" "INBOX + AGENDA"
   ((todo "NEXT"
 ((org-agenda-overriding-header "Next")
  )
 (org-agenda-skip-function
  '(org-agenda-skip-entry-if 'date 'timestamp 
'deadline 'scheduled)
  )
 (org-agenda-block-separator nil)
 )
(tags-todo "inbox"
 ((org-agenda-overriding-header "Inbox")
  (org-agenda-skip-function
   '(org-agenda-skip-entry-if
 
  'timestamp
 
  'deadline
 
  'scheduled
 
  'todo
 
  '("PROJECT" 
"NEXT" "WAITING" "DONE" "CANCELLED")
 
  )
   )
  (org-agenda-block-separator nil)
  )
 )
(agenda "")
(todo "PROJECT"
 ((org-agenda-overriding-header "Projects")
  (org-agenda-block-separator 61)
  )
 )
(tags-todo "@pam"
 ((org-agenda-overriding-header "@Pam")
  (org-agenda-block-separator 61)
  (org-agenda-skip-function
   '(org-agenda-skip-entry-if
 
  'deadline
 
  'scheduled
 
  'todo
 
  '("PROJECT" 
"NEXT" "WAITING" "DONE" "CANCELLED")
 
  )
   )
  )
 )
(tags-todo "@work"
 ((org-agenda-overriding-header "@Work")
  (org-agenda-block-separator nil)
  (org-agenda-skip-function
   '(org-agenda-skip-entry-if
 
  'deadline
 
  'scheduled
 
  'todo
 
  

Re: columnview dynamic block - different time summing behaviour for EFFORT and CLOCKSUM

2024-04-15 Thread Alexander Adolf
Many thanks for the pointers, Ihor!

The instructions were clear and concise, so the patch creation went
smoothly. Results attached below.

I cloned the Org repository from git://git.sv.gnu.org/emacs/org-mode.git
and followed the instructions at
https://orgmode.org/worg/org-contribute.html#first-patch. I hope I
succeeded for most part. ;-)

`make compile` didn't complain at all, and `make test` ended with the
following:

 Begin Quote -
Ran 1254 tests, 1238 results as expected, 4 unexpected, 12 skipped (2024-04-15 
18:39:50+0200, 57.383197 sec)
2 expected failures

4 unexpected results:
   FAILED  ob-calc/matrix-inversion  ((should (equal "[[-1, 0.625, -0.125], 
[0.25, -0.5, 0.25], [0.5, 0.125, -0.125]]" (org-babel-execute-src-block))) 
:form (equal "[[-1, 0.625, -0.125], [0.25, -0.5, 0.25], [0.5, 0.125, -0.125]]" 
"[[-1, 625e-3, -125e-3], [250e-3, -500e-3, 250e-3], [500e-3, 125e-3, 
-125e-3]]") :value nil :explanation (arrays-of-different-length 63 77 "[[-1, 
0.625, -0.125], [0.25, -0.5, 0.25], [0.5, 0.125, -0.125]]" "[[-1, 625e-3, 
-125e-3], [250e-3, -500e-3, 250e-3], [500e-3, 125e-3, -125e-3]]" 
first-mismatch-at 6))
   FAILED  test-ob-shell/bash-uses-assoc-arrays  ((should (equal "two" 
(org-trim (org-babel-execute-src-block :form (equal "two" "three") :value 
nil :explanation (arrays-of-different-length 3 5 "two" "three" 
first-mismatch-at 1))
   FAILED  test-ob-shell/bash-uses-assoc-arrays-with-lists  ((should (equal "20 
cm" (org-trim (org-babel-execute-src-block :form (equal "20 cm" "50 dl") 
:value nil :explanation (array-elt 0 (different-atoms (50 "#x32" "?2") (53 
"#x35" "?5"
   FAILED  test-org-table/sort-lines  ((should (equal "| a | x |\n| B | 4 |\n| 
c | 3 |\n" (org-test-with-temp-text "| a | x |\n| c | 3 |\n| B | 4 |\n" 
(org-table-sort-lines nil 97) (buffer-string :form (equal "| a | x |\n| B | 
4 |\n| c | 3 |\n" #("| B | 4 |\n| a | x |\n| c | 3 |\n" 0 9 (face org-table) 9 
10 (face org-table-row) 10 19 (face org-table) 19 20 (face org-table-row) 20 29 
(face org-table) 29 30 (face org-table-row))) :value nil :explanation 
(array-elt 2 (different-atoms (97 "#x61" "?a") (66 "#x42" "?B"

12 skipped results:
  SKIPPED  org-missing-dependency/test-ob-R  ((skip-unless nil) :form nil 
:value nil)
  SKIPPED  org-missing-dependency/test-ob-clojure  ((skip-unless nil) :form nil 
:value nil)
  SKIPPED  org-missing-dependency/test-ob-haskell-ghci  ((skip-unless nil) 
:form nil :value nil)
  SKIPPED  org-missing-dependency/test-ob-julia  ((skip-unless nil) :form nil 
:value nil)
  SKIPPED  org-missing-dependency/test-ob-lua  ((skip-unless nil) :form nil 
:value nil)
  SKIPPED  org-missing-dependency/test-ob-maxima  ((skip-unless nil) :form nil 
:value nil)
  SKIPPED  org-missing-dependency/test-ob-octave  ((skip-unless nil) :form nil 
:value nil)
  SKIPPED  org-missing-dependency/test-ob-python  ((skip-unless nil) :form nil 
:value nil)
  SKIPPED  org-missing-dependency/test-ob-ruby  ((skip-unless nil) :form nil 
:value nil)
  SKIPPED  org-missing-dependency/test-ob-scheme  ((skip-unless nil) :form nil 
:value nil)
  SKIPPED  org-missing-dependency/test-org-attach-git  ((skip-unless nil) :form 
nil :value nil)
  SKIPPED  test-org-fold/org-fold-display-inline-images  ((skip-unless (not 
noninteractive)) :form (not t) :value nil)

make: *** [test] Error 1
- End Quote --

At first glance, nothing seems to point into a direction suggesting that
I had broken anything (i.e. nothing about any breakage relating to
columnview)?


Many thanks and looking forward to your thoughts,

  --alexander


>From c21b18475dd154eed8d3f2489daa5a468531dc82 Mon Sep 17 00:00:00 2001
From: Alexander Adolf 
Date: Sun, 14 Apr 2024 18:14:05 +0200
Subject: [PATCH 1/2] lisp/org-colview.el: add formatter parameter to colview
 dynamic block

* lisp/org-colview.el (org-dblock-write:column view): Factor out the
existing formatting code to new function
org-columns-dblock-write-default, and honour new dblock parameter
:formatter for specifying a different formatting function.
(org-columns-dblock-write-default): New function with current
formatting code.
(org-columns--capture-view): Amend docstring to better explain the
format of the data being passed to the formatting function.
(org-clock-clocktable-formatter): New option to define a global
default formatting function, defaulting to the current behaviour.
* doc/org-manual.org (Capturing column view): Describe new :formatter
parameter.
* etc/ORG-NEWS (New option ~org-columns-dblock-formatter~): Announce
new option.
(=colview= dynamic block supports custom formatting function):
Describe new custom formatting function feature.
---
 doc/org-manual.org  |  6 ++
 etc/ORG-NEWS| 26 ++
 lisp/org-colview.el | 38 --
 3 files changed, 64 insertions(+), 6 deletions(-)

diff --git a/doc/org-manual.org 

Re: [BUG] Invalid search bound (wrong side of point) [9.6.25 ( @ /Users/cchoi/.config/emacs/elpa/org-9.6.25/)]

2024-04-15 Thread Ihor Radchenko
Charles Choi  writes:

> Got this warning when running Org Agenda, thought I'd report it in.
>
> ⛔ Warning (org-element-cache): org-element--cache: Org parser error in 
> 2024_04_07.org::#. Resetting.
>  The error was: (error "Invalid search bound (wrong side of point)")

Does it also happen on main?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Warning (org-element-cache): org-element--cache: Org parser error [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)]

2024-04-15 Thread Ihor Radchenko
Keith Waclena  writes:

> Since upgrading from Emacs v28 to v29 I get this error the first time I
> pull up the agenda via M-x org-agenda:
>
> ⛔ Warning (org-element-cache): org-element--cache: Org parser error in 
> emacs.org::#. Resetting.
>  The error was: (error "Invalid search bound (wrong side of point)")
>  Backtrace:
> nil
>  Please report this to Org mode mailing list (M-x org-submit-bug-report).
>
> The same error is repeated 15 times for 15 different agenda files (with
> different marker values), once per file; most of these markers are at
> end-of-file but not all of them.
>
> When the warning pop up emacs is spinning the CPU and is hung; at that
> moment this command in the shell also hangs:
>
> $ emacsclient --eval '(top-level)'
>
> Emacs tells me to hit C-g 4 times to interrupt, and that works.
>
> After I interrupt it, my agenda works fine until I restart Emacs and
> then it happens again.
>
> Any ideas / hints?  Thanks!

Thanks for reporting!
May you try to upgrade to the development version of Org mode?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Unescaped #+ lines in WORG example blocks (was: [PATCH] #+begin_example lang used in manual and worg (was: [DISCUSSION] Refactoring fontification system))

2024-04-15 Thread Ihor Radchenko
Ihor Radchenko  writes:

>>> -#+BEGIN_EXAMPLE org
>>> +#+BEGIN_EXAMPLE
>>>  #+STARTUP: showall indent
>>>  #+STARTUP: hidestars
>>>  #+BEGIN_EXPORT html
>>
>> It is not the scope of this patch but looks like missed commas to escape 
>> leading "#".
>
> You are right. We need someone to look through worg pages and spot all
> such instances.
> (Help appreciated)

https://git.sr.ht/~bzg/worg/commit/729b9679

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



[BUG] Warning (org-element-cache): org-element--cache: Org parser error [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)]

2024-04-15 Thread Keith Waclena


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.

Since upgrading from Emacs v28 to v29 I get this error the first time I
pull up the agenda via M-x org-agenda:

⛔ Warning (org-element-cache): org-element--cache: Org parser error in 
emacs.org::#. Resetting.
 The error was: (error "Invalid search bound (wrong side of point)")
 Backtrace:
nil
 Please report this to Org mode mailing list (M-x org-submit-bug-report).

The same error is repeated 15 times for 15 different agenda files (with
different marker values), once per file; most of these markers are at
end-of-file but not all of them.

When the warning pop up emacs is spinning the CPU and is hung; at that
moment this command in the shell also hangs:

$ emacsclient --eval '(top-level)'

Emacs tells me to hit C-g 4 times to interrupt, and that works.

After I interrupt it, my agenda works fine until I restart Emacs and
then it happens again.

Any ideas / hints?  Thanks!

Keith



Emacs  : GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 
1.18.0, Xaw3d scroll bars)
Package: Org mode version 9.6.15 (release_9.6.15 @ 
/usr/share/emacs/29.3/lisp/org/)

current state:
==
(setq
 org-link-elisp-confirm-function 'yes-or-no-p
 org-hide-emphasis-markers t
 org-bibtex-headline-format-function #[257 "\300%1\236A\207" [:title] 3 
"\n\n(fn ENTRY)"]
 org-agenda-custom-commands '(("a" "Agenda and Work-Related Tasks" ((agenda "") 
(tags-todo "worktodos")))
  ("h" "Agenda and Home-Related Tasks" ((tags-todo 
"hometodos") (agenda "")))
  ("b" todo "BUY") ("B" todo-tree "BUY"))
 org-agenda-files '("~/notes/remember/")
 org-replace-disputed-keys t
 org-persist-after-read-hook '(org-element--cache-persist-after-read)
 org-refile-targets '((org-agenda-files :level . 1) (nil :level . 1))
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
 org-ascii-format-drawer-function #[771 "%1\207" [] 4 "\n\n(fn NAME CONTENTS 
WIDTH)"]
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
  org-cycle-optimize-window-after-visibility-change 
org-cycle-display-inline-images)
 org-persist-before-read-hook '(org-element--cache-persist-before-read)
 org-mode-hook '(docket-highlight-mode #[0 "\301\211%10\207" 
[imenu-create-index-function org-imenu-get-tree] 2]
 org-tempo-setup
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-fold-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
 (lambda nil
  (condition-case err (flyspell-mode 1) ((debug error) (message 
"Ignoring: %S" err) nil))
  (progn (setq indicate-empty-lines t) (setq tab-always-indent 
t) (setq show-trailing-whitespace t)
   (setq org-src-fontify-natively t) (setq 
org-catch-invisible-edits 'smart)
   (setq org-hide-emphasis-markers t))
  )
 org-indent-mode)
 org-babel-load-languages '((emacs-lisp . t) (shell . t) (dot . t) (R . t) (org 
. t) (ditaa . t))
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 outline-isearch-open-invisible-function 'outline-isearch-open-invisible
 org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("tuftebook"
  "\\documentclass{tufte-book}\n\n  
\\usepackage{color}\n  \\usepackage{amssymb}\n  
\\usepackage{gensymb}\n  \\usepackage{nicefrac}\n   
   \\usepackage{units}"
  ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" 
. "\\subsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("tuftehandout"
   

[BUG] Invalid search bound (wrong side of point) [9.6.25 ( @ /Users/cchoi/.config/emacs/elpa/org-9.6.25/)]

2024-04-15 Thread Charles Choi
Hi folks -

Got this warning when running Org Agenda, thought I'd report it in.

⛔ Warning (org-element-cache): org-element--cache: Org parser error in 
2024_04_07.org::#. Resetting.
 The error was: (error "Invalid search bound (wrong side of point)")
 Backtrace:
"  backtrace-to-string(nil)
  org-element-at-point(#)
  org-element-cache-map(#f(compiled-function (el) #) :next-re \"]+)>\" :fail-re 
\"]+)>\" :narrow t)
  org-agenda-get-deadlines()
  org-agenda-get-day-entries(\"/Users/cchoi/org/2024_04_07.org\" (4 8 2024) 
:closed :deadline :scheduled :timestamp :sexp)
  apply(org-agenda-get-day-entries \"/Users/cchoi/org/2024_04_07.org\" (4 8 
2024) (:closed :deadline :scheduled :timestamp :sexp))
  org-agenda-list(nil)
  funcall-interactively(org-agenda-list nil)
  call-interactively(org-agenda-list)
  #f(compiled-function () #)()
  funcall(#f(compiled-function () #))
  (let nil (funcall '#f(compiled-function () #)))
  org-agenda-run-series(\"Agenda and all TODOs\" (((agenda \"\") (alltodo 
\"\"
  org-agenda(nil \"n\")
  menu-function-91()
  funcall-interactively(menu-function-91)
  popup-menu((keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ...) 
(down-mouse-3 ...))
  mac-mouse-context-menu((down-mouse-3 (# 765 (788 
. 626) 741232365 nil 765 (87 . 16) nil (788 . 182) (6 . 26
  funcall-interactively(mac-mouse-context-menu (down-mouse-3 (# 765 (788 . 626) 741232365 nil 765 (87 . 16) nil (788 . 182) (6 
. 26
  command-execute(mac-mouse-context-menu)
"
 Please report this to Org mode mailing list (M-x org-submit-bug-report).



-
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.




Emacs  : GNU Emacs 29.3 (build 1, aarch64-apple-darwin23.2.0, Carbon Version 
170 AppKit 2487.3)
 of 2024-04-10
Package: Org mode version 9.6.25 ( @ 
/Users/cchoi/.config/emacs/elpa/org-9.6.25/)

current state:
==
(setq
 org-link-elisp-confirm-function 'yes-or-no-p
 org-hide-emphasis-markers t
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
 org-export-with-sub-superscripts '{}
 org-log-done 'time
 org-show-notification-handler 'cc/display-notification
 org-babel-after-execute-hook '(org-redisplay-inline-images)
 org-agenda-files '("~/org/")
 org-publish-project-alist '(("pages" :base-directory 
"~/Projects/Captee/Development/Captee/docs/help" :base-extension "org" 
:recursive t :publishing-directory
  
"~/Projects/Captee/Development/Captee/Captee.help/Contents/Resources/en.lproj" 
:publishing-function org-html-publish-to-html)
 ("static" :base-directory 
"~/Projects/Captee/Development/Captee/docs/help" :base-extension
  
"css\\|txt\\|jpg\\|gif\\|png\\|svg\\|helpindex\\|cshelpindex" :recursive t 
:publishing-directory
  
"~/Projects/Captee/Development/Captee/Captee.help/Contents/Resources/en.lproj" 
:publishing-function org-publish-attachment)
 ("captee-help-book" :components ("pages" 
"static")))
 org-capture-templates '(("a" "Appointment" entry (file+function 
cc/--current-org-default-notes-file cc/--find-capture-point-in-current)
  "* %^{description}\n%^T\n:PROPERTIES:\n:CREATED: 
%U\n:END:\n%?" :empty-lines 1 :doct
  (:doct-name "Appointment" :keys "a" :type entry :file 
cc/--current-org-default-notes-file :function cc/--find-capture-point-in-current
   :empty-lines 1 :template ("* %^{description}" "%^T" 
":PROPERTIES:" ":CREATED: %U" ":END:" "%?"))
  )
 ("b" "BeOrg TODO" entry (file 
"~/org/refile-beorg.org") "* TODO %^{description}\nSCHEDULED: 
%^T\n:PROPERTIES:\n:CREATED: %U\n:END:\n%?"
  :empty-lines 1 :doct
  (:doct-name "BeOrg TODO" :keys "b" :type entry :file 
"~/org/refile-beorg.org" :empty-lines 1 :template
   ("* TODO %^{description}" "SCHEDULED: %^T" 
":PROPERTIES:" ":CREATED: %U" ":END:" "%?"))
  )
 ("s" "TODO: Scheduled" entry (file+function 
cc/--current-org-default-notes-file cc/--find-capture-point-in-current)
  "* TODO %^{description} %^G\nSCHEDULED: 
%^T\n:PROPERTIES:\n:CREATED: %U\n:END:\n%?" :empty-lines 1 :doct
  (:doct-name "TODO: Scheduled" :keys "s" :type entry 
:file cc/--current-org-default-notes-file :function
   cc/--find-capture-point-in-current :empty-lines 1 
:template
   ("* TODO %^{description} %^G" "SCHEDULED: %^T" 
":PROPERTIES:" ":CREATED: %U" ":END:" 

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-04-15 Thread Yaroslav Drachov
Hello everyone,

I hope I understand correctly how to use this mail-thread. Thank you very much 
for such a great enhancement of Org-mode LaTeX preview capabilities. I am on 
macOS Big Sur and have some troubles with dvisvgm preview in your particular 
fork. Everything works just fine in stable release of Org-mode, and in your 
release dvipng method work almost as expected. dvisvgm preview method actually 
generate svg’s in /var/folders/3m…, but don’t make an overlay after all and 
equation environments remain being formatted as text.

Best wishes,
Yaroslav


Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-04-15 Thread Sławomir Grochowski
Philip Kaludercic  writes:
> I have pushed the changes to master.

Thank you Philip for your help.  It works.

But there is one more small thing. 
A message that is displayed in the minibuffer. 
It contains two pieces of information:

(1) command name
Right now it's hardcoded. 
We need to change the it from `help-quick-toggle' to
`org-columns-help-quick-toggle'.
How to do it? 
Add another variable like `help-quick-use-map'?
Maybe 'help-quick-command-name'?

(2) keybinding to the command name
Just to modify message string. Add '\\'.
To use other keymap.
Change is in the diff below. 
  
diff --git a/lisp/help.el b/lisp/help.el
index d4e39f04e53..35412b9d2fe 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -263,7 +263,9 @@ help-quick
   ;; ... and shrink it immediately.
   (fit-window-to-buffer))
 (message
- (substitute-command-keys "Toggle display of quick-help buffer using 
\\[help-quick-toggle]."
+ (substitute-command-keys "Toggle display of quick-help buffer 
using\\ \\[org-columns-help-quick-toggle]."
+
+
 
 (defun help-quick-toggle ()
   "Toggle display of a window showing popular commands and their bindings.
-- 
2.30.2


Regards,
-- 
Slawomir Grochowski



Re: New try at multi-lingual export to latex/pdf using pdflatex and babel

2024-04-15 Thread Ihor Radchenko
Juan Manuel Macías  writes:

> Pedro Andres Aranda Gutierrez writes:
>
>> I agree it does not take advantage of the AUTO facility here, but I
>> nevertheless think it would
>> be interesting to show people how to do this. Until we expand the AUTO
>> facility to cope with
>> all quirks of multi-language in pdflatex (lualatex and xetex are a
>> different pair of shoes), a quick
>> and dirty alternative may be helpful for people. The introductory text
>> could be
>
> Pedro, the only problem I see with that is that it is an example of
> LaTeX rather than Org. The only Org part here is #+LaTeX_header, and in
> the entire section it's already made clear enough what it's used for.
>
> Perhaps a brief reminder (the AUTO facility of the previous examples
> is very limited) could be added first, and that if the users want to
> obtain more complex, or more specific results (like the case you
> exemplify for pdfLaTeX) they must put explicit LaTeX code, using
> LaTeX_header. And then your example would come, but emphasizing that the
> LaTeX documentation must be consulted. wdyt?
>
> My point is that if we abuse examples of this type (at the expense of
> "#+latex_header:something"), or "how is this done in LaTeX?", in the end
> a LaTeX manual is made instead of Org.

A gentle ping. This patch is still hanging in the air.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [PATCH v2] org-faq.org: Inline comments

2024-04-15 Thread Ihor Radchenko
Ihor Radchenko  writes:

 +#+begin_src org
 +The following line may become a patagraph separator.
 +@@comment: might give unexpected effect @@
 +Put some text before @@comment: a better variant
 +@@ and after instread.
 +#+end_src
>>> 
>>> May you please elaborate?
>>> If you see inline export block starting a paragraph, it is a bug.
> ...
>
> As for comments, I tend to agree that it is indeed a bug.

I am no longer able to reproduce the problem with @@comment:...@@
splitting paragraph in the above example.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] crash [9.7-pre (release_9.6.11-927-g819cd7 @ /home/minshall/.emacs.d/straight/build/org/)]

2024-04-15 Thread Ihor Radchenko
> You are on a fairly old common from main - 5 month old.
 *commit



Re: Using search options in HTTP-style links

2024-04-15 Thread Ihor Radchenko
Joseph Turner  writes:

> ...
> (eww "https://ushin.org/needs-list.org#%3A%3A%23care;)
>
> ...loads the file in eww-mode with point at the top of the file.
>
> I think it would be more useful to instead activate org-mode (or a mode
> which derives from it - "eww-org-mode"?), decode the link fragment, and
> then jump to the location specified by the search option.

There is a convention for pdfs:
http://www.example.com/document.pdf#page=5
But, AFAIK, it is not RFC.

So, there is nothing stopping from creating an ad-hoc convention to
parse URL locators in links to PDFs or org files or whatnot.

However, the question about activating a major mode on web content is a
question to Emacs developers. It should be considered carefully, because
activating major modes may not be safe.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] crash [9.7-pre (release_9.6.11-927-g819cd7 @ /home/minshall/.emacs.d/straight/build/org/)]

2024-04-15 Thread Ihor Radchenko
Greg Minshall  writes:

> i was editing a buffer, but it was in read-only mode, so i closed the
> buffer and re-visited the file, then hit something like carriage return
> and got the crash.
>
> (it's possible, i suppose, that i was doing some for of "org-capture"
> for that buffer?)
>
> cheers.
>
> -
> ⛔ Warning (org-element-cache): org-element--cache: Org parser error in 
> sysnotes.org::2622892. Resetting.
>  The error was: (error "org-element--cache: Emergency exit")

Thanks for reporting!
You are on a fairly old common from main - 5 month old.
May you upgrade to the latest main and let us know if you keep seeing problems?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] org-speed-commands deleting headings when using mark-set [9.5.5 (release_9.5.5 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]

2024-04-15 Thread Ihor Radchenko
Joe Gilder  writes:

> I discovered the problem. I believe it has to do with (delete-selection-mode)
>
> When that mode is enabled, I get this behavior. When it is disabled, things 
> work as expected. 
>
> Since I’m not technically typing anything when using speed commands, it 
> shouldn’t delete headings even with delete-selection-mode enabled. So maybe 
> it’s still a bug?

Yes, it is.
Fixed, on bugfix. For the next bugfix release.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=4ae5cc018

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Using search options in HTTP-style links

2024-04-15 Thread Joseph Turner
Hello!

[[info:org#Search Options]] says that search options are intended for
file: type links only.  However, since Org documents can also be loaded
over network protocols like HTTP and hyper://, I'd like to deliberate
if/how search options might be encoded inside HTTP-style link fragments.

HTTP-style links are URL-encoded with "#"-prefixed link fragments:

(let ((domain "https://ushin.org;)
  (filename "needs-list.org")
  (search-option "::#care"))
  (format "%s/%s#%s" domain (url-hexify-string filename)
  (url-hexify-string search-option)))

=>  "https://ushin.org/needs-list.org#%3A%3A%23care;

Currently, loading the above URL with EWW...

(eww "https://ushin.org/needs-list.org#%3A%3A%23care;)

...loads the file in eww-mode with point at the top of the file.

I think it would be more useful to instead activate org-mode (or a mode
which derives from it - "eww-org-mode"?), decode the link fragment, and
then jump to the location specified by the search option.

Web browsers like Firefox don't handle Org search options in link
fragments, but then again, they don't handle Org documents at all.  On my
machine, loading https://ushin.org/needs-list.org#%3A%3A%23care in
Firefox downloads the file as if the fragment weren't there.

What other issues might arise when encoding search options this way?

Any other comments/questions welcome :)

Thank you!

Joseph