1

私はemacsでpython-modeを使用しています。1ヶ月問題なく使用しています。

クラス内の関数を「返す」または「渡す」たびに、インデントが次の行の先頭に戻るという問題があります。

例えば

class test(object):
    def method1(self):
        return 1
|cursor returns here, cant press tab to indent
    |cursor should be here, tab should allow free indentation

戻らないか「合格」しなければ、問題はありません。何が原因なのかわかりません。

私の.emacs:

(add-to-list 'load-path "~/.emacs.d/")
(require 'lambda-mode)
(add-hook 'python-mode-hook #'lambda-mode 1)
(setq lambda-symbol (string (make-char 'greek-iso8859-7 107)))

(add-to-list 'load-path "~/.emacs.d/python-mode.el-6.0.12") 
(setq py-install-directory "~/.emacs.d/python-mode.el-6.0.12")
(require 'python-mode)
(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(inhibit-startup-screen t))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

私の .emacs.d には以下が含まれます: lambda-mode.el python-mode.el-6.0.12 auto-save-list

4

2 に答える 2

1

トランクでは再現できません。もしよろしければご覧になってみてください。

bzr ブランチ lp:python-mode

github にもミラーが存在します。

バグは、できれば次の場所に提出してください。

https://bugs.launchpad.net/python-mode

于 2012-11-29T07:26:58.697 に答える
1

Emacs からのデフォルトpython-mode(つまりpython.elとは対照的にpython-mode.el) では、問題を再現できません。したがって、おそらくあなたは使用していて、代わりpython-mode.elにビルトインに切り替えることができます。python-mode

于 2012-11-29T04:15:07.573 に答える