From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "otadmor ." Newsgroups: gmane.emacs.bugs Subject: bug#36362: The elisp timer Date: Sun, 30 Jun 2019 23:41:45 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ecd163058c908ae3" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="163232"; mail-complaints-to="usenet@blaine.gmane.org" To: 36362@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 01 00:03:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hhhui-000gJA-Gs for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jul 2019 00:03:12 +0200 Original-Received: from localhost ([::1]:46734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhhug-0006yc-TN for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jun 2019 18:03:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49463) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhhuZ-0006yQ-Ih for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 18:03:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhhuY-0001wo-Ln for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 18:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hhhuY-0001vv-GV for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 18:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hhhuY-0003g7-BQ for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 18:03:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: "otadmor ." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jun 2019 22:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36362 X-GNU-PR-Package: emacs Original-Received: via spool by 36362-submit@debbugs.gnu.org id=B36362.156193217014119 (code B ref 36362); Sun, 30 Jun 2019 22:03:02 +0000 Original-Received: (at 36362) by debbugs.gnu.org; 30 Jun 2019 22:02:50 +0000 Original-Received: from localhost ([127.0.0.1]:47423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhhuL-0003ff-Lf for submit@debbugs.gnu.org; Sun, 30 Jun 2019 18:02:50 -0400 Original-Received: from mail-lj1-f179.google.com ([209.85.208.179]:34394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhgeC-0005uH-3B for 36362@debbugs.gnu.org; Sun, 30 Jun 2019 16:42:04 -0400 Original-Received: by mail-lj1-f179.google.com with SMTP id p17so10926458ljg.1 for <36362@debbugs.gnu.org>; Sun, 30 Jun 2019 13:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=a3FddDMJGz+nbw0KAsWo8/LiAfVM7keexyjImNaeHwI=; b=tfstEBUDAR9PveKTSvcsZQc+voIeNWp09hvrvp8q13n/33EWf9O0QwJ1FGeW0p5KP5 Lv2qzi7DhHmImkhs4NTsNBlE/zwS+lcPOPQWLpwhlu8mNpt1+Fyu+itiJSd8Ru8Q6XmO sf3QYMkhXdEOJzWc9jHi16XVB2Za58NaU4yIPpvQCW4pV986nWujEc5wLgW03/n34N9U Eo4ZusvvDBmdJldTLXPTVyAmQeTv7i3IUkpl0OgUYphRVicg21m83/awyUYi6VHQz03l iS9eJRUIdBJtuQNLWMB6CXwMDmxwH8oD3zsWQFN6phyKXgssg7JQFkqujWCNFZ5q23FM vnTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=a3FddDMJGz+nbw0KAsWo8/LiAfVM7keexyjImNaeHwI=; b=EuPgJMB7anh+SOSuzk8jqz9M1aJSKUyVjMqsU2kDcEw+27BAtHIV9GjkEYBJcJ6RPC yL8mNK62qb4nJtRwlw9W5d1kzctRkwO7s8fOS3Fe6v91Zn+fokTN9ivKJp8e/GFM+JRD R+Yr56ELvFsp6UVdF2Ir1O/kUXlFJaTkxNglECSahr26tWqrQXCuBbCe/3c1VU1o10nK kdEzsglobsON4ia6nXy9CAD8W+OdXSlP2O0zu/hs3KVc2ytEPr6c9W+j9jy8qR6hrsKN 4CXKHQeICfwPECCI9mIQmY3mByncJFScOBylHKj00kE6rz4x5CasJyCEc55F9rE4z2Qv zuIQ== X-Gm-Message-State: APjAAAXc5xKHywqFvTMf78V4H8Rmv6o96gK4lSzYpHuylEyAxNuc8Bia XseiKJEgxUWsncSijYbpdz9zIuc0FGgm2e8qNfGrVw== X-Google-Smtp-Source: APXvYqxy6+jDeW1Qb0WdyMh9NHcQNPwqr6Q1Zur4lkmvKQcTAobVpYuHFcGrzgEgu3SgBoqqq3L3wl8qeJOfhNEV5nQ= X-Received: by 2002:a2e:4e12:: with SMTP id c18mr11941271ljb.211.1561927317507; Sun, 30 Jun 2019 13:41:57 -0700 (PDT) X-Mailman-Approved-At: Sun, 30 Jun 2019 18:02:48 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:161912 Archived-At: --000000000000ecd163058c908ae3 Content-Type: text/plain; charset="UTF-8" This is the code of the elisp timer. This is actually a bug fix. (defun check-frames-connection-timer () (safe-check-frames-connection) (run-at-time 2 nil 'check-frames-connection-timer)) (run-at-time 2 nil 'check-frames-connection-timer) (defun safe-x-check-frame (frame) (condition-case nil (x-check-frame frame) (error nil))) (defun safe-check-frames-connection () (when (functionp 'x-check-frame) (dolist (frame (frame-list)) (when (eq (framep frame) 'x) (safe-x-check-frame frame))))) --000000000000ecd163058c908ae3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is the code of the elisp timer. This is actually a b= ug fix.

=
(defun check-frames-connec= tion-timer ()
(sa= fe-check-frames-connection)
run-at-time 2 nil 'check-frames-connection-timer))
(run-at-time 2<= /span> nil 'check-frames-connection-timer)
(defun safe-x-chec= k-frame (frame)
<= /td> (condition-case nil
(x-check-frame frame)=
(error nil= )))
(defun safe-check-= frames-connection ()
when (functionp 'x= -check-frame)
(= dolist (frame (frame-list))
(when (eq (framep frame) 'x= )
(safe-x-check-fr= ame frame)))))

--000000000000ecd163058c908ae3--