From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 08 19:34:38 2015 Received: (at submit) by debbugs.gnu.org; 8 Aug 2015 23:34:38 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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) 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) Date: Sat, 8 Aug 2015 12:00:33 +0300 From: Bar To: bug-gnu-emacs@gnu.org Subject: 24.5; imenu not working in new python buffer when semantic is loaded but semantic-mode is off Message-Id: <20150808120033.e5d2d2a2b26ad48944fe0aba@gmail.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 22:12:14 2015 Received: (at 21220-done) by debbugs.gnu.org; 12 Aug 2015 02:12:15 +0000 Received: from localhost ([127.0.0.1]:53604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPLWY-0008D4-LK for submit@debbugs.gnu.org; Tue, 11 Aug 2015 22:12:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59666) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPLWW-0008Cv-RL for 21220-done@debbugs.gnu.org; Tue, 11 Aug 2015 22:12:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPLWS-0006My-RA for 21220-done@debbugs.gnu.org; Tue, 11 Aug 2015 22:12:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPLWS-0006Mu-OR; Tue, 11 Aug 2015 22:12:08 -0400 Received: from [190.246.172.180] (port=56112 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZPLWR-0006rj-TF; Tue, 11 Aug 2015 22:12:08 -0400 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 21220-done@debbugs.gnu.org Subject: 24.5; imenu not working in new python buffer when semantic is loaded but semantic-mode is off Date: Tue, 11 Aug 2015 23:12:05 -0300 Message-ID: <87614l8dca.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: 21220-done Cc: David Engster , Eric Ludlam X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) Fixed at bf0ed73 in the master branch. Basically I removed the autoloaded hook setup, no other wisent setups do that and it seems the `semantic-new-buffer-setup-functions` already contains the proper references to do this correctly when needed. I'm CC'ing CEDET maintainers just in case. For the time being, to prevent this, you could add this to your init file: (remove-hook 'python-mode-hook 'wisent-python-default-setup) Thanks for the report, Fabi=C3=A1n. From unknown Sun Jun 22 22:46:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 09 Sep 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator