Re: [PATCH] worg/org-faq.org: Recommend cb_thunderlink Thunderbird add-on

2023-02-07 Thread Bruno Barbier
a note that on Windows Thunderbird should register itself as a > handler of the mid: protocol. > > Thanks to Bruno Barbier for discussion on the emacs-orgmode > mailing list. > --- > org-faq.org | 37 + > 1 file changed, 29 insertions(+), 8

Re: PATCH for worg about cb_thunderlink (Re: Link from orgmode file to E-Mail (using kmail or notmuch))

2023-02-06 Thread Bruno Barbier
Hi Max, Max Nikulin writes: > I am trying to determine if it is difficult to get mid scheme working > system-wide and emacs-wide on windows. If not, I would just add your > example "[[mid:$msgid$][$author_name$: $subject$ ($date_iso$)]]" to the > remark related to copying Message-ID in the

Re: PATCH for worg about cb_thunderlink (Re: Link from orgmode file to E-Mail (using kmail or notmuch))

2023-02-03 Thread Bruno Barbier
Max Nikulin writes: > On 02/02/2023 13:04, Bruno Barbier wrote: >> As it's still not clear to me how to configure browse-url, I'm still relying >> on start-process. > > Bruno, it seems I completely confused you by my comments. I am sorry for > that. I was con

Re: PATCH for worg about cb_thunderlink (Re: Link from orgmode file to E-Mail (using kmail or notmuch))

2023-02-02 Thread Bruno Barbier
not clear to me how to configure browse-url, I'm still relying on start-process. See a new version of the patch. Bruno >From 89cef9d7acd85828ddfbb1375fac1e805bd03cea Mon Sep 17 00:00:00 2001 From: Bruno BARBIER Date: Tue, 31 Jan 2023 20:33:22 +0100 Subject: [PATCH] org-faq: links with thunde

Re: PATCH for worg about cb_thunderlink (Re: Link from orgmode file to E-Mail (using kmail or notmuch))

2023-02-01 Thread Bruno Barbier
Max Nikulin writes: > On 01/02/2023 02:56, Bruno Barbier wrote: > Is it intentional that you and the linked page avoid cb_thunderlink page > on the official add-on site? > https://addons.thunderbird.net/en-us/thunderbird/addon/cb_thunderlink/ No. But visiting the author site bei

PATCH for worg about cb_thunderlink (Re: Link from orgmode file to E-Mail (using kmail or notmuch))

2023-01-31 Thread Bruno Barbier
the other information about Thunderbird. And, I'm not sure about how to properly format names, etc. for the wiki. See the attached patch. What do you think ? Bruno >From 4beb7ee307544be868a0d058763aa61558f0701b Mon Sep 17 00:00:00 2001 From: Bruno BARBIER Date: Tue, 31 Jan 2023 20:33:22 +0

Re: Link from orgmode file to E-Mail (using kmail or notmuch)

2023-01-28 Thread Bruno Barbier
Max Nikulin writes: > Notice that you can use mid:$msgid$ instead of email:$msgid$. > > thunderbird 'mid:tqr8et$mrc$1...@ciao.gmane.io' Yes. I realized that from previous emails in this thread. I should be using 'mid' from now on. Thanks. > The main point > of orco is opposite mapping.

Re: [BUG] Org-Babel shell problems and crashes with images [9.6.1 (9.6.1-ga6c882 @ /home/joe/.emacs.d/straight/build/org/)]

2023-01-27 Thread Bruno Barbier
Josep Jesus Bigorra Algaba writes: > 1- Creating a line in an org document that contains more than 2 images > causes Emacs to entirely crash (tested on Emacs 28 all the way to 30), > e.g. [[./dist/example1.png]] [[./dist/example2.png]] > [[./dist/example3.png]] > > I am pretty convinced that

Re: Link from orgmode file to E-Mail (using kmail or notmuch)

2023-01-27 Thread Bruno Barbier
Bruno Barbier writes: > Max Nikulin writes: >> If Message-ID still can be decoded from cb_thinderlink URIs than it >> should be possible adapt orco to handle such links as well. I'm using plain Message-IDs to identify my emails, and, when choosing an email client, that's r

