all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ben Bacarisse <ben.lists@bsb.me.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: python mode bugs
Date: Thu, 05 Apr 2018 23:11:33 +0100	[thread overview]
Message-ID: <876055jobu.fsf@bsb.me.uk> (raw)
In-Reply-To: 20180405155015.6d92e8a38c4d14ae58ecc67d@speakeasy.net

"James K. Lowden" <jklowden@speakeasy.net> 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?

It wants the name of a class or a function and will auto-complete but if
imenu is not finding and to start with there will be nothing you enter
here!

> 3.  At 111 days old, it doesn't seem like the known bug is getting any
> attention.  What is the polite way to indicate it matters?

Some people say "Ping?".

> In case you *really* want to help, the offending function appears to be 
>
> 	python-imenu--build-tree
>
> and the regex
>
> 	python-nav-beginning-of-defun-regexp
>
> The difference in the pattern to be matched is: 
>
> 	def f(a, b): #works
> vs
> 	def f(a: int, b: str) -> bool: # fails

The pattern in python-nav-beginning-of-defun-regexp does not seem to be
the culprit.  It matches both of these.

> FWIW, I don't think the regex need include anything after the leading
> parenthesis.

Yes, that's what python-nav-beginning-of-defun-regexp does.  Nothing
after the name is examined.  In fact, it matches a def with no '(' at all.

The problem appears to be somewhere else, most likely in
python-imenu--build-tree as you say.

> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29717
-- 
Ben.


  parent reply	other threads:[~2018-04-05 22:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-05 19:50 python mode bugs James K. Lowden
2018-04-05 21:02 ` Stefan Monnier
2018-04-05 22:11 ` Ben Bacarisse [this message]
2018-04-06 10:37   ` Robert Pluim
     [not found]   ` <mailman.11778.1523011049.27995.help-gnu-emacs@gnu.org>
2018-04-06 10:47     ` Ben Bacarisse
2018-04-06 12:43       ` Robert Pluim
     [not found]       ` <mailman.11780.1523018635.27995.help-gnu-emacs@gnu.org>
2018-04-06 13:29         ` Ben Bacarisse
2018-04-08 17:16           ` Andreas Röhler
     [not found]           ` <mailman.11903.1523207780.27995.help-gnu-emacs@gnu.org>
2018-04-08 20:16             ` Ben Bacarisse
2018-04-09  5:47               ` Andreas Röhler
2018-04-06 16:53         ` James K. Lowden
2018-05-01 18:16 ` James K. Lowden
2018-05-02  6:34   ` Colin Baxter

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=876055jobu.fsf@bsb.me.uk \
    --to=ben.lists@bsb.me.uk \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.