* riece-keepalive.el (riece-keepalive-after-login-hook): Suppress
authorTAKAHASHI Kaoru <kaoru@kaisei.org>
Sun, 12 Sep 2010 13:13:18 +0000 (22:13 +0900)
committerTAKAHASHI Kaoru <kaoru@kaisei.org>
Sun, 12 Sep 2010 13:13:18 +0000 (22:13 +0900)
byte-compile warnings; `save-excursion' defeated by `set-buffer'.

lisp/ChangeLog
lisp/riece-keepalive.el

index 0f1ac0e..94284c7 100644 (file)
@@ -1,5 +1,8 @@
 2010-09-12  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
+       * riece-keepalive.el (riece-keepalive-after-login-hook): Suppress
+       byte-compile warnings; `save-excursion' defeated by `set-buffer'.
+
        * riece-kakasi.el (riece-kakasi-convert-string): Suppress
        byte-compile warnings; `save-excursion' defeated by `set-buffer'.
 
index 955b6ab..c0c25a6 100644 (file)
@@ -53,8 +53,7 @@
          (riece-run-at-time
           riece-keepalive-ping-repeat riece-keepalive-ping-repeat
           (lambda (buffer)
-            (save-excursion
-              (set-buffer buffer)
+            (with-current-buffer buffer
               (riece-send-string "PING riece-keepalive\r\n")))
           (current-buffer)))))