Re: [Python-mode] python.el cleanup

2011-04-04 Thread skip

 The problem was with some of the other contributors, from what I
 remember.

Barry Is there a way to check specifically?  I'm sure we could get
Barry Skip, Tim, and Ken to sign papers if necessary.

I have also volunteered relatively recently (within the last couple months)
to wet sign again (which I did probably 10 years ago for the GNU folks).

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


Re: [Python-mode] bug lp:328842, flexible-indentation of multiline assignements

2011-03-25 Thread skip

Andreas What about indenting it to the end of first element of previous
Andreas line?

That is precisely the problem.  That's what it does today, and if the lhs of
the assignment is a complex expression, the continuation is indented way too
far.  I would much prefer just to simply indent by the normal block indent.

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


Re: [Python-mode] highlight-indentation

2011-03-25 Thread skip

I agree wholeheartedly with Barry's previous message on the indentation
topic.  Let me provide you with an analogy from a totally different realm.

If I take the dog out in the evening for a bathroom walk, I doubt that I
really need to tell my wife.  After all, it's part of my nightly routine to
walk Lily before coming up to bed.  There is no signed contract which
dictates that I tell her I'm walking the dog.  If Ellen happens to come
downstairs she will notice the absence of me, the dog and the leash, and not
jump to the conclusion that a neighbor has snuck in to walk the dog while
I've flown off to the Caribbean with some floozy (or gone hiking in the
Appalachians as a certain former politician from South Carolina did).
Still, as I head out the door, I let her know that Lily and I will be back
in a few minutes.  It's just the nice thing to do.

Skip

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


Re: [Python-mode] bug lp:328842, flexible-indentation of multiline assignements

2011-03-25 Thread skip

Andreas As it's a different thing though than indenting inside tuples,
Andreas lists etc., would you mind making a bug entry giving your last
Andreas examples?

This bug is close enough:

https://bugs.launchpad.net/python-mode/+bug/629916

I just added a comment.

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


Re: [Python-mode] Announcement of a new python major-mode on emacs-devel

2011-02-16 Thread skip

mh WRT switching from XEmacs, what is your reason for using it?
mh Curious minds want to know. :)

History.  Moving is hard.

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


[Python-mode] Latest paragraph-fill-warts branch

2011-02-13 Thread skip
I don't know where we left things w.r.t. the Andreas's paragraph-fill-warts
branch, but I just updated and fired up a new copy of XEmacs.  Then edited
my current small test file.  After filling the doc string I see the same
issue reported before by (I think) Georg.  When filling this:


triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.


I wind up with this:

 triple-quoted string containing quotation marks.  triple-quoted string
containing quotation marks.  triple-quoted string containing quotation
marks.  triple-quoted string containing quotation marks.  triple-quoted
string containing quotation marks.  

That is, the newline after the first tqs and before the last tqs are not
preserved. This would have been ideal:


triple-quoted string containing quotation marks.  triple-quoted string
containing quotation marks.  triple-quoted string containing quotation
marks.  triple-quoted string containing quotation marks.  triple-quoted
string containing quotation marks.


Also, take a look at the attached png file.  Is it possible to color
quotation green?

Skip

inline: warts.png___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] python.el

2011-02-05 Thread skip

Eric in all seriousness, please don't waste any more time on the free
Eric software foundation. I have decided to not support them anymore
Eric since Stallman told me that the needs of free software come before
Eric the needs of disabled people.

+1.

S

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


Re: [Python-mode] python.el

2011-02-03 Thread skip

Barry Wonderful.

Barry http://thread.gmane.org/gmane.emacs.devel/135075

Wasn't a lot of our heartburn alwhile ago precipitated by Dave Love?  He of
the massive-patch-which-must-not-be-divided?  In fact, isn't he the original
author of the the python.el which *is* delivered with GNU Emacs?  He must
have a big bee in his bonnet.

Skip

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


Re: [Python-mode] upcoming release

2011-01-29 Thread skip

Andreas Could you pull again and check?

I get failures when I visit a .py file.  load-path includes your version at
the front:

(/Users/skip/src/paragraph-fill-warts /Users/skip/emacs/sql
/Users/skip/emacs/url /Users/skip/emacs
/Users/skip/local/lib/xemacs/site-lisp
...
/Users/skip/local/lib/xemacs-21.4.22/lisp/)

and (find-library python-mode) confirms that it finds your version.

When I visit a .py file I get this error though:

File mode specification error: (file-error Cannot open load file: %s 
misc-utils)

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


Re: [Python-mode] upcoming release

