From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bar Newsgroups: gmane.emacs.bugs Subject: bug#21220: 24.5; imenu not working in new python buffer when semantic is loaded but semantic-mode is off Date: Sat, 8 Aug 2015 12:00:33 +0300 Message-ID: <20150808120033.e5d2d2a2b26ad48944fe0aba@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1439076933 18941 80.91.229.3 (8 Aug 2015 23:35:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Aug 2015 23:35:33 +0000 (UTC) To: 21220@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 09 01:35:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZODdy-0001fd-2H for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Aug 2015 01:35:14 +0200 Original-Received: from localhost ([::1]:54015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZODdx-0004AJ-8h for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Aug 2015 19:35:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZODdr-00046b-LE for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 19:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZODdm-0005Ur-RR for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 19:35:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZODdm-0005UI-NF for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 19:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZODdm-0008MJ-7I for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 19:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Aug 2015 23:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21220 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143907687832085 (code B ref -1); Sat, 08 Aug 2015 23:35:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Aug 2015 23:34:38 +0000 Original-Received: from localhost ([127.0.0.1]:50820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZODdN-0008LP-BD for submit@debbugs.gnu.org; Sat, 08 Aug 2015 19:34:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54687) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNzzg-0003Zk-UK for submit@debbugs.gnu.org; Sat, 08 Aug 2015 05:00:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNzzf-0007ak-1W for submit@debbugs.gnu.org; Sat, 08 Aug 2015 05:00:44 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNzze-0007ag-UN for submit@debbugs.gnu.org; Sat, 08 Aug 2015 05:00:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNzzd-0004fj-BX for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 05:00:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNzzZ-0007ZN-AH for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 05:00:41 -0400 Original-Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:35341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNzzY-0007Yw-QN for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 05:00:37 -0400 Original-Received: by wibxm9 with SMTP id xm9so86054009wib.0 for ; Sat, 08 Aug 2015 02:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; bh=ZChx/csFA2PVARFh9mCTeQlxKN/KjkGMLQ+DCUB1RyU=; b=zik6e7LKEEYtn2ZFQXwqbxIN2Z2iNWI5TjwCS40K+8WzwmU0Jm93RwHeTXzpofK86c lXLrBgxxDDXRC5VfMip1X6V4eGPpjteMo52EYlRexyxQTI6CQ97ki2eQFIShfonwGIHO MtUeHtbGl9jIPGqIBuA7fuXEYFbspTMTQ9mto4dcE9W/0oayoaDbbqFr89BGGKsn2UoA b3S2crpvxiZdKok8m2slabxfB7Bo4a03hp6O7wKlFqrNmwRm/0LUUrutXw9cb8O4p+jk 52ij3QtEQKLNTZrHgkfbKvK0d2/Q+aq+n0KaYbXU/SJ1hZ81radcX2+NJmWANdwWhmgN Ovaw== X-Received: by 10.180.98.134 with SMTP id ei6mr5237827wib.49.1439024435596; Sat, 08 Aug 2015 02:00:35 -0700 (PDT) Original-Received: from lemur ([149.78.62.63]) by smtp.gmail.com with ESMTPSA id v8sm18605862wjr.15.2015.08.08.02.00.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Aug 2015 02:00:34 -0700 (PDT) X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sat, 08 Aug 2015 19:34:35 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105370 Archived-At: 1. emacs -Q 2. M-: (require 'semantic) 3. open a python buffer 4. M-x imenu Result: "user-error: No items suitable for an index found in this buffer" Value of imenu-create-index-function: semantic-create-imenu-index. Please note that the normal value of imenu-create-index-function in python buffers is python-imenu-create-index. I've dug around a bit, and found that loading semantic also loads semantic/wisent/python. In semantic/wisent/python, these lines seem to cause the bug: > ;;;###autoload > (add-hook 'python-mode-hook 'wisent-python-default-setup) wisent-python-default-setup doesn't check if semantic-mode is on or off. When semantic-mode is on, there's no problem. But if I want semantic only for c/c++ files, and not python files, then I got a problem. Also see https://github.com/syl20bnr/spacemacs/issues/2569 Thanks in advance, Bar In GNU Emacs 24.5.2 (i686-pc-linux-gnu, GTK+ Version 3.10.8) of 2015-06-19 on lemur Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.3 LTS Important settings: value of $LC_MONETARY: he_IL.UTF-8 value of $LC_NUMERIC: he_IL.UTF-8 value of $LC_TIME: he_IL.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: company-quickhelp-mode: t company-statistics-mode: t eldoc-mode: t elisp-slime-nav-mode: t goto-address-prog-mode: t auto-highlight-symbol-mode: t clean-aindent-mode: t highlight-numbers-mode: t highlight-parentheses-mode: t rainbow-delimiters-mode: t yas-global-mode: t yas-minor-mode: t projectile-global-mode: t projectile-mode: t recentf-mode: t pupo-mode: t helm-descbinds-mode: t helm-mode: t shell-dirtrack-mode: t nyan-mode: t purpose-mode: t window-numbering-mode: t volatile-highlights-mode: t global-vi-tilde-fringe-mode: t vi-tilde-fringe-mode: t global-undo-tree-mode: t undo-tree-mode: t popwin-mode: t global-page-break-lines-mode: t page-break-lines-mode: t ido-vertical-mode: t flx-ido-mode: t eyebrowse-mode: t global-evil-surround-mode: t evil-surround-mode: t global-evil-search-highlight-persist: t evil-search-highlight-persist: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-mode: t evil-jumper-mode: t evil-escape-mode: t evil-commentary-mode: t global-anzu-mode: t anzu-mode: t eval-sexp-fu-flash-mode: t global-diff-hl-mode: t diff-hl-mode: t diff-auto-refine-mode: t company-mode: t savehist-mode: t global-hl-line-mode: t xterm-mouse-mode: t winner-mode: t global-auto-revert-mode: t evil-leader-mode: t evil-mode: t evil-local-mode: t which-key-mode: t override-global-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t hs-minor-mode: t Recent messages: [yas] Loading compiled snippets from /home/bar/spacemacs/fork/elpa/yasnippet-20150804.1120/snippets/prog-mode Loading /home/bar/spacemacs/fork/elpa/yasnippet-20150804.1120/snippets/prog-mode/.yas-setup...done Loading /home/bar/spacemacs/fork/.cache/company-statistics-cache.el (source)...done ad-handle-definition: `helm-swoop' got redefined [2 times] SPC s s ad-handle-definition: `eval-defun' got redefined Type M-x delete-other-windows to delete the help window. byte-code: End of buffer [3 times] byte-code: Beginning of buffer Text is read-only Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mailabbrev gmm-utils mailheader sendmail mail-utils smex eieio-opt helm-elisp helm-eval edebug helm-swoop evil-iedit-state iedit iedit-lib company-quickhelp pos-tip company-statistics company-files company-keywords company-etags company-gtags company-template company-dabbrev-code company-dabbrev company-capf drupal/eldoc eldoc elisp-slime-nav hideshow goto-addr auto-highlight-symbol clean-aindent-mode highlight-numbers parent-mode highlight-parentheses rainbow-delimiters yasnippet help-mode autoconf autoconf-mode helm-projectile drupal-mode drupal/emacs-drush drupal/ispell drupal/etags php-mode cc-langs speedbar sb-image ezimage dframe flymake add-log cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs image-file find-func async projectile recentf tree-widget disp-table f flyspell ispell server solarized py-yapf purpose-popwin helm-gtags pulse which-func helm-descbinds helm-mode helm-files image-dired tramp tramp-compat tramp-loaddefs trampver shell drupal/pcomplete pcomplete dired-x dired-aux ffap helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info bookmark helm-locate helm-match-plugin helm-grep helm-regexp helm-plugin helm-external helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source gnus-util password-cache url-vars mailcap helm-utils helm-help helm-types helm helm-lib compile nyan-mode window-purpose-x imenu-list imenu ibuf-ext ibuffer dired window-purpose window-purpose-fixes window-purpose-prefix-overload window-purpose-switch let-alist window-purpose-layout window-purpose-core window-purpose-configuration window-purpose-utils window-numbering etags volatile-highlights vi-tilde-fringe undo-tree diff smooth-scrolling smartparens-config slime-autoloads powerline powerline-separators color powerline-themes popwin page-break-lines ido-vertical-mode helm-source flx-ido flx eyebrowse format-spec exec-path-from-shell evil-surround evil-search-highlight-persist evil-numbers evil-lisp-state smartparens evil-jumper evil-indent-textobject evil-exchange evil-escape evil-commentary evil-args evil-anzu anzu mule-util info cider-eval-sexp-fu eval-sexp -- Bar