Re: [Uploaded Edebug video] Re: [EasyPG (epa)] Emacs can't save modified encrypted file

2023-05-03 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> Ok, I upload on Disroot website: >> >> https://upload.disroot.org/r/7skmXw7a#zt0jISsPuV0f3LkY9aRyz77X3iAOyD3cuue1Fbi9zy0= > > So, the hang happens on `epg-wait-for-status'. > So, again, may you try to run the exact command line

Re: [Uploaded Edebug video] Re: [EasyPG (epa)] Emacs can't save modified encrypted file

2023-05-03 Thread Ihor Radchenko
"Christopher M. Miles" writes: > Ok, I upload on Disroot website: > > https://upload.disroot.org/r/7skmXw7a#zt0jISsPuV0f3LkY9aRyz77X3iAOyD3cuue1Fbi9zy0= So, the hang happens on `epg-wait-for-status'. So, again, may you try to run the exact command line (including absence of input file) manually

Re: [ANN] lisp/ob-tangle-sync.el

2023-05-03 Thread Ihor Radchenko
Mehmet Tekman writes: >> 3. Please do not use private functions from third-party libraries. I am >>talking about `cl--set-buffer-substring' in particular. >> > > So initially I used `(setf (buffer-substring X Y) new-content)` but I > recieved a warning from Emacs that it was an obsolete

Re: [EasyPG (epa)] Emacs can't save modified encrypted file

2023-05-03 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> GPG_AGENT_INFO is not set >> /opt/homebrew/bin/gpg --no-tty --status-fd 1 --yes >> --enable-progress-filter --command-fd 0 >> --output /var/folders/ym/f3v5_yk1279g5ls70x3hzblhgn/T/epg-outputxPZRrb >> --pinentry-mode >>

Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively

2023-05-03 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> So currently ob-shell.el is async sending command into session buffer >> without waiting for command to be finished. >> >> I checked out the ob-shell.el source code. I suppose this is the core >> part of the problem. From intuitive

Re: [PATCH] ob-sqlite: Use a transient in-memory database by default

2023-05-03 Thread Max Nikulin
On 03/05/2023 22:12, Max Nikulin wrote: On 03/05/2023 19:59, Rudolf Adamkovič wrote: +++ b/lisp/ob-sqlite.el ... -    (db (cdr (assq :db params))) +    (db (or (cdr (assq :db params)) ":memory:")) I am unsure what is better, to add a fallback here or to add :db ":memory" to the

Re: [ANN] lisp/ob-tangle-sync.el

2023-05-03 Thread Ihor Radchenko
Mehmet Tekman writes: > On closer inspection it might actually be unpractical to have the sync > action within the `:tangle' syntax, the main reason being that people > might define the tangle target in the document header for ease of use. This is not a problem. Try #+PROPERTY: header-args

Re: [PATCH] ob-sqlite: Use a transient in-memory database by default

