[C-c C-q] org-set-tags-command completed tags does not contains current buffer local tags

2024-04-17 Thread Christopher M. Miles
In the [C-c C-q] org-set-tags-command, I found it does not complete tags in current buffer. #+begin_src emacs-lisp (defun org-set-tags-command ( arg) ... (let* (... (local-table (or org-current-tag-alist (org-get-buffer-tags))) ;; the `org-current-tag-alist' is from my

Let `org-element-at-point` or `org-element-context` return element type "tags" when point on tags.

2024-04-07 Thread Christopher M. Miles
When I move point on the headline tags position. I evaluate `(org-element-at-point)` or `(org-element-context)`, both return element type is `(headline )`. I hope those two functions can return more explicit element type like "tags". I tried to find this type API function in existing

Re: Bug: org-no-popups disregards display-buffer-fallback-action [9.4.6 (9.4.6-13-g4be129-elpaplus @ /home/jeeger/.emacs.d/elpa/org-plus-contrib-20210920/)]

2024-02-07 Thread Christopher M. Miles
+1! Ihor Radchenko writes: > I conclude that `org-no-popups' and `org-switch-to-buffer-other-window' > should not be used in Org mode. > > Fixed, on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=78dc58508 > > Other issues raised in this thread need more thought. --

Re: [POLL] Change calling convention for when `org-link-file-path-type' is set to custom function (was: Enhancement Proposal for 'org-link-file-path-type' Behavior)

2024-01-16 Thread Christopher M. Miles
+1 for this propose. I have one situation need this feature. Assume a file structure like bellowing: #+begin_example `- folder-1 `- file-1.org `- folder-1.2 ` file-1.2.1.org #+end_example When I try to add link of "file-1.org" in "file-1.2.1.org", based on my custom option

[DONE] Re: org-agenda + [a] generated many duplicated task entries

2024-01-16 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> When I execute command "org-agenda" with key "[a]" to generate >> org-agenda day view. Many task entries are duplicated. > > Maybe you have something in > `org-agenda-skip

Re: org-agenda + [a] generated many duplicated task entries

2024-01-16 Thread Christopher M. Miles
@Ihor, Thanks for your help. Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> When I execute command "org-agenda" with key "[a]" to generate >> org-agenda day view. Many task entries are duplicated. > > Maybe you have somethin

Re: [PATCH] Set Python shell in Org edit buffer

2024-01-11 Thread Christopher M. Miles
Ihor Radchenko writes: > Now, the question is what to do with the existing implementation of > `org-src-associate-babel-session'. It only runs > org-babel--associate-session when > > (and session (not (string= session "none")) >(org-babel-comint-buffer-livep session) >(let ((f

Re: [PATCH v6] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2024-01-11 Thread Christopher M. Miles
Thanks for updating, this patch looks great to me. -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG:

[BUG] `org-element-at-point-no-context' error in flyspell `org-mode-flyspell-verify'

2023-11-06 Thread Christopher M. Miles
I got following error: #+begin_example Please report this to Org mode mailing list (M-x org-submit-bug-report). ⛔ Warning (org-element-cache): org-element--cache: Org parser error in Code.org::434180. Resetting. The error was: (wrong-number-of-arguments ((t) nil "Return outline-regexp with

