From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: navi-search-and-switch fails
Date: Sun, 31 Aug 2014 17:26:42 +0200 [thread overview]
Message-ID: <m2a96kwuh9.fsf@polytechnique.org> (raw)
[-- 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 --]
next reply other threads:[~2014-08-31 15:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-31 15:26 Alan Schmitt [this message]
2014-08-31 15:44 ` navi-search-and-switch fails 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2a96kwuh9.fsf@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).