Re: Error during PDF export but the PDF file is exported

2022-10-20 Thread Max Nikulin
idea to compare wall (system) time and file time. They may have different resolution or may have significant offset. Notice that the following pending patch modifies time handling in `org-compile-file', however I have not tested it for remote files: Max Nikulin. [PATCH v2] org-macs.

Re: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9.5.2/)]

2022-10-21 Thread Max Nikulin
On 21/10/2022 10:16, Ihor Radchenko wrote: Max Nikulin writes: I am apologizing if my comments make no sense. I remember a thread on improper handling on id links in ox-html, so I am a bit surprised that a link to the whole file (if I got the goal of the patch correctly, of course) is the only

Re: Line breaks and brackets in LaTeX export

2022-10-21 Thread Max Nikulin
On 21/10/2022 10:41, Ihor Radchenko wrote: Max Nikulin writes: On 20/10/2022 12:07, Ihor Radchenko wrote: When transcoding children (e.g. table rows), the sibling rows can always be accessed using org-export-get-previous-element and org-export-get-next-element. Decision if escaping is

Re: Line breaks and brackets in LaTeX export

2022-10-21 Thread Max Nikulin
On 21/10/2022 10:34, Ihor Radchenko wrote: Juan Manuel Macías writes: I see the tabularray issue simply as an example that \empty is not as reliable as we thought. There might be other LaTeX packages throwing errors on \\\empty. My impression is that tabularray has an ambitious goal to replace

Re: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9

2022-10-22 Thread Max Nikulin
On 22/10/2022 12:03, Ihor Radchenko wrote: Probably, href=file.org is treated as a link to resource packed inside .odt file. At least internal anchors should be "#...". I have not figure out how to embed another document (attach a file) to see its link href. I tried to look through https:/

Re: Line breaks and brackets in LaTeX export

2022-10-23 Thread Max Nikulin
On 22/10/2022 12:15, Ihor Radchenko wrote: as long as the next line does not match "^[ \t]*\\[" Verse package defines \\! and \\>. The only precaution that search pattern should ignore \\\[0pt]\] that is a display equation "0pt]" I propose the following: 1. Merge my patch with \\[0pt] safe

Re: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9

2022-10-24 Thread Max Nikulin
On 23/10/2022 11:29, Ihor Radchenko wrote: Max Nikulin writes: pandoc-2.5 generates a link that can not be opened by LibreOffice as well (no leading ../). echo 'A' | pandoc -f html -t odt -o pandoc.odt A May you ask pandoc people about this? Pandoc, I have installed, is too old

Re: [BUG] Error in html form of org manual [9.5.5 (9.5.5-ge58bd0 @ /home/jds6696/.emacs.d/straight/build/org/)]

2022-10-25 Thread Max Nikulin
On 25/10/2022 07:54, Justin Silverman wrote: Try going to this link: https://orgmode.org/manual/Images-in-LaTeX-export.html It just takes you to the Latex Export page. Most of the links on the latex export page don't seem to go anywhere. I expect that the problem was fixed some time ago. Pe

Re: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9

2022-10-25 Thread Max Nikulin
On 22/10/2022 12:03, Ihor Radchenko wrote: Probably, href=file.org is treated as a link to resource packed inside .odt file. You are right. file.odt is a virtual folder representing ZIP container, so relative links to external files should be prefixed with "../". https://docs.oasis-open.org

Re: [off-topic] E-readers and Org-Mode

2022-10-25 Thread Max Nikulin
On 23/10/2022 22:16, Juan Manuel Macías wrote: As I am beginning to have serious eye fatigue problems, I am thinking of buying an e-ink device, not to read books but to read documents. My idea is that it be an Android device and that it supports the installation of apk, to be able to install Ter

Re: Best android app

2022-10-25 Thread Max Nikulin
On 23/10/2022 22:27, Ypo wrote: https://git.sr.ht/~bzg/worg/tree/master/item/org-faq.org#L4502 I have cloned the "repository" hoping it works like in github, but I see no option to edit. SourceHut does not have an online editor, it is necessary to clone the repository to local disk. Altern

Re: Best android app

2022-10-25 Thread Max Nikulin
On 20/10/2022 06:46, Jean Louis wrote: * Max Nikulin [2022-10-19 15:53]: The person may be already familiar with that non-free apps. We had a chance to ask about features missed in free applications and actual experience. Perhaps the same tasks may be performed in a bit different and less

desktop notifications (Re: idea for capture anywhere in x)

2022-10-25 Thread Max Nikulin
On 26/10/2022 12:05, Samuel Wales wrote: You may hook notifications-notify to org-capture-after-finalize-hook to see notification when the capture is successful. sounds like it could be reassuring if it is not obtrusive. Try the following command to get impression notify-send "summary"

Re: desktop notifications (Re: idea for capture anywhere in x)

2022-10-26 Thread Max Nikulin
On 26/10/2022 13:22, Samuel Wales wrote: i have the daemon and the binary but notify-send "summary" "text" seems to do nothing obvious. called from shell mode. my emacs is maximized. so is firefox. Does notify-send complain (with some delay) concerning timeout during attempt to connect to d

Re: desktop notifications (Re: idea for capture anywhere in x)

2022-10-26 Thread Max Nikulin
On 26/10/2022 15:07, Samuel Wales wrote: can dunst go away after a short period? I have never tried it. Unsure if it has enough configuration options. Does it mean that you get notification displayed? Have you tried? notify-send --expire-time 2000 ... i launch dbus manually as fluxbox

Re: bug#58774: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-26 Thread Max Nikulin
On 26/10/2022 15:21, Jean Louis wrote: (defun browse-safe-url (url &optional arg) "Browse URL with b" (let ((username "joedoe")) ;; different username than my own ;; Insecurity settings for personal DISPLAY only (shell-command "xhost +") ;; Browse URL

[BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-26 Thread Max Nikulin
Hi, At first I am apologizing. I believed that a dedicated report raising this issue was posted to this mailing list by somebody. I can not find such message and in my notes the heading is linked to a quite general discussion related to source blocks. Consider the following source block ---

Re: [PATCH v2 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier

2022-10-26 Thread Max Nikulin
On 26/10/2022 21:53, Samuel W. Flint wrote: * lisp/org-clock.el (org-clock-in-switch-to-state, org-clock-out-switch-to-state): Allow `org-clock-{in,out}-switch-to-state` to be an alist of current/next-state pairs. Samuel, please, consider using --in-reply-to and perhaps --thread options of git

Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-26 Thread Max Nikulin
On 27/10/2022 11:22, Jean Louis wrote: * Max Nikulin [2022-10-27 06:21]: Expected result: No code from the Org buffer and linked files is executed prior to confirmation from the user. Should that be or is it a general policy for Org mode? I am afraid, it is unrealistic. Spreadsheet feature

Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-26 Thread Max Nikulin
On 26/10/2022 11:58, Ihor Radchenko wrote: Yes. From org-capture-templates docstring: %x Content of the X clipboard. Ihor, I am afraid there are a couple of pitfalls with "%x" for Samuel since he prefers to keep Emacs hidden so can not check result. 1. If something goes wrong,

Re: ob-clojure eval error when has comment at end of code line

2022-10-27 Thread Max Nikulin
On 27/10/2022 19:25, Daniel Kraus wrote: - I wanted to add a test, how can I run only test-ob-clojure? See testing/README make BTEST_RE=ob-closure

Re: bug#58774: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-27 Thread Max Nikulin
On 27/10/2022 11:55, Jean Louis wrote: Now is clear that main problem here is that Org advertises somewhere to be "text" in MIME context, while it is not, it is by default "application" and thus unsafe, see: ... Text Media Types https://datatracker.ietf.org/doc/html/rfc6838#section-4.2.1 I d

Re: [off-topic] E-readers and Org-Mode

2022-10-27 Thread Max Nikulin
rable performance. Where was a period when LCD monitors were slow in comparison to CRT ones and people complained concerning annoying trails on dynamic images... On Tue, Oct 25, 2022, 08:27 Fraga, Eric wrote: On Tuesday, 25 Oct 2022 at 21:37, Max Nikulin wrote: > E-ink displays are

Re: org-x11idle-exists-p with emacs --daemon

2022-10-27 Thread Max Nikulin
On 28/10/2022 05:31, Julien Cubizolles wrote: For me, org-x11idle-exists-p is always nil at startup, but is set to true if I eval it later on. I guess it's because I'm starting Emacs in daemon mode, (as a systemd user service actually), and org-x11idle-exists-p relies on (eq window-system 'x) wh

Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-27 Thread Max Nikulin
On 28/10/2022 10:19, Ihor Radchenko wrote: Jean Louis writes: * Max Nikulin [2022-10-27 06:21]: Expected result: No code from the Org buffer and linked files is executed prior to confirmation from the user. Should that be or is it a general policy for Org mode? Yes, it is a general policy

Re: org-x11idle-exists-p with emacs --daemon

2022-10-27 Thread Max Nikulin
On 28/10/2022 11:29, Ihor Radchenko wrote: Max Nikulin writes: I am not familiar with `org-x11idle-exists-p', but a problem with access of X clipboard from :immediate-finish capture templates may be quite similar. The following command creates a hidden X11 frame if no visible one e

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-27 Thread Max Nikulin
On 28/10/2022 11:59, Samuel Wales wrote: i launch emacs from xinit or fluxbox menu. sometimes from a shell. i run emacs as a cli batch thing from a shell. Then you should always have an X11 Emacs frame, maybe behind other windows, and the following command should work emacsclient --eval '

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Max Nikulin
On 28/10/2022 15:39, Dr. Arne Babenhauserheide wrote: Max Nikulin writes: Then you should always have an X11 Emacs frame, maybe behind other windows This sounds like a tray application. Do you know whether something like that already exitst (mark one frame as system tray entry)? I was

