diff options
| author | Glenn Morris | 2013-09-17 19:50:04 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-09-17 19:50:04 -0700 |
| commit | e740f9d245b007e51fcc706338a4a1ac450c8307 (patch) | |
| tree | 5c77f31de5804c1ee09b1b9f740294730ce400fd | |
| parent | 91c837fe7281b7588a8bfbd4c265a6d8cef69fb9 (diff) | |
| download | emacs-e740f9d245b007e51fcc706338a4a1ac450c8307.tar.gz emacs-e740f9d245b007e51fcc706338a4a1ac450c8307.zip | |
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.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/custom.el | 7 | ||||
| -rw-r--r-- | lisp/frame.el | 3 | ||||
| -rw-r--r-- | lisp/simple.el | 3 | ||||
| -rw-r--r-- | lisp/window.el | 10 |
5 files changed, 28 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5b911a503b8..c6940ca600a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2013-09-18 Glenn Morris <rgm@gnu.org> | 1 | 2013-09-18 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * custom.el (x-get-resource): Declare. | ||
| 4 | |||
| 5 | * frame.el (x-display-grayscale-p): Declare. | ||
| 6 | |||
| 7 | * simple.el (font-info): Declare. | ||
| 8 | |||
| 9 | * window.el (x-display-pixel-height, tool-bar-lines-needed): Declare. | ||
| 10 | (fit-frame-to-buffer): Explicit error if --without-x. | ||
| 11 | (mouse-autoselect-window-select): Silence compiler. | ||
| 12 | |||
| 3 | * dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape): Declare. | 13 | * dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape): Declare. |
| 4 | 14 | ||
| 5 | * eshell/em-cmpl.el (eshell-complete-parse-arguments): | 15 | * eshell/em-cmpl.el (eshell-complete-parse-arguments): |
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 @@ | |||
| 1 | ;;; custom.el --- tools for declaring and initializing options | 1 | ;;; custom.el --- tools for declaring and initializing options |
| 2 | ;; | 2 | ;; |
| 3 | ;; Copyright (C) 1996-1997, 1999, 2001-2013 Free Software Foundation, | 3 | ;; Copyright (C) 1996-1997, 1999, 2001-2013 Free Software Foundation, Inc. |
| 4 | ;; Inc. | ||
| 5 | ;; | 4 | ;; |
| 6 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> | 5 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> |
| 7 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -1416,6 +1415,10 @@ See `custom-enabled-themes' for a list of enabled themes." | |||
| 1416 | (setq custom-enabled-themes | 1415 | (setq custom-enabled-themes |
| 1417 | (delq theme custom-enabled-themes))))) | 1416 | (delq theme custom-enabled-themes))))) |
| 1418 | 1417 | ||
| 1418 | ;; Only used if window-system not null. | ||
| 1419 | (declare-function x-get-resource "frame.c" | ||
| 1420 | (attribute class &optional component subclass)) | ||
| 1421 | |||
| 1419 | (defun custom--frame-color-default (frame attribute resource-attr resource-class | 1422 | (defun custom--frame-color-default (frame attribute resource-attr resource-class |
| 1420 | tty-default x-default) | 1423 | tty-default x-default) |
| 1421 | (let ((col (face-attribute 'default attribute t))) | 1424 | (let ((col (face-attribute 'default attribute t))) |
diff --git a/lisp/frame.el b/lisp/frame.el index 74149a8dc01..1980e639283 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -889,6 +889,9 @@ e.g. (mapc 'frame-set-background-mode (frame-list))." | |||
| 889 | (declare-function x-get-resource "frame.c" | 889 | (declare-function x-get-resource "frame.c" |
| 890 | (attribute class &optional component subclass)) | 890 | (attribute class &optional component subclass)) |
| 891 | 891 | ||
| 892 | ;; Only used if window-system is not null. | ||
| 893 | (declare-function x-display-grayscale-p "xfns.c" (&optional terminal)) | ||
| 894 | |||
| 892 | (defvar inhibit-frame-set-background-mode nil) | 895 | (defvar inhibit-frame-set-background-mode nil) |
| 893 | 896 | ||
| 894 | (defun frame-set-background-mode (frame &optional keep-face-specs) | 897 | (defun frame-set-background-mode (frame &optional keep-face-specs) |
diff --git a/lisp/simple.el b/lisp/simple.el index 34774712437..bf531de8ae4 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4714,6 +4714,9 @@ lines." | |||
| 4714 | :group 'editing-basics | 4714 | :group 'editing-basics |
| 4715 | :version "23.1") | 4715 | :version "23.1") |
| 4716 | 4716 | ||
| 4717 | ;; Only used if display-graphic-p. | ||
| 4718 | (declare-function font-info "font.c" (name &optional frame)) | ||
| 4719 | |||
| 4717 | (defun default-font-height () | 4720 | (defun default-font-height () |
| 4718 | "Return the height in pixels of the current buffer's default face font." | 4721 | "Return the height in pixels of the current buffer's default face font." |
| 4719 | (let ((default-font (face-font 'default))) | 4722 | (let ((default-font (face-font 'default))) |
diff --git a/lisp/window.el b/lisp/window.el index 14e9f6bc128..e4959da3d21 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | ;;; window.el --- GNU Emacs window commands aside from those written in C | 1 | ;;; window.el --- GNU Emacs window commands aside from those written in C |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1989, 1992-1994, 2000-2013 Free Software | 3 | ;; Copyright (C) 1985, 1989, 1992-1994, 2000-2013 Free Software Foundation, Inc. |
| 4 | ;; Foundation, Inc. | ||
| 5 | 4 | ||
| 6 | ;; Maintainer: FSF | 5 | ;; Maintainer: FSF |
| 7 | ;; Keywords: internal | 6 | ;; Keywords: internal |
| @@ -6153,6 +6152,9 @@ reduce this. If it is thicker, you might want to increase this." | |||
| 6153 | :version "24.3" | 6152 | :version "24.3" |
| 6154 | :group 'windows) | 6153 | :group 'windows) |
| 6155 | 6154 | ||
| 6155 | (declare-function x-display-pixel-height "xfns.c" (&optional terminal)) | ||
| 6156 | (declare-function tool-bar-lines-needed "xdisp.c" (&optional frame)) | ||
| 6157 | |||
| 6156 | (defun fit-frame-to-buffer (&optional frame max-height min-height) | 6158 | (defun fit-frame-to-buffer (&optional frame max-height min-height) |
| 6157 | "Adjust height of FRAME to display its buffer contents exactly. | 6159 | "Adjust height of FRAME to display its buffer contents exactly. |
| 6158 | FRAME can be any live frame and defaults to the selected one. | 6160 | FRAME can be any live frame and defaults to the selected one. |
| @@ -6163,6 +6165,8 @@ top line of FRAME, minus `fit-frame-to-buffer-bottom-margin'. | |||
| 6163 | Optional argument MIN-HEIGHT specifies the minimum height of FRAME. | 6165 | Optional argument MIN-HEIGHT specifies the minimum height of FRAME. |
| 6164 | The default corresponds to `window-min-height'." | 6166 | The default corresponds to `window-min-height'." |
| 6165 | (interactive) | 6167 | (interactive) |
| 6168 | (or (fboundp 'x-display-pixel-height) | ||
| 6169 | (user-error "Cannot resize frame in non-graphic Emacs")) | ||
| 6166 | (setq frame (window-normalize-frame frame)) | 6170 | (setq frame (window-normalize-frame frame)) |
| 6167 | (let* ((root (frame-root-window frame)) | 6171 | (let* ((root (frame-root-window frame)) |
| 6168 | (frame-min-height | 6172 | (frame-min-height |
| @@ -6685,7 +6689,7 @@ is active. This function is run by `mouse-autoselect-window-timer'." | |||
| 6685 | (window-at (cadr mouse-position) (cddr mouse-position) | 6689 | (window-at (cadr mouse-position) (cddr mouse-position) |
| 6686 | (car mouse-position))))) | 6690 | (car mouse-position))))) |
| 6687 | (cond | 6691 | (cond |
| 6688 | ((or (menu-or-popup-active-p) | 6692 | ((or (and (fboundp 'menu-or-popup-active-p) (menu-or-popup-active-p)) |
| 6689 | (and window | 6693 | (and window |
| 6690 | (let ((coords (coordinates-in-window-p | 6694 | (let ((coords (coordinates-in-window-p |
| 6691 | (cdr mouse-position) window))) | 6695 | (cdr mouse-position) window))) |