From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Bug: Wrong type argument: integer-or-marker-p, nil on refile Date: Thu, 03 Aug 2017 05:20:16 -0500 Message-ID: <87tw1pnean.fsf@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddDF2-0001Rz-FD for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 06:20:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddDEy-0001Mc-94 for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 06:20:32 -0400 Received: from [195.159.176.226] (port=43171 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddDEy-0001Li-2I for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 06:20:28 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ddDEp-0004Qw-Ul for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 12:20:19 +0200 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" To: emacs-orgmode@gnu.org Michaƫl Cadilhac writes: > Here's the ECM. > > init.el: > (require 'org) > (setq org-refile-use-outline-path (quote file)) > > Now open an Org file, say foo.org, and type C-u C-c C-w foo.org/ RET > At org.el:11832, pos is nil. Confirmed here with Org 9.0.5. I think it's from org-refile-check-position: (pos (nth 3 refile-pointer)) causes the error because the refile-pointer doesn't have a position set, because you selected the top-level, file-only completion without a heading.