From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Newsgroups: gmane.emacs.help Subject: Re: How to set background-color without damaging cut&paste ? Date: Wed, 4 Sep 2024 15:51:15 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3135"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 04 15:55:17 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1slqTd-0000bY-2t for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Sep 2024 15:55:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slqT3-0007b8-2u; Wed, 04 Sep 2024 09:54:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slqT1-0007To-3X for help-gnu-emacs@gnu.org; Wed, 04 Sep 2024 09:54:39 -0400 Original-Received: from uucp.dinoex.org ([2a0b:f840::12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slqSz-0003nd-4f for help-gnu-emacs@gnu.org; Wed, 04 Sep 2024 09:54:38 -0400 Original-Received: from uucp.dinoex.org (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]) by uucp.dinoex.org (8.18.1/8.18.1) with ESMTPS id 484DsAx5018450 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 4 Sep 2024 15:54:11 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) ARC-Seal: i=1; a=rsa-sha256; d=uucp.dinoex.org; s=M20221114; t=1725458053; cv=none; b=sDa87y0EuNG+liejXiXgX++6IcCoUnt9AaUTuN9q6lfHu6KsziiFrkX4uhgBsx8bW9IjIxUl03DEAzOGSy8ISIJtP2bzbJ0mamArVGbNu7cFjr1X2p7K3JcblFQizf7O2oltlpQG/TqNBT6YB+GYEVodAlCxSHrqI3vtoIROXzM= ARC-Message-Signature: i=1; a=rsa-sha256; d=uucp.dinoex.org; s=M20221114; t=1725458053; c=relaxed/simple; bh=0Kl7PTvB1eHAH4glWEeldAdVH6vJi38+sAwLXHdaeV4=; h=Received:Received:Received:Received:X-Authentication-Warning:Date: From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To:X-Milter: X-Greylist; b=sEhjcIY1+e9rNhTKG5xTUFP4nHt39b5N/5SDvOfTG4gM47wMY7C8eCjoHNvHXmvsyvvwCloMBboFceZC3fwYhkpkDhSvZWcmkxfHqLa04gFObPCNqZfDF4xVerRHYtYlqUl4uJIYOCR6oawGog2Y5xgffzF/aYao6JzsKZjdQVw= ARC-Authentication-Results: i=1; uucp.dinoex.org Original-Received: (from uucp@localhost) by uucp.dinoex.org (8.18.1/8.18.1/Submit) with UUCP id 484DsAHr018449; Wed, 4 Sep 2024 15:54:10 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) Original-Received: from disp.intra.daemon.contact (disp-e.intra.daemon.contact [IPv6:fd00:0:0:0:0:0:0:112]) by admn.intra.daemon.contact (8.18.1/8.18.1) with ESMTPS id 484DpZR1092462 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Wed, 4 Sep 2024 15:51:35 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) Original-Received: from disp.intra.daemon.contact (localhost [127.0.0.1]) by disp.intra.daemon.contact (8.18.1/8.18.1) with ESMTPS id 484DpFs2039817 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 4 Sep 2024 15:51:15 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) Original-Received: (from pmc@localhost) by disp.intra.daemon.contact (8.18.1/8.18.1/Submit) id 484DpF8J039816; Wed, 4 Sep 2024 15:51:15 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) X-Authentication-Warning: disp.intra.daemon.contact: pmc set sender to pmc@citylink.dinoex.sub.org using -f Content-Disposition: inline In-Reply-To: X-Milter: Spamilter (Reciever: uucp.dinoex.org; Sender-ip: 0:0:2a0b:f840::; Sender-helo: uucp.dinoex.org; ) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]); Wed, 04 Sep 2024 15:54:13 +0200 (CEST) Received-SPF: pass client-ip=2a0b:f840::12; envelope-from=pmc@citylink.dinoex.sub.org; helo=uucp.dinoex.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147902 Archived-At: On Wed, Sep 04, 2024 at 07:41:02PM +0700, Yuri Khan wrote: ! On Wed, 4 Sept 2024 at 06:37, Peter wrote: !=20 ! > However, after setting the background-color, the result is this: ! > ! > 00000000 46 69 72 73 74 20 4c 69 6e 65 20 20 20 20 20 20 |First Line= | ! > 00000010 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | = | ! > 00000020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | = | ! > 00000030 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | = | ! > 00000040 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | = | !=20 ! You=E2=80=99re getting the default mouse selection handling by your termi= nal ! emulator, which is not guaranteed to be correct for full-screen ! applications. This sounds strange - why should the default mouse selection handling be dependent on the individual text color? The issue does not only happen with background-color. It does also happen when using 'conf-mode' (and probably others with syntax highlighting). In that case it depends on the actual color of the text: some lines are filled with trailing spaces, some are not. ! Example: if you enable =E2=80=98toggle-truncate-lines=E2=80=99 and have s= everal ! adjacent lines that are too wide for the terminal window, the terminal ! emulator will highlight and copy only the displayed parts of the ! lines. This is known and accepted; overly long lines need manual treatment with copy/paste. But dangling spaces on correctly formatted lines, i.e. after a terminating backslash denoting a line continuation, result in really bad malfunctions and are not easily detected. ! Consider enabling xterm-mouse-mode. I tried this already. Sadly, either I don't understand it or it does not work at all. The usecase here is that I have dozens of nodes in different parts of the world. All of them can be opened in xterms. So opening them side by side, one can easily compare config files and copy/paste snippets from one to another.