[BUG] `org-todo` [C-c C-t] got error (args-out-of-range # 0 48016)

2023-11-06 Thread Christopher M. Miles
Here is the backtrace after I toggled debug-on-error: #+begin_example Debugger entered--Lisp error: (args-out-of-range # 0 48016) replace-match("") (progn (goto-char (match-beginning 0)) (replace-match "") (insert-before-markers-and-inherit next) (if (org-invisible-p

Re: Unclear where ob-spice.el is being maintained

2023-08-29 Thread Christopher M. Miles
Thanks, Updated now. Jonas Bernoulli writes: > "Christopher M. Miles" writes: > >> Jonas Bernoulli writes: >> >>> In 2022 I changed Melpa to get ob-spice.el from >>> https://repo.or.cz/ob-spice.git in response to >>> https://git

Re: Unclear where ob-spice.el is being maintained

2023-08-27 Thread Christopher M. Miles
Jonas Bernoulli writes: > In 2022 I changed Melpa to get ob-spice.el from > https://repo.or.cz/ob-spice.git in response to > https://github.com/melpa/melpa/issues/7872#issuecomment-1034945112. > > But org-contrib still contains that file and the README at the new > location still contains > >>

Re: Unclear where ob-spice.el is being maintained

2023-08-27 Thread Christopher M. Miles
Jonas Bernoulli writes: > Ihor Radchenko writes: > >> Jonas Bernoulli writes: >> >>> In 2022 I changed Melpa to get ob-spice.el from >>> https://repo.or.cz/ob-spice.git in response to >>> https://github.com/melpa/melpa/issues/7872#issuecomment-1034945112. >> >> The last discussion was back in

Re: [PATCH v3.1] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-08-04 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> With your patch, it will become impossible to display linked images >>> using interactive command. >> >> Does this code match the needs? > > Please check my latest reply &g

Re: [PATCH v3.1] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-08-04 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> The problem here is backwards compatibility. `org-toggle-inline-images' >>> is bound to C-c C-x C-v and people may be used to C-u C-c C-x C-v >>> displaying linked images like >>&

Re: [PATCH v3.1] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-08-02 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I think current patch is ready for merging now. WDYT? > > No, unfortunately. > With your patch, it will become impossible to display linked images > using interactive command. Does this code match

Re: [PATCH v3.1] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-08-02 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I think current patch is ready for merging now. WDYT? > > No, unfortunately. > With your patch, it will become impossible to display linked images > using interactive command. I still nee

[PATCH v3.1] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-08-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> This is not a toggle. This is unconditional refresh. >>> >> Yes, indeed it's a unconditional refresh. It does not match the meaning of >> word "toggle". >> >>

[PATCH v3] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-08-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> Unlike `org-latex-preview', here we need to (1) respect active region; >>> (2) keep the backward compatibility for INCLUDE-LINKED. >>> >>> For (1), for example, it would make sen

[PATCH v5] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-07-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I improved the code a little. Can't figure out how to implement upper logic. >> Can you finish the last part? Thanks >> >> #+begin_src emacs-lisp >> (setq tbl (let* ((tags-grouped (o

[SOLVED] Re: [QUESTION] Hope to improve the `org-set-font-lock-defaults` performance by lazy and limit to current visible area

2023-05-25 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I'm the developer of Org mode package "org-link-beautify" >> https://repo.or.cz/org-link-beautify.git . The package main theory >> is to use org-link-parameters `:activate-func` to do li

[QUESTION] Hope to improve the `org-set-font-lock-defaults` performance by lazy and limit to current visible area

2023-05-24 Thread Christopher M. Miles
I'm the developer of Org mode package "org-link-beautify" https://repo.or.cz/org-link-beautify.git . The package main theory is to use org-link-parameters `:activate-func` to do link file preview with generating thumbnail images or file content etc. But I found it's slow one some big Org file

[PATCH v4.1] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-16 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>>> (seq-take (seq-uniq (append bound-tags >>>> fulltable)) >>>> org-fast-tag-selection-maximum-tags)) >>

[PATCH v4] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-16 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> Updated version which fix the `message` error in upper code: > > Thanks! > >> #+begin_src emacs-lisp >> (setq tbl (let ((bound-tags (seq-filter 'cdr fulltable))) >>

Re: [PATCH v2] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-05-16 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> I'd prefer something more closely resembling `org-latex-preview' >>> approach with prefix arguments: >>> ... >>> `org-toggle-inline-images' should also be changed. >> &

[PATCH v4] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-16 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> Updated version which fix the `message` error in upper code: > > Thanks! > >> #+begin_src emacs-lisp >> (setq tbl (let ((bound-tags (seq-filter 'cdr fulltable))) >>

[PATCH v3.1] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-15 Thread Christopher M. Miles
"Christopher M. Miles" writes: > [[PGP Signed Part:Undecided]] > > Ihor Radchenko writes: > >> "Christopher M. Miles" writes: >> >>>> You are almost there. >>>> Just run your code only when (lentgh> fulltable 26). >>

Re: [PATCH] org-crypt-decrypt-entry: Apply initial visibility upon decryption

2023-05-15 Thread Christopher M. Miles
No objection -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 signature.asc

[PATCH v3] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-15 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> You are almost there. >>> Just run your code only when (lentgh> fulltable 26). >>> >>> Of course, 26 should be a defcustom rather than a hard-coded constant. >>>

Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-05-15 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> The `org-redisplay-inline-images' will refresh whole buffer inline >> images. When the buffer is a big Org file, and not all inline images are >> display already by default (still image file links un

