Re: [BUG] beamer export -- text inside section, before next headline, has no frame [9.5.2 (9.5.2-ge7ea95 @ /home/hugo/.config/emacs/straight/build/org/)]

2022-02-04 Thread Eric S Fraga
Dear Hugo,

On Thursday,  3 Feb 2022 at 17:26, Hugo Heagren wrote:
> I have org-beamer-frame-level set to 2, so when exporting to beamer,
> top-level headlines become sections, and second-level headlines become
> frames. I often want to include a short explanation/intro of the
> section, before moving onto the more specific slide (I have found this
> is good for complex lectures).

But if you want that short explanation to be on a slide, simply use a
second level heading, e.g. "** Introduction to the section"?  Beamer
does not have a distinction in "levels" of slides/frames and it would
not make sense to have top level (section) text be a slide.

-- 
: Eric S Fraga, with org release_9.5.2-364-ge7ea95 in Emacs 29.0.50



Re: Hourly repeating tasks only shown once per day in org-agenda

2022-02-04 Thread Ihor Radchenko
JG  writes:

> * TODO Checking twice a day
> <2021-12-08 Wed 7:00 +12h>
>
> In the org-agenda I would expect to see the event appear twice a day at
> 7:00 and 19:00 every day, but instead I see it appear once a day at the
> time in the timestamp.

Confirmed.

Best,
Ihor



Re: Problem with org-babel and geiser

2022-02-04 Thread Bob Heffernan
On 22-02-04 15:00, Ihor Radchenko wrote:
> Does the patch in
> https://orgmode.org/list/3462869.oopU1TnKvU@felipe-thinkpad-x200 help?

Ihor,

Thank you for your response.
The patch you linked does seem to be intended to fix this issue.

However, I have no experience with applying a patch (to Emacs or anything else).
On my system, ob-scheme.el.gz can be found at
/usr/share/emacs/27.2/lisp/org
can I uncompress the file, patch that, then compress again?

Or, would I need to download the Emacs source, apply the patch and then 
recompile?

Thank you!

Bob Heffernan



Experience report on org 9.6-dev perf improvement for tangling noweb-ref heavy files

2022-02-04 Thread pareto optimal
Hi! I reported an issue with org-babel-tangle performance issues with lots of 
noweb references here:

https://lists.gnu.org/archive/html/emacs-orgmode/2022-01/msg00484.html

Using 2b49d6fd9c04020a8132bfcfffa449e3e05b47e1 on my personal (but not yet 
public) config that demonstrated that issue I see a great improvement!

It has 124 source blocks, 70 of which are noweb-ref, and I believe some of 
those noweb-refs also refer to eachother if that matters for performance 
considerations.

org 9.5.2:   1.28, 1.33, 1.32
org 9.6-dev:   0.46, 0.44, 0.43

Nearly 3x or 200% faster!

Thanks to Ihor Radchenko and others who worked on this!
-- Sent with https://mailfence.com  Secure and private email

Shell SRC blocks under Windows

2022-02-04 Thread H. Dieter Wilhelm
Hello

I installed the software distribution MSYS2 https://www.msys2.org/.  And
I'd like to call its various shells in org src blocks.  First I tried to
set explicit-shell-file-name but then my LaTeX exports don't work any
longer.

Is is it possible to extend org-mode's src blocks with
org-babel-shell-names to use either MSYS2 or MinGW shells (instead of
cmd.exe)?  Unfortunately ob-shell.el doesn't guide me further and I
can't find examples or the respective lisp files on how to define the
execution functions.

GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30,
cairo version 1.15.10) of 2022-01-14

Org mode version 9.4.6 (9.4.6-13-g4be129-elpaplus @
/home/dieter/.emacs.d/elpa/org-plus-contrib-20210920/)

Thanks a lot

   Dieter
-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany




Re: Shell SRC blocks under Windows

2022-02-04 Thread Michael Powe



On 2/4/2022 15:15, H. Dieter Wilhelm wrote:

Hello

I installed the software distribution MSYS2 https://www.msys2.org/.  And
I'd like to call its various shells in org src blocks.  First I tried to
set explicit-shell-file-name but then my LaTeX exports don't work any
longer.

