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+12. C-c C-p to run-python3. place point immediately after "return x+1"4. C-M-x for python-shell-send-defunresult:SyntaxError: 'return' outside functionit 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.localWindowing system distributor 'Apple', version 10.3.1561Configured 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 MODULESImportant settings:value of $LANG: en_US.UTF-8locale-coding-system: utf-8-unixMajor mode: PythonMinor modes in effect:shell-dirtrack-mode: ttooltip-mode: tglobal-eldoc-mode: telectric-indent-mode: tmouse-wheel-mode: tfile-name-shadow-mode: tglobal-font-lock-mode: tfont-lock-mode: tblink-cursor-mode: tauto-composition-mode: tauto-encryption-mode: tauto-compression-mode: tline-number-mode: ttransient-mark-mode: tRecent messages:uncompressing python.el.gz...doneMaking completion list...tdelete-backward-char: Text is read-onlyQuit<C-tab> is undefinedmouse-2, RET: find function's definitionuncompressing python.el.gz...doneLoad-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 epgmm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utilsmailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils jka-compreieio-opt speedbar sb-image ezimage dframe find-func tramp-cache pythontramp-sh tramp tramp-compat auth-source gnus-util mm-util help-fnsmail-prsvr password-cache tramp-loaddefs trampver shell pcompleteformat-spec json map slime-fancy slime-trace-dialog slime-fontifying-fuslime-package-fu slime-references slime-compiler-notes-treeslime-scratch slime-presentations advice bridge slime-macrostepmacrostep slime-mdot-fu slime-enclosing-context slime-fuzzyslime-fancy-trace slime-fancy-inspector slime-c-p-cslime-editing-commands slime-autodoc slime-repl elp slime-parse slimederived edmacro kmacro lisp-mnt gud apropos compile etags xref cl-seqproject eieio eieio-core arc-mode archive-mode noutline outlineeasy-mmode pp comint ansi-color ring hyperspec cl-macs thingatptbrowse-url cl tango-dark-theme finder-inf tex-site info slime-autoloadspackage epg-config seq byte-opt gv bytecomp byte-compile cl-extrahelp-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-utiltooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-typemwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset imageregexp-opt fringe tabulated-list newcomment elisp-mode lisp-modeprog-mode register page menu-bar rfn-eshadow timer select scroll-barmouse jit-lock font-lock syntax facemenu font-core frame cl-generic chamgeorgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet laokorean japanese eucjp-ms cp51932 hebrew greek romanian slovak czecheuropean ethiopic indian cyrillic chinese charscript case-table epa-hookjka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadviceloaddefs button faces cus-face macroexp files text-properties overlaysha1 md5 base64 format env code-pages mule custom widgethashtable-print-readable backquote kqueue cocoa ns multi-ttymake-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))