[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2012-10-23 Thread Andreas Roehler
** Changed in: emacs23 (Ubuntu) Status: New = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing whitespace to be

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2012-08-16 Thread Andreas Roehler
** Changed in: python-mode Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing whitespace to be

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2012-07-03 Thread Andreas Roehler
with -1023r new customizable boolean `py-trailing-whitespace-smart-delete-p' allows better handling, coming back at the issue that way ** Changed in: python-mode Importance: Undecided = Medium ** Changed in: python-mode Assignee: (unassigned) = Andreas Roehler (a-roehler) ** Changed

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2012-07-03 Thread Launchpad Bug Tracker
** Branch linked: lp:python-mode ** Branch linked: lp:python-mode/components-python-mode -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2012-07-03 Thread Andreas Roehler
please flag new again, should you still encounter the issue, thanks, Andreas ** Changed in: python-mode Status: In Progress = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2012-04-22 Thread Andreas Roehler
** Changed in: python-mode Importance: Medium = Undecided -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing whitespace to be pasted

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2012-02-29 Thread Andreas Roehler
** Changed in: python-mode Status: New = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing whitespace to be pasted To

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2012-02-18 Thread Andreas Roehler
Hi Bryce, should you see something bad, interested to learn about. BTW think it's worth a new report than, thanks, Andreas ** Changed in: python-mode Status: Incomplete = New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2012-02-17 Thread Bryce Harrington
the delete-trailing-whitespace on save is interesting, although obviously could have some side effects... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2012-01-22 Thread Andreas Roehler
** Changed in: python-mode Assignee: Andreas Roehler (a-roehler) = (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing

Re: [Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-09-02 Thread Andreas Roehler
Am 01.09.2011 21:25, schrieb Bryce Harrington: The issue is that if you have a comment with *no* trailing white space, then select it with the mouse, and paste it, it pastes in a comment *with* trailing whitespace. Can't see any code inside python-mode doing that. Could you send the output of

Re: [Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-09-02 Thread Andreas Roehler
Am 01.09.2011 21:25, schrieb Bryce Harrington: The issue is that if you have a comment with *no* trailing white space, then select it with the mouse, and paste it, it pastes in a comment *with* trailing whitespace. just coming around this:

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-09-01 Thread Andreas Roehler
Hi Bryce, Can't see why commands should get translated, can't see whats behind the command-names you indicated. Could you try (define-key map [(control j)] 'py-newline-and-indent) (define-key map [(return)] 'py-newline-and-indent) (define-key map [(control c)(\/)]

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-09-01 Thread Bryce Harrington
Hi Andreas, Okay, I tried test (r539), and trunk with those three lines added. Same behavior in both cases: Pasting of python lines does not cause sequential tabbing, but pasting of any commented line causes trailing whitespace to be pasted in. -- You received this bug notification because

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-09-01 Thread Andreas Roehler
Dunno how it was before, but don't think it's the task of paste to deal with trailing whitespace. So if a comment line has trailing whitespace, remove it before copying or get it copied. Copy and paste is the wrong place changing code IMHO, Don't see any python-mode related bug here, being

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-09-01 Thread Bryce Harrington
The issue is that if you have a comment with *no* trailing white space, then select it with the mouse, and paste it, it pastes in a comment *with* trailing whitespace. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-08-31 Thread Bryce Harrington
I think it is not an X selection issue; I've never seen this behavior in any application other than emacs. ** Tags added: karmic lucid maverick natty oneiric -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-08-31 Thread Bryce Harrington
Versions of python-mode.el prior to trunk revision 525 do not exhibit this bug; revisions 525 and later (up to current), show the bug. ** Also affects: python-mode Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-08-31 Thread Bryce Harrington
This line appears to be the culprit: (define-key map [(control m)] 'newline-and-indent) With that line turned on (as is the case with r524 and earlier), bug #670674 appears. With it commented out, this bug #670701 appears as in r525+. -- You received this bug notification because you

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-08-31 Thread Bryce Harrington
(define-key map [(control m)] 'reindent-then-newline-and-indent) seems to work a lot better, although still not perfect -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-08-31 Thread Andreas Roehler
** Changed in: python-mode Assignee: (unassigned) = Andreas Roehler (a-roehler) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2011-08-31 Thread Andreas Roehler
Hi Bryce, can't see any relation between these commands and any trailing whitespace issue, as these keys/commands only care for the indent, leaving the rest of line untouched. Cheers, Andreas ** Changed in: python-mode Importance: Undecided = Medium ** Changed in: python-mode

[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted

2010-11-03 Thread Barry Warsaw
What happens for me: if I paste in a gedit window I get -snip- # foobar -snip- If I paste into a jed running in a gnome-terminal, it seems fine. Same with pasting into an emacs running in xterm. When I paste it into an Emacs (X) buffer, I do get a huge amount of trailing