From mboxrd@z Thu Jan 1 00:00:00 1970 From: pinard@iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois?= Pinard) Subject: Killed Org files referred from the agenda? Date: Thu, 12 Apr 2012 11:20:55 -0400 Message-ID: <861untq8mg.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SILpZ-0007Mr-Gu for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 11:21:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SILpT-0007Gj-80 for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 11:21:05 -0400 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:60703 helo=mercure.progiciels-bpi.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SILpT-0007GA-27 for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 11:20:59 -0400 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 Hi, Org people! Now that many Org files are part of my agenda list, it became more likely that I inadvertently kill one of them. Then, commands like "t" or "RET" in the agenda fail. --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) goto-char(nil) (let* ((marker ...) (buffer ...) (pos ...)) (org-pop-to-buffer-same-windo= w buffer) (and delete-other-windows (delete-other-windows)) (widen) (goto-c= har pos) (when (eq major-mode ...) (org-show-context ...) (save-excursion .= ..) (when ... ...))) (if (and org-return-follows-link (not ...) (org-in-regexp org-bracket-lin= k-regexp)) (org-open-link-from-string (match-string 0)) (let* (... ... ...)= (org-pop-to-buffer-same-window buffer) (and delete-other-windows ...) (wid= en) (goto-char pos) (when ... ... ... ...))) org-agenda-switch-to() call-interactively(org-agenda-switch-to nil nil) --8<---------------cut here---------------end--------------->8--- I have to first revisit the Org file by some other mean first, for such commands to succeed. Could Org do the revisiting as needed, instead of raising an error? Fran=C3=A7ois