aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2009-02-14 09:05:59 +0000
committerEli Zaretskii2009-02-14 09:05:59 +0000
commit9dcb8cd0bb6c2a9e9696eb36311fa0478c217bba (patch)
tree395e9a2bc83d380972738f1385afe3ae96033613
parent0d58bedde6ba572d995a8f857fa5fdde9ab299ee (diff)
downloademacs-9dcb8cd0bb6c2a9e9696eb36311fa0478c217bba.tar.gz
emacs-9dcb8cd0bb6c2a9e9696eb36311fa0478c217bba.zip
(quail-input-string-to-events, quail-store-decode-map-key, quail-char-equal-p):
Use `with-no-warnings' around forms that refer to translation-table-for-input.
-rw-r--r--lisp/international/quail.el29
1 files changed, 17 insertions, 12 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index 67c3cfb4815..63b00878f16 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -1290,11 +1290,12 @@ If STR has `advice' text property, append the following special event:
1290\(quail-advice STR)" 1290\(quail-advice STR)"
1291 (let ((events (mapcar 1291 (let ((events (mapcar
1292 (lambda (c) 1292 (lambda (c)
1293 ;; This gives us the chance to unify on input 1293 (or
1294 ;; (e.g. using ucs-tables.el). 1294 ;; Avoid "obsolete" warnings for translation-table-for-input.
1295 (or (and translation-table-for-input 1295 (with-no-warnings
1296 (aref translation-table-for-input c)) 1296 (and translation-table-for-input
1297 c)) 1297 (aref translation-table-for-input c)))
1298 c))
1298 str))) 1299 str)))
1299 (if (or (get-text-property 0 'advice str) 1300 (if (or (get-text-property 0 'advice str)
1300 (next-single-property-change 0 'advice str)) 1301 (next-single-property-change 0 'advice str))
@@ -2645,10 +2646,12 @@ KEY BINDINGS FOR CONVERSION
2645 (or (string= key elt) 2646 (or (string= key elt)
2646 (aset table char (list key elt)))) 2647 (aset table char (list key elt))))
2647 (aset table char key)) 2648 (aset table char key))
2648 (if (and translation-table-for-input 2649 ;; Avoid "obsolete" warnings for translation-table-for-input.
2649 (setq char (aref translation-table-for-input char))) 2650 (with-no-warnings
2650 (let ((translation-table-for-input nil)) 2651 (if (and translation-table-for-input
2651 (quail-store-decode-map-key table char key))))) 2652 (setq char (aref translation-table-for-input char)))
2653 (let ((translation-table-for-input nil))
2654 (quail-store-decode-map-key table char key))))))
2652 2655
2653;; Helper function for quail-gen-decode-map. Store key strings to 2656;; Helper function for quail-gen-decode-map. Store key strings to
2654;; type each character under MAP in TABLE (char-table). MAP is an 2657;; type each character under MAP in TABLE (char-table). MAP is an
@@ -2697,9 +2700,11 @@ KEY BINDINGS FOR CONVERSION
2697 2700
2698(defsubst quail-char-equal-p (char target) 2701(defsubst quail-char-equal-p (char target)
2699 (or (= char target) 2702 (or (= char target)
2700 (and translation-table-for-input 2703 ;; Avoid "obsolete" warnings for translation-table-for-input.
2701 (setq char (aref translation-table-for-input char)) 2704 (with-no-warnings
2702 (= char target)))) 2705 (and translation-table-for-input
2706 (setq char (aref translation-table-for-input char))
2707 (= char target)))))
2703 2708
2704;; Helper function for quail-find-key. Prepend key strings to type 2709;; Helper function for quail-find-key. Prepend key strings to type
2705;; for inputting CHAR by the current input method to KEY-LIST and 2710;; for inputting CHAR by the current input method to KEY-LIST and