Mercurial > emacs
comparison src/w32fns.c @ 90732:bc10a33dd40b
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 563-582)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 177-185)
- Merge from emacs--devo--0
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-158
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 01 Jan 2007 03:21:06 +0000 |
parents | 6588c6259dfb 0b62ec4c4929 |
children | 95d0cdf160ea |
comparison
equal
deleted
inserted
replaced
90731:a6c97c25a666 | 90732:bc10a33dd40b |
---|---|
8409 GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); | 8409 GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); |
8410 return make_number (msg.wParam); | 8410 return make_number (msg.wParam); |
8411 } | 8411 } |
8412 return Qnil; | 8412 return Qnil; |
8413 } | 8413 } |
8414 | |
8415 DEFUN ("w32-window-exists-p", Fw32_window_exists_p, Sw32_window_exists_p, | |
8416 2, 2, 0, | |
8417 doc: /* Return non-nil if a window exists with the specified CLASS and NAME. | |
8418 | |
8419 This is a direct interface to the Windows API FindWindow function. */) | |
8420 (class, name) | |
8421 Lisp_Object class, name; | |
8422 { | |
8423 HWND hnd; | |
8424 | |
8425 if (!NILP (class)) | |
8426 CHECK_STRING (class); | |
8427 if (!NILP (name)) | |
8428 CHECK_STRING (name); | |
8429 | |
8430 hnd = FindWindow (STRINGP (class) ? ((LPCTSTR) SDATA (class)) : NULL, | |
8431 STRINGP (name) ? ((LPCTSTR) SDATA (name)) : NULL); | |
8432 if (!hnd) | |
8433 return Qnil; | |
8434 return Qt; | |
8435 } | |
8436 | |
8437 | |
8414 | 8438 |
8415 DEFUN ("file-system-info", Ffile_system_info, Sfile_system_info, 1, 1, 0, | 8439 DEFUN ("file-system-info", Ffile_system_info, Sfile_system_info, 1, 1, 0, |
8416 doc: /* Return storage information about the file system FILENAME is on. | 8440 doc: /* Return storage information about the file system FILENAME is on. |
8417 Value is a list of floats (TOTAL FREE AVAIL), where TOTAL is the total | 8441 Value is a list of floats (TOTAL FREE AVAIL), where TOTAL is the total |
8418 storage of the file system, FREE is the free storage, and AVAIL is the | 8442 storage of the file system, FREE is the free storage, and AVAIL is the |
8975 &w32_unicode_charset_defined, | 8999 &w32_unicode_charset_defined, |
8976 doc: /* Internal variable. */); | 9000 doc: /* Internal variable. */); |
8977 | 9001 |
8978 staticpro (&Qw32_charset_unicode); | 9002 staticpro (&Qw32_charset_unicode); |
8979 Qw32_charset_unicode = intern ("w32-charset-unicode"); | 9003 Qw32_charset_unicode = intern ("w32-charset-unicode"); |
9004 } | |
8980 #endif | 9005 #endif |
8981 | 9006 |
8982 #if 0 /* TODO: Port to W32 */ | 9007 #if 0 /* TODO: Port to W32 */ |
8983 defsubr (&Sx_change_window_property); | 9008 defsubr (&Sx_change_window_property); |
8984 defsubr (&Sx_delete_window_property); | 9009 defsubr (&Sx_delete_window_property); |
9019 defsubr (&Sw32_register_hot_key); | 9044 defsubr (&Sw32_register_hot_key); |
9020 defsubr (&Sw32_unregister_hot_key); | 9045 defsubr (&Sw32_unregister_hot_key); |
9021 defsubr (&Sw32_registered_hot_keys); | 9046 defsubr (&Sw32_registered_hot_keys); |
9022 defsubr (&Sw32_reconstruct_hot_key); | 9047 defsubr (&Sw32_reconstruct_hot_key); |
9023 defsubr (&Sw32_toggle_lock_key); | 9048 defsubr (&Sw32_toggle_lock_key); |
9049 defsubr (&Sw32_window_exists_p); | |
9024 defsubr (&Sw32_find_bdf_fonts); | 9050 defsubr (&Sw32_find_bdf_fonts); |
9025 | 9051 |
9026 defsubr (&Sfile_system_info); | 9052 defsubr (&Sfile_system_info); |
9027 defsubr (&Sdefault_printer_name); | 9053 defsubr (&Sdefault_printer_name); |
9028 | 9054 |