mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Remove XEmacs compat code from reftex-ref.el
* lisp/textmodes/reftex-ref.el (reftex-latin1-to-ascii): Remove XEmacs compat code.
This commit is contained in:
parent
9b630dc252
commit
fc139b629c
1 changed files with 2 additions and 4 deletions
|
|
@ -294,14 +294,12 @@ also applies `reftex-translate-to-ascii-function' to the string."
|
|||
|
||||
(defun reftex-latin1-to-ascii (string)
|
||||
;; Translate the upper 128 chars in the Latin-1 charset to ASCII equivalents
|
||||
(let ((tab "@@@@@@@@@@@@@@@@@@'@@@@@@@@@@@@@ icLxY|S\"ca<--R-o|23'uq..1o>423?AAAAAAACEEEEIIIIDNOOOOOXOUUUUYP3aaaaaaaceeeeiiiidnooooo:ouuuuypy")
|
||||
(emacsp (not (featurep 'xemacs))))
|
||||
(let ((tab "@@@@@@@@@@@@@@@@@@'@@@@@@@@@@@@@ icLxY|S\"ca<--R-o|23'uq..1o>423?AAAAAAACEEEEIIIIDNOOOOOXOUUUUYP3aaaaaaaceeeeiiiidnooooo:ouuuuypy"))
|
||||
(mapconcat
|
||||
(lambda (c)
|
||||
(cond ((and (> c 127) (< c 256)) ; 8 bit Latin-1
|
||||
(char-to-string (aref tab (- c 128))))
|
||||
((and emacsp ; Not for XEmacs
|
||||
(> c 2175) (< c 2304)) ; Mule Latin-1
|
||||
((and (> c 2175) (< c 2304)) ; Mule Latin-1
|
||||
(char-to-string (aref tab (- c 2176))))
|
||||
(t (char-to-string c))))
|
||||
string "")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue