From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: gmane.emacs.help Subject: Re: python mode bugs Date: Fri, 06 Apr 2018 14:29:13 +0100 Organization: A noiseless patient Spider Message-ID: <87h8ooh39y.fsf@bsb.me.uk> References: <20180405155015.6d92e8a38c4d14ae58ecc67d@speakeasy.net> <876055jobu.fsf@bsb.me.uk> <87o9iwharr.fsf@bsb.me.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1523021323 22246 195.159.176.226 (6 Apr 2018 13:28:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2018 13:28:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 06 15:28:39 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f4RPz-0005e1-7s for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2018 15:28:39 +0200 Original-Received: from localhost ([::1]:55943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4RS2-0005k7-Vf for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2018 09:30:47 -0400 X-Received: by 10.223.210.70 with SMTP id o6mr257716wri.13.1523021355243; Fri, 06 Apr 2018 06:29:15 -0700 (PDT) Original-Path: usenet.stanford.edu!69no663832wms.0!news-out.google.com!k195ni4072wmd.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-Injection-Info: reader02.eternal-september.org; posting-host="b4bcaf279210e5b5c4b6e02e681519c9"; logging-data="3716"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Vy452Rd26bKlM/6OZu5wNXQ7Dtfm9bAk=" Cancel-Lock: sha1:VdZXgOW/UffRLhFBH7winvwePkw= sha1:ZrTZ577s242jqBaCYlLa/fQ+9YU= X-BSB-Auth: 1.d65295692ac4faddb4c9.20180406142913BST.87h8ooh39y.fsf@bsb.me.uk Original-Xref: usenet.stanford.edu gnu.emacs.help:222252 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116373 Archived-At: Robert Pluim writes: > Ben Bacarisse writes: > >> Robert Pluim writes: >> >>> Ben Bacarisse writes: >>> >>>> "James K. Lowden" writes: >>>> >>>>> I have two problems with python.el. Maybe three. >>>>> >>>>> 1. GNU bug report logs - #29717[1]: imenu does not recognize function >>>>> definitions with annotations. >>>>> >>>>> 2. imenu is purportedly bound to C-c C-j, but no "index" I supply >>>>> returns anything but errors. What does it want? >>> >>> Which version of emacs are you using? This seems to work fine for me >>> in Emacs 26 and 27. >> >> You don't quote anything I said but you might be asking me too. So, >> just in case, I'm using 25.1.1. > > Hmm, C-c C-j doesnʼt have an issue for me in 25.1. This happens from > emacs -Q as well? M-X imenu works both with emacs -Q and with my normal startup. It failed to find functions with type annotations when I originally tried because that was an emacsclient and something must have happened since I stared the server. After restarting the server, emacsclient behaves (unsurprisingly) just like a fresh emacs run: imenu shows all functions in a test Python file, even those with type annotations. However, emacs -Q shows me more information! It indicates if the index item is a def or a class etc. It seems I have python-mode installed and emacs -Q is using python.el.gz and emacs is using python-mode.elc. So my data point was not useful. However, the OP should check if they are using python-mode (shown as "Py") or python.el (shown as "Python"). -- Ben.