From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain.Cochard@unistra.fr Subject: Re: multiple agenda views -- sticky agendas?, buffer renaming? Date: Tue, 22 Aug 2017 15:25:52 +0200 Message-ID: <22940.12512.487200.396236@frac.u-strasbg.fr> References: <22638.29899.634767.904773@frac.u-strasbg.fr> <22838.51211.771733.11287@frac.u-strasbg.fr> <87a84m0ypt.fsf@bzg.fr> Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dk9C8-0001Y2-Or for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 09:26:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dk9C2-00021i-RB for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 09:26:12 -0400 In-Reply-To: <87a84m0ypt.fsf@bzg.fr> 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" To: Bastien Cc: emacs-orgmode@gnu.org, Alain.Cochard@unistra.fr Bastien writes on Mon 3 Jul 2017 07:09: > Alain.Cochard@unistra.fr writes: >=20 > > I want my *Org Agenda* buffer to be open at all times, but I still= > > want to be able to (say) match as many different tags as desired. > > > > Googling and searching the archives suggested 2 possible ways: (1)= > > use of sticky agenda views and (2) use 'M-x rename-uniquely'. > "Sticky" agenda buffers means that agenda buffers won't be recreated= > each time you call M-x org-agenda. I'm not sure this is exactly wha= t > you mean by "my *Org Agenda* buffer to be open at all times", is it=3F= >=20 > Also I'm not sure what is the exact error you are pointing to: can > you restate it by saying what you expected from what action, and wha= t > you got instead=3F Hi Bastien, and thank you very much for the feedback. I am sorry for the delay in replying. I now try to explain myself more clearly. Say I have emacs open, with a single frame. If I do M-x org-agenda a I see what I call my "agenda" (not sure this is the proper terminology), in what I assumed was called an "*Org Agenda* buffer" -- I realize now how confusing this could have been, because it seems that all buffers obtained from some 'M-x org-agenda' command are named "Org-agenda." If I now do M-x make-frame I get a 2nd frame. I would like to be able to work with that 2nd frame without modifying the content of the 1st frame. This is what I meant by "my *Org Agenda* buffer to be open at all times" (in the 1st frame in this example). But if, in the 2nd frame, I do M-x org-agenda m tag1 the contents of *both* the 1st and 2nd frames are modified accordingly. I understand this to be normal, but this is not what I want, because my agenda is no longer showing in the 1st frame. I was assuming sticky agendas would produce the behavior I wish, so (starting fresh), I try M-x org-agenda * a then M-x make-frame and, in the 2nd, newly created, frame: M-x org-agenda m tag1 So far, the behavior is as I expect: my agenda is still in the 1st frame while, in the 2nd one, I have the *Org Agenda(m)* buffer, which I can use as expected (typically, put the cursor on some line, press , etc.). It is from this point that it appears to me to go wrong; specifically, if I try to do, still in the 2nd frame: M-x org-agenda m tag2 then, as soon as the 'm' is typed, the following message appears in the minibuffer: "Sticky Agenda buffer, use `r' to refresh". But typing 'r' does not do any good. The behavior that I expect is (1) to not see the above mentioned message in the minibuffer, (2) to be able to finish typing 'M-x org-agenda m tag2', (3) have the *Org Agenda(m)* buffer relevant to tag2. In fact, I made progress since my initial email: I had never paid attention to the following message, which appear after the first tag search:=20 Press `C-u r' to search again with new search string I had ignored it because for me it is more convenient to always use the same key combination for a given operation (in this case 'C-c a m' for a tag search). If I do use 'C-u r', then I can indeed perform another tag search (and others afterward), and I can say that the use of a sticky agenda does solve my initial problem! The somehow funny thing is that after this 'C-u r', I can again use 'M-x org-agenda m some=5Ftag'. In fact I cannot use 'M-x org-agenda m some=5Ftag' twice in a row: I have to intermingle it with at least one instance of 'C-u r some=5Ftag'. So I could reformulate my initial email by saying that tag search does not behave the same way whether the agenda is sticky or not: with a non sticky agenda, one may always use 'M-x org-agenda m some=5Ftag' for= a tag search whereas this is not possible with a sticky agenda. I hope I could make myself clear this time. Regards, alain --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 =20=