[no subject]

2023-02-17 Thread Pedro Andres Aranda Gutierrez
I was playing with your file and changed the last block:

#+begin_src emacs-lisp :var alist=animal_list()
(mapcar #'(lambda (x) (message "mapcar %s" x)) alist)
#+end_src

#+RESULTS:
| mapcar 10 | mapcar 34 | mapcar 103 | mapcar 97 | mapcar 122 | mapcar 101
| mapcar 108 | mapcar 108 | mapcar 101 | mapcar 34 | mapcar 10 | mapcar 10
| mapcar 34 | mapcar 103 | mapcar 105 | mapcar 114 | mapcar 97 | mapcar 102
| mapcar 102 | mapcar 101 | mapcar 34 | mapcar 10 | mapcar 10 | mapcar 34 |
mapcar 108 | mapcar 105 | mapcar 111 | mapcar 110 | mapcar 34 | mapcar 10 |
mapcar 10 | mapcar 34 | mapcar 116 | mapcar 105 | mapcar 103 | mapcar 101 |
mapcar 114 | mapcar 34 | mapcar 10 |

Aparently, you animal_alist is a string and when you pass it to (mapcar)
you get the characters

Hope it helps, /PA
-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet


Bug: code block not evaluated during export when placed in SETUPFILE [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Bruno BEAUFILS
In the org manual the following lines can be read about #+SETUPFILE:
(emphaze is mine):

» Org also parses and loads the document during normal exporting process.
» Org parses the contents of this document **as if it was included** in the
» buffer.  It can be **another Org file**.

However, when I consider the two following files, code block in
setup.org is not evaluated at all when exporting, whereas when
#+SETUPFILE: is replaced by #+INCLUDE: it is.

--- main.org  --
#+setupfile: setup.org

Something


--- setup.org  -
#+begin_src emacs-lisp :exports results :result silent
(message "DEBUG")
#+end_src



Emacs  : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, 
cairo version 1.16.0)
 of 2021-03-28, modified by Debian
Package: Org mode version 9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)

-- 
Bruno BEAUFILS
Trésorier de la Societé Informatique de France


signature.asc
Description: PGP signature


Org-mode meta results

2023-02-17 Thread Galaxy Being
I can't get this to play the meta game in an org-mode buffer

