emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* navi-search-and-switch fails
@ 2014-08-31 15:26 Alan Schmitt
  2014-08-31 15:44 ` Thorsten Jolitz
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Schmitt @ 2014-08-31 15:26 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1342 bytes --]

(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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]

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

end of thread, other threads:[~2014-09-02  9:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-31 15:26 navi-search-and-switch fails Alan Schmitt
2014-08-31 15:44 ` Thorsten Jolitz
2014-09-01 16:50   ` Alan Schmitt
2014-09-01 17:18     ` Thorsten Jolitz
2014-09-01 17:41       ` Alan Schmitt
2014-09-01 18:13         ` Thorsten Jolitz
2014-09-02  9:10           ` Alan Schmitt

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).