Author: Antonio Cuni <anto.c...@gmail.com> Branch: Changeset: r59031:ae94d6b9d5cb Date: 2012-11-22 11:59 +0000 http://bitbucket.org/pypy/pypy/changeset/ae94d6b9d5cb/
Log: merge heads diff --git a/pypy/jit/tool/pypytrace-mode.el b/pypy/jit/tool/pypytrace-mode.el --- a/pypy/jit/tool/pypytrace-mode.el +++ b/pypy/jit/tool/pypytrace-mode.el @@ -8,6 +8,15 @@ (defun set-truncate-lines () (setq truncate-lines t)) +(defun pypytrace-beginning-of-defun () + (search-backward "{") + (beginning-of-line)) + +(defun pypytrace-end-of-defun () + (search-forward "}") + (end-of-line)) + + ;; to generate the list of keywords: ;; from pypy.jit.metainterp import resoperation ;; print ' '.join(sorted('"%s"' % op.lower() for op in resoperation.opname.values() if not op.startswith('GUARD'))) @@ -39,7 +48,12 @@ (4 'escape-glyph t) (5 'custom-variable-tag t))) '("\\.trace$") - '(set-truncate-lines) + '(set-truncate-lines + (lambda () + (set (make-local-variable 'beginning-of-defun-function) + 'pypytrace-beginning-of-defun) + (set (make-local-variable 'end-of-defun-function) 'pypytrace-end-of-defun)) + ) "A mode for pypy traces files") ;; debug helpers _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit