From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.bugs Subject: bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer Date: Fri, 19 Sep 2014 23:53:28 +0200 Message-ID: References: <87a9e38iqd.fsf@selune.samsung.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411163680 7612 80.91.229.3 (19 Sep 2014 21:54:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 21:54:40 +0000 (UTC) To: 16680@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 23:54:33 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XV68L-0005mk-0s for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 23:54:29 +0200 Original-Received: from localhost ([::1]:60708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV68K-0006vo-JK for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 17:54:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV688-0006vU-LZ for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 17:54:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XV680-0008Hr-EI for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 17:54:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV680-0008Ed-Ae for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 17:54:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XV67u-0002ix-JM for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 17:54:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87a9e38iqd.fsf@selune.samsung.net> Resent-From: joakim@verona.se Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Sep 2014 21:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16680 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16680-submit@debbugs.gnu.org id=B16680.141116363210445 (code B ref 16680); Fri, 19 Sep 2014 21:54:02 +0000 Original-Received: (at 16680) by debbugs.gnu.org; 19 Sep 2014 21:53:52 +0000 Original-Received: from localhost ([127.0.0.1]:46099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XV67j-0002iO-Cb for submit@debbugs.gnu.org; Fri, 19 Sep 2014 17:53:51 -0400 Original-Received: from mx6.bahnhof.se ([213.80.101.16]:25299) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XV67g-0002iF-CP for 16680@debbugs.gnu.org; Fri, 19 Sep 2014 17:53:49 -0400 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx6-reinject (Postfix) with ESMTP id 254CF418ED for <16680@debbugs.gnu.org>; Fri, 19 Sep 2014 23:53:47 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF1) Original-Received: from mf1.bahnhof.se ([127.0.0.1]) by localhost (mf1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BDGxbP6If4Pd for <16680@debbugs.gnu.org>; Fri, 19 Sep 2014 23:53:39 +0200 (CEST) Original-Received: from mta.verona.se (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf1.bahnhof.se (Postfix) with ESMTP id 1BAB3330AD8 for <16680@debbugs.gnu.org>; Fri, 19 Sep 2014 23:53:38 +0200 (CEST) Original-Received: from localhost (unknown [127.0.0.1]) by mta.verona.se (Postfix) with ESMTP id B8C15519F83 for <16680@debbugs.gnu.org>; Fri, 19 Sep 2014 21:53:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at verona.se Original-Received: from mta.verona.se ([127.0.0.1]) by localhost (exodia.verona.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i1ieKL3tOU5W for <16680@debbugs.gnu.org>; Fri, 19 Sep 2014 23:53:28 +0200 (CEST) Original-Received: from exodia.verona.se (www.verona.se [192.168.200.15]) by mta.verona.se (Postfix) with ESMTP id A4B8A519F77 for <16680@debbugs.gnu.org>; Fri, 19 Sep 2014 23:53:28 +0200 (CEST) User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93539 Archived-At: I have this error: select-frame-set-input-focus: Not an in-range integer, float, or cons of integers It happens for instanc3e in helm mode. If I comment out ;(x-focus-frame frame) in the function below, the problem doesnt seem to occur. I see that the bug is rather old, but my emacs is rather newly compiled, so im not sure. (defun select-frame-set-input-focus (frame &optional norecord) "Select FRAME, raise it, and set input focus, if possible. If `mouse-autoselect-window' is non-nil, also move mouse pointer to FRAME's selected window. Otherwise, if `focus-follows-mouse' is non-nil, move mouse cursor to FRAME. Optional argument NORECORD means to neither change the order of recently selected windows nor the buffer list." (select-frame frame norecord) (raise-frame frame) ;; Ensure, if possible, that FRAME gets input focus. (when (memq (window-system frame) '(x w32 ns)) ;(x-focus-frame frame) ) ;; Move mouse cursor if necessary. (cond (mouse-autoselect-window (let ((edges (window-inside-edges (frame-selected-window frame)))) ;; Move mouse cursor into FRAME's selected window to avoid that ;; Emacs mouse-autoselects another window. (set-mouse-position frame (nth 2 edges) (nth 1 edges)))) (focus-follows-mouse ;; Move mouse cursor into FRAME to avoid that another frame gets ;; selected by the window manager. (set-mouse-position frame (1- (frame-width frame)) 0)))) -- Joakim Verona