aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog2740
1 files changed, 2726 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b52d6c1dffe..8a3714bcf0d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,8 +1,2696 @@
12010-08-26 Kenichi Handa <handa@m17n.org>
2
3 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
4 on calling composition_compute_stop_pos.
5
62010-08-25 Kenichi Handa <handa@m17n.org>
7
8 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
9 :otf.
10
11 * composite.c (composition_compute_stop_pos): Don't break
12 composition at PT.
13 (composition_reseat_it): Likewise. Fix calculation of character
14 position starting a composition.
15 (Fcomposition_get_gstring): Don't limit the number of components
16 for automatic composition.
17
182010-08-25 Kenichi Handa <handa@m17n.org>
19
20 * composite.c (composition_compute_stop_pos): In forward search,
21 pay attention to the possibility that some character after ENDPOS
22 will be composed with charactrs before ENDPOS.
23
242010-08-24 Chong Yidong <cyd@stupidchicken.com>
25
26 * keyboard.c (command_loop_1): Don't clobber primary selection
27 during handle-switch-frame (Bug#6872).
28
292010-08-23 Michael Albinus <michael.albinus@gmx.de>
30
31 * dbusbind.c: Accept UNIX domain sockets as bus address.
32 (Fdbus_close_bus): New function.
33 (Vdbus_registered_buses): New variable.
34 (xd_initialize): Implement string as bus address.
35 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
36 (Fdbus_get_unique_name, Fdbus_call_method)
37 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
38 (Fdbus_method_error_internal, Fdbus_send_signal)
39 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
40 check. This is done in xd_initialize_bus. Adapt doc string, if
41 necessary.
42 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
43 Vdbus_registered_buses.
44 (Vdbus_registered_objects_table): Create hash.
45
462010-08-22 Juri Linkov <juri@jurta.org>
47
48 * keyboard.c (Fexecute_extended_command): Move reading a command name
49 with `completing-read' to a new Elisp function `read-extended-command'.
50 Call it to read a command to `function' (bug#5364, bug#5214).
51
522010-08-22 Chong Yidong <cyd@stupidchicken.com>
53
54 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
55
562010-08-22 Andreas Schwab <schwab@linux-m68k.org>
57
58 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
59 instead of SAFE_ALLOCA.
60
612010-08-22 Chong Yidong <cyd@stupidchicken.com>
62
63 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
64 (Bug#6214).
65
662010-08-22 Jan Djärv <jan.h.d@swipnet.se>
67
68 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
69
702010-08-22 Jan Djärv <jan.h.d@swipnet.se>
71
72 * doc.c (Fsnarf_documentation): Initialize skip_file before
73 build-files test.
74
752010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
76
77 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
78 New definitions.
79 (HAVE_TERMIO): Remove.
80
812010-08-22 Eli Zaretskii <eliz@gnu.org>
82
83 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
84
85 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
86 for w32.
87
88 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
89 it's done in nt/config.nt.
90
91 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
92
93 * unexcoff.c (report_error, make_hdr, write_segment)
94 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
95 Convert argument lists and prototypes to ANSI C.
96 (make_hdr, write_segment): Remove unused variables.
97 (unexec): Remove commented-out line. Initialize `new' to shut up
98 compiler warnings.
99
1002010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
101
102 Simplify termio code.
103 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
104 HAVE_TERMIO code is obsolete.
105 Replace HAVE_TERMIOS conditionals with !DOS_NT.
106 * systty.h: Do not define HAVE_TCATTR.
107 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
108 Do not define EMACS_HAVE_TTY_PGRP. Only define
109 EMACS_GET_TTY_PGRP for !DOS_NT.
110 * sysdep.c: Include sysselect.h unconditionally. Do not include
111 sys/ioctl.h and termios.h, systty.h does it. Use
112 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
113 (init_baud_rate): Remove HAVE_TERMIO code.
114 (child_setup_tty): Remove HAVE_TERMIO code.
115 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
116 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
117 (new_ltchars, new_tchars): Remove, unused.
118 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
119 code. Remove special casing for __mips__, it was a no-op. Remove
120 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
121 (init_sys_modes): Remove HPUX special case.
122 * process.c: Include stdlib.h unconditionally. Do not include
123 fcntl.h, systty.h does it. Remove conditional code for
124 HAVE_SERIAL, it is always true.
125 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
126 always true when SIGNALS_VIA_CHARACTERS is true.
127 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
128 !WINDOWSNT means HAVE_TERMIOS.
129 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
130 conditional, which is true for all HAVE_TERMIOS systems.
131 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
132 instead of HAVE_TERMIOS.
133 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
134 EMACS_HAVE_TTY_PGRP.
135 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
136 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
137 anyway.
138
1392010-08-21 Eli Zaretskii <eliz@gnu.org>
140
141 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
142 mirroring pixel positions.
143
1442010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
145
146 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
147 write only.
148 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
149 malloc_sbrk_used, nothing uses them.
150
151 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
152 defined, unconditionally defined in lisp.h.
153
154 * term.c: Do not include <termios.h>, systty.h does it.
155
156 * s/unixware.h (HAVE_TCATTR):
157 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
158 systty.h defines it when HAVE_TERMIOS is defined.
159
1602010-08-20 Eli Zaretskii <eliz@gnu.org>
161
162 * dispnew.c (buffer_posn_from_coords): Fix last change for text
163 terminals: add one-character offset for R2L lines.
164
165 * emacs.c <emacs_version>: Add a comment regarding
166 msdos/mainmake.v2's dependency on the syntax of this declaration.
167
1682010-08-20 Eli Zaretskii <eliz@gnu.org>
169
170 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
171 position for R2L lines by mirroring the pixel position wrt the
172 text are box. Improve commentary.
173
1742010-08-20 Andreas Schwab <schwab@linux-m68k.org>
175
176 * image.c (imagemagick_clear_image): Remove debugging output.
177
1782010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
179
180 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
181 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
182 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
183 self-insert-face.
184 (syms_of_cmds): Initialize the new vars.
185
1862010-08-19 Jason Rumney <jasonr@gnu.org>
187
188 * w32menu.c (set_frame_menubar): Remove call to undefined function.
189
190 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
191
1922010-08-19 Jan Djärv <jan.h.d@swipnet.se>
193
194 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
195
1962010-08-18 Eli Zaretskii <eliz@gnu.org>
197
198 * xterm.c (x_draw_bar_cursor):
199 * w32term.c (x_draw_bar_cursor): If the character under cursor is
200 R2L, draw the bar cursor on its right rather than on its left.
201
2022010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
203
204 * eval.c (Fdefmacro): Only obey one declaration.
205
206 * casefiddle.c (casify_region): Setup gl_state.
207
2082010-08-18 Jan Djärv <jan.h.d@swipnet.se>
209
210 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
211
2122010-08-18 Jan Djärv <jan.h.d@swipnet.se>
213
214 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
215
2162010-08-18 David De La Harpe Golden <david@harpegolden.net>
217
218 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
219 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
220 QPRIMARY => NXPrimaryPboard.
221 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
222 NXPrimaryPboard => QPRIMARY.
223 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
224 NXSecondaryPboard = SecondarySelection.
225 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
226
2272010-08-18 Joakim Verona <joakim@verona.se>
228
229 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
230 defined:
231 (imagemagick_image_p): New function to test for ImageMagic image.
232 (imagemagick_load): New function to load ImageMagick image.
233 (imagemagick_load_image): New function, helper for imagemagick_load.
234 (imagemagick-types): New function.
235 (Qimagemagick): New Lisp_object.
236 (imagemagick-render-type): New variable, decides which renderer to use.
237
2382010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
239
240 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
241 is a string.
242
2432010-08-17 Jan Djärv <jan.h.d@swipnet.se>
244
245 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
246 x_set_tool_bar_position handler.
247
2482010-08-17 Eli Zaretskii <eliz@gnu.org>
249
250 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
251 x_set_tool_bar_position handler, needed to support changes from
252 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
253
2542010-08-16 Jan Djärv <jan.h.d@swipnet.se>
255
256 * nsselect.m: include keyboard.h for QPRIMARY, remove its
257 declaration (Bug#6863).
258 (syms_of_nsselect): Don't intern QPRIMARY.
259
260 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
261
262 * keyboard.h (QPRIMARY): Declare (Bug#6864).
263
2642010-08-16 Chong Yidong <cyd@stupidchicken.com>
265
266 * keyboard.c (command_loop_1): Avoid setting selection twice,
267 since it's done in deactivate-mark as well.
268 (Vselect_active_regions): Change default to t. Replace `lazy'
269 with non-default value `only', meaning only set PRIMARY for
270 temporarily active regions.
271
272 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
273 select-active-regions.
274
2752010-08-15 Jan Djärv <jan.h.d@swipnet.se>
276
277 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
278 isn't a string.
279
2802010-08-15 Andreas Schwab <schwab@linux-m68k.org>
281
282 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
283
2842010-08-15 Jan Djärv <jan.h.d@swipnet.se>
285
286 * keyboard.c (parse_tool_bar_item): malloc buf.
287 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
288 new_lbl (Bug#6855).
289
2902010-08-14 Eli Zaretskii <eliz@gnu.org>
291
292 * xterm.c (x_draw_stretch_glyph_string):
293 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
294 the cursor on the right edge of the stretch glyph.
295
296 * xdisp.c (window_box_right_offset, window_box_right):
297 Fix commentary.
298
299 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
300 direction when point is inside a run of whitespace characters.
301
302 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
303
3042010-08-14 Jason Rumney <jasonr@gnu.org>
305
306 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
307
3082010-08-14 Chong Yidong <cyd@stupidchicken.com>
309
310 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
311
3122010-08-13 Jason Rumney <jasonr@gnu.org>
313
314 * w32menu.c (simple_dialog_show): Use unicode message box if available.
315 (MessageBoxW_Proc): New function typedef.
316 (unicode-message-box): New function pointer.
317 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
318
3192010-08-13 Jan Djärv <jan.h.d@swipnet.se>
320
321 * frame.h (Qtool_bar_position): Declare.
322
323 * xfns.c (Fx_create_frame): Call x_default_parameter for
324 Qtool_bar_position.
325
3262010-08-13 Eli Zaretskii <eliz@gnu.org>
327
328 * unexcoff.c: Remove the parts used when "emacs" is not defined.
329 (report_error, report_error_1): Ditto.
330 (write_segment): Remove "#if 0" unused code.
331 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
332 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
333 (start_of_text): Remove unused function (was used only if NO_REMAP
334 was NOT defined).
335
336 * msdos.c (IT_set_face): Fix format string to match argument
337 types.
338 (IT_write_glyphs, IT_note_mode_line_highlight)
339 (IT_set_frame_parameters): Remove unused variables.
340 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
341 (IT_set_terminal_modes): Disambiguate expression in if clause.
342 (Fmsdos_remember_default_colors): Return Qnil.
343 (IT_set_frame_parameters): Add parens to disambiguate boolean
344 expression for logging the cursor type to termscript.
345 (keyboard_layout_list, keypad_translate_map)
346 (grey_key_translate_map): Add braces in inner initializers.
347 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
348 (dos_rawgetc): Remove unused label.
349 (XMenuActivate): Add braces to remove ambiguous `else'.
350 (dos_ttraw): Always return a value.
351 (spawnve): Declare.
352 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
353
354 * dosfns.h (x_set_title): Declare.
355
356 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
357 Remove unused variables.
358
359 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
360 variables.
361 (init_dosfns): Declare get_lim_data.
362 (system_process_attributes): Declare Fget_internal_run_time.
363
364 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
365 list to be consistent with menu.h.
366
367 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
368 warnings due to mixing of "char *" and "const char *".
369
3702010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
371
372 Introduce a new comment style "c" flag.
373 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
374 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
375 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
376 (syntax_prefix_flag_p): New function.
377 (Fstring_to_syntax): Understand new "c" flag.
378 (Finternal_describe_syntax_value): Recognize new flag; use the
379 SYNTAX_FLAGS_* macros.
380 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
381 comment style to accomodate the new styles.
382 (back_comment, forw_comment, Fforward_comment, scan_lists)
383 (scan_sexps_forward): Update code to obey the new comment style flag.
384
385 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
386
387 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
388
3892010-08-11 Jan Djärv <jan.h.d@swipnet.se>
390
391 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
392 first.
393 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
394
395 * gtkutil.h (xg_check_special_colors): Declare.
396
397 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
398 (xg_create_frame_widgets): Connect theme name changes to
399 style_changed_cb.
400
401 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
402 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
403 (x_term_init): Use char[] display_opt and name_opt instead of
404 string literal. file is const char*.
405
406 * xsmfns.c (NOSPLASH_OPT): Change to char[].
407 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
408 props. Free them at the end.
409
410 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
411
412 * xrdb.c (get_system_app): Make path const and use char *p for
413 non-const char.
414
415 * xmenu.c (Fx_popup_dialog): error_name is const char*.
416 (xmenu_show): error parameter is const char **. pane_string is const
417 char *.
418 (button_names): Is const char *.
419 (xdialog_show): error_name and pane_string is const.
420
421 * process.h (synch_process_death): Is const char*.
422
423 * w32menu.c (w32_menu_show):
424 * nsmenu.m (ns_menu_show): error parameter is const char **.
425
426 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
427 is const char **.
428
429 * menu.c (Fx_popup_menu): error_name is const.
430
431 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
432 with unsigned char and XtPointer with void *.
433
434 * gtkutil.h: Replace widget_value with struct _widget_value.
435 (enum button_type, struct _widget_value): Remove and use the one from
436 keyboard.h.
437
438 * gtkutil.c (get_utf8_string): Always return an allocated string.
439 Parameter is const.
440 (create_dialog, xg_create_one_menuitem, create_menus)
441 (xg_item_label_same_p, xg_update_menu_item): Free result from
442 get_utf8_string.
443 (xg_separator_p, xg_item_label_same_p): label is const.
444
445 * font.h (font_open_by_name): Make name const.
446
447 * font.c (font_open_by_name): Make name const.
448
449 * floatfns.c (matherr): Use a const char* variable for x->name.
450
451 * emacs.c (main): Pass char[] to putenv instead of literal.
452
453 * callproc.c (synch_process_death): Make const.
454 (Fcall_process): Make signame const.
455
456 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
457 (addDisplayItemWithImage): Use const char*.
458
459 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
460 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
461
462 * nsfont.m (ns_descriptor_to_entity): Use const char*.
463
464 * keyboard.h (_widget_value): name, value and key are const char*.
465
466 * unexmacosx.c (unexec_error): Use const char *.
467
4682010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
469
470 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
471 (font_parse_name, font_open_by_name):
472 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
473 (font_parse_name, font_open_by_name): Remove const.
474
4752010-08-09 Andreas Schwab <schwab@linux-m68k.org>
476
477 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
478 definition.
479
480 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
481 * m/amdx86-64.h: Likewise.
482 * m/arm.h: Likewise.
483 * m/hp800.h: Likewise.
484 * m/ia64.h: Likewise.
485 * m/ibmrs6000.h: Likewise.
486 * m/ibms390.h: Likewise.
487 * m/intel386.h: Likewise.
488 * m/iris4d.h: Likewise.
489 * m/m68k.h: Likewise.
490 * m/macppc.h: Likewise.
491 * m/mips.h: Likewise.
492 * m/sh3.h: Likewise.
493 * m/sparc.h: Likewise.
494 * m/template.h: Likewise.
495 * m/vax.h: Likewise.
496 * m/xtensa.h: Likewise.
497 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
498 WORDS_BIG_ENDIAN.
499 * lisp.h: Likewise.
500 * md5.c: Likewise.
501 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
502
5032010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
504
505 Use const char* instead of char*.
506 Reduce the number of warnings with -Wwrite-strings.
507 * xrdb.c (get_environ_db, get_system_name):
508 * unexelf.c (find_section):
509 * term.c (string_cost, string_cost_one_line, per_line_cost)
510 (get_named_tty, init_tty):
511 * sysdep.c (sys_subshell):
512 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
513 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
514 * search.c (Freplace_match):
515 * process.c (Fmake_network_process, send_process, init_process):
516 * lread.c (Fload, init_lread):
517 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
518 * keyboard.c (parse_tool_bar_item, struct event_head):
519 * gtkutil.h (xg_get_font_name):
520 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
521 (make_widget_for_menu_item, make_menu_item, create_menus)
522 (xg_make_tool_item):
523 * font.c (parse_matrix, font_parse_name):
524 * floatfns.c (rounding_driver, float_error_fn_name):
525 * filelock.c (get_boot_time_1, lock_file_1):
526 * fileio.c (barf_or_query_if_file_exists, check_writable):
527 * editfns.c (get_system_name, get_operating_system_release)
528 (Fencode_time, Fset_time_zone_rule):
529 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
530 * buffer.c (defvar_per_buffer): Use const.
531
5322010-08-08 Kenichi Handa <handa@m17n.org>
533
534 * charset.c: Include <stdlib.h>.
535 (struct charset_sort_data): New struct.
536 (charset_compare): New function.
537 (Fsort_charsets): New function.
538 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
539
540 * coding.c (decode_coding_iso_2022): Fix checking of dimension
541 number in CTEXT extended segment.
542
5432010-08-08 Juanma Barranquero <lekktu@gmail.com>
544
545 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
546 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
547
5482010-08-08 Juanma Barranquero <lekktu@gmail.com>
549
550 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
551 (Fhash_table_size): Fix typos in docstrings.
552 (Fmake_hash_table): Doc fix.
553
5542010-08-08 Juanma Barranquero <lekktu@gmail.com>
555
556 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
557 Doc fix (bug#5625).
558
5592010-08-08 Ken Brown <kbrown@cornell.edu>
560
561 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
562 the MSDOS definition.
563
5642010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
565
566 Use const char* instead of char*.
567 * xterm.c (x_create_toolkit_scroll_bar):
568 * xfont.c (xfont_list_pattern):
569 * xfns.c (x_default_scroll_bar_color_parameter)
570 (xic_create_fontsetname, x_default_font_parameter)
571 (x_screen_planes):
572 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
573 (store_mode_line_string, decode_mode_spec, display_string):
574 * menu.c (digest_single_submenu):
575 * keymap.h (initial_define_key, initial_define_lispy_key):
576 * keymap.c (initial_define_key, initial_define_lispy_key):
577 * image.c (image_error, image_keyword):
578 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
579 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
580 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
581 (ftfont_list, ftfont_match):
582 * frame.c (frame_parm_table):
583 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
584 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
585 (font_add_log, font_deferred_log):
586 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
587 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
588 (font_add_log, font_deferred_log):
589 * emacs.c (argmatch):
590 * dispextern.h (struct it):
591 * coding.c (ENCODE_DESIGNATION):
592 * charset.c (define_charset_internal): Use const.
593
594 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
595
596 * xrdb.c: Remove include guard.
597 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
598 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
599 realloc->xrealloc instead of using #defines.
600
6012010-08-08 Eli Zaretskii <eliz@gnu.org>
602
603 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
604 * editfns.c (Fline_beginning_position, Fline_end_position):
605 State in the doc strings that start and end of line are in the
606 logical order.
607
608 * xdisp.c (display_line): Move the handling of overlay arrow after
609 the call to find_row_edges. (Bug#6699)
610
6112010-08-07 Chong Yidong <cyd@stupidchicken.com>
612
613 * keyboard.c (command_loop_1):
614 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
615
6162010-08-07 Chong Yidong <cyd@stupidchicken.com>
617
618 * insdel.c (prepare_to_modify_buffer): Save active region text to
619 Vsaved_region_selection.
620
621 * xselect.c (QPRIMARY): Move to keyboard.c.
622
623 * keyboard.c (Vselect_active_regions): Move from simple.el.
624 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
625 (command_loop_1): Set window selection prior to deactivating the mark.
626
6272010-08-07 Juanma Barranquero <lekktu@gmail.com>
628
629 * alloc.c (lisp_malloc):
630 * buffer.c (set_buffer_internal, set_buffer_internal_1):
631 * charset.h (emacs_mule_charset):
632 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
633 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
634 (bitch_at_user):
635 * lisp.h (Fcheck_coding_system, Fget_text_property)
636 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
637 Remove duplicate declarations.
638
6392010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
640
641 * process.c: Simplify include logic.
642
643 * keyboard.h (quit_char): Add declaration.
644 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
645 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
646 Add declarations.
647 * sysdep.c:
648 * w32.c: Remove the above declarations.
649
650 Remove extern declarations in .c files, .h files have them.
651 * xterm.c:
652 * xdisp.c:
653 * msdos.c:
654 * image.c:
655 * gtkutil.c:
656 * fileio.c:
657 * eval.c: Remove declarations.
658
659 * frame.c (frame_params): Make const.
660
661 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
662
663 * emacs.c (emacs_copyright, emacs_version): Make static.
664 (Vinitial_window_system, Vauto_save_list_file_name)
665 (Vinhibit_redisplay): Remove declarations.
666 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
667 for AIX.
668
669 Use const for some arrays and functions.
670 * xterm.h (xg_set_icon_from_xpm_data):
671 * xfns.c (xg_set_icon_from_xpm_data):
672 * term.c (fkeys):
673 * keyboard.c (lispy_accent_keys, lispy_function_keys)
674 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
675 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
676 (frame.c frame_parms):
677 * emacs-icon.h (gnu_xpm_bits):
678 * callint.c (callint_argfuns): Use const.
679
6802010-08-06 Jan Djärv <jan.h.d@swipnet.se>
681
682 * sysdep.c: Move include term.h last of includes (Bug#6812).
683
6842010-08-06 Eli Zaretskii <eliz@gnu.org>
685
686 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
687
688 * msdos.c (IT_display_cursor): Log cursor position on termscript.
689
690 * .gdbinit (pgx): Display the avoid_cursor_p flag.
691
6922010-08-06 Juanma Barranquero <lekktu@gmail.com>
693
694 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
695
6962010-08-06 Jan Djärv <jan.h.d@swipnet.se>
697
698 * xterm.h (x_get_focus_frame): Declare.
699
700 * keyboard.h (poll_for_input_1): Unconditionally declare.
701
702 * nsterm.h (x_set_menu_bar_lines): Declare.
703
704 * window.c: Don't include menu.h, it depends on lots of other .h-files.
705
706 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
707
708 * window.c: Include menu.h.
709
710 * unexmacosx.c (print_region_list, print_regions)
711 (build_region_list, find_emacs_zone_regions)
712 (unexec_regions_merge, read_load_commands, dump_it)
713 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
714
715 * term.c: Check HAVE_SYS_IOCTL_H.
716
717 * sysdep.c: Check HAVE_TERM_H.
718
719 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
720
721 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
722 (ns_ring_bell, ns_defined_color, hide_hourglass)
723 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
724 Convert to ANSI C prototypes.
725 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
726 before code.
727
728 * nsterm.h : Include sysselect.h.
729 (x_sync, x_get_focus_frame, x_set_mouse_position)
730 (x_set_mouse_pixel_position, x_make_frame_visible)
731 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
732 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
733 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
734 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
735 Declare.
736
737 * nsmenu.m (popup_activated, name_is_separator)
738 (syms_of_nsmenu): Convert to ANSI C prototypes.
739 (runMenuAt): Prototypes and move declarations before code.
740
741 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
742
743 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
744 prototypes.
745
746 * nsfns.m (have_menus_p, ns_display_info_for_name)
747 (x_set_cursor_type, ns_appkit_version_str)
748 (ns_appkit_version_int, ns_do_applescript)
749 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
750 (syms_of_nsfns): Convert to ANSI C prototypes.
751
752 * menu.h (x_set_menu_bar_line): Declare.
753 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
754
755 * lisp.h (fmod_float): Declare.
756
757 * image.c (xpm_scan, xpm_make_color_table_v)
758 (xpm_put_color_table_v, xpm_get_color_table_v)
759 (xpm_make_color_table_h, xpm_put_color_table_h)
760 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
761 (xpm_load): Convert to ANSI C prototypes.
762
763 * emacs.c: Include nsterm.h if HAVE_NS.
764
765 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
766
7672010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
768
769 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
770 subprocesses, only MSDOS does not define HAVE_SOCKETS.
771 (socket_options): Use const char* for name.
772
7732010-08-06 Juanma Barranquero <lekktu@gmail.com>
774
775 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
776
777 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
778 Don't declare xmalloc_widget_value and digest_single_submenu.
779
780 * w32font.c (Qlatin): Remove declaration.
781
782 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
783
784 * dired.c (compile_pattern): Restore declaration.
785
7862010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
787
788 Remove extern declarations in .c files, .h files have them.
789 * data.c:
790 * dired.c:
791 * editfns.c:
792 * filelock.c:
793 * fns.c:
794 * font.c:
795 * fontset.c:
796 * frame.c:
797 * fringe.c:
798 * ftfont.c:
799 * gtkutil.c:
800 * indent.c:
801 * keyboard.c:
802 * keymap.c:
803 * lread.c:
804 * menu.c:
805 * print.c:
806 * search.c:
807 * sound.c:
808 * window.c:
809 * xdisp.c:
810 * xfaces.c:
811 * xfns.c:
812 * xfont.c:
813 * xftfont.c:
814 * xmenu.c:
815 * xterm.c: Remove declarations.
816
817 Cleanup syssignal.h.
818 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
819 (main_thread): Move down to remove #ifdef.
820 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
821 Remove conditional definition following unconditional ones.
822
823 * lisp.h: Remove HAVE_SHM code, unused.
824 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
825 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
826 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
827 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
828 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
829 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
830 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
831 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
832 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
833 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
834 (Qwindow_scroll_functions, Vafter_load_alist)
835 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
836 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
837 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
838 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
839 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
840 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
841 (initial_argv, last_nonmenu_event, load_in_progress)
842 (noninteractive_need_newline, scroll_margin): Add declarations.
843
844 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
845 declarations, menu.h has them.
846 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
847 (Vinput_method_function, Qinput_method_function)
848 (Qevent_symbol_element_mask, last_event_timestamp):
849 * dispextern.h (Voverflow_newline_into_fringe):
850 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
851 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
852 (syms_of_w32font, syms_of_nsfont):
853 * fontset.h (find_font_encoding, Qlatin):
854 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
855 (Vtool_bar_mode, set_frame_menubar):
856 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
857 * xterm.h (Qx_gtk_map_stock):
858 * keymap.h (meta_prefix_char): Add declarations.
859
860 * term.c: Remove dead code.
861
862 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
863 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
864 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
865 which is what was there before BSD_PGRPS was removed.
866
8672010-08-05 Eli Zaretskii <eliz@gnu.org>
868
869 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
870
871 * unexcoff.c: Renamed from unexec.c.
872
8732010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
874
875 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
876
8772010-08-03 Johan Bockgård <bojohan@gnu.org>
878
879 * data.c (Flocal_variable_p): Handle variable aliases correctly.
880 (Bug#6744)
881
8822010-08-02 Jan Djärv <jan.h.d@swipnet.se>
883
884 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
885 to TRUE if depth of screen is < 16.
886
887 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
888 USE_GTK_TOOLTIP.
889 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
890 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
891 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
892 USE_GTK_TOOLTIP.
893 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
894
895 * xterm.h (USE_GTK_TOOLTIP): New define.
896 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
897
898 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
899 to Control-D (Bug#6771).
900
9012010-08-02 Juanma Barranquero <lekktu@gmail.com>
902
903 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
904 Wording by Drew Adams <drew.adams@oracle.com>.
905
9062010-08-01 Jan Djärv <jan.h.d@swipnet.se>
907
908 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
909 ttip_lbl.
910
911 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
912 calling gtk_widget_queue_draw.
913 (x_free_frame_resources): Call xg_free_frame_widgets.
914
915 * xfns.c (x_gtk_use_system_tooltips): New variable.
916 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
917 new gtkutil tooltip functions to show the tooltip.
918 (Fx_hide_tip): Call xg_hide_tooltip.
919 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
920
921 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
922 (xg_show_tooltip, xg_hide_tooltip): Declare.
923
924 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
925 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
926 New functions.
927 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
928 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
929 Remove code that is commented out.
930
9312010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
932
933 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
934
9352010-07-31 Chong Yidong <cyd@stupidchicken.com>
936
937 * xselect.c (x_own_selection): Use list4.
938
9392010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
940
941 * buffer.c (Qwindow): Do not define, already defined in data.c.
942 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
943
9442010-07-29 Chad Brown <yandros@mit.edu>
945
946 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
947 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
948 * config.in: Undef HAVE_DIRENT_H.
949 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
950 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
951
9522010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
953
954 Rename s/usg5-4.h -> s/usg5-4-common.h.
955 * s/usg5-4.h: Rename file to ...
956 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
957 * s/unixware.h:
958 * s/sol2-6.h:
959 * s/irix6-5.h: Update includes accordingly.
960
9612010-07-29 Jan Djärv <jan.h.d@swipnet.se>
962
963 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
964
965 * xterm.h (struct x_output): Add toolbar_top_height,
966 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
967 Remove toolbar_height.
968 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
969 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
970 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
971 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
972
973 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
974
975 * xfns.c (x_set_tool_bar_position): New function.
976 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
977 (x_frame_parm_handlers): Add x_set_tool_bar_position.
978 (syms_of_xfns): If USE_GTK, provide move-toolbar.
979
980 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
981 and FRAME_TOOLBAR_LEFT_WIDTH.
982
983 * gtkutil.h (xg_change_toolbar_position): Declare.
984
985 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
986 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
987 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
988 (xg_create_frame_widgets): Create a hobox for placing widgets
989 vertically. Use gtk_box_pack_start.
990 (xg_height_or_width_changed): Renamed from xg_height_changed.
991 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
992 (xg_update_frame_menubar, free_frame_menubar): Change to
993 xg_height_or_width_changed.
994 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
995 size correctly. Remove hardcoded 4, instead use handlebox size -
996 toolbar size.
997 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
998 size correctly. Use handlebox size + toolbar size as additional size.
999 (xg_pack_tool_bar): POS is a new parameter.
1000 Set orientation of tool bar based on pos.
1001 Only make handlebox_widget if NULL.
1002 Check if tool bar goes to vbox or hbox depending on pos.
1003 (xg_update_tool_bar_sizes): New function.
1004 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
1005 height, call xg_update_tool_bar_sizes instead.
1006 (free_frame_tool_bar): Remove from hbox or vbox depending on
1007 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1008 (xg_change_toolbar_position): New function.
1009
1010 * frame.h (struct frame): Add tool_bar_position.
1011 (Qbottom): Declare.
1012
1013 * frame.c (Qtool_bar_position): New variable.
1014 (make_frame): Set tool_bar_position to Qtop.
1015 (frame_parms): Add tool-bar-position.
1016 (x_report_frame_params): Store tool_bar_position.
1017 (x_set_fringe_width): Reset wm size hint after fringe changes.
1018
10192010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1020
1021 Make lisp_time_argument declaration work on all systems.
1022 * lisp.h (lisp_time_argument): Move declaration ...
1023 * systime.h (lisp_time_argument): ... here
1024 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1025
10262010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1027
1028 * vm-limit.c (POINTER): Add typedef for it.
1029 (start_of_data): Change return type from POINTER to char *.
1030
1031 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1032 HAVE_WINDOW_SYSTEM.
1033
10342010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1035
1036 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1037 Remove reference to __osf__, unused.
1038
1039 * mem-limits.h: Remove duplicated includes.
1040 (NULL): Remove definition, unused.
1041 (POINTER): Remove definition.
1042 (start_of_data): Use char* in prototype, as the function
1043 definition does.
1044
1045 Remove extern declarations from .c files, and them to .h files.
1046 * keyboard.h (Qhelp_echo, waiting_for_input)
1047 (input_available_clear_time, ignore_mouse_drag_p)
1048 (Vdouble_click_time, real_this_command, Vthis_original_command):
1049 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1050 (Voverriding_local_map_menu_flag):
1051 * lisp.h (Qinteractive_form, use_file_dialog)
1052 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1053 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1054 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1055 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1056 (Qfunction, debug_on_next_call, Qfield)
1057 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1058 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1059 (Qfile_directory_p, Qinsert_file_contents)
1060 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1061 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1062 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1063 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1064 (Qminibuffer_prompt)
1065 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1066 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1067 (gray_bitmap_bits, xic_create_fontsetname):
1068 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1069
1070 * xsmfns.c (Vuser_login_name):
1071 * xrdb.c (Vdouble_click_time):
1072 * xfaces.c (xic_create_fontsetname):
1073 * w32select.c (waiting_for_input):
1074 * print.c (minibuffer_auto_raise):
1075 * msdos.c (Qhelp_echo):
1076 * macros.c (real_this_command):
1077 * keymap.c (Voverriding_local_map):
1078 * xterm.c (poll_for_input_1, gray_bitmap_width)
1079 (gray_bitmap_height, gray_bitmap_bits;
1080 * xmenu.c ( Voverriding_local_map)
1081 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1082 (use_file_dialog, Xt_app_con):
1083 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1084 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1085 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1086 (Qtool_bar_lines, ignore_mouse_drag_p):
1087 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1088 (Qrear_nonsticky, nconc2):
1089 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1090 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1091 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1092 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1093 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1094 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1095 (gc_in_progress):
1096 * doc.c (Voverriding_local_map, Qremap):
1097 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1098 (Vcompletion_regexp_list):
1099 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1100 (Qcompletion_ignore_case):
1101 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1102 (Vhistory_length, Vthis_original_command, real_this_command)
1103 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1104 * image.c (Qrisky_local_variable):
1105 * fontset.c (QCname):
1106 * fns.c (minibuffer_auto_raise, QCname):
1107 * dispnew.c (char_ins_del_cost):
1108 * composite.c (font_fill_lglyph_metrics):
1109 * cmds.c (Qface, Vtranslation_table_for_input):
1110 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1111 * ccl.c (charset_unicode):
1112 * callproc.c (Vtemporary_file_directory):
1113 * buffer.c (emacs_strerror): Remove extern declarations.
1114
1115 * data.c (Qwindow): Make non-static, used from other files too.
1116 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1117
1118 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1119 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1120 * s/usg5-4.h (COFF):
1121 * s/template.h:
1122 * s/msdos.h (COFF, NO_REMAP):
1123 * s/ms-w32.h (NO_REMAP):
1124 * s/hpux10-20.h (NO_REMAP):
1125 * m/sparc.h (SEGMENT_MASK):
1126 * m/m68k.h (NO_REMAP):
1127 * m/intel386.h (SEGMENT_MASK):
1128 * m/arm.h (NO_REMAP):
1129 * m/alpha.h (COFF):
1130 * m/template.h: Remove references to unused defines.
1131
11322010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1133
1134 * xsettings.c (Ftool_bar_get_system_style): Also check for
1135 Qtext_image_horiz.
1136
1137 * xdisp.c (Qtext_image_horiz): Define.
1138 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
1139 to documentation of tool-bar-style.
1140
1141 * lisp.h (Qtext_image_horiz): Declare.
1142
1143 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1144 style text_image_horiz.
1145
11462010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1147
1148 * emacs.c (Fkill_emacs): Remove return statement.
1149
1150 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1151 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1152 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1153 local extern declarations.
1154
1155 * xmenu.c: Do not included lwlib.h, not needed.
1156
1157 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1158
1159 * process.c: Move definitions earlier to minimize #ifdefs.
1160
1161 * xterm.h (x_get_customization_string, x_load_resources)
1162 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1163 (x_check_errors, x_property_data_to_lisp, defined_color)
1164 (xic_set_xfontset, x_defined_color): Use const.
1165
1166 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1167 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1168
1169 * xselect.c (selection_data_to_lisp_data)
1170 (x_property_data_to_lisp):
1171 * xrdb.c (x_get_string_resource, file_p)
1172 (x_get_customization_string, magic_file_p, search_magic_path)
1173 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1174 (x_get_string_resource): Use const.
1175
1176 * xfns.c: Include xlwmenu.h when USE_LUCID.
1177 (x_defined_color, xic_set_xfontset): Use const.
1178 (Fx_hide_tip): Remove local extern declaration.
1179
1180 * xfaces.c (Qmouse_face): Remove declaration.
1181 (face_color_gray_p, tty_defined_color, defined_color)
1182 (face_color_gray_p, face_color_supported_p): Add const.
1183
1184 * xdisp.c (do_mouse_tracking): Remove declaration.
1185 (add_to_log): Use const.
1186
1187 * minibuf.c (Qmouse_face): Remove declaration.
1188
1189 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1190
1191 * keyboard.h (do_mouse_tracking): Add declaration.
1192
1193 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1194 (QCdata, QCtype, Qcenter): Remove declarations.
1195
1196 * frame.c (x_get_resource_string, x_get_string_resource)
1197 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1198 (x_default_parameter): Use const.
1199
1200 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1201 (QCheight, QCsize, QCname): Remove declarations.
1202
1203 * emacs.c (main): Remove local extern declaration.
1204
1205 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1206 declarations.
1207
1208 * dispnew.c: Remove duplicate #include <unistd.h>.
1209 (update_window, update_frame_1, init_display): Remove local extern
1210 declarations.
1211
1212 * dispextern.h (add_to_log): Remove declaration.
1213 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1214 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1215
1216 * dired.c (scmp): Add const.
1217 (directory_files_internal): Remove local extern declaration.
1218
1219 * data.c (Finteractive_form): Use const.
1220
1221 * composite.c (syms_of_composite): Remove local extern declarations.
1222
1223 * charset.c (add_to_log): Remove declaration.
1224
1225 * character.c (strwidth, parse_str_to_multibyte): Add const.
1226
1227 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1228
1229 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1230
1231 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
1232 (Lisp_Subr): Make doc and intspec constant.
1233 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1234 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1235 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1236 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1237 (display_arg): Add declarations.
1238
12392010-07-27 Christoph Scholtes <cschol2112@gmail.com>
1240
1241 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1242
1243 * window.c (Fwindow_height): Doc fix (bug#6518).
1244
12452010-07-27 Juanma Barranquero <lekktu@gmail.com>
1246
1247 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1248
12492010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1250
1251 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1252 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1253 functions.
1254
1255 * frame.h (Qtty_color_mode): Add declaration.
1256
1257 * lisp.h (Ftop_level, Fexit_recursive_edit)
1258 (Fabort_recursive_edit): Mark as NO_RETURN.
1259
12602010-07-26 Kenichi Handa <handa@m17n.org>
1261
1262 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
1263 number of glyphs gets smaller than the original length. (Bug#6621)
1264
12652010-07-26 Juanma Barranquero <lekktu@gmail.com>
1266
1267 * lread.c (unreadpure, mapatoms_1): Make static.
1268
12692010-07-25 Juanma Barranquero <lekktu@gmail.com>
1270
1271 * terminfo.c (tparam): Fix prototype of tparm.
1272
12732010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1274
1275 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1276 find start of text segment.
1277 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1278 is defined.
1279
1280 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1281
12822010-07-25 Ken Brown <kbrown@cornell.edu>
1283
1284 * vm-limit.c (check_memory_limits): Fix previous change;
1285 accidentally reverted an earlier change.
1286
12872010-07-25 Ken Brown <kbrown@cornell.edu>
1288
1289 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1290 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1291
12922010-07-25 Juanma Barranquero <lekktu@gmail.com>
1293
1294 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1295 * dired.c (opendir, readdir): Fix prototypes.
1296 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1297 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1298 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1299 (telldir): Remove declaration.
1300 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1301 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1302 * syssignal.h (strsignal): Fix prototype.
1303 * term.c (tparam): Fix prototype.
1304 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1305 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1306 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1307 and __morecore.
1308 * w32gui.h (XParseGeometry): Fix prototype.
1309 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1310 * w32term.c (my_set_focus): Declare inside #if 0.
1311 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1312 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1313 (drain_message_queue, get_next_msg, post_msg, parse_button)
1314 (ClipboardSequence_Proc): Fix prototypes.
1315 (wait_for_sync): Remove declaration.
1316
13172010-07-24 Juanma Barranquero <lekktu@gmail.com>
1318
1319 * w32fns.c (w32_to_x_color): Remove, unused.
1320
13212010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1322
1323 * lisp.h: Remove leftover P_.
1324
13252010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1326
1327 * ecrt0.c, unexalpha.c: Remove files, unused.
1328
13292010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1330
1331 * cmds.c (internal_self_insert): Make static.
1332 * lisp.h (internal_self_insert): Remove declaration.
1333
13342010-07-23 Juanma Barranquero <lekktu@gmail.com>
1335
1336 * alloc.c (free_float):
1337 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1338 * frame.c (delete_frame_handler):
1339 * ralloc.c (reorder_bloc):
1340 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1341 Remove unused static functions.
1342
1343 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1344 it is called only from NS code.
1345
1346 * w32term.c (my_set_focus): #ifdef away; it is called only from
1347 "#ifdef 0" code.
1348
1349 * w32fns.c (x_edge_detection):
1350 * xfaces.c (may_use_scalable_font_p):
1351 Remove obsolete static declarations.
1352
13532010-07-20 Juanma Barranquero <lekktu@gmail.com>
1354
1355 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1356 (emacs_blocked_realloc, uninterrupt_malloc):
1357 * fringe.c (w32_reset_fringes):
1358 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1359 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1360 * sound.c (be2hs, do_play_sound):
1361 * vm-limit.c (get_lim_data, ret_lim_data):
1362 * w32term.c (x_free_frame_resources):
1363 * xfaces.c (x_create_gc, x_free_gc):
1364 Convert definitions to standard C.
1365
13662010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1367
1368 * eval.c (Feval, Ffuncall): Use the new names.
1369
1370 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1371 (DEFUN): Add braces around the union initialisation and use ## to
1372 specify the right union alternative and avoid a cast.
1373
13742010-07-18 Juanma Barranquero <lekktu@gmail.com>
1375
1376 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1377
13782010-07-17 Chong Yidong <cyd@stupidchicken.com>
1379
1380 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1381
13822010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1383
1384 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1385 is related to the menu bar (Bug#6499).
1386 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
1387
13882010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1389
1390 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1391
1392 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1393
1394 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1395 i.e. don't put back ButtonRelease (Bug#6608).
1396
1397 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1398 instead of Window. Call xg_event_is_for_menubar when
1399 USE_GTK (Bug#6499).
1400
1401 * gtkutil.h (xg_event_is_for_menubar): Declare.
1402
1403 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1404
14052010-07-16 Eli Zaretskii <eliz@gnu.org>
1406
1407 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1408 when it's the same as the old foreground. (Bug#6609)
1409
14102010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1411
1412 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1413 widget is non-null (Bug#6645).
1414
14152010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1416
1417 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1418 Convert old-style definition.
1419
1420 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1421 timestamp argument.
1422
14232010-07-15 Eli Zaretskii <eliz@gnu.org>
1424
1425 * fringe.c (update_window_fringes): Restore mistakenly reverted
1426 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1427
14282010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1429
1430 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1431 (SET_SAVED_KEY_EVENT): Remove (not used).
1432 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1433 remove size parameter.
1434 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1435 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1436 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1437 ButtonRelease.
1438 (x_set_window_size_1): scroll_bar_actual_width is always
1439 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
1440
1441 * xdisp.c (pending_menu_activation): Remove extern declaration.
1442 (prepare_menu_bars): Remove setting of pending_menu_activation.
1443
1444 * xmenu.c (pending_menu_activation): Remove.
1445 (x_activate_menubar): Set popup_activated_flag for Xt also.
1446 Remove setting of pending_menu_activation.
1447 (set_frame_menubar): Remove check of pending_menu_activation.
1448 Declare menubar_size before code. Correct spelling in comment.
1449
14502010-07-14 Kenichi Handa <handa@m17n.org>
1451
1452 * font.c (font_open_entity): Cancel previous change.
1453 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1454
14552010-07-13 Eli Zaretskii <eliz@gnu.org>
1456
1457 Remove subprocesses #ifdefs.
1458 * process.c <inhibit_sentinels>: Move to the common part.
1459 (Fwaiting_for_user_input_p): Move to the common part; return nil
1460 if async subprocesses aren't supported.
1461 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1462 MS-DOS. Remove "#ifdef subprocesses".
1463 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1464 (gettimeofday): Remove "#ifdef subprocesses".
1465 (wait_without_blocking): Remove function.
1466 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1467 Remove "#ifdef subprocesses".
1468 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1469 compiled on MS-DOS.
1470 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1471 wait_for_termination on MS-DOS.
1472 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1473 initialization of inhibit_sentinels.
1474 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1475 subprocesses" conditional.
1476 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1477 wait_for_termination, since `buffer' cannot be an integer when
1478 async subprocesses are not supported
1479 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1480 for ifdefing away the call to Fprocess_status.
1481
1482 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1483 away the entire body of the function.
1484
14852010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1486
1487 Remove subprocesses #ifdefs from term.c.
1488 * process.c (add_keyboard_wait_descriptor)
1489 (delete_keyboard_wait_descriptor): Move to common section, do
1490 nothing when subprocesses is not defined.
1491 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1492 Remove subprocesses #ifdefs.
1493
1494 Convert maybe_fatal to standard C.
1495 * lisp.h (verror): Declare.
1496 * eval.c (verror): New function containing the code from ...
1497 (error): ... this. Call verror.
1498 * term.c (vfatal): New function containing the code from ...
1499 (fatal): ... this. Call vfatal.
1500 (maybe_fatal): Convert to standard C, use variable number of
1501 arguments. Declare as non-return.
1502 (init_tty): Fix maybe_fatal call.
1503
15042010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1505
1506 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1507 (_scroll_bar_note_movement): Convert definitions to standard C.
1508 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1509 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1510
15112010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1512
1513 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1514 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1515 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1516 (xaw_jump_callback, xaw_scroll_callback)
1517 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1518 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1519 definitions to standard C.
1520 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1521 (popup_activate_callback, popup_deactivate_callback)
1522 (menu_highlight_callback, menubar_selection_callback)
1523 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1524 (free_frame_menubar, popup_selection_callback, as)
1525 (create_and_show_popup_menu, dialog_selection_callback)
1526 (create_and_show_dialog):
1527 * xfns.c (hack_wm_protocols, x_window):
1528 * xfaces.c (x_update_menu_appearance):
1529 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1530 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1531 (set_frame_size, update_wm_hints, setup_frame_gcs)
1532 (update_various_frame_slots, update_from_various_frame_slots)
1533 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1534 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1535 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1536
15372010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1538
1539 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
1540
15412010-07-12 Eli Zaretskii <eliz@gnu.org>
1542
1543 * process.c (setup_process_coding_systems): Move to the part
1544 shared by non-subprocesses systems, and make its body empty when
1545 subprocesses is not defined.
1546 (close_process_descs): Move to the part shared by non-subprocesses
1547 systems.
1548 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1549 ANSI C.
1550
15512010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1552
1553 * editfns.c (transpose_markers): Convert old-style definition.
1554 * emacs.c (abort, shut_down_emacs, fixup_locale)
1555 (synchronize_system_time_locale)
1556 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1557 * floatfns.c (extract_float, matherr, init_floatfns)
1558 (syms_of_floatfns): Likewise.
1559 * fns.c (make_hash_table): Likewise.
1560 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1561 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1562 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1563 (ftfont_variation_glyphs): Likewise.
1564 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1565 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1566 * lread.c (read_filtered_event): Likewise.
1567 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1568 * process.c (wait_reading_process_output): Likewise.
1569 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1570 * search.c (search_buffer, boyer_moore): Likewise.
1571 * syntax.c (scan_sexps_forward): Likewise.
1572 * xdisp.c (try_scrolling): Likewise.
1573 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1574 (face_at_string_position): Likewise.
1575 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1576 * xselect.c (x_get_window_property, receive_incremental_selection)
1577 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1578 Likewise.
1579 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1580
15812010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1582
1583 * callproc.c (child_setup): Remove subprocesses conditional.
1584 Remove code dealing with SET_EMACS_PRIORITY, unused.
1585
1586 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
1587 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1588
1589 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1590 (__do_global_dtors, __main): Use void in definition.
1591 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1592 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1593 the only users from ...
1594 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1595 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1596 (HAVE_VOLATILE): Remove, unused.
1597
1598 Convert more function definitions to standard C.
1599 * xdisp.c (window_box_edges, handle_single_display_spec)
1600 (display_string): Convert definition to standard C.
1601 * scroll.c (do_direct_scrolling, scrolling_1):
1602 * dispnew.c (allocate_matrices_for_frame_redisplay)
1603 (mirrored_line_dance):
1604 * coding.c (code_convert_string):
1605 * charset.c (map_charset_chars):
1606 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1607 (Fregister_ccl_program, Fregister_code_conversion_map):
1608 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1609 (head_table): Make static and const.
1610
16112010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1612
1613 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1614 (PROFILING_LDFLAGS): Set from substitution.
1615 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1616 CFLAGS last.
1617
16182010-07-12 Kenichi Handa <handa@m17n.org>
1619
1620 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1621 (shortlisp): Likewise.
1622
1623 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1624
1625 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1626 of FONT_ENTITY_INDEX.
1627 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1628 property, get the property value dynamically.
1629 (Ffont_put): Accept font-entity and font-object too.
1630 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1631 return value changed.
1632 (syms_of_font): Adjusted for the above change.
1633
16342010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1635
1636 * blockinput.h: Remove obsolete comment.
1637
1638 * lisp.h: Include <stddef.h>.
1639 (OFFSETOF): Don't define.
1640 (VECSIZE): Use offsetof instead of OFFSETOF.
1641 (PSEUDOVECSIZE): Likewise.
1642 * process.c (conv_sockaddr_to_lisp): Likewise.
1643 * alloc.c: Don't include <stddef.h>.
1644 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1645
1646 * process.c: Remove obsolete comment.
1647
16482010-07-11 Chong Yidong <cyd@stupidchicken.com>
1649
1650 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1651
16522010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1653
1654 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1655 index, rindex.
1656 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1657 * editfns.c (Fuser_full_name, Fformat): Likewise.
1658 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1659 * fileio.c (Ffile_symlink_p): Likewise.
1660 * filelock.c (current_lock_owner): Likewise.
1661 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1662 * fontset.c (fontset_pattern_regexp): Likewise.
1663 * lread.c (read1): Likewise.
1664 * sysdep.c (init_system_name): Likewise.
1665 * xfns.c (select_visual): Likewise.
1666 * s/hpux10-20.h (index, rindex): Don't define.
1667 * s/ms-w32.h (index): Likewise.
1668 * s/usg5-4.h: Likewise.
1669
1670 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1671
1672 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1673 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1674 (egetenv): Likewise.
1675 * doprnt.c (doprnt): Likewise.
1676 * editfns.c (set_time_zone_rule, format2): Likewise.
1677 * emacs.c (decode_env_path): Likewise.
1678 * eval.c (signal_error, error): Likewise.
1679 * insdel.c (replace_range_2): Likewise.
1680 * keyboard.c (cmd_error_internal): Likewise.
1681 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1682 * print.c (write_string, write_string_1, print_error_message):
1683 Likewise.
1684 * vm-limit.c (warn_function, memory_warnings): Likewise.
1685 * xdisp.c (message1, message1_nolog, message_with_string)
1686 (vmessage, message, message_nolog): Likewise.
1687 * emacs.c: Remove duplicate declaration.
1688 * keyboard.h: Likewise.
1689 * lisp.h: Update prototypes.
1690
1691 * eval.c: Fix indentation problem.
1692
1693 * keyboard.c: Include "process.h"
1694
1695 * eval.c: Remove obsolete noinline declaration.
1696 * fns.c: Likewise.
1697
16982010-07-11 Ken Raeburn <raeburn@raeburn.org>
1699
1700 * doprnt.c (doprnt): Take a va_list argument instead of count and
1701 pointer.
1702 * eval.c (error): Change to a standard-C variadic function.
1703 * xdisp.c (vmessage): Renamed from message, made static, and
1704 changed to take a va_list argument.
1705 (message): New variadic wrapper.
1706 (message_nolog): Now a variadic function, calling vmessage.
1707 * lisp.h: Include stdarg.h for va_list.
1708 (doprnt, error, message, message_nolog): Decls updated.
1709
17102010-07-11 Eli Zaretskii <eliz@gnu.org>
1711
1712 * process.c (syms_of_process) <delete-exited-processes>: Define
1713 even if !subprocesses.
1714 (delete_exited_processes): Ditto.
1715
1716 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1717 (delete_exited_processes): Don't define.
1718
17192010-07-10 Chong Yidong <cyd@stupidchicken.com>
1720
1721 * frame.c (make_frame): Initialize menu_bar_lines and
1722 tool_bar_lines members.
1723 (make_initial_frame, make_terminal_frame): Initialize
1724 menu_bar_lines using value of menu-bar-mode.
1725
1726 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1727
17282010-07-10 Eli Zaretskii <eliz@gnu.org>
1729
1730 * process.c: Reshuffle #include's. Condition some of the global
1731 and static variables on `subprocesses'.
1732 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1733 Leave only one implementation.
1734 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1735 (kill_buffer_processes, Flist_system_processes)
1736 (Fprocess_attributes, init_process, syms_of_process): Unify the
1737 implementations for with subprocesses and without them.
1738
17392010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1740
1741 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1742 correct size for Motif.
1743 (free_frame_menubar): Call x_set_window_size to update frame size.
1744
1745 * xfns.c (x_window): Set borderWidth to 0 for pane and
1746 EmacsFrame. Frame size calculation is wrong otherwise.
1747
17482010-07-09 Michael Albinus <michael.albinus@gmx.de>
1749
1750 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1751 allows to suppress errors when polling in Emacs' main loop.
1752 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1753 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1754 (Fdbus_method_error_internal, Fdbus_send_signal)
1755 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1756 (Fdbus_register_method): Use it. (Bug#6579)
1757
17582010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1759
1760 * alloc.c: Convert DEFUNs to standard C.
1761 * buffer.c:
1762 * bytecode.c:
1763 * callint.c:
1764 * callproc.c:
1765 * casefiddle.c:
1766 * casetab.c:
1767 * category.c:
1768 * character.c:
1769 * charset.c:
1770 * chartab.c:
1771 * cmds.c:
1772 * coding.c:
1773 * composite.c:
1774 * data.c:
1775 * dbusbind.c:
1776 * dired.c:
1777 * dispnew.c:
1778 * doc.c:
1779 * dosfns.c:
1780 * editfns.c:
1781 * emacs.c:
1782 * eval.c:
1783 * fileio.c:
1784 * filelock.c:
1785 * floatfns.c:
1786 * fns.c:
1787 * font.c:
1788 * fontset.c:
1789 * frame.c:
1790 * fringe.c:
1791 * image.c:
1792 * indent.c:
1793 * insdel.c:
1794 * keyboard.c:
1795 * keymap.c:
1796 * lread.c:
1797 * macros.c:
1798 * marker.c:
1799 * menu.c:
1800 * minibuf.c:
1801 * msdos.c:
1802 * nsfns.m:
1803 * nsmenu.m:
1804 * nsselect.m:
1805 * print.c:
1806 * process.c:
1807 * search.c:
1808 * sound.c:
1809 * syntax.c:
1810 * term.c:
1811 * terminal.c:
1812 * textprop.c:
1813 * undo.c:
1814 * w16select.c:
1815 * w32console.c:
1816 * w32fns.c:
1817 * w32font.c:
1818 * w32menu.c:
1819 * w32proc.c:
1820 * w32select.c:
1821 * window.c:
1822 * xdisp.c:
1823 * xfaces.c:
1824 * xfns.c:
1825 * xmenu.c:
1826 * xselect.c:
1827 * xsettings.c:
1828 * xsmfns.c: Likewise.
1829
18302010-07-08 Eli Zaretskii <eliz@gnu.org>
1831
1832 * process.c (kbd_is_on_hold, hold_keyboard_input)
1833 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1834
18352010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1836
1837 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1838 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1839 unless USE_LUCID.
1840
18412010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1842
1843 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1844 declaration.
1845
1846 Clean up include guards.
1847 * tparam.c: Remove include guards for config.h, string.h and code
1848 that assumes #ifndef emacs.
1849 * termcap.c:
1850 * unexalpha.c:
1851 * sysdep.c:
1852 * filemode.c:
1853 * filelock.c:
1854 * bidi.c: Likewise.
1855
1856 Remove prefix-args.c
1857 * prefix-args.c: Remove file.
1858 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1859 * Makefile.in (temacs${EXEEXT}): Remove references to
1860 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1861 (mostlyclean): Remove reference to prefix-args.
1862 (prefix-args): Remove.
1863
1864 Simplify cstart_of_data, start_of_code and related code.
1865 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1866 (start_of_data): Merge into start_of_data function.
1867 * sysdep.c (start_of_text): Remove. Move simplified versions of
1868 it in the only users: unexaix.c and unexec.c.
1869 (read_input_waiting): Remove local declaration of quit_char.
1870 (start, etext): Remove declarations.
1871 (start_of_data): Merge with the version in mem-limits.h and move
1872 to vm-limits.c.
1873 * vm-limit.c (start_of_data): Merged and simplified version of the
1874 code formerly in mem-limits.h and sysdep.c.
1875 * unexec.c (start): New declaration, moved from sysdep.c.
1876 (start_of_text): Simplified version of the code formerly in sysdep.c.
1877 * unexaix.c (start_of_text): Simplified version of the code
1878 formerly in sysdep.c.
1879 * m/alpha.h (HAVE_TEXT_START): Remove.
1880 (TEXT_START): Move ...
1881 * unexalpha.c (TEXT_START): ... here.
1882 * s/hpux10-20.h (TEXT_START): Remove.
1883 * s/darwin.h (TEXT_START):
1884 * m/mips.h (TEXT_START):
1885 * m/macppc.h (HAVE_TEXT_START):
1886 * m/m68k.h (TEXT_START):
1887 * m/iris4d.h (TEXT_START):
1888 * m/intel386.h (TEXT_START):
1889 * m/ibmrs6000.h (TEXT_START):
1890 * m/ia64.h (HAVE_TEXT_START):
1891 * s/msdos.h (TEXT_START): Likewise.
1892
18932010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1894
1895 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1896 (overrun_check_free, xstrdup, allocate_string)
1897 (allocate_string_data, compact_small_strings, Fmake_string)
1898 (make_unibyte_string, make_multibyte_string)
1899 (make_string_from_bytes, make_specified_string, make_float)
1900 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1901 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1902 memcpy, memmove, memset, memcmp.
1903 * atimer.c (start_atimer, set_alarm): Likewise.
1904 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1905 (mmap_realloc, init_buffer_once): Likewise.
1906 * callint.c (Fcall_interactively): Likewise.
1907 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1908 (getenv_internal_1): Likewise.
1909 * casefiddle.c (casify_object): Likewise.
1910 * ccl.c (ccl_driver): Likewise.
1911 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1912 * charset.c (load_charset_map_from_file)
1913 (load_charset_map_from_file, load_charset_map_from_vector)
1914 (Fdefine_charset_internal): Likewise.
1915 * cm.c (Wcm_clear): Likewise.
1916 * coding.c (decode_eol, decode_coding_object)
1917 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1918 * data.c (Faset): Likewise.
1919 * dired.c (directory_files_internal, file_name_completion_stat):
1920 Likewise.
1921 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1922 (clear_glyph_row, copy_row_except_pointers)
1923 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1924 (save_current_matrix, restore_current_matrix)
1925 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1926 (mirror_line_dance, scrolling_window): Likewise.
1927 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1928 Likewise.
1929 * doprnt.c (doprnt): Likewise.
1930 * editfns.c (Fuser_full_name, make_buffer_string_both)
1931 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1932 * emacs.c (sort_args): Likewise.
1933 * eval.c (Fapply, Ffuncall): Likewise.
1934 * fileio.c (Ffile_name_directory, make_temp_name)
1935 (Fexpand_file_name, search_embedded_absfilename)
1936 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1937 (auto_save_error): Likewise.
1938 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1939 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1940 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1941 (Fmake_hash_table): Likewise.
1942 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1943 * ftfont.c (ftfont_text_extents): Likewise.
1944 * getloadavg.c (getloadavg): Likewise.
1945 * image.c (define_image_type, make_image, make_image_cache)
1946 (x_create_x_image_and_pixmap, xbm_image_p)
1947 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1948 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1949 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1950 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1951 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1952 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1953 Likewise.
1954 * indent.c (scan_for_column, compute_motion): Likewise.
1955 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1956 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1957 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1958 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1959 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1960 (store_user_signal_events, menu_bar_items, tool_bar_items)
1961 (process_tool_bar_item, append_tool_bar_item)
1962 (read_char_minibuf_menu_prompt, read_key_sequence)
1963 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1964 Likewise.
1965 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1966 Likewise.
1967 * lisp.h (STRING_COPYIN): Likewise.
1968 * lread.c (Fload, read1, oblookup): Likewise.
1969 * msdos.c (Frecent_doskeys): Likewise.
1970 * nsfns.m (Fx_create_frame): Likewise.
1971 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1972 Likewise.
1973 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1974 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1975 Likewise.
1976 * nsmenu.m (ns_update_menubar): Likewise.
1977 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1978 * print.c (print_unwind, printchar, strout, print_string)
1979 (print_error_message): Likewise.
1980 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1981 (Fmake_network_process, Fnetwork_interface_list)
1982 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1983 (init_process): Likewise.
1984 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1985 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1986 Likewise.
1987 * scroll.c (do_scrolling, do_direct_scrolling)
1988 (scrolling_max_lines_saved): Likewise.
1989 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1990 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1991 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1992 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1993 (emacs_set_tty): Likewise.
1994 * term.c (encode_terminal_code, calculate_costs)
1995 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1996 Likewise.
1997 * termcap.c (tgetst1, gobble_line): Likewise.
1998 * termhooks.h (EVENT_INIT): Likewise.
1999 * tparam.c (tparam1): Likewise.
2000 * unexalpha.c (unexec): Likewise.
2001 * unexec.c (write_segment): Likewise.
2002 * unexmacosx.c (unexec_write_zero): Likewise.
2003 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2004 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2005 * w32font.c (w32font_list_family, w32font_text_extents)
2006 (w32font_list_internal, w32font_match_internal)
2007 (w32font_open_internal, compute_metrics, Fx_select_font):
2008 Likewise.
2009 * w32menu.c (set_frame_menubar, add_menu_item)
2010 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2011 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2012 * w32uniscribe.c (uniscribe_list_family): Likewise.
2013 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2014 * window.c (make_window, replace_window, set_window_buffer)
2015 (Fsplit_window): Likewise.
2016 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2017 (add_to_log, message3, x_consider_frame_title)
2018 (append_space_for_newline, extend_face_to_end_of_line)
2019 (decode_mode_spec_coding, init_glyph_string): Likewise.
2020 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2021 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2022 (face_attr_equal_p, make_realized_face, make_face_cache)
2023 (free_realized_faces, lookup_named_face, smaller_face)
2024 (face_with_height, lookup_derived_face)
2025 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2026 (Finternal_set_font_selection_order, realize_default_face)
2027 (compute_char_face, face_at_buffer_position)
2028 (face_for_overlay_string, face_at_string_position, merge_faces):
2029 Likewise.
2030 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2031 (Fx_window_property, x_create_tip_frame)
2032 (Fx_backspace_delete_keys_p): Likewise.
2033 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2034 (xfont_text_extents): Likewise.
2035 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2036 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2037 * xselect.c (x_queue_event, x_get_window_property)
2038 (receive_incremental_selection): Likewise.
2039 * xsmfns.c (x_session_check_input): Likewise.
2040 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2041 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2042 Likewise.
2043 * character.h (BCOPY_SHORT): Removed.
2044 * config.in: Regenerate.
2045 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2046 * emacs.c (main) [PROFILING]: Don't declare
2047 dump_opcode_frequencies.
2048 * lisp.h (safe_bcopy): Remove declaration.
2049 (memset) [!HAVE_MEMSET]: Declare.
2050 (memcpy) [!HAVE_MEMCPY]: Likewise.
2051 (memmove) [!HAVE_MEMMOVE]: Likewise.
2052 (memcmp) [!HAVE_MEMCMP]: Likewise.
2053 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2054 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2055 Don't define.
2056 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2057 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2058 (BCOPY_DOWNWARD_SAFE): Don't define.
2059 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2060 (memcpy) [!HAVE_MEMCPY]: Define.
2061 (memmove) [!HAVE_MEMMOVE]: Define.
2062 (memcmp) [!HAVE_MEMCMP]: Define.
2063
20642010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2065
2066 * process.c (kbd_is_on_hold): New variable.
2067 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2068 New functions.
2069 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2070 select on empty input mask.
2071 (init_process): Initialize kbd_is_on_hold to 0.
2072
2073 * process.h (hold_keyboard_input, unhold_keyboard_input)
2074 (kbd_on_hold_p): Declare.
2075
2076 * keyboard.c (input_available_signal): Declare.
2077 (kbd_buffer_nr_stored): New function.
2078 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2079 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2080 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2081 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2082 (tty_read_avail_input): If input is on hold, return.
2083 Don't read more that free slots in kbd_buffer (Bug#6571).
2084
20852010-07-07 Eli Zaretskii <eliz@gnu.org>
2086
2087 * msdos.h:
2088 * msdos.c:
2089 * dosfns.c:
2090 * w16select.c: Convert function definitions to ANSI C.
2091
2092 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2093 Remove unused prototypes.
2094
20952010-07-07 Juanma Barranquero <lekktu@gmail.com>
2096
2097 * coding.c, sysdep.c: Convert some more functions to standard C.
2098
20992010-07-07 Juanma Barranquero <lekktu@gmail.com>
2100
2101 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2102 (encode_coding_object): Use SPECPDL_INDEX.
2103 (syms_of_coding): Use DOS_NT.
2104
21052010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2106
2107 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2108
2109 Make the function member of Lisp_Subr use standard C prototypes.
2110 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2111 (DECL_ALIGN): Add a cast for the function.
2112 * eval.c (Feval, Ffuncall): Use the proper type for each type
2113 function call.
2114
21152010-07-06 Chong Yidong <cyd@stupidchicken.com>
2116
2117 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2118 fringe face id, so face-remapping-alist works (Bug#6091).
2119
21202010-07-06 Juanma Barranquero <lekktu@gmail.com>
2121
2122 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2123 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2124 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2125
21262010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2127
2128 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2129 * lisp.h: Declare x_get_keysym_name.
2130 * keyboard.c (modify_event_symbol): Don't declare
2131 x_get_keysym_name here.
2132
21332010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2134
2135 * ecrt0.c: Revert conversion to standard C.
2136
21372010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2138
2139 * vm-limit.c (memory_warnings):
2140 * keyboard.c (modify_event_symbol):
2141 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2142 (round2, emacs_rint):
2143 * process.c (send_process, old_sigpipe): Convert function
2144 definitions and declarations to standard C.
2145
21462010-07-05 Juanma Barranquero <lekktu@gmail.com>
2147
2148 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2149 * xdisp.c: Convert function definitions to standard C.
2150
2151 * cm.c (cmputc): Arg C is now int, not char.
2152 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2153
21542010-07-05 James Cloos <cloos@jhcloos.com>
2155
2156 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2157
2158 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2159 _NET_WM_ICON_NAME atoms.
2160
2161 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2162 and _NET_WM_ICON_NAME properties, too, matching what is
2163 done in the Gtk+ case.
2164
21652010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2166
2167 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2168
2169 * xsmfns.c (SSDATA): New macro.
2170 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2171 passed to strlen/strcpy/strcat.
2172 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2173 7:th arg to XChangeProperty to (unsigned char *)
2174
2175 * xsettings.c (something_changedCB, parse_settings)
2176 (apply_xft_settings): Reformat prototype.
2177 (something_changedCB, init_gconf): Remove unused variable i.
2178 (read_settings): Remove unused variable long_len.
2179
2180 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2181 (xg_get_image_for_pixmap, create_dialog)
2182 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2183 (menuitem_highlight_callback, make_menu_item)
2184 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2185 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2186 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2187 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2188 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2189 (xg_tool_bar_item_expose_callback): Reformat prototype.
2190 (xg_update_menubar): GList *group => GSList *group.
2191 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2192 before use.
2193 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2194 to GTK_IMAGE (wimage).
2195
21962010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2197
2198 * atimer.c: Use "" instead of <> for local includes for
2199 consistency with the rest of the code.
2200
2201 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2202 * xrdb.c (get_system_name):
2203 * window.c (shrink_windows):
2204 * syntax.c (forw_comment):
2205 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2206 (ins_del_costs):
2207 * mem-limits.h (start_of_data):
2208 * lread.c (readevalloop):
2209 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2210 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2211 * frame.c (x_get_focus_frame):
2212 * floatfns.c (fmod_float):
2213 * fileio.c (choose_write_coding_system):
2214 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2215 (malloc_initialize_hook, sort_args, synchronize_locale):
2216 * doprnt.c (doprnt):
2217 * dired.c (compile_pattern):
2218 * data.c (fmod_float):
2219 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2220 (map_char_table_for_charset):
2221 * charset.c (define_charset_internal):
2222 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2223 to standard C.
2224
22252010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2226 Stefan Monnier <monnier@iro.umontreal.ca>
2227
2228 * lread.c (read1): Fix up last change to not mess up `c'.
2229
22302010-07-04 Juanma Barranquero <lekktu@gmail.com>
2231
2232 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2233
22342010-07-04 Juanma Barranquero <lekktu@gmail.com>
2235
2236 Fix prototypes.
2237
2238 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
2239 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
2240 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2241 arg, as required by internal_condition_case_1.
2242 * print.c (strout): Use const char* for arg PTR.
2243 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2244 (analyse_first): Fix "const const".
2245 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
2246 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
2247 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
2248
22492010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2250
2251 * alloc.c: Convert function definitions to standard C.
2252 * atimer.c:
2253 * bidi.c:
2254 * bytecode.c:
2255 * callint.c:
2256 * callproc.c:
2257 * casefiddle.c:
2258 * casetab.c:
2259 * category.c:
2260 * ccl.c:
2261 * character.c:
2262 * charset.c:
2263 * chartab.c:
2264 * cmds.c:
2265 * coding.c:
2266 * composite.c:
2267 * data.c:
2268 * dbusbind.c:
2269 * dired.c:
2270 * dispnew.c:
2271 * doc.c:
2272 * doprnt.c:
2273 * ecrt0.c:
2274 * editfns.c:
2275 * fileio.c:
2276 * filelock.c:
2277 * filemode.c:
2278 * fns.c:
2279 * font.c:
2280 * fontset.c:
2281 * frame.c:
2282 * fringe.c:
2283 * ftfont.c:
2284 * ftxfont.c:
2285 * gtkutil.c:
2286 * indent.c:
2287 * insdel.c:
2288 * intervals.c:
2289 * keymap.c:
2290 * lread.c:
2291 * macros.c:
2292 * marker.c:
2293 * md5.c:
2294 * menu.c:
2295 * minibuf.c:
2296 * prefix-args.c:
2297 * print.c:
2298 * ralloc.c:
2299 * regex.c:
2300 * region-cache.c:
2301 * scroll.c:
2302 * search.c:
2303 * sound.c:
2304 * strftime.c:
2305 * syntax.c:
2306 * sysdep.c:
2307 * termcap.c:
2308 * terminal.c:
2309 * terminfo.c:
2310 * textprop.c:
2311 * tparam.c:
2312 * undo.c:
2313 * unexelf.c:
2314 * window.c:
2315 * xfaces.c:
2316 * xfns.c:
2317 * xfont.c:
2318 * xftfont.c:
2319 * xgselect.c:
2320 * xmenu.c:
2321 * xrdb.c:
2322 * xselect.c:
2323 * xsettings.c:
2324 * xsmfns.c:
2325 * xterm.c: Likewise.
2326
23272010-07-03 Eli Zaretskii <eliz@gnu.org>
2328
2329 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2330 frames other than the initial one. Fix reversal of colors when
2331 `reverse' is specified in the frame parameters. Call
2332 update_face_from_frame_parameter instead of
2333 internal-set-lisp-face-attribute. Initialize screen colors from
2334 initial_screen_colors[] when f->default_face_done_p is zero,
2335 instead of depending on being called with default-frame-alist as
2336 the alist argument.
2337
2338 * xfaces.c (update_face_from_frame_parameter): Move out of
2339 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2340 with HAVE_WINDOW_SYSTEM.
2341
2342 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2343 to menu-bar-mode, if not set in the frame parameters or in
2344 default-frame-alist.
2345
2346 * w32console.c (sys_tputs): Adjust argument list to prototype in
2347 term.c.
2348
23492010-07-03 Juanma Barranquero <lekktu@gmail.com>
2350
2351 * lisp.h (memory_warnings): Fix prototype.
2352
2353 * cm.h (evalcost): Fix prototype.
2354
2355 * cm.c (evalcost): Fix arg type.
2356
23572010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2358
2359 * term.c (term_clear_mouse_face, Fidentity):
2360 * syssignal.h (signal_handler_t):
2361 * lisp.h (memory_warnings):
2362 * coding.h (preferred_coding_system):
2363 * cm.h (evalcost):
2364 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2365
23662010-07-02 Eli Zaretskii <eliz@gnu.org>
2367
2368 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2369 from prototypes.
2370
2371 * msdos.h (load_pixmap): Don't define away.
2372
23732010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2374
2375 * lisp.h:
2376 * atimer.h: Remove define for P_.
2377
2378 * alloc.c: Remove __P and P_ from .c and .m files.
2379 * atimer.c:
2380 * buffer.c:
2381 * callint.c:
2382 * category.c:
2383 * charset.c:
2384 * chartab.c:
2385 * cm.c:
2386 * coding.c:
2387 * composite.c:
2388 * data.c:
2389 * dired.c:
2390 * dispnew.c:
2391 * doc.c:
2392 * editfns.c:
2393 * emacs.c:
2394 * eval.c:
2395 * fileio.c:
2396 * filelock.c:
2397 * fns.c:
2398 * font.c:
2399 * fontset.c:
2400 * frame.c:
2401 * ftfont.c:
2402 * ftxfont.c:
2403 * gmalloc.c:
2404 * gtkutil.c:
2405 * image.c:
2406 * indent.c:
2407 * intervals.c:
2408 * keyboard.c:
2409 * keymap.c:
2410 * lread.c:
2411 * marker.c:
2412 * menu.c:
2413 * minibuf.c:
2414 * print.c:
2415 * process.c:
2416 * scroll.c:
2417 * search.c:
2418 * sound.c:
2419 * strftime.c:
2420 * syntax.c:
2421 * sysdep.c:
2422 * term.c:
2423 * terminal.c:
2424 * textprop.c:
2425 * unexalpha.c:
2426 * w32console.c:
2427 * w32fns.c:
2428 * w32font.c:
2429 * w32menu.c:
2430 * w32term.c:
2431 * w32uniscribe.c:
2432 * window.c:
2433 * xdisp.c:
2434 * xfaces.c:
2435 * xfns.c:
2436 * xfont.c:
2437 * xftfont.c:
2438 * xmenu.c:
2439 * xselect.c:
2440 * xterm.c: Likewise.
2441
2442 Remove P_ and __P macros.
2443 * atimer.h: Remove P_ and __P macros.
2444 * buffer.h:
2445 * category.h:
2446 * ccl.h:
2447 * character.h:
2448 * charset.h:
2449 * cm.h:
2450 * coding.h:
2451 * composite.h:
2452 * dispextern.h:
2453 * disptab.h:
2454 * dosfns.h:
2455 * font.h:
2456 * fontset.h:
2457 * frame.h:
2458 * gtkutil.h:
2459 * indent.h:
2460 * intervals.h:
2461 * keyboard.h:
2462 * keymap.h:
2463 * lisp.h:
2464 * macros.h:
2465 * md5.h:
2466 * menu.h:
2467 * msdos.h:
2468 * nsterm.h:
2469 * puresize.h:
2470 * region-cache.h:
2471 * syntax.h:
2472 * syssignal.h:
2473 * systime.h:
2474 * termhooks.h:
2475 * w32font.h:
2476 * w32term.h:
2477 * widget.h:
2478 * window.h:
2479 * xgselect.h:
2480 * xsettings.h:
2481 * xterm.h: Likewise.
2482
24832010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2484
2485 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2486
2487 Cleanup old code.
2488 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2489 * syssignal.h: Remove code for Lynx, not supported anymore.
2490 * vm-limit.c: Remove unused code the depends on emacs not being
2491 defined and NO_LIM_DATA being defined.
2492 * mem-limits.h: Remove dead code.
2493
24942010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2495
2496 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2497
2498 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2499 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2500
2501 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2502 parameters, they are already absolute.
2503
2504 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2505 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
2506
2507 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2508
2509 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2510 Update FRAME_TOOLBAR_HEIGHT.
2511
2512 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2513 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
2514
25152010-06-30 Chong Yidong <cyd@stupidchicken.com>
2516
2517 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2518 check default-frame-alist.
2519
25202010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2521
2522 * process.c (create_process): Avoid using invalid file descriptors.
2523
2524 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2525
25262010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2527
2528 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2529 Improve documentation. Return font regardless of use_system_font.
2530 (syms_of_xsettings): Improve documentation for font-use-system-font.
2531
25322010-07-10 Chong Yidong <cyd@stupidchicken.com>
2533
2534 * xfaces.c (realize_face): Garbage the frame if a face is removed
2535 (Bug#6593).
2536
25372010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2538
2539 * keyboard.c: Remove duplicate <setjmp.h>.
2540 (read_key_sequence): Remove volatile qualifiers.
2541
25422010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2543
2544 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2545 (struct glyph_row): New members left_fringe_offset and
2546 right_fringe_offset.
2547
2548 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2549 specially.
2550 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2551 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2552
2553 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
2554 Take account of bitmap offset.
2555 (draw_window_fringes): Take account of window vscroll.
2556 (update_window_fringes): Likewise. Extend top-aligned top indicator
2557 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2558 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2559 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2560
25612010-07-04 Juanma Barranquero <lekktu@gmail.com>
2562
2563 * w32fns.c (Qtooltip): Declare.
2564 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2565
25662010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2567
2568 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2569 grab on just Press (Bug#6499).
2570
25712010-07-02 Chong Yidong <cyd@stupidchicken.com>
2572
2573 * frame.c (Qtooltip): New var.
2574 (delete_frame): Use it. Fix faulty if statement. Don't update
2575 mode line for tooltip frames. Suggested by Martin Rudalics.
2576
2577 * xfns.c (x_create_tip_frame):
2578 * w32fns.c (x_create_tip_frame): Use it.
2579
25802010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
2581
2582 * xftfont.c (xftfont_open): Check font width one by one also when
2583 spacing is dual.
2584
2585 * ftfont.c (ftfont_open): Ditto.
2586
25872010-06-30 Glenn Morris <rgm@gnu.org>
2588
2589 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2590
2591 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2592
2593 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2594 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2595 * s/darwin.h (SYSTEM_MALLOC):
2596 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2597
25982010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2599
2600 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2601 (ns_get_screen): Don't assign integer to f.
2602 (Fx_display_color_cells): Declarations before statements.
2603
26042010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2605
2606 * xfns.c (x_default_font_parameter): Remove got_from_system
2607 (Bug#6526).
2608
2609 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2610 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2611 defines based on what configure finds.
2612
2613 * xterm.c (XTflash): Use gtk_widget_get_window.
2614 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2615 gtk_adjustment_get_page_size.
2616 (handle_one_xevent): Use gtk_widget_get_mapped.
2617 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2618 messages.
2619
2620 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2621
2622 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2623 HAVE_GTK_FILE_SELECTION_NEW.
2624
2625 * gtkutil.c (xg_display_open, xg_display_close): Remove
2626 HAVE_GTK_MULTIDISPLAY, it is always defined.
2627 (xg_display_open): Return type is void.
2628 (gtk_widget_set_has_window)
2629 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2630 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2631 (gtk_adjustment_set_page_increment)
2632 (gtk_adjustment_get_step_increment): #define these if not found
2633 by configure.
2634 (remove_submenu): New define based on Gtk+ version.
2635 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2636 gtk_widget_get_window.
2637 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2638 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2639 (create_dialog): Use gtk_dialog_get_action_area and
2640 gtk_dialog_get_content_area.
2641 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2642 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2643 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2644 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2645 g_object_ref and g_object_unref.
2646 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2647 gtk_widget_get_sensitive.
2648 (xg_update_submenu): Use remove_submenu.
2649 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2650 properties instead to get old x and y position.
2651 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2652 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2653 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
2654 (xg_get_tool_bar_widgets): New function.
2655 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2656 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2657 (toolbar_set_orientation): New #define based on if configure
2658 finds gtk_orientable_set_orientation.
2659 (xg_create_tool_bar): Call toolbar_set_orientation.
2660 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2661 instead of gtk_box_pack_start_defaults.
2662
26632010-06-28 Chong Yidong <cyd@stupidchicken.com>
2664
2665 * cmds.c (Fdelete_backward_char): Move into Lisp.
2666
26672010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2668
2669 * s/freebsd.h (BSD4_2): Remove redundant definition.
2670 bsd-common.h defines it already.
2671
26722010-06-27 Chong Yidong <cyd@stupidchicken.com>
2673
2674 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2675 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2676 tool-bar-mode, which are now set using these X resources at
2677 startup, to determine the defaults (Bug#2249).
2678
2679 * w32fns.c (Fx_create_frame):
2680 * nsfns.m (Fx_create_frame): Likewise.
2681
2682 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2683
26842010-06-24 Juanma Barranquero <lekktu@gmail.com>
2685
2686 * gtkutil.c (xg_update_scrollbar_pos):
2687 Avoid C99 mid-block variable declaration.
2688
12010-06-22 Jan Djärv <jan.h.d@swipnet.se> 26892010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2 2690
3 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar. 2691 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
4 2692
5 * gtkutil.h (xg_show_scroll_bar): : Remove. 2693 * gtkutil.h (xg_show_scroll_bar): Remove.
6 2694
7 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed 2695 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8 if height is less than scroll bar min size. 2696 if height is less than scroll bar min size.
@@ -11,7 +2699,7 @@
11 * xfns.c (x_default_font_parameter): Try to open font from system 2699 * xfns.c (x_default_font_parameter): Try to open font from system
12 before using it (bug#6478). Rename got_from_gconf to got_from_system. 2700 before using it (bug#6478). Rename got_from_gconf to got_from_system.
13 2701
142010-06-22 Keith Packard <keithp@keithp.com> (tiny change) 27022010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
15 2703
16 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437). 2704 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
17 2705
@@ -68,6 +2756,30 @@
68 2756
69 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it. 2757 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
70 2758
27592010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2760
2761 * alloc.c (Fmake_byte_code): Don't access undefined argument
2762 (Bug#6517).
2763
27642010-06-25 Chong Yidong <cyd@stupidchicken.com>
2765
2766 * xdisp.c (next_element_from_image): Ensure that after-strings are
2767 read the next time we hit handle_stop (Bug#1336).
2768
27692010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2770
2771 * lread.c (read1): Signal error if #s is not followed by paren.
2772
27732010-06-19 Chong Yidong <cyd@stupidchicken.com>
2774
2775 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2776
2777 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2778
27792010-06-15 Glenn Morris <rgm@gnu.org>
2780
2781 * editfns.c (Fbyte_to_string): Pacify compiler.
2782
712010-06-09 Stefan Monnier <monnier@iro.umontreal.ca> 27832010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
72 2784
73 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string. 2785 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
@@ -159,8 +2871,8 @@
159 2871
1602010-06-03 Andreas Schwab <schwab@linux-m68k.org> 28722010-06-03 Andreas Schwab <schwab@linux-m68k.org>
161 2873
162 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 2874 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
163 address. (Bug#6346) 2875 (Bug#6346)
164 2876
1652010-06-03 Juanma Barranquero <lekktu@gmail.com> 28772010-06-03 Juanma Barranquero <lekktu@gmail.com>
166 2878
@@ -1367,7 +4079,7 @@
1367 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef 4079 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1368 HAVE_XFT. 4080 HAVE_XFT.
1369 (something_changedCB): store_font_changed_event is now 4081 (something_changedCB): store_font_changed_event is now
1370 store_config_changed_event 4082 store_config_changed_event.
1371 (parse_settings): Rename from parse_xft_settings. Read 4083 (parse_settings): Rename from parse_xft_settings. Read
1372 non-xft xsettings outside #ifdef HAVE_XFT. 4084 non-xft xsettings outside #ifdef HAVE_XFT.
1373 (read_settings): Renamed from read_xft_settings. 4085 (read_settings): Renamed from read_xft_settings.
@@ -1869,8 +4581,8 @@
1869 (syms_of_xsettings): Initialize current_font. 4581 (syms_of_xsettings): Initialize current_font.
1870 defsubr Sfont_get_system_normal_font. 4582 defsubr Sfont_get_system_normal_font.
1871 4583
1872 * xsettings.h (Ffont_get_system_normal_font, 4584 * xsettings.h (Ffont_get_system_normal_font)
1873 xsettings_get_system_normal_font): Declare. 4585 (xsettings_get_system_normal_font): Declare.
1874 4586
1875 * xfns.c (extern xlwmenu_default_font): Remove. 4587 * xfns.c (extern xlwmenu_default_font): Remove.
1876 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved 4588 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
@@ -3116,7 +5828,7 @@
3116 (scroll_end_callback): Remove. 5828 (scroll_end_callback): Remove.
3117 (xg_create_scroll_bar): Add parameter end_callback, bind it to 5829 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3118 button-release-event. Replace value-changed event with change-value, 5830 button-release-event. Replace value-changed event with change-value,
3119 bug #5177, 5831 bug #5177.
3120 (xg_event_is_for_scrollbar): Only return true if button is less than 4, 5832 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3121 bug #5177. 5833 bug #5177.
3122 5834
@@ -3137,7 +5849,7 @@
3137 5849
31382009-12-12 Eli Zaretskii <eliz@gnu.org> 58502009-12-12 Eli Zaretskii <eliz@gnu.org>
3139 5851
3140 * dispextern.h (struct text_pos): Use EMACS_INT; 5852 * dispextern.h (struct text_pos): Use EMACS_INT.
3141 (struct glyph): Use EMACS_INT for charpos. 5853 (struct glyph): Use EMACS_INT for charpos.
3142 (struct it): Use EMACS_INT for stop_charpos, end_charpos, 5854 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3143 region_beg_charpos, region_end_charpos, 5855 region_beg_charpos, region_end_charpos,
@@ -3672,7 +6384,7 @@
3672 (store_symval_forwarding): Take into account the fact that Ints can 6384 (store_symval_forwarding): Take into account the fact that Ints can
3673 now have more than one tag. 6385 now have more than one tag.
3674 * buffer.c (syms_of_buffer): Use LISP_INT_TAG. 6386 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3675 buffer_slot_type_mismatch): 6387 (buffer_slot_type_mismatch):
3676 * xfaces.c (face_attr_equal_p): 6388 * xfaces.c (face_attr_equal_p):
3677 * print.c (print_object): 6389 * print.c (print_object):
3678 * alloc.c (mark_maybe_object, mark_object, survives_gc_p): 6390 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
@@ -10703,8 +13415,8 @@
107032008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change) 134152008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10704 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 13416 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10705 13417
10706 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case -- 13418 * frame.c (make_initial_frame): Call init_frame_faces(f) in
10707 fix crash due to different init order. 13419 CANNOT_DUMP case -- fix crash due to different init order.
10708 13420
107092008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> 134212008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10710 13422
@@ -10901,7 +13613,7 @@
10901 * m/macppc.h: 13613 * m/macppc.h:
10902 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals. 13614 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10903 13615
10904 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default 13616 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
10905 (SPECIAL_EMACS_INT): 13617 (SPECIAL_EMACS_INT):
10906 * m/ia64.h (SPECIAL_EMACS_INT): 13618 * m/ia64.h (SPECIAL_EMACS_INT):
10907 * m/amdx86-64.h (SPECIAL_EMACS_INT): 13619 * m/amdx86-64.h (SPECIAL_EMACS_INT):
@@ -19533,7 +22245,7 @@
19533 * charset.c (charset_ordered_list_tick): New variable. 22245 * charset.c (charset_ordered_list_tick): New variable.
19534 (Fdefine_charset_internal): Increment charset_ordered_list_tick. 22246 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19535 (Funify_charset): New optional arg DEUNIFY. If it is non-nil, 22247 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19536 deunify intead of unify a charset. 22248 deunify instead of unify a charset.
19537 (string_xstring_p): Add `const' to local variables. 22249 (string_xstring_p): Add `const' to local variables.
19538 (find_charsets_in_text): Add `const' to arguments and local variables. 22250 (find_charsets_in_text): Add `const' to arguments and local variables.
19539 (encode_char): Adjust for the change of Funify_charset. Fix 22251 (encode_char): Adjust for the change of Funify_charset. Fix