unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer, float, or cons of integers
@ 2014-02-07  7:50 cinsky
  2014-02-07 11:14 ` martin rudalics
  2014-09-19 21:53 ` bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer joakim
  0 siblings, 2 replies; 5+ messages in thread
From: cinsky @ 2014-02-07  7:50 UTC (permalink / raw)
  To: 16680

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

In my i686 Gentoo Linux, Emacs 24.3:

Any function/command that uses `select-frame-set-input-focus'
prints following error in "*Messages*" buffer.

  select-frame-set-input-focus: Not an in-range integer, float, or cons of
integers

Note#1: it raises an error, but it does set input focus to
        another frame.  For example,  following sexp seems to
        set input focus to the next frame, but it raises an
        error so that function `message' is not evaluated.

  (progn (select-frame-set-input-focus (next-frame))
         (message "this will not be evaluated"))

Note#2: Another x86_64 Gentoo machine with same configuration
        uses same Emacs package, but has no problem.

Thank you,

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.3/etc/DEBUG.


In GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.4)
 of 2013-12-03 on selune
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
Configured using:
 `configure '--prefix=/usr' '--build=i686-pc-linux-gnu'
 '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man'
 '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc'
 '--localstatedir=/var/lib' '--disable-silent-rules'
 '--disable-dependency-tracking' '--program-suffix=-emacs-24'
 '--infodir=/usr/share/info/emacs-24'
 '--enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../lib'
 '--with-gameuser=games' '--without-compress-info' '--without-hesiod'
 '--without-kerberos' '--without-kerberos5' '--without-gpm'
 '--with-dbus' '--without-gnutls' '--with-xml2' '--without-selinux'
 '--with-wide-int' '--with-sound' '--with-x' '--without-ns'
 '--without-gconf' '--without-gsettings' '--without-toolkit-scroll-bars'
 '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff'
 '--with-xpm' '--with-imagemagick' '--with-xft' '--without-libotf'
 '--without-m17n-flt' '--with-x-toolkit=gtk3'
 'GENTOO_PACKAGE=app-editors/emacs-24.3-r2'
 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu'
 'CFLAGS=-O2 -march=native -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'
 'CPPFLAGS=''

Important settings:
  value of $LC_MESSAGES: C
  value of $LC_TIME: C
  value of $LANG: ko_KR.UTF-8
  value of $XMODIFIERS: @im=scim
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Apropos

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x n e w - f r a m e <return> <switch-frame> C-x 5 
o <switch-frame> <down-mouse-1> <mouse-1> M-x e m a 
<tab> b u <tab> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
b u g <tab> C-a C-k e m a c s <tab> b u <tab> <tab> 
<tab> C-g M-x a p r o p s <backspace> o s <return> 
b u g - r e <backspace> <backspace> <backspace> <return> 
C-x o C-n C-s r e p o r t C-a C-s C-s C-s C-s C-s C-s 
C-a <C-tab> M-x e m a c s - r e p o <tab> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> r e 
p o r t - <tab> <return> s e l <backspace> <backspace> 
<backspace> <switch-frame> <down-mouse-1> <mouse-movement> 
<mouse-1> C-x b <switch-frame> m e C-g C-x b m e s 
s <backspace> <backspace> <backspace> <return> C-x 
k <return> C-x b m e s <backspace> <backspace> <backspace> 
<return> C-p C-p <help-echo> <help-echo> <help-echo> 
<switch-frame> <help-echo> M-x e m a c s - r e p o 
r t - b <tab> u <tab> C-g M-x r e p o r t - <tab> 
<return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
select-frame-set-input-focus: Not an in-range integer, float, or cons of integers
Quit
Mark saved where search started [2 times]
byte-code: Command attempted to use minibuffer while in minibuffer
Quit [2 times]

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils misearch multi-isearch help-mode easymenu apropos
time-date korea-util tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit
x multi-tty emacs)

-- 
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://www.cinsk.org/cfaqs/





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer, float, or cons of integers
  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 ` bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer joakim
  1 sibling, 0 replies; 5+ messages in thread
From: martin rudalics @ 2014-02-07 11:14 UTC (permalink / raw)
  To: cinsky; +Cc: 16680

 > In my i686 Gentoo Linux, Emacs 24.3:
 >
 > Any function/command that uses `select-frame-set-input-focus'
 > prints following error in "*Messages*" buffer.
 >
 >   select-frame-set-input-focus: Not an in-range integer, float, or cons of
 > integers

Can you step through `select-frame-set-input-focus' with edebug to see
where the bug comes from?

Thanks, martin





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer
  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
  2021-08-20 14:48   ` bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer, float, or cons of integers Lars Ingebrigtsen
  1 sibling, 1 reply; 5+ messages in thread
From: joakim @ 2014-09-19 21:53 UTC (permalink / raw)
  To: 16680

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer, float, or cons of integers
  2014-09-19 21:53 ` bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer joakim
@ 2021-08-20 14:48   ` Lars Ingebrigtsen
  2021-09-17 16:00     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-20 14:48 UTC (permalink / raw)
  To: joakim; +Cc: 16680

joakim@verona.se writes:

> 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.

(I'm going through old bug reports that unfortunately got no response at
the time.)

Are you still seeing this issue in recent versions of Emacs?  If so, can
you (setq debug-on-error t) and post the resulting backtrace when this
happens?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer, float, or cons of integers
  2021-08-20 14:48   ` bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer, float, or cons of integers Lars Ingebrigtsen
@ 2021-09-17 16:00     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-17 16:00 UTC (permalink / raw)
  To: joakim; +Cc: 16680

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Are you still seeing this issue in recent versions of Emacs?  If so, can
> you (setq debug-on-error t) and post the resulting backtrace when this
> happens?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-17 16:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer joakim
2021-08-20 14:48   ` bug#16680: 24.3; select-frame-set-input-focus: not an in-range integer, float, or cons of integers Lars Ingebrigtsen
2021-09-17 16:00     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).