Re: [Python-mode] Python help buffer

2015-03-11 Thread andrea crotti
2015-03-10 8:22 GMT+00:00 Andreas Röhler : > On 09.03.2015 18:26, andrea crotti wrote: >> >> Hi again Andreas and all. >> I'm still having this issue with the documentation buffer popping up >> all the time.. >> I'm using now python-mode version:

Re: [Python-mode] Python help buffer

2015-03-09 Thread andrea crotti
I'd rather just fix it once for all. I've been trying to understand how that function is triggered in the first place but can't find it, and it must be something different between Emacs 24 and Emacs 25 because it doesn't happen on the 24.. Any idea where to look for? 2015-01-07

[Python-mode] python-components-switches?

2015-01-31 Thread andrea crotti
Hi guys, I just reinstalled everything from scratch and loading python-mode gives me this error below.. The file in fact does not exist anywhere so not sure how it was working before, any idea where it should be? thanks Debugger entered--Lisp error: (file-error "Cannot open load file" "no such fil

Re: [Python-mode] Python help buffer

2015-01-07 Thread andrea crotti
2015-01-07 19:40 GMT+00:00 Andreas Röhler : > On 07.01.2015 18:50, andrea crotti wrote: >> >> 2015-01-07 12:33 GMT+00:00 Andreas Röhler : >>> >>> Hi Andrea, >>> >>> From Emacs -Q, loading python-mode.el by hand, does it still happen? >>>

Re: [Python-mode] Python help buffer

2015-01-07 Thread andrea crotti
2015-01-07 12:33 GMT+00:00 Andreas Röhler : > Hi Andrea, > > From Emacs -Q, loading python-mode.el by hand, does it still happen? > > Andreas > I realised to my surprise that I was not actually using the version from ELPA but a version in my disk. Anyway I now downloaded from ELPA (marmalade) 6.13

[Python-mode] Python help buffer

2015-01-07 Thread andrea crotti
Hi guys, I have a problem with Emacs 25 that does not happen with Emacs 24.4. More specifically with: - GNU Emacs 25.0.50.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F34)) of 2014-11-15 on builder10-9.porkrind.org - Python mode: 6.1.3 So in short with Emacs 25 the *Pyt

[Python-mode] coverage and tests

2012-08-21 Thread Andrea Crotti
So one thing which would be awesome to have is the ability to see which lines are not tested while I'm writing my code... There is already an extension here but I could not get it working https://github.com/mattharrison/pycoverage.el At the moment what I do is simply to to set in .dir-locals.el

Re: [Python-mode] smart-operator-mode

