Re: [O] Add caching to org-buffer-property-keys

2016-04-17 Thread Karl Voit
* Antoine R. Dumont wrote: > > Also, for information you could use format function. > It clarifies the prompt computation ^^: > > ``` > (defun org-read-entry-property-name () > "Read a property name from the current entry." > (let ((completion-ignore-case t) >

Re: [O] Add caching to org-buffer-property-keys

2016-04-13 Thread Antoine R. Dumont
eniotna writes: > Hello, > >> I'm sure, it's only a small error of mine. > > Replace `(mapcar #'list (org-entry-properties nil nil))` by > `(org-entry-properties nil nil)` in your `org-read-entry-property-name` > definition: > > ``` > (defun org-read-entry-property-name () >

Re: [O] Add caching to org-buffer-property-keys

2016-04-12 Thread eniotna
Hello, > I'm sure, it's only a small error of mine. Replace `(mapcar #'list (org-entry-properties nil nil))` by `(org-entry-properties nil nil)` in your `org-read-entry-property-name` definition: ``` (defun org-read-entry-property-name () "Read a property name from the current entry

Re: [O] Add caching to org-buffer-property-keys

2016-04-12 Thread Karl Voit
* Thierry Banel wrote: > Nice function! > Maybe a rewrite of (org-read-property-name) calling > (org-entry-properties) could speed up things. > (org-entry-properties) returns an assoc list of the local header properties. OK, great idea. I tried by myself (Elisp noob) and

Re: [O] Add caching to org-buffer-property-keys

2016-03-03 Thread Nicolas Goaziou
Hello, Thierry Banel writes: > Maybe a rewrite of (org-read-property-name) calling > (org-entry-properties) could speed up things. > (org-entry-properties) returns an assoc list of the local header > properties. I agree. The OP should use `org-entry-properties' instead of

Re: [O] Add caching to org-buffer-property-keys

2016-03-02 Thread Thierry Banel
Nice function! Maybe a rewrite of (org-read-property-name) calling (org-entry-properties) could speed up things. (org-entry-properties) returns an assoc list of the local header properties. Le 02/03/2016 12:29, Karl Voit a écrit : > Hi! > > In short: can we get a cached org-buffer-property-keys

[O] Add caching to org-buffer-property-keys

2016-03-02 Thread Karl Voit
Hi! In short: can we get a cached org-buffer-property-keys please? My background story: I love using following function which gives me a neat functionality: I mark a string, press the keybinding shortcut, and gets asked which property should be replaced/filled with the marked region text.