From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Killed Org files referred from the agenda? Date: Thu, 12 Apr 2012 12:02:24 -0400 Message-ID: <14311.1334246544@alphaville> References: <861untq8mg.fsf@iro.umontreal.ca> Reply-To: nicholas.dokos@hp.com 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]:42684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIMTi-0007h0-E9 for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 12:02:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIMTc-0002Hu-JB for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 12:02:33 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:43174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIMTc-0002HO-CW for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 12:02:28 -0400 In-Reply-To: Message from pinard@iro.umontreal.ca (=?us-ascii?Q?=3D=3Futf-?= =?us-ascii?Q?8=3FQ=3FFran=3DC3=3DA7ois=3F=3D?= Pinard) of "Thu\, 12 Apr 2012 11\:20\:55 EDT." <861untq8mg.fsf@iro.umontreal.ca> 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: =?us-ascii?Q?=3D=3Futf-8=3FQ=3FFran=3DC3=3DA7?= =?us-ascii?Q?ois=3F=3D?= Pinard Cc: emacs-orgmode@gnu.org Fran=C3=A7ois Pinard wrote: > Hi, Org people! >=20 > 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. >=20 > Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p ni= l) > goto-char(nil) > (let* ((marker ...) (buffer ...) (pos ...)) (org-pop-to-buffer-same-win= do=3D > w buffer) (and delete-other-windows (delete-other-windows)) (widen) (goto= -c=3D > har pos) (when (eq major-mode ...) (org-show-context ...) (save-excursion= .=3D > ..) (when ... ...))) > (if (and org-return-follows-link (not ...) (org-in-regexp org-bracket-l= in=3D > k-regexp)) (org-open-link-from-string (match-string 0)) (let* (... ... ..= .)=3D > (org-pop-to-buffer-same-window buffer) (and delete-other-windows ...) (w= id=3D > en) (goto-char pos) (when ... ... ... ...))) > org-agenda-switch-to() > call-interactively(org-agenda-switch-to nil nil) >=20 > 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? >=20 Just do "g" in the agenda and retry the "t". Nick