Is is it possible to extend org-mode's src blocks with
org-babel-shell-names to use either MSYS2 or MinGW shells (instead of
cmd.exe)?  Unfortunately ob-shell.el doesn't guide me further and I
can't find examples or the respective lisp files on how to define the
execution functions.

GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30,
cairo version 1.15.10) of 2022-01-14

Org mode version 9.4.6 (9.4.6-13-g4be129-elpaplus @
/home/dieter/.emacs.d/elpa/org-plus-contrib-20210920/)


I'm not aware that I did anything special to get these results, except 
add `(shell . t)` to `org-babel-load-languages`. I mean, it is entirely 
possible that I did, in some other context. I think it's just a matter 
of having bash in your path.



#+begin_src sh :results verbatim

  $SHELL --version

#+end_src

#+RESULTS:
: GNU bash, version 5.1.8(1)-release (x86_64-pc-msys)
: Copyright (C) 2020 Free Software Foundation, Inc.
: License GPLv3+: GNU GPL version 3 or later 


:
: This is free software; you are free to change and redistribute it.
: There is NO WARRANTY, to the extent permitted by law.


Thanks.

mp

--
"Do not neglect to do good, and to share what you have." - Hebrews 13:16a
Michael Powe
Naugatuck CT USA
po...@ctpowe.net




A couple of `org-priority' fixes

2022-02-04 Thread Alex Giorev
I found a couple of problems in org-priority, I think these patches fix
them.
- The first patch is truly minor, it just adds a bit to the docstring
- The problem which prompted the second patch arises when all priorities
are lowercase (you can test this by evaluating (setq org-priority-highest
?a org-priority-lowest ?z org-priority-default ?o) and then trying to set
the priority to some lowercase letter)
- The problem solved by the third patch arises when numerical priorities
are used and 32 is given as the argument, 32 being the character code of
the space character, because that character is used to signal property
removal.
From 4f2b192743e4f8056a1e6682dbffa3d236700b46 Mon Sep 17 00:00:00 2001
From: alexgiorev 
Date: Sat, 5 Feb 2022 00:33:54 +0200
Subject: [PATCH 1/3] lisp/org.el: Add `remove' action in org-priority
 docstring

* lisp/org.el (org-priority): Add `remove' action in org-priority docstring

TINYCHANGE
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index ef8d460e1..2543498de 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11346,7 +11346,7 @@ When called interactively with a `\\[universal-argument]' prefix,
 show the priority in the minibuffer instead of changing it.
 
 When called programmatically, ACTION can be `set', `up', `down',
-or a character."
+`remove', or a character."
   (interactive "P")
   (when show
 ;; Deprecation warning inserted for Org 9.2; once enough time has
-- 
2.25.1

From 524ee9c37c99019b6e700c98919ebb1bd8fd57c7 Mon Sep 17 00:00:00 2001
From: alexgiorev 
Date: Sat, 5 Feb 2022 00:43:40 +0200
Subject: [PATCH 2/3] lisp/org.el: Remove (upcase new) in `org-priority'

* lisp/org.el (org-priority): After the new priority is computed,
when checking if it is within the bounds defined by
`org-priority-highest' and `org-priority-lowest', the priority is
upcased, but this leads to an error when all priorities are lowercase
letters.

