Re: Error when trying to run LaTeX on a region (region pinning)
David Kastrup <[email protected]> Tue, 22 Mar 2005 16:51:32 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
--=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable David Kastrup <[email protected]> writes: > [email protected] (Frank K=FCster) writes: >> >>> David Kastrup <[email protected]> writes: >>> >>>> [email protected] (Frank K=FCster) writes: >>>>> >>>>> I marked the paragraph of continous text (transient-mark-mode is >>>>> enabled) and did C-c C-r. I got an error: >>>>> >>>>> Debugger entered--Lisp error: (args-out-of-range -112792393 -11279239= 3) >>>>> previous-single-char-property-change(#<marker at 21271 in februar05= .tex> preview-counters) >>>> >>>> [...] >>>> >>>> That is a bug in Emacs. I'll install a fix inside of Emacs and a >>>> workaround in AUCTeX. >> >> So it is not necessary that I check with a CVS version, as Ralf >> suggested?=20 > > It won't help. I have just finished the patch to Emacs, but have > not tested and submitted it yet. I will do the patch to > preview-latex after that. Try the following: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment --- preview.el 19 Mar 2005 00:24:23 +0100 1.244 +++ preview.el 22 Mar 2005 16:46:17 +0100 @@ -1987,6 +1987,9 @@ "Fetch the next preceding or next preview-counters property. Factored out because of compatibility macros XEmacs would not use in advice." + ;; The following two lines are bug workaround for Emacs < 22.1. + (if (markerp begin) + (setq begin (marker-position (marker)))) (or (car (get-char-property begin 'preview-counters)) (cdr (get-char-property (max (point-min) (1- begin)) --=-=-= Somehow I have the feeling that the region pinning does not really work well, maybe I am doing something wrong. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum --=-=-=--