unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@online.de>
To: emacs-devel@gnu.org
Subject: Re: Python interactive navigation around nested functions
Date: Mon, 20 Jun 2016 18:23:07 +0200	[thread overview]
Message-ID: <54df4d3c-123b-4217-f46b-dedcadebbd6e@online.de> (raw)
In-Reply-To: <5767F641.7050108@gmail.com>



On 20.06.2016 15:57, Clément Pit--Claudel wrote:
> On 2016-06-20 04:28, Andreas Röhler wrote:
>> On 20.06.2016 09:34, Stefan Monnier wrote:
>>
>>> So both python-modes behave identically in this respect.  That would not
>>> be surprising if the behavior you don't like is the one usually
>>> considered as right.
>> Start and end of a functions definition is not about like or don't like.
>> Also not about "usually considered".
> I don't understand your aggressiveness,

Wherefrom do you derive any? The "you don't like" was introduced by 
Stefan, not me.


>   nor your point.  Stefan is just pointing out that C-M-a doesn't usually go to the beginning of the enclosing
>   function definition

In any case it's not about enclosing, which would be reached by up-list 
related stuff, it's about start of current.

> (and the docs don't claim that it does, either):
>
>    (beginning-of-defun &optional ARG)
>    
>    Move backward to the beginning of a defun.


What means "a" defun? User may expect the beginning of definition of 
code at point. Which is not the case in current python.el, but fixed in 
python-mode.el meanwhile.

>    (...)
>    With ARG, do it that many times.  Negative ARG means move forward
>    to the ARGth following beginning of defun.
>
> I agree with the OP that it would be very nice to have a way to go back to the beginning of the "current" defun (some sort of super C-M-u).

C-M-u would match the enclosing - python-mode.el delivers py-up. But 
that is not at stake here.


>   But I don't understand the vitriol.
>

No idea what you mean.




  reply	other threads:[~2016-06-20 16:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-19  4:52 Python interactive navigation around nested functions Dima Kogan
2016-06-20  2:43 ` Stefan Monnier
2016-06-20  7:14   ` Andreas Röhler
2016-06-20  7:34     ` Stefan Monnier
2016-06-20  8:28       ` Andreas Röhler
2016-06-20 13:57         ` Clément Pit--Claudel
2016-06-20 16:23           ` Andreas Röhler [this message]
2016-06-21  5:45   ` Dima Kogan
2016-06-21  6:05     ` Dima Kogan
2016-06-21  6:21       ` Stefan Monnier
2016-06-24 22:10         ` Dima Kogan
2016-06-24 23:23           ` Clément Pit--Claudel
2016-06-26 19:29             ` Andreas Röhler
2016-06-27  0:39               ` Clément Pit--Claudel
2016-06-27  6:02                 ` Andreas Röhler
2016-06-25  0:18           ` Stefan Monnier
2016-06-26 19:37             ` Andreas Röhler
2016-06-21  6:32       ` Andreas Röhler
2016-06-21  6:26     ` Andreas Röhler

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=54df4d3c-123b-4217-f46b-dedcadebbd6e@online.de \
    --to=andreas.roehler@online.de \
    --cc=emacs-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).