Re: \minus entity and LaTeX export

2022-05-14 Thread Max Nikulin
On 14/05/2022 13:30, Ihor Radchenko wrote: Max Nikulin writes: "** Science et al." - ("minus" "\\minus" t "−" "-" "-" "−") + ("minus" "-" t "−" "-" "-"

Re: [BUG] org-babel-load-file can not compile file

2022-05-14 Thread Max Nikulin
On 13/05/2022 17:38, Ihor Radchenko wrote: Max Nikulin writes: It seems, it is a regression caused by the Org commit 0193b543e9ef84bfefe76d55e330d5b1cb842cef - (byte-compile-file tangled-file 'load) + (byte-compile-file tangled-file) + (load tangled-file) Wh

Re: [BUG] org-babel-load-file can not compile file

2022-05-16 Thread Max Nikulin
On 14/05/2022 18:35, Ihor Radchenko wrote: Max Nikulin writes: Ihor, I am sorry for confusion, it still does not work for me. Likely I tried locally with `load-file' instead of `load'. The former additionally has `expand-file-name'. (Emacs-26.3) Should work now. Thank y

Re: [tip] Export and open a PDF in Android via Termux

2022-05-16 Thread Max Nikulin
On 15/05/2022 18:54, Juan Manuel Macías wrote: (setq org-file-apps '((auto-mode . emacs) (directory . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . "termux-open %s"))) Does termux have a notion of mailcap, e.g. mime-support package or something simila

Re: Bug in 9.5.3 org--file-default-apps

2022-05-16 Thread Max Nikulin
On 16/05/2022 18:57, Ihor Radchenko wrote: Craig STCR writes: But with the new form in 9.5.3, /home/user/myscript is opened by /bin/less, not emacs.  I assume mailcap is not consulted.  Which does not work well.  These behaviors are only for org.  Outside of org, emacs behaves correctly. mailc

Re: [PATCH] Re: tangle option to not write a file with same contents?

2022-05-17 Thread Max Nikulin
On 08/05/2022 11:42, Ihor Radchenko wrote: On 28/10/2021 11:04, Greg Minshall wrote: i wonder if it would be reasonable to add an option such that, when tangling, `org-babel-tangle` would not write a file with the already-existing contents of the target file? [...] The patch is attached. On

Re: Bug in 9.5.3 org--file-default-apps

2022-05-17 Thread Max Nikulin
On 17/05/2022 02:29, Craig STCR wrote: On 5/16/22 11:14 AM, Max Nikulin wrote: Sounds reasonable. However I just have tried a [[file:~/path/to/script]] link running Org main HEAD and the file is opened in emacs (26.3) other window. Hmmm.  That's interesting.  I upgraded from Emacs 26.x

Re: [tip] Export and open a PDF in Android via Termux

2022-05-17 Thread Max Nikulin
On 16/05/2022 23:05, Juan Manuel Macías wrote: Max Nikulin writes: Termux is quite interesting (and addictive :-)). Now I am playing with Termux-api to send notifications from Emacs/Gnus to Android (with gnus-desktop-notifier and the termux-notification command). And also to send sms from Emacs

Re: Bug in 9.5.3 org--file-default-apps

2022-05-18 Thread Max Nikulin
On 18/05/2022 18:36, Ihor Radchenko wrote: Max Nikulin writes: Sounds reasonable. However I just have tried a [[file:~/path/to/script]] link running Org main HEAD and the file is opened in emacs (26.3) other window. The behaviour is dependent on the OS-level mailcap defaults. What does

Re: [tip] Export and open a PDF in Android via Termux

2022-05-18 Thread Max Nikulin
On 18/05/2022 00:56, Juan Manuel Macías wrote: Max Nikulin writes: Do termux and emacs build for it have support of D-Bus or notify-send binary? I'm not sure, but I would say yes, because Termux has a repository for X11 applications and to be able to run desktop environments and grap

Re: Bug in 9.5.3 org--file-default-apps

2022-05-19 Thread Max Nikulin
On 19/05/2022 20:39, Ihor Radchenko wrote: Max Nikulin writes: On 18/05/2022 18:36, Ihor Radchenko wrote: The behaviour is dependent on the OS-level mailcap defaults. What does (mailcap-mime-info nil) return for you? view-mode ^ run-mailcap --norun ~/path/to/script Note that

Re: Bug in 9.5.3 org--file-default-apps

2022-05-20 Thread Max Nikulin
On 20/05/2022 15:22, Ihor Radchenko wrote: Max Nikulin writes: run-mailcap --norun ~/path/to/script Note that mailcap.el does _not_ use run-mailcap or anything external. It is written purely in elisp. So, can you please report the output of M-: (mailcap-mime-info nil)? view-mode Sorry

Re: Bug in 9.5.3 org--file-default-apps

2022-05-21 Thread Max Nikulin
On 21/05/2022 08:44, Ihor Radchenko wrote: Max Nikulin writes: It is the same with and without -Q and no, I have not customized `mailcap-user-mime-data', its value is nil, easy customization interface tells that it is the standard value. There is a chance that debian has some patch, but

Re: [PATCH] Re: Bug in 9.5.3 org--file-default-apps

2022-05-22 Thread Max Nikulin
On 22/05/2022 11:10, Ihor Radchenko wrote: Max Nikulin writes: The source of the problem is that Emacs-27 was released with the following bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40247 mailcap-mime-data erased when parsing mime parts So `mailcap-parse-mailcaps' called from `ma

Re: [BUG] org-open-file immediately termininates when calling xdg-open that calls emacsclient

2022-05-22 Thread Max Nikulin
roblem. If I change the process type back to default tty value, things work again as expected. You might try `call-process' with 0 as DESTINATION (attention! not nil!). See #+begin_comment snippet from the following patch (this part was not committed since Robert convinced me that it is co

Re: Bug in 9.5.3 org--file-default-apps

2022-05-23 Thread Max Nikulin
Craig, discussing the issue with Ihor, I sent some messages to the mail list only without your address in Cc. You may check complete thread at https://list.orgmode.org On 23/05/2022 19:40, Craig STCR wrote: OK, I did a first-try on this and was unsuccessful, but I'm sure it's user error.  I

Re: About 'inline special blocks'

2022-05-24 Thread Max Nikulin
On 24/05/2022 09:51, Timothy wrote: To me, this is another reason for comment and #+attr_X lines not to break paragraphs, as then we can just re-use #+attr_X lines. I like the idea that comments and attribute lines should not be paragraph separators. I expect, it should alleviate the issue th

Re: [PATCH] Avoid ignoring LaTeX export output errors when org-latex-pdf-process is a list

2022-05-24 Thread Max Nikulin
On 22/05/2022 10:51, Ihor Radchenko wrote: The attached patch is fixing a rather annoying problem when org-latex-pdf-process is set to a list. Currently, only output of the last command in the list is preserved in *Org PDF LaTeX output* buffer, which sometimes prevents ox-latex from detecting co

Re: Opening org-cite links with different application

2022-05-25 Thread Max Nikulin
On 25/05/2022 21:10, Alessandro Bertulli wrote: I'm not sure if it's the best way to do so, but it worked for me by using a lambda: (setq citar-file-open-function '(lambda (file) (async-shell-command (format-message "sioyek \"%s\"" file First of all, it is unsafe. File names for

Re: Opening org-cite links with different application

2022-05-25 Thread Max Nikulin
On 25/05/2022 23:00, Bruce D'Arcus wrote: On Wed, May 25, 2022 at 11:26 AM Max Nikulin wrote: On 25/05/2022 18:00, Bruce D'Arcus wrote: You just need to set `citar-file-open-function` to your preferred function; say xdg-open. Is there a reason to avoid emacs global or even sys

Re: About 'inline special blocks'

2022-05-25 Thread Max Nikulin
On 25/05/2022 14:22, Ihor Radchenko wrote: Max Nikulin writes: On 24/05/2022 09:51, Timothy wrote: To me, this is another reason for comment and #+attr_X lines not to break paragraphs, as then we can just re-use #+attr_X lines. I will raise a compatibility issue, but it is bad enough to not

Re: [BUG] org-open-file immediately termininates when calling xdg-open that calls emacsclient

2022-05-26 Thread Max Nikulin
On 26/05/2022 21:24, Ihor Radchenko wrote: Max Nikulin writes: Try the following: (start-process-shell-command "1" nil "emacsclient -c ~/.bashrc") (let ((process-connection-type nil)) (start-process-shell-command "1" nil "emacsclient -c ~/.bashrc"))

Re: [BUG] org-open-file immediately termininates when calling xdg-open that calls emacsclient

2022-05-27 Thread Max Nikulin
On 27/05/2022 13:19, Ihor Radchenko wrote: I managed to narrow down the reproducer with the following minimal configuration: ~/.emacs.d/init.el --- (require 'server) (unless (server-running-p) (server-start)) (setenv "DISPLAY" ":0.0") (define-key input-decode-map (kbd "C-[")

Re: Proposal: 'executable' org-capture-templaes

2022-05-27 Thread Max Nikulin
On 27/05/2022 19:17, Arthur Miller wrote: Ihor Radchenko writes: Is there any reason why you dislike transient (now part of Emacs core)? It is not about me disliking transient, I am sure it is a great library. It is more about simplicity and efficiency. Entire org-capture is ~2/3 of the size

Re: [PATCH v2] Re: Bug in 9.5.3 org--file-default-apps

2022-05-28 Thread Max Nikulin
Ihor, Your patch may be an improvement, but it requires an additional fix, see below. However, in my opinion, it does not address original Craig's issue. The patch improves handling of *non-text* files requiring *external* viewers, while Craig complained that behavior for shell script is in

Re: [PATCH v2] Re: Bug in 9.5.3 org--file-default-apps

2022-05-29 Thread Max Nikulin
On 26/05/2022 11:23, Ihor Radchenko wrote: diff --git a/lisp/org.el b/lisp/org.el index d7da8efc4..45a179a8a 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7975,7 +7975,12 @@ (defun org-open-file (path &optional in-emacs line search) (when (eq cmd 'mailcap) (require 'mailcap)

Re: [PATCH v3] Re: Bug in 9.5.3 org--file-default-apps

2022-05-30 Thread Max Nikulin
.. ))) (mime-type (if (org-string-nw-p mime-type-file) mime-type-file (mailcap-extension-to-mime (or ext ""))) + (shell-quote-argument (convert-standard-filename file + (mailca

Re: Opening org-cite links with different application

2022-05-31 Thread Max Nikulin
On 25/05/2022 23:24, Alessandro Bertulli wrote: P.S. I'm afraid I can't follow you: what's the point with mailcap? The idea is to keep associations between file types and handlers in a single place. Emacs does not have support of XDG handlers (at least out of the box) but pretends to have su

Re: [PATCH v3] Re: Bug in 9.5.3 org--file-default-apps

2022-05-31 Thread Max Nikulin
On 30/05/2022 22:38, Max Nikulin wrote: (let* ((file-executable (executable-find "file"))    (mime-type-file     (and file-executable (shell-command-to-string   (format "%s --brief --mime-type --dereference

Re: [PATCH] Re: tangle option to not write a file with same contents?

2022-05-31 Thread Max Nikulin
On 30/05/2022 10:14, Ihor Radchenko wrote: I applied the discussed two patches onto main via 1525a5a64 and f6f26d4ce. The suggested amendments were incorporated. So Greg's feature request is implemented and it is great. I am less confident with `org-babel-load-file' though. Due to poor error

Re: Proposal: 'executable' org-capture-templaes

2022-05-31 Thread Max Nikulin
On 30/05/2022 09:04, Arthur Miller wrote: Ihor Radchenko writes: Arthur Miller writes: Simplicity comes from the org-templates. Me, and I guess other people are familiar with org-catpure templates already, and I mean, can it be simpler to create a menu of choices then a simple list: '(("key1"

Re: [PATCH] ox: fix comment exported as a blank line

2022-06-01 Thread Max Nikulin
terested in other cases when org paragraph is not the same as exported LaTeX one, see the following thread: Max Nikulin. Comments break up a paragraph when writing one-setence-per-line. Sun, 3 Oct 2021 18:34:10 +0700. https://list.orgmode.org/sjc4fk$76r$1...@ciao.gmane.io

Re: Emacs launched from Firefox

2022-06-01 Thread Max Nikulin
On 26/05/2022 09:59, Ihor Radchenko wrote: Samuel Wales writes: so idk why ff makes emacs not load .emacs or does an xterm. /usr/bin/emacs results in indeed emacs25 atm. Since you have not found a way to reproduce the issue in a month, I assume that you do not severely suffer from the proble

Re: Bug report

2022-06-01 Thread Max Nikulin
On 01/06/2022 22:37, Eric S Fraga wrote: On Wednesday, 1 Jun 2022 at 07:53, Topi Mäenpää wrote: I have trouble escaping a dollar sign in org-mode documents. I tried to enter the following: #+begin_src A (14 G$) B (6 G$) #+end_src You may use entities: \dollar I have no problem with this.

Re: Opening org-cite links with different application

2022-06-02 Thread Max Nikulin
On 01/06/2022 17:33, Alessandro Bertulli wrote: > P.S. Alessandro, could you, please, response to mails using "reply" > button. You messages lack of In-Reply-To and References headers, so at > least thunderbird does not group messages into a thread. Sure, no problem. I usually use vanilla com

Re: [PATCH] ox: fix comment exported as a blank line

2022-06-02 Thread Max Nikulin
On 02/06/2022 12:02, Phil Estival wrote: Still, the writing experience is much improved when comments are allowed inside paragraphs without disrupting the publication, and this definitely worth a few modifications. There are at least a couple of workarounds for inline comments, however some ca

[PATCH] org.el: Use `call-process' to launch external viewers (was: Re: [BUG] org-open-file immediately termininates when calling xdg-open that calls emacsclient)

2022-06-02 Thread Max Nikulin
On 27/05/2022 22:18, Ihor Radchenko wrote: Max Nikulin writes: With this exact init.el, trying to run (let ((process-connection-type nil)) (start-process-shell-command "1" nil "xdg-open ~/.bashrc")) Does it mean that you can not reproduce it with emacsclient instead o

Re: Proposal: 'executable' org-capture-templaes

2022-06-05 Thread Max Nikulin
On 04/06/2022 22:35, Arthur Miller wrote: > However before I continue, I am thinking of ditching the 'read-key' completely and switching to "standard" Emacs way of implementing interactivity via mode and mode-map. I am currently playing with such implementation, which to me appears both simpler (

Re: [PATCH] Support #+include-ing URLs

2022-06-05 Thread Max Nikulin
On 05/06/2022 21:32, Timothy wrote: This is just a little patchset to treat #+include: URL the same way as #+setupfile: URL. All the usual #+include: bells and whistles (::*Heading, :lines, etc.) work as normal. Is it possible to disable fetching remote files by some setting? If I remember

Re: [DISCUSSION, default settings] Using mailcap as default handler for opening file links

2022-06-06 Thread Max Nikulin
On 04/06/2022 20:42, Ihor Radchenko wrote: It appears that using mailcap is giving us more trouble than benefits. I am not sure about the situation on Windows and Mac though. Should we change the default file handlers to Emacs globally (unless user customizes otherwise)? Should we continue effo

Re: [DISCUSSION, default settings] Using mailcap as default handler for opening file links

2022-06-06 Thread Max Nikulin
instead of external handlers configured in mailcap files, unless `mailcap-user-mime-data' or `mailcap-prefer-mailcap-viewers' prescribes another behavior. Max Nikulin writes: I read implementation of `org-open-file' once more and now I see that currently remote files can not

Re: git branch rename and git config q

2022-06-06 Thread Max Nikulin
On 06/06/2022 11:13, Samuel Wales wrote: i have a repo where i have patches that i carry along i a local branch. these are rebased automagically when i upgrade org. You may change remote for this repository. Perhaps you do not need to rename branches. https://list.orgmode.org/sj91nb$d9j$1..

Re: Proposal: 'executable' org-capture-templaes

2022-06-06 Thread Max Nikulin
On 05/06/2022 22:07, Arthur Miller wrote: Max Nikulin writes: After input from Ihor I agree that it isn't the best way, and was able to refactor org-mks to create a menu where I can execute any lisp form, when it comes in a list like this : ("h" "hello-word" (messag

Re: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to html

2022-06-07 Thread Max Nikulin
On 07/06/2022 13:34, Dr. Arne Babenhauserheide wrote: lin Sun writes: This patch will re-submit the solution based on the last rev. diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el index 6e1b1b1..37a631b 100644 --- a/lisp/ob-plantuml.el +++ b/lisp/ob-plantuml.el @@ -122,6 +122,7 @@ Thi

[BUG] org-link-descriptive affects verbatim text

2022-06-07 Thread Max Nikulin
Hi, I noticed that current main HEAD hides link description even when it is not a link but verbatim text: =[[http://orgmode.org][Org]]= Just underlined =Org= is displayed, while earlier version of Org displays whole verbatim text. 1105da80a doc/org-manual.org: variable rename Emacs-26.3.

Re: git branch rename and git config q

2022-06-07 Thread Max Nikulin
On 07/06/2022 10:33, Samuel Wales wrote: the last par of your email makes it seem as if i should do a git [interactive?] rebase operation from [top of] local on bugfix, even though it is already rebasing on maint each upgrade. would that be a good description of what you meant? The state of y

Re: [DISCUSSION] Refactoring fontification system

2022-06-07 Thread Max Nikulin
On 03/06/2022 16:45, Ihor Radchenko wrote: 1. org-protecting-blocks is an internal auxiliary variable used to determine which blocks should be fontified using different major mode. It's value is ("src" "example" "export") So, #+begin_src lang and #+begin_export lang are fontified

Org Column in Thunderbird

2022-06-08 Thread Max Nikulin
Hi, I am playing with a thunderbird add-on that may add an icon to folder view if Org Mode files contains a link to this message. It is not polished yet, but I suppose, you may try it https://github.com/maxnikulin/orco/ Installation requires more steps since it is necessary to setup so call

Re: git branch rename and git config q

2022-06-08 Thread Max Nikulin
On 08/06/2022 09:10, Ihor Radchenko wrote: Samuel Wales writes: more confused than ever. i hoped i could just run a rename command, or possibly rename maint to bugfix in config. Max tends to go very deeply into details. I never used branch.*.rebase configuration. By the way, git-pull and

Re: [BUG] org-link-descriptive affects verbatim text

2022-06-08 Thread Max Nikulin
On 08/06/2022 20:43, Ihor Radchenko wrote: Max Nikulin writes: I noticed that current main HEAD hides link description even when it is not a link but verbatim text: =[[http://orgmode.org][Org]]= Just underlined =Org= is displayed, while earlier version of Org displays whole verbatim text

Re: [DISCUSSION] Refactoring fontification system

2022-06-09 Thread Max Nikulin
On 08/06/2022 11:23, Tom Gillespie wrote: As for lang parameter support in example blocks, would you mind creating a separate feature request thread? Extending export blocks export will require changing in parser syntax and thus should be discussed carefully in a separate thread. I would strong

Re: org-capture firefox extension broken [silently]

2022-06-10 Thread Max Nikulin
On 09/06/2022 04:13, Samuel Wales wrote: i really like and rely on the org-capture extension for firefox. [...] however, upon an upgrade and a reboot in a security-supported debian, text no longer appears in org. Samuel, do not panic. I just have tried that my LinkRemark extension is still a

Re: Org Column in Thunderbird

2022-06-10 Thread Max Nikulin
On 10/06/2022 20:11, Ihor Radchenko wrote: Max Nikulin writes: I am playing with a thunderbird add-on that may add an icon to folder view if Org Mode files contains a link to this message. It is not polished yet, but I suppose, you may try it https://github.com/maxnikulin/orco/ Looks

Re: [DISCUSSION, default settings] Using mailcap as default handler for opening file links

2022-06-10 Thread Max Nikulin
On 07/06/2022 00:47, Bhavin Gandhi wrote: On Mon, 6 Jun 2022 at 19:09, Max Nikulin wrote: P.P.S. I had a hope that recent Fedora-36 release has Emacs-28 packaged, so it would be possible to test live image in qemu to quickly check behavior in full-fledged desktop environment, but version 27 is

Re: Proposal: 'executable' org-capture-templaes

2022-06-10 Thread Max Nikulin
On 07/06/2022 10:09, Samuel Wales wrote: i must be confused. menus aside, you can currently capture and it uses the org forest itself, so it is both crash-proof and snappy. and you can yakshave as much as you want, starting a capture while doing a capture. those were design goals. you can eve

Re: org-capture firefox extension broken [silently]

2022-06-10 Thread Max Nikulin
On 11/06/2022 08:43, Samuel Wales wrote: On 6/10/22, Max Nikulin wrote: - Have you tried to check that org-protocol still works on your system? xdg-open 'org-protocol:/org-capture?url=something' i ran this from emacs shell mode bash cli as user. it brought firefox to fg, op

Re: Org Column in Thunderbird

2022-06-11 Thread Max Nikulin
resent message in a such way that original Message-ID was lost. Sorry for that. Max Nikulin writes: On 10/06/2022 20:11, Ihor Radchenko wrote: I imagine browser URLs could also indicate if they have associated Org notes. Or pdfs. It seems, most of PDF viewers do not allow decorations added by

issue in orgmode manual

2020-05-16 Thread Max Mustermann
Hey, On https://orgmode.org/manual/LaTeX-Export.html#Tables-in-LaTeX-export, 13.10.5 -13.10.11 refer back to its parent 13.10 same with 13.9.6-13.9.11 and probably others. Sorry if this is already known or intended. Have a nice weekend.

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-06-12 Thread Max Nikulin
about possible pitfalls as well. I have impression that it is not encouraged, but Emacs sources have enough examples of such autoloading. I posted some links earlier in the discussion of this issue, see Max Nikulin, Fri, 11 Mar 2022 17:07:03 +0700. https://list.orgmode.org/c58ae4d5-dd66-0d06

Re: [accessibility] worg obscures text

2022-06-12 Thread Max Nikulin
On 13/06/2022 09:16, Tim Cross wrote: If the .emacs.el was either in the repo or the url referenced in the worg-setup.org file worked, that would help. Org web pages are currently generated by SourceHut CI, have a look at .build.yml and publish.sh (the latter is actually elisp). Browser deve

Re: idea for capture anywhere in x

2022-06-13 Thread Max Nikulin
On 10/06/2022 09:35, Samuel Wales wrote: with the org capture firefox extension broken, i recalled this old thread, thinking it might be a fix, and i think i understand the issue. so i thought i would summarize here in this one post. Samuel, have you managed to fix org-protocol setup? From ot

Re: idea for capture anywhere in x

2022-06-13 Thread Max Nikulin
On 13/06/2022 16:10, Michal Politowski wrote: $ xclip -selection clipboard -o -t text/x-moz-url-priv https://orgmode.org/ Thank you for the trick. Have you ever tried to set drag-n-drop handler for org buffers to invoke e.g. `org-store-link'? I mean dragging a link or URL from the address b

Re: [PATCH] #+begin_example lang used in manual and worg (was: [DISCUSSION] Refactoring fontification system)

2022-06-14 Thread Max Nikulin
On 10/06/2022 09:06, Ihor Radchenko wrote: Max Nikulin writes: Side note: I can not say that #+begin_example with language is widely used, but one case may be found in org-manual.org and a dozen in worg. Which should probably be fixed. LANG parameter is ignored on export anyway. See the

Re: [PATCH] New remote resource download policy

2022-06-15 Thread Max Nikulin
On 12/06/2022 21:43, Timothy wrote: As was raised in the #+include: URL thread (https://list.orgmode.org/877d5sd7yu@gmail.com), currently Org will automatically download files without confirmation in various circumstances. This patch introduces two variables to control Org’s attitude tow

Re: [DISCUSSION] Refactoring fontification system

2022-06-16 Thread Max Nikulin
On 08/06/2022 09:02, Ihor Radchenko wrote: Max Nikulin writes: Can you (and other interested users) try the following value of org-script-display and let me know if it looks acceptable: (defconst org-script-display '(;; The values are tweaked to not c

Re: Proposal: 'executable' org-capture-templaes

2022-06-18 Thread Max Nikulin
On 11/06/2022 12:26, Ihor Radchenko wrote: Max Nikulin writes: However if two org-protocol handlers are launched without specified template then behavior of Org becomes confusing. I meant this case. Currently reading key from minibuffer serves as a kind of synchronization tool. Imagine what

Re: [BUG] ERR_CERT_DATE_INVALID for https://list.orgmode.org/

2022-06-18 Thread Max Nikulin
On 18/06/2022 15:33, Bastien Guerry wrote: Ihor Radchenko writes: The last line rewrites requests like https://orgmode.org/list/875ynnojvf.fsf@localhost to https://list.orgmode.org/875ynnojvf.fsf@localhost which is supposed to be handled by the CNAME alias. This is the configuration that

Re: Proposal: 'executable' org-capture-templaes

2022-06-18 Thread Max Nikulin
On 06/06/2022 06:05, Tim Cross wrote: One very big warning I would like to raise to ensure it is taken into consideration is accessibility. This can have two significant effects with respect to the types of things you are doing - Out of curiosity, you mentioned export menu. Would it help if if

Re: Proposal: 'executable' org-capture-templaes

2022-06-19 Thread Max Nikulin
On 18/06/2022 22:05, Arthur Miller wrote: Max Nikulin writes: On 11/06/2022 12:26, Ihor Radchenko wrote: Max Nikulin writes: Imagine what would happen if Emacs decided to show several capture menus with keymap non-blocking interface in different virtual desktops. Different Emacs processes

Re: Proposal: 'executable' org-capture-templaes

2022-06-19 Thread Max Nikulin
On 18/06/2022 15:25, Ihor Radchenko wrote: Max Nikulin writes: Note that there is not much happening when capture menu is called. Only the link is stored into link ting. Otherwise, no capture data is altered. All the fragile staff is happening after selecting capture template. Ihor, magic is

[BUG] manual: confusing example of adding attributes to a link (affiliated keywords)

2022-06-20 Thread Max Nikulin
;https://orgmode.org The reason of my expectation is that a paragraph may have more than one link with different titles. I am unsure if formal bug report will help. I promised it in the following discussion: Max Nikulin to emacs-orgmode. Re: Org-syntax: Intra-word markup. Thu,

Re: About 'inline special blocks'

2022-06-20 Thread Max Nikulin
for several months, so I just have sent to following bug report: Max Nikulin to emacs-orgmode. [BUG] manual: confusing example of adding attributes to a link (affiliated keywords) Mon, 20 Jun 2022 23:25:29 +0700. https://list.orgmode.org/t8q71r$mgv$1...@ciao.gmane.io I have not heard that PD

Re: Proposal: 'executable' org-capture-templaes

2022-06-20 Thread Max Nikulin
On 20/06/2022 19:10, Ihor Radchenko wrote: Max Nikulin writes: Sure. I was hinting about such functionality in the new library we are discussing. Multiple capture menus are not possible now anyway, so it will be a new feature if we decide that we need it (I am not 100% sure if having multiple

Re: [PATCH v3] ol.el: add description format parameter to org-link-parameters

2022-06-21 Thread Max Nikulin
On 21/06/2022 19:03, Hugo Heagren wrote: +(defmacro test-ol-with-link-parameters-as (type parameters &rest body) [...] + `(progn + (setq orig-parameters org-link-parameters) I can easily miss something, but wouldn't it be enough to use let-binding `(let ((org-link-parameters org-link-pa

Re: Proposal: 'executable' org-capture-templaes

2022-06-21 Thread Max Nikulin
On 21/06/2022 11:07, Ihor Radchenko wrote: Max Nikulin writes: The other question is altering the org-capture code. I think that it is too early to discuss org-capture part just yet. Lets first finalize the generic library itself and discuss the appropriate adjustments to org-capture/org-agenda

Re: About 'inline special blocks'

2022-06-21 Thread Max Nikulin
On 21/06/2022 02:06, Juan Manuel Macías wrote: Max Nikulin writes: I would like to stress that styles can not be a rescue in some important cases. Let's leave aside ad hoc final tuning of formatting. In the case of HTML export there are still and attributes that are namely per-object

Re: Proposal: 'executable' org-capture-templaes

2022-06-22 Thread Max Nikulin
On 22/06/2022 19:13, Arthur Miller wrote: Max Nikulin writes: Menu should and application should be separated in my eyes. Menu is just a graphical/audio? presentation of selectable choice to the user. As such it should display choices, let user pick a choice, and return to the application the

Re: [PATCH] New remote resource download policy

2022-06-22 Thread Max Nikulin
On 22/06/2022 17:01, Timothy wrote: +(defun org–confirm-resource-safe (uri) + “Ask the user if URI should be considered safe, returning non-nil if so.” +(unless noninteractive + (let ((buf (get-buffer-create “*Org Remote Resource*”))) I see your intention to add something fancy to t

Re: [PATCH] New remote resource download policy

2022-06-25 Thread Max Nikulin
On 22/06/2022 17:01, Timothy wrote: — a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -525,7 +525,11 @@ (defun org-attach-attach (file &optional visit-dir method) [snip] +(if (or (not noninteractive) (org–should-fetch-remote-resource-p file)) I am confused by (not noninteractive). Do

Re: [BUG] manual: confusing example of adding attributes to a link (affiliated keywords)

2022-06-25 Thread Max Nikulin
On 25/06/2022 12:29, Ihor Radchenko wrote: Max Nikulin writes: #+ATTR_HTML: :title The Org mode homepage :style color:red; [[https://orgmode.org]] Likely I have seen similar suggestions in this list as well. Actually it assigns attribute to paragraphs in addition to links. That is why, I

Re: [BUG] manual: confusing example of adding attributes to a link (affiliated keywords)

2022-06-25 Thread Max Nikulin
On 25/06/2022 17:39, Ihor Radchenko wrote: Max Nikulin writes: The following example is somewhat contrived. Try to set different options (width or e.g. angle) for several inline images. It applies to LaTeX as well: #+attr_latex: :center nil :options angle=30 :width 16mm [[file

Re: feature proposal: export to html headless

2022-06-27 Thread Max Nikulin
On 27/06/2022 19:11, Uwe Brauer wrote: [it isn't an answer for you because you want it in the menu. others will field that. and it's similar to your code.] Right, I hope somebody does, because it looks rather complicated when I look for it in ox.el Isn't the following entry of the export m

Re: Proposal: 'executable' org-capture-templaes

2022-06-29 Thread Max Nikulin
On 26/06/2022 11:50, Arthur Miller wrote: Max Nikulin writes: By state I mean some structure opaque to menu package. It just receives it from caller as an optional argument and (when given) later passes it to handler. Maybe it is alien approach in LISP, but in C (where closures are impossible

Re: [PATCH] Delete some Emacs 24 compat code

2022-06-30 Thread Max Nikulin
On 30/06/2022 18:19, Stefan Kangas wrote: The attached patch deletes some Emacs 24 compat code. Org mode supports Emacs 26 or later, according to: https://orgmode.org/worg/org-maintenance.html#emacs-compatibility I have no particular opinion to which degree older Emacs versions should be supp

Serving .org files for worg (was: Re: Library of babel help)

2022-06-30 Thread Max Nikulin
On 30/06/2022 16:06, Tim Cross wrote: Aren't they currently available? I can and I was always able to get the org sources by changing the link from .html to .org. No, that doesn't work for me using either chrome or firefox. Chrome just keeps switching back to the HTML url and firefox just han

Re: [PATCH] New remote resource download policy

2022-06-30 Thread Max Nikulin
On 29/06/2022 22:27, Timothy wrote: Max Nikulin writes: I also really don’t like how `org-mks' so forcefully grabs all keyboard input. I can see it being nice to jump back to the buffer and see where the resource is being used, which isn’t really possible using `org-mks'. An id

Re: Serving .org files for worg (was: Re: Library of babel help)

2022-06-30 Thread Max Nikulin
On 30/06/2022 22:45, Max Nikulin wrote: On 30/06/2022 16:06, Tim Cross wrote: No, that doesn't work for me using either chrome or firefox. Chrome just keeps switching back to the HTML url and firefox just hangs, returning nothing. Tim, have you checked your Downloads folder? It may be

Re: Serving .org files for worg (was: Re: Library of babel help)

2022-06-30 Thread Max Nikulin
On 01/07/2022 04:48, Tim Cross wrote: 1. Just using the .org as the suffix of the url instead of the .html did not work for me using two different browser. However, it did work for ihor, so either I did something wrong or there is something in my setup which is preventing that from working. Need

Re: Customizing org-columns-modify-value-for-display-function to shorten time-stamps in colview

2022-07-01 Thread Max Nikulin
On 01/07/2022 19:06, Ihor Radchenko wrote: You could instead use (if (and value (not (string-empty-p value))) ...) `org-string-nw-p' is not identical to this expression, but it likely still can be used.

Re: Proposal: 'executable' org-capture-templates

2022-07-01 Thread Max Nikulin
On 01/07/2022 06:30, Arthur Miller wrote: Max Nikulin writes: (load (expand-file-name "org-multimenu")) (org-menu-multiinstance-stateful `((("1" "one" 1) ("2" "two" 2))) :state (format-time-string "%T") :text "Som

Re: Proposal: 'executable' org-capture-templaes

2022-07-02 Thread Max Nikulin
On 21/06/2022 14:37, Arthur Miller wrote: Emacs as a whole is not designed to work in the way I percieve it has clean separation between contexts in each frame. Menu buffer is "global" for entire Emacs process, and there are other features of Emacs that does not work well in such scenarion. Some

Re: Proposal: 'executable' org-capture-templaes

2022-07-02 Thread Max Nikulin
On 19/06/2022 22:34, Arthur Miller wrote: Max Nikulin writes: I believe, multiple capture menus should be possible in parallel even within single frame since it may contain several windows and user experience should be better than now. Keymap-based selection opens a road in this direction since

Re: Org links and Flatpak firefox

2022-07-02 Thread Max Nikulin
On 02/07/2022 23:03, Ken Mankoff wrote: I've just upgraded to Kubuntu 22.04. Firefox is no longer instsallable via apt so I chose flatpak over snap. Now when I C-c C-o (org-open-at-point) on a URL, Firefox comes to the foreground, but nothing else happens. The page does not load. If I 'xdg-op

Re: [BUG] The documentation webserver gives 404s [9.5.4 (release_9.5.4-3-g6dc785 @ )]

2022-07-03 Thread Max Nikulin
I noticed that the Org documentation server gives 404 Not Found for a large number of links published all over the internet because (1) it parses URLs case-sensitively and (2) the case has changed at some point. I stumble upon such 404s errors daily. See, for instance, the link to Column Groups

Re: [BUG] The documentation webserver gives 404s [9.5.4 (release_9.5.4-3-g6dc785 @ )]

2022-07-04 Thread Max Nikulin
On 04/07/2022 19:58, Ihor Radchenko wrote: If JS is the only option it is still better to have it and fall back to more generic page if JS is not supported. Of course, given that the JS code is not going to be too complex and not going to require too much maintenance. It is possible to perform

Re: [BUG] The documentation webserver gives 404s [9.5.4 (release_9.5.4-3-g6dc785 @ )]

2022-07-04 Thread Max Nikulin
On 05/07/2022 05:37, Tim Cross wrote: Max Nikulin writes: However it seems, Bastien earlier configured a set of rewrite rules mapping old file names with more lower case letters to new ones. In my opinion it is the best option and it should be restored. List of files may be committed to git

Re: [BUG] The documentation webserver gives 404s [9.5.4 (release_9.5.4-3-g6dc785 @ )]

2022-07-04 Thread Max Nikulin
On 05/07/2022 09:54, Tim Cross wrote: Max Nikulin writes: Bastien. Re: Possible bug report: URL capitalization in online manual. Mon, 10 Feb 2020 07:48:21 +0100 https://list.orgmode.org/874kvzdjka@gnu.org/ I've now installed the rewrite rules on the server and all these link

Re: Org links and Flatpak firefox

2022-07-05 Thread Max Nikulin
On 03/07/2022 20:25, Ken Mankoff wrote: Emacs opens URLs in the last-active (from the UI perspective) firefox, even if there is a firefox on the current virtual desktop. Is it Emacs of Firefox behavior? However it is not trivial to choose which window should be used to open a new URL if a coup

Re: Org and Hyperbole

2022-07-07 Thread Max Brieiev
Hi Robert, Robert Weiner writes: > Oantolin no doubt can speak to Embark much better but my present > understanding is that it is a toolkit package for generating contextual > popup or completion menus with a few standard context menus included. > > Hyperbole is a much broader personal informati

Re: Proposal: 'executable' org-capture-templates

2022-07-07 Thread Max Nikulin
On 03/07/2022 22:12, Arthur Miller wrote: Max Nikulin writes: My impression is that Emacs process per task scenario is not supported. I am not sure if we think of same thing, but "process per task" means simply how people use Emacs. Some people open each file in a new Emacs pro

<    1   2   3   4   5   6   7   8   9   10   >