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

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

Replacement


From: hufflen jean-michel
Subject: Replacement
Date: Thu, 27 Oct 2005 17:44:23 +0200 (CEST)

   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} ====> \à

   Sincerely yours,

                            J.-M. Hufflen




reply via email to

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