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