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] 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] [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

[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] 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&

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] 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

[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] [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,

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] 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
/ 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] [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] 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] 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

[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] 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

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] 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

[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

[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] [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

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

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
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] 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: @

[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

[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

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] 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] 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

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] 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

[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] [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. > &

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-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-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

[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/

[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] 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

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: >

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

[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] 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

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] 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 >

[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] 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] 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] 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] [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):

[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: > ​ &

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

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]

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" :

[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

[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: > > [...

[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

[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

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

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. > >

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
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
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-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-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

[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
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

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]] > > ```

[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

[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

[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

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

<    1   2