aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog737
1 files changed, 737 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1e25015da20..a8d6a4026a0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,738 @@
12012-09-04 Paul Eggert <eggert@cs.ucla.edu>
2
3 Be more systematic about _setjmp vs setjmp.
4 * alloc.c (test_setjmp, mark_stack):
5 * image.c (PNG_LONGJMP) [PNG_LIBPNG_VER < 10500]:
6 (PNG_JMPBUF) [! (PNG_LIBPNG_VER < 10500)]:
7 (png_load, my_error_exit, jpeg_load):
8 * process.c (send_process_trap, send_process):
9 Uniformly prefer _setjmp and _longjmp to setjmp and longjmp.
10 The underscored versions are up to 30x faster on some hosts.
11 Formerly, the code used setjmp+longjmp sometimes and
12 _setjmp+_longjmp at other times, with no particular reason to
13 prefer setjmp+longjmp.
14
152012-09-03 Paul Eggert <eggert@cs.ucla.edu>
16
17 Fix minor problem found by static checking.
18 * buffer.c (Fdelete_all_overlays): Return nil.
19
202012-09-03 Martin Rudalics <rudalics@gmx.at>
21
22 * buffer.c (Fdelete_all_overlays): New function.
23
242012-09-03 Chong Yidong <cyd@gnu.org>
25
26 * gtkutil.c: Add extern decl for Qxft.
27
282012-09-02 Paul Eggert <eggert@cs.ucla.edu>
29
30 * emacs.c, eval.c: Use bool for boolean.
31 * emacs.c (initialized, inhibit_window_system, running_asynch_code):
32 (malloc_using_checking) [DOUG_LEA_MALLOC]:
33 (display_arg) [HAVE_X_WINDOWS || HAVE_NS]:
34 (noninteractive, no_site_lisp, fatal_error_in_progress, argmatch)
35 (main, decode_env_path, Fdaemon_initialized):
36 * eval.c (call_debugger, Finteractive_p, interactive_p):
37 (unwind_to_catch, Fsignal, wants_debugger, skip_debugger)
38 (maybe_call_debugger, Fbacktrace):
39 * process.c (read_process_output, exec_sentinel):
40 Use bool for booleans.
41 * emacs.c (shut_down_emacs): Omit unused boolean argument NO_X.
42 All callers changed.
43 * eval.c (interactive_p): Omit always-true boolean argument
44 EXCLUDE_SUBRS_P. All callers changed.
45 * dispextern.h, lisp.h: Reflect above API changes.
46 * firstfile.c (dummy): Use the address of 'main', whose signature
47 won't change, instead of the address of 'initialize', whose
48 signature just changed from int to bool.
49 * lisp.h (fatal_error_in_progress): New decl of boolean, moved here ...
50 * msdos.c (fatal_error_in_progress): ... from here.
51 * xdisp.c (redisplaying_p): Now a boolean. Set it to 1 instead
52 of incrementing it.
53 (redisplay_internal, unwind_redisplay): Simply clear
54 REDISPLAYING_P when unwinding, instead of saving its previous,
55 always-false value and then restoring it.
56
57 Clean up some extern decls.
58 Mostly, this hoists extern decls out of .c files and into .h files.
59 That way, we're more likely to catch errors if the interfaces change.
60 * alloc.c [USE_GTK]: Include "gtkutil.h" so that we need not
61 declare xg_mark_data.
62 * dispextern.h (x_frame_parm_handlers):
63 * font.h (Qxft):
64 * lisp.h (Qlexical_binding, Qinternal_interpreter_environment)
65 (Qextra_light, Qlight, Qsemi_light, Qsemi_bold, Qbold, Qextra_bold)
66 (Qultra_bold, Qoblique, Qitalic):
67 Move extern decl here from .c file.
68 * alloc.c (xg_mark_data) [USE_GTK]:
69 * doc.c (Qclosure):
70 * eval.c (Qlexical_binding):
71 * fns.c (time) [!HAVE_UNISTD_H]:
72 * gtkutil.c (Qxft, Qnormal, Qextra_light, Qlight, Qsemi_light)
73 (Qsemi_bold, Qbold, Qextra_bold, Qultra_bold, Qoblique, Qitalic):
74 * image.c (Vlibrary_cache, QCloaded_from) [HAVE_NTGUI]:
75 * lread.c (Qinternal_interpreter_environment):
76 * minibuf.c (Qbuffer):
77 * process.c (QCfamily, QCfilter):
78 * widget.c (free_frame_faces):
79 * xfaces.c (free_frame_menubar) [USE_X_TOOLKIT]:
80 * xfont.c (x_clear_errors):
81 * xterm.c (x_frame_parm_handlers):
82 Remove now-redundant extern decls.
83 * keyboard.c, keyboard.h (ignore_mouse_drag_p) [USE_GTK || HAVE_NS]:
84 * xfaces.c (Qultra_light, Qreverse_oblique, Qreverse_italic):
85 Now static.
86 * xfaces.c: Remove unnecessary static decls.
87 * xterm.c (updating_frame): Remove decl of nonexistent object.
88
89 * Makefile.in (gl-stamp): Don't scan $(SOME_MACHINE_OBJECTS)
90 when building globals.h, as the objects that are not built on
91 this host are not needed to compile C files on this host.
92
932012-09-02 Jan Djärv <jan.h.d@swipnet.se>
94
95 * gtkutil.h: Remove prototype for x_wm_set_size_hint.
96
97 * frame.h: Add missing prototype for x_wm_set_size_hint.
98
992012-09-02 Paul Eggert <eggert@cs.ucla.edu>
100
101 * doc.c, editfns.c, insdel.c, intervals.c: Use bool for boolean.
102 * doc.c (read_bytecode_char, get_doc_string, reread_doc_file)
103 (Fdocumentation, Fdocumentation_property, Fsnarf_documentation)
104 (Fsubstitute_command_keys):
105 * editfns.c (region_limit, find_field, Fconstrain_to_field)
106 (save_excursion_save, save_excursion_restore)
107 (disassemble_lisp_time, decode_time_components, emacs_nmemftime)
108 (format_time_string, general_insert_function)
109 (make_buffer_string, make_buffer_string_both)
110 (Fsubst_char_in_region, Ftranslate_region_internal, Fformat):
111 * insdel.c (check_markers, gap_left, adjust_markers_for_insert)
112 (copy_text, insert_1, insert_1_both, insert_from_string)
113 (insert_from_string_before_markers, insert_from_string_1)
114 (insert_from_buffer, insert_from_buffer_1, replace_range)
115 (replace_range_2, del_range_1, del_range_byte, del_range_both)
116 (del_range_2, modify_region):
117 * intervals.c (intervals_equal, balance_possible_root_interval)
118 (adjust_intervals_for_insertion, merge_properties_sticky)
119 (graft_intervals_into_buffer, lookup_char_property)
120 (adjust_for_invis_intang, set_point_both)
121 (get_property_and_range, compare_string_intervals)
122 (set_intervals_multibyte_1, set_intervals_multibyte):
123 * keyboard.c (decode_timer):
124 Use bool for boolean.
125 * intervals.h, lisp.h, systime.h: Reflect above API changes.
126 * editfns.c (struct info): Use 1-bit unsigned bitfields for booleans.
127
1282012-09-02 Chong Yidong <cyd@gnu.org>
129
130 * keymap.c (push_key_description): Print M-TAB as C-M-i
131 (Bug#11758).
132
1332012-09-02 Juanma Barranquero <lekktu@gmail.com>
134
135 * makefile.w32-in (CCL_H, W32FONT_H): New macros.
136 (ATIMER_H, FONT_H, $(BLD)/alloc.$(O), $(BLD)/callproc.$(O))
137 ($(BLD)/editfns.$(O), $(BLD)/ccl.$(O), $(BLD)/chartab.$(O))
138 ($(BLD)/coding.$(O), $(BLD)/sysdep.$(O), $(BLD)/fontset.$(O))
139 ($(BLD)/sysdep.$(O), $(BLD)/w32fns.$(O), $(BLD)/keyboard.$(O))
140 ($(BLD)/w32term.$(O), $(BLD)/w32menu.$(O), $(BLD)/process.$(O))
141 ($(BLD)/w32font.$(O), $(BLD)/w32uniscribe.$(O)): Update dependencies.
142
1432012-09-01 Eli Zaretskii <eliz@gnu.org>
144
145 * w32uniscribe.c (uniscribe_shape): Handle correctly the case of
146 more than one grapheme cluster passed to the shaper: compute the
147 offset adjustment values separately for each cluster. (Bug#11860)
148
149 * image.c: Restore mistakenly removed inclusion of w32.h. Without
150 it, GCC doesn't see prototypes of w32_delayed_load, and complains
151 about implicit conversions from integer to pointer.
152
1532012-09-01 Daniel Colascione <dancol@dancol.org>
154
155 * w32fns.c (x_display_info_for_name): Prevent crash if w32 window
156 system used too early.
157
1582012-09-01 Paul Eggert <eggert@cs.ucla.edu>
159
160 Better seed support for (random).
161 * emacs.c (main): Call init_random.
162 * fns.c (Frandom): Set the seed from a string argument, if given.
163 Remove long-obsolete Gentzel cruft.
164 * lisp.h, sysdep.c (seed_random): Now takes address and size, not long.
165 (init_random): New function.
166
1672012-09-01 Daniel Colascione <dancol@dancol.org>
168
169 * xterm.h: Add header guards. Declare x_menubar_window_to_frame.
170 Remove x_set_frame_alpha, x_bitmap_icon, x_make_frame_visible,
171 x_make_frame_invisible, x_iconify_frame, x_free_frame_resources,
172 x_wm_set_size_hint, x_query_colors, x_real_positions,
173 x_set_menu_bar_lines, x_char_width, x_char_height, x_sync,
174 x_set_tool_bar_lines, x_activate_menubar, and free_frame_menubar,
175 all of which have been moved to common code.
176
177 * xfaces.c: Include TERM_HEADER instead of listing all possible
178 window-system headers.
179
180 * w32xfns.c (x_sync): Correct definition of x_sync (a no-op here)
181 to match header.
182
183 * w32term.h (FRAME_X_WINDOW): Use FRAME_W32_WINDOW instead of
184 directly accessing frame internals.
185
186 * w32font.h: Include font.h. Define syms_of_w32font and
187 globals_of_w32font.
188
189 * process.c: Include TERM_HEADER instead of listing all possible
190 window-system headers.
191
192 * nsterm.h: Remove declarations now in frame.h. Define
193 FRAME_X_SCREEN, FRAME_X_VISUAL.
194
195 * menu.c: Include TERM_HEADER instead of listing all possible
196 window-system headers.
197
198 * keyboard.h: Declare ignore_mouse_drag_p whenever we have a
199 window system.
200
201 * keyboard.c: Include TERM_HEADER instead of listing all possible
202 window-system headers.
203
204 * image.c: Include TERM_HEADER instead of listing all possible
205 window-system headers. Declare Vlibrary_cache when compiling for
206 Windows.
207
208 * gtkutil.h (xg_list_node_): Include xterm.h to pick up needed
209 window system declarations.
210
211 * frame.h: Move common functions here: set_frame_menubar,
212 x_set_window_size, x_sync, x_get_focus_frame,
213 x_set_mouse_position, x_set_mouse_pixel_position,
214 x_make_frame_visible, x_make_frame_invisible, x_iconify_frame,
215 x_char_width, x_char_height, x_pixel_width, x_pixel_height,
216 x_set_frame_alpha, x_set_menu_bar_lines, x_set_tool_bar_lines,
217 x_activate_menubar, x_real_positions, x_bitmap_icon,
218 x_set_menu_bar_lines, free_frame_menubar, x_free_frame_resources,
219 and x_query_colors.
220
221 * frame.c: Include TERM_HEADER instead of listing all possible
222 window-system headers.
223
224 * font.c: Include TERM_HEADER instead of listing all possible
225 window-system headers.
226
227 * emacs.c: Include TERM_HEADER.
228
229 * dispnew.c: Include TERM_HEADER instead of listing all possible
230 window-system headers.
231
232 * ccl.h: Include character.h.
233
234 * Makefile.in: Define WINDOW_SYSTEM_OBJ to hold objects needed for
235 the current window system; include in list of objects to link into
236 Emacs.
237
2382012-08-31 Dmitry Antipov <dmantipov@yandex.ru>
239
240 Remove mark_ttys function and fix tty_display_info initialization.
241 * lisp.h (mark_ttys): Remove prototype.
242 * alloc.c (Fgarbage_collect): Remove redundant (and the only) call
243 to mark_ttys because all possible values of 'top_frame' slot are
244 the frames which are reachable from Vframe_list.
245 * term.c (mark_ttys): Remove.
246 (init_tty): Safely initialize 'top_frame' slot with Qnil.
247
2482012-08-31 Dmitry Antipov <dmantipov@yandex.ru>
249
250 Change struct frame bitfields from unsigned char to unsigned.
251 * frame.h (struct frame): Change type of 'display_preempted',
252 'visible', 'iconified', 'has_minibuffer', 'wants_modeline',
253 'auto_raise', 'auto_lower', 'no_split', 'explicit_name',
254 'window_sizes_changed', 'mouse_moved' and 'pointer_invisible'
255 bitfields from unsigned char to unsigned.
256
2572012-08-31 Dmitry Antipov <dmantipov@yandex.ru>
258
259 Remove unused member of struct x_output and struct w32_output.
260 * xterm.h (struct x_output): Remove unused field 'needs_exposure'.
261 * w32term.h (struct w32_output): Likewise.
262
2632012-08-30 Jan Djärv <jan.h.d@swipnet.se>
264
265 * gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it
266 does not become zero (Bug#12234).
267
2682012-08-30 Paul Eggert <eggert@cs.ucla.edu>
269
270 * dispnew.c (update_frame_1): Pacify gcc -Wstrict-overflow
271 for GCC 4.7.1 x86-64.
272
2732012-08-30 Glenn Morris <rgm@gnu.org>
274
275 * lread.c (init_lread): For out-of-tree builds, only add the
276 source directory's site-lisp dir to the load-path if it exists,
277 consistent with in-tree builds. (Bug#12302)
278
2792012-08-28 Jan Djärv <jan.h.d@swipnet.se>
280
281 * nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize
282 button_values to NULL. Call setStykeMask so dialogs get a close button.
283 (windowShouldClose:): Set window_closed.
284 (dealloc): New member, free button_values.
285 (process_dialog:): Make member function. Remove window argument,
286 replace window with self. Count buttons and allocate and store values
287 in button_values.
288 (addButton:value:row:): value is int with the name tag. Call setTag
289 with tag. Remove return self, declare return value as void.
290 (addString:row:): Remove return self, declare return value as void.
291 (addSplit): Remove return self, declare return value as void.
292 (clicked:): Remove return self, declare return value as void.
293 Set dialog_return to button_values[seltag]. Code formatting change.
294 (initFromContents:isQuestion:): Adjust call to process_dialog.
295 Code formatting change.
296 (timeout_handler:): Set timer_fired to YES.
297 (runDialogAt:): Set timer_fired to NO.
298 Handle click on close button as quit.
299
300 * nsterm.h (EmacsDialogPanel): Make timer_fired BOOL.
301 Add window_closed and button_values. Add void as return value for
302 add(Button|String|Split). addButton takes int instead of Lisp_Object.
303 Add process_dialog as new member.
304
3052012-08-28 Eli Zaretskii <eliz@gnu.org>
306
307 * ralloc.c (free_bloc): Don't dereference a 'heap' structure if it
308 is not one of the heaps we manage. (Bug#12242)
309
3102012-08-28 Glenn Morris <rgm@gnu.org>
311
312 * eval.c (Fcalled_interactively_p): Doc fix. (Bug#11747)
313
3142012-08-28 Martin Rudalics <rudalics@gmx.at>
315
316 * window.c (Fset_window_configuration): Remove handling of
317 auto-buffer-name window parameter. Install revision of reverted
318 fix.
319
3202012-08-28 Dmitry Antipov <dmantipov@yandex.ru>
321
322 Do not allow to set major mode for a dead buffer.
323 * buffer.c (Fset_buffer_major_mode): Signal an error
324 if the buffer is dead.
325 (Fother_buffer, other_buffer_safely): Remove redundant
326 nested declaration.
327
3282012-08-28 Dmitry Antipov <dmantipov@yandex.ru>
329
330 Always use set_buffer_if_live to restore original buffer at unwind.
331 * buffer.h (record_unwind_current_buffer): New function.
332 * bytecode.c, dispnew.c, editfns.c, fileio.c, fns.c, insdel.c:
333 * keyboard.c, keymap.c, minibuf.c, print.c, process.c, textprop.c:
334 * undo.c, window.c: Adjust users.
335 * buffer.c (set_buffer_if_live): Fix comment.
336
3372012-08-28 Dmitry Antipov <dmantipov@yandex.ru>
338
339 Fix usage of set_buffer_internal.
340 * buffer.h (set_buffer_internal): Make it BUFFER_INLINE.
341 * buffer.c (set_buffer_if_live): Use set_buffer_internal.
342 * coding.c (decode_coding): Omit redundant test.
343 * fileio.c (decide_coding_unwind): Likewise.
344 * fns.c (secure_hash): Likewise.
345 * insdel.c (modify_region): Likewise.
346 * keyboard.c (command_loop_1): Likewise.
347 * print.c (PRINTFINISH): Likewise.
348 * xdisp.c (run_window_scroll_functions): Use set_buffer_internal.
349
3502012-08-27 Paul Eggert <eggert@cs.ucla.edu>
351
352 * dispnew.c: Use bool for boolean.
353 (frame_garbaged, display_completed, delayed_size_change)
354 (fonts_changed_p, add_window_display_history)
355 (add_frame_display_history, verify_row_hash)
356 (adjust_glyph_matrix, clear_window_matrices, glyph_row_slice_p)
357 (row_equal_p, realloc_glyph_pool)
358 (allocate_matrices_for_frame_redisplay)
359 (showing_window_margins_p)
360 (adjust_frame_glyphs_for_frame_redisplay)
361 (build_frame_matrix_from_leaf_window, make_current)
362 (mirrored_line_dance, mirror_line_dance, update_frame)
363 (update_window_tree, update_single_window)
364 (check_current_matrix_flags, update_window, update_text_area)
365 (update_window_line, set_window_update_flags, scrolling_window)
366 (update_frame_1, scrolling, buffer_posn_from_coords)
367 (do_pending_window_change, change_frame_size)
368 (change_frame_size_1, sit_for):
369 Use bool for boolean.
370 (clear_glyph_matrix_rows): Rename from enable_glyph_matrix_rows,
371 and remove last int (actually boolean) argument, which was always 0.
372 All callers changed.
373 * dispextern.h, frame.h, lisp.h: Reflect above API changes.
374 * dispextern.h (struct composition_it): Use bool for boolean.
375 (struct glyph_matrix): Don't assume buffer sizes can fit in 'int'.
376 (struct bidi_it): Use unsigned:1, not int, for boolean prev_was_pdf.
377 * dired.c (file_name_completion):
378 Use bool for boolean. (This was missed in an earlier change.)
379
3802012-08-27 Martin Rudalics <rudalics@gmx.at>
381
382 * window.c (Fset_window_configuration): Revert first part of
383 last change.
384
3852012-08-27 Jan Djärv <jan.h.d@swipnet.se>
386
387 * nsterm.h (NSPanel): New class variable dialog_return.
388
389 * nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize
390 dialog_return.
391 (windowShouldClose:): Use stop instead of stopModalWithCode.
392 (clicked:): Ditto, and also set dialog_return (Bug#12258).
393 (timeout_handler:): Use stop instead of abortModal. Send a dummy
394 event.
395 (runDialogAt:): Make ret Lisp_Object. Set it from dialog_return when
396 modal loop returns.
397
3982012-08-27 Paul Eggert <eggert@cs.ucla.edu>
399
400 * composite.c, data.c, dbusbind.c, dired.c: Use bool for booleans.
401 * composite.c (find_composition, composition_gstring_p)
402 (composition_reseat_it, find_automatic_composition):
403 * data.c (let_shadows_buffer_binding_p)
404 (let_shadows_global_binding_p, set_internal, make_blv)
405 (Fmake_variable_buffer_local, Fmake_local_variable)
406 (Fmake_variable_frame_local, arithcompare, cons_to_unsigned)
407 (cons_to_signed, arith_driver):
408 * dbusbind.c (xd_in_read_queued_messages):
409 * dired.c (directory_files_internal, file_name_completion):
410 Use bool for booleans.
411 * dired.c (file_name_completion):
412 * process.h (fd_callback):
413 Omit int (actually boolean) argument. It wasn't being used.
414 All uses changed.
415 * composite.h, lisp.h: Reflect above API changes.
416
417 * cmds.c, coding.c: Use bool for booleans.
418 * cmds.c (move_point, Fself_insert_command):
419 * coding.h (struct composition status, struct coding_system):
420 * coding.c (detect_coding_utf_8, encode_coding_utf_8)
421 (detect_coding_utf_16, encode_coding_utf_16, detect_coding_emacs_mule)
422 (emacs_mule_char, decode_coding_emacs_mule)
423 (encode_coding_emacs_mule, detect_coding_iso_2022)
424 (decode_coding_iso_2022, encode_invocation_designation)
425 (encode_designation_at_bol, encode_coding_iso_2022)
426 (detect_coding_sjis, detect_coding_big5, decode_coding_sjis)
427 (decode_coding_big5, encode_coding_sjis, encode_coding_big5)
428 (detect_coding_ccl, encode_coding_ccl, decode_coding_raw_text)
429 (encode_coding_raw_text, detect_coding_charset)
430 (decode_coding_charset, encode_coding_charset, detect_eol)
431 (detect_coding, get_translation_table, produce_chars)
432 (consume_chars, reused_workbuf_in_use)
433 (make_conversion_work_buffer, code_conversion_save)
434 (decode_coding_object, encode_coding_object)
435 (detect_coding_system, char_encodable_p)
436 (Funencodable_char_position, code_convert_region)
437 (code_convert_string, code_convert_string_norecord)
438 (Fset_coding_system_priority):
439 * fileio.c (Finsert_file_contents):
440 Use bool for booleans.
441 * coding.h, lisp.h: Reflect above API changes.
442 * coding.c: Remove unnecessary static function decls.
443 (detect_coding): Use unsigned, not signed, to copy an unsigned field.
444 (decode_coding, encode_coding, decode_coding_gap): Return 'void',
445 not a boolean 'int', since callers never look at the return value.
446 (ALLOC_CONVERSION_WORK_AREA): Assume caller returns 'void', not 'int'.
447 * coding.h (decoding_buffer_size, encoding_buffer_size)
448 (emacs_mule_string_char): Remove unused extern decls.
449 (struct iso_2022_spec, struct coding_system):
450 Use 'unsigned int : 1' for boolean fields, since there's more than one.
451 (struct emacs_mule_spec): Remove unused field 'full_support'.
452 All initializations removed.
453 * cmds.c (internal_self_insert): Don't assume EMACS_INT fits in 'int'.
454
4552012-08-27 Dmitry Antipov <dmantipov@yandex.ru>
456
457 Fix spare memory change (Bug#12286).
458 * alloc.c (mark_maybe_pointer): Handle MEM_TYPE_SPARE.
459 (valid_lisp_object_p): Likewise.
460
4612012-08-27 Martin Rudalics <rudalics@gmx.at>
462
463 * window.c (Fset_window_configuration): Record any window's old
464 buffer if it's replaced (see Bug#8789). If the new current
465 buffer doesn't appear in the selected window, go to its old
466 point (Bug#12208).
467
4682012-08-27 Dmitry Antipov <dmantipov@yandex.ru>
469
470 Special MEM_TYPE_SPARE to denote reserved memory.
471 * alloc.c (enum mem_type): New memory type.
472 (refill_memory_reserve): Use new type for spare memory.
473 This prevents live_cons_p and live_string_p from incorrect
474 detection of uninitialized objects from spare memory as live.
475
4762012-08-26 Paul Eggert <eggert@cs.ucla.edu>
477
478 Spelling fixes.
479 * Makefile.in (.PHONY): versioclean -> versionclean.
480
481 Remove unused external symbols.
482 * data.c (Qcons, Qfloat, Qmisc, Qstring, Qvector):
483 * window.c (Qwindow_valid_p, decode_valid_window):
484 Now static, not extern.
485 * data.c (Qinterval): Remove; unused.
486 (syms_of_data): Do not define 'interval'.
487 * lisp.h (Qinteger, Qstring, Qmisc, Qvector, Qfloat, Qcons):
488 * window.h (decode_valid_window):
489 Remove decls.
490
491 * character.c, charset.c, chartab.c: Use bool for booleans.
492 * character.c (lisp_string_width, string_count_byte8)
493 (string_escape_byte8):
494 * charset.c (charset_map_loaded, load_charset_map, read_hex):
495 (load_charset_map_from_file, map_charset_chars)
496 (Fdefine_charset_internal, define_charset_internal)
497 (Fdeclare_equiv_charset, find_charsets_in_text)
498 (Ffind_charset_region, char_charset, Fiso_charset):
499 * chartab.c (sub_char_table_ref, sub_char_table_ref_and_range)
500 (sub_char_table_set, sub_char_table_set_range)
501 (char_table_set_range, optimize_sub_char_table)
502 (map_sub_char_table):
503 Use bool for boolean.
504 * character.c (str_to_unibyte): Omit last boolean argument; it was
505 always 0. All callers changed.
506 * character.h, charset.h: Adjust to match previous changes.
507 * character.h (char_printable_p): Remove decl of nonexistent function.
508 * charset.h (struct charset): Members code_linear_p, iso_chars_96,
509 ascii_compatible_p, supplementary_p, compact_codes_p, unified_p
510 are all boolean, so make them single-bit bitfields.
511
512 * lisp.h (ASET): Remove attempt to detect side effects.
513 It was meant to be temporary and it often doesn't work,
514 because when IDX has side effects the behavior of IDX==IDX
515 is undefined. See Stefan Monnier in
516 <http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00762.html>.
517
5182012-08-26 Barry OReilly <gundaetiapo@gmail.com> (tiny change)
519
520 * lisp.h (functionp): New function (extracted from Ffunctionp).
521 (FUNCTIONP): Use it.
522 * eval.c (Ffunctionp): Use it.
523
5242012-08-25 Paul Eggert <eggert@cs.ucla.edu>
525
526 * xgselect.c (xg_select): Use auto storage for the GPollFD buffer
527 as that's faster and simpler than static storage. Don't bother
528 with the g_main_context_query overhead if g_main_context_pending
529 says no events are pending.
530 (gfds, gfds_size): Remove these static vars.
531 (xgselect_initialize): Remove; no longer needed.
532 All uses and decls removed.
533
534 * emacs.c (fatal_error_signal_hook): Remove.
535 All uses removed. This leftover from old code was always 0.
536
537 * casefiddle.c, casetab.c, category.c: Use bool for boolean.
538 * casefiddle.c (casify_object, casify_region):
539 * casetab.c (set_case_table):
540 * category.c, category.h (word_boundary_p):
541 * category.h (CHAR_HAS_CATEGORY):
542 Use bool for booleans, instead of int.
543
5442012-08-25 Eli Zaretskii <eliz@gnu.org>
545
546 * makefile.w32-in ($(BLD)/alloc.$(O)): Depend on $(GNU_LIB)/execinfo.h.
547
5482012-08-25 Paul Eggert <eggert@cs.ucla.edu>
549
550 On assertion failure, print backtrace if available.
551 * alloc.c [ENABLE_CHECKING]: Include <execinfo.h>.
552 (die) [ENABLE_CHECKING]: Print a backtrace if available.
553 * Makefile.in (LIB_EXECINFO): New macro.
554 (LIBES): Use it.
555
556 * bytecode.c, callint.c, callproc.c: Use bool for boolean.
557 * bytecode.c (exec_byte_code):
558 * callint.c (check_mark, Fcall_interactively):
559 * callproc.c (Fcall_process, add_env, child_setup, getenv_internal_1)
560 (getenv_internal, sync_process_alive, call_process_exited):
561 * lisp.h (USE_SAFE_ALLOCA):
562 Use bool for booleans, instead of int.
563 * lisp.h, process.h: Adjust prototypes to match above changes.
564 * callint.c (Fcall_interactively): Don't assume the mark's
565 offset fits in 'int'.
566
5672012-08-24 Paul Eggert <eggert@cs.ucla.edu>
568
569 * buffer.c, buffer.h: Use bool for boolean.
570 * buffer.c (reset_buffer_local_variables)
571 (buffer_lisp_local_variables, Fset_buffer_modified_p)
572 (Frestore_buffer_modified_p, Fset_buffer_multibyte):
573 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
574 (overlay_touches_p, overlay_strings, Foverlay_put)
575 (report_overlay_modification, call_overlay_mod_hooks):
576 (mmap_enlarge, mmap_set_vars):
577 * buffer.h (buffer_has_overlays, uppercasep, lowercasep):
578 Use bool for booleans, instead of int.
579 * buffer.c (compact_buffer, mmap_free_1): Return void, not int,
580 since the 1-or-0 return value is always ignored anyway.
581 (mmap_initialized_p):
582 * buffer.h (struct buffer_text.inhibit_shrinking): Now bool, not int.
583 * buffer.h, lisp.h: Adjust prototypes to match above changes.
584
5852012-08-23 Paul Eggert <eggert@cs.ucla.edu>
586
587 * bidi.c: Use bool for boolean.
588 This is a bit more readable, and makes the text segment of bidi.o
589 0.4% smaller on my platform (GCC 4.7.1 x86-64, Fedora 15).
590 Presumably it's faster too.
591 (bidi_initialized, bidi_ignore_explicit_marks_for_paragraph_level):
592 Now bool.
593 (bidi_cache_find_level_change, bidi_cache_iterator_state)
594 (bidi_unshelve_cache, bidi_init_it, bidi_count_bytes)
595 (bidi_char_at_pos, bidi_fetch_char, bidi_paragraph_init)
596 (bidi_explicit_dir_char, bidi_level_of_next_char)
597 (bidi_find_other_level_edge, bidi_move_to_visually_next):
598 Use bool for booleans, instead of int.
599 * dispextern.h (bidi_init_it, bidi_paragraph_init)
600 (bidi_unshelve_cache): Adjust decls to match code.
601
6022012-08-23 Martin Rudalics <rudalics@gmx.at>
603
604 * keyboard.c (Fposn_at_x_y): Do not allow internal window as
605 argument.
606
6072012-08-23 Paul Eggert <eggert@cs.ucla.edu>
608
609 * atimer.c, atimer.h (turn_on_atimers): Use bool for boolean.
610 * atimer.h: Include <stdbool.h>.
611
6122012-08-22 Dan Nicolaescu <dann@gnu.org>
613
614 * frame.h (FRAME_W32_P, FRAME_MSDOS_P, FRAME_NS_P): Change to
615 compile time tests instead of run time tests on systems that do
616 not use them.
617 (FRAME_MAC_P): Remove leftover from deleted code.
618 * frame.c (syms_of_frame): Remove leftover from deleted code.
619
6202012-08-22 Jan Djärv <jan.h.d@swipnet.se>
621
622 * nsterm.m (insertText:): Don't clear modifiers if code is space.
623
6242012-08-22 Paul Eggert <eggert@cs.ucla.edu>
625
626 * fontset.c (FONTSET_ADD): Return void, not Lisp_Object.
627 Otherwise, the compiler complains about (A?B:C) where B is void
628 and C is Lisp_Object. This fixes an incompatibility with Sun C 5.12.
629 (fontset_add): Return void, for FONTSET_ADD.
630
6312012-08-21 Paul Eggert <eggert@cs.ucla.edu>
632
633 * alloc.c: Use bool for booleans.
634 (gc_in_progress, abort_on_gc)
635 (setjmp_tested_p) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]:
636 (dont_register_blocks) [GC_MALLOC_CHECK]:
637 (suppress_checking) [ENABLE_CHECKING]: Now bool, not int.
638 (check_string_bytes, make_specified_string, memory_full)
639 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
640 (live_misc_p, live_vector_p, live_buffer_p, mark_maybe_object)
641 (mark_stack, valid_pointer_p, make_pure_string)
642 (Fgarbage_collect, survives_gc_p, gc_sweep):
643 Use bool for booleans, instead of int.
644 (test_setjmp) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]:
645 Remove unused local.
646 * alloc.c (PURE_POINTER_P):
647 * lisp.h (STRING_MULTIBYTE): Document that it returns a boolean.
648 * editfns.c (Fformat):
649 * fileio.c (Fexpand_file_name, Fsubstitute_in_file_name)
650 (Fdo_auto_save):
651 * fns.c (sweep_weak_table):
652 * lisp.h (suppress_checking, push_message, survives_gc_p)
653 (make_pure_string, gc_in_progress, abort_on_gc):
654 * lread.c (readchar, read1):
655 * print.c (Fprin1_to_string):
656 * xdisp.c (push_message):
657 Use bool for booleans affected directly or indirectly by
658 alloc.c's changes.
659
660 Make recently-introduced setters macros.
661 * fontset.c (set_fontset_id, set_fontset_name, set_fontset_ascii)
662 (set_fontset_base, set_fontset_frame, set_fontset_nofont_face)
663 (set_fontset_default, set_fontset_fallback): Rename from their
664 upper-case counterparts, and make them functions rather than macros.
665 This is more consistent with the other recently-introduced setters.
666 These don't need to be inline, since they're local.
667
6682012-08-21 Jan Djärv <jan.h.d@swipnet.se>
669
670 * nsterm.m (fd_handler:): Alloc and release a NSAutoreleasePool in
671 the loop (Bug#12247).
672
6732012-08-21 Paul Eggert <eggert@cs.ucla.edu>
674
675 * lisp.h (vcopy): Use memcpy rather than our own loop.
676 This fixes a performance regression introduced by the recent
677 addition of vcopy. This means 'vcopy' will need to be modified
678 for a copying collector, but that's OK. Also, tighten the
679 checking in the assertion.
680
6812012-08-21 Eli Zaretskii <eliz@gnu.org>
682
683 * w32uniscribe.c (uniscribe_shape): Fix producing gstring
684 components for RTL text (Bug#11860). Adjust X-OFFSET of each
685 non-base glyph for the width of the base character, according to
686 what x_draw_composite_glyph_string_foreground expects.
687 Generate WADJUST value according to composition_gstring_width's
688 expectations, to produce correct width of the composed character.
689 Reverse the sign of the DU offset produced by ScriptPlace.
690
6912012-08-21 Paul Eggert <eggert@cs.ucla.edu>
692
693 * dbusbind.c (xd_remove_watch): Do not assume C99 comments.
694
6952012-08-21 Dmitry Antipov <dmantipov@yandex.ru>
696
697 Avoid direct writes to contents member of struct Lisp_Vector.
698 * lisp.h (vcopy): New function to copy data into vector.
699 * dispnew.c (Fframe_or_buffer_changed_p): Use AREF and ASET.
700 * fns.c (Ffillarray): Use ASET.
701 * keyboard.c (timer_check_2): Use AREF and ASET.
702 (append_tool_bar_item, Frecent_keys): Use vcopy.
703 * lread.c (read_vector): Use ASET.
704 * msdos.c (Frecent_doskeys): Use vcopy.
705 * xface.c (Finternal_copy_lisp_face): Use vcopy.
706 (Finternal_merge_in_global_face): Use ASET and vcopy.
707 * xfont.c (xfont_list_pattern): Likewise.
708
7092012-08-21 Martin Rudalics <rudalics@gmx.at>
710
711 * window.c (Fwindow_point): For the selected window always return
712 the position of its buffer's point.
713 (Fset_window_point): For the selected window always go in its
714 buffer to the specified position.
715
7162012-08-21 Dmitry Antipov <dmantipov@yandex.ru>
717
718 Setter macros for fontsets.
719 * fontset.c (SET_FONTSET_ID, SET_FONTSET_NAME, SET_FONTSET_ASCII)
720 (SET_FONTSET_BASE, SET_FONTSET_FRAME, SET_FONTSET_NOFONT_FACE)
721 (SET_FONTSET_DEFAULT, SET_FONTSET_FALLBACK): New macros.
722 Adjust users.
723
7242012-08-20 Glenn Morris <rgm@gnu.org>
725
726 * Makefile.in (emacs$(EXEEXT), bootstrap-emacs$(EXEEXT)):
727 Don't assume that `ln -f' works.
728
7292012-08-20 Eli Zaretskii <eliz@gnu.org>
730
731 * .gdbinit: Use "set $dummy = ..." to avoid warnings from GDB 7.5
732 and later about non-assignments with no effect. See discussion at
733 http://sourceware.org/ml/gdb-patches/2012-08/msg00518.html for
734 details.
735
12012-08-20 Dmitry Antipov <dmantipov@yandex.ru> 7362012-08-20 Dmitry Antipov <dmantipov@yandex.ru>
2 737
3 Inline setter functions for Lisp_Objects slots of struct specbinding. 738 Inline setter functions for Lisp_Objects slots of struct specbinding.
@@ -42,6 +777,8 @@
42 Rely on <config.h> + <unistd.h> to declare 'environ', 777 Rely on <config.h> + <unistd.h> to declare 'environ',
43 as gnulib does this if the system doesn't. 778 as gnulib does this if the system doesn't.
44 * callproc.c, editfns.c, process.c (environ) [!USE_CRT_DLL]: 779 * callproc.c, editfns.c, process.c (environ) [!USE_CRT_DLL]:
780 Remove declaration. MS-Windows declares it on stdlib.h which is
781 included by conf_post.h.
45 * emacs.c (environ) [DOUG_LEA_MALLOC]: 782 * emacs.c (environ) [DOUG_LEA_MALLOC]:
46 * vm-limit.c (environ) [ORDINARY_LINK]: Remove decl. 783 * vm-limit.c (environ) [ORDINARY_LINK]: Remove decl.
47 * vm-limit.c: Include <unistd.h>, for 'environ'. 784 * vm-limit.c: Include <unistd.h>, for 'environ'.