From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Morgan Subject: Bug: Buffer restriction lost with org-agenda-sticky enabled Date: Sun, 28 Sep 2014 09:25:37 +0900 Message-ID: <87k34o4mm6.fsf@azha.ziiuu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XY2JS-0001ZY-JC for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 20:26:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XY2JM-0001H0-BB for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 20:26:06 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:47065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XY2JM-0001Go-5Z for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 20:26:00 -0400 Received: by mail-pa0-f49.google.com with SMTP id lf10so15371296pab.8 for ; Sat, 27 Sep 2014 17:25:52 -0700 (PDT) Received: from azha.ziiuu.com (anon-39-230.vpn.ipredator.se. [46.246.39.230]) by mx.google.com with ESMTPSA id f12sm8455908pdl.94.2014.09.27.17.25.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Sep 2014 17:25:51 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Dear Org mode hackers, I discovered a bug where refreshing a sticky agenda view can cause a buffer restriction to be lost. I'm using the maint branch of Org-mode version 8.2.7c (`release_8.2.7c-85-g4f4002') and GNU Emacs 24.3.1 (`x86_64-unknown-linux-gnu', X toolkit, Xaw3d scroll bars). I started Emacs with the command `emacs -Q -l setup.el' (file `setup.el' is attached). Note that `org-agenda-sticky' is set in `setup.el'. I then visited the file `foo.org' (attached): `C-x C-f foo.org RET'. Then I made a list of TODO items in the current file: `M-x org-agenda RET < t'. It appeared as expected like this: ,---- | Global list of TODO items of type: ALL | Available with `N r': (0)[ALL] | foo: TODO Foo :foo: `---- Next I made a list of headlines (in all files) matching the tag `bar': `M-x org-agenda RET m bar RET'. It appeared as expected like this: ,---- | Headlines with TAGS match: bar | Press `C-u r' to search again with new search string | bar: TODO Bar :bar: `---- Then I quit the second agenda buffer (the tags query) with `q', which reselected the first agenda buffer without refreshing it. I then refreshed the TODO list with `g'. It appeared like this: ,---- | Global list of TODO items of type: ALL | Available with `N r': (0)[ALL] (1)TODO (2)DONE | foo: TODO Foo :foo: | bar: TODO Bar :bar: `---- It was evidently no longer restricted to the file `foo.org'. I expected the restriction would continue to apply. Best, Thomas --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=setup.el Content-Transfer-Encoding: quoted-printable (add-to-list 'load-path "/src/org-mode/lisp") (require 'org) (setq org-agenda-files '("foo.org" "bar.org") ;; org-agenda-persistent-filter t org-agenda-sticky t) --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=foo.org * TODO Foo :foo: --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=bar.org * TODO Bar :bar: --=-=-=--