[Python-mode] Add lambda: as a font-lock keyword

2011-02-03 Thread Dan Davison
Is there any reason not to highlight "lambda:" as a keyword, i.e. when it's immediately followed by a colon? The patch below takes a stab at that. I guess it might be ideal if the colon were not highlighted; I didn't look into that. Thanks very much for the python-mode code and please tell me if t

[Python-mode] py-indent-line failure

2011-02-10 Thread Dan Davison
def f(): ''' docstring ''' With point in column zero on the line after the closing triple-quote, py-indent-line fails with Wrong type argument: integerp, t. , | I see there's a cerain amount of TQS stuff in the launchpad bugs already | -- someone let me know if it would be helpful

Re: [Python-mode] py-indent-line failure

2011-02-10 Thread Dan Davison
Barry Warsaw writes: > On Feb 10, 2011, at 12:43 PM, Dan Davison wrote: > >>def f(): >>''' >>docstring >>''' >> >>With point in column zero on the line after the closing triple-quote, >>py-indent-line fail

Re: [Python-mode] interpreter selection with CarbonEmacs on OSX

2011-02-21 Thread Dan Davison
Eric Holbrook writes: > What's the best way to tell python-mode to use, say, > /opt/local/bin/python, instead of what OS X thinks is the right > version? > > The problem is that when i launch /Applications/Emacs.app from > Quicksilver it knows nothing about what i have set up in my .bashrc, > so