[Top][All Lists]

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

Re: [AUCTeX-devel] support for xemacs

From: Arash Esbati
Subject: Re: [AUCTeX-devel] support for xemacs
Date: Thu, 16 Mar 2017 14:10:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2

Hi Mosè,

Mosè Giordano <address@hidden> writes:

> I tested the patch in XEmacs 21.4.24, seems to work.  If I set
> `alignat' to 5 I get 9 &s, is it correct, right?  They should be
> 2 * ncols - 1, no?

Thanks!  Yes, 2 * ncols - 1 is the logic; it seems to work.  I have
patched the other style files with same code, will push them later.

For the one `replace-regexp-in-string' in tex.el, I think this should
fix it:

diff --git a/tex.el b/tex.el
index 64e5ea26..9f201746 100644
--- a/tex.el
+++ b/tex.el
@@ -1919,8 +1919,16 @@ If the Emacs frame isn't raised, customize
                     (require 'url-util)
                     (url-unhex-string (aref (url-generic-parse-url file) 6)))
                 ;; For Emacs 21 compatibility, which doesn't have the
-                ;; url package.
-                (file-error (replace-regexp-in-string "^file://" "" file))))
+                ;; url package.  Also cater compat code for XEmacs
+                ;; which does not have `replace-regexp-in-string':
+                (file-error (if (featurep 'xemacs)
+                                (with-temp-buffer
+                                  (insert file)
+                                  (goto-char (point-max))
+                                  (re-search-backward "^file://" nil t)
+                                  (replace-match "")
+                                  (buffer-string))
+                              (replace-regexp-in-string "^file://" "" file)))))
         (flc (or (apply #'TeX-source-correlate-handle-TeX-region file linecol)
                  (apply #'list file linecol)))
         (file (car flc))

Do you have Evince?  Can you give it a roll?

TIA.  Best, Arash

reply via email to

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