Re: [PATCH] Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-28 Thread Max Nikulin
On 28/10/2022 10:15, Ihor Radchenko wrote: See the attached tentative patch. I tried to balance between annoying users with query and not evaluating unsafe code: '-quoted lists and symbols are still evaluated without prompt. Let me know if you see any potential issues. If I got it right, it p

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Max Nikulin
On 29/10/2022 09:59, Ihor Radchenko wrote: Max Nikulin writes: %(org-get-x-clipboard 'PRIMARY) " :immediate-finish t) However to be at the safe side I would check if (org-get-x-clipboard 'PRIMARY) value is not nil at first. My approach to this is simply showi

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Max Nikulin
On 29/10/2022 06:07, Samuel Wales wrote: i am still lost in this and it will take me a while. .. it is not a top priority for me at this time as long as the ff org-capture extension works Samuel, feel free came back with this question when you will have enough spare time and motivation to co

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-29 Thread Max Nikulin
On 29/10/2022 13:03, Samuel Wales wrote: fluxbox is the only wm or de that seems to do everything i need. Then you should have no problem to call `org-capture' using emacsclient as a menu entry action. Does it work for you? From my point of view "capture anywhere in x" task should be roughly s

desktop notifications (Re: idea for capture anywhere in x)

2022-10-29 Thread Max Nikulin
On 29/10/2022 11:59, Ihor Radchenko wrote: Functions in org-capture-before-finalize-hook have access to the contents of the capture buffer text. So, one can call `start-process' to run notify-send shell command and put the actual captured text into the notification (displayed briefly or for long

Re: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)

2022-10-29 Thread Max Nikulin
On 29/10/2022 11:05, Ihor Radchenko wrote: As explained in the above quote, it may be reasonable to display stderr in the shell (and possibly other) src blocks upon execution. + Stderr may contain important information even if the code block succeeds - Displaying stderr will raise *Error* bu

Re: org-x11idle-exists-p with emacs --daemon

2022-10-29 Thread Max Nikulin
On 28/10/2022 11:28, Ihor Radchenko wrote: * lisp/org-clock.el (org-x11idle-exists-p): Do not check if load-time `window-system' is `x'. Instead, rely on the check in `org-user-idle-seconds'. I would say that even there it is not strictly correct to test `window-system', perhaps `x-display-l

Re: [off-topic] E-readers and Org-Mode

2022-10-29 Thread Max Nikulin
On 28/10/2022 00:53, Juan Manuel Macías wrote: Everything said in this threed is very interesting, but now I am hesitating between buying one of these devices or simply a 10-inch tablet with a good screen, and then applying all possible blue light filters to it. Another option is a hardware filt

Re: org-x11idle-exists-p with emacs --daemon

2022-10-29 Thread Max Nikulin
used instead? (locate-file command exec-path exec-suffixes 1)) https://emacs.stackexchange.com/questions/332/how-can-i-find-the-path-to-an-executable-with-emacs-lisp On 30/10/2022 08:33, Ihor Radchenko wrote: Max Nikulin writes: In server.el I found (frame-parameter frame 'displa

Re: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9

2022-10-31 Thread Max Nikulin
On 31/10/2022 13:13, Ihor Radchenko wrote: You are right. file.odt is a virtual folder representing ZIP container, so relative links to external files should be prefixed with "../". Thanks for checking! See the attached tentative patch. -(org-export-file-uri raw-path)) +

Re: Line breaks and brackets in LaTeX export

2022-11-01 Thread Max Nikulin
On 01/11/2022 08:51, Ihor Radchenko wrote: Max Nikulin writes: On 22/10/2022 12:15, Ihor Radchenko wrote: as long as the next line does not match "^[ \t]*\\[" Verse package defines \\! and \\>. The only precaution that search pattern should ignore \\\[0pt]\] that is a display