Re: Link from orgmode file to E-Mail (using kmail or notmuch)

2023-01-24 Thread Bruno Barbier
Jean Louis writes: > And not to hard code it in Org. > > To circumvent hard coding in Org, one can always use elisp: type of links: > > (defun my-handler (mid) > (message mid)) > > [[elisp:(my-handler "I am ok here")][my handler]] Org also allows the user to define his own link types: (info

Re: Link from orgmode file to E-Mail (using kmail or notmuch)

2023-01-24 Thread Bruno Barbier
Max Nikulin writes: > Thunderbird allows to save messages as an .eml file and to open it by > thunderbird /tmp/test.eml I'm using an extension for Thunderbird that allows to copy a direct link to a message. I then paste it into a org file so that I can reopen the message in one click:

Re: TBLFM trying to create an infinite number of lines

2022-12-06 Thread Bruno Barbier
Julien Palard writes: > Hi, > > I was playing with the idea of calling subprocesses from TBLFM (good idea or > not)... > > ...and found that: > > | | > #+TBLFM: $1='(shell-command-to-string "echo 42") > > Tries to build an infinitly long table (I have to interrupt it with C-g). ...

Re: [BUG] org-babel-comint-with-output: incorrect prompt detection [9.6-pre]

2022-11-11 Thread Bruno Barbier
Ihor Radchenko writes: > The problem is that Bash can send incoming text like > > "prompt> " "prompt> " "prompt> output\n". > > "prompt> prompt> prompt> output\n". Yes. And I've seen these "outputs" with ob-haskell too ... > > So, we cannot reliably distinguish your case from other possibly

[BUG] org-babel-comint-with-output: incorrect prompt detection [9.6-pre]

2022-11-10 Thread Bruno Barbier
Hi, The function `org-babel-comint-with-output' (o-b-c-w-o) may not detect prompts correctly. The function o-b-c-w-o checks if the incoming arbitrary chunk of text contains whole prompts, and replace them. But the incoming text may contain an incomplete prompt at the end. When this happens,

Re: [PATCH] ob-java: Define the list of all supported header arguments

2022-11-10 Thread Bruno Barbier
Ihor Radchenko writes: > Then, it sounds like local.mk does not enable java tests. > > I fixed such scenario on main. > Now, java tests will be skipped when ob-java testing is not requested. That works for me now, with or without java in local.mk. Thanks for the patch and the explanation!

Re: [PATCH] ob-java: Define the list of all supported header arguments

2022-11-10 Thread Bruno Barbier
Ihor Radchenko writes: > Rudolf Adamkovič writes: > >> Overall, I now see the following failures on the main branch: >> >>FAILED ob-java/lint-header-args-block >>FAILED ob-java/lint-header-args-buffer >>FAILED ob-java/lint-header-args-heading > > AFAIK, Max is using Linux.

Re: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil

2022-11-08 Thread Bruno Barbier
Ihor Radchenko writes: > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=620a96dd682191f49cbe83dee516bb566b9d0127 Thanks Ihor.

Re: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil

2022-11-08 Thread Bruno Barbier
Ihor Radchenko writes: > Bruno Barbier writes: > >> Here is a small patch for a corner case in `org-babel-insert-result'. > > Thanks, but could you please explain a bit more about this corner case? > `end' must be always defined because > (setq end (copy-m

[PATCH] lisp/ob-haskell.el: Fix org-babel-script-escape expects a string

2022-11-08 Thread Bruno Barbier
:00 2001 From: Bruno BARBIER Date: Tue, 8 Nov 2022 19:19:32 +0100 Subject: [PATCH] lisp/ob-haskell.el: Fix org-babel-script-escape expects a string * lisp/ob-haskell.el (org-babel-interpret-haskell): Don't call `org-babel-script-escape' when the result is nil. --- lisp/ob-haskell.el | 2 +- 1 f

[PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil

2022-11-08 Thread Bruno Barbier
Hi, Here is a small patch for a corner case in `org-babel-insert-result'. Bruno >From 288e2631ef60eeaee32f1107754aeb521247d54b Mon Sep 17 00:00:00 2001 From: Bruno BARBIER Date: Sun, 6 Nov 2022 13:57:40 +0100 Subject: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil l

Re: Haskell code blocks

2022-11-08 Thread Bruno Barbier
Ihor Radchenko writes: > Applied onto main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0de063a52181bd96ac9bf023454781f07c3353b3 Thanks Ihor. Sorry, I'm still working on adding a 'test-ob-haskell.el', when I have some spare time, but I'm unable so far to find tests that I

Re: [BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)]

2022-11-05 Thread Bruno Barbier
Ihor Radchenko writes: > Thanks for reporting! > Fixed on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=946abeb49a73d7d04233a53fbb7fd422c7e294b6 It now works. Thanks Ihor! Bruno

[BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)]

2022-11-05 Thread Bruno BARBIER
Hi, The function `org-string-width' fails if the selected window is strongly dedicated. Here is a way to reproduce this error: #+begin_src elisp (let ((old-dedicated (window-dedicated-p))) (unwind-protect (progn (set-window-dedicated-p nil t)

Re: Still prob the I cannot solve....

2022-10-29 Thread Bruno Barbier
Hi Renato, You'll have more chance to get help if you reply to the list, using the same thread. Renato Pontefice writes: > When I start emacs, now I receive this messages: > > Warning (initialization): An error occurred while loading >

Re: Still prob the I cannot solve....

2022-10-28 Thread Bruno Barbier
Renato Pontefice writes: > > So, now I’m sure about what what file are executed. But unsure what could be > the prob! .. > What does they means? Like Ihor told you in your other thread, you have a mistake in your init.el. Maybe somebody could help you if you show us your init.el. The problem

Re: Org Haskell code blocks

2022-10-25 Thread Bruno Barbier
Hi, Dominik Schrempf writes: > ... > However, the result output is still scrambled (e.g., empty > lines, unnecessary "ghci>" prompts in results) > For me, ghci is selected by default. Here is the config I've used to test it: | emacs-version |28.1 | | org-version

Re: PATCH: Re: Reading the parameters of a special-block

2022-10-19 Thread Bruno Barbier
rpreter'. > May also test against empty parameters and space-only parameters. I added more tests. I also added a new independent patch, to fix a bug when interpreting a special block that has no content, and some tests. Let me know if I did miss something, And thank you for the review! Bruno

Re: Haskell code blocks

2022-10-19 Thread Bruno Barbier
orld! Another example that works too, with or without the patch: #+begin_src haskell concat ["Hello", ", ", "World", "!"] #+end_src #+RESULTS: : Hello, World! I've attached the patch that I've used to fix ob-haskell. Should I submit a patch for ob-ha

PATCH: Re: Reading the parameters of a special-block

2022-10-17 Thread Bruno Barbier
ocks, storing the PARAMETERS line as a string. See attached patch. Could this be added to org ? Bruno >From a57412351a21cecf0a83264139cc99bcc77f1093 Mon Sep 17 00:00:00 2001 From: Bruno BARBIER Date: Mon, 17 Oct 2022 20:19:02 +0200 Subject: [PATCH] lisp/org-element: Add a parameters-line prop

Re: [BUG] ob-shell: cmdline and stdin broken when used with TRAMP

2022-09-06 Thread Bruno Barbier
Ihor Radchenko writes: > LGTM now. Thanks! > Applied onto main with minor amendments in formatting. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=8151d52574f525fd922aadc43544688004cb7d14 Thanks Ihor!

Re: [BUG] ob-shell: cmdline and stdin broken when used with TRAMP

2022-09-06 Thread Bruno Barbier
Bastien Guerry writes: > I confirm Bruno is on the list of FSF-signed contributors, > I updated the Worg page. Bruno, thanks in advance for your > contributions! Thanks Bastien.

Re: [BUG] ob-shell: cmdline and stdin broken when used with TRAMP

2022-09-04 Thread Bruno Barbier
I should be able to compile one, if you think it's needed. Thank you for spotting this and pointing me to `with-connection-local-profiles'. Thank you again, Ihor, for the review and the testing. Let me know if you see further improvements, Bruno >From 9ed2f6d9e2c8bd7dd219e98ff7983fa53fd06

Re: [BUG] ob-shell: cmdline and stdin broken when used with TRAMP

2022-09-03 Thread Bruno Barbier
ve added (require 'tramp) in the body; should I move it to the top of the file ? Thanks again for the review, Bruno >From d9abfb423bff620dee15d204f4bab48e2ec8dc4e Mon Sep 17 00:00:00 2001 From: Bruno BARBIER Date: Sat, 18 Jun 2022 09:48:01 +0200 Subject: [PATCH] ob-shell: Use 'process-file'

Re: `org-capture' loads all the files in `org-directory'

2022-07-17 Thread Bruno Barbier
Noel Errenil writes: > Hello, org community > > I ran into the titled issue and haven't found any solution or explanation: > > First, I start Emacs and there are just a few buffers such as *scratch* and > *Messages*. > > Then, I fire `org-capture', captur a note and `C-c C-c' to save the

Re: [more absurd]

2022-07-03 Thread Bruno Barbier
Uwe Brauer writes: > > I am confused what is 02 supposed to mean? That's a leading 0 digit, that can be ignored. (string-to-number "02") => 2 Alphabetical sorting will see the "0" though and sorts differently. Bruno

Re: [more absurd]

2022-07-03 Thread Bruno Barbier
Uwe Brauer writes: > > I am confused: > > https://en.wikipedia.org/wiki/Natural_number > > States that Some definitions, including the standard ISO > 8-2,[3][a] begin the natural numbers with 0, so I thought this is > standard emacs/org uses. I don't know, sorry. > This seems not to be the

Re: [more absurd] (was: org-table-sort-lines (numerically) leaves 0 separated)

2022-07-03 Thread Bruno Barbier
Uwe Brauer writes: > Consider > > | 2 | > | 1 | > | 1 | > | 0 | > | | > | | > > (org-table-sort-lines nil nil nil nil t) (numerically 'n' gives) ... > > So no empty lines, what the hell is going on here? The reason is probably that the function 'string-to-number' return 0 for anything

Re: org-babal-R-command

2022-06-28 Thread Bruno Barbier
Naresh Gurbuxani writes: > In my windows computer, R is installed at c:/Program Files/Microsoft/R > Open/R-3.5.1/bin > > Notice two spaces: “Program Files” and “R Open” > > How can I set the variable org-babel-R-command? > > I tried > (setq org-babel-R-command “c:/Progra~1/Microsoft/R

Re: C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-26 Thread Bruno Barbier
previous/next item in the current list, but only if ‘org-support-shift-select’ is off(6). If not, you can still use paragraph jumping commands like ‘C-’ and ‘C-’ to quite similar effect. Bruno > > > El 25/06/2022 a las 9:47, Bruno Barbier escribió: >> Hi Ypo,

Re: C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-25 Thread Bruno Barbier
Hi Ypo, Ypo writes: > Hi, Bruno > > Yes, I tried your assertion for bug-hunter, but it didn't work. > > (unless (eq 'universal-argument (keymap-lookup global-map "C-u")) > (error "C-u has been redefined")) > I'm not sure in what way it didn't work and I didn't try bug-hunter yet.

Re: C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-24 Thread Bruno Barbier
Ypo writes: > C-h k C-u C-SPC returns: > > C-u C-SPC is undefined In my emacs (28 and 29), with or without "-Q": C-h k C-u => (universal-argument) My emacs doesn't let me query: C-h k C-u C-SPC What about your question about debugging in the other thread ? Did you try what I

Re: Elisp assertion for debugging

2022-06-19 Thread Bruno Barbier
Ypo writes: > I am trying to debug my init file: C-u prefix is not working. > > I am using the elisp-bug-hunter package that has saved me many times in > the past. But it doesn't work fine this time though, so it seems I need > an “assertion elisp” to debug my init file. > > What elisp

Re: Keybinding doubt about ARG

2022-06-19 Thread Bruno Barbier
: > > After 0 kbd macro iterations: command-execute: Keyboard macro terminated > by a command ringing the bell > > Best regards > > El 19/06/2022 a las 18:49, Bruno Barbier escribió: >> Ypo writes: >> >>> Is it possible to use ARG when defining keybindings

Re: Keybinding doubt about ARG

2022-06-19 Thread Bruno Barbier
Ypo writes: > Is it possible to use ARG when defining keybindings? > > For the command (scroll-up-command ARG) I want to define this > keybind: > > > (define-key global-map (kbd "M-n") 'scroll-up-command 1) > > > But: > > eval-region: Wrong number of arguments: define-key, 4 I don't think

Re: [BUG] ob-shell: cmdline and stdin broken when used with TRAMP

2022-06-18 Thread Bruno Barbier
gned the copyright papers. Bruno >From 9e8c114b738ddc633b50ca48e828676b92be784f Mon Sep 17 00:00:00 2001 From: Bruno BARBIER Date: Sat, 18 Jun 2022 09:48:01 +0200 Subject: [PATCH] ob-shell: Use 'process-file' when stdin or cmdline lib/ob-shell.el (org-babel-sh-evaluate): Use 'process-file' (instead of 'call-process-s

Re: How to add font-lock keywords

2021-12-21 Thread Bruno Barbier
Hi, Daniel Fleischer writes: > Hi, I want to add custom keywords to be highlighted. I used > (font-lock-add-keywords nil '(("books" . org-level-4)) t) > > but nothing happens after I restart orgmode or call 'font-lock-update'. The following works for me, in an org mode buffer: , |

Re: [O] Org-file "path"-type links

2019-07-26 Thread Bruno Barbier
Hi Mark, Posting your message as text might increase your chance to get an answer here. "Mark E. Shoulson" writes: [...] > I don't know of any way that org-mode has to distinguish such things > (apart from "name the headlines uniquely, moron," which to be sure is > one way to do it), [...]

Re: [O] Exporting in html with numeric references to headlines

2019-07-16 Thread Bruno Barbier
Hi Shérab, Shérab writes: > Dear Bruno and Nick, > > Many thanks to both of you for having taken the time to respond to my > question. > > Actually, my initial problem was in a larger document. There the links > didn't work but I now think it was because I did something wrong. When > writing

Re: [O] Exporting in html with numeric references to headlines

2019-07-15 Thread Bruno Barbier
Hi Shérab, Shérab writes: > Dear all, > > Assume the following document: > > === > > #+title: test1 > > * Introduction > > Monads will be explained in chapter [[#monads]] > > * Monads > :PROPERTIES: > :CUSTOM_ID: monads > :END: > > Welcome to the monads chapter. > > === > > When I

Re: [O] Bug: Tramp sudo links do not work when using short notation [9.1.9 (release_9.1.9-65-g5e4542 @ /home/guraltsev/.emacs.d/straight/build/org-plus-contrib/)]

2019-07-09 Thread Bruno Barbier
Hi Gennady, Gennady Uraltsev writes: > Hyperlinking to a file in an org-mode file using tramp does not work as > expected. Consider this file: > > ** > > This link works > [[/sudo:root@localhost:/etc/hosts]] > this link doesn't > [[/sudo::/etc/hosts]] > > * >

Re: [O] Haskell org-mode problems redux

2019-05-30 Thread Bruno Barbier
Hi Lawrence, Lawrence Bottorff writes: > I've been trying to get Haskell to work in babel code blocks for a long > time. A year or so ago I tried and eventually gave up. I tried again > recently . . . same old problems, i.e., the code block is evaluated > exclusively by the ghci REPL, which

Re: [O] Bug: org-catch-invisible-edits still allows some invisible edits [9.1.9]

2019-05-17 Thread Bruno Barbier
Vlad Shcherbina writes: > Steps to reproduce: > 1. runemacs.exe -Q > 2. In the scratch buffer, M-x org-mode > 3. M-: (setq org-catch-invisible-edits 'show-and-error) > (could be also reproduced with 'smart) > 4. Replace the content of the scratch buffer with the following: > * hello > **

Re: [O] Parens matching off in babel code block

2019-05-02 Thread Bruno BARBIER
Hi Lawrence, Lawrence Bottorff writes: > Not sure what you mean. This is the problem, i.e., just this code > > #+begin_src emacs-lisp > (> 1 2) > #+end_src > > in an org file produces a parens mismatch, which, BTW, check-parens also > flags. Anywhere else (e.g., *scratch*) in Emacs this

<    1   2