TINYCHANGE
---
 lisp/org.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 2543498de..757c306bc 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11391,7 +11391,7 @@ When called programmatically, ACTION can be `set', `up', `down',
 		 (= (upcase org-priority-lowest) org-priority-lowest))
 	(setq new (upcase new)))
 	  (cond ((equal new ?\s) (setq remove t))
-		((or (< (upcase new) org-priority-highest) (> (upcase new) org-priority-lowest))
+		((or (< new org-priority-highest) (> new org-priority-lowest))
 		 (user-error
 		  (if nump
 		  "Priority must be between `%s' and `%s'"
@@ -11418,8 +11418,8 @@ When called programmatically, ACTION can be `set', `up', `down',
 			org-priority-default
 			  (1+ org-priority-default))
 	 (t (user-error "Invalid action")))
-	(when (or (< (upcase new) org-priority-highest)
-		  (> (upcase new) org-priority-lowest))
+	(when (or (< new org-priority-highest)
+		  (> new org-priority-lowest))
 	  (if (and (memq action '(up down))
 		   (not have) (not (eq last-command this-command)))
 	  ;; `new' is from default priority
-- 
2.25.1

From 5aea96e258b694d25aa9ebc0012f499d09b415b6 Mon Sep 17 00:00:00 2001
From: alexgiorev 
Date: Sat, 5 Feb 2022 00:50:26 +0200
Subject: [PATCH 3/3] lisp/org.el: Fix priority 32 removing the cookie in
 org-priority

* lisp/org.el (org-priority): When numerical priorities are used, and
the caller supplies 32 as the new priority value, the priority cookie
is removed because this is the code point of the space character. This
patch fixes this so that supplying 32 will change the priority to 32.

TINYCHANGE
---
 lisp/org.el | 20 +++-
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 757c306bc..3ffddff94 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11382,21 +11382,23 @@ When called programmatically, ACTION can be `set', `up', `down',
(read-string msg)
  (message msg)
  (char-to-string (read-char-exclusive)
-   (if (equal s " ") ?\s (string-to-number s)))
+   (if (equal s " ")
+   (progn (setq remove t) ?\s)
+ (string-to-number s)))
 	   (progn (message "Priority %c-%c, SPC to remove: "
 			   org-priority-highest org-priority-lowest)
 		  (save-match-data
-			(setq new (read-char-exclusive)))
+			(setq new (read-char-exclusive)
+  remove (= new ?\s)))
 	  (when (and (= (upcase org-priority-highest) org-priority-highest)
 		 (= (upcase org-priority-lowest) org-priority-lowest))
 	(setq new (upcase new)))
-	  (cond ((equal new ?\s) (setq remove t))
-		((or (< new org-priority-highest) (> new org-priority-lowest))
-		 (user-error
-		  (if nump
-		  "Priority must be between `%s' and `%s'"
-		"Priority must be between `%c' and `%c'")
-		  org-priority-highest org-priority-

[BUG] org-bibtex-yank does not recognise bibtex entry [9.6 (9.6-??-e7ea951 ]

2022-02-04 Thread Günter Lichtenberg
Hi there

In short:
Expected: Bibtex text is yanked as an orgmode entry
Actually Happening: Error thrown, nothing yanked

I do not seem to be able to yank bibtex entries anymore. Trying
`org-bibtex-yank'

on randomly picked bibtex text

┌
│ @article{huang2008ghg,
│   title={GHG emissions, GDP growth and the Kyoto Protocol: A revisit of 
Environmental Kuznets Curve hypothesis},
│   author={Huang, Wei Ming and Lee, Grace WM and Wu, Chih Cheng},
│   journal={Energy Policy},
│   volume={36},
│   number={1},
│   pages={239--247},
│   year={2008},
│   publisher={Elsevier}
│ }
└

org-bibtex alwaya throws /Yanked text does not appear to be a bibtex entry/

Tested from doom-emacs sandbox with vanilla emacs, no doom config or
private config loaded. Other bibtex entries also do not work, although they 
pass the check of `bibtex-validate'.

Emacs  : GNU Emacs 27.2 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.20, 
cairo version 1.16.0)
Package: Org mode version 9.6 (9.6-??-e7ea951)
–
m...@guenterlichtenberg.de





–
Günter Lichtenberg
m...@guenterlichtenberg.de


Re: Experience report on org 9.6-dev perf improvement for tangling noweb-ref heavy files

2022-02-04 Thread Ihor Radchenko
pareto optimal  writes:

> Hi! I reported an issue with org-babel-tangle performance issues with lots of 
> noweb references here:
>
> https://lists.gnu.org/archive/html/emacs-orgmode/2022-01/msg00484.html
>
> Using 2b49d6fd9c04020a8132bfcfffa449e3e05b47e1 on my personal (but not yet 
> public) config that demonstrated that issue I see a great improvement!
>
> It has 124 source blocks, 70 of which are noweb-ref, and I believe some of 
> those noweb-refs also refer to eachother if that matters for performance 
> considerations.
>
> org 9.5.2:   1.28, 1.33, 1.32
> org 9.6-dev:   0.46, 0.44, 0.43
>
> Nearly 3x or 200% faster!

Would you mind sharing the profiler report for org 9.6-dev with your
config? I am trying to gather more information on the remaining
bottlenecks.

Best,
Ihor