Re: [PATCH] [BUG] org.el: Fix first call of `org-paste-subtree'

2022-11-01 Thread Max Nikulin
On 01/11/2022 08:45, Ihor Radchenko wrote: Since I have no objections to the original patch, applied now. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=57abbd4b928752f2770898b09bbac8126b9d0eb3 I also reviewed the usage of (current-kill 0) in the code and applied two additional

export and cross links between files

2022-11-01 Thread Max Nikulin
On 01/11/2022 12:48, Ihor Radchenko wrote: Max Nikulin writes: It seems org-id.el should be extended to handle some features common to all formats such as custom suffix instead of ".org" Could you please elaborate? Currently ox-html has an option to replace links to .org files w

Re: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9

2022-11-01 Thread Max Nikulin
On 01/11/2022 12:40, Ihor Radchenko wrote: See the attached new version of the patch. diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 15a9cf2de..e4fb7eb84 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -2688,7 +2688,16 @@ (defun org-odt-link (link desc info) ((member type

Re: org-export: How to handle links to the exported file?

2022-11-01 Thread Max Nikulin
On 01/11/2022 12:47, Ihor Radchenko wrote: Max Nikulin writes: In HTML top or #top works as a link to the beginning of the document. I am curious if ODF has a similar feature. I mean ID at the top of the same file that generates file.org link instead of internal one for both HTML and ODF

Re: Maxima code blocks does not work in windows revisited

2022-11-02 Thread Max Nikulin
On 02/11/2022 11:47, Ihor Radchenko wrote: (for reference, this email is a followup of https://orgmode.org/list/ca+ikm3wqa33xp4c3pvv+f2a-gn0dbezsdx6vf2crd+37+u6...@mail.gmail.com) Ihor, you recently applied an alternative patch to Org main branch. Emacs tree still has ob-maxima.el with single

Re: Line breaks and brackets in LaTeX export

2022-11-02 Thread Max Nikulin
On 02/11/2022 13:46, Ihor Radchenko wrote: Ihor Radchenko writes: Should we, instead of using exact "\\[0pt]" string for line breaks, define a new LaTeX command and then clean it up? This will distinguish between \\[0pt] added by users explicitly and the ones generated automatically by Org. I

Re: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9

2022-11-02 Thread Max Nikulin
On 02/11/2022 12:04, Ihor Radchenko wrote: See the attached new version of the patch. The patch looks reasonable. I have not tried it in action though. Max Nikulin writes: [[file:file-b.org]] "../file-b.org" is appropriate default description. I do not expect "../&

Re: Maxima code blocks does not work in windows revisited

2022-11-02 Thread Max Nikulin
On 03/11/2022 03:11, Leo Butler wrote: On Wed, Nov 02 2022, Max Nikulin wrote: On 02/11/2022 11:47, Ihor Radchenko wrote: (for reference, this email is a followup of https://orgmode.org/list/ca+ikm3wqa33xp4c3pvv+f2a-gn0dbezsdx6vf2crd+37+u6...@mail.gmail.com) Ihor, you recently applied an

Re: Init.el need just for org-mode?

2022-11-03 Thread Max Nikulin
On 03/11/2022 00:31, Renato Pontefice wrote: Init.el Need just for org -mode? Not for emacs right? No, in the init file you may adjust other Emacs settings as well https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html To avoid syntax errors you may use easy customization in

Re: Line breaks and brackets in LaTeX export

2022-11-03 Thread Max Nikulin
Ihor Radchenko writes: These arguments mean that auto-cleaning \\[0pt] is not always safe and may be a subject of surrounding LaTeX context. I still believe that something\\[0pt]%__ORG_EXPORT__ is quite safe to remove (depending on the following character) and unlikely harmful if remain

Re: Maxima code blocks does not work in windows revisited

2022-11-03 Thread Max Nikulin
On 03/11/2022 17:01, Fraga, Eric wrote: On Thursday, 3 Nov 2022 at 09:35, Max Nikulin wrote: maxima --very-quiet -r "batchload(\"c:\\Temp\\maxima-XX.max\")"$ Should the $ not be within the quotes? Does "$" have any special meaning in cmd.exe? I do not

[BUG] ob-shell :stdin is broken on the main branch

2022-11-03 Thread Max Nikulin
Try the following source code blocks: #+begin_src elisp (require 'ob-shell) #+end_src #+name: lbl #+begin_example line 1 line 2 #+end_example #+begin_src bash :stdin lbl cat #+end_src Second one signals "Wrong number of arguments" at least in Emacs-26 with Org main HEAD. Org bugfix bran

Re: processing a literal example line by line in a shell source block?

2022-11-03 Thread Max Nikulin
On 03/11/2022 01:17, Greg Minshall wrote: hi. i have a text in a named #+begin_example ... #+end_example block. i would like to process this text line by line in a shell (bash, say) code block. but, it appears that the individual lines are not separated, but passed as one long string to the sou

Re: [BUG] ob-shell :stdin is broken on the main branch

2022-11-03 Thread Max Nikulin
On 04/11/2022 09:42, Ihor Radchenko wrote: Max Nikulin writes: #+name: lbl #+begin_example line 1 line 2 #+end_example #+begin_src bash :stdin lbl cat #+end_src Second one signals "Wrong number of arguments" at least in Emacs-26 with Org main HEAD. This is only on Emacs 26.

Re: Line breaks and brackets in LaTeX export

2022-11-03 Thread Max Nikulin
On 04/11/2022 11:23, Ihor Radchenko wrote: Max Nikulin writes: Ihor Radchenko writes: These arguments mean that auto-cleaning \\[0pt] is not always safe and may be a subject of surrounding LaTeX context. I still believe that something\\[0pt]%__ORG_EXPORT__ is quite safe to remove

Re: org table proposal: merge and split cells in org-tables

2022-11-04 Thread Max Nikulin
I believe that tables in Org are already too complicated due to the spreadsheet feature. However those who are brave enough to add cells spanning columns and rows may take some inspiration from reStructuredText, in particular horizontal lines marked by "+===+===+" https://docutils.sourceforge.

Re: Docstrings and literate programming (good practices?)

2022-11-04 Thread Max Nikulin
On 04/11/2022 10:03, Samuel Wales wrote: for example, you have a body of non-literate elisp code, and you have a manual. it could be redundant to describe commands and what they do and their options, if the docstrings are good. There is Sphinx in Python world that allows to combine guide page

Re: [PATCH] org.el: Warning for unsupported markers in `org-set-emphasis-alist'

