Re: [PATCH] improve ol-man.el with occur searching

2020-08-31 Thread numbch...@gmail.com
:22 AM numbch...@gmail.com wrote: > Thanks for reviewing my code and points. :) > Fixed in this attached patch. > > [stardiviner] GPG key ID: 47C32433 > IRC(freeenode): stardiviner Twitter: @numbchild > Key fingerprint = 9BAA 92BC CDDD B9EF 3B

[Feature Request] let Org Mode support multiple running clocking instances

2020-08-23 Thread numbch...@gmail.com
I have some situations, need to run multiple clocking to mark different headline tasks. I remember there is one exist question thread already, but I can't find it after search in archive. So I propose this feature again here. Hope Org Mode can implement it. WDYT? [stardiviner] GPG

[SOLVED] Re: [PROBLEM] The commit "e1f09607e0" caused org-mode inline image preview try to convert PDF file link

2020-08-22 Thread numbch...@gmail.com
://stardiviner.github.io/ On Sat, Aug 22, 2020 at 9:03 PM Lars Ingebrigtsen wrote: > "numbch...@gmail.com" writes: > > > The commit "e1f09607e0" caused this problem. I confirmed by git > > checkout a commit before it. And re-eval source code, then the problem > &g

[SOLVED] Re: [BUG] The latest commit "f4687993c53a5339e" caused inline image preview try to convert PDF file link

2020-08-17 Thread numbch...@gmail.com
2433 Blog: http://stardiviner.github.io/ On Mon, Aug 17, 2020 at 2:15 PM Nicolas Goaziou wrote: > Hello, > > "numbch...@gmail.com" writes: > > > The latest commit "f4687993c53a5339e" added "pdf" file type into inline > > image rules. &g

Re: [PATCH] improve ol-man.el with occur searching

2020-08-16 Thread numbch...@gmail.com
/ On Sun, Aug 16, 2020 at 5:54 PM Nicolas Goaziou wrote: > Hello, > > "numbch...@gmail.com" writes: > > > With this patch, ol-man.el link type can be a link like this: > > ```org > > [[man:grep::--extended-regexp][grep --extended-regexp]] > > ```

Re: How to detect current in logbook drawer?

2020-08-16 Thread numbch...@gmail.com
tested to use `debug-on-entry` on `org-agenda`. It can > > popup a stoppoint backtrace. > > Strange. I had no problem with debugging `org-agenda-finalize` on my > system. > > Best, > Ihor > > > "numbch...@gmail.com" writes: > > > Ihor, thanks for y

[BUG] The latest commit "f4687993c53a5339e" caused inline image preview try to convert PDF file link

2020-08-16 Thread numbch...@gmail.com
RT. The latest commit "f4687993c53a5339e" added "pdf" file type into inline image rules. This caused org-toggle-inline-image try to convert large PDF into png images. Caused very long time suspend. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner

Re: How to detect current in logbook drawer?

2020-08-16 Thread numbch...@gmail.com
): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Mon, Aug 17, 2020 at 8:38 AM numbch...@gmail.com wrote: > Ihor, thanks for your detailed help. > I followed your steps, the `elp` s

Re: How to detect current in logbook drawer?

2020-08-16 Thread numbch...@gmail.com
unction #'org-link-beautify) > ;; run agenda > ;; M-x elp-results > > Another suggestion would be invoking debug-on-entry for you function, > for org-activate-links, and for org-agenda-finalize. > > Best, > Ihor > > > > > "numbch...@gmail.com" writes

Re: How to detect current in logbook drawer?

2020-08-15 Thread numbch...@gmail.com
ematic part according to > the profiler report. > > A blind guess - maybe you are modifying match data somewhere in your > code. This might cause infinite loop in > > > (while (org-activate-links (point-max)) (goto-char (match-end 0))) > > Best, > Ihor > > "numbc

Re: How to detect current in logbook drawer?

2020-08-15 Thread numbch...@gmail.com
blind guess - maybe you are modifying match data somewhere in your > code. This might cause infinite loop in > > > (while (org-activate-links (point-max)) (goto-char (match-end 0))) > > Best, > Ihor > > "numbch...@gmail.com" writes: > > > Thanks for rep

Re: How to detect current in logbook drawer?