[PATCH v2] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-05-15 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> The `org-redisplay-inline-images' will refresh whole buffer inline >> images. When the buffer is a big Org file, and not all inline images are >> display already by default (still image file links un

Re: [PATCH v2] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-15 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> You are almost there. >>> Just run your code only when (lentgh> fulltable 26). >>> >>> Of course, 26 should be a defcustom rather than a hard-coded constant. >>>

[PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-05-14 Thread Christopher M. Miles
I found a lot of third-part Emacs packages refresh Org source block image result using the API function like this: #+begin_src emacs-lisp ;; Automatically refresh inline images. (add-hook 'org-babel-after-execute-hook (defun ob-dall-e--refresh-inline-images () (when

[PATCH v2] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-14 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>>> #+begin_src emacs-lisp >>>> (let ((bound-tags (seq-filter 'cdr temp-fulltable))) >>>> (if (length> bound-tags 0) >>>> bound-tags >>>> (seq-

Re: [PATCH] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-14 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> Sorry, wrong code, here is the correct code snippet: >> >> #+begin_src emacs-lisp >> (let ((bound-tags (seq-filter 'cdr temp-fulltable))) >> (if (length> bound-tags 0) >&

Re: [PATCH] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-14 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> What about like this? >> >> #+begin_src emacs-lisp >> (setq tbl (let ((bound-tags (seq-filter 'cdr fulltable))) >> (if (length> shortkeys 0) >>

Re: [PATCH] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-13 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> It would be great if you can come up with a patch. >>> 1. Keeping tags with explicitly assigned key binding indeed makes sense >>> 2. If we limit the number of displayed tags (on to

[PATCH] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-13 Thread Christopher M. Miles
Ihor Radchenko writes: > stardiviner writes: > >> I applied your diff with a testing. This indeed solved the performance >> issue. >> Will this be updated in Org-mode source code? >> Also I come up with one thing, filter out tags which have shortcut >> keybinding bound. Because user defined

Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-13 Thread Christopher M. Miles
Ihor Radchenko writes: > stardiviner writes: > >> I have a large `org-tag-alist` value that contains about ~7000 tags. >> When I press [C-c C-q] `org-set-tags-command`. Emacs suspends a long time. > > Indeed. That's because `org-fast-tag-selection' tries to put all those > 7k tags into tag

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Christopher M. Miles
bleorg-fold-outline > priority 5 > > There are text properties here: > fontifiedt > isearch-open-invisible org-fold-core--isearch-show > isearch-open-invisible-temporary org-fold-core--isearch-show-temporary > > Am Sa., 6. Mai 2023 um 08:

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Christopher M. Miles
"Christopher M. Miles" writes: > [[PGP Signed Part:Undecided]] > > I meet an unfold-able headline now. Then I record a video to show this > unfold-able headline. I executed command "describe-text-properties". > Afterwards, I closed the buffer, then re-open

[FEATURE Request] inherit headline directory for `org-attach' in `org-add-note' etc temp buffers

2023-05-05 Thread Christopher M. Miles
For example, I have Org content like this: #+begin_src org ,* TODO Refrigerator DEADLINE: <2023-04-06 Thu> :PROPERTIES: :ID: e1824d15-35cb-4105-a617-5f7ecd6a1049 :END: #+end_src I press [C-c C-z] `org-add-note` to add logbook note. It will open a new temporary buffer. I want to execute

Re: BUG: org-cycle does not unfold some subtrees

2023-05-05 Thread Christopher M. Miles
I meet an unfold-able headline now. Then I record a video to show this unfold-able headline. I executed command "describe-text-properties". Afterwards, I closed the buffer, then re-open the file to show the headline can be expanded normally, and show the subtree content. Here is the uploaded

Re: BUG: org-cycle does not unfold some subtrees

2023-05-05 Thread Christopher M. Miles
Michael Dauer writes: > Maybe I missed a known bug when doing the research. But all the other reports > describe different and > reproducible behaviour. > > Sometimes (often) I cannot unfold a subtree. It then affects only one or more > subtrees while others in the > same buffer or even the

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