2022-11-04 Thread Max Nikulin
On 04/11/2022 13:53, Ihor Radchenko wrote: I have reviewed the patch, and I'd like to suggest a new version with the following changes: Great! I have not tried your patch in action, but I do not see substantial changes. 1. Use `set-default-toplevel-value' instead of `set' that might be

Re: Inequalities in math blocks

2022-11-05 Thread Max Nikulin
On 07/10/2021 22:05, Max Nikulin wrote: On 07/10/2021 20:05, Timothy wrote: Org should rewrite < and > to < and > to avoid broken HTML, or as < and  in general. I think we’ve drifted a bit to the differences in processing (where the `\( ... \)' vs `$ ... $' comments are

Re: CI tests

2022-11-05 Thread Max Nikulin
On 06/11/2022 02:42, Christian Köstlin wrote: From time to time some tests fail, because the time when e.g. a timestamp is written to the buffer is different to when the timestamp is calculated in the test (the minute just flips there). The testing/org-test.el file defines the `org-test-at-ti

[PATCH] org-attach.el: ID to path functions may return nil

2022-11-07 Thread Max Nikulin
ars to handle nil return value fine. From 19e51a0112353a377deef64a83c02c5ee393a15d Mon Sep 17 00:00:00 2001 From: Max Nikulin Date: Mon, 7 Nov 2022 23:48:02 +0700 Subject: [PATCH] org-attach.el: ID to path functions may return nil * lisp/org-attach.el (org-attach-dir-from-id): Ignore nil values returne

Document management system with Org?

2022-11-07 Thread Max Brieiev
Org newbie here. Org advertizes itself as a note management and organizer system. How suitable is it to manage documents? Documents are files, usually in pdf format, stored as blobs on file system. I need to attach some meta data to them. Like tags, for example, 'invoice' or 'contract' or some r

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

2022-11-08 Thread Max Nikulin
Am I the only person who gets 3 unexpected results: FAILED ob-java/lint-header-args-block FAILED ob-java/lint-header-args-buffer FAILED ob-java/lint-header-args-heading Emacs-27.1. Example of failure: Test ob-java/lint-header-args-block backtrace: signal(ert-test-failed (((should-

Re: Document management system with Org?

2022-11-08 Thread Max Brieiev
Thank you. This was very useful. Seems like attachments will work for me. Also seems like I can use org capture templates to record metadata for different types of documents. Now I need to dig in to the Org manual...

Re: [PATCH v2] org-attach.el: ID to path functions may return nil

2022-11-09 Thread Max Nikulin
case effect is more important than purpose. The function is too specific. P.S. At first I believed that you have some objections concerning changed role of the first function in the list, not just how it is documented. From dfc35f46f59d5938f1a520b860c3eda36f49a9d5 Mon Sep 17 00:00:00 2001 From:

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-11-13 Thread Max Nikulin
On 13/11/2022 11:54, Ihor Radchenko wrote: Max Nikulin writes: On 26/10/2022 11:58, Ihor Radchenko wrote: Yes. From org-capture-templates docstring: %x Content of the X clipboard. Ihor, I am afraid there are a couple of pitfalls with "%x" for Samuel since he prefe

Re: [PATCH v2] org-attach.el: ID to path functions may return nil

2022-11-13 Thread Max Nikulin
On 10/11/2022 14:19, Ihor Radchenko wrote: Max Nikulin writes: P.S. At first I believed that you have some objections concerning changed role of the first function in the list, not just how it is documented. I had. Most importantly, because we are changing the existing meaning of `org-attach

