]> git.eshelyaron.com Git - emacs.git/commitdiff
(tpu-map-key): Use with-no-warning to suppress byte-opt warning.
authorGlenn Morris <rgm@gnu.org>
Tue, 30 Oct 2007 06:24:00 +0000 (06:24 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 30 Oct 2007 06:24:00 +0000 (06:24 +0000)
lisp/emulation/tpu-mapper.el

index 3f216ca8a2bb94ffbec658db06ffd64cbcd57c77..ea48c961cc4f49a58758b346348183e8767e14d0 100644 (file)
              ;; bogosity to get next prompt to come up, if the user hits <CR>!
              ;; check periodically to see if this is still needed...
              (t
-              (format "%s" tpu-key))))
+              (with-no-warnings (format "%s" tpu-key)))))
     (message "Press %s%s: " ident descrip)
     (setq tpu-key-seq (read-event))
     (setq tpu-key (concat "[" (format "%s" tpu-key-seq) "]"))
           (set-buffer "Directions"))
          ;; bogosity to get next prompt to come up, if the user hits <CR>!
          ;; check periodically to see if this is still needed...
+         ;; byte-opt warns that the return value is unused.
          (t
-          (format "%s" tpu-key))))
+          (with-no-warnings (format "%s" tpu-key)))))
     tpu-key)
 
 (set-buffer "Keys")