all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Rupert Swarbrick <ruperts@broadcom.com>, 18586@debbugs.gnu.org
Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame
Date: Tue, 30 Sep 2014 09:24:59 -0400	[thread overview]
Message-ID: <m21tqtmeac.fsf@lifelogs.com> (raw)
In-Reply-To: <542A2B7D.9050704@cs.ucla.edu> (Paul Eggert's message of "Mon, 29 Sep 2014 21:03:09 -0700")

I also get this error on my home system, which is Ubuntu with a GTK
Emacs built from trunk as of yesterday, with all the image-related
libraries (png, gif, ImageMagick, etc.). emacsclient is not involved,
but I do have a frame fontification hook. Maybe it will help find the
problem. It happened when I tried to open a .el file; I can then reopen
it on the second try. I was in a hurry and didn't have time to debug it
further.

(when (tzz-emacs-unix)
  (defun fontify-frame (frame)
    (let* ((w (frame-pixel-width))
	   (h (frame-pixel-height))
	   (font
            (if (and window-system (eq system-type 'darwin))
              (if (> w 2000)
                  "-*-inconsolata-*-*-*--36-*-*-*-*-*-*-*"
                "-*-inconsolata-*-*-*--24-*-*-*-*-*-*-*")
              (if (> w 2000)
                  "-xos4-terminus-bold-r-normal-*-28-*-*-*-*-*-iso10646-1"
                "-xos4-terminus-bold-r-normal-*-22-*-*-*-*-*-iso10646-1"))))
      (if (and window-system (eq system-type 'darwin))
          (set-face-font 'default font))
      (set-frame-parameter frame 'font font)))

  ;; Fontify current frame
  (fontify-frame nil)
  ;; Fontify any future frames
  (push 'fontify-frame after-make-frame-functions))

I can dig further tonight if needed.

HTH
Ted





  parent reply	other threads:[~2014-09-30 13:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29 14:04 bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Rupert Swarbrick
2014-09-30  4:03 ` Paul Eggert
2014-09-30  8:10   ` Leo Liu
2014-09-30  9:58     ` Leo Liu
2014-09-30 10:01       ` Rupert Swarbrick
2014-09-30 10:10         ` Leo Liu
2014-10-01 12:19         ` Rupert Swarbrick
2014-10-01 18:06           ` Jan Djärv
2014-09-30 13:24   ` Ted Zlatanov [this message]
2014-10-02  4:54 ` Paul Eggert
2014-10-02  5:50   ` Jan Djärv
2014-10-03  2:30   ` Paul Eggert
2014-10-03  8:22     ` Rupert Swarbrick
2014-10-04 21:27     ` Ted Zlatanov

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=m21tqtmeac.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=18586@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=ruperts@broadcom.com \
    /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.