From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lele Gaifax Newsgroups: gmane.emacs.help Subject: Support for new Python 3.5 async/await keywords Date: Fri, 25 Sep 2015 09:40:46 +0200 Organization: Nautilus Entertainments Message-ID: <87fv23q741.fsf@nautilus.nautilus> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1443166891 26875 80.91.229.3 (25 Sep 2015 07:41:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 07:41:31 +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 Sep 25 09:41:22 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZfNd9-0007rH-0w for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 09:41:19 +0200 Original-Received: from localhost ([::1]:45670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfNd8-0006fx-74 for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 03:41:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfNct-0006fY-CT for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 03:41:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfNcq-0006C2-1O for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 03:41:03 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:53992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfNcp-0006Bs-Qx for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 03:40:59 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZfNcm-0007OH-0F for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 09:40:56 +0200 Original-Received: from 151.62.155.119 ([151.62.155.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Sep 2015 09:40:55 +0200 Original-Received: from lele by 151.62.155.119 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Sep 2015 09:40:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 151.62.155.119 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) Cancel-Lock: sha1:MY7PpQ5cBs2qzerMmo5iGsgx4CM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107327 Archived-At: Hi all, I started using Python 3.5 in a new project, taking advantage of its new async/await keywords. The python.el mode distributed with Emacs 24.5 of course does not know how to handle the new syntax, and fails to properly indent the following code: async def foo(bar): | where the '|' represent the cursor position. I guess there's no configuration I could tweak that would give a better experience, but I'd like to have confirmation on this. I also switched my local Emacs source tree to the master[*], just to see if something happened to the forthcoming Emacs 25 python.el in this area, and it does not seem there is any (good) news (a quick inspection of python-mode.el sources gave the same impression). Is there any planned path to add support for properly indent the "async" variants of "def|with|for|whatever"? Thanks in advance, ciao, lele. [*] FYI, just for fun, I also tried to build it, doing a bootstrap on a clean tree, but the compilation failed with an error when temacs tried to load "cl-preloaded.el": Loading /home/lele/wip/emacs/lisp/emacs-lisp/nadvice.el (source)... Warning: Unknown macro property gv-expander in gv-synthetic-place Warning: Unknown macro property gv-expander in gv-delay-error Loading /home/lele/wip/emacs/lisp/emacs-lisp/cl-preloaded.el (source)... Warning: Eager macro-expansion skipped due to cycle: … => (load "cl-macs.el") => (macroexpand-all (define-inline cl-typep …)) => (load "cl-macs.el") macroexp--expand-all: (void-function define-inline) ... Compiler-macro error for cl-typep: (void-function cl--compiler-macro-typep) Symbol’s function definition is void: define-inline Makefile:706: set di istruzioni per l'obiettivo "bootstrap-emacs" non riuscito make[2]: *** [bootstrap-emacs] Errore 255 make[2]: uscita dalla directory "/home/lele/wip/emacs/src" Makefile:398: set di istruzioni per l'obiettivo "src" non riuscito make[1]: *** [src] Errore 2 -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.