aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog.trunk
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog.trunk')
-rw-r--r--src/ChangeLog.trunk496
1 files changed, 462 insertions, 34 deletions
diff --git a/src/ChangeLog.trunk b/src/ChangeLog.trunk
index 6fa2d821565..a6623803a6e 100644
--- a/src/ChangeLog.trunk
+++ b/src/ChangeLog.trunk
@@ -1,3 +1,431 @@
12011-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * eval.c (struct backtrace): Don't cheat with negative numbers, but do
4 steal a few bits to be more compact.
5 (interactive_p, Fbacktrace, Fbacktrace_frame, mark_backtrace):
6 Remove unneeded casts.
7
8 * bytecode.c (Fbyte_code): CAR and CDR can GC.
9
102011-03-30 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
11
12 * keyboard.c (Fexecute_extended_command): Do log the "suggest key
13 binding" message (bug#7967).
14
152011-03-30 Paul Eggert <eggert@cs.ucla.edu>
16
17 Fix more problems found by GCC 4.6.0's static checks.
18
19 * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
20 Remove unused local var.
21
22 * editfns.c (Fmessage_box): Remove unused local var.
23
24 * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
25 (note_mode_line_or_margin_highlight, note_mouse_highlight):
26 Omit unused local vars.
27 * window.c (shrink_windows): Omit unused local var.
28 * menu.c (digest_single_submenu): Omit unused local var.
29 * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
30 Omit unused local var.
31
32 * keyboard.c (parse_modifiers_uncached, parse_modifiers):
33 Don't assume string length fits in int.
34 (keyremap_step, read_key_sequence): Use size_t for sizes.
35 (read_key_sequence): Don't check last_real_key_start redundantly.
36
37 * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
38 instead of alloca (Bug#8344).
39
40 * eval.c (Fbacktrace): Don't assume nargs fits in int.
41 (Fbacktrace_frame): Don't assume nframes fits in int.
42
43 * syntax.c (scan_sexps_forward): Avoid pointer wraparound.
44
45 * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
46 concerns.
47
48 * term.c (produce_glyphless_glyph): Remove unnecessary test.
49
50 * cm.c (calccost): Turn while-do into do-while, for clarity.
51
52 * keyboard.c (syms_of_keyboard): Use the same style as later
53 in this function when indexing through an array. This also
54 works around GCC bug 48267.
55
56 * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
57
58 * xselect.c (x_check_property_data): Return correct size (Bug#8335).
59
60 * chartab.c (sub_char_table_ref_and_range): Redo for slight
61 efficiency gain, and to bypass a gcc -Wstrict-overflow warning.
62
63 * keyboard.c, keyboard.h (num_input_events): Now size_t.
64 This avoids undefined behavior on integer overflow, and is a bit
65 more convenient anyway since it is compared to a size_t variable.
66
67 Variadic C functions now count arguments with size_t, not int.
68 This avoids an unnecessary limitation on 64-bit machines, which
69 caused (substring ...) to crash on large vectors (Bug#8344).
70 * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int.
71 (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise.
72 All variadic functions and their callers changed accordingly.
73 (struct gcpro.nvars): Now size_t, not int. All uses changed.
74 * data.c (arith_driver, float_arith_driver): Likewise.
75 * editfns.c (general_insert_function): Likewise.
76 * eval.c (struct backtrace.nargs, interactive_p)
77 (internal_condition_case_n, run_hook_with_args, apply_lambda)
78 (funcall_lambda, mark_backtrace): Likewise.
79 * fns.c (concat): Likewise.
80 * frame.c (x_set_frame_parameters): Likewise.
81 * fns.c (get_key_arg): Now accepts and returns size_t, and returns
82 0 if not found, not -1. All callers changed.
83
84 * alloc.c (garbage_collect): Don't assume stack size fits in int.
85 (stack_copy_size): Now size_t, not int.
86 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.
87
882011-03-28 Juanma Barranquero <lekktu@gmail.com>
89
90 * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
91 unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
92 All callers changed.
93
94 * lisp.h (multibyte_char_to_unibyte):
95 * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
96 unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
97 * character.h (CHAR_TO_BYTE8):
98 * cmds.c (internal_self_insert):
99 * editfns.c (general_insert_function):
100 * keymap.c (push_key_description):
101 * search.c (Freplace_match):
102 * xdisp.c (message_dolog, set_message_1): All callers changed.
103
1042011-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
105
106 * keyboard.c (safe_run_hook_funcall): New function.
107 (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
108 don't set the hook to nil, but remove the offending function instead.
109 (Qcommand_hook_internal): Remove, unused.
110 (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
111 Vcommand_hook_internal.
112
113 * eval.c (enum run_hooks_condition): Remove.
114 (funcall_nil, funcall_not): New functions.
115 (run_hook_with_args): Call each function through a `funcall' argument.
116 Remove `cond' argument, now redundant.
117 (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
118 (Frun_hook_with_args_until_failure): Adjust accordingly.
119 (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
120
1212011-03-28 Juanma Barranquero <lekktu@gmail.com>
122
123 * dispextern.h (string_buffer_position): Remove declaration.
124
125 * print.c (strout): Remove parameter `multibyte', unused since
126 1999-08-21T19:30:21Z!gerd@gnu.org. All callers changed.
127
128 * search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
129 never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
130 All callers changed.
131
132 * w32.c (_wsa_errlist): Use braces for struct initializers.
133
134 * xdisp.c (string_buffer_position_lim): Remove parameter `w',
135 never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
136 All callers changed.
137 (string_buffer_position): Likewise. Also, make static (it's never
138 used outside xdisp.c).
139 (cursor_row_p): Remove parameter `w', unused since
140 2000-10-17T16:08:57Z!gerd@gnu.org. All callers changed.
141 (decode_mode_spec): Remove parameter `precision', introduced during
142 Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
143 All callers changed.
144
1452011-03-27 Jan Djärv <jan.h.d@swipnet.se>
146
147 * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
148
1492011-03-27 Anders Lindgren <andlind@gmail.com>
150
151 * nsterm.m (ns_menu_bar_is_hidden): New variable.
152 (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
153 (ns_update_auto_hide_menu_bar): New functions.
154 (ns_update_begin): Call ns_update_auto_hide_menu_bar.
155 (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
156 ns_constrain_all_frames.
157 (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
158 (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
159
1602011-03-27 Jan Djärv <jan.h.d@swipnet.se>
161
162 * nsmenu.m (runDialogAt): Remove argument to timer_check.
163
1642011-03-27 Glenn Morris <rgm@gnu.org>
165
166 * syssignal.h: Replace RETSIGTYPE with void.
167 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
168 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
169 Replace SIGTYPE with void everywhere.
170 * s/usg5-4-common.h (SIGTYPE): Remove definition.
171 * s/template.h (SIGTYPE): Remove commented out definition.
172
1732011-03-26 Eli Zaretskii <eliz@gnu.org>
174
175 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
176 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
177
1782011-03-26 Juanma Barranquero <lekktu@gmail.com>
179
180 * w32.c (read_unc_volume): Use parameter `henum', instead of
181 global variable `wget_enum_handle'.
182
183 * keymap.c (describe_vector): Remove parameters `indices' and
184 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
185 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
186
187 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
188
189 * keyboard.c (timer_check): Remove parameter `do_it_now',
190 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
191 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
192 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
193
194 * keyboard.c (read_char):
195 * w32menu.c (w32_menu_display_help):
196 * xmenu.c (show_help_event, menu_help_callback):
197 Adjust calls to `show_help_echo'.
198
199 * gtkutil.c (xg_maybe_add_timer):
200 * keyboard.c (readable_events):
201 * process.c (wait_reading_process_output):
202 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
203
204 * insdel.c (adjust_markers_gap_motion):
205 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
206 (gap_left, gap_right): Don't call it.
207
2082011-03-25 Chong Yidong <cyd@stupidchicken.com>
209
210 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
211 incurred during fontification.
212
2132011-03-25 Juanma Barranquero <lekktu@gmail.com>
214
215 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
216 (DEFVAR_PER_BUFFER): Don't pass it.
217
218 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
219 (scrolling_window): Don't pass it.
220
2212011-03-25 Juanma Barranquero <lekktu@gmail.com>
222
223 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
224
225 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
226 and `suffix'.
227 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
228 of variables specific to SELinux and computation of `encoded_absname'.
229
230 * image.c (XPutPixel): Remove unused variable `height'.
231
232 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
233
234 * unexw32.c (get_section_info): Remove unused variable `section'.
235
236 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
237 (system_process_attributes): Remove unused variable `sess'.
238 (sys_read): Remove unused variable `err'.
239
240 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
241 (w32_wnd_proc): Remove unused variable `isdead'.
242 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
243 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
244 (x_create_tip_frame): Remove unused variable `tem'.
245
246 * w32inevt.c (w32_console_read_socket):
247 Remove unused variable `no_events'.
248
249 * w32term.c (x_draw_composite_glyph_string_foreground):
250 Remove unused variable `width'.
251
2522011-03-24 Juanma Barranquero <lekktu@gmail.com>
253
254 * w32term.c (x_set_glyph_string_clipping):
255 Don't pass uninitialized region to CombineRgn.
256
2572011-03-23 Juanma Barranquero <lekktu@gmail.com>
258
259 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
260 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
261 (Fx_close_connection): Remove unused variable `i'.
262
263 * w32font.c (w32font_draw): Return number of glyphs.
264 (w32font_open_internal): Remove unused variable `i'.
265 (w32font_driver): Add missing initializer.
266
267 * w32menu.c (utf8to16): Remove unused variable `utf16'.
268 (fill_in_menu): Remove unused variable `items_added'.
269
270 * w32term.c (last_mouse_press_frame): Remove static global variable.
271 (w32_clip_to_row): Remove unused variable `f'.
272 (x_delete_terminal): Remove unused variable `i'.
273
274 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
275 (NOTHING): Remove unused static global variable.
276 (uniscribe_check_otf): Remove unused variable `table'.
277 (uniscribe_font_driver): Add missing initializers.
278
2792011-03-23 Julien Danjou <julien@danjou.info>
280
281 * term.c (Fsuspend_tty, Fresume_tty):
282 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
283 * window.c (temp_output_buffer_show):
284 * insdel.c (signal_before_change):
285 * frame.c (Fhandle_switch_frame):
286 * fileio.c (Fdo_auto_save):
287 * emacs.c (Fkill_emacs):
288 * editfns.c (save_excursion_restore):
289 * cmds.c (internal_self_insert):
290 * callint.c (Fcall_interactively):
291 * buffer.c (Fkill_all_local_variables):
292 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
293 Use Frun_hooks.
294 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
295 unconditionnaly since it does the check itself.
296
2972011-03-23 Paul Eggert <eggert@cs.ucla.edu>
298
299 Fix more problems found by GCC 4.5.2's static checks.
300
301 * coding.c (encode_coding_raw_text): Avoid unnecessary test
302 the first time through the loop, since we know p0 < p1 then.
303 This also avoids a gcc -Wstrict-overflow warning.
304
305 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
306 leading to a memory leak, possible in functions like
307 load_charset_map_from_file that can allocate an unbounded number
308 of objects (Bug#8318).
309
310 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
311 that could (at least in theory) be that large.
312
313 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
314 This is less likely to overflow, and avoids undefined behavior if
315 overflow does occur. All callers changed. Use strtoul to scan
316 for the unsigned long integer.
317 (pint2hrstr): Simplify and tune code slightly.
318 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
319
320 * scroll.c (do_scrolling): Work around GCC bug 48228.
321 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
322
323 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
324 This also avoids a warning with gcc -Wstrict-overflow.
325 (validate_x_resource_name): Simplify count usage.
326 This also avoids a warning with gcc -Wstrict-overflow.
327
328 * fileio.c (Fcopy_file): Report error if fchown or fchmod
329 fail (Bug#8306).
330
331 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
332
333 * process.c (Fmake_network_process): Use socklen_t, not int,
334 where POSIX says socklen_t is required in portable programs.
335 This fixes a porting bug on hosts like 64-bit HP-UX, where
336 socklen_t is wider than int (Bug#8277).
337 (Fmake_network_process, server_accept_connection):
338 (wait_reading_process_output, read_process_output):
339 Likewise.
340
341 * process.c: Rename or move locals to avoid shadowing.
342 (list_processes_1, Fmake_network_process):
343 (read_process_output_error_handler, exec_sentinel_error_handler):
344 Rename or move locals.
345 (Fmake_network_process): Define label "retry_connect" only if needed.
346 (Fnetwork_interface_info): Fix pointer signedness.
347 (process_send_signal): Add cast to avoid pointer signedness problem.
348 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
349 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
350
351 Make tparam.h and terminfo.c consistent.
352 * cm.c (tputs, tgoto, BC, UP): Remove extern decls.
353 Include tparam.h instead, since it declares them.
354 * cm.h (PC): Remove extern decl; tparam.h now does this.
355 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
356 * terminfo.c: Include tparam.h, to check interfaces.
357 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
358 (tparam): Adjust signature to match interface in tparam.h;
359 this removes some undefined behavior. Check that outstring and len
360 are zero, which they always are with Emacs.
361 * tparam.h (PC, BC, UP): New extern decls.
362
363 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
364 (xftfont_open): Rename locals to avoid shadowing.
365
366 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
367 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
368 (OTF_TAG_SYM): Omit macro if not needed.
369 (ftfont_list): Remove unused local.
370 (get_adstyle_property, ftfont_pattern_entity):
371 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
372 Rename locals to avoid shadowing.
373
374 * xfont.c (xfont_list_family): Mark var as initialized.
375
376 * xml.c (make_dom): Now static.
377
378 * composite.c (composition_compute_stop_pos): Rename local to
379 avoid shadowing.
380 (composition_reseat_it): Remove unused locals.
381 (find_automatic_composition, composition_adjust_point): Likewise.
382 (composition_update_it): Mark var as initialized.
383 (find_automatic_composition): Mark vars as initialized,
384 with a FIXME (Bug#8290).
385
386 character.h: Rename locals to avoid shadowing.
387 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
388 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
389 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
390 (BUF_DEC_POS): Be more systematic about renaming local temporaries
391 to avoid shadowing.
392
393 * textprop.c (property_change_between_p): Remove; unused.
394
395 * intervals.c (interval_start_pos): Now static.
396
397 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
398
399 * atimer.c (start_atimer, append_atimer_lists, set_alarm):
400 Rename locals to avoid shadowing.
401
402 * sound.c (wav_play, au_play, Fplay_sound_internal):
403 Fix pointer signedness.
404 (alsa_choose_format): Remove unused local var.
405 (wav_play): Initialize a variable to 0, to prevent undefined
406 behavior (Bug#8278).
407
408 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
409
410 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
411
412 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
413 clobbering (Bug#8298).
414 * sysdep.c (sys_subshell): Likewise.
415 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
416
417 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
418 This should get cleaned up, so that child_setup has the
419 same signature on all platforms.
420
421 * callproc.c (call_process_cleanup): Now static.
422 (relocate_fd): Rename locals to avoid shadowing.
423
4242011-03-22 Chong Yidong <cyd@stupidchicken.com>
425
426 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
427 not to be necessary, and produces flickering.
428
12011-03-20 Glenn Morris <rgm@gnu.org> 4292011-03-20 Glenn Morris <rgm@gnu.org>
2 430
3 * config.in: Remove file. 431 * config.in: Remove file.
@@ -138,8 +566,8 @@
138 gcc -Wbad-function-cast warning. 566 gcc -Wbad-function-cast warning.
139 (default_value, arithcompare, arith_driver, arith_error): Now static. 567 (default_value, arithcompare, arith_driver, arith_error): Now static.
140 (store_symval_forwarding): Rename local to avoid shadowing. 568 (store_symval_forwarding): Rename local to avoid shadowing.
141 (Fmake_variable_buffer_local, Fmake_local_variable): Mark 569 (Fmake_variable_buffer_local, Fmake_local_variable):
142 variables as initialized. 570 Mark variables as initialized.
143 (do_blv_forwarding, do_symval_forwarding): Remove; unused. 571 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
144 572
145 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST. 573 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
@@ -393,8 +821,8 @@
393 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219). 821 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
394 These macros can no longer be used for assignment. 822 These macros can no longer be used for assignment.
395 823
396 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign 824 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
397 struct members directly, instead of using BUF_BEGV etc. 825 Assign struct members directly, instead of using BUF_BEGV etc.
398 (record_buffer_markers, fetch_buffer_markers): New functions for 826 (record_buffer_markers, fetch_buffer_markers): New functions for
399 recording and fetching special buffer markers. 827 recording and fetching special buffer markers.
400 (set_buffer_internal_1, set_buffer_temp): Use them. 828 (set_buffer_internal_1, set_buffer_temp): Use them.
@@ -515,8 +943,8 @@
515 * term.c (encode_terminal_code): Now external again, used by 943 * term.c (encode_terminal_code): Now external again, used by
516 w32console.c and msdos.c. 944 w32console.c and msdos.c.
517 945
518 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend 946 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)):
519 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu. 947 Depend on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
520 948
5212011-03-11 Paul Eggert <eggert@cs.ucla.edu> 9492011-03-11 Paul Eggert <eggert@cs.ucla.edu>
522 950
@@ -580,8 +1008,8 @@
580 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN. 1008 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
581 (x_connection_closed): Tell GCC not to suggest NO_RETURN. 1009 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
582 1010
583 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename 1011 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font):
584 or move locals to avoid shadowing. 1012 Rename or move locals to avoid shadowing.
585 (tty_defined_color, merge_face_heights): Now static. 1013 (tty_defined_color, merge_face_heights): Now static.
586 (free_realized_faces_for_fontset): Remove; not used. 1014 (free_realized_faces_for_fontset): Remove; not used.
587 (Fx_list_fonts): Mark variable that gcc -Wuninitialized 1015 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
@@ -739,12 +1167,12 @@
739 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen. 1167 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
740 (xg_prepare_tooltip, create_dialog, menubar_map_cb) 1168 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
741 (xg_update_frame_menubar, xg_tool_bar_detach_callback) 1169 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
742 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call 1170 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes):
743 gtk_widget_get_preferred_size. 1171 Call gtk_widget_get_preferred_size.
744 (xg_frame_resized): gdk_window_get_geometry only takes 5 1172 (xg_frame_resized): gdk_window_get_geometry only takes 5
745 parameters. 1173 parameters.
746 (xg_win_to_widget, xg_event_is_for_menubar): Call 1174 (xg_win_to_widget, xg_event_is_for_menubar):
747 gdk_x11_window_lookup_for_display. 1175 Call gdk_x11_window_lookup_for_display.
748 (xg_set_widget_bg): New function. 1176 (xg_set_widget_bg): New function.
749 (delete_cb): New function. 1177 (delete_cb): New function.
750 (xg_create_frame_widgets): connect delete-event to delete_cb. 1178 (xg_create_frame_widgets): connect delete-event to delete_cb.
@@ -840,7 +1268,7 @@
840 (produce_glyphless_glyph): Make a pointer "const" 1268 (produce_glyphless_glyph): Make a pointer "const"
841 since it might point to immutable storage. 1269 since it might point to immutable storage.
842 (update_window_cursor): Now static, since it's not used elsewhere. 1270 (update_window_cursor): Now static, since it's not used elsewhere.
843 (SKIP_GLYPHS): Removed unused macro. 1271 (SKIP_GLYPHS): Remove unused macro.
844 1272
8452011-03-06 Michael Shields <shields@msrl.com> (tiny change) 12732011-03-06 Michael Shields <shields@msrl.com> (tiny change)
846 1274
@@ -7337,7 +7765,7 @@
7337 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT) 7765 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7338 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init): 7766 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7339 Likewise. 7767 Likewise.
7340 * character.h (BCOPY_SHORT): Removed. 7768 * character.h (BCOPY_SHORT): Remove.
7341 * config.in: Regenerate. 7769 * config.in: Regenerate.
7342 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING. 7770 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7343 * emacs.c (main) [PROFILING]: Don't declare 7771 * emacs.c (main) [PROFILING]: Don't declare
@@ -10342,8 +10770,8 @@
10342 (POSIX_SIGNALS): Do not define. 10770 (POSIX_SIGNALS): Do not define.
10343 10771
10344 Remove support for old UNIX System V systems. 10772 Remove support for old UNIX System V systems.
10345 * s/unixware.h: Add the contents of s/usg-5-4-2.h. 10773 * s/unixware.h: Add the contents of s/usg5-4-2.h.
10346 * s/usg-5-4-2.h: Remove. 10774 * s/usg5-4-2.h: Remove.
10347 10775
10348 Remove support for Solaris on PPC and for old versions. 10776 Remove support for Solaris on PPC and for old versions.
10349 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h. 10777 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
@@ -19126,7 +19554,7 @@
19126 Set xftfont_info->ft_size. Don't unlock the face. Check BDF 19554 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
19127 properties if appropriate. 19555 properties if appropriate.
19128 (xftfont_close): Unlock the face. 19556 (xftfont_close): Unlock the face.
19129 (xftfont_anchor_point, xftfont_shape): Deleted. 19557 (xftfont_anchor_point, xftfont_shape): Delete.
19130 (syms_of_xftfont): Don't set members anchor_point and shape of 19558 (syms_of_xftfont): Don't set members anchor_point and shape of
19131 xftfont_driver. 19559 xftfont_driver.
19132 19560
@@ -21031,7 +21459,7 @@
21031 Delete externs. 21459 Delete externs.
21032 (fontset_from_font_name): Extern it. 21460 (fontset_from_font_name): Extern it.
21033 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID) 21461 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21034 (FONT_INFO_FROM_FACE): Deleted. 21462 (FONT_INFO_FROM_FACE): Delete.
21035 (face_for_font): Adjust prototype. 21463 (face_for_font): Adjust prototype.
21036 21464
21037 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND 21465 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
@@ -21048,7 +21476,7 @@
21048 (fontset_compare_rfontdef): New function. 21476 (fontset_compare_rfontdef): New function.
21049 (reorder_font_vector): Remove the argument CHARSET-ID. Sort 21477 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21050 rfont-defs by qsort. Adjusted for the change of font-group vector. 21478 rfont-defs by qsort. Adjusted for the change of font-group vector.
21051 (load_font_get_repertory): Deleted. 21479 (load_font_get_repertory): Delete.
21052 (fontset_find_font): Use new macros to ref/set elements of 21480 (fontset_find_font): Use new macros to ref/set elements of
21053 font-def and rfont-def. 21481 font-def and rfont-def.
21054 (fontset_font): Fix the timing of remembering that no font for C. 21482 (fontset_font): Fix the timing of remembering that no font for C.
@@ -21064,11 +21492,11 @@
21064 font-def. 21492 font-def.
21065 (Fnew_fontset): Use font_unparse_xlfd to generate 21493 (Fnew_fontset): Use font_unparse_xlfd to generate
21066 FONTSET_ASCII (fontset). 21494 FONTSET_ASCII (fontset).
21067 (new_fontset_from_font_name): Deleted. 21495 (new_fontset_from_font_name): Delete.
21068 (fontset_from_font): Rename from new_fontset_from_font. Check if 21496 (fontset_from_font): Rename from new_fontset_from_font. Check if
21069 a fontset is already created for the font. FIx updating of 21497 a fontset is already created for the font. FIx updating of
21070 Vfontset_alias_alist. 21498 Vfontset_alias_alist.
21071 (fontset_ascii_font): Deleted. 21499 (fontset_ascii_font): Delete.
21072 (Ffont_info): Adjust for the format change of font-spec. 21500 (Ffont_info): Adjust for the format change of font-spec.
21073 (Finternal_char_font): Likewise. 21501 (Finternal_char_font): Likewise.
21074 (Ffontset_info): Likewise. 21502 (Ffontset_info): Likewise.
@@ -21096,7 +21524,7 @@
21096 (ftfont_list): Return a list, not vector. 21524 (ftfont_list): Return a list, not vector.
21097 (ftfont_match): Use ftfont_spec_pattern to get a pattern. 21525 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21098 (ftfont_list_family): Don't downcase names. 21526 (ftfont_list_family): Don't downcase names.
21099 (ftfont_free_entity): Deleted. 21527 (ftfont_free_entity): Delete.
21100 (ftfont_open): Return a font-object. Adjusted for the change of 21528 (ftfont_open): Return a font-object. Adjusted for the change of
21101 struct font. Get underline_thickness and underline_position from 21529 struct font. Get underline_thickness and underline_position from
21102 font property. Don't update dpyinfo->smallest_font_height and 21530 font property. Don't update dpyinfo->smallest_font_height and
@@ -21148,13 +21576,13 @@
21148 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth) 21576 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21149 (Qp): Extern them. 21577 (Qp): Extern them.
21150 (clear_font_table, load_face_font, xlfd_lookup_field_contents): 21578 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21151 Deleted. 21579 Delete.
21152 (struct font_name): Deleted. 21580 (struct font_name): Delete.
21153 (xlfd_numeric_value, xlfd_symbolic_value): Deleted. 21581 (xlfd_numeric_value, xlfd_symbolic_value): Delete.
21154 (compare_fonts_by_sort_order): New function. 21582 (compare_fonts_by_sort_order): New function.
21155 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight) 21583 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21156 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth): 21584 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21157 Deleted. 21585 Delete.
21158 (Fx_family_fonts): Use font_list_entities, and sort fonts by 21586 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21159 compare_fonts_by_sort_order. 21587 compare_fonts_by_sort_order.
21160 (Fx_font_family_list): Call Ffont_family_list. 21588 (Fx_font_family_list): Call Ffont_family_list.
@@ -21167,9 +21595,9 @@
21167 (free_font_names, sort_fonts, x_face_list_fonts) 21595 (free_font_names, sort_fonts, x_face_list_fonts)
21168 (face_font_available_p, sorted_font_list, cmp_font_names) 21596 (face_font_available_p, sorted_font_list, cmp_font_names)
21169 (font_list_1, concat_font_list, font_list, remove_duplicates): 21597 (font_list_1, concat_font_list, font_list, remove_duplicates):
21170 Deleted. 21598 Delete.
21171 (Fx_list_fonts): Use Ffont_list. 21599 (Fx_list_fonts): Use Ffont_list.
21172 (LFACE_AVGWIDTH): Deleted. 21600 (LFACE_AVGWIDTH): Delete.
21173 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT 21601 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21174 by FONTP. 21602 by FONTP.
21175 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH. 21603 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
@@ -21191,7 +21619,7 @@
21191 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX]. 21619 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21192 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH. 21620 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21193 Compare fonts by EQ. 21621 Compare fonts by EQ.
21194 (lookup_non_ascii_face): Deleted. 21622 (lookup_non_ascii_face): Delete.
21195 (face_for_font): The 2nd argument changed. 21623 (face_for_font): The 2nd argument changed.
21196 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH. 21624 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21197 Check atomic font properties by case insensitive. 21625 Check atomic font properties by case insensitive.
@@ -21214,7 +21642,7 @@
21214 21642
21215 * xfont.c: Include <stdlib.h> and "ccl.h". 21643 * xfont.c: Include <stdlib.h> and "ccl.h".
21216 (struct xfont_info): New structure. 21644 (struct xfont_info): New structure.
21217 (xfont_query_font): Deleted. 21645 (xfont_query_font): Delete.
21218 (xfont_find_ccl_program): Rename from x_find_ccl_program and 21646 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21219 moved from xterm.c. 21647 moved from xterm.c.
21220 (xfont_driver): Adjust for the change of struct font_driver. 21648 (xfont_driver): Adjust for the change of struct font_driver.
@@ -21230,7 +21658,7 @@
21230 dpyinfo->smallest_char_width. 21658 dpyinfo->smallest_char_width.
21231 (xfont_close): Don't free struct font. 21659 (xfont_close): Don't free struct font.
21232 (xfont_prepare_face): Adjust for the change of struct font. 21660 (xfont_prepare_face): Adjust for the change of struct font.
21233 (xfont_done_face): Deleted. 21661 (xfont_done_face): Delete.
21234 (xfont_has_char): Adjust for the change of struct font. 21662 (xfont_has_char): Adjust for the change of struct font.
21235 (xfont_encode_char, xfont_draw): Likewise. 21663 (xfont_encode_char, xfont_draw): Likewise.
21236 (xfont_check): New function. 21664 (xfont_check): New function.
@@ -21260,7 +21688,7 @@
21260 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND 21688 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21261 conditionals. Don't check enable_font_backend. Delete all codes 21689 conditionals. Don't check enable_font_backend. Delete all codes
21262 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h. 21690 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21263 (x_per_char_metric, x_encode_char): Deleted. 21691 (x_per_char_metric, x_encode_char): Delete.
21264 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont. 21692 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21265 (x_compute_glyph_string_overhangs): Adjust for the change of 21693 (x_compute_glyph_string_overhangs): Adjust for the change of
21266 `struct face'. 21694 `struct face'.
@@ -21269,10 +21697,10 @@
21269 (x_draw_glyph_string): Likewise. Use font->underline_position and 21697 (x_draw_glyph_string): Likewise. Use font->underline_position and
21270 font->underline_thickness. 21698 font->underline_thickness.
21271 (x_new_font): Rename from x_new_fontset2. 21699 (x_new_font): Rename from x_new_fontset2.
21272 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted. 21700 (x_new_fontset, x_get_font_info, x_list_fonts): Delete.
21273 (x_check_font): Call `check' method of a font driver. 21701 (x_check_font): Call `check' method of a font driver.
21274 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font) 21702 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21275 (x_query_font, x_get_font_repertory): Deleted. 21703 (x_query_font, x_get_font_repertory): Delete.
21276 (x_find_ccl_program): Rename and moved to xfont.c. 21704 (x_find_ccl_program): Rename and moved to xfont.c.
21277 (x_redisplay_interface): Adjust for the change of `struct 21705 (x_redisplay_interface): Adjust for the change of `struct
21278 redisplay_interface'. 21706 redisplay_interface'.