org-element: headline's :title is sometimes string, sometimes list

2023-08-22 Thread Hraban Luyat
Hi all. I'll let the code speak: (with-temp-buffer (org-mode) (insert "* Hello") (cl-flet ((say-type (prefix hl) (message "Headline title from %s is of type: %s" prefix (type-of

Re: [PATCH] ob-python results handling for dicts, dataframes, arrays, and plots

2023-08-22 Thread Jack Kamm
Jack Kamm writes: > Liu Hui writes: > >> I think these objects need to be shown in a single column rather than >> two. Besides, if the python code becomes too complex finally, I think >> maintaining the python code outside the ob-python.el, as suggested by >> Ihor, is a good idea. > > Thanks

Re: [PATCH] ob-python results handling for dicts, dataframes, arrays, and plots

2023-08-22 Thread Jack Kamm
Ihor Radchenko writes: > +1 > Don't forget to update > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-python.html > (note how the docs already have an example of org formatting from python) Thanks! Done now:

w3m rclick menu, regular rclick menu, org capture

2023-08-22 Thread Samuel Wales
long ago i set up emacs to pop up global menu. this allows me to e.g. copy text when i do not use keyboard. (define-key global-map (kbd "") 'alpha-menu) (defun alpha-menu () (interactive) (menu-bar-open) '(call-interactively 'mouse-popup-menubar)) this works in many modes including org

Re: org-cite: how to force a reparsing of the .bib file

2023-08-22 Thread Leo Butler
On Tue, Aug 22 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> I am struggling with org-cite at the moment. One problem: it is not >> re-parsing my .bib file, so it is not picking up changes. How can I >> force it to pick up changes? > > Please, provide more details. > org-cite should

[BUG] Bulk scattering breaks when logging rescheduling [9.7 (9.7-??-6eb773053 @ /home/shortcut/.emacs.d/.local/straight/build-28.1/org/)]

2023-08-22 Thread spookygostee
Bulk scattering agenda items when the user wants to log reschedules does not work. Steps to reproduce: 1. Set `org-log-reschedule' to the value `"time"' Alternatively, customize “Org Log Reschedule” to “Record timestamp with note”. 2. Add an org mode file with the following contents to

Re: org-cite: how to force a reparsing of the .bib file

2023-08-22 Thread Ihor Radchenko
Leo Butler writes: > I am struggling with org-cite at the moment. One problem: it is not > re-parsing my .bib file, so it is not picking up changes. How can I > force it to pick up changes? Please, provide more details. org-cite should already monitor .bib file contents and re-parse it as

org-cite: how to force a reparsing of the .bib file

2023-08-22 Thread Leo Butler
Hello, I am struggling with org-cite at the moment. One problem: it is not re-parsing my .bib file, so it is not picking up changes. How can I force it to pick up changes? TIA, Leo ps: (insert (format "\n%s\nOrg: %s" (emacs-version) (org-version))) GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu,

Re: [BUG] Warning when creating preview

2023-08-22 Thread Edgar Lux
On Aug 18, 2023 at 6:04 PM, Ihor Radchenko wrote: > May you try to install the latest stable Org first, following > https://orgmode.org/manual/Installation.html? You should get M-x > org-version printing Org 9.6.7. > Then, let us know if the warning keeps appearing. * What happens When I type

Re: ob-lilypond fontification

2023-08-22 Thread Ihor Radchenko
Henrik Frisk writes: > So I grabbed the file ob-lilypond from another inactive install of Emacs > 29.1 and linked to it in my init file. Everythin appears to work fine > except I dont get syntax highlightning unless I hit C-c ' I recommend installing Org mode from ELPA to make sure that you are

ob-lilypond fontification

2023-08-22 Thread Henrik Frisk
Hi, Embarressed but happy that I realised I dont have to keep updating the twelve year old version of ob-lilypond that I have been using I ran into a problem. First of all, ob-lilypond is not part of the precompiled version of emacs that I just switched to :

Re: [POLL] Should we accept breaking changes to get rid of Org libraries that perform side effects when loading?

2023-08-22 Thread Russell Adams
On Mon, Aug 14, 2023 at 01:19:07PM +, Fraga, Eric wrote: > I'll chime in regarding inlinetasks: I used to use these *a lot* but I > found that drawers do what I needed in almost all cases very > effectively (for my use cases). Can you give an example? I always hear the meeting notes with a

Re: [POLL] Should we accept breaking changes to get rid of Org libraries that perform side effects when loading?

2023-08-22 Thread Bastien Guerry
"Fraga, Eric" writes: > I'll chime in regarding inlinetasks: I used to use these *a lot* but I > found that drawers do what I needed in almost all cases very > effectively (for my use cases). It resonates with my experience too and I suspect (and kinda hope) many inlinetasks users will feel the

Re: [MAINTENANCE] Org orphanage?

2023-08-22 Thread Bastien Guerry
Hi Jonas, Jonas Bernoulli writes: > IMO it would be a good idea if Bastien and/or Ihor joined the > emacsorphanage and explicitly added themselves to these packages as > admins. > > I think I would have to make you owners of emacsorphanage to allow you > to do this and other useful things on

Re: [patch] Fix inner smart quotes in French

2023-08-22 Thread Bastien Guerry
Ihor Radchenko writes: > Bastien Guerry writes: > > Are you referring to `org-export-smart-quotes-alist'? It is a defconst. Ah, indeed. I'd say using a defcustom here would be useful. >>> >>> Is changing defconst to defcustom ok for bugfix? >> >> Nope, it's more an "evolution"

Re: C-RET and empty lines

2023-08-22 Thread Juergen Fenn
Am 22.08.23 um 13:38 Uhr schrieb Ihor Radchenko: >> Could you please advise how to configure the variable in your init file >> to have it produce a blank line before _every_ new entry? > > (setf (alist-get 'heading org-blank-before-new-entry) t) Thanks, again. Works fine for me. :) Best

[BUG] bug fix with inline figure generated by org-octave [9.7-pre (release_9.6.7-662-gb89bc5)]

2023-08-22 Thread Shervin Safavi
Hi there, First, thanks for maintaining this awesome tool. In "ob-octave.el" line 94, instead of (format "print -dpng %S\nans=%S" gfx-file gfx-file)) should be (format "print -dpng %s" gfx-file)) otherwise, the figure is not saved (and thus an empty inline figure will appear). I already

Re: C-RET and empty lines

2023-08-22 Thread Ihor Radchenko
Juergen Fenn writes: > Could you please advise how to configure the variable in your init file > to have it produce a blank line before _every_ new entry? (setf (alist-get 'heading org-blank-before-new-entry) t) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: C-RET and empty lines

2023-08-22 Thread Juergen Fenn
Am 22.08.23 um 11:52 Uhr schrieb Ihor Radchenko: > This behaviour is customizable. See `org-blank-before-new-entry'. Thank you for this hint. That was new to me as well. M-x describe-variable RET org-blank-before-new-entry RET says: > Should ‘org-insert-heading’ leave a blank line before new

Re: C-RET and empty lines

2023-08-22 Thread Ihor Radchenko
Max Nikulin writes: > A couple of recent threads reminded me about quite peculiar behavior > when a new heading is added by C-RET. I prefer to have an empty line > before headings. Sometimes such empty lines disappear. Is such behavior > (highly dependent of context) intentional? From my

Re: [BUG][SECURITY] ob-sqlite header args allows execution of arbitrary shell commands

2023-08-22 Thread Ihor Radchenko
Max Nikulin writes: > On 21/08/2023 14:04, Ihor Radchenko wrote: >> +(defconst org-shell-arg-literal (gensym "literal") > > (opinion) Perhaps a better name exists. Maybe > org-shell-arg-tag-unescaped (or unquoted) > ... See the updated version of the patches attached. >From

Re: Clarification on blank lines following list items

2023-08-22 Thread Ihor Radchenko
Ihor Radchenko writes: >> I am seeing dual-ownership of the post-blank in the examples below, but at >> the same time if I put a plain-list inside a footnote definition, the >> footnote definition ends up with sole custody of the post-blank. > > It is a bug in the list parser. Fixed, on main.

Re: Clarification on blank lines following list items

2023-08-22 Thread Ihor Radchenko
"Tom Alexander" writes: > 1. Is the following statement true? "Two elements can count the same > character in their post-blank?" This statement ought to be false. > I am seeing dual-ownership of the post-blank in the examples below, but at > the same time if I put a plain-list inside a