[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Detect parent with SCHEDULED or DEADLINE
From: |
Adam Porter |
Subject: |
Re: [O] Detect parent with SCHEDULED or DEADLINE |
Date: |
Thu, 14 Apr 2016 17:46:02 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Christophe Schockaert <address@hidden> writes:
> (save-excursion
> (save-restriction
> (widen)
Hi Christophe,
Thanks for sharing the solution! Here's something you might want to add
to it, something I recently discovered. The `org-with-wide-buffer'
macro can replace those three lines:
#+BEGIN_SRC elisp
(defmacro org-with-wide-buffer (&rest body)
"Execute body while temporarily widening the buffer."
`(save-excursion
(save-restriction
(widen)
,@body)))
#+END_SRC
It's in `org-macs.el' so it's included with Org.
- [O] Detect parent with SCHEDULED or DEADLINE, Christophe Schockaert, 2016/04/13
- Re: [O] Detect parent with SCHEDULED or DEADLINE, Adam Porter, 2016/04/13
- Re: [O] Detect parent with SCHEDULED or DEADLINE, Adam Porter, 2016/04/14
- Re: [O] Detect parent with SCHEDULED or DEADLINE, Nicolas Goaziou, 2016/04/14
- Re: [O] Detect parent with SCHEDULED or DEADLINE, Adam Porter, 2016/04/14
- Re: [O] Detect parent with SCHEDULED or DEADLINE, Nicolas Goaziou, 2016/04/14
- Re: [O] Detect parent with SCHEDULED or DEADLINE, Christophe Schockaert, 2016/04/14
- Re: [O] Detect parent with SCHEDULED or DEADLINE, Christophe Schockaert, 2016/04/14
- Re: [O] Detect parent with SCHEDULED or DEADLINE,
Adam Porter <=
- Re: [O] Detect parent with SCHEDULED or DEADLINE, Christophe Schockaert, 2016/04/14