2023-05-05 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> - [X] Then I check out Emacs source code file "epg.el" & "epa.el" file >> git log. -> have not found obvious gpg command-line options relat

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

2023-05-05 Thread Christopher M. Miles
Ihor Radchenko writes: > Some more info: > https://old.reddit.com/r/emacs/comments/137r7j7/gnupg_241_encryption_issues_with_emacs_orgmode/ Indeed same problem as mine. Thanks Ihor - [X] *downgrade* GnuPG from 2.4.1 -> 2.4.0 temporary get around the problem. #+begin_src sh brew info

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

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

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

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

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

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

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

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

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

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

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

2023-05-02 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I downgrade gnupg, then the problem solved. But the downgrade version is >> very old (gnupg@2.4.1 -> gnupg@2.2.41). I suspend problem is somewhere >> else, like Emacs interaction with GnuP

[CLOSED] [ANSWER] Re: a temporary workaround solution using another language like "python"

2023-05-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I check out ob-screen, it indeed can be used in my situation, thanks for >> suggestion. > > Also, you can try --no-terminal cmd switch for mpv. It will suppress > terminal interaction, AFAIU. I

Re: [SUGGESTION] Re: [PATCH] org-crypt-decrypt-entry: Apply initial visibility upon decryption

2023-05-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> The current CPU report indeed not contains heavy org-crypt. Because my >> epa get problem. When I edit a GnuPG encrypted "encrypt.org.gpg", it >> suspend on epa waiting for process to fi

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

2023-05-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> My first version property "EVAL" inline src block indeed don't using >> :async and :session. It can play video file. >> >> But I found it will block [Tab] org-cycle expand headline.

Re: [SOLUTION] a temporary workaround solution using another language like "python"

