From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Question Kill-ring modify last entry. Date: Mon, 29 Jul 2019 20:10:43 +0200 Message-ID: <20190729181043.3gycaavyeyokgevj@Ergus> References: <20190728214515.daxm2bcbto4ecco3@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="198656"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 29 20:11:11 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hsA75-000pbG-9M for ged-emacs-devel@m.gmane.org; Mon, 29 Jul 2019 20:11:11 +0200 Original-Received: from localhost ([::1]:55486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsA73-0007kG-Kw for ged-emacs-devel@m.gmane.org; Mon, 29 Jul 2019 14:11:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49835) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsA6l-0007kA-Gr for emacs-devel@gnu.org; Mon, 29 Jul 2019 14:10:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsA6k-0008Ga-K1 for emacs-devel@gnu.org; Mon, 29 Jul 2019 14:10:51 -0400 Original-Received: from sonic314-20.consmr.mail.ir2.yahoo.com ([77.238.177.146]:45242) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsA6k-0008Fy-C8 for emacs-devel@gnu.org; Mon, 29 Jul 2019 14:10:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1564423848; bh=lfOMUqX0lrLSRCpTqKVmbc06IdYhdmLWIj0P2gUOTqE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=VWzVNoeUTZ75AQJY2pweyWpzJdv9xTGTz6Lr/Xn6K+BbhcZnIM/pHfV27iJN16tFlJ3JcpZtVPnrLP/2ToUknzxOnBZRGW6C9fPCiPaelO+T3UdL3ETHbt1G+eJgPLvMerjxRNfbO9AE0bHSPcSqk8GYqQLUVrK0ctFSHsH5vu31itK70qvBobViZpknSyjl40pFuL4fivAfchquap3x1GoScvPdw29gCLr2yPo4xW5T4wB1h1LX3FPkQko2Zqb4qVfjY6b2QDTwcu6n+62tKy5LJ9bvYE9yBBbVDFNzdBC+NFtak9SQSibRQMLG6rJlk5+kuf6Nco8H+nEIonczKA== X-YMail-OSG: j.I6n_AVM1mDWAf585eTCaRZoRqahDQTVEONuikCjKDJv1t5aH4xXWFTdM90y.h vJQgnyFGAdxoPBZeDXlH3q2NkfdfrIh7IhrZ0_wj77zN.guemGr5GEQuPMgFPL9AvDy7dpYqPrRK e1CpOoMgcVN4w.bpRXWyHgyKkTlRszQRVAUiTtqLw7eLrA8YNsd2c9HSRu8RJzWYvDu4TvNDoERO QPXeysWwe2PBgCIt40w9AC9KNaLujZz1vfUjJQxpRMYZXeyO8q7iDMwORodYdKDonuWAk0uW1qyM CAnt._Ww5owRpwF2iv12_R6kIGiLnwIFp89JlwAj.c11D3a5wTAvGmdqnebHWiaG_YNyOsAJF3OC auLZ65dWCXfobBOKVMuGhNB9meG458kjRtTAT6Lwspl3ocJVyy8aJuKofuiuzCheZIis.WQgIuhT 8dKbUBNYfCb6d8HNK3rshrJrrePEA7_dTFOiAtm.ldGBhiPkWhwNAUYysrjeVtKVwJq4r5u6lEnU XuTa5f.LPqL42K.iX07LfQIxnSM7vXstuNqUdLSI_9mXzv1ZxP2.ywAV5ltXhxw01ytzzCqLO6NV R7CD8dpVtawNCzwMx2cuxWMQoMpampwy0fisS0tnG8rOv.sT1e9vVzXJK7qelO.pXvtIbrwIGwu6 v6GhJC.HgKnI6O3EUMxW0Ik.6prjokwy6Szq0cG9733wXbADSlTu7cOTWdoRPP2.nIlK8imNdjbe Z8zz8L9vutQ6ZKc7CsM2LiCZuAFHlm_IAaRiSIJ4rPe4xnNylekjKX7psLAR5vaDV7QiERIQN_x2 sdQogcV0vscym_cHXESUSwHk.bNeOM5geweHeaDO_g Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ir2.yahoo.com with HTTP; Mon, 29 Jul 2019 18:10:48 +0000 Original-Received: by smtp413.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 2df4e87ac63275ccaa0a09954306b31f; Mon, 29 Jul 2019 18:10:46 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 77.238.177.146 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239008 Archived-At: Hi: I have already seen kill-new. I was just preventing myself to reinvent the wheel in case there were something else already there. I was looking for something like `append-next-kill` that I could use for `copy-region-as-kill` (or similar), but for replace instead of appending and acting on regions instead of passing the string already manipulated. Ideally I thought that the higher level functions (kill-region, copy-region-as-kill) somehow unified the lower level functions (kill-append, kill-new). Maybe throw parameters. But ok, thanks. I know what to do now :) On Mon, Jul 29, 2019 at 04:43:24PM +0200, Robert Pluim wrote: >>>>>> On Sun, 28 Jul 2019 23:45:15 +0200, Ergus said: > > Ergus> Hi: > Ergus> I have been reading the elisp documentation and it is unclear for me if > Ergus> there is a "canonical" (lets say formal/supported/provided/save) > Ergus> function to replace the last entry in the kill-ring with a new one (like > Ergus> the append option). > >kill-new has a 'replace' argument, so: > >(kill-new "foo" t) > >(unless I??ve misunderstood what you??re asking for) > >Robert >