emacs-orgmode
[Top][All Lists]
Advanced

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




reply via email to

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