aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2010-10-06 09:58:53 +0000
committerDavid Aspinall2010-10-06 09:58:53 +0000
commitb5ab91cb5b0715d7bb6febbcc9ef666a789b78e0 (patch)
treed89ca9fd03198b4c687358f6bea3f7145aace855
parent1a43762cb4518d0710b8f9c3bb0237e96823d508 (diff)
No compile warning if image-size not available
-rw-r--r--generic/proof-splash.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/proof-splash.el b/generic/proof-splash.el
index e008e976..e5ace495 100644
--- a/generic/proof-splash.el
+++ b/generic/proof-splash.el
@@ -150,7 +150,9 @@ Borrowed from startup-center-spaces."
(glyph-pixwidth (cond ((stringp glyph)
(* avg-pixwidth (length glyph)))
((proof-emacs-imagep glyph)
- (car (image-size glyph 'inpixels)))
+ (car (with-no-warnings
+ ; image-size not available in tty emacs
+ (image-size glyph 'inpixels))))
(t
(error
"proof-splash-centre-spaces: bad arg")))))