diff options
author | Glenn Morris <rgm@gnu.org> | 2013-09-17 19:50:04 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2013-09-17 19:50:04 -0700 |
commit | e740f9d245b007e51fcc706338a4a1ac450c8307 (patch) | |
tree | 5c77f31de5804c1ee09b1b9f740294730ce400fd /lisp/custom.el | |
parent | 91c837fe7281b7588a8bfbd4c265a6d8cef69fb9 (diff) | |
download | emacs-e740f9d245b007e51fcc706338a4a1ac450c8307.tar.gz |
Silence some --without-x compilation warnings
* custom.el (x-get-resource): Declare.
* frame.el (x-display-grayscale-p): Declare.
* simple.el (font-info): Declare.
* window.el (x-display-pixel-height, tool-bar-lines-needed): Declare.
(fit-frame-to-buffer): Explicit error if --without-x.
(mouse-autoselect-window-select): Silence compiler.
Diffstat (limited to 'lisp/custom.el')
-rw-r--r-- | lisp/custom.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/custom.el b/lisp/custom.el index 3db34e4d1fb..d721198da0b 100644 --- a/lisp/custom.el +++ b/lisp/custom.el @@ -1,7 +1,6 @@ ;;; custom.el --- tools for declaring and initializing options ;; -;; Copyright (C) 1996-1997, 1999, 2001-2013 Free Software Foundation, -;; Inc. +;; Copyright (C) 1996-1997, 1999, 2001-2013 Free Software Foundation, Inc. ;; ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> ;; Maintainer: FSF @@ -1416,6 +1415,10 @@ See `custom-enabled-themes' for a list of enabled themes." (setq custom-enabled-themes (delq theme custom-enabled-themes))))) +;; Only used if window-system not null. +(declare-function x-get-resource "frame.c" + (attribute class &optional component subclass)) + (defun custom--frame-color-default (frame attribute resource-attr resource-class tty-default x-default) (let ((col (face-attribute 'default attribute t))) |