2023-05-01 Thread Christopher M. Miles
Max Nikulin writes: > On 01/05/2023 20:08, Christopher M. Miles wrote: >> I use another language "python" to replace "sh" to play video now. It >> successes. >> :EVAL: src_python{import os; video_file = "枕刀歌/《枕刀歌》SE05 江海阔 歌谣哼唱.mp4";

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

2023-05-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I might consider to use another language like python instead of sh to >> execute command to play video to get around this issue. I will update >> here if I success. > > All you need to do is ge

Re: [SUGGESTION] Re: [PATCH] org-crypt-decrypt-entry: Apply initial visibility upon decryption

2023-05-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>>>> May you elaborate what performance issues you are experiencing? >>>> >>>> My performance issue is a large Org file about 2M size on saving. I will >>>> repro

[SOLUTION] a temporary workaround solution using another language like "python"

2023-05-01 Thread Christopher M. Miles
I use another language "python" to replace "sh" to play video now. It successes. Here is my example: #+begin_src org ,* 《枕刀歌》 :PROPERTIES: :DATE: [2021-05-13 Thu 20:09] :Douban: https://movie.douban.com/subject/35350794/ :DIR: 枕刀歌 :EVAL: src_python{import os; video_file =

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

2023-05-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> So, it looks to me like mpv is somehow trying to interpret "echo" commands >>> the >>> ob-shell is sending after "mpv " is executed: >> ... >> Don't kn

Re: [SUGGESTION] Re: [PATCH] org-crypt-decrypt-entry: Apply initial visibility upon decryption

2023-05-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> We should certainly not attempt decryption on by default - it may >>> be annoying when you actually do not want to decrypt anything, just >>> look inside. >> >> You're right, I

Re: [SUGGESTION] Re: [PATCH] org-crypt-decrypt-entry: Apply initial visibility upon decryption

2023-05-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I'm also try to improve this file to improve large Org buffer saving >> performance. > > org-encrypt already caches the encrypted text and takes basically no > time for the repeated encrypt

Re: [Need Help] Error to evaluate "mpv" command in inline src block

2023-05-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>>> But I failed to execute mpv command: >>>> >>>> #+begin_src org >>>> Test src_sh{mpv "枕刀歌/《枕刀歌》SE05 江海阔 歌谣哼唱.mp4"} >>>> #+end_src >>>

Re: [Need Help] Error to evaluate "mpv" command in inline src block

2023-05-01 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>>> But I failed to execute mpv command: >>>> >>>> #+begin_src org >>>> Test src_sh{mpv "枕刀歌/《枕刀歌》SE05 江海阔 歌谣哼唱.mp4"} >>>> #+end_src >>>

[SUGGESTION] Re: [PATCH] org-crypt-decrypt-entry: Apply initial visibility upon decryption

2023-04-30 Thread Christopher M. Miles
Thanks Ihor for improve this file. I'm also try to improve this file to improve large Org buffer saving performance. I have some ideas: - auto encrypt buffer on buffer save hook (currently mechanism, your patch improved it) - auto decrypt on org-cycle expand headline if current headline is

Re: [Need Help] Error to evaluate "mpv" command in inline src block

2023-04-30 Thread Christopher M. Miles
Ihor Radchenko writes: > stardiviner writes: > >> I have Emacs Org mode config like bellowing to auto evaluate inline src >> block when Org headline cycle expanded. >> ... >> Here is the testing Org content: >> ... >> >> When I press Tab key to expand upper headline. I check the inline src

Re: [Need Help] Error to evaluate "mpv" command in inline src block

2023-04-30 Thread Christopher M. Miles
Ruijie Yu writes: > Try putting "cat" there. I suspect something is fed into the stdin of > the process. Can you explain in detailed? Don't know how to put command "cat" in my situation. -- [ stardiviner ] I try to make every word tell the meaning that I want to express without

Re: Emacs and org mode in aws

2023-04-16 Thread Christopher M. Miles
Naresh Gurbuxani writes: > In my Amazon Web Service account, I can launch emacs from the terminal. > Nearly all emacs features > work well. But I miss the ability to view graphs created by code blocks in > org mode. Have other > members found a solution? > I don't know whether AWS supports

[SOLVED] Re: How to change working directory in ob-matlab source block?

2023-04-12 Thread Christopher M. Miles
stardiviner writes: > Is there friend know Emacs Org mode and Matlab here? > > I try to save Matlab plot into image file in another path instead of current > working directory. Like > bellowing code: > > #+headers: :var cwd=(expand-file-name "data/images/" (file-name-directory >

Re: Remove "shell" as a supported Babel language within ob-shell.el

2023-03-24 Thread Christopher M. Miles
At first, thanks for this long parsing and explanation. Matt writes: > > Matt m...@excalamus.com> writes: > > > > > Is there a reason you're using "shell" instead of one of the shells > listed in `org-babel-shell-names'? > > I'm still curious why you're using "shell". I want to know if

Re: [RFC] Limit inline image width by default (was: feature request: easy embedding of images)

2023-03-23 Thread Christopher M. Miles
This is an acceptable solution for large width image. I propose this RFC too. -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG:

Re: [SUGGESTION] ob-shell async result output should not contains shell prompt

2023-03-23 Thread Christopher M. Miles
Matt writes: > On Wed, 22 Mar 2023 23:25:50 -0400 Christopher M. Miles wrote --- > > > > The ob-shell async result output contains the shell prompt. I think it > > should not be captured. > > > > #+begin_src shell :session "test2" :as

[CANCELED] Re: [BUG] org-capture got file userlock error when I capture on second time.

2023-03-22 Thread Christopher M. Miles
Ihor Radchenko writes: > stardiviner writes: > >> When I org-capture from elfeed-entry buffer (I defined custom functions to >> extract elfeed entry buffer content) in the second time and later, the >> bellowing error raised up. The first-time capture is fine. >> >> Here is the error

[SUGGESTION] ob-shell async result output should not contains shell prompt

2023-03-22 Thread Christopher M. Miles
The ob-shell async result output contains the shell prompt. I think it should not be captured. #+begin_src shell :session "test2" :async t sleep 30 echo "hello, world" #+end_src #+RESULTS[(2023-03-23 11:19:22) 461ed5de684f6e619890709175ec73e80b67b2d6]: : bash-5.2$ hello, world -- [

Re: [SUGGESTION] separate ob-clojure.el into Clojure part ob-clojure.el and ClojureScript part ob-clojurescript.el

2023-03-20 Thread Christopher M. Miles
Ihor Radchenko writes: > Daniel Kraus writes: > >>> The only downside is that people might need to >>> (require 'ob-clojurescript) >>> I am thinking if ob-core.el should try to automatically guess the >>> correct library to be loaded. >> >> We could just (require 'ob-clojurescript) inside

Re: [SUGGESTION] separate ob-clojure.el into Clojure part ob-clojure.el and ClojureScript part ob-clojurescript.el

2023-03-20 Thread Christopher M. Miles
Ihor Radchenko writes: > stardiviner writes: > >> For now, ob-clojure.el contains lot of code for ClojureScript. Only some >> code has same functionality. Like CIDER backend. In the future, >> ClojureScript part code will increase and different. So I suggest >> separate them into two source

[SUGGESTION] separate ob-clojure.el into Clojure part ob-clojure.el and ClojureScript part ob-clojurescript.el

2023-03-20 Thread Christopher M. Miles
For now, ob-clojure.el contains lot of code for ClojureScript. Only some code has same functionality. Like CIDER backend. In the future, ClojureScript part code will increase and different. So I suggest separate them into two source code files. WDYT? -- [ stardiviner ] I try to make every word

Re: [BUG] Shift-up/down move the cursor to end of timestamp

2022-12-02 Thread Christopher M. Miles
I meet this bug too. -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 signature.asc

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

2022-11-14 Thread Christopher M. Miles
mag_dex writes: > Dear All, > > I designed a hack to see your clocked-in task on your bar (and not only). > > The hack is composed of a few elements, Emacs code that adds hooks for > clock-in and clock-out and a code > for Xbar. > > I have been using this for 2 years, and it's pretty robust. I

Re: Tutorials on creating pdfs with org-babel and sqlite

2022-11-12 Thread Christopher M. Miles
You can check out http://www.howardism.org/Technical/Emacs/literate-database.html This is very great. Jan Ulrich Hasecke writes: > [[PGP Signed Part:Undecided]] > Dear all, > > I am doing my first steps to do some database publishing with org-babel > and sqlite. So far quite successful, but

Re: CI tests

2022-11-06 Thread Christopher M. Miles
Christian Köstlin writes: > Dear org-mode users, > > > at the moment I am trying to enable as much of the org-mode testsuite > on the ci server (see https://builds.sr.ht/~bzg for the latest > testruns). > > From time to time some tests fail, because the time when e.g. a > timestamp is written

Re: Auto detect ob-clojure backend (was: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list)

2022-10-30 Thread Christopher M. Miles
Daniel Kraus writes: > Ihor Radchenko writes: > >> Daniel Kraus writes: >> >>> +(defcustom org-babel-clojure-backend (cond >>> + ((executable-find "bb") 'babashka) >>> + ((executable-find "nbb") 'nbb) >>> +

[CLOSED] Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-29 Thread Christopher M. Miles
Daniel Kraus writes: > Hi > > Ihor Radchenko writes: >> "Christopher M. Miles" writes: >>> Any review comments about this patch? >> I have sent the following comment shortly after your followup: > > I even made another post after that, suggest

[CLOSED] Re: [BUG] Org mode treat tags as links

2022-10-29 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I defined a custom link type "video:". >> >> And when I added tag "video" in tags like bellowing: >> >> #+begin_src org >> * headline 1 :tag1:video:hello >

Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-28 Thread Christopher M. Miles
Any review comments about this patch? "Christopher M. Miles" writes: > [[PGP Signed Part:Undecided]] > > I bellowing example: > > #+begin_src org > ,#+NAME: ob-clojure-table-test > | a | b | c | > |---+---+---| > | 1 | 2 | 3 | > > ,#+

[BUG] Org mode treat tags as links

2022-10-28 Thread Christopher M. Miles
I defined a custom link type "video:". And when I added tag "video" in tags like bellowing: #+begin_src org * headline 1 :tag1:video:hello #+end_src It caused the tag ":video:" parsed and recognized as link. Here is the screenshot: I suppose the link parsing need to be improved. -- [

Re: [ANN] The 2022 Emacs User Survey is now open!

2022-10-26 Thread Christopher M. Miles
Completed Timothy writes: > Hi All, > > I’m thrilled to announce that the Emacs User Survey 2022 is now open to > responses. It is my hope that this may help emacs-devel, Emacs package > maintainers, and the wider Emacs community develop a better understanding of > how people experience Emacs

Re: [PATCH v3] New: auto display inline images under subtree when `org-cycle'.

2022-10-25 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> Sure. Can you please send the final version of the patch and the working >>> tests? >> >> I separated code patch and test into two patches. You can apply selectively. > > Sorry,

Re: [PATCH 2-v4] New: auto display inline images under subtree when `org-cycle'.

2022-10-23 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> Whether can this patch be merged at first, put the test in future to >> finish? In recent days, I still have not figured out this image overlays >> test. > > Sure. Can you please send the fi

Re: [PATCH 2-v4] New: auto display inline images under subtree when `org-cycle'.

2022-10-21 Thread Christopher M. Miles
Whether can this patch be merged at first, put the test in future to finish? In recent days, I still have not figured out this image overlays test. "Christopher M. Miles" writes: > [[PGP Signed Part:Undecided]] > > Ihor Radchenko writes: > >> "Christopher M

Re: [BUG] Org mode does not recognize the last character "_" in URL link

2022-10-19 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> When URL has a character "_" at the end, Org mode can't fontify the URL >> link correctly. >> >> For example: >> >> https://www.twitter.com/example_ > > Plain lin

[SOLVED] Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute

2022-10-19 Thread Christopher M. Miles
Eli Zaretskii writes: >> From: Ihor Radchenko >> Date: Sun, 2 Oct 2022 18:57:56 +0800 >> Cc: Eli Zaretskii , emacs-de...@gnu.org, emacs-orgmode@gnu.org >> >> 1. find an image file in your system >> 2. emacs -Q >> 3. M-: (erase-buffer) >> 4. Insert "askdjaklsdj lasasd" >> 5. M-: (require 'org)

[BUG] Org mode does not recognize the last character "_" in URL link

2022-10-17 Thread Christopher M. Miles
When URL has a character "_" at the end, Org mode can't fontify the URL link correctly. For example: https://www.twitter.com/example_ -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/

Re: [PATCH] (v2) Fix void variable error `cider-buffer-ns` when specifying :backend header argument

2022-10-12 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> After updated to latest commit, I found error, >> >> Reproduce: >> >> When I specified the `:backend` header argument: >> >> #+begin_src clojure :backend babashka >&g

[PATCH] Fix void variable error `cider-buffer-ns` when specifying :backend header argument

2022-10-11 Thread Christopher M. Miles
After updated to latest commit, I found error, Reproduce: When I specified the `:backend` header argument: #+begin_src clojure :backend babashka (+ 2 4) #+end_src I got error: #+begin_example void variable: cider-buffer-ns #+end_example Here is the patch fix upper issue. From

Re: [PATCH 2-v4] New: auto display inline images under subtree when `org-cycle'.

2022-10-10 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> I think that the best we can do in this situation is mocking >>> `create-image' in batch mode to return non-nil using `cl-letf'. >> >> I checked the `create-image' in image.el source c

Re: [PATCH v2] Re: org-contacts: Dead link at https://orgmode.org/worg/org-contrib/index.html

2022-10-09 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> From 1521f4e27360d536197ee0ac524a641aad02822f Mon Sep 17 00:00:00 2001 >> From: stardiviner >> Date: Sat, 8 Oct 2022 20:40:34 +0800 >> Subject: [PATCH] Fix dead link of org-contacts > &

Re: [PATCH] LSP support in org-src buffers

2022-10-08 Thread Christopher M. Miles
+1 Good patch, will it consider to also support package "lsp-mode"? Or at least make it easy to extending for other lsp-related packages? -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/

[PATCH] Re: org-contacts: Dead link at https://orgmode.org/worg/org-contrib/index.html

2022-10-08 Thread Christopher M. Miles
Ihor Radchenko writes: > Hi, > > Could you please update the link to the actual version of org-contacts > documentation in https://orgmode.org/worg/org-contrib/index.html? > > You can send a patch against https://git.sr.ht/~bzg/worg to Org ML. From 1521f4e27360d536197ee0ac524a641aad02822f Mon

Re: Add 'backend' header arg to clojure code blocks

2022-10-08 Thread Christopher M. Miles
+1 Chris Clark writes: > This is my first attempt to contribute to org-mode; please let me know if I'm > doing something wrong. > > Attached is a patch to incorporate some of the changes that were originally > presented by Ag Ibragimov > here:

  1   2   3   >