org-agenda.el (org-agenda-set-restriction-lock): Remove restriction lock before setti...
commit866d7eddd0e33cc42906955e9ea9f0b314a16c72
authorBastien Guerry <bzg@altern.org>
Sun, 25 May 2014 05:16:15 +0000 (25 07:16 +0200)
committerBastien Guerry <bzg@altern.org>
Sun, 25 May 2014 05:16:15 +0000 (25 07:16 +0200)
treeb30f6c2e25139f6b60af4c7160a3a9916bad9f26
parent56b47fb71d1c01762ffe8c34bf750df554e2805b
org-agenda.el (org-agenda-set-restriction-lock): Remove restriction lock before setting it

* org-agenda.el (org-agenda-set-restriction-lock): Remove
restriction lock before setting it.

This fixes a small bug: when restriction lock is active on a subtree
and C-c C-x < before the first headline, the new restriction is set to
the entire file, but the old one was still present.
lisp/org-agenda.el