From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaun Johnson Subject: M-TAB completion of options in indirect buffers Date: Tue, 27 Jan 2009 16:31:59 +0000 Message-ID: <497F36FF.1060909@slugfest.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRqs4-0000iu-Ci for emacs-orgmode@gnu.org; Tue, 27 Jan 2009 11:33:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRqs3-0000hz-Jp for emacs-orgmode@gnu.org; Tue, 27 Jan 2009 11:33:03 -0500 Received: from [199.232.76.173] (port=53839 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRqs3-0000hn-7S for emacs-orgmode@gnu.org; Tue, 27 Jan 2009 11:33:03 -0500 Received: from anchor-post-1.mail.demon.net ([195.173.77.132]:57336) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRqs2-0000tm-OK for emacs-orgmode@gnu.org; Tue, 27 Jan 2009 11:33:03 -0500 Received: from slugfest.demon.co.uk ([80.177.204.141] helo=[192.168.100.4]) by anchor-post-1.mail.demon.net with esmtp (Exim 4.69) id 1LRqs1-0006L0-gf for emacs-orgmode@gnu.org; Tue, 27 Jan 2009 16:33:01 +0000 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: Org Mode With Emacs 22.1.1 and Org-mode 6.17c if I am editing a subtree in an indirect buffer (via C-c C-x b) and try to complete an option (i.e. a line starting #+) then I get the following backtrace (bytecodes elided): Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-name-nondirectory(nil) org-get-current-options() byte-code("... org-complete(nil) call-interactively(org-complete) recursive-edit() byte-code("... debug(error (wrong-type-argument stringp nil)) file-name-nondirectory(nil) org-get-current-options() byte-code("... org-complete(nil) call-interactively(org-complete) This seems to be because org-get-current-options uses buffer-file-name to determine the category but buffer-file-name is nil in an indirect buffer. If this has been fixed in a later version of Org mode or Emacs I will be happy (ish) to upgrade. Thanks, Shaun.