From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: How to get 'replace-string' to access the key-ring? Date: Wed, 09 Jan 2019 13:46:28 +0100 Message-ID: References: <87k1jeghm7.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1547038390 14000 195.159.176.226 (9 Jan 2019 12:53:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2019 12:53:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Sharon Kimble Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 09 13:53:06 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghDM1-0003V2-M8 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2019 13:53:05 +0100 Original-Received: from localhost ([127.0.0.1]:57604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghDO8-00031Q-FH for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2019 07:55:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghDKG-0000Y2-Vl for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 07:51:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghDFl-000650-AG for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 07:46:38 -0500 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:39052) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghDFl-00064G-3E for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 07:46:37 -0500 Original-Received: by mail-ed1-x52d.google.com with SMTP id b14so7197143edt.6 for ; Wed, 09 Jan 2019 04:46:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=3yMCcAimfR41Kmlmbkr8HlhKUQe89f/COeAgghiXsHM=; b=UMmG3FQbJQk8+ODok2+KGSusDAArhUH/+rCPLoj6JE7uGV1DSEJ7OtgLrMRbOgGiwe mGiW/JDsF/49pKB42c0G1RrwkpsnOxzQLB+nTqWJikhLOUA9lSODEOR2CAc16Y0Fpngb ykhDIPLoyol4wx5Tgf99XJGqydPcpU6CVBv3UVJKfQ+TQEuXhwj8aUdf1MyHecN8h70r tsWn4FUQ113MBOX7P31+jvqLLD9shhdr5sp+DizzODftjYJA9j/KJXbLpsrzFI3S6jQi VdzqAlWEtGl+/KD6fElrfmeUmyEmF3otCHXxkwfULVvSLDfB+0EiY99WWC1+QS7+XZNt 86cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=3yMCcAimfR41Kmlmbkr8HlhKUQe89f/COeAgghiXsHM=; b=Ktvp6rrUNCvYhM/ZvzmBNprtv3c/DK9RhiipcdD3I4eY31p5pkG3PL6WF9yC6SCfti bGxLGVdT/PFGMMpAywOszd6w2bbEPcEPnuVv0xM1H/RYTPhC7elmN9178WaWbn5QCXBS FYaot8wvbarMz2ks3QyuQU7oyRXaoaL0ys0JJGGSHGGsRImS4g12a6bpvAr1fd6qfr3o ojjxcnN5emIuzxYEudszqtD+Ze2UIGmgWwworbl5V1NS5bBdsvO7rEEb30HxcQEA7xLK 7BEkBKiP6vQBwkHCfL6eJFmvSjo4OVmLz2svvoa6cvWdaS8RA2TRZVmzrCX4mD/MKPKq CLfw== X-Gm-Message-State: AJcUukeLpTKHmuBdX77u1qHmFDxUc/gXXTijV2qeM8qXoZUOf2COyXOw S5bgTx0vqKXmCkx2M4rvgkQ4KaUi X-Google-Smtp-Source: ALg8bN7BazRLXkkVLzNxb49NOmUEtxHBHtfR0i0KBM9r9Vw4YIOKwmhokiP8jruk0U1jPk4gDfFyfA== X-Received: by 2002:a17:906:7f89:: with SMTP id f9-v6mr5175220ejr.51.1547037993933; Wed, 09 Jan 2019 04:46:33 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id a15-v6sm721679ejj.5.2019.01.09.04.46.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jan 2019 04:46:33 -0800 (PST) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87k1jeghm7.fsf@skimble.plus.com> (Sharon Kimble's message of "Wed, 09 Jan 2019 12:06:40 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::52d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119100 Archived-At: --=-=-= Content-Type: text/plain Sharon Kimble writes: > How can I make 'replace-string' to access the kill-ring so that I have a choice of whatever is in the kill-ring please? > > Currently I have this in my config - > > #+BEGIN_SRC emacs-lisp > > (global-set-key (kbd "M-s-x") 'replace-string) > > #+END_SRC > > - but I can't find any way of accessing the kill-ring so that I can choose what text, or whatever, to search and replace for. > > Its probably something quite simple but its got me stumped at the moment, and I can't find a solution on the web using google. The minibuffer prompt is very much like a normal buffer: You can use 'C-y' to yank the last kill, and then use 'M-y' to cycle through the kill ring. Robert --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEq83Vx/IYGRGbZc3zPXrkx5EPYUAFAlw17SQACgkQPXrkx5EP YUCChw/8Cp+OdK72VVMd9Qvjv2jw9Ow3uwtg23ff2n/VAh1JsBdWxiYplCUsZfyN Rk0zZYrwiROvsXiGYO25/ZM8jkUz8foxY3qBpCehvFUfRLrZvp7rbH92c6On06D0 x5wtf3c5WrWxFhrb2pCg+fd3YsiXSFzngD/PlL04rmea5WsWL3udPnt0osNk4YR0 BeojwGJCyRsDnKmMM0IfrWHFZILcvLuXAC1MSIbXTd/K5H7RCpnUWPTc3zuWZ0Py JsDMNWdbz+H8lgPTTASStzinvV+eZBcfTLD+7KmVprrJKWRqnilpJ6kce74u/dbR aaVdbqzlta88afa2IqPwdvKSoqni10pF/a9dosaSKUE+diFiSeKKjvJTRuRBHg6Q tf0q/8jLKLU1AKEMIVhv1ntnV+nZONqw9Ilffl8l6tnjhB8M8a25s5kKoiwFc3Iy NK/qFj5vlB3zprEYX0Q6a6qsBeIqS6r71SProLk2r52GM7Q4SRxxt4GeKPLJvL6R i3zyoPWhJpLgO6JS2tHcmYoqEpGqKxIXmxGYIpkpEWFr8RBZKn6KmHBufgX5zWT3 rDIxF7cIqiTI3MKIqBqG4CMoFxlWkSoJ4H6yjugtWsRMAIc1toBk3zaCOh7DrqyR UUHAiUubJeDIBUvyvcNQMlcL7qXg0lxNDD7vd+EWdsfdZp/Ku3A= =wnTE -----END PGP SIGNATURE----- --=-=-=--