bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacement


From: Kevin Rodgers
Subject: Re: Replacement
Date: Thu, 27 Oct 2005 12:48:18 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

hufflen jean-michel wrote:
   Dear GNU Emacs developers,

   I think I found a bug in the replacement operation.  Let us consider a
source text for LateX and assume that we want to replace the command for an
accented letter by the accented letter itself. For example, replacing \`{a} by
à using the accurate coding.  If we look into the documentation and would like 
to perform this operation by means of a Lisp code, that should be:

(beginning-of-buffer)
(while (re-search-forward "\\\B`{a}" nil t)
  (replace-match "Ã " nil nil))

Unfortunately, the replacement is \`{a} ====> \Ã

"\\\B..." is the same as "\\B...".  I think you meant "\\\\B..." or more
likely "\\B\\...".

--
Kevin Rodgers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]