From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 27 16:54:25 2010 Received: (at submit) by debbugs.gnu.org; 27 Jul 2010 20:54:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdrAN-0000nt-IQ for submit@debbugs.gnu.org; Tue, 27 Jul 2010 16:54:25 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odnwk-0007lb-7R for submit@debbugs.gnu.org; Tue, 27 Jul 2010 13:28:07 -0400 Received: from lists.gnu.org ([199.232.76.165]:43232) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Odnws-0000yK-7B for submit@debbugs.gnu.org; Tue, 27 Jul 2010 13:28:14 -0400 Received: from [140.186.70.92] (port=56544 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Odnwm-0006CF-RW for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 13:28:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Odnwk-00052O-O5 for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 13:28:08 -0400 Received: from is-mail1.rtblw.com ([80.70.214.101]:47772) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odnwk-00052B-FH for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 13:28:06 -0400 Received: from is-mail1.rtblw.com (localhost [127.0.0.1]) by is-mail1.rtblw.com (is-mail1.rtblw.com) with ESMTP id 902B9C61EE; Tue, 27 Jul 2010 19:28:03 +0200 (CEST) Received: by is-mail1.rtblw.com (is-mail1.rtblw.com) with ESMTPSA id 67365C6026; Tue, 27 Jul 2010 19:28:03 +0200 (CEST) From: =?utf-8?Q?S=C3=A9bastien?= Gross To: bug-gnu-emacs@gnu.org Subject: 24.0.50; ansi-term: spurious newlines (soft linebreaks becomes had linebreak) Organization: Chezwam Date: Tue, 27 Jul 2010 19:28:03 +0200 Message-ID: <8739v44yxo.fsf@ubik.of1par.int.rtblw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 27 Jul 2010 16:54:22 -0400 Cc: rfrancoise@debian.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Hi, I am currently using ansi-term as a terminal emulator. the problem is when lines are longer than the buffer column number a hard newline ('\n') is inserted. Thus when some text is copied (with using both the mouse or keyboard sequences) some spurious new line appear into the pasted text. For example in ansi-term type: echo "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eius= mod tempor in cididunt ut labore et dolore magna aliqua. Ut enim ad minim v= eniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea comm= odo consequat." (this line is intentionally left long) If you try to copy/past it (using the mouse selection and middle click) you might get something like (depending on term-window-width): echo "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiu smod tempor in cididunt ut labore et dolore magna aliqua. Ut enim ad minim = veniam, quis n ostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat= ." As you can see hard newline appear. Is there a way to fix this ? Thanks in advance. Regards In GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-05-24 on elegiac, modified by Debian (emacs-snapshot package, version 1:20100524-1) Windowing system distributor `The X.Org Foundation', version 11.0.10707000 configured using `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-= linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D= /usr/lib' '--localstatedir=3D/var' '--infodir=3D/usr/share/info' '--mandir= =3D/usr/share/man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/emacs-= snapshot:/etc/emacs:/usr/local/share/emacs/24.0.50/site-lisp:/usr/local/sha= re/emacs/site-lisp:/usr/share/emacs/24.0.50/site-lisp:/usr/share/emacs/site= -lisp' '--with-x=3Dyes' '--with-x-toolkit=3Dgtk' 'build_alias=3Dx86_64-linu= x-gnu' 'host_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-DDEBIAN -DSITELOAD_PURESI= ZE_EXTRA=3D5000 -g -O2' 'LDFLAGS=3D-g -Wl,--as-needed' 'CPPFLAGS=3D'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Article Minor modes in effect: global-auto-complete-mode: t yas/global-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t savehist-mode: t desktop-save-mode: t iswitchb-mode: t show-paren-mode: t global-hl-line-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t auto-fill-mode: 1 Features: (shadow emacsbug info two-column mule-util tabify pcmpl-unix em-unix em-term em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic esh-opt em-banner em-alias esh-var esh-io esh-cmd esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util ielm dabbrev ibuf-ext autorevert longlines face-remap debug pp descr-text flow-fill crm cus-edit cus-start cus-load skeleton sh-script executable url-mailto url-methods url-util url-handlers url-parse url-vars jka-compr find-func dns-mode multi-isearch time-stamp ffap newcomment smiley ansi-color w3m-form w3m-symbol w3m browse-url w3m-hist w3m-e23 w3m-ccl ccl w3m-fsf w3m-favicon w3m-image w3m-proc w3m-util gnus-bcklg gnus-async mail-extr bbdb-gui bbdb-com warnings gnus-cite flyspell ispell qp sort byte-opt bytecomp byte-compile parse-time gnus-ml gnus-topic nnfolder utf-7 utf7 netrc nnimap imap nndraft nnmh nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-cache gnus-init cw-gnus-visual cw-gnus-groups-def cw-gnus-groups cw-gnus-sendmail-def cw-gnus-sendmail cw-gnus-personality-def cw-gnus-personality gnus-pers cw-gnus-mail-sources-def cw-gnus-mail-sources jd-buttonize gnus-art mm-uu mml2015 epg-config mm-view smime dig mailcap gnus-sum gnus-imap-message-count-fix cw-gnus-daemon gnus-demon nntp gnus-group time-date gnus-undo nnmail mail-source nnoo gnus-start gnus-spec gnus-int gnus-range message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader mail-utils mm-util mail-prsvr vc-git eldoc cw-all dim-switch-window cw-asciidoc doc-mode man cw-modes cw-dired dired-details dired-x dired-aux cw-keys cw-auto-complete auto-complete-config auto-complete popup cw-email cw-compile-startup cw-bbdb bbdb timezone cw-yasnippet yasnippet dropdown-list help-mode view cw-escreen escreen cw-hl-sexp hl-sexp thingatpt cw-tramp tramp-multi-sshx cw-cssh cssh dired tramp-imap assoc tramp-gw tramp-fish tramp-smb tramp-cache tramp-ftp tramp-cmds tramp auth-source gnus-util shell comint regexp-opt password-cache format-spec tramp-compat trampver cw-term term disp-table ehelp electric cw-magit magit ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff server derived pcomplete diff-mode log-edit pcvs-util add-log cw-zoom cw-ibuffer projects cw-session savehist desktop cw-buffer iswitchb ibuffer winner ring buffer-move windmove cw-screen-size edmacro kmacro cw-visual paren advice help-fns advice-preload hl-line cw-theme color-theme easymenu wid-edit color-theme-tango-2-cw dim-ports cw-lib cl cl-19 w3m-load emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode bbdb-autoloads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting gtk x-toolkit x multi-tty emacs) --=20 S=C3=A9bastien Gross From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 01 19:58:59 2017 Received: (at control) by debbugs.gnu.org; 1 Apr 2017 23:58:59 +0000 Received: from localhost ([127.0.0.1]:56110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuSv5-0002bt-Kf for submit@debbugs.gnu.org; Sat, 01 Apr 2017 19:58:59 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:34299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuSv3-0002bc-Rk for control@debbugs.gnu.org; Sat, 01 Apr 2017 19:58:58 -0400 Received: by mail-it0-f48.google.com with SMTP id y18so9339433itc.1 for ; Sat, 01 Apr 2017 16:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=5vtWXmYH8pCnaI91FcC81TZdrD6Fk9wHDwTur7V9tiE=; b=jodCCFO+wwIZvGFQrIAS9UQR5/5Bjr2hTOWTFq1PL40jXNuBr7AOcEHhDo+jw5+xhJ G/tq2lVqZejbnD007NKORbvVZJLjuoIlTQ0O9y/tOCSCBM7Ay7mxRXnhTVAvXB227Bp4 evOa+L6UtfjhZsu1TIYfexwNeEu9DJZgKfg1GNMc+1uJ0u7xARrwBObB+zArQ7YjkWg5 Z1UlnIL1Vnl9LUgSD6+ggBuU0wuQNTJbpCt1STcKBijVGh1bTB5fqLiHcvaN0Don2dhT 0LlvUWAinYk9uSh3R/ox8eZQYesr+LIzPK8FtH79zTPktJjrrkpMcA5Y7VfzHk7yTP2F YRjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=5vtWXmYH8pCnaI91FcC81TZdrD6Fk9wHDwTur7V9tiE=; b=tmontLYF9u6FovfHVmH/aoSgb6czv1EVLTdd/nGJ11IApLOHWvAXicAHEyGD8Qxg++ ISLXsoSJFj/PZ8uaVGRPHEkMhK/Jp3DrIsj74i5VIGz4nEDmdmAkXKbR6/CCAjyTLthg EDPshGjWOWMPUdAFfW8B3mQOgbyMdLXZKd9a+xbrMyk5niB8YH9PK8+BYOWx9UItkY6R Ex/bXONvFOrBmPn8qBDAvVsG15fS8sKqrcdRH1775qTKWgSxAfWnkraqt8DfGT5vXCQG UsOt9UNrzzGdMRUihAGAKXrpJEM/7waQb3H6SmHjfcLNSYz1ICB2dD3PEamzEx7i0Hsk 4ILQ== X-Gm-Message-State: AFeK/H0WPcpyG/G6WOxUmG1Y6BDkCMR6o6TQTc6PJRQ5dfXFwYtmpsUUUqQnSdZAF1CvRg== X-Received: by 10.36.82.204 with SMTP id d195mr4301351itb.29.1491091132277; Sat, 01 Apr 2017 16:58:52 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id f196sm5788665itc.2.2017.04.01.16.58.51 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 01 Apr 2017 16:58:51 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #6741 Date: Sat, 01 Apr 2017 20:00:16 -0400 Message-ID: <87zifzznjj.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) found 6741 25.2 tags 6741 confirmed severity 6741 minor quit From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 30 20:17:48 2018 Received: (at 6741) by debbugs.gnu.org; 31 Jan 2018 01:17:48 +0000 Received: from localhost ([127.0.0.1]:50023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egh24-00053M-1H for submit@debbugs.gnu.org; Tue, 30 Jan 2018 20:17:48 -0500 Received: from mail-it0-f51.google.com ([209.85.214.51]:51918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egh21-000533-PT; Tue, 30 Jan 2018 20:17:46 -0500 Received: by mail-it0-f51.google.com with SMTP id p139so3029614itb.1; Tue, 30 Jan 2018 17:17:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=D/DAA9ofkS7nhyq8FA6Q/sQmxwgLhQOBVGJFleZyE8s=; b=byHvXVMyzQZJsvOifq4l5jsCNL4SQ4125c0BMRehyO+D7Aah+suiSNtl03qz6ik6+M NjmeJJDAzRCMGWCbtqtdUNl3X/JxdRzUshXiKzX9YeTcTjhYl8iOH9A3kIqaoMvw0AIY MPp0pPhulg37J+EthYvc2hVFNthwpljDI0/D8fK9cPSm44FBmEnv6xveCHWIOdV3nEV2 KgDJeg+BTq2OQm2vV4bwr7IbAc4O7ye7AbiXnSvGXzBRtqtJq6zQmdj++Ccb3rtOl9of ZkvsUJ7QZmZ2PrixMKTmrU8bjltxTPyXaJ4j2otUSByONrkWyHlV5vEE2rEcnVzJc1pP UFoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=D/DAA9ofkS7nhyq8FA6Q/sQmxwgLhQOBVGJFleZyE8s=; b=LEyK4PYGAv6q8oYHvMHyeeFWvaIuiBVutdIPFLnIkC3JQYsDDdHT/+gPu7EIQs5Nwz CJep/6Q2ZOnj2QxRHcUAklMvjLpza1TI8yXVLm8zX49apd0KDNcUeB5xLXY3bV5d8RR2 xMr84vgmJPGVgBm4KGDs8RSO7XSLIk+pAgP+2dZwRhNgLUjqBxhR3+fcScA5H+9hSYIW XP5NtRIwffQvvmyVyoGnBm7GvOys7s9EOvcpVpCn+S4O0+AIPmJJSgoWaWPibtDIVatA cSIxoeGRQzIbltDP/oH/xAI+r+Mmw5gYKkgjOP3XDn1ANN8fvaIzbBlqH+PO3Zw52k/g W16w== X-Gm-Message-State: AKwxytfhRU+VtnRsQmp6USR5XMiWYYeZzNYP56LAFJmGdS8124Rk2puH IpnSxP7bPdXecXprgTDH+rZqww== X-Google-Smtp-Source: AH8x225TOr/bgcS5CXlhEBYkDBGIODOoG7EtZEbHhZTcQpM3CzqUJx5sUbDdIBcR0ntpBWmg09mR0w== X-Received: by 10.36.161.11 with SMTP id y11mr32882898ite.11.1517361460155; Tue, 30 Jan 2018 17:17:40 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id o73sm2202577ito.4.2018.01.30.17.17.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Jan 2018 17:17:39 -0800 (PST) From: Noam Postavsky To: =?utf-8?Q?S=C3=A9bastien?= Gross Subject: Re: bug#6741: 24.0.50; ansi-term: spurious newlines (soft linebreaks becomes had linebreak) References: <8739v44yxo.fsf@ubik.of1par.int.rtblw.com> Date: Tue, 30 Jan 2018 20:17:38 -0500 In-Reply-To: <8739v44yxo.fsf@ubik.of1par.int.rtblw.com> (=?utf-8?Q?=22S?= =?utf-8?Q?=C3=A9bastien?= Gross"'s message of "Tue, 27 Jul 2010 19:28:03 +0200") Message-ID: <87d11qj07h.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 6741 Cc: rfrancoise@debian.org, 6741@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) close 6741 quit S=C3=A9bastien Gross writes: > I am currently using ansi-term as a terminal emulator. the problem is > when lines are longer than the buffer column number a hard newline > ('\n') is inserted. > Thus when some text is copied (with using both the mouse or keyboard > sequences) some spurious new line appear into the pasted text. > > For example in ansi-term type: > > echo "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do ei= usmod tempor in cididunt ut labore et dolore magna aliqua. Ut enim ad minim= veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea co= mmodo consequat." > > (this line is intentionally left long) > > > If you try to copy/past it (using the mouse selection and middle click) > you might get something like (depending on term-window-width): > > > echo "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiu > smod tempor in cididunt ut labore et dolore magna aliqua. Ut enim ad mini= m veniam, quis n > ostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequ= at." > > As you can see hard newline appear. > > > Is there a way to fix this ? Well, it's a bit late, but the answer is yes: (setq term-suppress-hard-newline t) From unknown Sat Jun 14 19:11:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 28 Feb 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator