all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Python mode and M-q
@ 2007-02-26 22:36 Paul Pogonyshev
  2007-02-28 20:55 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Pogonyshev @ 2007-02-26 22:36 UTC (permalink / raw)
  To: emacs-devel

It would be great if Python mode didn't touch string boundaries if
M-q is invoked inside a string.  For instance, currently

"""
Some documentation.
"""

is turned into

""" Some documentation. """

If M-q command is issued.

Paul

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Python mode and M-q
  2007-02-26 22:36 Python mode and M-q Paul Pogonyshev
@ 2007-02-28 20:55 ` Stefan Monnier
  2007-02-28 22:52   ` Paul Pogonyshev
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2007-02-28 20:55 UTC (permalink / raw)
  To: Paul Pogonyshev; +Cc: emacs-devel

> It would be great if Python mode didn't touch string boundaries if
> M-q is invoked inside a string.  For instance, currently

> """
> Some documentation.
> """

> is turned into

> """ Some documentation. """

> If M-q command is issued.

I believe I've fixed it, tho maybe not for all possible cases.


        Stefan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Python mode and M-q
  2007-02-28 20:55 ` Stefan Monnier
@ 2007-02-28 22:52   ` Paul Pogonyshev
  2007-03-01 15:08     ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Pogonyshev @ 2007-02-28 22:52 UTC (permalink / raw)
  To: emacs-devel; +Cc: Stefan Monnier

Stefan Monnier wrote:
> > It would be great if Python mode didn't touch string boundaries if
> > M-q is invoked inside a string.  For instance, currently
> 
> > """
> > Some documentation.
> > """
> 
> > is turned into
> 
> > """ Some documentation. """
> 
> > If M-q command is issued.
> 
> I believe I've fixed it, tho maybe not for all possible cases.

I'd appreciate if you comimtted your changes.  I have recompiled Emacs
only to discover that `python.el' hasn't been changed for a month.

Paul

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Python mode and M-q
  2007-02-28 22:52   ` Paul Pogonyshev
@ 2007-03-01 15:08     ` Stefan Monnier
  2007-03-01 18:44       ` Paul Pogonyshev
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2007-03-01 15:08 UTC (permalink / raw)
  To: Paul Pogonyshev; +Cc: emacs-devel

>> > It would be great if Python mode didn't touch string boundaries if
>> > M-q is invoked inside a string.  For instance, currently
>> 
>> > """
>> > Some documentation.
>> > """
>> 
>> > is turned into
>> 
>> > """ Some documentation. """
>> 
>> > If M-q command is issued.
>> 
>> I believe I've fixed it, tho maybe not for all possible cases.

> I'd appreciate if you commtted your changes.

Sorry, I didn't notice that my commit failed.  It should be committed now.


        Stefan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Python mode and M-q
  2007-03-01 15:08     ` Stefan Monnier
@ 2007-03-01 18:44       ` Paul Pogonyshev
  2007-03-02  1:35         ` Paul Pogonyshev
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Pogonyshev @ 2007-03-01 18:44 UTC (permalink / raw)
  To: emacs-devel; +Cc: Stefan Monnier

Stefan Monnier wrote:
> >> > It would be great if Python mode didn't touch string boundaries if
> >> > M-q is invoked inside a string.  For instance, currently
> >> 
> >> > """
> >> > Some documentation.
> >> > """
> >> 
> >> > is turned into
> >> 
> >> > """ Some documentation. """
> >> 
> >> > If M-q command is issued.
> >> 
> >> I believe I've fixed it, tho maybe not for all possible cases.
> 
> > I'd appreciate if you commtted your changes.
> 
> Sorry, I didn't notice that my commit failed.  It should be committed now.

Works fine, at least on my code.  Thanks.

Paul

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Python mode and M-q
  2007-03-01 18:44       ` Paul Pogonyshev
@ 2007-03-02  1:35         ` Paul Pogonyshev
  2007-03-02  1:38           ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Pogonyshev @ 2007-03-02  1:35 UTC (permalink / raw)
  To: emacs-devel; +Cc: Stefan Monnier

I wrote:
> Stefan Monnier wrote:
> > >> > It would be great if Python mode didn't touch string boundaries if
> > >> > M-q is invoked inside a string.  For instance, currently
> > >> 
> > >> > """
> > >> > Some documentation.
> > >> > """
> > >> 
> > >> > is turned into
> > >> 
> > >> > """ Some documentation. """
> > >> 
> > >> > If M-q command is issued.
> > >> 
> > >> I believe I've fixed it, tho maybe not for all possible cases.
> > 
> > > I'd appreciate if you commtted your changes.
> > 
> > Sorry, I didn't notice that my commit failed.  It should be committed now.
> 
> Works fine, at least on my code.  Thanks.

Hm.  Any reason it would not work after restarting Emacs (including with -Q)
but works OK after evaluating `python.el'?  I believe Emacs is properly
installed, but to check, how do I find out which `python.el' it reads?

Paul

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Python mode and M-q
  2007-03-02  1:35         ` Paul Pogonyshev
@ 2007-03-02  1:38           ` Lennart Borgman (gmail)
  2007-03-02  1:53             ` Paul Pogonyshev
  0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-02  1:38 UTC (permalink / raw)
  To: Paul Pogonyshev; +Cc: Stefan Monnier, emacs-devel

Paul Pogonyshev wrote:

> Hm.  Any reason it would not work after restarting Emacs (including with -Q)
> but works OK after evaluating `python.el'?  I believe Emacs is properly
> installed, but to check, how do I find out which `python.el' it reads?
> 
> Paul


See locate-library or find-library.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Python mode and M-q
  2007-03-02  1:38           ` Lennart Borgman (gmail)
@ 2007-03-02  1:53             ` Paul Pogonyshev
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Pogonyshev @ 2007-03-02  1:53 UTC (permalink / raw)
  To: emacs-devel; +Cc: Lennart Borgman (gmail), Stefan Monnier

Lennart Borgman (gmail) wrote:
> Paul Pogonyshev wrote:
> 
> > Hm.  Any reason it would not work after restarting Emacs (including with -Q)
> > but works OK after evaluating `python.el'?  I believe Emacs is properly
> > installed, but to check, how do I find out which `python.el' it reads?
> > 
> > Paul
> 
> 
> See locate-library or find-library.

So the cause is .elc file.  When I renamed it and restarted Emacs, changes in
Python mode came into effect.  No idea what is wrong with that file...

Paul

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-03-02  1:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-26 22:36 Python mode and M-q Paul Pogonyshev
2007-02-28 20:55 ` Stefan Monnier
2007-02-28 22:52   ` Paul Pogonyshev
2007-03-01 15:08     ` Stefan Monnier
2007-03-01 18:44       ` Paul Pogonyshev
2007-03-02  1:35         ` Paul Pogonyshev
2007-03-02  1:38           ` Lennart Borgman (gmail)
2007-03-02  1:53             ` Paul Pogonyshev

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.