diff options
| author | Glenn Morris | 2008-08-11 01:23:07 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-08-11 01:23:07 +0000 |
| commit | f2d9c15f597ab17a78244c4e019d708d5290ac19 (patch) | |
| tree | eea7f9d13952b4727dfb8db3509d5e53cdda4fac /lisp/term | |
| parent | 79e43d6ecac6a45c110cd7634caae4bcf6d6ffdf (diff) | |
| download | emacs-f2d9c15f597ab17a78244c4e019d708d5290ac19.tar.gz emacs-f2d9c15f597ab17a78244c4e019d708d5290ac19.zip | |
Add declarations for builds without X.
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/ns-win.el | 9 | ||||
| -rw-r--r-- | lisp/term/w32-win.el | 4 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 6 |
3 files changed, 19 insertions, 0 deletions
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index f11b34a7abf..0cd5ffc12de 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -749,6 +749,8 @@ this defaults to \"printenv\"." | |||
| 749 | (defvar ns-input-spi-name) | 749 | (defvar ns-input-spi-name) |
| 750 | (defvar ns-input-spi-arg) | 750 | (defvar ns-input-spi-arg) |
| 751 | 751 | ||
| 752 | (declare-function dnd-open-file "dnd" (uri action)) | ||
| 753 | |||
| 752 | (defun ns-spi-service-call () | 754 | (defun ns-spi-service-call () |
| 753 | "Respond to a service request." | 755 | "Respond to a service request." |
| 754 | (interactive) | 756 | (interactive) |
| @@ -1209,6 +1211,9 @@ unless the current buffer is a scratch buffer.") | |||
| 1209 | ;; (if this is not done, modeline is dimmed until first interaction) | 1211 | ;; (if this is not done, modeline is dimmed until first interaction) |
| 1210 | (add-hook 'after-make-frame-functions 'select-frame) | 1212 | (add-hook 'after-make-frame-functions 'select-frame) |
| 1211 | 1213 | ||
| 1214 | (defvar tool-bar-mode) | ||
| 1215 | (declare-function tool-bar-mode "tool-bar" (&optional arg)) | ||
| 1216 | |||
| 1212 | ;; Based on a function by David Reitter <dreitter@inf.ed.ac.uk> ; | 1217 | ;; Based on a function by David Reitter <dreitter@inf.ed.ac.uk> ; |
| 1213 | ;; see http://lists.gnu.org/archive/html/emacs-devel/2005-09/msg00681.html . | 1218 | ;; see http://lists.gnu.org/archive/html/emacs-devel/2005-09/msg00681.html . |
| 1214 | (defun ns-toggle-toolbar (&optional frame) | 1219 | (defun ns-toggle-toolbar (&optional frame) |
| @@ -1397,6 +1402,8 @@ See the documentation of `create-fontset-from-fontset-spec for the format.") | |||
| 1397 | (global-unset-key [vertical-scroll-bar mouse-1]) | 1402 | (global-unset-key [vertical-scroll-bar mouse-1]) |
| 1398 | (global-unset-key [vertical-scroll-bar drag-mouse-1]) | 1403 | (global-unset-key [vertical-scroll-bar drag-mouse-1]) |
| 1399 | 1404 | ||
| 1405 | (declare-function scroll-bar-scale "scroll-bar" (num-denom whole)) | ||
| 1406 | |||
| 1400 | (defun ns-scroll-bar-move (event) | 1407 | (defun ns-scroll-bar-move (event) |
| 1401 | "Scroll the frame according to a Nextstep scroller event." | 1408 | "Scroll the frame according to a Nextstep scroller event." |
| 1402 | (interactive "e") | 1409 | (interactive "e") |
| @@ -1561,6 +1568,8 @@ Note, tranparency works better on Tiger (10.4) and higher." | |||
| 1561 | "Non-nil if Nextstep windowing has been initialized.") | 1568 | "Non-nil if Nextstep windowing has been initialized.") |
| 1562 | 1569 | ||
| 1563 | (declare-function ns-list-services "nsfns.m" ()) | 1570 | (declare-function ns-list-services "nsfns.m" ()) |
| 1571 | (declare-function x-open-connection "xfns.c" | ||
| 1572 | (display &optional xrm-string must-succeed)) | ||
| 1564 | 1573 | ||
| 1565 | ;; Do the actual Nextstep Windows setup here; the above code just | 1574 | ;; Do the actual Nextstep Windows setup here; the above code just |
| 1566 | ;; defines functions and variables that we use now. | 1575 | ;; defines functions and variables that we use now. |
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 7cc0cd2f62b..cd000ea53db 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el | |||
| @@ -147,6 +147,7 @@ the last file dropped is selected." | |||
| 147 | (global-set-key [language-change] 'ignore) | 147 | (global-set-key [language-change] 'ignore) |
| 148 | 148 | ||
| 149 | (defvar x-resource-name) | 149 | (defvar x-resource-name) |
| 150 | (defvar x-colors) | ||
| 150 | 151 | ||
| 151 | 152 | ||
| 152 | (defun xw-defined-colors (&optional frame) | 153 | (defun xw-defined-colors (&optional frame) |
| @@ -225,6 +226,9 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |||
| 225 | (declare-function create-fontset-from-x-resource "fontset" ()) | 226 | (declare-function create-fontset-from-x-resource "fontset" ()) |
| 226 | (declare-function x-get-resource "frame.c" | 227 | (declare-function x-get-resource "frame.c" |
| 227 | (attribute class &optional component subclass)) | 228 | (attribute class &optional component subclass)) |
| 229 | (declare-function x-handle-args "common-win" (args)) | ||
| 230 | (declare-function x-parse-geometry "frame.c" (string)) | ||
| 231 | (defvar x-command-line-resources) | ||
| 228 | 232 | ||
| 229 | (defun w32-initialize-window-system () | 233 | (defun w32-initialize-window-system () |
| 230 | "Initialize Emacs for W32 GUI frames." | 234 | "Initialize Emacs for W32 GUI frames." |
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 4bcbb3e7031..1cfdeaf084b 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -253,6 +253,8 @@ exists." | |||
| 253 | (defconst x-pointer-invisible 255) | 253 | (defconst x-pointer-invisible 255) |
| 254 | 254 | ||
| 255 | 255 | ||
| 256 | (defvar x-colors) | ||
| 257 | |||
| 256 | (defun xw-defined-colors (&optional frame) | 258 | (defun xw-defined-colors (&optional frame) |
| 257 | "Internal function called by `defined-colors', which see." | 259 | "Internal function called by `defined-colors', which see." |
| 258 | (or frame (setq frame (selected-frame))) | 260 | (or frame (setq frame (selected-frame))) |
| @@ -1449,6 +1451,10 @@ The value nil is the same as this list: | |||
| 1449 | (declare-function x-server-max-request-size "xfns.c" (&optional terminal)) | 1451 | (declare-function x-server-max-request-size "xfns.c" (&optional terminal)) |
| 1450 | (declare-function x-get-resource "frame.c" | 1452 | (declare-function x-get-resource "frame.c" |
| 1451 | (attribute class &optional component subclass)) | 1453 | (attribute class &optional component subclass)) |
| 1454 | (declare-function x-parse-geometry "frame.c" (string)) | ||
| 1455 | (defvar x-resource-name) | ||
| 1456 | (defvar x-display-name) | ||
| 1457 | (defvar x-command-line-resources) | ||
| 1452 | 1458 | ||
| 1453 | (defun x-initialize-window-system () | 1459 | (defun x-initialize-window-system () |
| 1454 | "Initialize Emacs for X frames and open the first connection to an X server." | 1460 | "Initialize Emacs for X frames and open the first connection to an X server." |