From: MINJUN XI <minjun@btsmartshield.com>
To: 23148@debbugs.gnu.org
Subject: bug#23148: 25.1.50; New python3.5 keywords (e.g. async, await) cause incorrect indents
Date: Tue, 29 Mar 2016 10:55:30 +0800 [thread overview]
Message-ID: <3D622630-60C9-44BD-A8F3-EBB3B1EC2E37@btsmartshield.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5041 bytes --]
I am using elpy on emacs, so coding would be easy. However, when I am
working with python3.5, the newly-introduced keywords (e.g. async,
await) cannot get the correct indents. At first, I raised one bug for
elpy, https://github.com/jorgenschaefer/elpy/issues/848, and get the
response from the author, who says the identation is provided by the
Emacs' built-in python mode. As a result, I have to raise the bug to
emacs, thank you!
In GNU Emacs 25.1.50.1 (x86_64-apple-darwin15.2.0, NS appkit-1404.34 Version 10.11.2 (Build 15C50))
of 2016-01-10 built on rmbp.local
Repository revision: 384cf23c6ed05e1f151032958a2cc2bb8100344b
Configured using:
'configure --prefix=/usr/local/Cellar/emacs/HEAD
--enable-locallisppath=/usr/local/share/emacs/site-lisp
--infodir=/usr/local/Cellar/emacs/HEAD/share/info/emacs --with-xml2
--without-dbus --without-gnutls --with-ns --disable-ns-self-contained'
Configured features:
JPEG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS
Important settings:
value of $LC_ALL: en_US.UTF-8
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Python
Minor modes in effect:
show-paren-mode: t
global-linum-mode: t
linum-mode: t
yas-minor-mode: t
highlight-indentation-mode: t
flymake-mode: t
company-mode: t
elpy-mode: t
pyvenv-mode: t
shell-dirtrack-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
[yas] Loading compiled snippets from /Users/minjun/.emacs.d/elpa/elpy-20150830.510/snippets/python-mode
Loading /Users/minjun/.emacs.d/elpa/elpy-20150830.510/snippets/python-mode/.yas-setup...done
[yas] Loading for `python-mode', just-in-time: (lambda nil (yas--load-directory-1 (quote /Users/minjun/.emacs.d/elpa/yasnippet-20151011.1823/snippets/python-mode) (quote python-mode)))!
[yas] Loading compiled snippets from /Users/minjun/.emacs.d/elpa/yasnippet-20151011.1823/snippets/python-mode
Loading /Users/minjun/.emacs.d/elpa/yasnippet-20151011.1823/snippets/python-mode/.yas-setup...done
(New file)
Can’t guess python-indent-offset, using defaults: 4
next-line: End of buffer [2 times]
Auto-saving...done
Making completion list... [2 times]
Load-path shadows:
/Users/minjun/.emacs.d/elpa/flymake-0.4.16/flymake hides /usr/local/Cellar/emacs/HEAD/share/emacs/25.1.50/lisp/progmodes/flymake
Features:
(shadow sort mail-extr emacsbug message dired dired-loaddefs rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils
company-files company-oddmuse company-keywords company-etags
company-gtags company-dabbrev-code company-dabbrev company-cmake
company-xcode company-clang company-eclim company-template company-css
company-nxml company-bbdb term/xterm xterm hydandata-light-theme
sourcegraph easy-mmode shr dom subr-x browse-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util mailcap paren linum yasnippet cl highlight-indentation flymake
cc-defs company edmacro kmacro elpy pyvenv elpy-refactor python tramp-sh
tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec
advice ido grep compile comint ansi-color files-x etags xref project
ring cus-edit cus-start cus-load wid-edit finder-inf info json map seq
package epg-config url-handlers url-parse auth-source cl-seq eieio
byte-opt bytecomp byte-compile cl-extra cconv eieio-core cl-macs gv
eieio-loaddefs gnus-util time-date mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr password-cache url-vars mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote kqueue cocoa ns multi-tty
make-network-process emacs)
Memory information:
((conses 16 295530 14103)
(symbols 48 29584 0)
(miscs 40 173 412)
(strings 32 49644 7954)
(string-bytes 1 1487081)
(vectors 16 43910)
(vector-slots 8 801686 2901)
(floats 8 681 779)
(intervals 56 492 206)
(buffers 976 16))
Best Regards,
Minjun Xi
Beijing Tuye Technologies
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]
reply other threads:[~2016-03-29 2:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3D622630-60C9-44BD-A8F3-EBB3B1EC2E37@btsmartshield.com \
--to=minjun@btsmartshield.com \
--cc=23148@debbugs.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.