From andreas.roehler at easy-emacs.de Tue Mar 12 08:26:57 2013 From: andreas.roehler at easy-emacs.de (=?ISO-8859-15?Q?Andreas_R=F6hler?=) Date: Tue, 12 Mar 2013 08:26:57 +0100 Subject: [Python-mode] [python-mode] Please stop bundling libraries In-Reply-To: <8738w1jtox.fsf@bernoul.li> References: <8738w1jtox.fsf@bernoul.li> Message-ID: <513ED8C1.3090909@easy-emacs.de> Am 12.03.2013 02:25, schrieb Jonas Bernoulli: > python-mode is mirrored on the Emacsmirror, which is a large up-to-date > collection of Emacs packages. > > As the maintainer of the mirror I am trying to resolve feature conflicts > that result from one package bundling libraries from another package. I > suspect in most cases these libraries were included so that users would > not have to find, download and install each dependency manually. > > Unfortunately bundling also has negative side-effects: if the bundled > libraries are also installed separately, then it is undefined which > version actually gets loaded when the respective feature is required. > > Initially that isn't a big problem but in many cases upstream changes > are not included or only after a long delay. This can be very confusing > for users who are not aware that some of the installed packages bundle > libraries which are also installed separately. In other cases bugs are > fixed in the bundled versions but the fixes are never submitted to > upstream. > > Also now that Emacs contains the package.el package manager there is a > better way to not require users to manually deal with dependencies: add > the package (and when that hasn't been done yet the dependencies) to the > Melpa package repository. If make is required to install your make you > might want to add it to the el-get (another popular package manager) > package repository instead. > > Alternatively if you want to keep bundling these libraries please move > them to a directory only containing bundled libraries and add the file > ".nosearch" to that directory. You can then load the library using > something like this: > > ,---- > | (or (require 'bundled nil t) > | (let ((load-path > | (cons (expand-file-name "fallback-libs" > | (or load-file-name buffer-file-name) > | load-path)))) > | (require 'bundled))) > `---- > > Of course if your version differs from the upstream version this might > not be enough in which case you should make an effort to get your > changes merged upstream. > > python-mode bundles at least the following libraries: > - autopair > - pymacs > - python (?) > > Best regards, > Jonas > The matter is recognised, next commit will remove smart-operator. BTW pymacs should not be bundled with python-mode.el any more. It's still part of the components-branch, which is used by people without `make' on their machine. This should not interfere here. 'python is not delivered any more. Thanks for the report, Andreas From andreas.roehler at online.de Wed Mar 20 08:52:56 2013 From: andreas.roehler at online.de (=?windows-1252?Q?Andreas_R=F6hler?=) Date: Wed, 20 Mar 2013 08:52:56 +0100 Subject: [Python-mode] =?windows-1252?q?=5BPython-de=5D_Treffer_ausschlie?= =?windows-1252?q?=DFen?= In-Reply-To: <51487CCE.3000702@chrisarndt.de> References: <51484484.1040902@online.de> <514873A0.5090404@online.de> <51487CCE.3000702@chrisarndt.de> Message-ID: <51496AD8.5020404@online.de> Am 19.03.2013 15:57, schrieb Christopher Arndt: > On 19.03.2013 15:18, Andreas R?hler wrote: >> [^\2] verstehe ich als Ausdruck "finde alle Zeichen, die nicht von >> Klammer 2 gefunden wurden" > > Vielleicht hilft folgende in der Doku beschrieben Syntax dir weiter? > > (?(id/name)yes-pattern|no-pattern) > > "Will try to match with yes-pattern if the group with given id or name > exists, and with no-pattern if it doesn?t. no-pattern is optional and > can be omitted. For example, (<)?(\w+@\w+(?:\.\w+)+)(?(1)>) is a poor > email matching pattern, which will match with '' as well > as 'user at host.com', but not with ' > > Vielleicht aber auch nicht. Ich verstehe deine Problemstellung n?mlich > auch noch nicht wirklich. > > > Chris > > Das ist interessant, danke. F?rs Problem taugt es noch nicht, da die Form nur nach der Existenz das Ausdrucks fragt, w?hrend ich dessen Inhalt brauche, bzw. einen Ausdruck f?r die Negation des Inhalts. Andreas > > > _______________________________________________ > python-de maillist - python-de at python.org > http://mail.python.org/mailman/listinfo/python-de > From andreas.roehler at online.de Wed Mar 20 10:09:48 2013 From: andreas.roehler at online.de (=?windows-1252?Q?Andreas_R=F6hler?=) Date: Wed, 20 Mar 2013 10:09:48 +0100 Subject: [Python-mode] =?windows-1252?q?=5BPython-de=5D_Treffer_ausschlie?= =?windows-1252?q?=DFen?= In-Reply-To: <51496AD8.5020404@online.de> References: <51484484.1040902@online.de> <514873A0.5090404@online.de> <51487CCE.3000702@chrisarndt.de> <51496AD8.5020404@online.de> Message-ID: <51497CDC.1090409@online.de> Am 20.03.2013 08:52, schrieb Andreas R?hler: cc to wrong list, sorry, please forget, Andreas From alexis.roda.villalonga at gmail.com Wed Mar 27 22:12:27 2013 From: alexis.roda.villalonga at gmail.com (Alexis Roda) Date: Wed, 27 Mar 2013 22:12:27 +0100 Subject: [Python-mode] problem with fill-paragraph Message-ID: <515360BB.2090304@gmail.com> Hi, I have upgraded from python-mode 6.0.11 to 6.1.2 and now I have some trouble with fill-paragraph within docstrings. It works ok for comments. If the point is within the second paragraph M-q converts: """Returns a rewritten path. Assuming that ``cr`` is a :class:`ContextRewriter` instance, that the rewriter maps the path ``views/`` to into: """Returns a rewritten path. Assuming that ``cr`` is a :class:`ContextRewriter` instance, that the rewriter maps the path ``views/`` to And scrolls the buffer/window so that "Assuming that ..." appears in the top of the window. It seems to work ok if I select the whole paragraph before pressing M-q. I have tested it under a clean environment in a virtual machine, emacs 23.3.1, ubuntu 12.04, with a minimal setup. .emacs is just: (setq py-install-directory (expand-file-name "~/.emacs.d")) (add-to-list 'load-path py-install-directory) (require 'python-mode) Is this a known issue or am I missing something? Thanks in advance