udalrich / jdibug

Automatically exported from code.google.com/p/jdibug
17 stars 4 forks source link

The function replace-in-string does not exists in emacs, only in xemacs #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
N/A

What is the expected output? What do you see instead?
N/A

What version of the product are you using? On what operating system?
OSX 10.4.11
GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0)

Please provide any additional information below.
The function replace-in-string does not exists in emacs (at least in my version 
of emacs), it 
seems to be xemacs only. Posible fix:

(if (featurep 'xemacs)
    (replace-in-string str regexp rep)
  (replace-regexp-in-string regexp rep str))

Original issue reported on code.google.com by jjmolin...@gmail.com on 25 Jul 2008 at 6:48

GoogleCodeExporter commented 9 years ago
replace-in-string is actually a function provided by jdee. I have changed the 
occurences of replace-in-string with the equivalent of replace-regexp-in-string.

Original comment by ykph...@gmail.com on 23 Sep 2008 at 7:48

GoogleCodeExporter commented 9 years ago

Original comment by udalrich.schermer on 12 Apr 2011 at 3:21