【问题标题】:Emacs 23 hangs on python mode when typing string block """键入字符串块“””时,Emacs 23 在 python 模式下挂起
【发布时间】:2009-09-10 16:07:40
【问题描述】:

当我为字符串块输入 """ 引号时,我的 Emacs 挂起(Ubuntu 9 + Emacs 23 + Pyflakes)。

有人遇到过同样的问题吗?我认为,这可能不是 Emacs 问题,而是一些 Python 模式或 Pyflakes,我用它来检查错误。

有人解决了这个问题吗?这真是令人沮丧的经历。

【问题讨论】:

  • 你可能想要添加你正在使用的python模式和pyflakes的版本。
  • 问题已通过开发版本解决。现在它工作了.. 感谢您的时间

标签: python emacs pyflakes


【解决方案1】:

开发模式下的最新 pyflakes 为我解决了这个问题。谢谢大家

sudo easy_install -U pyflakes

【讨论】:

    【解决方案2】:

    您是使用外部 python 模式(来自包 python-mode)还是内部 python 模式?我使用带有内部 emacs python 模式的 pyflakes 没有任何问题,这是我的配置:

    (when (load "flymake" t)
    (defun flymake-pyflakes-init ()
      (let* ((temp-file (flymake-init-create-temp-buffer-copy
                         'flymake-create-temp-inplace))
             (local-file (file-relative-name
                          temp-file
                          (file-name-directory buffer-file-name))))
        (list "pyflakes" (list local-file))))
    (add-to-list 'flymake-allowed-file-name-masks
                 '("\\.py\\'" flymake-pyflakes-init)))
    

    【讨论】:

    • 我刚刚升级到 pyflakes 的开发版本解决了这个问题。谢谢你的建议
    【解决方案3】:

    这是导致 emacs 非线性的特定 pyflakes 错误:http://divmod.org/trac/ticket/2821

    【讨论】:

      猜你喜欢
      • 2013-08-11
      • 2014-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-19
      • 1970-01-01
      • 2013-04-15
      • 2013-01-25
      相关资源
      最近更新 更多