** Changed in: emacs23 (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to emacs23 in Ubuntu.
https://bugs.launchpad.net/bugs/670701

Title:
  Multiline copy including comments cause trailing whitespace to be
  pasted

Status in An Emacs mode for editing Python code:
  Fix Released
Status in “emacs23” package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: emacs23

  Steps to reproduce:
    0.  sudo apt-get install emacs23-nox
    1.  Remove any ~/.emacs customizations
    2. In xterm or gnome-terminal, run /usr/bin/emacs foobar.py
    3. Type in "# foobar" and hit enter
    4. Triple-click the line
    5. In some other editor (nano, gedit, pico, firefox textarea) paste text

  Expected: "# foobar"

  Actual:  "# foobar
  " # terminal-width amount of spaces

  It seems to occur not just with python files but also C or perl.  It
  does not seem to occur with plain text files.

  Interestingly, if you paste into emacs with python-mode enabled, it
  will correct the trailing whitespace on paste.  Even more interesting,
  if you start in python-mode, tripleclick "# foobar", then M-x perl-
  mode, and paste in the same buffer, it pastes the extraneous trailing
  whitespace.  (But vice-versa doesn't seem to trigger it.)

  This occurs for me with both emacs22-nox and emacs23-nox, as well as
  "emacs22 -nw" and "emacs23 -nw".  It does not happen with Xemacs (or
  at least, I couldn't get it to reproduce).

  I've reproduced it on maverick, lucid, and karmic.  I seem to recall
  it didn't occur with earlier versions of emacs although I don't
  remember if it was emacs22 or emacs21 that I first noticed it.

  I've also tested an alternate python mode, but it shows the same
  problem so I don't think this issue is particular to python-mode.el,
  especially since I can reproduce the issue with C and perl files.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-mode/+bug/670701/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to