2011-01-29 Thread skip
Latest error:

  File mode specification error: (file-error Cannot open load file: %s 
sh-beg-end)

Skip

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


[Python-mode] Latest error

2011-01-29 Thread skip

Looks like thingatpt-utils-base requires thingatpt-highlight which doesn't
exist in the checkout.  I evaled all the (require) statements from the .el
files in a (progn) block:

(progn
(require 'easymenu)
(require 'ansi-color)
(require 'ar-comment-lor)
(require 'beg-end)
(require 'cl)
(require 'comint)
(require 'compile)
(require 'custom)
(require 'info-look)
(require 'misc-utils)
(require 'mmm-auto)
(require 'pymacs)
(require 'reporter)
(require 'sh-beg-end)
(require 'sh-script)
(require 'string-strip)
(require 'thingatpt-utils-base)
(require 'overlay)
(require 'imenu)
(require 'thing-at-point-utils)
(require 'thingatpt-highlight)
(require 'python-mode)
)

thingatpt-highlight was the only one it complained about.

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


Re: [Python-mode] Latest error

2011-01-29 Thread skip
 thingatpt-highlight was the only one it complained about.

Andreas Hmm, seems I underestimated the issue.

Andreas added and pushed.

I'm getting farther.  Looks like thingatpt-highlight was missing

(when (featurep 'xemacs) (require 'overlay))

so I added that to get the make-overlay function.  Then I could visit the
Python file without errors.  Recall the file looks like this (without the
extra indentation):


triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.


class Foo(object):
@staticmethod
def bar(aList):
for x in aList:
for y in x:
print y

When I try to fill the docstring using fill-paragraph-or-region (M-q) with
point ahead of the first 't', it still deletes the space ahead of the first
single quotation mark, leaving me with this:


triple-quoted string containingquotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.


If I place point at the beginning of the last line and fill, I get this:


triple-quoted string containingquotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.  triple-quoted string 
containingquotation marks.


Repeat again, and I get:


triple-quoted string containingquotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.  triple-quoted string 
containingquotation marks.  triple-quoted string containingquotation marks.


I can proceed to do this until I'm left with a single line in the docstring.

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


Re: [Python-mode] paragraph-fill-warts branch

2011-01-29 Thread skip

Andreas the old bug should be gone now.

Andreas As its redone from the bottom, filling isn't correct yet.

Andreas However, borders of triple-quoted-string now are recognised,

Andreas `ar-bounds-of-triplequoted-atpt' should report it for example,

Andreas the remaining should not be a rocky mountain.

Looks much better.  Goes from this:


triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.
triple-quoted string containing quotation marks.


to this:

 triple-quoted string containing quotation marks.  triple-quoted string
containing quotation marks.  triple-quoted string containing quotation
marks.  triple-quoted string containing quotation marks.  triple-quoted
string containing quotation marks.  

no matter where I place the cursor.

Thanks,

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


Re: [Python-mode] string-to-syntax for XEmacs 21.4? (fwd)

2011-01-12 Thread skip

Passing this along from Stephen Turnbull on the XEmacs list...

Skip

---BeginMessage---
s...@pobox.com writes:

  string-to-syntax is a built-in function in `C source code'.
  (string-to-syntax STRING)
  
  Convert a syntax specification STRING into syntax cell form.

I have no idea what a syntax cell is, but based on your examples it
would seem

(defun string-to-syntax (s)
  (list (syntax-string-to-code s)))

will do.
---End Message---
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] [Merge] lp:~a-roehler/python-mode/string-to-syntax into lp:python-mode

2011-01-12 Thread skip

Andreas As XEmacs has proclaimed it's intend to merge up with GNU code,
Andreas that may pay for a while.

I wouldn't hold my breath.  As Barry indicated, XEmacs doesn't seem to be
progressing.  I haven't seen a release of any kind for quite awhile.

Andreas A solution might be keeping an XEmacs compatible separate
Andreas version. Would mean another split and python-mode version
Andreas around... :(

Andreas OTOH: we could proceed then much faster with the GNU-branch,
Andreas having again a reliable, maybe most advanced python-mode.

Why not just refer to the last version which was XEmacs-friendly on the
Launchpad download site?  I think 5.1.0.  Modify 5.2.0 and greater if it's
loaded in an XEmacs session that certain stuff won't work until such time in
the future that it does work in that environment again.

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


Re: [Python-mode] Triple quoted string problem

2011-01-10 Thread skip

Barry I can confirm both of these on Emacs 23.2.1.  Please file a bug. :(

https://bugs.launchpad.net/python-mode/+bug/701175

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


[Python-mode] Triple quoted string problem

2011-01-09 Thread skip

I hesitate to open a new bug because this has probably been covered
somewhere and I already opened one (sort of) duplicate bug today, but it's
hard to tell because there are so many open triple-quoted string bug
reports.

Using the latest release I created a new file with just a #! line and a doc
string:

#!/usr/bin/env python


Maintain the recent best price and alert when it remains
the best price for a user-defined time.


When I attempt to fill the docstring's paragraph with the cursor positioned
in front of Maintain it zaps the space before 'best' and fails to actually
fill the paragraph:

#!/usr/bin/env python


Maintain the recentbest price and alert when it remains
the best price for a user-defined time.


If I then move the cursor down a line (point positioned ahead of 'the') and
fill again, I get this:

#!/usr/bin/env python


Maintain the recentbest price and alert when it remains the best price 
for a user-defined
time.


which is pretty bad considering fill-column is set to 70 in that buffer.

This is using XEmacs 21.5.28 on Solaris.  On XEmacs 21.4.22 (on Mac OSX) I
get somewhat different behavior.  There, not sure why, but my fill-column is
76.  It formats the entire docstring onto one line:

#!/usr/bin/env python


Maintain the recentbest price and alert when it remains the best price 
for a user-defined time.


In short, I'm not sure that paragraph filling inside triple-quoted strings
is any better now than before the release.  In fact, it might even be worse
overall. :-(

Skip

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


Re: [Python-mode] Triple quoted string problem

2011-01-09 Thread skip

When I attempt to fill the docstring's paragraph with the cursor positioned
in front of Maintain it zaps the space before 'best' and fails to actually
fill the paragraph:

#!/usr/bin/env python


Maintain the recentbest price and alert when it remains
the best price for a user-defined time.


FYI, changing the quoting around the word best from quotation marks to
apostrophes results in correct behavior.

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


Re: [Python-mode] Don't bind C-c C-h

2010-03-19 Thread skip
 Deniz == Deniz Dogan deniz.a.m.do...@gmail.com writes:
Deniz Maybe C-c C-? would work, but I'm not sure how that is recognized
Deniz by terminals.

Not at all on my Sun (Intel) box running Solaris 10 with a Dell keyboard.
It maps to C-c ?...

S

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


Re: [Python-mode] Pymacs on GitHub (fwd)

2009-09-29 Thread skip

Andreas What about to include these and some other useful stuff into
Andreas XEmacs python-modes?

What about rewriting python-mode using Pymacs?

Sorry, I don't know how to answer your other questions.

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


Re: [Python-mode] paren-deactivate

2009-01-22 Thread skip

Andreas with my Emacsen corresponding parentheses are highlighted also
Andreas in python-mode, which doesn't seem of much use there.

I rely on it all the time.  Complex if expressions, nested function calls,
mixing dicts, lists, tuples.  All provide ample opportunity to screw up
paren balancing.  The visual feedback is quite useful, at least to me.

My preference would be to leave it as-is.

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


Re: [Python-mode] merging python-mode.el and python.el

2009-01-18 Thread skip

Dave Anyway the main raison d'ĂȘtre for python.el was that we couldn't
Dave get copyright papers for python-mode.el for inclusion in Emacs

Funny that.  The FSF paperwork mavens have failed several times (at least
three that I'm aware of) to get paperwork to me for my signature.  The one
time they got the paperwork to me I signed and returned immediately.  They
still didn't get it.  Based on my own personal experience I don't think you
can lay all the blame on the folks who have contributed to python-mode.el.

Dave It's not clear to me what's in python-mode.el that would be useful
Dave to put in python.el...

A lot of people like pdbtrack.  The python-mode project also includes bits
Emacs Lisp and Python code to interface with Pymacs.  I believe both are
unique to the python-mode project.

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


Re: [Python-mode] [Novice]enabling python-mode

2008-12-05 Thread skip

Saurabh Now I am able to do M-x python-mode and I get a (Python) status
Saurabh on the mode-line.

Saurabh However, it is not auto-indenting. Also shouldn't it say
Saurabh (Python-mode) on the mode-line?

You are probably still getting the python.el python mode which comes with
GNU Emacs.  To see if this is so you can execute

M-x find-function RET python-mode RET

then see what the name of the file it pops up is.  I'm pretty sure it will
be named python.el.

I'm not enough of a Emacs Lisp whiz to provide a solution with 100%
confidence, but here's what I'd try:

* Inside a running Emacs execute

M-x load-library RET python-mode RET

  This should enable the python-mode project's version of python mode
  for the current session.  If this fails, python-mode.el is not on your
  load-path.  Either move it or extend load-path.

* Add

(load-library python-mode)

  To your ~/.xemacs file.  This should enable python-mode.el for all
  sessions.

Saurabh I am not able to find any tutorial for this. Does there exist
Saurabh one?

Not really.  Try:

   C-h f python-mode RET

or while visiting a Python file (and the python-mode you desire is active),
try:

  C-h m

-- 
Skip Montanaro - [EMAIL PROTECTED] - http://smontanaro.dyndns.org/
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] pycomplete developing

2008-01-03 Thread skip

Leonid Is pycomplete having been developed?  And is it a part of
Leonid python-mode?

It's there if you check out python-mode from SF CVS.  I haven't touched it
in a couple years though.  I have no idea how Pymacs might have changed in
the intervening time, so don't know if pycomplete would still work or not.

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


Re: [Python-mode] cvs - svn?

2007-03-16 Thread skip

Barry So, I'm wondering if moving python-mode's repository over to svn
Barry would help, and whether anybody would mind if I did this.

Go for it.

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


Re: [Python-mode] Tutorial on Python-Mode

2007-03-09 Thread skip

Maximilian I've been using xemacs for many things, especially LaTeX,
Maximilian and I would like to start using it as an editor for
Maximilian python. Unfortunately I haven't found much documentation on
Maximilian python-mode. 

I don't think there is anything separate from what you can get online.

Maximilian Is there anyway I can find a tutorial or a few hints (well,
Maximilian maybe more than a few...) on how it works.

It's not all that different from other language programming modes.  C-h m
will give you some help about the mode-specific bindings.  From there you
can ask for help about specific commands, functions and variables.

Maximilian Just to name a feature, what exactly does Mark a Block do?

It's bound to C-c C-k so type C-h k C-c C-k and you'll get the documentation
for the py-mark-block command.

Maximilian Or another feature, Ctrl-c ! I get an interpreter, and
Maximilian many new menus (i.e. Complete, In/Out, Signals).

C-c ! runs the py-shell command which is a specialization of the normal
shell mode.  Again, C-h k C-c ! will display help about py-shell.

Maximilian I'm a bit lost... I've been using Python only for scripting,
Maximilian but I'll probably have to start using it to analyze MD data
Maximilian from Gromacs.

I don't do anything with computational chemistry but I assume the field has
plenty of very specialized wheels.  I would be best if you could avoid
reinventing them.  You might want to plug into the SciPy community
(http://www.scipy.org/).  Also, I think Andrew Dalke
(http://www.dalkescientific.com/) does a fair amount of computational
chemistry and bioinformatics using Python.  He might be a good source of
pointers.

-- 
Skip Montanaro - [EMAIL PROTECTED] - http://www.webfast.com/~skip/
The hippies and the hipsters did some great stuff in the sixties,
but the geeks pulled their weight too. -- Billy Bragg
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] Site is broken

2006-02-03 Thread skip

Rob The links Customize and Related Packages on the sourceforge
Rob site are broken.

I can't tell where you are looking.  Can you provide a URL?

Rob Anywhere I can turn to for customization info until it's back up?
Rob (Looking for syntax hilighting.)

Syntax highlighting of Python within GNU Emacs or XEmacs?  Try here:

http://sourceforge.net/project/showfiles.php?group_id=86916

-- 
Skip Montanaro
http://www.musi-cal.com/
[EMAIL PROTECTED]
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] Which @xemacs.org e-mail addresses are being used?

2005-11-11 Thread skip

(Massively trimming cc list...)

Joseph We need to clean up the @xemacs.org addresses being hosted on
Joseph @tux.org.  Right now, they are merged in with all other @tux.org
Joseph e-mail addresses.

...

Joseph python-mode-bugs
Joseph python-mode-discuss
Joseph python-mode-maintainer
Joseph python-mode-patches

Do any of these point to the python-mode@python.org mailing list?  I'm
willing to bet (small sums of money, mind you) that python-mode-maintainer
is aliased either to me ([EMAIL PROTECTED]) or Barry Warsaw (one of several
addresses he has).  The others might reflect to the python-mode list.  If
they don't they either should or we should be notified where they point so
the python-mode folks can monitor them.

I presume there is or was some sort of protocol for setting up these sets of
package maintainer addresses.  I'm pretty sure Norbert Koch will know.

-- 
Skip Montanaro
Katrina Benefit Concerts: http://www.musi-cal.com/katrina
[EMAIL PROTECTED]
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode