aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog373
1 files changed, 366 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 492b966a256..0b274598986 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,10 +1,368 @@
12012-10-11 Paul Eggert <eggert@cs.ucla.edu>
2
3 * marker.c (cached_modiff): EMACS_INT, not int.
4
5 * w32select.c (waiting_for_input): Declare by including "keyboard.h"
6 instead of having a wrong decl.
7 * nsmenu.m (waiting_for_input): Remove wrong decl.
8
92012-10-10 Paul Eggert <eggert@cs.ucla.edu>
10
11 keyboard.c, keymap.c: Use bool for booleans.
12 * dispnew.c (sit_for): Distinguish between 3-way display_option
13 and boolean do_display.
14 * keyboard.c (single_kboard, this_command_key_count_reset)
15 (waiting_for_input, echoing, immediate_quit, input_pending)
16 (interrupt_input, interrupts_deferred, pop_kboard)
17 (temporarily_switch_to_single_kboard, ignore_mouse_drag_p)
18 (command_loop_1, adjust_point_for_property)
19 (safe_run_hooks_error, input_polling_used, read_char):
20 (help_char_p, readable_events, kbd_buffer_events_waiting)
21 (kbd_buffer_get_event, timer_check_2, make_lispy_event)
22 (lucid_event_type_list_p, get_input_pending):
23 (gobble_input, menu_separator_name_p, menu_bar_item)
24 (parse_menu_item, parse_tool_bar_item, read_char_x_menu_prompt)
25 (read_char_minibuf_menu_prompt, access_keymap_keyremap)
26 (keyremap_step, test_undefined, read_key_sequence)
27 (detect_input_pending, detect_input_pending_ignore_squeezables)
28 (detect_input_pending_run_timers, requeued_events_pending_p)
29 (quit_throw_to_read_char, Fset_input_interrupt_mode):
30 * keymap.c (get_keymap, keymap_parent, keymap_memberp)
31 (access_keymap_1, access_keymap, map_keymap, get_keyelt)
32 (Fdefine_key, Flookup_key, struct accessible_keymaps_data)
33 (accessible_keymaps_1, Fkey_description, push_key_description):
34 (shadow_lookup, struct where_is_internal_data)
35 (where_is_internal, Fwhere_is_internal, where_is_internal_1)
36 (Fdescribe_buffer_bindings, describe_map_tree, struct describe_map_elt)
37 (describe_map, describe_vector):
38 * menu.c (single_menu_item):
39 * nsmenu.m (ns_update_menubar):
40 * process.c (wait_reading_process_output):
41 * search.c (scan_buffer, scan_newline):
42 Use bool for boolean.
43 * keyboard.c (timers_run, swallow_events)
44 (detect_input_pending_run_timers):
45 * process.c (wait_reading_process_output):
46 Use unsigned for counter where wraparound-on-overflow is desired,
47 since unsigned is guaranteed to have that behavior and signed is not.
48 (read_char): Use ptrdiff_t for string length.
49 (get_input_pending): Remove first argument, since it was always
50 the same pointer-to-int (now pointer-to-boolean) &input_pending,
51 and behave as if it had that value. Return new value of
52 input_pending. All callers changed.
53 * keyboard.h (struct kboard): Use unsigned : 1 for boolean member
54 immediate_echo. Use ptrdiff_t for echo_after_prompt, since it's
55 a string length.
56 * keymap.c (push_key_description): Omit last arg, which was always 1.
57 All callers changed.
58
59 * regex.c (immediate_quit) [emacs]: Remove duplicate decl.
60
612012-10-10 Juanma Barranquero <lekktu@gmail.com>
62
63 * makefile.w32-in ($(BLD)/dispnew.$(O), $(BLD)/indent.$(O))
64 ($(BLD)/term.$(O)): Update dependencies.
65
662012-10-10 Dmitry Antipov <dmantipov@yandex.ru>
67
68 * alloc.c (mark_object): Use meaningful PVEC_NORMAL_VECTOR.
69 * lisp.h (enum pvec_type): Adjust comments and omit explicit
70 initializer for PVEC_NORMAL_VECTOR.
71
722012-10-10 Paul Eggert <eggert@cs.ucla.edu>
73
74 Clean out old termopts cruft.
75 * termopts.h (flow_control, meta_key): Remove unused decls.
76 * dispnew.c, indent.c, nsterm.m, term.c, xsettings.c, xsmfns.c:
77 Don't include termopts.h.
78
792012-10-10 Dmitry Antipov <dmantipov@yandex.ru>
80
81 * alloc.c (gc_sweep): Use pointer-to-a-pointer loop for buffers.
82
832012-10-10 Paul Eggert <eggert@cs.ucla.edu>
84
85 * commands.h (immediate_quit): Remove duplicate decl.
86
872012-10-09 Jan Djärv <jan.h.d@swipnet.se>
88
89 * nsfont.m (Vfonts_in_cache): Remove, not needed as font.c handles
90 caching.
91 (nsfont_open): Remove setting of Vfonts_in_cache.
92 (syms_of_nsfont): Remove initialization of Vfonts_in_cache
93
942012-10-09 Eli Zaretskii <eliz@gnu.org>
95
96 * w32fns.c (w32_last_error): Change the return value to DWORD, to
97 match what GetLastError returns. Explain why the function is
98 needed.
99
100 * frame.c (delete_frame): Rename local variable 'tooltip_frame' to
101 'is_tooltip_frame', to avoid confusion with its global namesake.
102
1032012-10-08 Daniel Colascione <dancol@dancol.org>
104
105 * xdisp.c (start_hourglass): Call w32_note_current_window when
106 HAVE_NTGUI, not just WINDOWSNT, resolving a problem in the cygw32
107 build that caused Emacs to display the hourglass cursor forever.
108
109 * w32fns.c (Fx_display_color_cells): Instead of using NCOLORS,
110 which is broken under remote desktop, calculate the number of
111 colors available for a display based on the display's number of
112 planes and number of bits per pixel per plane. (bug#10397).
113
1142012-10-08 Jan Djärv <jan.h.d@swipnet.se>
115
116 * nsfont.m (Vfonts_in_cache): New variable.
117 (nsfont_open): Use unsignedLongLongValue for cache in case wide ints
118 are used. Add cached fonts to Vfonts_in_cache.
119 (syms_of_nsfont): Initialize and staticpro Vfonts_in_cache.
120
1212012-10-08 Juanma Barranquero <lekktu@gmail.com>
122
123 * makefile.w32-in (LOCAL_FLAGS): Don't define HAVE_NTGUI, it's now
124 in nt/config.nt.
125 (FONT_H): Define after FRAME_H.
126 ($(BLD)/emacs.$(O), $(BLD)/process.$(O), $(BLD)/w32heap.$(O)):
127 Update dependencies.
128
129 * w32term.c: Remove leftover declaration of keyboard_codepage.
130
1312012-10-08 Eli Zaretskii <eliz@gnu.org>
132
133 * makefile.w32-in (FONT_H): Add $(FRAME_H).
134 (W32TERM_H): Add $(ATIMER_H) and $(FRAME_H).
135 ($(BLD)/emacs.$(O), $(BLD)/w32console.$(O)): Update dependencies.
136 (GLOBAL_SOURCES): Add cygw32.c.
137 ($(BLD)/unexw32.$(O)):
138 ($(BLD)/w32.$(O)):
139 ($(BLD)/w32console.$(O)):
140 ($(BLD)/w32fns.$(O)):
141 ($(BLD)/w32heap.$(O)):
142 ($(BLD)/w32menu.$(O)):
143 ($(BLD)/w32proc.$(O)): Add w32common.h.
144
145 * w32fns.c (w32_color_map_lookup, x_to_w32_color): Argument is now
146 'const char *'.
147 (x_to_w32_color): Don't modify the argument, modify a copy instead.
148
1492012-10-08 Daniel Colascione <dancol@dancol.org>
150
151 * w32term.h (WM_EMACS_BRINGTOTOP, WM_EMACS_INPUT_READY)
152 (WM_EMACS_END): Change WM_EMACS_BRINGTOTOP from 22 to 21 to close
153 accidental message numbering hole. Change other messages to
154 match.
155
156 * w32select.h (HAVE_W32SELECT): Remove.
157
158 * w32select.c, w32proc.c, w32menu.c, w32console.c, w32.c: Include
159 w32common.h instead of w32heap.h
160
161 * w32heap.h (ROUND_UP, ROUND_DOWN, get_page_size)
162 (get_allocation_unit, get_processor_type, get_w32_major_version)
163 (get_w32_minor_version, sysinfo_cache, osinfo_cache)
164 (w32_major_version, w32_minor_version, w32_build_number, OS_9X)
165 (OS_NT, os_subtype, cache_system_info): Move declarations to
166 w32common.
167
168 * w32heap.c: Include w32common.h.
169 (sysinfo_cache, syspage_mask, osinfo_cache, w32_major_version)
170 (w32_minor_version, w32_build_number, w32_subtype): Remove
171 duplicate definitions.
172
173 * w32fns.c: Include w32common.h; include w32heap.h only in
174 WINDOWSNT.
175
176 (Fx_file_dialog): Clarify comment on GetOpenFileName structure.
177 Use `report_file_error' instead of `error' in order to better
178 inform users of what went wrong. Increase NTGUI_UNICODE file
179 dialog box file name length to 32k, the maximum allowed by the NT
180 kernel.
181
182 * w32common.h: New file.
183 (ROUND_UP, ROUND_DOWN, get_page_size)
184 (get_allocation_unit, get_processor_type, get_w32_major_version)
185 (get_w32_minor_version, sysinfo_cache, osinfo_cache)
186 (w32_major_version, w32_minor_version, w32_build_number, OS_9X)
187 (OS_NT, os_subtype, cache_system_info): Move here.
188
189 * unexw32.c, unexcw.c: Include w32common.h.
190
191 * emacs.c (main): Use (defined (WINDOWSNT) || defined
192 HAVE_NTGUI) instead of removed HAVE_W32SELECT to decide whether
193 to call syms_of_w32select.
194
195 * cygw32.h: Remove obsolete EXFUN declarations.
196
197 * cygw32.c (Qutf_16_le): Rename to Qutf_16le.
198
199 * Makefile.in (SOME_MACHINE_OBJECTS): Reverse accidental removal
200 of w32inevt.o from SOME_MACHINE_OBJECTS.
201
2022012-10-08 Daniel Colascione <dancol@dancol.org>
203
204 * image.c: Permanent fix for JPEG compilation issue --- limit
205 jpeglib `boolean' redefinition to Cygwin builds.
206
2072012-10-08 Eli Zaretskii <eliz@gnu.org>
208
209 * image.c (CHECK_LIB_AVAILABLE): Remove, no longer used.
210
211 * emacs.c (DAEMON_MUST_EXEC) [HAVE_NTGUI]: Define this only on
212 Cygwin.
213
2142012-10-08 Daniel Colascione <dancol@dancol.org>
215
216 * xfaces.c, xdisp.c, window.c, w32xfns.c, w32term.h, w32term.c,
217 w32select.h w32select.c, w32proc.c, w32menu.c, w32inevt.c,
218 w32help.c, w32font.c, w32font.c, w32fns.c, w32console.c, w32.h,
219 w32.c, unexw32.c, termhooks.h, process.c, menu.c, keyboard.h,
220 keyboard.c, image.c, frame.h, frame.c, fontset.c, font.h, font.c,
221 emacs.c, dispextern.h, cygw32.h, cygw32.c, conf_post.h,
222 Makefile.in: use HAVE_NTGUI for W32 GUI and WINDOWSNT for the
223 operating system. defined(HAVE_NTGUI) && !defined(WINDOWSNT) is
224 now a supported configuration.
225
226 * Makefile.in: consolidate image variables into LIBIMAGE; add
227 W32_OBJ and W32_LIBS. Compile new files.
228
229 * conf_post.h:
230 (_DebPrint) declare tracing facility for W32 debugging. We need
231 to unify tracing later.
232
233 (NTGUI_UNICODE) Define when compiling for Cygwin to allow the
234 unconditional use of W32 Unicode functions. Cygwin runs only on
235 100% Unicode operating systems.
236
237 * cygw32.c: New file. Define Cygwin-specific facilities.
238 (Fcygwin_convert_path_to_windows)
239 (Fcygwin_convert_path_from_windows): New user functions for
240 accessing Cygwin path-munging routines.
241
242 * cygw32.h: New file.
243 (WCSDATA, to_unicode, from_unicode): Define facilities for storing
244 UTF-16LE strings temporarily inside non-Lisp-visible string
245 objects.
246
247 (w32_strerror): Just what it says on the tin.
248
249 * emacs.c: Make the NS fork-then-exec code for daemon-launching
250 also run for Cygwin; both systems have the same problem with using
251 GUI facilities in a forked child. Also call syms_of_cygw32,
252 syms_of_w32select in correct places.
253
254 (DAEMON_MUST_EXEC): new macro defined to signal that a platform
255 needs fork-then-exec for daemon launching.
256
257 * font.h: Include frame.h.
258
259 * image.c: Use the image library cache machinery only when we're
260 compiling for native WINDOWSNT; Cygwin can use shared libraries
261 like any other Unixlike system.
262
263 * keyboard.c: Clarify a comment regarding the input loop.
264
265 * menu.c: When NTGUI_UNICODE is defined, use Unicode menu
266 functions directly instead of trying to detect at runtime that our
267 host operating system supports them. We make this change for two
268 reasons: Cygwin lacks support for the multibyte character
269 conversion functions used by the legacy menu code, and Cygwin
270 never needs to rely on non-Unicode APIs.
271
272 * unexw32.c (hinst): Declare extern.
273
274 * w32.c: Change header order;
275 (w32_strerror): Move to w32fns.c because we need it for
276 non-WINDOWSNT builds.
277
278 * w32.h: Add #error macro to make sure we don't include w32.h for
279 Cygwin builds. Remove w32select declarations.
280
281 * w32console.c (w32_sys_ring_bell, Fset_message_beep): Move to
282 w32fns.c. w32console.c is WINDOWSNT-only.
283
284 * w32fns.c: Include cygw32.h or w32.h depending on CYGWIN; more
285 NTGUI_UNICODE tweaks. (See above.) Change _snprintf to the more
286 POSIXy alternative.
287 (faked_key, sysinfo_cache, osinfo_cahce, syspage_mask)
288 (w32_major_version, w32_minor_version, w32_build_number)
289 (os_subtype, sound_type): Define here
290 (w32_defined_color): Make color parameter const for consistency
291 with other _defined_color functions.
292 (w32_createwindow): Unconditionally call w32_init_class instead of
293 doing so only when hprevinst is non-NULL. Plumbing hprevinst
294 through the code is complex and unnecessary because class
295 registration is practically free.
296 (w32_name_of_message): New EMACSDEBUG-only function.
297 (Fset_message_beep): Move here
298 (Fx_open_connection): Require that the display name for Windows be
299 "w32" for consistency, emacsclient disambiguation, and maybe, one
300 day, multi-window-system support.
301 (file_dialog_callback): NTGUI_UNICODE changes; encode and decode
302 Cygwin files for W32 GUI facilities, since these clearly don't
303 expect Cygwin names.
304 (_DebPrint): Define.
305 (w32_strerror, w32_console_toggle_lock_key, w32_kbd_mods_to_emacs)
306 (w32_kbd_patch_key, w32_sys_ring_bell): Move here.
307 (Ssystem_move_file_to_trash): Define only for native WINDOWSNT.
308 (w32_last_error): Remove.
309
310 * w32font.c: Define _strlwr to strlwr for non-WINDOWSNT builds.
311
312 * w32heap.c (syspage_mask): Declare here.
313 (cache_system_info): Remove.
314
315 * w32inevt.c (faked_key): Define globally, not statically.
316 (w32_kbd_mods_to_emacs, w32_kbd_patch_key, faked_key)
317 (w32_console_toggle_lock_key): Move to w32fns.c.
318
319 * w32menu.c: Include setjmp.h. NTGUI_UNICODE changes throughout.
320
321 * w32proc.c (_DebPrint): Move to w32fns.c.
322 * w32select.c: Include string.h, stdio.h for Cygwin.
323 * w32select.h: New File.
324
325 * w32term.c: Include io.h for non-CYGWIN builds; needed for
326 get_osfhandle.
327 (w32_message_fd): New variable. Under Cygwin, holds the file
328 descriptor the system used to tell us about pending thread
329 messages.
330
331 (w32_init_term): Remove incorrect calls to fcntl and init_sigio
332 that prevented compilation under non-WINDOWSNT systems.
333
334 (w32_initialize): Open /dev/windows and assign it to
335 w32_message_fd. Provide w32 feature.
336
337 * w32term.h: Include frame.h, atimer.h. Declare various frame functions.
338 (WM_EMACS_INPUT_READY): add.
339 (prepend_msg, w32_message_fd): Declare globally.
340
341 * w32xfns.c:
342 (keyboard_handle): Use only when WINDOWSNT.
343 (notify_msg_ready): New function. Posts a message to the main
344 thread's message queue under CYGWIN, which wakes up the main
345 thread from select(2) by making the /dev/windows file descriptor
346 ready. Under WINDOWSNT, it sets an event the same way the old
347 code did.
348
349 (post, prepend_msg): Actually call notify_msg_ready instead of
350 setting the input event directly.
351
3522012-10-07 Eli Zaretskii <eliz@gnu.org>
353
354 * ralloc.c (relinquish): If a heap is ready to be relinquished,
355 but it still has blocs in it, don't return it to the system,
356 instead of aborting. (Bug#12402)
357
12012-10-07 Jan Djärv <jan.h.d@swipnet.se> 3582012-10-07 Jan Djärv <jan.h.d@swipnet.se>
2 359
3 * nsterm.m (ns_dumpglyphs_image): Only draw slize of image (Bug#12506). 360 * nsterm.m (ns_dumpglyphs_image): Only draw slice of image (Bug#12506).
4 361
5 * nsterm.m (ns_update_auto_hide_menu_bar): Remove defintion of 362 * nsterm.m (ns_update_auto_hide_menu_bar): Remove defintion of
6 MAC_OS_X_VERSION_10_6. 363 MAC_OS_X_VERSION_10_6.
7 (syms_of_nsterm): Remove comment about Panther and above for ns-antialias-text. 364 (syms_of_nsterm): Remove comment about Panther and above for
365 ns-antialias-text.
8 * nsterm.h (MAC_OS_X_VERSION_10_3, onTiger): Remove. 366 * nsterm.h (MAC_OS_X_VERSION_10_3, onTiger): Remove.
9 (EmacsApp): Remove check for >= MAC_OS_X_VERSION_10_4. 367 (EmacsApp): Remove check for >= MAC_OS_X_VERSION_10_4.
10 (struct nsfont_info): Remove check for >= MAC_OS_X_VERSION_10_3. 368 (struct nsfont_info): Remove check for >= MAC_OS_X_VERSION_10_3.
@@ -12,7 +370,8 @@
12 * nsselect.m (ns_string_from_pasteboard): Remove check for >= 370 * nsselect.m (ns_string_from_pasteboard): Remove check for >=
13 MAC_OS_X_VERSION_10_4. 371 MAC_OS_X_VERSION_10_4.
14 372
15 * nsmenu.m (fillWithWidgetValue:): Remove code for < MAC_OS_X_VERSION_10_2. 373 * nsmenu.m (fillWithWidgetValue:): Remove code for <
374 MAC_OS_X_VERSION_10_2.
16 375
17 * nsimage.m (setPixmapData, getPixelAtX, setAlphaAtX): Remove onTiger. 376 * nsimage.m (setPixmapData, getPixelAtX, setAlphaAtX): Remove onTiger.
18 377
@@ -21,13 +380,13 @@
21 380
22 * nsterm.m (ns_in_resize): Remove (Bug#12479). 381 * nsterm.m (ns_in_resize): Remove (Bug#12479).
23 (ns_resize_handle_rect, mouseDown, mouseUp, mouseDragged): Remove. 382 (ns_resize_handle_rect, mouseDown, mouseUp, mouseDragged): Remove.
24 (ns_clear_frame, sendEvent, windowDidResize, drawRect:): Remove ns_in_resize 383 (ns_clear_frame, sendEvent, windowDidResize, drawRect:): Remove
25 check. 384 ns_in_resize check.
26 (ns_clear_frame_area): Remove resize handle code. 385 (ns_clear_frame_area): Remove resize handle code.
27 386
28 * nsfns.m (ns_in_resize): Remove. 387 * nsfns.m (ns_in_resize): Remove.
29 (x_set_icon_name, ns_set_name, ns_set_name_as_filename): Remove ns_in_resize 388 (x_set_icon_name, ns_set_name, ns_set_name_as_filename): Remove
30 check. 389 ns_in_resize check.
31 390
322012-10-07 Paul Eggert <eggert@cs.ucla.edu> 3912012-10-07 Paul Eggert <eggert@cs.ucla.edu>
33 392