From andreas.roehler at online.de Wed Aug 15 07:35:37 2012 From: andreas.roehler at online.de (=?ISO-8859-15?Q?Andreas_R=F6hler?=) Date: Wed, 15 Aug 2012 07:35:37 +0200 Subject: [Python-mode] python-mode.el-6.0.11 released Message-ID: <502B3529.6010402@online.de> Hi Barry, hi all, gladly announce release 6.0.11 of python-mode.el. https://launchpad.net/python-mode/trunk/6.0.11/+download/python-mode.el-6.0.11.tar.gz Thanks all contributing with bug-reports. Urs Fleisch made true auto-completion work. Russell Sim provided remote shell support. New in version 6.0.11. --------------------- - improved Pymacs based code completion: - Completion of symbols from imported modules, functions, classes, module/class-level data members and instance variables in the current buffer. The information for this completion is updated whenever the file is saved. - Completion of local variables and function parameters. - Type deduction from constructor calls and literals. - Show help for modules, classes and functions. - Go to definition of modules, classes and functions. - Show signature of functions. - Support for auto-complete and company. - remote shell support - extended version of smart-operator added original smart-operator.el authored by William Xu Url: http://xwl.appspot.com/ref/smart-operator.el - py-electric-colon extended if `py-electric-colon-newline-and-indent-p' is non-nil, `py-electric-colon' calls `newline-and-indent' - boolean `py-no-completion-calls-dabbrev-expand-p' If completion function should call dabbrev-expand when no completion found. Default is `t' - boolean `py-shell-prompt-read-only', default t sets `comint-prompt-read-only', avoid unintentional edits - customizable history variables/files py-python-history defaults to "~/.python_history" py-ipython-history defaults to "~/.ipython/history" If py-honor-PYTHONHISTORY-p is `t', $PYTHONHISTORY takes precedence, default is nil If py-honor-IPYTHONDIR-p is `t', $IPYTHONHISTORY precedes, default is nil - customizable boolean `py-trailing-whitespace-smart-delete-p' Default is nil. Some commands may delete trailing whitespaces by the way. When editing other peoples code, this may produce a larger diff than expected Enjoy, Andreas -- http://launchpad.net/python-mode http://launchpad.net/s-x-emacs-werkstatt/ From barry at python.org Wed Aug 15 17:26:38 2012 From: barry at python.org (Barry Warsaw) Date: Wed, 15 Aug 2012 11:26:38 -0400 Subject: [Python-mode] python-mode.el-6.0.11 released In-Reply-To: <502B3529.6010402@online.de> References: <502B3529.6010402@online.de> Message-ID: <20120815112638.6beb28cc@resist.wooz.org> On Aug 15, 2012, at 07:35 AM, Andreas R?hler wrote: >gladly announce release 6.0.11 of python-mode.el. Congrats! -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From andrea.crotti.0 at gmail.com Tue Aug 21 21:49:18 2012 From: andrea.crotti.0 at gmail.com (Andrea Crotti) Date: Tue, 21 Aug 2012 20:49:18 +0100 Subject: [Python-mode] smart-operator-mode Message-ID: <5033E63E.1030306@gmail.com> 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 ((arg (or arg (if py-smart-operator-mode-p -1 1)))) (if (< 0 arg) (progn (setq py-smart-operator-mode-p t) (py-smart-operator-mode 1)) (setq py-smart-operator-mode-p nil) (py-smart-operator-mode -1)) (when (interactive-p) (message "py-smart-operator-mode: %s" py-smart-operator-mode-p)) py-smart-operator-mode-p)) Because py-smart-operator-mode is not defined anywhere.. is that right? thanks for the great work! From andrea.crotti.0 at gmail.com Tue Aug 21 22:10:23 2012 From: andrea.crotti.0 at gmail.com (Andrea Crotti) Date: Tue, 21 Aug 2012 21:10:23 +0100 Subject: [Python-mode] smart-operator-mode In-Reply-To: <5033E63E.1030306@gmail.com> References: <5033E63E.1030306@gmail.com> Message-ID: <5033EB2F.1080805@gmail.com> 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-smart-operator-mode-p' switched to. " > (interactive) > (let ((arg (or arg (if py-smart-operator-mode-p -1 1)))) > (if (< 0 arg) > (progn > (setq py-smart-operator-mode-p t) > (py-smart-operator-mode 1)) > (setq py-smart-operator-mode-p nil) > (py-smart-operator-mode -1)) > (when (interactive-p) (message "py-smart-operator-mode: %s" > py-smart-operator-mode-p)) > py-smart-operator-mode-p)) > > > Because py-smart-operator-mode is not defined anywhere.. is that right? > thanks for the great work! Sorry I found out how to use it, it's in extensions.. The a line in the README explaining how to use the extensions might be enough, thanks! From andrea.crotti.0 at gmail.com Tue Aug 21 23:20:20 2012 From: andrea.crotti.0 at gmail.com (Andrea Crotti) Date: Tue, 21 Aug 2012 22:20:20 +0100 Subject: [Python-mode] coverage and tests Message-ID: <5033FB94.3060404@gmail.com> 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 the compile-command that I want to run, but then I always have to check the html page to see the report.. (python-mode (compile-command . "nosetests -sv --with-cov --cov-report=html")) Anyone else interested? Maybe we can get the pycoverage working and integrate it? From andreas.roehler at online.de Wed Aug 22 09:11:45 2012 From: andreas.roehler at online.de (=?ISO-8859-1?Q?Andreas_R=F6hler?=) Date: Wed, 22 Aug 2012 09:11:45 +0200 Subject: [Python-mode] coverage and tests In-Reply-To: <5033FB94.3060404@gmail.com> References: <5033FB94.3060404@gmail.com> Message-ID: <50348631.2010903@online.de> Am 21.08.2012 23:20, schrieb 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 the compile-command that I want to run, > but then I always have to check the html page to see the report.. > > (python-mode > (compile-command . "nosetests -sv --with-cov --cov-report=html")) > > Anyone else interested? Maybe we can get the pycoverage working and integrate it? thanks https://blueprints.launchpad.net/python-mode/+spec/coverage-and-tests From noreply at sourceforge.net Fri Aug 31 22:47:04 2012 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 31 Aug 2012 13:47:04 -0700 Subject: [Python-mode] [ python-mode-Bugs-3563825 ] Feature: Display class / function name in status bar. Message-ID: <3X7t0p2VxFzQL4@mail.python.org> Bugs item #3563825, was opened at 2012-08-31 13:47 Message generated for change (Tracker Item Submitted) made by nejucomo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=3563825&group_id=86916 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nefarious CodeMonkey, Jr. (nejucomo) Assigned to: Nobody/Anonymous (nobody) Summary: Feature: Display class / function name in status bar. Initial Comment: It would be helpful for my use case if I could look at the same location in the statusbar to see which class and method the point is currently in. When working on a class hierarchy with many subclass method implementations, sometimes it's easy to forget which class's version of the method I'm looking at. Also, for very long functions, sometimes I forget which function I'm viewing. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=3563825&group_id=86916