Re: Line breaks and brackets in LaTeX export

2022-11-13 Thread Max Nikulin
On 29/10/2022 09:36, Ihor Radchenko wrote: Ihor Radchenko writes: Then [0pt] should it be. At least for now, before we have a cleaner solution. See the attached patch. Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=b93a61af9c93d21c56cf883630e52f36076e40bd

Re: [PATCH v2] org-attach.el: ID to path functions may return nil

2022-11-14 Thread Max Nikulin
On 14/11/2022 10:29, Ihor Radchenko wrote: I went through the patch and tried to clarify the wording. Especially in the defcustom docstring. I do not mind in general. Please, remove a stray space in the defcustom. I also added the dumb fallback to the default value. I feel that otherwise th

Re: OrgModeClockingXBar - see a task when you clock in in your bar and not only

2022-11-15 Thread Max Nikulin
On 15/11/2022 17:57, mag_dex wrote: $ emacsclient --eval '(if (org-clocking-p)(org-clock-get-clock-string) -1)’ Consider adding `org-no-properties'.

Re: [PATCH v2] org-attach.el: ID to path functions may return nil

2022-11-15 Thread Max Nikulin
On 15/11/2022 09:41, Ihor Radchenko wrote: Max Nikulin writes: Please, remove a stray space in the defcustom. Hmm. Done. I just have a habit to add space in the first item in a list because it helps auto-indentation. I had an impression that something was wrong with indentation of next

Re: [OT] org and diff

2022-11-15 Thread Max Nikulin
On 13/11/2022 13:06, Samuel Wales wrote: On 11/12/22, Ihor Radchenko wrote: I have the following in my ~/.gitconfig: [diff "org"] xfuncname = "^(\\*+ +.*)$" Thank you for sharing this. I was sure it should be possible, but I was not motivated enough to configure hunk headers for elisp and

Debugging firefox extension (Re: idea for capture anywhere in x)

2022-11-16 Thread Max Nikulin
discussing desktop notifications and temporary rising emacs window, I am unsure if capture indication is related to the firefox extension, notification daemon, or emacs. this is with or without selecting any text. could a kind soul remind me how to debug this again? Max Nikulin. Re: org

Reliability of org-protocol browser extensions

2022-11-17 Thread Max Nikulin
On 17/11/2022 14:18, Jean Louis wrote: I am using reliable org-protocol extension, Out of curiosity, can you quickly capture let say 20 tabs (a second per tab)? Is the extension able to detect that scheme handler is not properly configured at the level of desktop environment? that can "st

Re: Debugging firefox extension (Re: idea for capture anywhere in x)

2022-11-17 Thread Max Nikulin
On 17/11/2022 10:16, Samuel Wales wrote: On 11/16/22, Max Nikulin wrote: Since recently we were discussing desktop notifications and temporary rising emacs window, I am unsure if capture indication is related to the firefox extension, notification daemon, or emacs. my brain is not connecting

Re: test-org-table/sort-lines: Failing test on macOS

2022-11-20 Thread Max Nikulin
On 20/11/2022 11:18, Ihor Radchenko wrote: Max Nikulin writes: From my point of view it is a reason to file an Emacs bug because I get (string-collate-lessp "a" "B" "C" t) ; => t See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59275 According

Re: test-org-table/sort-lines: Failing test on macOS

2022-11-21 Thread Max Nikulin
On 21/11/2022 10:15, Ihor Radchenko wrote: Max Nikulin writes: However, I am not sure if ignoring locale is something we really want. WDYT? I think we should keep `string-collate-lessp' in the `org-table-sort-lines' implementation. Users expect sorting accordingly to their locale

