Staging
v0.5.1
https://github.com/python/cpython
Revision 8c1688e132c42db3ffa39faa7920be8f131cd74e authored by Guido van Rossum on 14 March 1995, 17:43:02 UTC, committed by Guido van Rossum on 14 March 1995, 17:43:02 UTC
1 parent 55d2f39
Raw File
Tip revision: 8c1688e132c42db3ffa39faa7920be8f131cd74e authored by Guido van Rossum on 14 March 1995, 17:43:02 UTC
add dummy base to atoi/atol; careful about negative start indices in find/count
Tip revision: 8c1688e
emacs.py
# Execute Emacs code from a Python interpreter.
# This code should be imported from a Python interpreter that is
# running as an inferior process of Emacs.
# See misc/py-connect.el for the companion Emacs lisp code.
# Author: Terrence M. Brannon.

start_marker = '+'
end_marker   = '~'

def eval (string):
	tmpstr = start_marker + '(' + string + ')' + end_marker
	print tmpstr

def dired (directory):
	eval( 'dired ' + '"' + directory + '"' )

def buffer_menu ():
	eval( 'buffer-menu(buffer-list)' )
back to top