-;;; riece-keepalive.el --- keep an IRC connection
+;;; riece-keepalive.el --- keep an IRC connection -*- lexical-binding: t -*-
;; Copyright (C) 1998-2004 Daiki Ueno
;; Author: Daiki Ueno <ueno@unixuser.org>
(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)))))