Barry Warsaw wrote:
> On Mar 12, 2010, at 11:21 AM, Georg Brandl wrote:
> 
>> Wouldn't that be the job of one of the numerous snippet packages that are
>> floating around?  I'm using yasnippet myself, and it works very well.
>> (I know that python.el has some definitions for skeleton mode, but
>> python-mode.el doesn't, and I'm not sure it should.)
> 
> I'm not sure either.  python-mode.el does contain some hooks for imenu so
> there's some precedence.  I guess if we're going to support such
> functionality, it should be via standard available hooks.
> 
> I don't use stuff like that much though, so I don't have a strong opinion
> either way.
> 
> -Barry


Hi Barry,

created a new branch, added skeletons inserting
compound statements from python.el

Thought it's easier to debug/maintain having it in a
separate file `python-mode-skeletons.el'

Below a bash-script used for checking. RET or
<space> should start the skeleton.

Cheers

Andreas

--
https://code.launchpad.net/~a-roehler/python-mode
https://code.launchpad.net/s-x-emacs-werkstatt/

;;;;;;;;;;;;;

LOCAL_PYTHON_BRANCH_PATH= ... edit

emacs -q -L $HOME/$LOCAL_PYTHON_BRANCH_PATH --debug-init -l 
$HOME/${LOCAL_PYTHON_BRANCH_PATH}/python-mode.el --find-file=$HOME/my-test.py 
--eval=\"(erase-buffer)\" --eval=\"(abbrev-mode 1)\" --eval='(insert \"for\")' 
--funcall=describe-mode &"


_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to