[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Does replace-match needs a literal TO-STRING?
From: |
Thorsten Jolitz |
Subject: |
Does replace-match needs a literal TO-STRING? |
Date: |
Tue, 09 Sep 2014 23:20:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Hi List,
I try to use
#+BEGIN_SRC emacs-lisp
(when (search-forward FROM-STRING nil t)
(replace-match TO-STRING nil t))
#+END_SRC
in a temp-buffer, and it works when TO-STRING is literal like "foo", but
not when its a function that builds and then returns the string "foo".
Is that a known restriction or am I doing something wrong?
--
cheers,
Thorsten
- Does replace-match needs a literal TO-STRING?,
Thorsten Jolitz <=