#+begin_src emacs-lisp
(defun print-elements-of-list (list)
  "Print each element of LIST on a line of its own."
  (while list
(print (car list))
(setq list (cdr list
#+end_src

#+RESULTS:
: print-elements-of-list

#+begin_src emacs-lisp
(setq animals '("gazelle" "giraffe" "lion" "tiger"))
#+end_src

#+RESULTS:
| gazelle | giraffe | lion | tiger |

#+begin_src emacs-lisp :results verbatim
animals
#+end_src

#+RESULTS:
: ("gazelle" "giraffe" "lion" "tiger")

#+name: animal_list
#+begin_src emacs-lisp :results output list
(print-elements-of-list animals)
#+end_src

#+RESULTS: animal_list
: - "gazelle"
: - "giraffe"
: - "lion"
: - "tiger"

#+begin_src emacs-lisp :var alist=animal_list() :results list
alist
#+end_src

#+RESULTS:
: - "gazelle"
: - "giraffe"
: - "lion"
: - "tiger"

#+begin_src emacs-lisp :var alist=animal_list()
(mapcar (lambda (x) (concat x "foo")) alist)
#+end_src

I'm getting an error from evaluating the last block:

Wrong type argument: sequencep, 10.

I'm fairly sure that alist by this point is not actually an elisp list. But
what does animal_list() contain then? It's the output of my
print-elements-of-list function. Is there a way to "look under the hood" at
what a named block animal_list() contains?

-- 
⨽
Lawrence Bottorff
Grand Marais, MN, USA
borg...@gmail.com


Re: Strange behaviour: Repeating tasks jumping in time

2023-02-17 Thread TRS-80
Alexei Gilev  writes:

> For repeating tasks, every once in a while I miss them.
> Then I check them in my org file plus I visit git-status to find they have
> been shifted. Sometimes even years (usually months).
>
> I haven't been able to track the source of this behaviour.

Can you reproduce this without your config file (i.e., by doing `emacs
-Q`)?

Because, indeed, that sounds really strange.

-- 
Cheers,
TRS-80




Re: Template for ob- packages?

2023-02-17 Thread Leo Butler
On Thu, Feb 16 2023, Matt  wrote:

>   On Thu, 16 Feb 2023 16:10:51 -0500  Galaxy Being  wrote --- 
>  > Is there a generic starter template for writing an ob-
> package, some sort of example code?
>
> Yes: 
> https://git.sr.ht/~bzg/worg/tree/master/item/org-contrib/babel/ob-template.el
>
> When I started learned Babel, I took notes with the hope of expanding
> it into a Worg article. Here are the notes:
> https://excalamus.com/2021-11-03-org_babel.html
>
> If you're interested in fleshing out the notes into proper
> documentation, I'd be happy to help.

Matt, thanks for sharing those notes. I would suggest that they be added
to worg in their current state.

Leo

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Bruno BEAUFILS
On Fri, Feb 17, 2023 at 01:30:37PM +, Ihor Radchenko wrote:
> Even if we used exit code, what would it achieve?

Knowing if the compilation went well (0 as exit status) or not
(anything different than 0).

> You can do it in batch as well. See `org-sbe'.

I did not know this macro. Thank's to pointing me to it.

-- 
Bruno BEAUFILS


signature.asc
Description: PGP signature


Re: [BUG] [9.6 (9.6-??-971eb6885 @ /home/abucz/.emacs.d/.local/straight/build-28.2/org/)]

2023-02-17 Thread Ihor Radchenko
[ Adding Org mailing list back to CC to let other users see the
  discussion. Please, use reply all when replying to emails on mailing
  list, unless you really want to reply privately. ]

Matthew Czuba  writes:

> How can I provide you with the answer that you’re looking for? If you’ll 
> direct me, I’ll give you all of the info that you need. I am competent in my 
> workflow but am not yet an elite emacs / org-mode user. Thanks.

 f +org-display-link-in-eldoc-a 

and share the contents of *Help* buffer displayed.

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



Re: New Org (from main) and slow clocking

2023-02-17 Thread Marcin Borkowski


On 2023-02-17, at 19:14, Ihor Radchenko  wrote:

> Marcin Borkowski  writes:
>
>>> Another thing you can try is setting org-element--cache-self-verify to
>>> nil.
>>
>> That did help indeed.  Should I make it nil in my init.el?
>
> You can, as long as you do not see warnings from Org about
> org-element-cache. This variable is enabling extra consistency checks in
> org-element-cache.
>
> The plan is setting this to nil in one of the next releases.
>
> Alternatively, you can reduce the value of
> org-element--cache-self-verify-frequency. By default, 5% of all the
> cache queries are double-checked, which is expensive in your use case.

Thanks!  I added (setq org-element--cache-self-verify nil) to my
init.el.

-- 
Marcin Borkowski
http://mbork.pl



Re: [PATCH] [FR] Fontifying src-blocks with no language specified

2023-02-17 Thread carsten

Ihor Radchenko skrev den 2023-02-17 13:20:

cars...@kragelund.me writes:

Fontifying src-blocks with a missing language would allow being able 
to
theme src-blocks without having the unthemed text of languages 
fallback

to whatever color the src-blocks are set to.
I envision this could be done with an empty string in
org-src-block-faces.


I do not see much problem adding this.
See the attached patch.


Hey, this patch works great, minor issue, I believe
the line (add-to-list 'org-src-block-faces '(("" highlight))
in ORG-NEWS has an extra opening parenthesis and should
be (add-to-list 'org-src-block-faces '("" highlight))



Re: [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded.

2023-02-17 Thread Ihor Radchenko
Philipp Kiefer  writes:

> Here's what I did:
>
>  1. Downloaded org-cycle.el and org-fold-core.el via the link you sent
>  2. Verified those are the correct files (found the changes in the files
> that were highlighted in green on the git page)
>  3. Copied both files over the ones in my
> c:\Users\PK\Documents\emacs_config\.emacs.d\elpa\org-9.6.1\ folder
>  4. Restarted Emacs
>
> Yet, the issue still occurs in the sample file I sent you.
>
> Did I do something wrong?

You did not recompile Org.

You may try to set load-prefer-newer to t to force Emacs loading file
sources if they are modified after the compiled versions.

Or you may open org-fold-core.el manually and run M-x eval-buffer (just
for testing).

Or you may download Org from git
(https://git.savannah.gnu.org/cgit/emacs/org-mode.git/)

Or you may download Org from ELPA devel (http://elpa.gnu.org/devel/).

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



Re: Unicode problem with export of literal contents

2023-02-17 Thread Ihor Radchenko
Jens Lechtenboerger  writes:

> I was afraid you would say so.  To me, this is a breaking change.

It is not a breaking change. It is Org's change revealing issues with
your files. If you need to edit or act upon that part of the file, you
could see the same problem.

> Also, when I call secure-hash on the literal buffer-string, no
> problem arises.

Org is calling secure-hash on buffer. Calling on buffer-string would
require unnecessary memory allocation to create the string.

> It is not obvious that Org tries to write something here and why
> that fails now

Org is not trying to write something. In you example, Org is just trying
to calculate buffer string hash - nothing wrong on Org side. "Something
wrong with encoding" way my guess. If you think that your case should be
perfectly fine, I recommend asking Emacs devs by filing a bug report to
them.

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



Re: New Org (from main) and slow clocking

2023-02-17 Thread Ihor Radchenko
Marcin Borkowski  writes:

>> Another thing you can try is setting org-element--cache-self-verify to
>> nil.
>
> That did help indeed.  Should I make it nil in my init.el?

You can, as long as you do not see warnings from Org about
org-element-cache. This variable is enabling extra consistency checks in
org-element-cache.

The plan is setting this to nil in one of the next releases.

Alternatively, you can reduce the value of
org-element--cache-self-verify-frequency. By default, 5% of all the
cache queries are double-checked, which is expensive in your use case.

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



Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Ihor Radchenko
Jean Louis  writes:

>> Even if we used exit code, what would it achieve?
>
> - user wants PDF file
>
> - with exit code other but zero there will be no PDF file

How so? Not in general, but only for certain values of
org-latex-pdf-process.

> - display error or move user straight to LaTeX file to try it out
>   manually or find what is wrong.

It is being done.

> - Here below `latex-function' must return zero and `pdf-file' must
>   exist for system to update it's Hyperlink correctly, and to launch
>   Evince PDF viewer.

I guess having a non-zero return code is indeed an indication of
something being wrong even if pdf is produced.

> - But if error status is not zero, I want to find myself in LaTeX file
>   straight, then I can try C-c C-a to understand why it did not work.

Even if status is 0, you may sometimes still want to find why some
things did not work. ox-latex.el covers this by searching for latex
errors in the logs.

> If I would just assume that `latex' command "just worked", that means
> I am blindly continuing with some other functions thereafter, but that
> would mean I am creating some errors.

You don't. ox-latex tells you if command finished with errors or not.

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



Re: [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded.

2023-02-17 Thread Philipp Kiefer

Thanks a lot for looking into that, Ihor.

However, I wasn't able to fix the bug here. Very likely, I did not 
"install" the fix correctly as I'm not sure how to go about it - or else 
it's not a complete fix yet.


Here's what I did:

1. Downloaded org-cycle.el and org-fold-core.el via the link you sent
2. Verified those are the correct files (found the changes in the files
   that were highlighted in green on the git page)
3. Copied both files over the ones in my
   c:\Users\PK\Documents\emacs_config\.emacs.d\elpa\org-9.6.1\ folder
4. Restarted Emacs

Yet, the issue still occurs in the sample file I sent you.

Did I do something wrong?

Many thanks!

On 17.02.2023 13:01, Ihor Radchenko wrote:

Philipp Kiefer  writes:


I can reproduce with this minimal init.el using Emacs GNU Emacs 27.2
(build 1, x86_64-w64-mingw32)
   of 2021-03-26 and Org mode version 9.6.1:

Thanks for the reproducer!
It is rather an edge case.
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=18a146a9d


Re: Unicode problem with export of literal contents

2023-02-17 Thread Bruno Barbier


Jens Lechtenboerger  writes:

> So, maybe my question is: Must text be decoded for Org mode from now on?

Yes. Since forever.  Emacs must know how to read/write from/to files and
what text to display to you. Org is just relying on Emacs for that part.

Bruno




Re: Unicode problem with export of literal contents

2023-02-17 Thread Bruno Barbier
Jens Lechtenboerger  writes:

> On 2023-02-17, Ihor Radchenko wrote:
>
>> Jens Lechtenboerger  writes:
>>
>
>> Not a bug. You need to fix your files with improper encoding.
>
> The file has the proper encoding.  I insert literally on purpose as
> stated above.

IIUC, the file has the proper encoding. But, when loading it with
`insert-file-contents-literally', it doesn't: that's part of the
"literally" feature I guess.

When loading it with `insert-file-contents', it should work (it does in
my case).


Here is a way to reproduce that doesn't use org, in case it might help
to manully fix your encoding issue:

   (with-temp-buffer
  (insert "Lechtenb\303\266rger")
  (let ((buffer-file-name (make-temp-file "mailtest")))
(save-buffer)))

Does it work with your old config (with your old org) ?

What kind of failure do you get elsewhere if you let Emacs use the
correct encoding (i.e. if you use `insert-file-contents') ?



Bruno



Re: Template for ob- packages?

2023-02-17 Thread Galaxy Being
Yes, I'll try to have a look. My Emacs gig so far has been user/power user
and "investigator" of Babel languages. Right now I'm on Prolog. I'll learn
some of ob-prolog's capabilities first.

On Thu, Feb 16, 2023 at 3:16 PM Matt  wrote:

>
>   On Thu, 16 Feb 2023 16:10:51 -0500  Galaxy Being  wrote ---
>  > Is there a generic starter template for writing an ob- package, some
> sort of example code?
>
> Yes:
> https://git.sr.ht/~bzg/worg/tree/master/item/org-contrib/babel/ob-template.el
>
> When I started learned Babel, I took notes with the hope of expanding it
> into a Worg article.  Here are the notes:
> https://excalamus.com/2021-11-03-org_babel.html
>
> If you're interested in fleshing out the notes into proper documentation,
> I'd be happy to help.
>


-- 
⨽
Lawrence Bottorff
Grand Marais, MN, USA
borg...@gmail.com


Re: Unicode problem with export of literal contents

2023-02-17 Thread Jens Lechtenboerger
On 2023-02-17, Ihor Radchenko wrote:

> Jens Lechtenboerger  writes:
>
>> With Org 9.6.1 from Emacs master, I get the following warning, and I
>> am asked to select a coding system:
>>
>>> These default coding systems were tried to encode the following
>>> problematic characters in the buffer ‘ *temp*’:
>>> ...
>>
>> With previous Org versions, this did not happen, export would just
>> work.  Note that I insert contents literally because I do not want
>> ‘find-file-hook’, automatic uncompression, etc. (which are avoided
>> according to the doc string of insert-file-contents-literally).
>
> This warning appears upon Org calling `secure-hash'.
> Org is doing nothing wrong here - your file does not have proper encoding.
> You did not see this error in the past by chance.

I was afraid you would say so.  To me, this is a breaking change.

Also, when I call secure-hash on the literal buffer-string, no
problem arises.

> Not a bug. You need to fix your files with improper encoding.

The file has the proper encoding.  I insert literally on purpose as
stated above.

It is not obvious that Org tries to write something here and why
that fails now (I could use the results in exporters writing to
files just fine previously).

Best wishes
Jens


smime.p7s
Description: S/MIME cryptographic signature


Re: New Org (from main) and slow clocking

2023-02-17 Thread Marcin Borkowski


On 2023-02-17, at 14:32, Ihor Radchenko  wrote:

> Marcin Borkowski  writes:
>
>>> Do you have org-element-use-cache set to nil?
>>
>> No, should I?
>
> You should not. But, when it is nil (not default), things will be slow
> in your scenario.
>
> Another thing you can try is setting org-element--cache-self-verify to
> nil.

That did help indeed.  Should I make it nil in my init.el?

Thanks,

-- 
Marcin Borkowski
http://mbork.pl



Re: Not all reftex commands within latex block generate appropriate message

2023-02-17 Thread Alain . Cochard
alain.coch...@unistra.fr writes on Fri 17 Feb 2023 07:49:

 > I have sent a message to bug-auc...@gnu.org.

I got answers.  See this thread:
https://lists.gnu.org/archive/html/bug-auctex/2023-02/threads.html#00035


-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France | [ slot available for rent ]




Re: [BUG] org-indent and display text property not preserving column when moving

2023-02-17 Thread Darius Foo
Ihor Radchenko  wrote:
> Thanks for reporting!
> It is unlikely an Org bug. Rather Emacs bug.
> May you report it to Emacs devs via M-x report-emacs-bug?

Thanks! I narrowed it down further to just calls to add-text-properties.
Will do that.


Re: [PATCH] Fix some emacs-30 byte-compile warnings

2023-02-17 Thread Robert Pluim
> On Fri, 17 Feb 2023 14:08:04 +, Ihor Radchenko  
> said:

Ihor> Robert Pluim  writes:
Ihor> 3 unexpected results:
Ihor> FAILED  test-org-table/copy-field
Ihor> FAILED  test-org-table/references/mode-string-N
Ihor> FAILED  test-org-table/references/mode-string-none
>> 
>> Hmm, at least the first one is because the code in the 't' branch of
>> (if (and (eq elements "") (not keep-empty))
>> 
>> in org-table-make-reference now runs, and it results in
>> 
>> (eval '(identity))'
>> 
>> Of course fixing that causes other problems 

Ihor> Meanwhile, I fixed all the other warnings.
Ihor> 
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=eea8da0315b4d9c43272f4ee87d752e651f1a0c0
Ihor> Now, only this org-table problem remains.

Ihor> It is clearly a bug of some kind - the code is not doing what it
Ihor> intended originally. But we need to understand org-table.el better to
Ihor> fix this...

Iʼve not had time to look at it further (probably my subconscious not
wanting to deal with org-table.el :-))

Robert
-- 



Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Jean Louis
* Ihor Radchenko  [2023-02-17 16:32]:
> Bruno BEAUFILS  writes:
> 
> > On Fri, Feb 17, 2023 at 10:55:34AM +, Ihor Radchenko wrote:
> >> > How so?
> >> 
> >> latexmk -interaction=nonstopmode
> >
> > Still do not get the problem. I though that the exit code of the
> > underlying process was used but after having try to understand some of
> > the ox-latel.el I discover that it seems to be done another way
> > (analysing the output if I am right).
> 
> Even if we used exit code, what would it achieve?

- user wants PDF file

- with exit code other but zero there will be no PDF file

- display error or move user straight to LaTeX file to try it out
  manually or find what is wrong.

Personally I use exit code from LaTeX processing.

- I like to be careful with existing PDF files, as sometimes PDF file
  is exported in different way, and maybe I am making mistake. So I
  like to be cautious about it.

- Here below `latex-function' must return zero and `pdf-file' must
  exist for system to update it's Hyperlink correctly, and to launch
  Evince PDF viewer.

- But if error status is not zero, I want to find myself in LaTeX file
  straight, then I can try C-c C-a to understand why it did not work.

(defun hyperscope-latex-to-pdf (id)
  (let* ((default-directory (hyperscope-expand-directory-for-id id))
 (latex-file (hyperscope-hyperdocument-file-name-full id "tex"))
 (text (hyperscope-text id))
 (pdf-file (hyperscope-hyperdocument-file-name-full id "pdf"))
 (latex-function (lambda () (call-process "pdflatex" nil "*pdflatex*" 
nil latex-file
(string-to-file-force text latex-file)
(when (and (file-exists-p pdf-file)
   (y-or-n-p "Delete existing PDF? "))
  (delete-file pdf-file))
(cond ((and (zerop (funcall latex-function))
(file-exists-p pdf-file))
   (rcd-db-update-entry "hyobjects" "hyobjects_link" id pdf-file hs-db)
   (hyperscope-evince pdf-file))
  (t (rcd-warning-message "Could not create PDF")
 (find-file latex-file)

If I would just assume that `latex' command "just worked", that means
I am blindly continuing with some other functions thereafter, but that
would mean I am creating some errors.

--
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



Re: [PATCH] Provide a uniform way to inform users about missing third-party packages

2023-02-17 Thread Ihor Radchenko
Ihor Radchenko  writes:

> Subject: [PATCH] Provide a uniform way to inform users about missing
>  third-party packages

Applied, onto main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fe92a3ced

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



Re: [PATCH] Fix some emacs-30 byte-compile warnings

2023-02-17 Thread Ihor Radchenko
Robert Pluim  writes:

> Ihor> 3 unexpected results:
> Ihor>FAILED  test-org-table/copy-field
> Ihor>FAILED  test-org-table/references/mode-string-N
> Ihor>FAILED  test-org-table/references/mode-string-none
>
> Hmm, at least the first one is because the code in the 't' branch of
>   (if (and (eq elements "") (not keep-empty))
>
> in org-table-make-reference now runs, and it results in
>
> (eval '(identity))'
>
> Of course fixing that causes other problems 

Meanwhile, I fixed all the other warnings.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=eea8da0315b4d9c43272f4ee87d752e651f1a0c0
Now, only this org-table problem remains.

It is clearly a bug of some kind - the code is not doing what it
intended originally. But we need to understand org-table.el better to
fix this...

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



Re: New Org (from main) and slow clocking

2023-02-17 Thread Ihor Radchenko
Marcin Borkowski  writes:

>> Do you have org-element-use-cache set to nil?
>
> No, should I?

You should not. But, when it is nil (not default), things will be slow
in your scenario.

Another thing you can try is setting org-element--cache-self-verify to
nil.

If it does not help either, please do M-x profiler-start  cpu 
[clock in] M-x profiler-report  M-x profiler-report-write-profile
 cpu-profile.el 
and then share the resulting profile data.

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



Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Ihor Radchenko
Bruno BEAUFILS  writes:

> On Fri, Feb 17, 2023 at 10:55:34AM +, Ihor Radchenko wrote:
>> > How so?
>> 
>> latexmk -interaction=nonstopmode
>
> Still do not get the problem. I though that the exit code of the
> underlying process was used but after having try to understand some of
> the ox-latel.el I discover that it seems to be done another way
> (analysing the output if I am right).

Even if we used exit code, what would it achieve?

>> variable, or, like John Kitchin often does, put the following src block
>> on the top of your file and use it for exporting:
>> 
>> #+begin_src emacs-lisp :exports none
>> (let () (org-latex-export-to-pdf))
>> #+end_src
>
> I want to be able to use my file interactively as well as in batch
> mode, I thus think that this proposition is not really a good solution
> even if I find it elegant.

You can do it in batch as well. See `org-sbe'.

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



Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Ihor Radchenko
reza  writes:

>> Two possibilities:
>> 
>> 1. Put file-local variable
>> 2. Create an "Empty" class with empty documentclass statement
>> and then #+LATEX_CLASS: Empty #+LATEX_HEADER: \input{...}
>> 
>
> Sorry for my noobish questions:
>
> 1. How do I put file-local variables in my org file?

M-x add-file-local-variable
or
M-x add-file-local-varable-prop-line

The latter will put things at the bottom. The format - at the top of the
file.

You can also use #+BIND: keyword if you have
`org-export-allow-bind-keywords' set to t.

> 2. Is it possible to do this inside my org file?

For self-contained file, you must set file-local variable anyway.

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



Re: New Org (from main) and slow clocking

2023-02-17 Thread Marcin Borkowski


On 2023-02-17, at 13:02, Ihor Radchenko  wrote:

> Marcin Borkowski  writes:
>
>> I have just updated my Org (from the main branch, Org mode version
>> 9.6.1, release_9.6.1-253-g74eb0f), and I noticed an issue with clocking.
>> I have an "ongoing" task which already accumulated 7000+ clock entries,
>> and clocking in takes close to 90 seconds.  It was instantaneous before
>> (version 9.6-pre, release_9.5.5-853-g7b9d8e).  What can I do now?
>
> Do you have org-element-use-cache set to nil?

No, should I?

-- 
Marcin Borkowski
http://mbork.pl



Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Bruno BEAUFILS
On Fri, Feb 17, 2023 at 10:55:34AM +, Ihor Radchenko wrote:
> > How so?
> 
> latexmk -interaction=nonstopmode

Still do not get the problem. I though that the exit code of the
underlying process was used but after having try to understand some of
the ox-latel.el I discover that it seems to be done another way
(analysing the output if I am right).

> You can either set a file-local variable, set a directory-local

I did not have the idea of directory-local, thank's for it.

> variable, or, like John Kitchin often does, put the following src block
> on the top of your file and use it for exporting:
> 
> #+begin_src emacs-lisp :exports none
> (let () (org-latex-export-to-pdf))
> #+end_src

I want to be able to use my file interactively as well as in batch
mode, I thus think that this proposition is not really a good solution
even if I find it elegant.

Thank's again for your nice help.

-- 
Bruno BEAUFILS


signature.asc
Description: PGP signature


Re: Use custom preamble from tex file for latex export

2023-02-17 Thread reza
> Two possibilities:
> 
> 1. Put file-local variable
> 2. Create an "Empty" class with empty documentclass statement
> and then #+LATEX_CLASS: Empty #+LATEX_HEADER: \input{...}
> 

Sorry for my noobish questions:

1. How do I put file-local variables in my org file?
2. Is it possible to do this inside my org file?

Thanks and cheers!



OpenPGP_0xC375C6AF05125C52.asc
Description: application/pgp-keys


OpenPGP_signature
Description: PGP signature


Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Fraga, Eric
On Friday, 17 Feb 2023 at 13:08, reza wrote:
> Is there a way to extend org-latex-classes inside my org file, so I can
> keep using C-c C-e l l (export to latex)?

Yes, should be possible.  Check out info manual: (emacs) File Variables

-- 
: Eric S Fraga, with org release_9.6.1-250-ge6353d in Emacs 30.0.50


Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Ihor Radchenko
reza  writes:

>> The full org alternative is to customise org-latex-classes with all the
>> LaTeX preamble you want or need.  This is what I do.
>
> Is there a way to extend org-latex-classes inside my org file, so I can 
> keep using C-c C-e l l (export to latex)?

Two possibilities:

1. Put file-local variable
2. Create an "Empty" class with empty documentclass statement
   and then #+LATEX_CLASS: Empty #+LATEX_HEADER: \input{...}


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



Re: Use custom preamble from tex file for latex export

2023-02-17 Thread reza
> The full org alternative is to customise org-latex-classes with all the
> LaTeX preamble you want or need.  This is what I do.

Is there a way to extend org-latex-classes inside my org file, so I can 
keep using C-c C-e l l (export to latex)?



OpenPGP_0xC375C6AF05125C52.asc
Description: application/pgp-keys


OpenPGP_signature
Description: PGP signature


Re: Cannot expand macros through included org file

2023-02-17 Thread reza
> report_2019.org:
> 
> #+TITLE: Report 2019
> #+property: header-args :var year=2019
> 
> #+INCLUDE: "template.org" :lines "2-"
> 
> template.org:
> 
> #+TITLE: Report
> 
> * My headline
> 
> #+begin_src emacs-lisp :exports both :results value :eval yes
> year
> #+end_src
> 
> #+BEGIN_SRC bash
> ./get_log_file --start=$year-01-01 --end=$year-12-31
> #+END_SRC
> 
> #+BEGIN_SRC python
> log = pd.read_csv(f"log_{year}.csv")
> #+END_SRC

Thank you, I got it to work by only using

report_2019.org:

#+TITLE: Report 2019
#+property: header-args :var year=2019

#+INCLUDE: "template.org" :lines "2-"

template.org:

#+TITLE: Report

* My headline

#+BEGIN_SRC bash
./get_log_file --start=$year-01-01 --end=$year-12-31
#+END_SRC

#+BEGIN_SRC python
log = pd.read_csv(f"log_{year}.csv")
#+END_SRC


OpenPGP_0xC375C6AF05125C52.asc
Description: application/pgp-keys


OpenPGP_signature
Description: PGP signature


Re: Cannot expand macros through included org file

2023-02-17 Thread Ihor Radchenko
reza  writes:

>> It works, but Org does not include variable assignments to exported code
>> by default. See org-babel-exp-code-template. The assignment would be
>> done if you execute the blocks though.
>
> So I have to set this variable to true?

Check out the docstring.
 v org-babel-exp-code-template 

>> Yet another approach is including common :var year=2009 header arg.
>
> what do you mean by common? I want to have a report for the years 
> 2019-2022 for example.

report_2019.org:

#+TITLE: Report 2019
#+property: header-args :var year=2019

#+INCLUDE: "template.org" :lines "2-"

template.org:

#+TITLE: Report

* My headline

#+begin_src emacs-lisp :exports both :results value :eval yes
year
#+end_src

#+BEGIN_SRC bash
./get_log_file --start=$year-01-01 --end=$year-12-31
#+END_SRC

#+BEGIN_SRC python
log = pd.read_csv(f"log_{year}.csv")
#+END_SRC


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



Re: [PATCH] ox-texinfo: Fix invalid syntax in Texinfo version detection code

2023-02-17 Thread Ihor Radchenko
Ihor Radchenko  writes:

>> All right, I added the 'require' to both files.  Better?
>
> Thanks!
> Applied, onto bugfix.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=99c8ed09f

The tests are failing on older Emacs.
https://builds.sr.ht/~bzg/job/942040
https://builds.sr.ht/~bzg/job/942041

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



Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Fraga, Eric
On Friday, 17 Feb 2023 at 12:38, reza wrote:
> Thanks for the idea, will test this, but I fear this will collide with
> the latex class provided by org?

Well, you could have just the documentclass line removed from the
preamble and define an org latex class appropriately.  There's always
going to be some need to have part of the configuration within the org
file itself but it could be minimised.

The full org alternative is to customise org-latex-classes with all the
LaTeX preamble you want or need.  This is what I do.

-- 
: Eric S Fraga, with org release_9.6.1-250-ge6353d in Emacs 30.0.50


Re: Use custom preamble from tex file for latex export

2023-02-17 Thread reza
> #+latex_header: \input{preamble}

Thanks for the idea, will test this, but I fear this will collide with 
the latex class provided by org?


OpenPGP_0xC375C6AF05125C52.asc
Description: application/pgp-keys


OpenPGP_signature
Description: PGP signature


[PATCH] [FR] Fontifying src-blocks with no language specified

2023-02-17 Thread Ihor Radchenko
cars...@kragelund.me writes:

> Fontifying src-blocks with a missing language would allow being able to 
> theme src-blocks without having the unthemed text of languages fallback 
> to whatever color the src-blocks are set to.
> I envision this could be done with an empty string in 
> org-src-block-faces.

I do not see much problem adding this.
See the attached patch.

>From 9c9fa52b934390b9b07648fdf3a31c4baebac551 Mon Sep 17 00:00:00 2001
Message-Id: <9c9fa52b934390b9b07648fdf3a31c4baebac551.1676636352.git.yanta...@posteo.net>
From: Ihor Radchenko 
Date: Fri, 17 Feb 2023 15:17:04 +0300
Subject: [PATCH] org-fontify-meta-lines-and-blocks-1: Fontify src blocks
 without lang

* lisp/org.el (org-fontify-meta-lines-and-blocks-1): Allow fontifying
src blocks with language specification missing.
* lisp/org-src.el (org-src-block-faces): Clarify in the docstring that
"" language name referes to src blocks with no language.  Remove
redundant :version tag.
* etc/ORG-NEWS (~org-src-block-faces~ now accepts empty string ~""~ as
language name): Announce the change.

Link: https://orgmode.org/list/99388ff3711696091f0312a5c3f0b...@kragelund.me
---
 etc/ORG-NEWS| 15 +++
 lisp/org-src.el |  4 ++--
 lisp/org.el |  2 +-
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 87ecd77cd..5ab8d62c7 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -24,6 +24,21 @@ consider [[https://gitlab.com/jackkamm/ob-python-mode-mode][ob-python-mode-mode]
 has been ported to.
 
 ** New and changed options
+*** ~org-src-block-faces~ now accepts empty string ~""~ as language name
+
+It is now possible to customize face of source blocks without language specifier.
+
+: #+begin_src
+: Source block with no language
+: #+end_src
+
+For example, to set ~highlight~ face, use
+
+#+begin_src emacs-lisp
+(setq org-src-fontify-natively t)
+(add-to-list 'org-src-block-faces '(("" highlight))
+#+end_src
+
 *** New escape in ~org-beamer-environments-extra~ for labels in Beamer export
 The escape =%l= in ~org-beamer-environments-extra~ inserts the label
 obtained from ~org-beamer--get-label~.  This is added to the default
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 9e4392811..2fab4020d 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -233,7 +233,8 @@ (defcustom org-src-block-faces nil
 
  (\"language\" FACE)
 
-Where FACE is either a defined face or an anonymous face.
+Where FACE is either a defined face or an anonymous face.  Empty
+language string refers to source blocks without specified language.
 
 For instance, the following would color the background of
 emacs-lisp source blocks and python source blocks in purple and
@@ -247,7 +248,6 @@ (defcustom org-src-block-faces nil
(choice
 (face :tag "Face")
 (sexp :tag "Anonymous face"
-  :version "26.1"
   :package-version '(Org . "9.0"))
 
 (defcustom org-src-tab-acts-natively t
diff --git a/lisp/org.el b/lisp/org.el
index 4d12084d9..777626dce 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5409,7 +5409,7 @@ (defun org-fontify-meta-lines-and-blocks-1 (limit)
 	(org-remove-flyspell-overlays-in beg bol-after-beginline)
 	(org-remove-flyspell-overlays-in nl-before-endline end-of-endline)
 	(cond
-	 ((and lang (not (string= lang "")) org-src-fontify-natively)
+	 (org-src-fontify-natively
 	  (save-match-data
 (org-src-font-lock-fontify-block lang block-start block-end))
 	  (add-text-properties bol-after-beginline block-end '(src-block t)))
-- 
2.39.1



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


Re: New Org (from main) and slow clocking

2023-02-17 Thread Ihor Radchenko
Marcin Borkowski  writes:

> I have just updated my Org (from the main branch, Org mode version
> 9.6.1, release_9.6.1-253-g74eb0f), and I noticed an issue with clocking.
> I have an "ongoing" task which already accumulated 7000+ clock entries,
> and clocking in takes close to 90 seconds.  It was instantaneous before
> (version 9.6-pre, release_9.5.5-853-g7b9d8e).  What can I do now?

Do you have org-element-use-cache set to nil?

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



Re: [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded.

2023-02-17 Thread Ihor Radchenko
Philipp Kiefer  writes:

> I can reproduce with this minimal init.el using Emacs GNU Emacs 27.2 
> (build 1, x86_64-w64-mingw32)
>   of 2021-03-26 and Org mode version 9.6.1:

Thanks for the reproducer!
It is rather an edge case.
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=18a146a9d

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



Re: [BUG] Recurrent error about timer running Pomodoro extension. [9.6 (9.6-??-bed47b4 @ /home/bill/.emacs.d/.local/straight/build-28.1/org/)]

2023-02-17 Thread Ihor Radchenko
Bill McKelvie  writes:

> I was running a Pomodoro timer from my professional development log and 
> kept getting an error. Emacs would slow down so that there would be a 
> delay between pressing a key and the character appearing on screen. 
> Shutting down and restarting helps for a while but the error then 
> recurs. The error message suggested submitting a bug report if it 
> recurred. Hence this post. I run emacs 28.1 with Doom on MXLinux 21.3, 
> KDE edition.

Thanks for reporting!
May you please also share the error message text?

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



Re: [BUG] org-indent and display text property not preserving column when moving

2023-02-17 Thread Ihor Radchenko
Darius Foo  writes:

> Here is an org file to try it on. With the cursor on x, pressing up moves
> it to y instead of a, and pressing down moves it back to x. It seems like
> the amount moved depends on the indentation added by org-indent: with point
> on z, pressing up moves it to w.
>
> * h1
> ** h2
> - a...y...
> - x...
> *** h3
>  h4
> - w...
> - z...

Thanks for reporting!
It is unlikely an Org bug. Rather Emacs bug.
May you report it to Emacs devs via M-x report-emacs-bug?

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



Re: [BUG] [9.6 (9.6-??-971eb6885 @ /home/abucz/.emacs.d/.local/straight/build-28.2/org/)]

2023-02-17 Thread Ihor Radchenko
Matthew Czuba  writes:

> I attempted a find and replace on the latest doom emacs (highlighted a
> large block of text, then SPC: replace-string, then entered the string
> ’s as input for replacement and single apostrophe ' as the
> desired output). The following error was thrown:

Thanks for reporting!

>   apply(+org-display-link-in-eldoc-a #f(compiled-function (string
>  plist) #))
>   org-eldoc-documentation-function(#f(compiled-function (string 

May I know what is `+org-display-link-in-eldoc-a'? It is not a built-in
function in Org.

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



Re: Timestamp and timestamp range definitions

2023-02-17 Thread Ihor Radchenko
Ilya Chernyshov  writes:

> Subject: [PATCH] org-manual.org: Update timestamp and timerange definitions
>

Thanks!
Applied, onto main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=715f74db3

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



Re: (org-icalendar-combine-agenda-files t) prints byte code

2023-02-17 Thread Ihor Radchenko
Robert Jäschke  writes:

> (Likely since) After upgrading emacs from 27.1 to 28.2 and org mode from 
> 9.4.0 to 9.5.2 (i.e., from Debian stable to testing), 
> org-icalendar-combine-agenda-files prints strange output when called 
> (via cron) as follows:
> emacsclient --eval "(org-icalendar-combine-agenda-files t)"
>
> When I run this on the command line it prints (if I understand it 
> correctly) Emacs byte code: #[514 "\302!\303!\304=\205B.
> Running it non-asynchronously just prints nil.

Just add an extra --eval "t" or something along that lines.

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



Re: Unicode problem with export of literal contents

2023-02-17 Thread Ihor Radchenko
Jens Lechtenboerger  writes:

> With Org 9.6.1 from Emacs master, I get the following warning, and I
> am asked to select a coding system:
>
>> These default coding systems were tried to encode the following
>> problematic characters in the buffer ‘ *temp*’:
>> ...
>
> With previous Org versions, this did not happen, export would just
> work.  Note that I insert contents literally because I do not want
> ‘find-file-hook’, automatic uncompression, etc. (which are avoided
> according to the doc string of insert-file-contents-literally).

This warning appears upon Org calling `secure-hash'.
Org is doing nothing wrong here - your file does not have proper encoding.
You did not see this error in the past by chance.

Not a bug. You need to fix your files with improper encoding.

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



(org-icalendar-combine-agenda-files t) prints byte code

2023-02-17 Thread Robert Jäschke

Hi all,

(Likely since) After upgrading emacs from 27.1 to 28.2 and org mode from 
9.4.0 to 9.5.2 (i.e., from Debian stable to testing), 
org-icalendar-combine-agenda-files prints strange output when called 
(via cron) as follows:

emacsclient --eval "(org-icalendar-combine-agenda-files t)"

When I run this on the command line it prints (if I understand it 
correctly) Emacs byte code: #[514 "\302!\303!\304=\205B.

Running it non-asynchronously just prints nil.

Otherwise everything works but I would like to get rid of that output. 
Where/how could I start debugging this problem?


Best regards,
Robert






OpenPGP_signature
Description: OpenPGP digital signature


Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Ihor Radchenko
Bruno BEAUFILS  writes:

> On Wed, Feb 15, 2023 at 08:37:51PM +, Ihor Radchenko wrote:
>> The problem with LaTeX export is that it is not always possible to know
>> if the process truly finished without errors or not.
>
> How so?

latexmk -interaction=nonstopmode

>> Meanwhile, you can tweak org-latex-logfiles-extensions adding "tex".
>
> I tried that but I do not want it to be a global value : in some case
> I still want the latex file to be the output (I do specific latex
> export in that case) for instance when things goes wrong.

You can either set a file-local variable, set a directory-local
variable, or, like John Kitchin often does, put the following src block
on the top of your file and use it for exporting:

#+begin_src emacs-lisp :exports none
(let () (org-latex-export-to-pdf))
#+end_src

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



Re: [PATCH] Async evaluation in ob-shell

2023-02-17 Thread Ihor Radchenko
Matt  writes:

>  > Doesn't (while ... (sleep-for ...)) work?
>
> I'm afraid I don't follow what you mean.

What I mean is:

1. Execute src block asynchronously
2. Run (while ... (sleep-for ...)) until the result appears (up to
   threshold seconds)
3. Check the result as usual or fail the test when we wait too long and
   no results is added.

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



Re: [PATCH] ox-texinfo: Fix invalid syntax in Texinfo version detection code

2023-02-17 Thread Ihor Radchenko
Rudolf Adamkovič  writes:

> All right, I added the 'require' to both files.  Better?

Thanks!
Applied, onto bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=99c8ed09f

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



Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Fraga, Eric
Let me try again (I first response wrong).

The following may work:

#+latex_header: \input{preamble}


-- 
: Eric S Fraga, with org release_9.6.1-250-ge6353d in Emacs 30.0.50


Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Fraga, Eric
You probably want "input" and not "include" in my suggestion.
-- 
: Eric S Fraga, with org release_9.6.1-250-ge6353d in Emacs 30.0.50


Re: How to export org-agenda to ICS to show in iCal

2023-02-17 Thread Ihor Radchenko
Alexei Gilev  writes:

> For months I have been wanting to be able to export my scheduled tasks to
> ICS to be able to see it it iCal, which is very visually pleasing and
> easier for me to grasp my agenda. Plus, I can see it in the context of my
> work tasks, which i don't have in orgmode.

In agenda buffer, M-x write-file  file-name.ics 

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



Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Fraga, Eric
Maybe (untested)

#+latex_header: \include(preamble)

(maybe with .tex in the file name but probably not needed)
-- 
: Eric S Fraga, with org release_9.6.1-250-ge6353d in Emacs 30.0.50


Strange behaviour: Repeating tasks jumping in time

2023-02-17 Thread Alexei Gilev
Dear all,

Has anybody experienced this strange and annoying behaviour?
For repeating tasks, every once in a while I miss them.
Then I check them in my org file plus I visit git-status to find they have
been shifted. Sometimes even years (usually months).

I haven't been able to track the source of this behaviour.

If anybody has any idea, I would appreciate it.

Thanks!

*** TODO TASK x
SCHEDULED: <2023-08-26 Sat +1m>.  <--- it used to say Feb 26, but has
jumped to August.
:PROPERTIES:
:STYLE:habit
:LAST_REPEAT: [2023-01-26 Thu 09:16]
:END:


Use custom preamble from tex file for latex export

2023-02-17 Thread reza
Hi List

Normally when exporting to latex one can set org headers to control the 
latex class and additional packages. I have now a tex file with the 
corresponding latex class and packages I normally use for my documents. 
Is there a way to use this tex file directly in org mode, without having 
to adjust #+LATEX_CLASS and #+LATEX_HEADER? Maybe something like

#+LATEX_PREAMBLE "my-preamble.tex"

Thanks for any hints.

Cheers,
Reza


OpenPGP_0xC375C6AF05125C52.asc
Description: application/pgp-keys


OpenPGP_signature
Description: PGP signature