durusmail: quixote-users: Emacs python-mode for .ptl
[Micropatch] implement TextWidget "wrap" attribute
[Micropatch] implement TextWidget "wrap" attribute
2002-11-18
[Micropatch] implement TextWidget "wrap" attribute
2002-11-18
[Micropatch] implement TextWidget "wrap" attribute
2002-11-18
Emacs python-mode for .ptl
2002-12-20
2002-12-21
Dave Kuhlman (2 parts)
2003-01-03
Emacs python-mode for .ptl
Dave Kuhlman
2002-12-21
I swear and I promise never to ask a question again until I've googled
at least once.

I found Greg's patch file for Emacs.

Running patch failed to apply the patch, so I applied the changes
by hand.  It seems to work fine.  Now the names of templates show
up under the IM-Python menu.

Thanks Greg.

So I generated a new patch file with "diff -u old new".  It's
attached.  I'm using the python-mode.el that came with the
Python-2.2.2.tgz source distribution; it's python version 4.6.18.2.

I also use the emacs speedbar sometimes.  (If you haven't tried it,
it is in the Tools menu.)  I made one patch to speedbar.el in
emacs/21.2/lisp/.  I've attached that too.  Please ignore the line
containing ";; gdk" (my initials (Gordon David Kuhlman).  With this
fix, classes, functions, methods, *and* templates show up when you
expand .ptl files in the speedbar.

Do some people still not have zip/unzip?  If so, let me know and
I'll make a tar.gz file.

And, yes, I'd vote for having a patch file for python-mode  posted
at the Quixote Web site.

  - Dave


On Fri, Dec 20, 2002 at 10:31:53AM -0800, Dave Kuhlman wrote:
> I sometimes use Emacs with python-mode.  I've modified my .emacs
> file so that .ptl files are edited and highlighted in python-mode.
> Good so far, but ...

[snip]


--
Dave Kuhlman
dkuhlman@rexx.com
http://www.rexx.com/~dkuhlman
reply