aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-13 23:58:50 +0000
committerRichard M. Stallman1994-08-13 23:58:50 +0000
commit6674f749e41dadcedc50116fb29b8ed434f23db5 (patch)
tree66a15a0837db60f526e6614627c765ac165ced2e
parenteb426f3a0823744fd04a94a5945d8bdb5b6751c2 (diff)
downloademacs-6674f749e41dadcedc50116fb29b8ed434f23db5.tar.gz
emacs-6674f749e41dadcedc50116fb29b8ed434f23db5.zip
(iso-tex2iso-trans-tab): Put the sequences with braces
before corresponding ones without. Escape ? in patterns. (iso-translate-conventions): Don't widen. (iso-german-tex-p): Preserve narrowing.
-rw-r--r--lisp/international/iso-cvt.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/international/iso-cvt.el b/lisp/international/iso-cvt.el
index 375f1d16c1e..b0acadada6c 100644
--- a/lisp/international/iso-cvt.el
+++ b/lisp/international/iso-cvt.el
@@ -86,7 +86,6 @@
86(defun iso-translate-conventions (trans-tab) 86(defun iso-translate-conventions (trans-tab)
87 "Use the translation table TRANS-TAB to translate the current buffer." 87 "Use the translation table TRANS-TAB to translate the current buffer."
88 (save-excursion 88 (save-excursion
89 (widen)
90 (goto-char (point-min)) 89 (goto-char (point-min))
91 (let ((work-tab trans-tab) 90 (let ((work-tab trans-tab)
92 (buffer-read-only nil) 91 (buffer-read-only nil)
@@ -377,10 +376,10 @@ little.")
377 ("\\\\o{a}" "\345") 376 ("\\\\o{a}" "\345")
378 ("{\\\\copyright}" "\251") 377 ("{\\\\copyright}" "\251")
379 ("\\\\copyright{}" "\251") 378 ("\\\\copyright{}" "\251")
380 ("?`" "¿") 379 ("{\\?`}" "¿")
381 ("!`" "¡")
382 ("{?`}" "¿")
383 ("{!`}" "¡") 380 ("{!`}" "¡")
381 ("\\?`" "¿")
382 ("!`" "¡")
384 ) 383 )
385 "Translation table for translating TeX sequences to ISO 8859-1 characters. 384 "Translation table for translating TeX sequences to ISO 8859-1 characters.
386This table is not exhaustive (and due to TeX's power can never be). It only 385This table is not exhaustive (and due to TeX's power can never be). It only
@@ -649,9 +648,10 @@ contains commonly used sequences.")
649(defun iso-german-tex-p () 648(defun iso-german-tex-p ()
650 "Check if tex buffer is German LaTeX." 649 "Check if tex buffer is German LaTeX."
651 (save-excursion 650 (save-excursion
652 (widen) 651 (save-restriction
653 (goto-char (point-min)) 652 (widen)
654 (re-search-forward "\\\\documentstyle\\[.*german.*\\]" nil t))) 653 (goto-char (point-min))
654 (re-search-forward "\\\\documentstyle\\[.*german.*\\]" nil t))))
655 655
656(defun iso-fix-iso2tex () 656(defun iso-fix-iso2tex ()
657 "Turn ISO 8859-1 (aka. ISO Latin-1) buffer into TeX sequences. 657 "Turn ISO 8859-1 (aka. ISO Latin-1) buffer into TeX sequences.
@@ -663,7 +663,7 @@ If German TeX is used, German TeX sequences are generated."
663 (iso-iso2tex))) 663 (iso-iso2tex)))
664 (if (or (equal major-mode 'tex-mode) 664 (if (or (equal major-mode 'tex-mode)
665 (equal major-mode 'TeX-mode) ; AucTeX wants this 665 (equal major-mode 'TeX-mode) ; AucTeX wants this
666 (equal major-mode 'plain-tex-mode)) ; AucTeX wants this 666 (equal major-mode 'plain-tex-mode))
667 (iso-iso2tex))) 667 (iso-iso2tex)))
668 668
669(defun iso-fix-tex2iso () 669(defun iso-fix-tex2iso ()
@@ -676,7 +676,7 @@ This function recognices German TeX buffers."
676 (iso-tex2iso))) 676 (iso-tex2iso)))
677 (if (or (equal major-mode 'tex-mode) 677 (if (or (equal major-mode 'tex-mode)
678 (equal major-mode 'TeX-mode) ; AucTeX wants this 678 (equal major-mode 'TeX-mode) ; AucTeX wants this
679 (equal major-mode 'plain-tex-mode)) ; AucTeX wants this 679 (equal major-mode 'plain-tex-mode))
680 (iso-tex2iso))) 680 (iso-tex2iso)))
681 681
682(defun iso-cvt-ffh () 682(defun iso-cvt-ffh ()