unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nathaniel Smith <njs@pobox.com>
To: emacs-devel@gnu.org
Subject: Cherrypicking fixed for new python syntax into the emacs 25 branch
Date: Thu, 21 Apr 2016 11:41:04 -0700	[thread overview]
Message-ID: <CAPJVwBk5Hd8hT-dvr1t+SZ6h-i_LdpOab_-EechZf4SuN3rL7A@mail.gmail.com> (raw)

[not subscribed to list, would appreciate CC's on followups]

Hi all,

Currently, the version of python.el in the emacs 25 branch doesn't
support the new async/await syntax added in python 3.5. This added new
syntax for basic syntactic constructs like function definitions and
for loops, and so currently in the emacs 25 branch anyone using these
new features loses basic features like autoindentation, e.g.

async def f():
async for x in ...:

are not considered to open blocks and require manual indentation. And
even worse, since the indentation tables are defined as compile-time
macros, it isn't even possible to fix this with a .emacs tweak.

This has already been fixed in emacs mainline. Would it be possible
for the emacs 25 branch maintainers to cherry-pick these two changes
into emacs 25?:
    1f6b0bc1
    928f5194

(some more discussion here: https://github.com/jorgenschaefer/elpy/issues/848)

Thanks!
-n

-- 
Nathaniel J. Smith -- https://vorpus.org



             reply	other threads:[~2016-04-21 18:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-21 18:41 Nathaniel Smith [this message]
2016-04-21 19:47 ` Cherrypicking fixed for new python syntax into the emacs 25 branch John Wiegley

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=CAPJVwBk5Hd8hT-dvr1t+SZ6h-i_LdpOab_-EechZf4SuN3rL7A@mail.gmail.com \
    --to=njs@pobox.com \
    --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).