François Pinard <pin...@iro.umontreal.ca> wrote:

> 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.
> 
> 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)
> 
> 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?
> 

Just do "g" in the agenda and retry the "t".

Nick


Reply via email to