From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: M-TAB completion of options in indirect buffers Date: Wed, 28 Jan 2009 09:33:35 +0100 Message-ID: <4A522817-1DA5-4D7D-BB7F-3C579E344547@uva.nl> References: <497F36FF.1060909@slugfest.demon.co.uk> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============1873089291==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LS5rj-0000dV-Pz for emacs-orgmode@gnu.org; Wed, 28 Jan 2009 03:33:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LS5ri-0000cQ-Ud for emacs-orgmode@gnu.org; Wed, 28 Jan 2009 03:33:43 -0500 Received: from [199.232.76.173] (port=40290 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LS5ri-0000c7-Lt for emacs-orgmode@gnu.org; Wed, 28 Jan 2009 03:33:42 -0500 Received: from ug-out-1314.google.com ([66.249.92.170]:13459) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LS5rh-0007QA-NV for emacs-orgmode@gnu.org; Wed, 28 Jan 2009 03:33:42 -0500 Received: by ug-out-1314.google.com with SMTP id 36so411980uga.17 for ; Wed, 28 Jan 2009 00:33:38 -0800 (PST) In-Reply-To: <497F36FF.1060909@slugfest.demon.co.uk> 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: Shaun Johnson Cc: Org Mode --===============1873089291== Content-Type: multipart/alternative; boundary=Apple-Mail-1--726138517 --Apple-Mail-1--726138517 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Fixed in 6.20, thanks. - Carsten On Jan 27, 2009, at 5:31 PM, Shaun Johnson wrote: > 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. > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-1--726138517 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Fixed in 6.20, = thanks.

- Carsten

On Jan 27, = 2009, at 5:31 PM, Shaun Johnson wrote:

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.


___________________= ____________________________
Emacs-orgmode mailing list
Remember: = use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://= lists.gnu.org/mailman/listinfo/emacs-orgmode
<= br>
= --Apple-Mail-1--726138517-- --===============1873089291== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1873089291==--