[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
** 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 pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
** 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 pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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 in: python-mode Milestone: None = 6.1.0 ** Changed in: python-mode Status: Incomplete = In Progress -- 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 manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
** 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 trailing whitespace to be pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing whitespace to be pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
** 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 To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
** 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 manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing whitespace to be pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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 comments cause trailing whitespace to be pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
** 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 whitespace to be pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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 M-x report-emacs-bug if this happens? Thanks, Andreas -- 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 manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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: http://pedrokroger.com/2010/07/configuring-emacs-as-a-python-ide-2/ (add-hook 'before-save-hook 'delete-trailing-whitespace) -- 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 manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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)(\/)] 'py-indent-line-outmost) as it comes with the trunk? Thanks, Andreas -- 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 manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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 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 manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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 inclined to flag in invalid. Andreas -- 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 manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing whitespace to be pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing whitespace to be pasted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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 is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/670701 Title: Multiline copy including comments cause trailing whitespace to be pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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 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 manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
(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 including comments cause trailing whitespace to be pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
** 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 whitespace to be pasted To manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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 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 manage notifications about this bug go to: https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 670701] Re: Multiline copy including comments cause trailing whitespace to be pasted
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 whitespace on the line. Isn't this an X selection issue? Cleaning up trailing whitespace on a line is a feature of python-mode.el so I'm not surprised that it gets cleaned up there. I don't know whether any of the other modes have such a feature. -- Multiline copy including comments cause trailing whitespace to be pasted https://bugs.launchpad.net/bugs/670701 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs