GNU bug report logs - #19093
Problem with whitespaces during copy paste in text-mode

Previous Next

Package: emacs;

Reported by: Petr Hracek <phracek <at> redhat.com>

Date: Tue, 18 Nov 2014 11:21:01 UTC

Severity: normal

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19093 in the body.
You can then email your comments to 19093 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19093; Package emacs. (Tue, 18 Nov 2014 11:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Petr Hracek <phracek <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 18 Nov 2014 11:21:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Petr Hracek <phracek <at> redhat.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Problem with whitespaces during copy paste in text-mode
Date: Tue, 18 Nov 2014 12:20:20 +0100
Hi emacs developers,

Do you have any patch for this issue?
https://bugzilla.redhat.com/show_bug.cgi?id=1161786

I am able to reproduce the problem too.

Emacs was started with -nw command line option.

Greetings

-- 
Best regards / S pozdravem
Petr Hracek





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19093; Package emacs. (Tue, 18 Nov 2014 15:57:02 GMT) Full text and rfc822 format available.

Message #8 received at 19093 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Petr Hracek <phracek <at> redhat.com>
Cc: 19093 <at> debbugs.gnu.org
Subject: Re: bug#19093: Problem with whitespaces during copy paste in text-mode
Date: Tue, 18 Nov 2014 17:56:39 +0200
> Date: Tue, 18 Nov 2014 12:20:20 +0100
> From: Petr Hracek <phracek <at> redhat.com>
> 
> Do you have any patch for this issue?
> https://bugzilla.redhat.com/show_bug.cgi?id=1161786
> 
> I am able to reproduce the problem too.
> 
> Emacs was started with -nw command line option.

It's a feature.  If you don't like it, turn off electric-indent-mode.

(Remember: there's no "paste" in -nw sessions; no matter what your
terminal emulator does to support it, what Emacs sees is the
characters as if they were typed on the keyboard.  Now type "C-h l"
after pasting, then type by hand the same characters, and you will see
why this happens.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19093; Package emacs. (Tue, 18 Nov 2014 17:30:03 GMT) Full text and rfc822 format available.

Message #11 received at 19093 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Petr Hracek <phracek <at> redhat.com>, 19093 <at> debbugs.gnu.org
Subject: Re: bug#19093: Problem with whitespaces during copy paste in text-mode
Date: Tue, 18 Nov 2014 12:29:46 -0500
>> Emacs was started with -nw command line option.
> It's a feature.  If you don't like it, turn off electric-indent-mode.
> (Remember: there's no "paste" in -nw sessions; no matter what your

Actually, there is "paste" in -nw sessions and we do support it since
Emacs-24.4 (tho it depends on the underlying terminal to support it, of
course).

So please, give us details about the exact terminal emulator in use, and
the exact way you "copy and paste".


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19093; Package emacs. (Tue, 18 Nov 2014 17:45:02 GMT) Full text and rfc822 format available.

Message #14 received at 19093 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: phracek <at> redhat.com, 19093 <at> debbugs.gnu.org
Subject: Re: bug#19093: Problem with whitespaces during copy paste in text-mode
Date: Tue, 18 Nov 2014 19:44:37 +0200
> From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
> Cc: Petr Hracek <phracek <at> redhat.com>, 19093 <at> debbugs.gnu.org
> Date: Tue, 18 Nov 2014 12:29:46 -0500
> 
> >> Emacs was started with -nw command line option.
> > It's a feature.  If you don't like it, turn off electric-indent-mode.
> > (Remember: there's no "paste" in -nw sessions; no matter what your
> 
> Actually, there is "paste" in -nw sessions and we do support it since
> Emacs-24.4 (tho it depends on the underlying terminal to support it, of
> course).

Irrelevant: where we do have paste, the above-mentioned problem won't
happen.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19093; Package emacs. (Tue, 18 Nov 2014 18:23:02 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mark Oteiza <mvoteiza <at> udel.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#19093: Problem with whitespaces during copy paste in text-mode
Date: Tue, 18 Nov 2014 13:21:44 -0500
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:

>>> Emacs was started with -nw command line option.
>> It's a feature.  If you don't like it, turn off electric-indent-mode.
>> (Remember: there's no "paste" in -nw sessions; no matter what your
>
> Actually, there is "paste" in -nw sessions and we do support it since
> Emacs-24.4 (tho it depends on the underlying terminal to support it, of
> course).

Which -nw "paste" is that?

The only one I'm familiar with is bracketed paste--not present in 24.4.

Quoting <http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=bfc3079>:

    Emacs now supports "bracketed paste mode" when running on a terminal
    that supports it. This facility allows Emacs to understand pasted
    chunks of text as strings to be inserted instead of interpreting each
    character in the pasted text as actual user input, resulting in a
    paste experience similar to that under a window system and significant
    performance improvements when pasting large amounts of text.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19093; Package emacs. (Tue, 18 Nov 2014 20:29:01 GMT) Full text and rfc822 format available.

Message #20 received at 19093 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Mark Oteiza <mvoteiza <at> udel.edu>
Cc: 19093 <at> debbugs.gnu.org
Subject: Re: bug#19093: Problem with whitespaces during copy paste in text-mode
Date: Tue, 18 Nov 2014 15:28:32 -0500
> The only one I'm familiar with is bracketed paste--not present in 24.4.

Duh, you're right, it didn't make it for 24.4.  Thanks for being alert.

Petr, you might like to try the (unreleased) Emacs-25 code, which should
fix your problem.


        Stefan




bug marked as fixed in version 25.1, send any further explanations to 19093 <at> debbugs.gnu.org and Petr Hracek <phracek <at> redhat.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 05 Feb 2016 21:44:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 05 Mar 2016 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.