【问题标题】:py-execute-line sends the whole buffer to the python processpy-execute-line 将整个缓冲区发送到 python 进程
【发布时间】:2015-11-13 22:06:09
【问题描述】:

我开始在 Emacs 中玩 python-mode(最新的 Emacs,最新的 python-mode.el)

当我尝试通过 py-execute-line 向进程发送代码行或通过 py-execute-def-or-class 发送函数定义时,它会抓取整个缓冲区,将其保存在临时文件中并发送exec(compile(open(some_temp_file_name).read()...) 字符串,用于执行到进程。 我的问题是为什么必须这样? 为什么我们不能只(comint-send-string proc string)到字符串是一行代码或一个块的进程(或者至少避免每次都保存一个临时文件)?

【问题讨论】:

    标签: python emacs python-mode


    【解决方案1】:

    无法使用当前主干进行复制。

    请在以下位置提交完整的错误报告:

    https://gitlab.com/python-mode-devs/python-mode/issues

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-01
      • 1970-01-01
      相关资源
      最近更新 更多