2020-08-15 Thread numbch...@gmail.com
ed-mode-p 'org-agenda-mode) (progn (org-agenda-redo t (setq --dolist-tail-- (cdr --dolist-tail-- (org-agenda-redo t)) org-agenda-redo-all(nil) funcall-interactively(org-agenda-redo-all nil) call-interactively(org-agenda-redo-all nil nil) command-execute(org-agenda-redo-all) ```

Re: How to detect current in logbook drawer?

2020-08-15 Thread numbch...@gmail.com
use `org-logbook-drawer-re'. > > > When I toggle org-log-mode and related options in org-agenda buffer. I > > found my org-link-beautify will caused long time suspend and no stop. > After > > debug, I found org-link-beautify text-property caused this problem. > >

How to detect current in logbook drawer?

2020-08-13 Thread numbch...@gmail.com
I have a org-mode extension: https://github.com/stardiviner/org-link-beautify/blob/master/org-link-beautify.el#L71 It will beautify links with text-properties. When I toggle org-log-mode and related options in org-agenda buffer. I found my org-link-beautify will caused long time suspend and no st

[PATCH] improve ol-man.el with occur searching

2020-08-13 Thread numbch...@gmail.com
With this patch, ol-man.el link type can be a link like this: ```org [[man:grep::--extended-regexp][grep --extended-regexp]] ``` Occur will auto search "--extended-regexp" string in man page buffer. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner

[SOLVED] Re: [Discuss] separate (recenter window-line) out of org-agenda-redo

2020-07-30 Thread numbch...@gmail.com
Marco Wahl wrote: > "numbch...@gmail.com" writes: > > > I try to add an idle timer to auto refresh org agenda views. > > > > Here is what I code: > > > > #+begin_src emacs-lisp > > ;;; auto refresh `*Org Agenda*' buffer > > (defu

[Help needed] Re: [Discuss] separate (recenter window-line) out of org-agenda-redo

