Re: Compact schedule in agenda day view

2023-02-18 Thread Angel de Vicente
Hello, Marcin Borkowski writes: > And you could have found it out yourself with `C-h l' (`view-lossage'). > `C-h m' (`describe-mode') and `C-h k' (`describe-key') are also useful thanks for the tips. I had used 'view-lossage' in the past, but I had forgotten about it... :-) Cheers, -- Ángel

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-02-18 Thread lux
On Sat, 2023-02-18 at 11:43 +, Ihor Radchenko wrote: > lux writes: > > > -  (shell-command (format "mv %s %s" img-out out- > > file) > > +  (rename-file img-out out-file > > I think should be (rename-file img-out out-file t) > Yes, my pachted changed it,

Re: Template for ob- packages?

2023-02-18 Thread Matt
On Fri, 17 Feb 2023 17:32:18 -0500 Leo Butler wrote --- > Matt, thanks for sharing those notes. I would suggest that they be added > to worg in their current state. Thanks for your vote of confidence. I've attached the source, in case someone wants to do that. Otherwise, I'll get

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

2023-02-18 Thread Philipp Kiefer
Even though it can be toggled via the 'hide' variable? Okay, will do! On 18.02.2023 11:41, Ihor Radchenko wrote: Philipp Kiefer writes: Please peruse attached to reproduce another glitch that occurs with (setq org-hide-emphasis-markers t). The screencast illustrates what happens in the

[PATCH] Avoid crash in `org-file-contents' in case of network failure

2023-02-18 Thread Damien Cassou
* lisp/org.el (org-file-contents): Wrap the `url-retrieve-synchronously' call into a `condition-case' block to avoid throwing an error when NOERROR is non-nil. -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill >From

Re: RFC on implementation adding buttons beside headings

2023-02-18 Thread pareto optimal
I forgot the implementation: ``` (define-button-type 'org-clock-in-button   'follow-link t   'face 'custom-button   'mouse-face 'custom-button-mouse   'action (lambda (b) (org-clock-in))) (define-button-type 'org-clock-out-button   'follow-link t   'face 'custom-button   'mouse-face

RFC on implementation adding buttons beside headings

2023-02-18 Thread pareto optimal
Hi all! I've recently been playing with emacs on Android and wanted an easier way to clock in. My idea was to put buttons beside org headings that are TODO items. I do this by: - removing clocking buttons on heading if present, then adding a clock in button on 

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

2023-02-18 Thread Max Nikulin
On 17/02/2023 17:29, Ihor Radchenko wrote: 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,

Re: [BUG] org-id-get-create creating property drawers after SCHEDULE and DEADLINE keywords [9.6 (release_9.6-3-ga4d38e @ /nix/store/zr2g5z2hbqxa93ndfkx6n0v489al6lfq-emacs-git-20221206.0/share/emacs/30

2023-02-18 Thread Ihor Radchenko
Alejandro Gallo writes: > When you have a headline with a schedule, i.e. > > * Hello > SCHEDULED: <2023-02-18 Sat> > > and you run (org-id-get-create) then the PROPERTIES drawer gets added > AFTER the SCHEDULED keyword. Sure. Just as it supposed to. See 7.1 Property Syntax section of the

Re: 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-18 Thread Bruno BEAUFILS
On Sat, Feb 18, 2023 at 10:32:38AM +, Ihor Radchenko wrote: > I tried to clarify the manual section in the attached patch. Thank's for your work. -- Bruno BEAUFILS Trésorier de la Societé Informatique de France signature.asc Description: PGP signature

[BUG] org-id-get-create creating property drawers after SCHEDULE and DEADLINE keywords [9.6 (release_9.6-3-ga4d38e @ /nix/store/zr2g5z2hbqxa93ndfkx6n0v489al6lfq-emacs-git-20221206.0/share/emacs/30.0.5

2023-02-18 Thread Alejandro Gallo
When you have a headline with a schedule, i.e. * Hello SCHEDULED: <2023-02-18 Sat> and you run (org-id-get-create) then the PROPERTIES drawer gets added AFTER the SCHEDULED keyword. This renders other third-party packages such as https://github.com/dengste/org-caldav/issues/212 partially

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-02-18 Thread Ihor Radchenko
lux writes: > - (shell-command (format "mv %s %s" img-out out-file) > + (rename-file img-out out-file I think should be (rename-file img-out out-file t) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at .

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-02-18 Thread lux
On Sat, 2023-02-18 at 18:15 +0700, Max Nikulin wrote: > On 18/02/2023 17:08, lux wrote: > > -  (shell-command (format "mv %s %s" img-out out- > > file) > > +  (shell-command (format "mv %s %s" (shell-quote- > > argument img-out) (shell-quote-argument out-file)) > >

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-02-18 Thread Max Nikulin
On 18/02/2023 17:08, lux wrote: - (shell-command (format "mv %s %s" img-out out-file) + (shell-command (format "mv %s %s" (shell-quote-argument img-out) (shell-quote-argument out-file)) Thank you for the patch. Certainly it is an improvement. Is there any

[FR] ox-latex: Display exit status of LaTeX compilation command (was: 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-18 Thread Ihor Radchenko
Bruno BEAUFILS writes: > 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). I would not mind. Patches welcome! -- Ihor Radchenko

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

2023-02-18 Thread Ihor Radchenko
cars...@kragelund.me writes: >> 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

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

2023-02-18 Thread Ihor Radchenko
Philipp Kiefer writes: > Please peruse attached to reproduce another glitch that occurs with > (setq org-hide-emphasis-markers t). The screencast illustrates what > happens in the sample file. The glitch (the pointer automatically > dropping to the line below a heading rather than staying at

Re: 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-18 Thread Ihor Radchenko
Bruno BEAUFILS writes: > 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

[PATCH] Fix ob-latex.el command injection vulnerability.

2023-02-18 Thread lux
Test environment: - Emacs 29.0.60 - Orgmode 9.6.1 - TeX Live 2020 Preconditions: (org-babel-do-load-languages 'org-babel-load-languages '((latex . t))) The vulnerability occurs in the file ob-latex.el, in the `org-babel- execute:latex' function, if then file's extension is .svg, using

[BUG] FAQ asnwer for "How can I use arbitrary colors for words/sentences in HTML export?" is outdated

2023-02-18 Thread Ihor Radchenko
Hi, In https://orgmode.org/worg/org-faq.html#org60202b9, the answer uses obsolete function `org-add-link-type'. We should change it to `org-link-set-parameters'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development