Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?

2024-12-16 Thread Juri Linkov
>>> 1. List of possible actions: ((name1 . action1 props) (name2 . action2 ...) >>> ...) >>>PROPS is a plist defining extra properties like key-binding, display >>>string, maybe something else to be used in the future. >>> 2. Menu interface to use (transient, context-menu, embark, which-ke

Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?

2024-12-16 Thread Juri Linkov
>> When I want to edit a task and press "TAB", the point is moved to >> a window that show all the task. Not into the window opened by the >> indirect follow mode. Is it possible to modify this ? > > We got a use case when we want to display an Org buffer in other window, > but want to reuse an ind

Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?

2024-12-16 Thread martin rudalics
> It's possible to select the necessary window by using 'pop-to-buffer' > while displaying the non-selected window with a simple 'display-window'. 'display-buffer' I suppose. martin

Re: [PATCH] org-protocol: Add void() to bookmarklets

2024-12-16 Thread Max Nikulin
On 16/12/2024 23:01, Max Nikulin wrote: A patch updating org-protocol.el comments, docstrings, and the manual is attached. Should ORG-NEWS be updated as well?

Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? (was: Fwd: Org-cite: Replace basic follow-processor with transient menu?)

2024-12-16 Thread Ihor Radchenko
Samuel Wales writes: > a couple of quick and somewhat obvious comments. i use VERY large > fonts with a maximized gui emacs [vt / maximized urxvt when needed], > still resulting in, throughout emacs, often, a smaller number of > screen lines or columns than content, even with my usual one windo

Re: [BUG] yank-media doesn't work

2024-12-16 Thread General discussions about Org-mode.
Ah, no, the problem is still here. > I am assuming that you're running the PGTK build I compiled emacs with gtk3: ./configure --with-tree-sitter \ --with-gif --with-png --with-jpeg --with-tiff \ --with-imagemagick --with-x-toolkit=gtk3 --with-xwidgets \ --without-rsvg \ WEBKIT_C

Re: [BUG] yank-media doesn't work

2024-12-16 Thread General discussions about Org-mode.
Also, it seems as if the bug is easier to trigger if i copy an image from teleram in comparison to other things i've tried. But i'm not completely sure about this. Оригинальное Сообщение 16.12.2024 23:32, the_wurfkreuz написал: > Ah, no, the problem is still here. > >

Re: [BUG] yank-media doesn't work

2024-12-16 Thread General discussions about Org-mode.
> [திங்கள் டிசம்பர் 02, 2024] the_wurfkreuz via "General discussions about > Org-mode." wrote: > > > When using the yank-media command to paste images, the results are > > inconsistent. This issue persists even when running Emacs with emacs > > -Q. > > > > In some instances, the command successf

Performance of property drawers in Org cache

2024-12-16 Thread Michael Brand
Hi all Hello again, it's been a long time since I last followed this list regularly or posted regularly (until 2019, code contributions until 2016). Now I would like to report issues with the performance of property drawers in Org cache. The time it takes to open an Org file with a useful amount

Re: Contributing (looking for good first issues to tackle)

2024-12-16 Thread Ihor Radchenko
Bastien Guerry writes: > Ihor Radchenko writes: > >> Note that https://tracker.orgmode.org/howto still points all the links >> to Sourcehut. > > Fixed, thanks! "[[...][Woof!] tracks and exposes mailing list interactions." is still pointing to sr.ht. -- Ihor Radchenko // yantar92, Org mode mai

[PATCH] org-protocol: Add void() to bookmarklets

2024-12-16 Thread Max Nikulin
On 13/12/2024 01:47, Rehan Deen wrote: javascript:void(location.href='org-protocol:...) The idea is to discard a string returned by the assignment operator. [...] Thanks, that works and is consistent with what I thought was happening A patch updating org-protocol.el comments, docstring

Re: [PATCH] Highlight ANSI sequences in the whole buffer (was [PATCH] ANSI color on example blocks and fixed width elements)

2024-12-16 Thread Ihor Radchenko
Nathaniel Nicandro writes: > Ihor Radchenko writes: > >> I will need some time to review the patch. It would be helpful for the >> review if all the functions had a docstring and the data structure for >> CONTEXT were described in commentary. > > Attached is an updated patch with all functions d

Re: [BUG] Cannot tangle src block in capture buffer [9.7.6]

2024-12-16 Thread Ihor Radchenko
Derek Chen-Becker writes: > OK, after some debugging it looks like the primary culprit is the assignment > of source-file from buffer-file-name. A quick > patch seems to fix it, but I can definitely see a pattern here if org > functions are trying to get the filename of the current > buffer (I

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-16 Thread Ihor Radchenko
Leo Butler writes: > Attached is a patch to fix the problem that Benjamin has encountered. Thanks! > + '("(linenum:0," ;; remove fragment from command-line (see > `org-babel-execute:maxima') I am a bit worried that such a simple regexp may catch false positives. May we somehow

Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?

2024-12-16 Thread Ihor Radchenko
Juri Linkov writes: > Then you can use something like the buffer-local variable with the > same name 'context-menu-functions' (handled in 'context-menu-map'). > The main point is that these functions return a menu. > > But instead of a menu, an org function could return > a more high-level data s

Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?

2024-12-16 Thread Ihor Radchenko
Juri Linkov writes: >> We got a use case when we want to display an Org buffer in other window, >> but want to reuse an indirect buffer if it is already present. >> >> May it be possible? >> It feels like a natural thing to be available for `display-buffer', but >> I cannot find anything. > > It'

Re: Contributing (looking for good first issues to tackle)

2024-12-16 Thread Bastien Guerry
Ihor Radchenko writes: > "[[...][Woof!] tracks and exposes mailing list interactions." is still > pointing to sr.ht. Fixed, thanks! -- Bastien Guerry

Re: Month-week and quarter-week datetrees (RFC and package announcement)

2024-12-16 Thread Ihor Radchenko
Jack Kamm writes: >> The API of `org-datetree--find-create' is generally very limiting. >> It would be nice to come up with something less limiting. > > Thanks for the feedback -- I'll start working on something along these > lines. Though this might take me a little while since the holiday is >

Re: Problem installing Org using the Emacs packaging system

2024-12-16 Thread Ihor Radchenko
alain.coch...@unistra.fr writes: > Hello. An excerpt of the page > > https://orgmode.org/manual/Installation.html > > is > ... >emacs -Q -batch -eval "(progn (require 'package) (package-initialize) >(package-refresh-contents) (package-upgrade 'org))" > > I have used the emacs batch comm

Re: Problem installing Org using the Emacs packaging system

2024-12-16 Thread Ihor Radchenko
alain.coch...@unistra.fr writes: > Hello. About 2 weeks ago I already sent the following message. I just > realized that I must have failed in removing all the 'In-Reply-To:' and > similar fields, so it is part of another thread. I was thinking this might > be the reason why it was ignored and

Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? (was: Fwd: Org-cite: Replace basic follow-processor with transient menu?)

2024-12-16 Thread Samuel Wales
thanks for interest. the transient menu i am trying uses more character columns and lines than window (c-u m-x gptel-send). transient's solution does not work well for me. 1) wrapping - 3 text columns. rightmost text column (header: "Response to") has lines that wrap at rhs (not word) t

Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? (was: Fwd: Org-cite: Replace basic follow-processor with transient menu?)

2024-12-16 Thread Samuel Wales
thanks for interest. the transient menu i am trying uses more character columns and lines than window (c-u m-x gptel-send). transient's solution does not work well for me. 1) wrapping - 3 text columns. rightmost text column (header: "Response to") has lines that wrap at rhs (not word) t

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-16 Thread Leo Butler
On Mon, Dec 16 2024, Ihor Radchenko wrote: > Leo Butler writes: > >> Attached is a patch to fix the problem that Benjamin has encountered. > > Thanks! > >> + '("(linenum:0," ;; remove fragment from command-line (see >> `org-babel-execute:maxima') Benjamin, In taking Ihor's conc

Re: Link preview generation with new link preview property

2024-12-16 Thread Björn Bidar
Ihor Radchenko writes: > Björn Bidar writes: > >> Would it be possible to also handle image data in the function or >> refactor the org-link-preview-file function in a way that the geometry >> handling is done in a helper function which can be reused by other >> handlers. > > There is such funct

Re: Table width cookies become part of data table in R

2024-12-16 Thread William Denton
Sorry to confuse the threading, but I wanted to bring this back up given Ihor and Suhail Singh talking about this change in R behaviour. I agree it seems best to revert to the earlier was of handling data tables in R until, if possible, there is a nice way to clean up all the languages at once.

Re: Link preview generation with new link preview property

2024-12-16 Thread Karthik Chikmagalur
>> Would it be possible to also handle image data in the function or >> refactor the org-link-preview-file function in a way that the geometry >> handling is done in a helper function which can be reused by other >> handlers. > > There is such function: `org-display-inline-image--width'. > We may c