view etc/emacs.py @ 109838:64936c70841e

Try and remove some of SMIE's black magic by generalizing some rules. * lisp/emacs-lisp/smie.el (smie-default-backward-token) (smie-default-forward-token): Strip properties. (smie-next-sexp): Be more careful with associative operators. (smie-forward-sexp-command): Generalize. (smie-backward-sexp-command): Simplify. (smie-closer-alist): New var. (smie-close-block): New command. (smie-indent-debug-log): New var. (smie-indent-offset-rule): Add a few more cases. (smie-indent-column): New function. (smie-indent-after-keyword): Use it. (smie-indent-keyword): Use it. Fix up the opener code's point position. (smie-indent-comment): Only applies at BOL. (smie-indent-debug): New command.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 18 Aug 2010 12:57:48 +0200
parents 69c173eabff4
children bdb3fe0ba9fa ef719132ddfa
line wrap: on
line source

"""Wrapper for version-specific implementations of python.el helper
functions """

import sys

if sys.version_info[0] == 3:
    from emacs3 import *
else:
    from emacs2 import *

# arch-tag: 894b5227-638f-45fd-8567-0417d5c35900