aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Colascione2012-10-07 23:58:40 -0800
committerDaniel Colascione2012-10-07 23:58:40 -0800
commite08348a0e6d440d5c2764c101de0a95fc12168c7 (patch)
treefd0da018271ec07b33babacfe1fcaa6898665c44
parent36a305a723c63fd345be65c536c52fe9765c14be (diff)
downloademacs-e08348a0e6d440d5c2764c101de0a95fc12168c7.tar.gz
emacs-e08348a0e6d440d5c2764c101de0a95fc12168c7.zip
Changelog entries for cygw32
-rw-r--r--ChangeLog9
-rw-r--r--lib-src/ChangeLog13
-rw-r--r--lisp/ChangeLog67
-rw-r--r--src/ChangeLog138
4 files changed, 227 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a7b9f61828..c2b61b24e66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
12012-10-08 Daniel Colascione <dancol@dancol.org>
2
3 * configure.ac: Add --with-w32 as a window system option. Limit
4 it to Cygwin for now. Integrate w32 into the refactored window
5 system configuration and set TERM_HEADER to w32term.h when w32 is
6 configured.
7
8 (CYGWIN_OBJ): Add cygw32.o.
9
12012-10-07 Jan Djärv <jan.h.d@swipnet.se> 102012-10-07 Jan Djärv <jan.h.d@swipnet.se>
2 11
3 * configure.ac: Check that OSX is 10.4 or newer. 12 * configure.ac: Check that OSX is 10.4 or newer.
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 2a8ac9b8131..a4234693a82 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,16 @@
12012-10-08 Daniel Colascione <dancol@dancol.org>
2
3 * emacsclient.c: Include windows.h when HAVE_NTGUI.
4 (alt_display): New variable. We send the display held by this
5 variable when the primary display is either unsupported or not
6 present.
7 (longopts): Allow display everywhere.
8 (w32_set_user_model_id): Move lower in file, inside HAVE_NTGUI
9 section.
10 (decode_options): Use alt_display. Explain why.
11 (main): Retry connection with alt_display if connection with main
12 display fails.
13
12012-10-01 Fabrice Popineau <fabrice.popineau@gmail.com> 142012-10-01 Fabrice Popineau <fabrice.popineau@gmail.com>
2 15
3 * make-docfile.c (write_globals): Special-case 16 * make-docfile.c (write_globals): Special-case
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b0f896aa086..a4a1d0eeb2b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,70 @@
12012-10-08 Daniel Colascione <dancol@dancol.org>
2
3 * battery.el (battery-status-function): Check for
4 w32-battery-status itself, not system-time windows-nt.
5
6 * frame.el: Require cl-lib.
7 (display-format-alist): New variable mapping frame types to
8 functions that initialize them.
9 (window-system-for-display): New function: interprets
10 display-format-alist.
11 (make-frame-on-display): Remove existing display-selection logic
12 and just forward to make-frame, which will now DTRT.
13 (make-frame): Restructure to use window-system-for-display to
14 figure out how to create a frame on a given display.
15 (display-mouse-p): Look for frame-type w32, not a particular
16 system-type.
17
18 * loadup.el: Load w32 lisp code when we have the w32 feature.
19
20 * mouse.el (mouse-yank-primarY): Look for frame-type w32, not
21 system-type windows-nt.
22
23 * server.el (server-create-window-system-frame): Look for window
24 type.
25 (server-proces-filter): Only force a window system when windows-nt
26 _and_ w32. Explain why.
27
28 * simple.el (normal-erase-is-backspace-mode): Add w32 to the list
29 of window systems we configure for the mode.
30
31 * startup.el (command-line): Mark window system is initialized
32 after we've done it.
33
34 * common-win.el (x-select-text): Look for w32, not windows-nt.
35
36 * ns-win.el: Require cl-lib. Add ourselves to
37 display-format-alist.
38 (ns-initialize-window-system): Assert we're not initialized twice.
39
40 * w32-win.el: Enable lexical binding; require cl-lib; add
41 ourselves to display-format-alist.
42 (w32-handle-dropped-file): Convert incoming dropped files from
43 Windows paths to Cygwin ones before passing them on to the rest of
44 Emacs.
45 (w32-drag-n-drop): New paramter new-frame. Simplify logic.
46 (w32-initialize-window-system): Assert we're not initialized twice.
47
48 * x-win.el: Require cl-lib; add ourselves to display-format-alist.
49 (x-initialize-window-system): Assert we're not initialized twice.
50
51 * w32-common-fns.el: New File.
52 (w32-version, w32-using-nt, w32-get-clipboard-data)
53 (w32-set-clipboard-data, x-set-selection, x-get-selection)
54 (w32-charset-info-alist, x-last-selected, text)
55 (x-get-selection-value, x-selection-value): Move here.
56
57 * w32-fns.el: Require w32-common-fns.
58 (w32-version, w32-using-nt, w32-get-clipboard-data)
59 (w32-set-clipboard-data, x-set-selection, x-get-selection)
60 (w32-charset-info-alist, x-last-selected, text)
61 (x-get-selection-value, x-selection-value): Move to
62 w32-common-fns.
63
64 * w32-vars.el:
65 (w32-allow-system-shell, w32-system-shells): Define only in
66 non-cygwin case.
67
12012-10-07 Stefan Monnier <monnier@iro.umontreal.ca> 682012-10-07 Stefan Monnier <monnier@iro.umontreal.ca>
2 69
3 * subr.el (read-passwd-map): Don't use `defconst' (bug#12597). 70 * subr.el (read-passwd-map): Don't use `defconst' (bug#12597).
diff --git a/src/ChangeLog b/src/ChangeLog
index 29e831a2eb8..2a312199512 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,141 @@
12012-10-08 Daniel Colascione <dancol@dancol.org>
2
3 * xfaces.c, xdisp.c, window.c, w32xfns.c, w32term.h, w32term.c,
4 w32select.h w32select.c, w32proc.c, w32menu.c, w32inevt.c,
5 w32help.c, w32font.c, w32font.c, w32fns.c, w32console.c, w32.h,
6 w32.c, unexw32.c, termhooks.h, process.c, menu.c, keyboard.h,
7 keyboard.c, image.c, frame.h, frame.c, fontset.c, font.h, font.c,
8 emacs.c, dispextern.h, cygw32.h, cygw32.c, conf_post.h,
9 Makefile.in: use HAVE_NTGUI for W32 GUI and WINDOWSNT for the
10 operating system. defined(HAVE_NTGUI) && !defined(WINDOWSNT) is
11 now a supported configuration.
12
13 * Makefile.in: consolidate image variables into LIBIMAGE; add
14 W32_OBJ and W32_LIBS. Compile new files.
15
16 * conf_post.h:
17 (_DebPrint) declare tracing facility for W32 debugging. We need
18 to unify tracing later.
19
20 (NTGUI_UNICODE) Define when compiling for Cygwin to allow the
21 unconditional use of W32 Unicode functions. Cygwin runs only on
22 100% Unicode operating systems.
23
24 * cygw32.c: New file. Define Cygwin-specific facilities.
25 (Fcygwin_convert_path_to_windows)
26 (Fcygwin_convert_path_from_windows): New user functions for
27 accessing Cygwin path-munging routines.
28
29 * cygw32.h: New file.
30 (WCSDATA, to_unicode, from_unicode): Define facilities for storing
31 UTF-16LE strings temporarily inside non-Lisp-visible string
32 objects.
33
34 (w32_strerror): Just what it says on the tin.
35
36 * emacs.c: Make the NS fork-then-exec code for daemon-launching
37 also run for Cygwin; both systems have the same problem with using
38 GUI facilities in a forked child. Also call syms_of_cygw32,
39 syms_of_w32select in correct places.
40
41 (DAEMON_MUST_EXEC): new macro defined to signal that a platform
42 needs fork-then-exec for daemon launching.
43
44 * font.h: Include frame.h.
45
46 * image.c: Use the image library cache machinery only when we're
47 compiling for native WINDOWSNT; Cygwin can use shared libraries
48 like any other Unixlike system.
49
50 * keyboard.c: Clarify a comment regarding the input loop.
51
52 * menu.c: When NTGUI_UNICODE is defined, use Unicode menu
53 functions directly instead of trying to detect at runtime that our
54 host operating system supports them. We make this change for two
55 reasons: Cygwin lacks support for the multibyte character
56 conversion functions used by the legacy menu code, and Cygwin
57 never needs to rely on non-Unicode APIs.
58
59 * unexw32.c (hinst): Declare extern.
60
61 * w32.c: Change header order;
62 (w32_strerror): Move to w32fns.c because we need it for
63 non-WINDOWSNT builds.
64
65 * w32.h: Add #error macro to make sure we don't include w32.h for
66 Cygwin builds. Remove w32select declarations.
67
68 * w32console.c (w32_sys_ring_bell, Fset_message_beep): Move to
69 w32fns.c. w32console.c is WINDOWSNT-only.
70
71 * w32fns.c: Include cygw32.h or w32.h depending on CYGWIN; more
72 NTGUI_UNICODE tweaks. (See above.) Change _snprintf to the more
73 POSIXy alternative.
74 (faked_key, sysinfo_cache, osinfo_cahce, syspage_mask)
75 (w32_major_version, w32_minor_version, w32_build_number)
76 (os_subtype, sound_type): Define here
77 (w32_defined_color): Make color parameter const for consistency
78 with other _defined_color functions.
79 (w32_createwindow): Unconditionally call w32_init_class instead of
80 doing so only when hprevinst is non-NULL. Plumbing hprevinst
81 through the code is complex and unnecessary because class
82 registration is practically free.
83 (w32_name_of_message): New EMACSDEBUG-only function.
84 (Fset_message_beep): Move here
85 (Fx_open_connection): Require that the display name for Windows be
86 "w32" for consistency, emacsclient disambiguation, and maybe, one
87 day, multi-window-system support.
88 (file_dialog_callback): NTGUI_UNICODE changes; encode and decode
89 Cygwin files for W32 GUI facilities, since these clearly don't
90 expect Cygwin names.
91 (_DebPrint): Define.
92 (w32_strerror, w32_console_toggle_lock_key, w32_kbd_mods_to_emacs)
93 (w32_kbd_patch_key, w32_sys_ring_bell): Move here.
94 (Ssystem_move_file_to_trash): Define only for native WINDOWSNT.
95 (w32_last_error): Remove.
96
97 * w32font.c: Define _strlwr to strlwr for non-WINDOWSNT builds.
98
99 * w32heap.c (syspage_mask): Declare here.
100 (cache_system_info): Remove.
101
102 * w32inevt.c (faked_key): Define globally, not statically.
103 (w32_kbd_mods_to_emacs, w32_kbd_patch_key, faked_key)
104 (w32_console_toggle_lock_key): Move to w32fns.c.
105
106 * w32menu.c: Include setjmp.h. NTGUI_UNICODE changes throughout.
107
108 * w32proc.c (_DebPrint): Move to w32fns.c.
109 * w32select.c: Include string.h, stdio.h for Cygwin.
110 * w32select.h: New File.
111
112 * w32term.c: Include io.h for non-CYGWIN builds; needed for
113 get_osfhandle.
114 (w32_message_fd): New variable. Under Cygwin, holds the file
115 descriptor the system used to tell us about pending thread
116 messages.
117
118 (w32_init_term): Remove incorrect calls to fcntl and init_sigio
119 that prevented compilation under non-WINDOWSNT systems.
120
121 (w32_initialize): Open /dev/windows and assign it to
122 w32_message_fd. Provide w32 feature.
123
124 * w32term.h: Include frame.h, atimer.h. Declare various frame functions.
125 (WM_EMACS_INPUT_READY): add.
126 (prepend_msg, w32_message_fd): Declare globally.
127
128 * w32xfns.c:
129 (keyboard_handle): Use only when WINDOWSNT.
130 (notify_msg_ready): New function. Posts a message to the main
131 thread's message queue under CYGWIN, which wakes up the main
132 thread from select(2) by making the /dev/windows file descriptor
133 ready. Under WINDOWSNT, it sets an event the same way the old
134 code did.
135
136 (post, prepend_msg): Actually call notify_msg_ready instead of
137 setting the input event directly.
138
12012-10-07 Eli Zaretskii <eliz@gnu.org> 1392012-10-07 Eli Zaretskii <eliz@gnu.org>
2 140
3 * ralloc.c (relinquish): If a heap is ready to be relinquished, 141 * ralloc.c (relinquish): If a heap is ready to be relinquished,