all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to get 'replace-string' to access the key-ring?
@ 2019-01-09 12:06 Sharon Kimble
  2019-01-09 12:46 ` Robert Pluim
  0 siblings, 1 reply; 2+ messages in thread
From: Sharon Kimble @ 2019-01-09 12:06 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]


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.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.5, fluxbox 1.3.7, emacs 26.1.91, org 9.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to get 'replace-string' to access the key-ring?
  2019-01-09 12:06 How to get 'replace-string' to access the key-ring? Sharon Kimble
@ 2019-01-09 12:46 ` Robert Pluim
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Pluim @ 2019-01-09 12:46 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

Sharon Kimble <boudiccas@skimble.plus.com> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-09 12:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-09 12:06 How to get 'replace-string' to access the key-ring? Sharon Kimble
2019-01-09 12:46 ` Robert Pluim

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.