misc/emacs: Replace replace-{string|regexp} for XEmacs compatible code
misc/emacs: Replace replace-{string|regexp} for XEmacs compatible code

Use code to be used in lisp programs as suggested in the doc strings for
replace-{string|regexp}. Bonus: This code works for XEmacs.

R=golang-dev, sameer, jmeurin
CC=golang-dev
http://codereview.appspot.com/6296073

Committer: Sameer Ajmani <da4a4efb907a17fabb3e092841511e7f24e226cf@golang.org>

sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,Triskite/willstone-goclone,rflanagan/reginaldflanagan-project1,sanjosh/sanjos100-tipc,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,rflanagan/reginaldflanagan-project1,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,bryanxu/go-zh,d0f/go-zh,Triskite/willstone-goclone,bryanxu/go-zh,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,webfd/go-zh,webfd/go-zh,sanjosh/sanjos100-tipc,bryanxu/go-zh,d0f/go-zh,rflanagan/reginaldflanagan-project1,rdp/rogerpack2005-golang,d0f/go-zh,rdp/rogerpack2005-golang,webfd/go-zh,Triskite/willstone-goclone,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,scirelli/scirelli-go,scirelli/scirelli-go,scirelli/scirelli-go,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,Triskite/willstone-goclone,webfd/go-zh,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,rdp/rogerpack2005-golang,Triskite/willstone-goclone,Triskite/willstone-goclone,rdp/rogerpack2005-golang,d0f/go-zh,rdp/rogerpack2005-golang,bryanxu/go-zh,rflanagan/reginaldflanagan-project1,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,Triskite/willstone-goclone,d0f/go-zh,mhennings/marcohennings-go,rdp/rogerpack2005-golang,d0f/go-zh,webfd/go-zh,rdp/rogerpack2005-golang,webfd/go-zh,bryanxu/go-zh,scirelli/scirelli-go,mhennings/marcohennings-go,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,bryanxu/go-zh,scirelli/scirelli-go,mhennings/marcohennings-go,mhennings/marcohennings-go,scirelli/scirelli-go,bryanxu/go-zh,sanjosh/sanjos100-tipc,bryanxu/go-zh,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,mhennings/marcohennings-go,d0f/go-zh,webfd/go-zh,mhennings/marcohennings-go,rflanagan/reginaldflanagan-project1,d0f/go-zh