emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* M-TAB completion of options in indirect buffers
@ 2009-01-27 16:31 Shaun Johnson
  2009-01-28  8:33 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Shaun Johnson @ 2009-01-27 16:31 UTC (permalink / raw)
  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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-28  8:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-27 16:31 M-TAB completion of options in indirect buffers Shaun Johnson
2009-01-28  8:33 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).