From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org agenda search goes to wrong target location Date: Wed, 19 Aug 2009 09:34:57 +0100 Message-ID: <499E1D7B-2E36-454F-9F09-65762FB7C1E2@gmail.com> References: <20524da70907231701t34f92a5co65187fad7dc51af1@mail.gmail.com> <20524da70908172055n3919b3b7u420ec755205ae92d@mail.gmail.com> <20524da70908182240yf4e7439g19492c0c41fd91f8@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdgdU-0007M8-Lg for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 04:35:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdgdM-0007K1-T0 for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 04:35:09 -0400 Received: from [199.232.76.173] (port=42012 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdgdM-0007Jy-HB for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 04:35:04 -0400 Received: from ey-out-1920.google.com ([74.125.78.148]:31781) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MdgdM-0007LK-4n for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 04:35:04 -0400 Received: by ey-out-1920.google.com with SMTP id 5so1162732eyb.24 for ; Wed, 19 Aug 2009 01:35:02 -0700 (PDT) In-Reply-To: <20524da70908182240yf4e7439g19492c0c41fd91f8@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: emacs-orgmode On Aug 19, 2009, at 6:40 AM, Samuel Wales wrote: > Another bug, probably unrelated, is that if the outline buffer is > nonexistent and you RET on an agenda line, you get wrong type argument > integer of marker p, nil. > > goto-char(nil) > (let* ((marker ...) (buffer ...) (pos ...)) (switch-to-buffer > buffer) (and delete-other-windows (delete-other-windows)) (widen) > (goto-char pos) (when (org-mode-p) (org-show-context ...) > (save-excursion ...))) > org-agenda-switch-to() > call-interactively(org-agenda-switch-to) > > Perhaps it could be fixed by loading the file? Or is the agenda > buffer useless when the buffer is not there? The agenda uses markers, and these marker become useless when you remove a buffer. - Carsten