comparison lisp/term/w32-win.el @ 95841:b4e36ff621b3

Add some compiler declarations, for builds without X.
author Glenn Morris <rgm@gnu.org>
date Thu, 12 Jun 2008 03:56:20 +0000
parents ea2762d2d847
children bb82cfdc467f
comparison
equal deleted inserted replaced
95840:0e3c2e18b9c3 95841:b4e36ff621b3
183 (if (null x-command-line-resources) 183 (if (null x-command-line-resources)
184 (car x-invocation-args) 184 (car x-invocation-args)
185 (concat x-command-line-resources "\n" (car x-invocation-args)))) 185 (concat x-command-line-resources "\n" (car x-invocation-args))))
186 (setq x-invocation-args (cdr x-invocation-args))) 186 (setq x-invocation-args (cdr x-invocation-args)))
187 187
188 (declare-function x-parse-geometry "frame.c" (string))
189
188 (defun x-handle-geometry (switch) 190 (defun x-handle-geometry (switch)
189 "Handle the \"-geometry\" SWITCH." 191 "Handle the \"-geometry\" SWITCH."
190 (let* ((geo (x-parse-geometry (car x-invocation-args))) 192 (let* ((geo (x-parse-geometry (car x-invocation-args)))
191 (left (assq 'left geo)) 193 (left (assq 'left geo))
192 (top (assq 'top geo)) 194 (top (assq 'top geo))
208 (append initial-frame-alist 210 (append initial-frame-alist
209 '((user-position . t)) 211 '((user-position . t))
210 (if left (list left)) 212 (if left (list left))
211 (if top (list top))))) 213 (if top (list top)))))
212 (setq x-invocation-args (cdr x-invocation-args)))) 214 (setq x-invocation-args (cdr x-invocation-args))))
215
216 (defvar x-resource-name)
213 217
214 (defun x-handle-name-switch (switch) 218 (defun x-handle-name-switch (switch)
215 "Handle the \"-name\" SWITCH." 219 "Handle the \"-name\" SWITCH."
216 ;; Handle the -name option. Set the variable x-resource-name 220 ;; Handle the -name option. Set the variable x-resource-name
217 ;; to the option's operand; set the name of the initial frame, too. 221 ;; to the option's operand; set the name of the initial frame, too.
415 419
416 (defun x-win-suspend-error () 420 (defun x-win-suspend-error ()
417 "Report an error when a suspend is attempted." 421 "Report an error when a suspend is attempted."
418 (error "Suspending an Emacs running under W32 makes no sense")) 422 (error "Suspending an Emacs running under W32 makes no sense"))
419 423
424 (declare-function generate-fontset-menu "fontset" ())
420 425
421 (defun mouse-set-font (&rest fonts) 426 (defun mouse-set-font (&rest fonts)
422 "Select an Emacs font from a list of known good fonts and fontsets. 427 "Select an Emacs font from a list of known good fonts and fontsets.
423 428
424 If `w32-use-w32-font-dialog' is non-nil (the default), use the Windows 429 If `w32-use-w32-font-dialog' is non-nil (the default), use the Windows
449 (setq fonts nil)) 454 (setq fonts nil))
450 (error (setq fonts (cdr fonts))))) 455 (error (setq fonts (cdr fonts)))))
451 (if (null font) 456 (if (null font)
452 (error "Font not found"))))) 457 (error "Font not found")))))
453 458
459 (defvar image-library-alist)
460
454 ;;; Set default known names for image libraries 461 ;;; Set default known names for image libraries
455 (setq image-library-alist 462 (setq image-library-alist
456 '((xpm "libxpm.dll" "xpm4.dll" "libXpm-nox4.dll") 463 '((xpm "libxpm.dll" "xpm4.dll" "libXpm-nox4.dll")
457 (png "libpng12d.dll" "libpng12.dll" "libpng.dll" 464 (png "libpng12d.dll" "libpng12.dll" "libpng.dll"
458 ;; these are libpng 1.2.8 from GTK+ 465 ;; these are libpng 1.2.8 from GTK+
465 (glib "libglib-2.0-0.dll"))) 472 (glib "libglib-2.0-0.dll")))
466 473
467 ;;; multi-tty support 474 ;;; multi-tty support
468 (defvar w32-initialized nil 475 (defvar w32-initialized nil
469 "Non-nil if the w32 window system has been initialized.") 476 "Non-nil if the w32 window system has been initialized.")
477
478 (declare-function x-open-connection "w32fns.c"
479 (display &optional xrm-string must-succeed))
480
481 (declare-function setup-default-fontset "fontset" ())
482 (declare-function set-fontset-font "fontset.c"
483 (name target font-spec &optional frame add))
484 (declare-function setup-default-fontset "fontset" ())
485 (declare-function create-fontset-from-fontset-spec "fontset"
486 (fontset-spec &optional style-variant noerror))
487 (declare-function create-fontset-from-x-resource "fontset" ())
488 (declare-function x-get-resource "frame.c"
489 (attribute class &optional component subclass))
470 490
471 (defun w32-initialize-window-system () 491 (defun w32-initialize-window-system ()
472 "Initialize Emacs for W32 GUI frames." 492 "Initialize Emacs for W32 GUI frames."
473 493
474 ;; Do the actual Windows setup here; the above code just defines 494 ;; Do the actual Windows setup here; the above code just defines