Re: test-org-table/sort-lines: Failing test on macOS

2022-11-22 Thread Max Nikulin
On 22/11/2022 08:14, Ihor Radchenko wrote: Max Nikulin writes: 2. `org-sort-list' 5. `org-sort-entries' `downcase' is used, not proper case folding, so a potential issue `downcase' is used to determine user input about sorting type. Not for sorting itself. See cas

Re: test-org-table/sort-lines: Failing test on macOS

2022-11-23 Thread Max Nikulin
On 23/11/2022 17:37, Ihor Radchenko wrote: Max Nikulin writes: Strings to sort are passed either through `identity' or through `downcase'. Thanks for the pointer. Now, I am getting more confused though. Do we even need to use `string-collate-lessp' then? I think we do beca

Re: test-org-table/sort-lines: Failing test on macOS

2022-11-23 Thread Max Nikulin
On 23/11/2022 22:27, Max Nikulin wrote: (setq lst '("semana" "señor" "sepia")) (sort lst #'string-lessp) ; => ("semana" "sepia" "señor") (sort lst #'string-collate-lessp) ; => ("semana" "s

Re: emphasis in embedded text

2022-11-25 Thread Max Nikulin
On 25/11/2022 10:56, David Zelinsky wrote: I wanted to have some text emphasized when immediately following a comma. In some cases it is possible to use shy hyphen,\-/instead/ of zero width space.

Re: test-org-table/sort-lines: Failing test on macOS

2022-11-29 Thread Max Nikulin
On 26/11/2022 09:05, Ihor Radchenko wrote: Max Nikulin writes: This sounds like something to be adapted to Emacs upstream. I suggested to change `string-collate-lessp' fallback behaviour to use `downcase' when IGNORE-CASE is non-nil. See my last message in bug#59275. I do not s

Re: [HELP] Translate/extend `org-clock-clocktable-language-setup' for Spanish/Dutch/more languages

2022-11-30 Thread Max Nikulin
On 27/11/2022 07:06, Ihor Radchenko wrote: (defcustom org-clock-clocktable-language-setup '(("en" "File" "L" "Timestamp" "Headline" "Time" "ALL" "Total time" "File time" "Clock summary at") ("es" "Archivo" "N" "Fecha y hora" "Tarea" "Tiempo" "TODO" "Tiempo total" "Tiempo a

Re: Release 9.6

2022-11-30 Thread Max Nikulin
On 29/11/2022 13:58, Bastien wrote: Last but not least: thanks to Ihor his truly amazing work and for being the de facto maintainer. I think, Ihor's role in this release is crucial. He spent a lot of time fixing bugs and reviewing patches, not to mention the org-fold framework to overcome pe

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-12-03 Thread Max Nikulin
On 14/11/2022 09:06, Ihor Radchenko wrote: Max Nikulin writes: Depending of particular capture template (even with :immediate-finish t) empty selection may or may not be an error. In Samuel's case it is an error. Unfortunately, while the template is processed, signaled errors are caugh

Re: [HELP] Translate/extend `org-clock-clocktable-language-setup' for Spanish/Dutch/more languages

2022-12-06 Thread Max Nikulin
On 04/12/2022 18:27, Ihor Radchenko wrote: Max Nikulin writes: For some reason I believed that gettext was available in Emacs. ... It would indeed be interesting to have a unified approach to bring translations into Emacs. I'd discuss it on emacs-devel. I found the following thread:

Re: Syntax question: What is BORDER in 4.17. Text Markup?

2022-12-06 Thread Max Nikulin
On 07/12/2022 01:28, Jens Lechtenboerger wrote: Hi there, the syntax for Text Markup such as *bold* at [1] specifies PRE MARKER CONTENTS MARKER POST with CONTENTS as BORDER BODY BORDER and BORDER as “Any non-whitespace character.” What is the role of BORDER here? Does it really exist? I thin

Re: Two problems with export to Google calendar

2022-12-07 Thread Max Nikulin
On 07/12/2022 19:56, Ihor Radchenko wrote: Neil Jerram: X-WR-TIMEZONE:BST which I think was intended to mean British Summer Time; but Google interpreted it as Bangladesh Standard Time. As a result, my events from Org are shown at the wrong time in Google calendar. By default, ox-icalendar t

Re: [PATCH] Autoload `org-assert-version' and remove org-loaddefs.el

2022-12-07 Thread Max Nikulin
On 07/12/2022 18:43, Ihor Radchenko wrote: That said, I find David Masterson's suggestion promising: (if (and (featurep 'org) (< org-version 9.6)) `version<'? Mixed install may be still a problem in the case of bug fix ("patch" component of the version) release.

Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks

