Re: [Python-mode] code/macros to reformat code

2011-05-12 Thread David Miller
> > > my_string = "foo bar baz ... junk" > "stuff etc" > > > then "stuff etc" will not be assigned to my_string any more. > (Possibly) worse than that, it's going to throw an IndentationError :) Have you tried M-x longlines-mode ? -- Love regards etc David Miller http://www

Re: [Python-mode] code/macros to reformat code

2011-05-11 Thread Andreas Röhler
Am 11.05.2011 18:24, schrieb m h: On Wed, May 11, 2011 at 12:20 AM, Andreas Röhler wrote: Am 11.05.2011 00:44, schrieb m h: Folks- I was wondering if anyone has some code floating around to reformat code after the code passes a certain column (say 79 or 80). What I'm looking for is reforma

Re: [Python-mode] code/macros to reformat code

2011-05-11 Thread m h
On Wed, May 11, 2011 at 12:20 AM, Andreas Röhler wrote: > Am 11.05.2011 00:44, schrieb m h: >> >> Folks- >> >> I was wondering if anyone has some code floating around to reformat >> code after the code passes a certain column (say 79 or 80). >> >> What I'm looking for is reformatting long lines. I

Re: [Python-mode] code/macros to reformat code

2011-05-10 Thread Andreas Röhler
Am 11.05.2011 00:44, schrieb m h: Folks- I was wondering if anyone has some code floating around to reformat code after the code passes a certain column (say 79 or 80). What I'm looking for is reformatting long lines. I'd like to convert something like (assume the k of junk is around 78): my_s

[Python-mode] code/macros to reformat code

2011-05-10 Thread m h
Folks- I was wondering if anyone has some code floating around to reformat code after the code passes a certain column (say 79 or 80). What I'm looking for is reformatting long lines. I'd like to convert something like (assume the k of junk is around 78): my_string = "foo bar baz ... junk stuff