From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: navi-search-and-switch fails Date: Sun, 31 Aug 2014 17:26:42 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XO720-0003cY-2P for emacs-orgmode@gnu.org; Sun, 31 Aug 2014 11:27:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XO71r-0005Dd-KL for emacs-orgmode@gnu.org; Sun, 31 Aug 2014 11:27:03 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:44948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XO71r-0005Cd-DQ for emacs-orgmode@gnu.org; Sun, 31 Aug 2014 11:26:55 -0400 Received: from top.local (cbg35-2-78-242-14-140.fbx.proxad.net [78.242.14.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id D36C81408EEE1 for ; Sun, 31 Aug 2014 17:26:52 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable (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, =3D(if (eq major-mode 'occur-mode) (current-buffer) (get-buffer "*Occur*"))=3D 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 =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJUAz67AAoJEAQNCjtO0uXHkzYIAJJWQiq/CC/vwqZp8MMByLFQ w1J7RP8Q4sCNhBrsog0wRhZdQKQAG5+kkjlIqrns8VabvzrR1uT5unyDBnBop4m8 X1puZjOaFk+dWIOoAehBq5U0mY2ZLDhJw9WX0tlaBUHOQVnOdMBJqJsb3QwD3LeP Xx2ZTY+SzksEWbcGSTPC1OjRuM2AZbbPW1qcEDjncL1bl9demrHWkgLO9AQQUI1Y SZBY/yFXaFr45z1LhNlCdy9SFYJr7Af2TeDjJYGuLVJe5GTZeOdGvbf72xk34ynE 6/UXb+x5T+OcwWT7rHmuuBplWiDkGMf4F7JpXFcfXHrpleEUrOLirJoTZU87z3s= =1DDq -----END PGP SIGNATURE----- --=-=-=--