emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] navi-search-and-switch fails


From: Alan Schmitt
Subject: [O] navi-search-and-switch fails
Date: Sun, 31 Aug 2014 17:26:42 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (darwin)

(Thorsten asked me to repost this from github.)

When calling navi-search-and-switch interactively, I get the following
backtrace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  navi-rename-buffer()
  navi-search-and-switch()
  call-interactively(navi-search-and-switch record nil)
  command-execute(navi-search-and-switch record)

The problem seems to be with this code in navi-rename-buffer

#+begin_src emacs-lisp
(with-current-buffer
    (if (eq major-mode 'occur-mode) (current-buffer) (get-buffer "*Occur*"))
#+end_src


As there is no "*Occur*" buffer, and the current buffer is in
emacs-lisp-mode, =(if (eq major-mode 'occur-mode) (current-buffer)
(get-buffer "*Occur*"))= returns nil and with-current-buffer fails.

> Is the source-file an outshine-file?
> Did you call outline-minor-mode on it, with outshine activated
> (i.e. with outshine-hook-function added to outline-minor-mode-hook)?

I think it is. Here is my current configuration:

#+begin_src emacs-lisp
(add-hook 'message-mode-hook 'outline-minor-mode)
(add-hook 'emacs-lisp-mode-hook 'outline-minor-mode)
(require 'outshine)
(add-hook 'outline-minor-mode-hook 'outshine-hook-function)
(require 'navi-mode)
#+end_src

and I see "Outl" in the list of minor modes.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]