2023-05-03 Thread Max Nikulin
On 03/05/2023 19:59, Rudolf Adamkovič wrote: +++ b/etc/ORG-NEWS Thank you for the patch. ** New features +*** Make =ob-sqlite= use in-database by default --^ Looks like a typo +++ b/lisp/ob-sqlite.el ...> - (db (cdr (assq :db params))) + (db (or

Re: [ANN] lisp/ob-tangle-sync.el

2023-05-03 Thread Mehmet Tekman
>> Ihor Radchenko writes: >> >> May it be better to make :tangle header argument compound? >> Like ":tangle "file" export". Similar to :results header argument. See >> "16.6 Results of Evaluation" section of Org manual. >> > > Mehmet Tekman writes: > > That's a great idea I had not considered,

[BUG] org-habit does not respect STYLE property inheritance

2023-05-03 Thread Дмитрий Логвиненко
Hi there, I've noticed that org-habits does not take an inherited STYLE property when it searches entries. Let me illustrate it: (setq org-use-property-inheritance t) (defun run-example () (with-temp-buffer (insert "\ * Habit group :PROPERTIES: :STYLE: habit

Re: [ANN] lisp/ob-tangle-sync.el

2023-05-03 Thread Mehmet Tekman
Ihor Radchenko writes: > Mehmet Tekman writes: >> >> One issue that I cannot seem to solve by myself is getting the >> `org-babel-tangle-sync-mode' to persist on the `after-save-hook' >> after it's been activated. My understanding of this hook is >> that it is global and persists across

[PATCH] ob-sqlite: Use a transient in-memory database by default

2023-05-03 Thread Rudolf Adamkovič
* etc/ORG-NEWS (New features): Add a news entry. * lisp/ob-sqlite.el (org-babel-execute:sqlite): Default ':db' to ":memory:". * testing/lisp/test-ob-sqlite.el (ob-sqlite/in-file): Test the old behavior. * testing/lisp/test-ob-sqlite.el (ob-sqlite/in-memory): Test the new behavior. ---

Re: [BUG] org-element-cache error [9.6.1 (9.6.1-??-fe92a3c @ /Users/nick/.emacs.d/.local/straight/build-28.2/org/)]

2023-05-03 Thread Ihor Radchenko
Nick G writes: > Warning (org-element-cache): org-element--cache: Org parser error in > corporations.org::#. Resetting. > The error was: (error "Invalid search bound (wrong side of point)") > Backtrace: > nil > Please report this to Org mode mailing list (M-x org-submit-bug-report). > Disable

org-babel-expand-call-block

2023-05-03 Thread Samuel Culpepper
Hi orgmode, I thought it would be nice share a little excursion into babel's code expansion; nothing groundbreaking, and nobody asked, but it may address a more comprehensive tangling, or maybe just some ergonomics for copying code. #+name: babel-lob-info #+begin_src emacs-lisp :var ya="dooby"

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-05-03 Thread K. Chousos
Hello Timothy. First of all, thank you for your contribution. I use your fork for some days now and I can verify that it is working correctly. I have only faced the following problems: 1. When a snippet contains a mistake, it correctly turns red, but no error message is shown when I hover

[BUG] org-element-cache error [9.6.1 (9.6.1-??-fe92a3c @ /Users/nick/.emacs.d/.local/straight/build-28.2/org/)]

2023-05-03 Thread Nick G
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: [BUG] Filling in source blocks fills by region, not paragraph [9.5.5 (release_9.5.5/master)]

2023-05-03 Thread Jens Schmidt
Forget about that one, it is already fixed in master. I had the wrong load path and used actually 9.5.5 and not org-mode cloned from master, as intended.

Babel results don't respect narrowing

2023-05-03 Thread Sebastian Wålinder
Hello! When org-babel inserts results after evaluating a org-babel block, the current narrowing isn't respected. Org searches outside of the current narrowing to find a result block, then updates that. Here's a example to illustrate it: ``` #+CAPTION: 1. Evaluate this to narrow to the elisp

[PATCH] epm.el: A CLI tool for package.el

2023-05-03 Thread Max Nikulin
On 30/04/2023 17:39, Ihor Radchenko wrote: Max Nikulin writes: ./epm.el -Q --epm-dir $(emacs_pkgdir)/emacs-%e install compat Good idea. Although, we should not overdo this package management thing. If we really need complex functionality here, we should better just use cask/eldev

Re: [EasyPG (epa)] Emacs can't save modified encrypted file

2023-05-03 Thread Ihor Radchenko
"Christopher M. Miles" writes: > GPG_AGENT_INFO is not set > /opt/homebrew/bin/gpg --no-tty --status-fd 1 --yes --enable-progress-filter > --command-fd 0 --output > /var/folders/ym/f3v5_yk1279g5ls70x3hzblhgn/T/epg-outputxPZRrb > --pinentry-mode loopback --encrypt -r 1B5DF1C95AE89AC3

Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively

2023-05-03 Thread Ihor Radchenko
"Christopher M. Miles" writes: > So currently ob-shell.el is async sending command into session buffer > without waiting for command to be finished. > > I checked out the ob-shell.el source code. I suppose this is the core > part of the problem. From intuitive view, session async evaluation >

Re: [PATCH] ox.el: Customize org-export-dispatch options

2023-05-03 Thread Ihor Radchenko
Jim Wisniewski writes: >> >> Thanks! Let us know when FSF replies with a countersignature. >> > >> > Just got it back today. >> >> Thanks for the update! >> Bastien, may you confirm? > > Hi, any update here? I do not have access to FSF records. We need to wait until Bastien gets some free time

Re: [ANN] lisp/ob-tangle-sync.el

2023-05-03 Thread Ihor Radchenko
Mehmet Tekman writes: > I've modified the ob-tangle.el file for the main tangling and > detangling functions. Most importantly, both functions can now > exchange information from the source Org mode file to the target > remote tangle file in either direction, depending on whether the > source

Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively

2023-05-03 Thread Christopher M. Miles
Ihor Radchenko writes: > Matt writes: > >> > Matt, maybe you have some ideas about this edge case? >> >> I have no other ideas within the current ob-shell implementation. As for >> modifications, I have the following thoughts. >> >> First, how might we state the problem for this edge case?

Re: How to disable org-persist in a given file?

2023-05-03 Thread Gustavo Barros
On Wed, 3 May 2023 at 07:55, Ihor Radchenko wrote: > This was actually just an omission in `org-persist-gc'. > Now fixed on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e11073d17 Thank you! > But do not create so much sense of urgency here. As I explained, this is >

Re: How to disable org-persist in a given file?

2023-05-03 Thread Ihor Radchenko
Gustavo Barros writes: > For the record, even ".org.gpg" files generate an entry in the cache > index. (True, not the `:persist-file' itself though). > > My ~/.cache/org-persist/index contains: > > (:container > ((elisp org-element--headline-cache) > (elisp org-element--cache)) >

Re: [EasyPG (epa)] Emacs can't save modified encrypted file

2023-05-03 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> Do you have any issues decrypting and encrypting files from command >>> line? If no, what about from M-x shell? If yet no, what if you call gpg >>> via `start-process'? >>> >> >> - [X] test decrypt & encrypt in terminal with gpg

Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively (was: [Need Help] Error to evaluate "mpv" command in inline src block)

2023-05-03 Thread Ihor Radchenko
Matt writes: > > Matt, maybe you have some ideas about this edge case? > > I have no other ideas within the current ob-shell implementation. As for > modifications, I have the following thoughts. > > First, how might we state the problem for this edge case? > > To me, it looks like, "How can

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-05-03 Thread K. Chousos
Hello Timothy. First of all, thank you for your contribution. I use your fork for some days now and I can verify that it is working correctly. I have only faced the following problems: 1. When a snippet contains a mistake, it correctly turns red, but no error message is shown when I hover

Re: [ANN] lisp/ob-tangle-sync.el

2023-05-03 Thread Ihor Radchenko
Mehmet Tekman writes: > (Sorry for the previous top posting.) > > One issue that I cannot seem to solve by myself is getting the > `org-babel-tangle-sync-mode' to persist on the `after-save-hook' > after it's been activated. My understanding of this hook is > that it is global and persists

Re: [ANN] lisp/ob-tangle-sync.el

2023-05-03 Thread Mehmet Tekman
(Sorry for the previous top posting.) One issue that I cannot seem to solve by myself is getting the `org-babel-tangle-sync-mode' to persist on the `after-save-hook' after it's been activated. My understanding of this hook is that it is global and persists across buffers, but I'm seeing some

Re: [ANN] lisp/ob-tangle-sync.el

2023-05-03 Thread Mehmet Tekman
> I noticed that you modified argument order of a public function > `org-babel-detangle' -- is it possible that you retain the order of > arguments? Good catch - I think I changed the order so that it would match the interactivity of its sister function `org-babel-tangle', and I think in a

Re: Slashes inserted into Common Lisp code evaluation results

2023-05-03 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > Igor, merged the patch yesterday with the bugfix branch. Main, not bugfix. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my

Re: Slashes inserted into Common Lisp code evaluation results

2023-05-03 Thread gerard . vermeulen
Igor, merged the patch yesterday with the bugfix branch. It is now in https://elpa.gnu.org/devel/org-9.7pre0.20230502.124756.tar or later. It should not matter whether you are using Emacs-28 or Emacs-29. Regards -- Gerard On 03.05.2023 08:00, Nathan Van Ymeren wrote: Ahh, I forgot to

Re: Slashes inserted into Common Lisp code evaluation results

2023-05-03 Thread Nathan Van Ymeren
Ahh, I forgot to specify. I too use Sly in lieu of Slime, though I'm on emacs 28. That patch does not appear to have made its way into the prerelease I’m running. I will apply it manually later this evening and see how it goes. Thanks, N May 2, 2023 03:52:52 gerard.vermeu...@posteo.net: >