all messages for Emacs-related lists mirrored at yhetil.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: Tue, 21 Jun 2016 08:26:35 +0200	[thread overview]
Message-ID: <5a22d44d-b7cb-0f9a-c3b6-9e0a41d2f1bf@online.de> (raw)
In-Reply-To: <87eg7rdrj7.fsf@secretsauce.net>



On 21.06.2016 07:45, Dima Kogan wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>>          def wwrap(f):
>>>              print 'Inside wwrap()'
>>>              def wrapped_f(*args):
>>>                  print 'Inside wrapped_f()'
>>>                  print 'Decorator arguments:', arg1, arg2, arg3
>>>                  f(*args)
>>>                  print 'After f(*args)'
>>>              return wrapped_f
>>>          return wwrap
>>
>> Traditionally (IMO), C-M-a goes to the nearest beginning of defun at the
>> same AST level or higher.  So from "return wrapped_f", it seems reasonable
>> to jump to "def wrapped_f(*args):".
> Hmmm. That's not at all how I always thought this was supposed to work,
> but I actually see this behavior in several modes across several
> languages,

Thats because of bugs in lisp mode WRT beginning-of-defun --cherished 
for decades-- it can't be done right that way. From there the bad manner 
might have expanded.

Tried to fix that in lisp-mode here:

https://github.com/andreas-roehler/werkstatt/blob/master/subroutines/gnu-emacs-fixes.el



>   so it looks like you're right. I don't really LIKE it,
> though, so let me ponder.
>
> Thanks for setting me straight
>




      parent reply	other threads:[~2016-06-21  6:26 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
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 [this message]

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=5a22d44d-b7cb-0f9a-c3b6-9e0a41d2f1bf@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 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.