From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: orzodk Newsgroups: gmane.emacs.help Subject: Re: multiple kill and paste from X clipboard Date: Fri, 12 Jan 2024 13:12:01 -0700 Message-ID: References: <874jfi1s5l.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26349"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Manuel Giraud To: Manuel Giraud via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 12 21:12:44 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 1rONtS-0006eZ-T0 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Jan 2024 21:12:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rONsx-0004nG-MF; Fri, 12 Jan 2024 15:12:11 -0500 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 1rONsv-0004ms-KZ for help-gnu-emacs@gnu.org; Fri, 12 Jan 2024 15:12:09 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rONst-0004Mp-LM for help-gnu-emacs@gnu.org; Fri, 12 Jan 2024 15:12:09 -0500 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id 6F3A83200B66; Fri, 12 Jan 2024 15:12:04 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Fri, 12 Jan 2024 15:12:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1705090323; x=1705176723; bh=/qL5id49vU txBuMdd1ctk555UYWT9h9CoSscabHLA0U=; b=rOz+UPVqAaf3Y2TpTANxR1coLc 5L4NNhIGkBbjfXkFDU3YQg5HrFrEoX3/4Fi2rnnSpII7ZFZVazYi1mBGM2syTfNd Su+JbnhZqArtP5hVjq46iURliydAfFUlQAF8jhiBz1NAtnIcYCZSfGRUcISnCiBN JigFDtMD1xdQuXFk98YExAvBjQjR0Kyfpbml2O01sBqPa3rg71fynDxykhxUx594 LP1z2rdahw1Rwj8B35ucCbAq/Nu1HNNlysqpj6JU1ypp6pLwcCWa9KbL1fqWfuZg 1Ox0F7wzvu+BlYsZ/a5NgdBhzarj1SZpFS/yNco8l4ShUGmOYGC2b0AckYmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1705090323; x=1705176723; bh=/qL5id49vUtxBuMdd1ctk555UYWT 9h9CoSscabHLA0U=; b=KjNmNOdcjU9O74xWUIrVnlJdx6clpdjBpDkpkEGgTzYV aMATxnsG6pYFrWaMZQoRLs/mBo7ylvE2KrQffw5FybAbqhLUf5GZLb4OHQbTSFxA gPkGzAMwaMeCpGkaFWiy+jj7v050PIjINOmj35csUajJvCqRoWH/ALNJ7eBuviRy Mrq2aouFgTvpunaYskzxXrObaZubNQWwxx9LR9VVj2jtB2Um+4/v/HLHEux1VNg3 snsF86WvQAFfWyufJnKYKFfKE8xuRK/DXjPccaASr9CrbwW5kPXAKHjP7dw3sr6n 7hc+w1jhuO+65co9D52DR6ZdVibIN41WPp5XsD9YOw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeihedgudefvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhffkfgfgggtsehttdertddtredtnecuhfhrohhmpehorhii ohgukhcuoehorhiiohgukhesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrh hnpeektefgudeuvdfgheehleevhfeiudffhfevtefgffdvfeelveejvedukeffhfegkeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehorhiioh gukhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: ic149461b:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 12 Jan 2024 15:12:03 -0500 (EST) In-Reply-To: <874jfi1s5l.fsf@ledu-giraud.fr> (Manuel Giraud via Users list for the's message of "Fri, 12 Jan 2024 16:35:18 +0100") Received-SPF: pass client-ip=64.147.123.21; envelope-from=orzodk@fastmail.com; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:145721 Archived-At: Manuel Giraud via Users list for the GNU Emacs text editor writes: > Hi, > > I'd like to be able to paste a serie of strings from Emacs to an > external X program (e.g. a form with multiple entry in a web browser). > > I could put all the strings in the Emacs' kill-ring but then a paste in > the other program will just retrieve the last killed string. Or maybe, > Emacs could be informed that the last kill was paste externally and then > proceed to kill the next item? > > How could I do that? This is a limitation of X not Emacs. Each time you kill a value Emacs will put it into X's clipboard overwriting the previous value. A clipboard manager will help with this by keeping the history around. I personally use clipmenu but there are several tools to choose from. I also bind C-M-v in the window manager to the command to display the manager's history. My workflow for what you're asking would be: - kill-ring-save (M-w) however many times in Emacs to populate the clipboard manager's history. - Switch to the browser - Pull up the clipboard history (C-M-v) and select the value I want for each form entry.