Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16136

Re: [PATCH] Add active mark, face support; activate mark on paste

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From gentoo_eshoes@tutanota.com
Newsgroups gnu.bash.bug
Subject Re: [PATCH] Add active mark, face support; activate mark on paste
Date Wed, 15 Apr 2020 16:37:14 +0200 (CEST)
Lines 28
Approved bug-bash@gnu.org
Message-ID <mailman.323.1586961441.3066.bug-bash@gnu.org> (permalink)
References <M4dFweU--3-2@tutanota.com> <875c423e-0420-78d2-af4b-dfb168432e2d@case.edu> <M4dz8wC--3-2@tutanota.com> <902c38ef-7534-8f6d-51b7-daa0843b8440@case.edu> <M4glUEn--3-2@tutanota.com> <M4h5hzL--Z-2@tutanota.com> <M4uRTLa--3-2@tutanota.com> <b8ea13c8-c7bd-b644-3c3e-34cb59fd9c72@case.edu> <M4yGRLk--3-2@tutanota.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1586961442 19579 209.51.188.17 (15 Apr 2020 14:37:22 GMT)
X-Complaints-To action@cs.stanford.edu
Cc chet.ramey@case.edu, bug-bash@gnu.org
To Chet Ramey <chet.ramey@case.edu>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1586961434; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=V48zw/+KQ6TFOGV+EyGvgeQvJTz+9J58KfVFUl3GrCU=; b=sqnOaW5VL1PktSBPLB+YQcqhpcANN+gbwVi9hBR++EWbb/TyaO5T4zutL2yU/E0R jIsD7l/f4jitFRNNR0YwqnqGRPlV5mDevbubBMiowG74DR0uniG3bDIGP0PX5aoxtBx dl/0Nq+k8bO2HGdOIHjdg1LKCA8JZduSPYUFezujIKJExPTsGc9yOAb+cgPdMYLzSJK nSSLLzB5Cy/L4Bh2RTJ3ppG7uGsnuvqZcoZcoZ4waBvkvbnhBcvLyDLbmzUEptc0Z4w 43Z9vu97uMT/wrbRK5ayvZZOgYe9GbVUVigxlE3Gz2HsmJ+kK4tjt5w/qBCjmaWWFiz fbfKlxqwgw==
In-Reply-To <b8ea13c8-c7bd-b644-3c3e-34cb59fd9c72@case.edu>
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 81.3.6.162
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <M4yGRLk--3-2@tutanota.com>
X-Mailman-Original-References <M4dFweU--3-2@tutanota.com> <875c423e-0420-78d2-af4b-dfb168432e2d@case.edu> <M4dz8wC--3-2@tutanota.com> <902c38ef-7534-8f6d-51b7-daa0843b8440@case.edu> <M4glUEn--3-2@tutanota.com> <M4h5hzL--Z-2@tutanota.com> <M4uRTLa--3-2@tutanota.com> <b8ea13c8-c7bd-b644-3c3e-34cb59fd9c72@case.edu>
Xref csiph.com gnu.bash.bug:16136

Show key headers only | View raw


Apr 14, 2020, 22:53 by chet.ramey@case.edu:

> On 4/14/20 4:46 PM, gentoo_eshoes@tutanota.com wrote:
>
>> Another 'face' issue(the 3rd?) I just noticed now:
>> if I paste something that has "\n" inside it, like these 3 lines(only the first 2 lines have \n, but doesn't matter):
>> -bash: mk_add_options: command not found
>> -bash: mk_add_options: command not found
>> -bash: mk_add_options: command not found
>>
>> then they are all pasted on the same line, so I have to manually press Enter to execute the line.
>>
>
> This is the expected behavior with bracketed-paste enabled. The pasted text
> is `bracketed' by a start and end sequence -- that's how the face code
> knows what's been pasted and to highlight it -- and any embedded editing
> characters, like newline, are simply added to the editing buffer. The
> face code enables bracketed paste by default, since it doesn't make much
> sense to test it without bracketed paste enabled.
>
Good to know. This is actually pretty good: it can act like a security feature for when pasting copied text that could be dangerous, especially since I've disabled xfce4-terminal's Preferences->General->[ ] Show unsafe paste dialog

This is actually a (nice)feature. Thank you!

Now I have the choice of pressing C-c if I ever accidentally MMB paste multi-megabyte-line text onto the command line, rather than having each line executed (which I would previously prevent via unsafe paste dialog mentioned above)

Quite nice.

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: [PATCH] Add active mark, face support; activate mark on paste gentoo_eshoes@tutanota.com - 2020-04-15 16:37 +0200

csiph-web