From: joakim@verona.se
To: 16680@debbugs.gnu.org
Subject: bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer
Date: Fri, 19 Sep 2014 23:53:28 +0200 [thread overview]
Message-ID: <m3bnqb9t0n.fsf@exodia.verona.se> (raw)
In-Reply-To: <87a9e38iqd.fsf@selune.samsung.net>
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
next prev parent reply other threads:[~2014-09-19 21:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 7:50 bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer, float, or cons of integers cinsky
2014-02-07 11:14 ` martin rudalics
2014-09-19 21:53 ` joakim [this message]
2021-08-20 14:48 ` Lars Ingebrigtsen
2021-09-17 16:00 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3bnqb9t0n.fsf@exodia.verona.se \
--to=joakim@verona.se \
--cc=16680@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.