2012-08-21 Thread Andrea Crotti
On 08/21/2012 08:49 PM, Andrea Crotti wrote: I just uploaded from bazaar and checking all the new great things, and I think I encountered a very small bug: (defun py-toggle-smart-operator (&optional arg) "If `py-smart-operator-mode-p' should be on or off. Returns value of `py-

[Python-mode] smart-operator-mode

2012-08-21 Thread Andrea Crotti
I just uploaded from bazaar and checking all the new great things, and I think I encountered a very small bug: (defun py-toggle-smart-operator (&optional arg) "If `py-smart-operator-mode-p' should be on or off. Returns value of `py-smart-operator-mode-p' switched to. " (interactive) (let

Re: [Python-mode] huge files

2012-02-15 Thread Andrea Crotti
On 02/15/2012 03:08 PM, François Pinard wrote: It's easier to share and install. A bit, not by much, nowadays. Splitting might be a trigger towards a more formal installation procedure. But it would not alleviate the need for some good, or at least reasonable documentation. Splitting could als

Re: [Python-mode] huge files

2012-02-15 Thread Andrea Crotti
On 02/15/2012 08:34 AM, Andreas Röhler wrote: think it's basically historical. People interested in developing/understanding might check out and use the components branch https://code.launchpad.net/~a-roehler/python-mode/components-python-mode I'm doing all my developing and Python editing

[Python-mode] huge files

2012-02-14 Thread Andrea Crotti
It looks like it's a common "problem" in the Elisp world, but I was wondering is it normal to have huge source files. python-mode.el is > 10k lines now, which for me causes two problems: - it's hard to even know the various functionalities - it's hard to manage the file I see various things that

Re: [Python-mode] using python parser

2011-12-21 Thread Andrea Crotti
On 12/21/2011 08:03 PM, Andrea Crotti wrote: > I just had the following (maybe stupid) idea. > > One of the great things about python is that it exposes the parsing > completely > in the standard library, with the module tokenize. > > Now would not it be possible to write a

[Python-mode] using python parser

2011-12-21 Thread Andrea Crotti
I just had the following (maybe stupid) idea. One of the great things about python is that it exposes the parsing completely in the standard library, with the module tokenize. Now would not it be possible to write a simple tokenizer that takes a python file and returns a nice structured format of

Re: [Python-mode] paredit-like mode

2011-12-02 Thread Andrea Crotti
On 12/02/2011 08:18 AM, Brendan Miller wrote: The mode you are looking for is called autopair: http://code.google.com/p/autopair/ Kind of a scaled back paredit that works with any language. Thanks a lot, exactly what I was looking for :) ___ Python-

Re: [Python-mode] paredit-like mode

2011-12-01 Thread Andrea Crotti
On 12/01/2011 11:18 AM, Andreas Röhler wrote: good idea, think some of them exists already resp. isn't far away. as paredit offers a lot, some code example before - after might help implementing it. Will make a Blueprint meanwhile for the matter. Andreas Thanks, first I thought we could us

[Python-mode] paredit-like mode

2011-11-30 Thread Andrea Crotti
I like paredit-mode when I write in elisp, but unfortunately for python is not perfect, is there anything similiar we could use for python mode? Thanks, Andrea ___ Python-mode mailing list Python-mode@python.org http://mail.python.org/mailman/listinfo/p

Re: [Python-mode] completion in shell

2011-11-30 Thread Andrea Crotti
Ok thanks, the problems was there also from Emacs -Q, but after I've updated again it works now... It does not work, however, the completion in the shell with py-shell-completion, is that normal or should I report it? ___ Python-mode mailing list Python-m

Re: [Python-mode] completion in shell

2011-11-30 Thread Andrea Crotti
On 11/25/2011 01:31 PM, Andreas Röhler wrote: Indeed, that's a different case. Checking with current trunk just committed don't see it. Could you try again? Should it still happen, please make a report a the tracker. Thanks, Andreas That was fixed thanks a lot, but now I'm afraid that py

Re: [Python-mode] completion in shell

2011-11-25 Thread Andrea Crotti
On 11/25/2011 07:36 AM, Andreas Röhler wrote: which isn't that bad. that was fixed here https://bugs.launchpad.net/python-mode/+bug/328836 and seems broken recently again. Presently shell completion should work at least from within after M-y ipython Maybe I was not clear, the py-shell-comp

[Python-mode] completion in shell

2011-11-24 Thread Andrea Crotti
Since some time my shell completion stopped working, only today I digged to see what's going on, and I found that tab is bound to: py-shell-complete But why is that? Emacs -Q doesn't show this behaviour, but looking in python-mode code I don't see how it could happen, any idea?

Re: [Python-mode] emacs

2011-11-02 Thread Andrea Crotti
On 10/28/2011 03:25 AM, Rinu Boney wrote: I Would Love to Know How To Set Up Emacs As A Python Code Editing Environment Using python-mode.el. I Have No Experience in Emacs. Can U Help or Point Out Something That Can Help Me ? Thanks. I've never seem someone capitalising every word :D In Germa

Re: [Python-mode] py-execute-buffer and CWD

2011-11-01 Thread Andrea Crotti
So from my understading the problem is that if there is another *Python* buffer around, it will just be used without changing the current directory. Apparently my attempt to "cd" didn't have any effect, so maybe we need to pass the path of the master py file to the real "execute" function, does

Re: [Python-mode] py-execute-buffer and CWD

2011-11-01 Thread Andrea Crotti
On 11/01/2011 08:53 PM, Andreas Röhler wrote: cd is a shell command you can't mix that into Emacs Lisp. BTW ipython shell would understand "cd" it, but that's another item. Maybe give a example, what you trying to do, so we can look how to solve that task. BTW answered here, as you are not

[Python-mode] py-execute-buffer and CWD

2011-11-01 Thread Andrea Crotti
While trying to run a script and there is already another *Python* buffer open for another directory, running the script normally fails if there are some relative file paths. Apparently the CWD in the *Python* buffer remains the old one, and thus it makes sense that Python can't resolve relative

[Python-mode] problem with byte-code

2011-10-10 Thread Andrea Crotti
I pulled revision 633 and byte-compiled it, but if I call python-mode I get: "byte-code: Don't know how to make a localized variable an alias" and no stacktrace even if I set debug-on-error to true. Any idea of what it could be? Another thing which I think would be nice is to get rid of this p

Re: [Python-mode] Identifying which mode is running?

2011-09-27 Thread Andrea Crotti
On 09/27/2011 07:33 PM, James Hartley wrote: I have python-mode 5.2.0 installed on Emacs 23.3.1. Is there a way to determine what version of python-mode is currently installed? I'm looking at 6.0.2 & would like to verify. Thanks. C-h v py-version should do what you want... Or if you wan

Re: [Python-mode] py-execute-buffer and swap buffers

2011-07-30 Thread Andrea Crotti
On Fri 29 Jul 2011 11:01:45 AM CEST, Andreas Röhler wrote: Hi Andrea. could you make an entry into the bug tracker? That helps maintenance a lot, for example as usually tests will be written after fixing it, which should address the bug number. Done: https://bugs.launchpad.net/python-mode/

[Python-mode] py-execute-buffer and swap buffers

2011-07-28 Thread Andrea Crotti
This is something I noticed since some time. I have the latest bzr python-mode (but also before it was like this) and emacs GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.5) When I have only two buffers open, one with the source and the other one with the output, pressing C-c C

[Python-mode] Else indentation problem

2011-04-28 Thread Andrea Crotti
I have some indentation problems with the version 411 of python-mode I also tried on "emacs-24.0.50 -Q" on the scratch buffer and this: if True: pass else: !! after the else it doesn't indent. Anyone else with the same issue? -- GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.2

Re: [Python-mode] Error during indentation

2011-03-14 Thread Andrea Crotti
Andreas Röhler writes: > Hi Andrea, > > thanks. Have some idea meanwhile wherefrom these bug. It's in the line > above, resp. it's receiving function. > > Ironically you get this bug, because syntax setting is OK now with Emacs 24. > > AFAIS bug results, because the delimiting char of a > triple-

Re: [Python-mode] Error during indentation

2011-03-14 Thread Andrea Crotti
Barry Warsaw writes: > On Mar 13, 2011, at 12:49 PM, Andrea Crotti wrote: > >>I get a strange error when I have a situation like this: >>--8<---cut here---start->8--- >> 1class Foo(object): >> 2

[Python-mode] Error during indentation

2011-03-13 Thread Andrea Crotti
I get a strange error when I have a situation like this: --8<---cut here---start->8--- 1 class Foo(object): 2 """ 3 Some doc 4 """ 5 --8<---cut here---end--->8--- if I go to line 5 an

Re: [Python-mode] highlight bug?

2011-02-25 Thread andrea crotti
Uhm even forcing the load of the file python-mode.el doesn't work. But I think I found it, in wisent-python.el there is ;; Try to load python support, but fail silently since it is only used ;; for optional functionality (require 'python nil t) Which if I get it right hides the python-mode functi

Re: [Python-mode] highlight bug?

2011-02-25 Thread andrea crotti
2011/2/25 Andreas Röhler : > usually I start here: > > https://code.launchpad.net/python-mode > BTW my components branch is still heavily changed, major changes underway... > > Have a look at the thing-at-point utils stuff nonetheless, for me it's a > rocket~~~:===> > >> For python-mode/python.

Re: [Python-mode] highlight bug?

2011-02-25 Thread andrea crotti
Ok first I need to be sure I'm up to date. I'm at revision 396, and also here https://code.launchpad.net/~python-mode-devs/+ownedbranches I see the same as last commit done... Are there any more advanced branches? For python-mode/python.el good to know, as long as it's sharing and helping and not

[Python-mode] highlight bug?

2011-02-25 Thread andrea crotti
Before I wasn't sure if it was an old bug, but today I got the last revision from bzr and I see the same. Function and variable names containing reserved keywords are not highlighted correctly. For example in def generate_random_tuple() tuple is colored as it was the tuple function call... Anyon

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

2011-02-17 Thread Andrea Crotti
Il giorno 16/feb/2011, alle ore 01.05, Eric Holbrook ha scritto: > 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 a