Staging
v0.5.1
https://github.com/python/cpython
Revision aa7634476f84e1591ea3b1bb945095e23931a0f2 authored by Guido van Rossum on 09 August 1995, 02:31:00 UTC, committed by Guido van Rossum on 09 August 1995, 02:31:00 UTC
1 parent 150316e
Raw File
Tip revision: aa7634476f84e1591ea3b1bb945095e23931a0f2 authored by Guido van Rossum on 09 August 1995, 02:31:00 UTC
change blank line insertion at a few places and fix recursion bug for </var>
Tip revision: aa76344
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