2020-07-27 Thread numbch...@gmail.com
: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Mon, Jul 27, 2020 at 3:46 PM Marco Wahl wrote: > "numbch...@gmail.com" writes: > > [...

[Discuss] separate (recenter window-line) out of org-agenda-redo

2020-07-26 Thread numbch...@gmail.com
I try to add an idle timer to auto refresh org agenda views. Here is what I code: #+begin_src emacs-lisp ;;; auto refresh `*Org Agenda*' buffer (defun my/org-agenda-auto-refresh () "Rebuild all agenda views buffers." (org-agenda-redo-all t)) (run-with-idle-timer (* 60 20) t #'my/org-agenda-a

How to improve my extension source code don't generate so many timers?

2020-07-17 Thread numbch...@gmail.com
I write an extension org-link-beautify ( https://github.com/stardiviner/org-link-beautify). It use text-property to display all-the-icons icon for links. When I use `list-timers`, I found many timers like this: #+begin_example 1179.80 -#f(compiled-function () # [# ("-1003358868.jpg" :

Re: [PATCH] Fix ob-python.el initiate session error with py-shell

2020-02-18 Thread numbch...@gmail.com
Yes, Jack, as Bastien said, you can format my commit, because my home network is broken, I'm using Mobile Phone's 4G network to get online. Can't get update immediately. And thanks for tips about `python-mode' is deprecated. I didn't know that. I will migrate to `python.el'. [stardiviner]

Re: [O] org-notify dbus send message to KDE/Plasma caused desktop suspend

2019-09-13 Thread numbch...@gmail.com
Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Sep 12, 2019 at 5:52 AM Adam Porter wrote: > "numbch...@gmail.com" writes: > > > org-notify dbus send message to KDE/Plasma caused deskt

[O] org-notify dbus send message to KDE/Plasma caused desktop suspend

2019-09-10 Thread numbch...@gmail.com
org-notify dbus send message to KDE/Plasma caused desktop suspend and high CPU,memory resources. Here is my config: ```elisp (setq org-notify-audible nil) (org-notify-add 'default '(:time "1h" :period "1h" :duration 8 :actions (-ding -notify/window)

[O] ob-clojure can't cross source block handle :var in :noweb source block

2019-08-27 Thread numbch...@gmail.com
I have bellowing example: ```org #+NAME: read-in-wxid #+begin_src clojure :var cwd=(file-truename "~/Documents/WeChat/wxid/") (require '[clojure.java.io :as io]) (def directory (io/file cwd)) (def files (filter #(.isFile %) (file-seq directory))) #+end_src #+RESULTS[<2019-08-28 09:12:24> 84a1210d

Re: [O] Helm + Org-mode 9.2.5: Problem with org-set-tags

2019-08-13 Thread numbch...@gmail.com
Seems newly added a package which seems is separated from helm.el. https://github.com/emacs-helm/helm-org [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Bl

Re: [O] coderef link should support external file path link.

2018-08-23 Thread numbch...@gmail.com
Maybe I forgot it. Could be another suggestion because I have not found it in my recorded issues. (addded it now) Hmm. Recently I don't have time to check it out. If I got time to do this, I will update it here. It's not urgent, if you don't have time too, leave it opened is fine. [stardiviner]

Re: [O] buffer-file-name in [* Org src *] buffers

2018-03-11 Thread numbch...@gmail.com
I agree, should compatible with situations like `flycheck` need to use buffer-file-name. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiv

[O] [ORG] [FEATURE] ob-js.el support :session for all existing JS packages

2018-03-10 Thread numbch...@gmail.com
: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Mar 8, 2018 at 5:41 PM, numbch...@gmail.com wrote: > ​I pushed code at this branch: > ​ &

[O] [FEATURE] ob-js.el support :session with skewer-mode

2018-03-08 Thread numbch...@gmail.com
​I pushed code at this branch: ​ https://code.orgmode.org/stardiviner/org-mode/src/ob-js-skewer Hope someone can review it. and merge it. (I found https://code.orgmode.org/ does not have the create PR button now. Is it disabled?) [stardiviner] GPG key ID: 47C32433 IRC(freeenode):

Re: [O] org-babel-execute-src-block does not insert inline image with `master` branch source code Org

2018-03-05 Thread numbch...@gmail.com
Blog: http://stardiviner.github.io/ On Sun, Mar 4, 2018 at 9:54 PM, numbch...@gmail.com wrote: > With following example: > ``` > #+begin_src gnuplot :session :results graphics :file "data/images/sin.png" > :cache no > set term png > set grid > plot sin(x), cos(x) &

[O] org-babel-execute-src-block does not insert inline image with `master` branch source code Org

2018-03-04 Thread numbch...@gmail.com
With following example: ``` #+begin_src gnuplot :session :results graphics :file "data/images/sin.png" :cache no set term png set grid plot sin(x), cos(x) #+end_src ``` If I use Org-mode ELPA version. then it works fine. But when I use `master` branch version, then it does not have any result. Trie

Re: [O] Bug: [ob-clojure] Surprising evaluation result [9.1.6 (release_9.1.6-491-g70b029 @ /Users/xcy/src/org-mode/lisp/)]

2018-03-02 Thread numbch...@gmail.com
No, it's not expected result. It should be caused by my commit here https://code.orgmode.org/bzg/org-mode/pulls/5 Don't know how to workaround this. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC C

[O] How to pass `format` result string to org-babel-execute:clojure function?

2018-02-14 Thread numbch...@gmail.com
I try add advice as I posted at here https://emacs.stackexchange.com/questions/38818/how-to-write-this-advice-for-inject-code-into-let-binding And here is my final code (some lines commented out for easy debug): ```elisp ;;; Support header arguments :results file :file "image.png" (defun ob-clo

Re: [O] Two ob-lua versions

2018-02-14 Thread numbch...@gmail.com
B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Wed, Feb 14, 2018 at 6:18 PM, numbch...@gmail.com wrote: > Hi, sorry for this. I have not noticed that. I will create an PR to remove > my `ob-lua.el` as soon as fast. > > [stardiviner] GPG key ID: 47C32433 >

Re: [O] Two ob-lua versions

2018-02-14 Thread numbch...@gmail.com
Hi, sorry for this. I have not noticed that. I will create an PR to remove my `ob-lua.el` as soon as fast. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Bl

Re: [O] Smart archiving of subtrees with parent headlines

2018-02-09 Thread numbch...@gmail.com
I like this idea. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Sat, Feb 10, 2018 at 12:42 AM, Mark Edgington wrot

[O] Org-mode new website accept PR like GitHub?

2018-02-07 Thread numbch...@gmail.com
Can I send PR to add contrib support at new Org-mode source code website like this: https://code.orgmode.org/bzg/org-mode/pulls/1 [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99

Re: [O] org-eldoc error on shell src blocks

2018-02-03 Thread numbch...@gmail.com
://stardiviner.github.io/ On Fri, Feb 2, 2018 at 9:32 AM, numbch...@gmail.com wrote: > When I enable `eldoc-mode` in org-mode. > eldoc timer running when on `shell` src blocks like: > > #+begin_src shell > git log $rev..origin/emacs-25 -- lisp/org doc/misc/org.texi \ > etc/re

Re: [O] org-mode source code repo make error

2018-02-02 Thread numbch...@gmail.com
tardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Fri, Feb 2, 2018 at 12:18 PM, Yasushi SHOJI wrote: > Hi, > > On Fri, Feb 2, 2018 at 10:24 AM, numbch...@gmail.com > wrote: >

[O] org-eldoc error on shell src blocks

2018-02-01 Thread numbch...@gmail.com
When I enable `eldoc-mode` in org-mode. eldoc timer running when on `shell` src blocks like: #+begin_src shell git log $rev..origin/emacs-25 -- lisp/org doc/misc/org.texi \ etc/refcards/orgcard.tex etc/ORG-NEWS etc/org \ etc/schema/od-manifest-schema-v1.2-os.rnc \ etc/schema/od-schem

[O] org-mode source code repo make error

2018-02-01 Thread numbch...@gmail.com
When I try to compile with command `make`, but got this output: ``` make -C doc clean; make -C lisp clean; make[1]: Entering directory '/home/stardiviner/Code/Emacs/org-mode/doc' rm -f org *.pdf *.html *_letter.tex org-version.inc org-version.tex \ *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.ky

[O] Why the new structure template engine not in Org ELPA package?

2018-01-28 Thread numbch...@gmail.com
RT. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/

Re: [O] [feature] prepend comment char before org-babel-ref

2018-01-28 Thread numbch...@gmail.com
wrote: > Nicolas Goaziou writes: > > > Hello, > > > > "numbch...@gmail.com" writes: > > > >> Because it is not good for tangling. > >> For example, tangle the bellowing src block, the tangled source code > file > >> will has `(re

Re: [O] [feature] prepend comment char before org-babel-ref

2018-01-26 Thread numbch...@gmail.com
Blog: http://stardiviner.github.io/ On Fri, Jan 26, 2018 at 8:34 PM, numbch...@gmail.com wrote: > Because it is not good for tangling. > For example, tangle the bellowing src block, the tangled source code file > will has `(ref:hello)` too. > ``` > #+begin_src emacs-lisp :tangle

Re: [O] [feature] prepend comment char before org-babel-ref

2018-01-26 Thread numbch...@gmail.com
fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Fri, Jan 26, 2018 at 4:19 AM, Nicolas Goaziou wrote: > Hello, > > "numbch...@gmail.com" writes: > > > I see. Seems current ob-core.el can filter out the `src-coderef`. > > Li

Re: [O] [feature] prepend comment char before org-babel-ref

2018-01-25 Thread numbch...@gmail.com
int = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Wed, Jan 24, 2018 at 9:40 PM, Nicolas Goaziou wrote: > Hello, > > "numbch...@gmail.com" writes: > > > I think this function should be in Org-mode itself. > &

[O] [feature] prepend comment char before org-babel-ref

2018-01-23 Thread numbch...@gmail.com
I'm currently using this advice: ```elisp ;;; prepend comment char ahead of `org-babel-ref'. ;; auto prefix with comment char when create code ref in src block with `org-store-link'. (defun org-babel-ref-prepend-comment-char (arg &optional interactive?) "Prepend comment chart in Org-mode src code

Re: [O] compatible issue between MELPA org and source code org

2018-01-23 Thread numbch...@gmail.com
47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Wed, Jan 24, 2018 at 12:15 AM, Kaushal Modi wrote: > On Tue, Jan 23, 2018 at 11:09 AM numbch...@gmail.com > wro

Re: [O] compatible issue between MELPA org and source code org

2018-01-23 Thread numbch...@gmail.com
3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Tue, Jan 23, 2018 at 8:26 PM, Kaushal Modi wrote: > On Mon, Jan 22, 2018, 4:41 AM numbch...@gmail.com > wrote: > >> >> Does anybody have a perfect solution to use latest source code Org in >> Emacs w

Re: [O] change in calling remote code blocks?

2018-01-22 Thread numbch...@gmail.com
I agree. use `file::name` is better. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Tue, Jan 23, 2018 at 3:24 AM, Ni

[O] compatible issue between MELPA org and source code org

2018-01-22 Thread numbch...@gmail.com
Because some MELPA package requires `org`. So Emacs will **force** install `org` package from MELPA. But it is delay with source code Org. I use source code org with use-package like this: ``` (use-package org :load-path "~/Code/Emacs/org-mode/lisp/" :pin manual ;; :mode (("\\.org$" . org-mod

Re: [O] unhex org-link for shell command

2018-01-17 Thread numbch...@gmail.com
wrote: > Hello, > > "numbch...@gmail.com" writes: > > > I'm developing an Emacs package > > https://github.com/stardiviner/org-send-ebook . > > I found Org-mode hex spaces in filename with "%20", So I reverse this > with > > function

[O] unhex org-link for shell command

2018-01-17 Thread numbch...@gmail.com
I'm developing an Emacs package https://github.com/stardiviner/org-send-ebook . I found Org-mode hex spaces in filename with "%20", So I reverse this with function `(url-unhex-string (org-element-property :path (org-element-context)))`. But this only works for English filename. If it is Chinese fil

[O] How to apply function on org-capture template substitute variable %i?

2018-01-13 Thread numbch...@gmail.com
I have a org-capture template like this: ``` (setq org-capture-templates (append '(("w" "org-drill [w]ords" entry (file my-org-drill-words-file) "* %i :drill: :PROPERTIES: :DRILL_CARD_TYPE: %^{Drill Difficulty|simple|twosided|multisided|hide1cloze} :END

Re: [O] Orgmode repeater intervals with end date

2018-01-12 Thread numbch...@gmail.com
You can try this: ``` * Test repeat time range with end date DEADLINE: <2018-01-01 Mon 12:00 .+2d>--<2018-01-13 Sat> ``` This will repeat, and end on the day 13. Also deadline works fine. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @

Re: [O] I created a package ob-clojure-literate for Clojure Literate Programming in Org-mode

2018-01-04 Thread numbch...@gmail.com
CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Jan 4, 2018 at 7:39 PM, Bastien Guerry wrote: > Thanks! > > "numbch...@gmail.com" writes: > > > No, I asked Clojure ML, and posted an issue on clojure-mode GitHub > > issues. I need to find a

Re: [O] I created a package ob-clojure-literate for Clojure Literate Programming in Org-mode

2018-01-04 Thread numbch...@gmail.com
://stardiviner.github.io/ On Thu, Jan 4, 2018 at 6:55 PM, Bastien Guerry wrote: > "numbch...@gmail.com" writes: > > > https://github.com/stardiviner/ob-clojure-literate > > Thanks for sharing this. > > About this part: > > (defun ob-clojure-cider-do-not-find-ns () >

Re: [O] I created a package ob-clojure-literate for Clojure Literate Programming in Org-mode

2018-01-04 Thread numbch...@gmail.com
Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Jan 4, 2018 at 6:55 PM, Bastien Guerry wrote: > "numbch...@gmail.com" writes: > > > https://github.com/stardiviner/ob-clojure-l

[O] [SOLVED] Re: How to get a list of all TODO keywords from defined variable `org-todo-keywords`?

2018-01-04 Thread numbch...@gmail.com
This works great. Thanks. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Jan 4, 2018 at 10:23 AM, Adam Porter

[O] I created a package ob-clojure-literate for Clojure Literate Programming in Org-mode

2018-01-04 Thread numbch...@gmail.com
I created a package ob-clojure-literate for Clojure Literate Programming in Org-mode. Welcome to use it and add PR. https://github.com/stardiviner/ob-clojure-literate I still have two features not implemented. Hope someone will PR. Thanks very much. [stardiviner] GPG key ID: 47C3

[O] How to get a list of all TODO keywords from defined variable `org-todo-keywords`?

2018-01-03 Thread numbch...@gmail.com
I'm trying to select TODO keyword when doing org-capture. Like this: (setq org-capture-templates '(("c" "[C]apture" entry (file "") ;; HACK: select todo keyword interactively from `org-todo-keywords'. ;; 1. command `org-todo' "* %(completing-read \"Todo keyword: \" (mapca

Re: [O] ob-python specify :session error

2017-12-29 Thread numbch...@gmail.com
After Edebug: I found the problem location: - [ ] org-babel-execute:python #+begin_src emacs-lisp (session (org-babel-python-initiate-session (cdr (assq :session params #+end_src - [ ] org-babel-python-initiate-session - [ ] org-babel-python-session-buf

Re: [O] ob-python specify :session error

2017-12-29 Thread numbch...@gmail.com
Still get same error: > org-babel-python-evaluate-session: Buffer *Python-*Python** does not exist or has no process [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 4

Re: [O] babel header argument :var is not expanded when tangling

2017-12-25 Thread numbch...@gmail.com
I see. I will use noweb style for now. But should tangle expand :var variables when tangling? I think this is the correct behaviour. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 C

[O] babel header argument :var is not expanded when tangling

2017-12-23 Thread numbch...@gmail.com
Here is a quick test: * Test tangle will auto expand and substitute :var #+begin_src js :tangle kk.js console.log("hello, world!"); #+end_src #+begin_src js :var name="chris" :tangle require-kk.js // require("kk.js"); console.log("Hi, ", name); #+end_src #+RESULTS: : Hi, chris #+NAME: check w

Re: [O] Hope ob-js can support :session feature

2017-12-23 Thread numbch...@gmail.com
h dozens of source blocks. In order to > run the block number 23, you will have to run all the preceding blocks on > which that block depends. I don't like that, even if the document is meant > to be read sequentially, from start to finish, I want to be able to open > the org

Re: [O] Hope ob-js can support :session feature

2017-12-22 Thread numbch...@gmail.com
Can you describe how do you do this in detailed? Like: > but since I am using docker containers to run node, I always mount the current directory as a volume in /app inside the container, so that works out fine. > I also think that this way forces me to separate the code in modular blocks, which is

Re: [O] [UPDATE] Re: ob-clojure evaluate error when Org-mode buffer has ns clojure code

2017-12-21 Thread numbch...@gmail.com
Finally found a solution. really hard. spend a lot of time on this issue. The discussion is at here: https://github.com/clojure-emacs/clojure-mode/pull/465 Here is my final source code. paste here as a copy. Hope can help someone want same thing. ;; auto start CIDER REPL session in a complete Lein

Re: [O] How to include diary anniversary entries into default org-agenda?

2017-12-20 Thread numbch...@gmail.com
/ On Thu, Dec 21, 2017 at 10:40 AM, numbch...@gmail.com wrote: > Sorry > > [stardiviner] GPG key ID: 47C32433 > IRC(freeenode): stardiviner Twitter: @numbchild > Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 24

Re: [O] How to include diary anniversary entries into default org-agenda?

2017-12-20 Thread numbch...@gmail.com
Sorry [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Dec 21, 2017 at 10:40 AM, numbch...@gmail.com wrote

Re: [O] How to include diary anniversary entries into default org-agenda?

2017-12-20 Thread numbch...@gmail.com
I tried %%(org-anniversary 2016 12 21) Test anniversary. But this seems does not work. I tested with variable diary-file default value point to ~/.emacs.d/diary file. and has following content: %%(diary-anniversary 10 21 2016) my first child <%%(diary-anniversary 10 21 2016)> my first child %%(or

Re: [O] [BUG] Re: header argument :noweb-ref seems can't be resolved

2017-12-20 Thread numbch...@gmail.com
problem solved, Thanks very much. @Nicolas and @Berry. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Wed, Dec 20,

[O] use a src block's result as input of another src block report error: the input device is not a TTY

2017-12-19 Thread numbch...@gmail.com
Here is my example: #+NAME: get-container-name #+begin_src shell :results output echo $(docker ps --format="{{.Names}}") #+end_src #+RESULTS: get-container-name : elastic_thompson #+begin_src shell :var container_name=get-container-name :noweb yes docker exec -it $container_name pwd # docker exe

Re: [O] header argument :noweb-ref seems can't be resolved

2017-12-18 Thread numbch...@gmail.com
You're right, I searched this function through source code and dived into them. Did not found any obvious places which might cause this issue neither. Hope someone can help here. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchil

Re: [O] Emacs sagmentation fault error on a big org-mode file movement

2017-12-17 Thread numbch...@gmail.com
That should add a lot more interesting detail to the backtrace. > > 3. To go further, repro under GDB, ideally with corresponding source > code. Then you could explore the immediate cause of the segfault. > > Neil > > On 16/12/17 04:27, numbch...@gmail.com wrote: > >

Re: [O] Emacs sagmentation fault error on a big org-mode file movement

2017-12-16 Thread numbch...@gmail.com
38 PM, Eli Zaretskii wrote: > > From: "numbch...@gmail.com" > > Date: Sat, 16 Dec 2017 12:27:58 +0800 > > > > Is there a way to debug this? > > Run Emacs under a debugger, trigger the crash, and produce a more > helpful backtrace by typing the "bt&

[O] Emacs sagmentation fault error on a big org-mode file movement

2017-12-15 Thread numbch...@gmail.com
I have a big org-mode file which is overview at startup. When I navigate around with [C-v] and [M-v]. The Emacs crashed. Here is the output from command-line: ``` Fatal error 11: Segmentation fault Backtrace: emacs[0x51195e] emacs[0x4f739a] emacs[0x50fe3e] emacs[0x510058] emacs[0x5100dc] /usr/lib/

Re: [O] [patch] structure snippet completions

2017-12-09 Thread numbch...@gmail.com
error report when I `(require 'org-tempo)` Debugger entered--Lisp error: (error "Format specifier doesn’t match argument type") format("<%c" "Q") (closure (t) (pair) (format "<%c" (car pair)))(("Q" "#+BEGIN_SRC sql-mode ?\n\n#+END_SRC" "#+BEGIN_SRC sql-mode ?\n\n#+END_SRC")) mapcar((closure

Re: [O] Want help for a helper function which send current link file under point to Kindle path.

2017-12-01 Thread numbch...@gmail.com
int = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Jul 13, 2017 at 8:29 AM, numbch...@gmail.com wrote: > I want to write a helper function to send the link file (usually ebooks) > under the point to Kindle path like (/run/media/username/Kin

Re: [O] What about a space when inserting a src-block?

2017-12-01 Thread numbch...@gmail.com
+1, aggreed, I wish a better keybinding too. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Sat, Dec 2, 2017 at 2:47

Re: [O] ob-shell and remote shells

2017-11-28 Thread numbch...@gmail.com
Off the topic, I'm curious what is the `:session` in `ob-shell` ? [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Tue

Re: [O] Possible bug: Headings greater than level 2 stars not showing -- unable to navigate with normal commands

2017-11-26 Thread numbch...@gmail.com
Yes, I have same issue too. - [ ] org-indent-mode display the 3rd level asterisk as bold - [ ] I can't =[C-c C-f]= And confirmed it is caused by commit ed06b159c | * Small fix to emphasis fontification. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner

Re: [O] Public TODO agendas

2017-11-21 Thread numbch...@gmail.com
- just pulling down > the file and appending it would be easy enough, but going the other way > adds a lot of additional complexity). > > Perhaps this is more something which could fit in with mobile org > efforts? > > Tim > > > > Eric S Fraga writes: > &g

Re: [O] Public TODO agendas

2017-11-20 Thread numbch...@gmail.com
I have similar function requirement. Based on your TRAMP method, I think remote file are just can be transported through any protocols like HTTP, for example remote file like http://example.org/test.org can be downloaded, then append to org-agenda files list. This is just an rough idea. [stardivin

Re: [O] function for inserting a block

2017-11-17 Thread numbch...@gmail.com
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Sat, Nov 18, 2017 at 3:14 AM, Eric Abrahamsen wrote: > "numbch...@gmail.com" writes: > > > Yeah, I misunderstand your code. Anyway, It should be like this: >

Re: [O] function for inserting a block

2017-11-17 Thread numbch...@gmail.com
3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Nov 16, 2017 at 12:24 AM, Eric Abrahamsen wrote: > "numbch...@gmail.com" writes: > > > I think the function `org-insert-structure-template' also should > respect the `org-babel-uppercase

Re: [O] ob-haskell evaluation needs inf-haskell but it does not exist

2017-11-17 Thread numbch...@gmail.com
GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Wed, Nov 15, 2017 at 11:35 PM, Nick Dokos wrote: > "numbch...@gmail.com" writes: >

Re: [O] ob-haskell evaluation needs inf-haskell but it does not exist

2017-11-15 Thread numbch...@gmail.com
IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Wed, Nov 15, 2017 at 9:17 PM, numbch...@gmail.com wrote: > I required `(require 'inf-haskell)` But have not f

Re: [O] ob-haskell evaluation needs inf-haskell but it does not exist

2017-11-15 Thread numbch...@gmail.com
I required `(require 'inf-haskell)` But have not found the command `inf-haskell` to start inferior process. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 B

Re: [O] function for inserting a block

2017-11-15 Thread numbch...@gmail.com
I think the function `org-insert-structure-template' also should respect the `org-babel-uppercase-example-markers'. Besides, your new diff does not have a condition on `org-babel-uppercase-example-markers', you just use `upcase-initials` by default. Then the new `tempo` snippets will be uppercase,

Re: [O] Org-mode link returned path is truncated when contains space

2017-11-11 Thread numbch...@gmail.com
http://stardiviner.github.io/ On Tue, Jun 6, 2017 at 6:49 PM, Nicolas Goaziou wrote: > Hello, > > "numbch...@gmail.com" writes: > > > I checked Org-mode package version with `org-version`, get `9.0.7`, still > > have this issue. I updated to latest org-mode ELP

Re: [O] function for inserting a block

2017-11-11 Thread numbch...@gmail.com
+1 I added a snippet for ` GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Sun, Nov 12, 2017 at 12:35 PM, Matt Lundin wrote: > Carsten Domini

[O] The new function org-insert-structure-template is not following option org-babel-capitalize-example-region-markers

2017-11-09 Thread numbch...@gmail.com
RT. Hope Org-mode can fix this issue. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/

Re: [O] [RFC] Remove Org Struct mode

2017-08-20 Thread numbch...@gmail.com
I agree too, because the OrgStruct mode functions is so limited for basic Org-mode viewing/editing/navigating etc. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3

Re: [O] [Feature Request] Provide a way to jump to noweb reference definition under point

2017-08-15 Thread numbch...@gmail.com
@Thanks Berry, and Nicolas. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Mon, Aug 14, 2017 at 1:02 AM, Nicolas Goa

[O] [Feature Request] Provide a way to jump to noweb reference definition under point

2017-08-13 Thread numbch...@gmail.com
For example I have an Org buffer like this: ```org #+NAME: define food-journal #+BEGIN_SRC clojure (def food-journal [{:month 1 :day 1 :human 5.3 :critter 2.3} {:month 1 :day 2 :human 5.1 :critter 2.0} {:month 2 :day 1 :human 4.9 :critter 2.1} {:month 2 :day 2 :human 5.0 :critter 2.5}

Re: [O] ob-clojure will error result when contains comment

2017-07-13 Thread numbch...@gmail.com
org-plus-contrib packages - Does master only become maint after major > version releases? > > Note also, there appears to be an issue with most recent versions of > cider when you do cider-jack-in and your not inside a project. The > issues seem to relate mainly to clj-refact

Re: [O] ob-sh.el removed in master branch source code?

2017-07-12 Thread numbch...@gmail.com
hange =(sh . t)= to =(shell . t)=. > > 2. Edit =local.mk= files to change the value of =BTEST_OB_LANGUAGES= to > remove "sh" and include "shell". > http://orgmode.org/cgit.cgi/org-mode.git/plain/etc/ORG-NEWS > > > On Wed, Jul 12, 2017, 8:26 PM numbch...@gmail.

Re: [O] Emacs master now updated to Org 9.0.9

2017-07-12 Thread numbch...@gmail.com
Thanks for your work. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Tue, Jul 4, 2017 at 3:54 PM, Bastien Guerry wr

Re: [O] Org-mode ELPA repository package is not very updated?

2017-07-12 Thread numbch...@gmail.com
CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Mon, Jul 3, 2017 at 1:31 PM, Bastien wrote: > Hi, > > "numbch...@gmail.com" writes: > > > I found Org-mode ELPA released source code is old and does not > > include some patches and updates. >

[O] ob-clojure will error result when contains comment

2017-07-12 Thread numbch...@gmail.com
Here is the examples: #+BEGIN_SRC clojure (+ 1 1) ;=> 2 #+END_SRC #+RESULTS: : class clojure.lang.LispReader$ReaderExceptionclass java.lang.RuntimeExceptionRuntimeException EOF while reading, starting at line 1 clojure.lang.Util.runtimeException (Util.java:221) #+BEGIN_SRC clojure :results valu

  1   2   >