2022-12-08 Thread Max Nikulin
On 08/12/2022 18:39, Ihor Radchenko wrote: h...@heagren.com writes: The attached patch forces example environments to be printed thus: ,--- | \begin{example}\label{ex:foo} | My example here | \end{example} `--- Applied onto bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/co

Re: Macro: exporting roman numerals formatted as small-caps

2022-12-08 Thread Max Nikulin
On 08/12/2022 19:38, Carlos Martínez wrote: #+MACRO: sc (eval (if (org-export-derived-backend-p org-export-current-backend 'latex) (concat "@@latex:\\textsc{@@" $1 "@@latex:}@@") (concat "@@odt:@@"$1"@@odt:@@"))) ^ ^ Your missed spaces around $1, but it is unlikely

Re: Pasting an image with org-download in org-capture buffer

2022-12-08 Thread Max Nikulin
On 08/12/2022 22:12, Alexei Gilev wrote: However, org-capture buffers are indirect buffers, so the |buffer-file-name is nil, so it fails.| Org sources are full of (buffer-file-name (buffer-base-buffer)) expressions. Unfortunately there are enough bugs due to direct usage of `buffer-fil

Re: Org functions in source blocks

2022-12-09 Thread Max Nikulin
On 10/12/2022 03:41, William Denton wrote: #+begin_src emacs-lisp :results raw (org-lookup-all "x" '(remote(test_table, @I$A..@II$A)) nil) #+end_src There is nothing wrong with `org-lookup-all'. It just does not receive arguments you expect. Try #+begin_src emacs-lisp :results raw (list "x"

Re: bash code block runs slow on org 9.6

2022-12-09 Thread Max Nikulin
On 10/12/2022 01:34, Majzoub, Eric wrote: This runs essentially instantaneously in org 9.5.5, but it takes much longer, about 2 seconds or more on org 9.6 An example with no external dependencies: : (require 'ob-shell) #+begin_src bash :results replace :exports none seq 1 200 | tee /dev/nul

Re: Pasting an image with org-download in org-capture buffer

2022-12-10 Thread Max Nikulin
On 10/12/2022 17:08, Ihor Radchenko wrote: Max Nikulin writes: ... but recently added `org--confirm-resource-safe' is affected by this kind of bugs. May you elaborate? `org--confirm-resource-safe' uses variable, not a function. I called `org-tree-to-inderect-buffer',

Re: Can org-attach attach a single file to multiple headlines?

2022-12-10 Thread Max Nikulin
On 11/12/2022 05:12, aroz...@gmail.com wrote: Using org-attach, is it possible to attach a single file to multiple headlines, so that each headline shares the same attachment folder (rather than having each headline have its own attachment folder with its own version of the file)? Headings

Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable

2022-12-10 Thread Max Nikulin
On 11/12/2022 03:28, Tom Gillespie wrote: Here is a patch that improves the ergonomics and thus hopefully the security for the recent changes to check evaluation for cells. Tom, thank you for the patch. Frankly speaking, I was expecting this kind of complains, but I could not suggest any

Re: [PATCH] Merge loaded org-persist index with index file contents

2022-12-11 Thread Max Nikulin
On 11/12/2022 14:59, Timothy wrote: + (setq org-persist--index combined-index +org-persist--index-age (current-time) Please, avoid mixing of system clock and filesystem timestamps. (file-attribute-modification-time (file-attributes file)) should be more reliable. See

Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require)

2022-12-11 Thread Max Nikulin
On 11/12/2022 16:45, Ihor Radchenko wrote: We cannot do much about Emacs' handling of autoloads, but what we can (and should) do is changing org-mouse to become a global minor mode. Then, loading org-mouse will cause no side effects. I am afraid, requirement that loading should not cause side e

Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require)

2022-12-12 Thread Max Nikulin
On 12/12/2022 17:25, Ihor Radchenko wrote: Max Nikulin writes: I am afraid, requirement that loading should not cause side effects is too strict and it will make usage inconvenient. Examples: - ol-info calls `org-link-set-parameters'. We have `org-modules' that can handle calling

Re: Two problems with export to Google calendar

2022-12-12 Thread Max Nikulin
On 12/12/2022 21:00, Ihor Radchenko wrote: Max Nikulin writes: By default, ox-icalendar takes the value of your TZ environment variable. I think, in most cases TZ is not set, so (format-time-string "%Z") is used to get abbreviation (that is ambiguous). On Linux we may try t

<    3   4   5   6   7   8   9   10   11   12   >