searchemacsreplaceicicles

Search and Replace in Emacs with Icicles


I've been using Emacs for a while now and am trying out Icicles. When I run the sequence of commands

C-c`\([a-z]*\)

S-TAB

C-| x\1y

it transforms the scratch buffer from

;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.

to

;; Xy xy xy xy xy xy xy'xy xy xy xy, xy xy Xy xy.
;; Xy xy xy xy xy xy xy, xy xy xy xy XY-xy XY-xy,
;; xy xy xy xy xy xy xy'xy xy xy.

My understanding is that it should instead attach an 'x' to the start of each word and a 'y' to the end of each word. What am I doing wrong here? I have tried this with emacs -Q and gotten the same results. Also, icicle-search-replace-literally-flag is unchanged from its default value of nil. What am I doing wrong? Thanks!

Edit: Sorry, I omitted the group in the regexp in the original post; however, I did use it in the test and still get the same result.


Solution

  • Be sure that your version of file icicles-cmd2.el is dated after 2013-12-10. I fixed a bug wrt \N replacements on that date.

    Other suggestions: