[Top][All Lists]

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

[AUCTeX] Re: query-replace in math mode

From: Plamen Tanovski
Subject: [AUCTeX] Re: query-replace in math mode
Date: Tue, 18 Dec 2007 17:49:12 +0100
User-agent: Mutt/1.5.14 (2007-02-12)

> Same here. Strange. I think we can't solve this now but I'll keep an eye
> on it. Thanks for your help, Plamen.

May be there ist something wrong with the end position. Try this:

(defun LaTeX-math-query-replace (from-string to-string)
"math query replace"
(interactive "sFrom: \nsTo: ")
    (search-forward from-string)
  (if (texmathp)
    (query-replace from-string to-string nil
 (point) (match-end 0)))))

or even instead of (match-end 0) try (1+ (match-end 0))

best regards

Plamen Tanovski
Prager Str. 125
04317 Leipzig
Tel. (03 41) 3 08 57 60

reply via email to

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