From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: org agenda search goes to wrong target location Date: Tue, 18 Aug 2009 22:40:05 -0700 Message-ID: <20524da70908182240yf4e7439g19492c0c41fd91f8@mail.gmail.com> References: <20524da70907231701t34f92a5co65187fad7dc51af1@mail.gmail.com> <20524da70908172055n3919b3b7u420ec755205ae92d@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mddu9-0002Cr-Dt for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 01:40:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mddu3-00028h-Pc for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 01:40:11 -0400 Received: from [199.232.76.173] (port=35742 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mddu3-00028L-Eo for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 01:40:07 -0400 Received: from mail-gx0-f206.google.com ([209.85.217.206]:60232) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mddu2-0000Bt-WD for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 01:40:07 -0400 Received: by gxk2 with SMTP id 2so5532891gxk.7 for ; Tue, 18 Aug 2009 22:40:05 -0700 (PDT) In-Reply-To: <20524da70908172055n3919b3b7u420ec755205ae92d@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: Carsten Dominik Cc: emacs-orgmode 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? Thanks.