aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2004-04-05 23:30:44 +0000
committerKenichi Handa2004-04-05 23:30:44 +0000
commit3699afe8a5dcfee0ce4cab938fd077b46fa400c9 (patch)
tree75859ed12650143b2a4256cec0cb785556d1632e
parent661e85c1ebd4abbfcd2fe84f5a41a508fa316fbe (diff)
downloademacs-3699afe8a5dcfee0ce4cab938fd077b46fa400c9.tar.gz
emacs-3699afe8a5dcfee0ce4cab938fd077b46fa400c9.zip
(ethio-sera-being-called-by-w3): New
variable. (ethio-sera-to-fidel-ethio): Check ethio-sera-being-called-by-w3 instead of sera-being-called-by-w3. (ethio-fidel-to-sera-buffer): Likewise. (ethio-find-file): Bind ethio-sera-being-called-by-w3 to t instead of sera-being-called-by-w3. (ethio-write-file): Likewise.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/language/ethio-util.el15
2 files changed, 20 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 73c494a5558..9378fc84e57 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,14 @@
12004-04-06 Kenichi Handa <handa@m17n.org>
2
3 * language/ethio-util.el (ethio-sera-being-called-by-w3): New
4 variable.
5 (ethio-sera-to-fidel-ethio): Check ethio-sera-being-called-by-w3
6 instead of sera-being-called-by-w3.
7 (ethio-fidel-to-sera-buffer): Likewise.
8 (ethio-find-file): Bind ethio-sera-being-called-by-w3 to t
9 instead of sera-being-called-by-w3.
10 (ethio-write-file): Likewise.
11
12004-04-05 Nick Roberts <nick@nick.uklinux.net> 122004-04-05 Nick Roberts <nick@nick.uklinux.net>
2 13
3 * progmodes/gdb-ui.el (gdb-use-inferior-io-buffer): New option. 14 * progmodes/gdb-ui.el (gdb-use-inferior-io-buffer): New option.
diff --git a/lisp/language/ethio-util.el b/lisp/language/ethio-util.el
index 9fc2f403655..5a81f59f9dc 100644
--- a/lisp/language/ethio-util.el
+++ b/lisp/language/ethio-util.el
@@ -417,6 +417,9 @@ If nil, use uppercases.")
417 nil nil nil nil nil 417 nil nil nil nil nil
418 ]) 418 ])
419 419
420;; To avoid byte-compiler warnings. It should never be set globally.
421(defvar ethio-sera-being-called-by-w3)
422
420;;;###autoload 423;;;###autoload
421(defun ethio-sera-to-fidel-region (beg end &optional secondary force) 424(defun ethio-sera-to-fidel-region (beg end &optional secondary force)
422 "Convert the characters in region from SERA to FIDEL. 425 "Convert the characters in region from SERA to FIDEL.
@@ -587,8 +590,8 @@ the conversion of \"a\"."
587 (cond 590 (cond
588 591
589 ;; skip from "<" to ">" (or from "&" to ";") if in w3-mode 592 ;; skip from "<" to ">" (or from "&" to ";") if in w3-mode
590 ((and (boundp 'sera-being-called-by-w3) 593 ((and (boundp 'ethio-sera-being-called-by-w3)
591 sera-being-called-by-w3 594 ethio-sera-being-called-by-w3
592 (or (= ch ?<) (= ch ?&))) 595 (or (= ch ?<) (= ch ?&)))
593 (search-forward (if (= ch ?<) ">" ";") 596 (search-forward (if (= ch ?<) ">" ";")
594 nil 0)) 597 nil 0))
@@ -1174,8 +1177,8 @@ See also the descriptions of the variables
1174 (goto-char (1+ (match-end 0)))) ; because we inserted one byte (\) 1177 (goto-char (1+ (match-end 0)))) ; because we inserted one byte (\)
1175 1178
1176 ;; skip from "<" to ">" (or from "&" to ";") if called from w3 1179 ;; skip from "<" to ">" (or from "&" to ";") if called from w3
1177 ((and (boundp 'sera-being-called-by-w3) 1180 ((and (boundp 'ethio-sera-being-called-by-w3)
1178 sera-being-called-by-w3 1181 ethio-sera-being-called-by-w3
1179 (or (= ch ?<) (= ch ?&))) 1182 (or (= ch ?<) (= ch ?&)))
1180 (search-forward (if (= ch ?<) ">" ";") 1183 (search-forward (if (= ch ?<) ">" ";")
1181 nil 0)) 1184 nil 0))
@@ -1835,7 +1838,7 @@ Otherwise, [0-9A-F]."
1835 (set-buffer-modified-p nil))) 1838 (set-buffer-modified-p nil)))
1836 1839
1837 ((string-match "\\.html$" (buffer-file-name)) 1840 ((string-match "\\.html$" (buffer-file-name))
1838 (let ((sera-being-called-by-w3 t)) 1841 (let ((ethio-sera-being-called-by-w3 t))
1839 (save-excursion 1842 (save-excursion
1840 (ethio-sera-to-fidel-marker 'force) 1843 (ethio-sera-to-fidel-marker 'force)
1841 (goto-char (point-min)) 1844 (goto-char (point-min))
@@ -1872,7 +1875,7 @@ Otherwise, [0-9A-F]."
1872 1875
1873 ((string-match "\\.html$" (buffer-file-name)) 1876 ((string-match "\\.html$" (buffer-file-name))
1874 (save-excursion 1877 (save-excursion
1875 (let ((sera-being-called-by-w3 t) 1878 (let ((ethio-sera-being-called-by-w3 t)
1876 (lq (aref ethio-fidel-to-sera-map 461)) 1879 (lq (aref ethio-fidel-to-sera-map 461))
1877 (rq (aref ethio-fidel-to-sera-map 462))) 1880 (rq (aref ethio-fidel-to-sera-map 462)))
1878 (aset ethio-fidel-to-sera-map 461 "&laquote;") 1881 (aset ethio-fidel-to-sera-map 461 "&laquote;")