emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Karl Voit
Subject: Re: [O] Add caching to org-buffer-property-keys
Date: Sun, 17 Apr 2016 21:28:06 +0200
User-agent: slrn/pre1.0.0-18 (Linux)

* Antoine R. Dumont <address@hidden> 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)
>         (default-prop (or (and (org-at-property-p)
>                                (org-match-string-no-properties 2))
>                           org-last-set-property)))
>     (org-completing-read
>      (format "Property [%s]: " (if default-prop default-prop ""))
>      (org-entry-properties nil nil)
>      nil nil nil nil default-prop)))
> ```

Thank you very much!

Nice code, eases my life.

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




reply via email to

[Prev in Thread] Current Thread [Next in Thread]