From: David Liu <daveliu@alum.mit.edu>
To: 30822@debbugs.gnu.org
Subject: bug#30822: 25.3; python-shell-send-defun sends only one line
Date: Wed, 14 Mar 2018 16:05:27 -0400 [thread overview]
Message-ID: <CAMSHvJH5Q8oFgJwow=-wtQD+Lr-HKoCpLiD47MZxEm642HnakQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4278 bytes --]
note: no other Python-related emacs packages are being used;
only the builtin one.
1. create new file "test.py" with following:
def f(x):
return x+1
2. C-c C-p to run-python
3. place point immediately after "return x+1"
4. C-M-x for python-shell-send-defun
result:
SyntaxError: 'return' outside function
it appears that only one line is being sent, instead of both lines.
In GNU Emacs 25.3.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version
10.9.5 (Build 13F1911))
of 2017-09-12 built on builder10-9.local
Windowing system distributor 'Apple', version 10.3.1561
Configured using:
'configure --with-ns '--enable-locallisppath=/Library/Application
Support/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp' --with-modules'
Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Python
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
global-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
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
uncompressing python.el.gz...done
Making completion list...
t
delete-backward-char: Text is read-only
Quit
<C-tab> is undefined
mouse-2, RET: find function's definition
uncompressing python.el.gz...done
Load-path shadows:
/Users/daveliu/quicklisp/dists/quicklisp/software/slime-v2.20/slime-autoloads
hides /Users/daveliu/.emacs.d/elpa/slime-20180308.733/slime-autoloads
/Users/daveliu/quicklisp/dists/quicklisp/software/slime-v2.20/slime-tests
hides /Users/daveliu/.emacs.d/elpa/slime-20180308.733/slime-tests
/Users/daveliu/quicklisp/dists/quicklisp/software/slime-v2.20/slime hides
/Users/daveliu/.emacs.d/elpa/slime-20180308.733/slime
Features:
(shadow sort mail-extr emacsbug message dired rfc822 mml mml-sec epg
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils jka-compr
eieio-opt speedbar sb-image ezimage dframe find-func tramp-cache python
tramp-sh tramp tramp-compat auth-source gnus-util mm-util help-fns
mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete
format-spec json map slime-fancy slime-trace-dialog slime-fontifying-fu
slime-package-fu slime-references slime-compiler-notes-tree
slime-scratch slime-presentations advice bridge slime-macrostep
macrostep slime-mdot-fu slime-enclosing-context slime-fuzzy
slime-fancy-trace slime-fancy-inspector slime-c-p-c
slime-editing-commands slime-autodoc slime-repl elp slime-parse slime
derived edmacro kmacro lisp-mnt gud apropos compile etags xref cl-seq
project eieio eieio-core arc-mode archive-mode noutline outline
easy-mmode pp comint ansi-color ring hyperspec cl-macs thingatpt
browse-url cl tango-dark-theme finder-inf tex-site info slime-autoloads
package epg-config seq byte-opt gv bytecomp byte-compile cl-extra
help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date 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 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 337784 17797)
(symbols 48 30156 0)
(miscs 40 149 592)
(strings 32 48025 8240)
(string-bytes 1 1429236)
(vectors 16 43362)
(vector-slots 8 786245 7866)
(floats 8 339 383)
(intervals 56 649 397)
(buffers 976 27))
[-- Attachment #2: Type: text/html, Size: 5659 bytes --]
next reply other threads:[~2018-03-14 20:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-14 20:05 David Liu [this message]
2018-03-14 20:37 ` bug#30822: 25.3; python-shell-send-defun sends only one line David Liu
2018-03-15 0:22 ` Noam Postavsky
2018-04-06 3:22 ` Nitish
2018-04-07 2:26 ` Noam Postavsky
2018-04-07 2:45 ` Nitish
2018-04-07 3:01 ` Noam Postavsky
2018-04-07 3:37 ` Nitish
2018-04-08 16:07 ` Noam Postavsky
2018-04-08 16:21 ` Nitish
2018-04-08 16:44 ` Noam Postavsky
2018-04-09 6:12 ` Andreas Röhler
2018-04-09 11:56 ` Noam Postavsky
2018-04-11 14:49 ` Andreas Röhler
2018-04-11 14:57 ` Noam Postavsky
2018-04-11 17:29 ` Andreas Röhler
2018-04-11 17:33 ` Noam Postavsky
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='CAMSHvJH5Q8oFgJwow=-wtQD+Lr-HKoCpLiD47MZxEm642HnakQ@mail.gmail.com' \
--to=daveliu@alum.mit.edu \
--cc=30822@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.