aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog.trunk
diff options
context:
space:
mode:
authorStefan Monnier2011-03-21 12:42:16 -0400
committerStefan Monnier2011-03-21 12:42:16 -0400
commitcafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch)
tree7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /src/ChangeLog.trunk
parenta08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff)
parent4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff)
downloademacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz
emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip
Merge from trunk
Diffstat (limited to 'src/ChangeLog.trunk')
-rw-r--r--src/ChangeLog.trunk797
1 files changed, 795 insertions, 2 deletions
diff --git a/src/ChangeLog.trunk b/src/ChangeLog.trunk
index a96edcdfdca..6fa2d821565 100644
--- a/src/ChangeLog.trunk
+++ b/src/ChangeLog.trunk
@@ -1,3 +1,796 @@
12011-03-20 Glenn Morris <rgm@gnu.org>
2
3 * config.in: Remove file.
4
52011-03-20 Juanma Barranquero <lekktu@gmail.com>
6
7 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
8 are now in src/globals.h.
9 (syms_of_minibuf): Remove spurious & from previous change.
10
112011-03-20 Leo <sdl.web@gmail.com>
12
13 * minibuf.c (completing-read-function): New variable.
14 (completing-read-default): Rename from completing-read.
15 (completing-read): Call completing-read-function.
16
172011-03-19 Juanma Barranquero <lekktu@gmail.com>
18
19 * xfaces.c (Fx_load_color_file):
20 Read color file from absolute filename (bug#8250).
21
222011-03-19 Juanma Barranquero <lekktu@gmail.com>
23
24 * makefile.w32-in: Update dependencies.
25
262011-03-17 Eli Zaretskii <eliz@gnu.org>
27
28 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
29
302011-03-17 Paul Eggert <eggert@cs.ucla.edu>
31
32 Fix more problems found by GCC 4.5.2's static checks.
33
34 * process.c (make_serial_process_unwind, send_process_trap):
35 (sigchld_handler): Now static.
36
37 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
38 That way, the code declares only the vars that it needs.
39 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
40 * s/cygwin.h (PTY_ITERATION): Likewise.
41 * s/darwin.h (PTY_ITERATION): Likewise.
42 * s/gnu-linux.h (PTY_ITERATION): Likewise.
43
44 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
45 * process.c (allocate_pty): Don't declare stb unless it's needed.
46
47 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
48 (CONSTANTLIM): Remove; unused.
49 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
50 Define only if needed.
51
52 * unexelf.c (unexec): Name an expression,
53 to avoid gcc -Wbad-function-cast warning.
54 Use a different way to cause a compilation error if anyone uses
55 n rather than nn, a way that does not involve shadowing.
56 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
57
58 * deps.mk (unexalpha.o): Remove; unused.
59
60 New file unexec.h, the (simple) interface for unexec (Bug#8267).
61 * unexec.h: New file.
62 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
63 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
64 Depend on unexec.h.
65 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
66 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
67 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
68 Change as necessary to match prototype in unexec.h.
69
70 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
71 shadowing.
72 (back_comment, skip_chars): Mark vars as initialized.
73
74 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
75 Rename locals to avoid shadowing.
76
77 * lread.c (read1): Rewrite so as not to use empty "else".
78 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
79
80 * print.c (Fredirect_debugging_output): Fix pointer signedess.
81
82 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
83 warning when compiling print.c.
84
85 * font.c (font_unparse_fcname): Abort in an "impossible" situation
86 instead of using an uninitialized var.
87 (font_sort_entities): Mark var as initialized.
88
89 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
90
91 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
92 pointers to constants.
93 (font_parse_fcname): Remove unused vars.
94 (font_delete_unmatched): Now static.
95 (font_get_spec): Remove; unused.
96 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
97 (font_update_drivers, Ffont_get_glyphs, font_add_log):
98 Rename or move locals to avoid shadowing.
99
100 * fns.c (require_nesting_list, require_unwind): Now static.
101 (Ffillarray): Rename locals to avoid shadowing.
102
103 * floatfns.c (domain_error2): Define only if needed.
104 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
105
106 * alloc.c (mark_backtrace): Move decl from here ...
107 * lisp.h: ... to here, so that it can be checked.
108
109 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
110 (Fdefvar): Rewrite so as not to use empty "else".
111 (lisp_indirect_variable): Name an expression,
112 to avoid gcc -Wbad-function-cast warning.
113 (Fdefvar): Rename locals to avoid shadowing.
114
115 * callint.c (quotify_arg, quotify_args): Now static.
116 (Fcall_interactively): Rename locals to avoid shadowing.
117 Use const pointer when appropriate.
118
119 * lisp.h (get_system_name, get_operating_system_release):
120 Move decls here, to check interfaces.
121 * process.c (get_operating_system_release): Move decl to lisp.h.
122 * xrdb.c (get_system_name): Likewise.
123 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
124 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
125 some of which prompt warnings from gcc -Wbad-function-cast.
126 (Fformat_time_string, Fencode_time, Finsert_char):
127 (Ftranslate_region_internal, Fformat):
128 Rename or remove local vars to avoid shadowing.
129 (Ftranslate_region_internal): Mark var as initialized.
130
131 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
132 avoid shadowing.
133
134 * lisp.h (eassert): Check that the argument compiles, even if
135 ENABLE_CHECKING is not defined.
136
137 * data.c (Findirect_variable): Name an expression, to avoid
138 gcc -Wbad-function-cast warning.
139 (default_value, arithcompare, arith_driver, arith_error): Now static.
140 (store_symval_forwarding): Rename local to avoid shadowing.
141 (Fmake_variable_buffer_local, Fmake_local_variable): Mark
142 variables as initialized.
143 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
144
145 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
146 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
147 Rename locals to avoid shadowing.
148 (mark_stack): Move local variables into the #ifdef region where
149 they're used.
150 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
151 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
152 needed otherwise.
153 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
154 (GC_STRING_CHARS): Remove; not used.
155 (Fmemory_limit): Cast sbrk's returned value to char *.
156
157 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
158 avoids undefined behavior in theory.
159
160 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
161
162 Use functions, not macros, for up- and down-casing (Bug#8254).
163 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
164 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
165 to use the following functions instead of these macros.
166 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
167 EMACS_INT, since callers assume the returned value fits in int.
168 (upcase1): Likewise, for UPCASE_TABLE.
169 (uppercasep, lowercasep, upcase): New static inline functions.
170 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
171 the race-condition problem in the old DOWNCASE.
172
173 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
174 Rename locals to avoid shadowing.
175 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
176 (regex_compile, re_search_2, re_match_2_internal):
177 Remove unused local vars.
178 (FREE_VAR): Rewrite so as not to use empty "else",
179 which gcc can warn about.
180 (regex_compile, re_match_2_internal): Mark locals as initialized.
181 (RETALLOC_IF): Define only if needed.
182 (WORDCHAR_P): Likewise. This one is never needed, but is used
183 only in a comment talking about a compiler bug, so put inside
184 the #if 0 of that comment.
185 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
186 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
187 Remove; unused.
188
189 * search.c (boyer_moore): Rename locals to avoid shadowing.
190 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
191 (PREV_CHAR_BOUNDARY): Likewise.
192
193 * search.c (simple_search): Remove unused var.
194
195 * dired.c (compile_pattern): Move decl from here ...
196 * lisp.h: ... to here, so that it can be checked.
197 (struct re_registers): New forward decl.
198
199 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
200
201 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
202 All uses changed.
203 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
204 Rename locals to avoid shadowing.
205 (Fvertical_motion): Mark locals as initialized.
206
207 * casefiddle.c (casify_object, casify_region): Now static.
208 (casify_region): Mark local as initialized.
209
210 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
211
212 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
213 New macros, so that the caller can use some names other than
214 gcpro1, gcpro2, etc.
215 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
216 of the new macros.
217 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
218 argument, for consistency with GCPRO2_VAR, etc: it is now the
219 prefix of the variable, not the variable itself. All uses
220 changed.
221 * dired.c (directory_files_internal, file_name_completion):
222 Rename locals to avoid shadowing.
223
224 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
225 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
226 dired.c's scmp function, had undefined behavior.
227 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
228 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
229 * buffer.h: ... to here, because these macros use current_buffer,
230 and the new implementation with inline functions needs to have
231 current_buffer in scope now, rather than later when the macros
232 are used.
233 (downcase, upcase1): New static inline functions.
234 (DOWNCASE, UPCASE1): Reimplement using these functions.
235 This avoids undefined behavior in expressions like
236 DOWNCASE (x) == DOWNCASE (y), which previously suffered
237 from race conditions in accessing the global variables
238 case_temp1 and case_temp2.
239 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
240 * lisp.h (case_temp1, case_temp2): Remove their decls.
241 * character.h (ASCII_CHAR_P): Move from here ...
242 * lisp.h: ... to here, so that the inline functions mentioned
243 above can use them.
244
245 * dired.c (directory_files_internal_unwind): Now static.
246
247 * fileio.c (file_name_as_directory, directory_file_name):
248 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
249 Now static.
250 (file_name_as_directory): Use const pointers when appropriate.
251 (Fexpand_file_name): Likewise. In particular, newdir might
252 point at constant storage, so make it a const pointer.
253 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
254 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
255 signedness issues.
256 (Fset_file_times, Finsert_file_contents, auto_save_error):
257 Rename locals to avoid shadowing.
258
259 * minibuf.c (choose_minibuf_frame_1): Now static.
260 (Ftry_completion, Fall_completions): Rename or remove locals
261 to avoid shadowing.
262
263 * marker.c (bytepos_to_charpos): Remove; unused.
264
265 * lisp.h (verify_bytepos, count_markers): New decls,
266 so that gcc does not warn that these functions aren't declared.
267
268 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
269 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
270 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
271 (copy_text): Remove unused local var.
272
273 * filelock.c (within_one_second): Now static.
274 (lock_file_1): Rename local to avoid shadowing.
275
276 * buffer.c (fix_overlays_before): Mark locals as initialized.
277 (fix_start_end_in_overlays): Likewise. This function should be
278 simplified by using pointers-to-pointers, but that's a different
279 matter.
280 (switch_to_buffer_1): Now static.
281 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
282 (report_overlay_modification): Rename locals to avoid shadowing.
283
284 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
285 Fix pointer signedness issue.
286 (sys_subshell): Mark local as volatile if checking for lint,
287 to suppress a gcc -Wclobbered warning that does not seem to be right.
288 (MAXPATHLEN): Define only if needed.
289
290 * process.c (serial_open, serial_configure): Move decls from here ...
291 * systty.h: ... to here, so that they can be checked.
292
293 * fns.c (get_random, seed_random): Move extern decls from here ...
294 * lisp.h: ... to here, so that they can be checked.
295
296 * sysdep.c (reset_io): Now static.
297 (wait_for_termination_signal): Remove; unused.
298
299 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
300 (copy_keymap_item, append_key, push_text_char_description):
301 Now static.
302 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
303 (DENSE_TABLE_SIZE): Remove; unused.
304 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
305 (describe_map_tree):
306 Rename locals to avoid shadowing.
307
308 * keyboard.c: Declare functions static if they are not used elsewhere.
309 (echo_char, echo_dash, cmd_error, top_level_2):
310 (poll_for_input, handle_async_input): Now static.
311 (read_char, kbd_buffer_get_event, make_lispy_position):
312 (make_lispy_event, make_lispy_movement, apply_modifiers):
313 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
314 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
315 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
316 (read_key_sequence, read_char): Mark locals as initialized.
317 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
318
319 * keyboard.h (make_ctrl_char): New decl.
320 (mark_kboards): Move decl here ...
321 * alloc.c (mark_kboards): ... from here.
322
323 * lisp.h (force_auto_save_soon): New decl.
324
325 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
326 (DEFINE_DUMMY_FUNCTION): New macro.
327 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
328 Use it.
329 (main): Add casts to avoid warnings
330 if GCC considers string literals to be constants.
331
332 * lisp.h (fatal_error_signal): Add decl, since it's exported.
333
334 * dbusbind.c: Pointer signedness fixes.
335 (xd_signature, xd_append_arg, xd_initialize):
336 (Fdbus_call_method, Fdbus_call_method_asynchronously):
337 (Fdbus_method_return_internal, Fdbus_method_error_internal):
338 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
339 (Fdbus_register_signal): Use SSDATA when the context wants char *.
340
341 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
342 if GCC considers string literals to be constants.
343 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
344
3452011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
346
347 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
348 (print_preprocess, print_object): New macro to fix last change.
349
350 * print.c (print_preprocess): Don't forget font objects.
351
3522011-03-16 Juanma Barranquero <lekktu@gmail.com>
353
354 * emacs.c (USAGE3): Doc fixes.
355
3562011-03-15 Andreas Schwab <schwab@linux-m68k.org>
357
358 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
359 structure.
360
3612011-03-14 Juanma Barranquero <lekktu@gmail.com>
362
363 * lisp.h (VWindow_system, Qfile_name_history):
364 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
365 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
366 (w32_system_caret_x, w32_system_caret_y): Declare extern.
367
368 * w32select.c: Don't #include "keyboard.h".
369 (run_protected): Add extern declaration for waiting_for_input.
370
371 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
372 * w32console.c (detect_input_pending, read_input_pending)
373 (encode_terminal_code):
374 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
375 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
376 (w32_system_caret_y, Qfile_name_history):
377 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
378 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
379 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
380 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
381 * w32proc.c (Qlocal, report_file_error):
382 * w32term.c (Vwindow_system, updating_frame):
383 * w32uniscribe.c (initialized, uniscribe_font_driver):
384 Remove unneeded extern declarations.
385
3862011-03-14 Chong Yidong <cyd@stupidchicken.com>
387
388 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
389
3902011-03-13 Chong Yidong <cyd@stupidchicken.com>
391
392 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
393 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
394 These macros can no longer be used for assignment.
395
396 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
397 struct members directly, instead of using BUF_BEGV etc.
398 (record_buffer_markers, fetch_buffer_markers): New functions for
399 recording and fetching special buffer markers.
400 (set_buffer_internal_1, set_buffer_temp): Use them.
401
402 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
403
404 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
405
406 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
407 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
408
409 * xdisp.c (hscroll_window_tree):
410 (reconsider_clip_changes): Use PT instead of BUF_PT.
411
4122011-03-13 Eli Zaretskii <eliz@gnu.org>
413
414 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
415 $(EMACS_ROOT)/lib/intprops.h.
416
4172011-03-13 Paul Eggert <eggert@cs.ucla.edu>
418
419 Fix more problems found by GCC 4.5.2's static checks.
420
421 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
422 to unsigned char * to avoid compiler diagnostic.
423 (xg_free_frame_widgets): Make it clear that a local variable is
424 needed only if USE_GTK_TOOLTIP.
425 (gdk_window_get_screen): Make it clear that this macro is needed
426 only if USE_GTK_TOOLTIP.
427 (int_gtk_range_get_value): New function, which avoids a diagnostic
428 from gcc -Wbad-function-cast.
429 (xg_set_toolkit_scroll_bar_thumb): Use it.
430 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
431 diagnostic from gcc -Wbad-function-cast.
432 (get_utf8_string, xg_get_file_with_chooser):
433 Rename locals to avoid shadowing.
434 (create_dialog): Move locals to avoid shadowing.
435
436 * xgselect.c (xg_select): Remove unused var.
437
438 * image.c (four_corners_best): Mark locals as initialized.
439 (gif_load): Initialize transparent_p to zero (Bug#8238).
440 Mark another local as initialized.
441 (my_png_error, my_error_exit): Mark with NO_RETURN.
442
443 * image.c (clear_image_cache): Now static.
444 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
445 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
446 (x_edge_detection): Remove unnecessary cast that
447 gcc -Wbad-function-cast diagnoses.
448 (gif_load): Fix pointer signedness.
449 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
450 (jpeg_load, gif_load): Rename locals to avoid shadowing.
451
4522011-03-11 Paul Eggert <eggert@cs.ucla.edu>
453
454 Improve quality of tests for time stamp overflow.
455 For example, without this patch (encode-time 0 0 0 1 1
456 1152921504606846976) returns the obviously-bogus value (-948597
457 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
458 reports time overflow. See
459 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
460 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
461 * editfns.c: Include limits.h and intprops.h.
462 (TIME_T_MIN, TIME_T_MAX): New macros.
463 (time_overflow): Move earlier, to before first use.
464 (hi_time, lo_time): New functions, for an accurate test for
465 out-of-range times.
466 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
467 (Fget_internal_run_time): Don't assume time_t fits in int.
468 (make_time): Use list2 instead of Fcons twice.
469 (Fdecode_time): More accurate test for out-of-range times.
470 (check_tm_member): New function.
471 (Fencode_time): Use it, to test for out-of-range times.
472 (lisp_time_argument): Don't rely on undefined left-shift and
473 right-shift behavior when checking for time stamp overflow.
474
475 * editfns.c (time_overflow): New function, refactoring common code.
476 (Fformat_time_string, Fdecode_time, Fencode_time):
477 (Fcurrent_time_string): Use it.
478
479 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
480 * dired.c (make_time): Move to ...
481 * editfns.c (make_time): ... here.
482 * systime.h: Note the move.
483
4842011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
485
486 * fringe.c (update_window_fringes): Remove unused variables.
487
488 * unexmacosx.c (copy_data_segment): Also copy __got section.
489 (Bug#8223)
490
4912011-03-12 Eli Zaretskii <eliz@gnu.org>
492
493 * termcap.c [MSDOS]: Include "msdos.h".
494 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
495 Constify `char *' arguments and their references according to
496 prototypes in tparam.h.
497
498 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
499
500 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
501 Adapt all references accordingly.
502
503 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
504
5052011-03-11 Tom Tromey <tromey@redhat.com>
506
507 * buffer.c (syms_of_buffer): Remove obsolete comment.
508
5092011-03-11 Eli Zaretskii <eliz@gnu.org>
510
511 * termhooks.h (encode_terminal_code): Declare prototype.
512
513 * msdos.c (encode_terminal_code): Don't declare prototype.
514
515 * term.c (encode_terminal_code): Now external again, used by
516 w32console.c and msdos.c.
517
518 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
519 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
520
5212011-03-11 Paul Eggert <eggert@cs.ucla.edu>
522
523 Fix some minor problems found by GCC 4.5.2's static checks.
524
525 * fringe.c (update_window_fringes): Mark locals as initialized
526 (Bug#8227).
527 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
528
529 * alloc.c (mark_fringe_data): Move decl from here ...
530 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
531 to check its interface.
532 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
533
534 * fontset.c (free_realized_fontset): Now static.
535 (Fset_fontset_font): Rename local to avoid shadowing.
536 (fontset_font): Mark local as initialized.
537 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
538
539 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
540
541 * xselect.c (x_disown_buffer_selections): Remove; not used.
542 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
543 (x_own_selection, Fx_disown_selection_internal): Rename locals
544 to avoid shadowing.
545 (x_handle_dnd_message): Remove local to avoid shadowing.
546
547 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
548 so that the caller can use some name other than gcpro1.
549 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
550 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
551 (Fx_backspace_delete_keys_p):
552 Use them to avoid shadowing, and rename vars to avoid shadowing.
553 (x_decode_color, x_set_name, x_window): Now static.
554 (Fx_create_frame): Add braces to silence GCC warning.
555 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
556 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
557 Remove unused locals.
558 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
559 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
560 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
561 macros.
562
563 * xterm.h (x_mouse_leave): New decl.
564
565 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
566 Remove unused functions.
567 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
568 (x_calc_absolute_position): Now static.
569 (XTread_socket): Don't define label "out" unless it's used.
570 Don't declare local "event" unless it's used.
571 (x_iconify_frame, x_free_frame_resources): Don't declare locals
572 unless they are used.
573 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
574 (x_fatal_error_signal): Remove; not used.
575 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
576 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
577 (x_error_catcher, x_connection_closed, x_error_handler):
578 (x_error_quitter, xembed_send_message, x_iconify_frame):
579 (my_log_handler): Rename locals to avoid shadowing.
580 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
581 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
582
583 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
584 or move locals to avoid shadowing.
585 (tty_defined_color, merge_face_heights): Now static.
586 (free_realized_faces_for_fontset): Remove; not used.
587 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
588 does not deduce is never used uninitialized.
589 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
590 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
591
592 * terminal.c (store_terminal_param): Now static.
593
594 * xmenu.c (menu_highlight_callback): Now static.
595 (set_frame_menubar): Remove unused local.
596 (xmenu_show): Rename parameter to avoid shadowing.
597 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
598 since they might point to immutable storage.
599 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
600 since it's unused otherwise.
601
602 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
603 Add a FIXME, since the code still doesn't look right. (Bug#8215)
604 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
605 avoids a gcc -Wuninitialized diagnostic.
606 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
607 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
608 does not deduce are never used uninitialized.
609
610 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
611
612 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
613 * window.c (window_loop, size_window):
614 (run_window_configuration_change_hook, enlarge_window): Likewise.
615
616 * window.c (display_buffer): Now static.
617 (size_window): Mark variables that gcc -Wuninitialized
618 does not deduce are never used uninitialized.
619 * window.h (check_all_windows): New decl, to forestall
620 gcc -Wmissing-prototypes diagnostic.
621 * dispextern.h (bidi_dump_cached_states): Likewise.
622
623 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
624 shadowing.
625 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
626 Include <limits.h>.
627 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
628 and to avoid gcc -Wuninitialized warning.
629 (load_charset_map): Mark variables that gcc -Wuninitialized
630 does not deduce are never used uninitialized.
631 (load_charset): Abort instead of using uninitialized var (Bug#8229).
632
633 * coding.c (coding_set_source, coding_set_destination):
634 Use "else { /* comment */ }" rather than "else /* comment */;"
635 for clarity, and to avoid gcc -Wempty-body warning.
636 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
637 a block, when the outer 'i' will do.
638 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
639 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
640 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
641 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
642 (Fdecode_sjis_char, Fdefine_coding_system_internal):
643 Rename locals to avoid shadowing.
644 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
645 * coding.c (emacs_mule_char, encode_invocation_designation):
646 Now static, since they're not used elsewhere.
647 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
648 (decode_coding_object, encode_coding_object, detect_coding_system):
649 (decode_coding_emacs_mule): Mark variables that gcc
650 -Wuninitialized does not deduce are never used uninitialized.
651 (detect_coding_iso_2022): Initialize a local variable that might
652 be used uninitialized. Leave a FIXME because it's not clear that
653 this initialization is needed. (Bug#8211)
654 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
655 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
656 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
657 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
658 Remove unused macros.
659
660 * category.c (hash_get_category_set): Remove unused local var.
661 (copy_category_table): Now static, since it's not used elsewhere.
662 * character.c (string_count_byte8): Likewise.
663
664 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
665 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
666
667 * chartab.c (copy_sub_char_table): Now static, since it's not used
668 elsewhere.
669 (sub_char_table_ref_and_range, char_table_ref_and_range):
670 Rename locals to avoid shadowing.
671 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
672
673 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
674 (BIDI_BOB): Remove unused macro.
675
676 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
677 deduce are never used uninitialized.
678 * term.c (encode_terminal_code): Likewise.
679
680 * term.c (encode_terminal_code): Now static. Remove unused local.
681
682 * tparam.h: New file.
683 * term.c, tparam.h: Include it.
684 * deps.mk (term.o, tparam.o): Depend on tparam.h.
685 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
686 Move these decls to tparam.h, and make them agree with what
687 is actually in tparam.c. The previous trick of using incompatible
688 decls in different modules does not conform to the C standard.
689 All callers of tparam changed to use tparam's actual API.
690 * tparam.c (tparam1, tparam, tgoto):
691 Use const pointers where appropriate.
692
693 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
694 * cm.h (struct cm): Likewise.
695 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
696 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
697 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
698 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
699 (turn_on_face, init_tty): Likewise.
700 * termchar.h (struct tty_display_info): Likewise.
701
702 * term.c (term_mouse_position): Rename local to avoid shadowing.
703
704 * alloc.c (mark_ttys): Move decl from here ...
705 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
706
7072011-03-11 Andreas Schwab <schwab@linux-m68k.org>
708
709 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
710
7112011-03-09 Juanma Barranquero <lekktu@gmail.com>
712
713 * search.c (compile_pattern_1): Remove argument regp, unused since
714 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
715 (compile_pattern): Don't pass it.
716
7172011-03-08 Jan Djärv <jan.h.d@swipnet.se>
718
719 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
720 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
721 for ! HAVE_GTK3.
722 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
723
724 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
725
726 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
727 gdk_window_get_screen, gdk_window_get_geometry,
728 gdk_x11_window_lookup_for_display and GDK_KEY_g.
729 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
730 (xg_get_pixbuf_from_pixmap): New function.
731 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
732 to Pixmap, take frame as parameter, remove GdkColormap parameter.
733 Call xg_get_pixbuf_from_pixmap instead of
734 gdk_pixbuf_get_from_drawable.
735 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
736 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
737 (xg_check_special_colors): Use GtkStyleContext and its functions
738 for HAVE_GTK3.
739 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
740 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
741 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
742 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
743 gtk_widget_get_preferred_size.
744 (xg_frame_resized): gdk_window_get_geometry only takes 5
745 parameters.
746 (xg_win_to_widget, xg_event_is_for_menubar): Call
747 gdk_x11_window_lookup_for_display.
748 (xg_set_widget_bg): New function.
749 (delete_cb): New function.
750 (xg_create_frame_widgets): connect delete-event to delete_cb.
751 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
752 (xg_set_background_color): Call xg_set_widget_bg.
753 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
754 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
755 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
756 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
757 if ! HAVE_GTK3.
758 (update_frame_tool_bar): Call gtk_widget_hide.
759 (xg_initialize): Use GDK_KEY_g.
760
761 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
762 if ! HAVE_GTK3
763 (x_session_initialize): Call gdk_x11_set_sm_client_id.
764
765 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
766 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
767 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
768
7692011-03-08 Juanma Barranquero <lekktu@gmail.com>
770
771 * w32xfns.c (select_palette): Check success of RealizePalette against
772 GDI_ERROR, not zero.
773
7742011-03-07 Ben Key <bkey76@gmail.com>
775
776 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
777 (file_dialog_callback): Fix locating the window handle of the File Name
778 text field. After disabling it, set focus on the list control.
779 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
780 Name text field to "Current Directory" if it does not already have
781 another value. (Bug#8181)
782
7832011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
784
785 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
786 parameter for hbar cursors. Based on a patch by Ben Key
787 <bkey76@gmail.com>.
788
7892011-03-06 Chong Yidong <cyd@stupidchicken.com>
790
791 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
792 change.
793
12011-03-06 Paul Eggert <eggert@cs.ucla.edu> 7942011-03-06 Paul Eggert <eggert@cs.ucla.edu>
2 795
3 current_column: Now returns EMACS_INT, fixing some iftc 796 current_column: Now returns EMACS_INT, fixing some iftc
@@ -46,7 +839,7 @@
46 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var. 839 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
47 (produce_glyphless_glyph): Make a pointer "const" 840 (produce_glyphless_glyph): Make a pointer "const"
48 since it might point to immutable storage. 841 since it might point to immutable storage.
49 (update_window_cursor): Now static, since it's not used elsewhere. 842 (update_window_cursor): Now static, since it's not used elsewhere.
50 (SKIP_GLYPHS): Removed unused macro. 843 (SKIP_GLYPHS): Removed unused macro.
51 844
522011-03-06 Michael Shields <shields@msrl.com> (tiny change) 8452011-03-06 Michael Shields <shields@msrl.com> (tiny change)
@@ -132,7 +925,7 @@
132 as per recent filemodestring API change. Reported by Jonas Öster in 925 as per recent filemodestring API change. Reported by Jonas Öster in
133 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>. 926 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
134 927
1352011-02-23 Ben Key <bkey76@gmail.com> (tiny change) 9282011-02-23 Ben Key <bkey76@gmail.com>
136 929
137 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument 930 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
138 directly, for bar cursors. 931 directly, for bar cursors.