]> code.delx.au - gnu-emacs/blob - src/ChangeLog
merge changes in emacs-23 branch
[gnu-emacs] / src / ChangeLog
1 2010-08-31 Kenichi Handa <handa@m17n.org>
2
3 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
4 characters.
5
6 * term.c (encode_terminal_code): Fix the previous change.
7 (produce_glyphs): Don't set it->char_to_display here. Don't
8 handle unibyte-display-via-language-environment here.
9 (produce_special_glyphs): Set temp_it.char_to_display before
10 calling produce_glyphs.
11
12 * xdisp.c (get_next_display_element): Set it->char_to_display
13 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
14 characters.
15 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
16 calling PRODUCE_GLYPHS.
17 (append_space_for_newline): Save and store it->char_to_display.
18 Set it->char_to_display before calling PRODUCE_GLYPHS.
19 (extend_face_to_end_of_line): Set it->char_to_display before
20 calling PRODUCE_GLYPHS.
21 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
22 character to its byte value.
23 (get_char_glyph_code): New function.
24 (produce_stretch_glyph): Set it2.char_to_display too before
25 calling x_produce_glyphs.
26 (x_produce_glyphs): Simplify by using the same code for ASCII and
27 non-ASCII characters. Don't set it->char_to_display here. Don't
28 handle unibyte-display-via-language-environment here. For a
29 charater of no glyph, use font->space_width instead of FONT_WIDTH.
30
31 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
32
33 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
34
35 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
36
37 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
38
39 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
40
41 * marker.c (Fcopy_marker): Make the first arg optional.
42
43 2010-08-30 Kenichi Handa <handa@m17n.org>
44
45 * composite.c (composition_update_it): Fix computing of
46 cmp_it->width.
47
48 2010-08-29 Kenichi Handa <handa@m17n.org>
49
50 * term.c (encode_terminal_code): Encode byte chars to the
51 correspnding bytes.
52
53 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
54
55 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
56
57 2010-08-26 Kenichi Handa <handa@m17n.org>
58
59 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
60 on calling composition_compute_stop_pos.
61
62 2010-08-25 Kenichi Handa <handa@m17n.org>
63
64 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
65 :otf.
66
67 * composite.c (composition_compute_stop_pos): Don't break
68 composition at PT.
69 (composition_reseat_it): Likewise. Fix calculation of character
70 position starting a composition.
71 (Fcomposition_get_gstring): Don't limit the number of components
72 for automatic composition.
73
74 2010-08-25 Kenichi Handa <handa@m17n.org>
75
76 * composite.c (composition_compute_stop_pos): In forward search,
77 pay attention to the possibility that some character after ENDPOS
78 will be composed with charactrs before ENDPOS.
79
80 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
81
82 * keyboard.c (command_loop_1): Don't clobber primary selection
83 during handle-switch-frame (Bug#6872).
84
85 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
86
87 * dbusbind.c: Accept UNIX domain sockets as bus address.
88 (Fdbus_close_bus): New function.
89 (Vdbus_registered_buses): New variable.
90 (xd_initialize): Implement string as bus address.
91 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
92 (Fdbus_get_unique_name, Fdbus_call_method)
93 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
94 (Fdbus_method_error_internal, Fdbus_send_signal)
95 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
96 check. This is done in xd_initialize_bus. Adapt doc string, if
97 necessary.
98 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
99 Vdbus_registered_buses.
100 (Vdbus_registered_objects_table): Create hash.
101
102 2010-08-22 Juri Linkov <juri@jurta.org>
103
104 * keyboard.c (Fexecute_extended_command): Move reading a command name
105 with `completing-read' to a new Elisp function `read-extended-command'.
106 Call it to read a command to `function' (bug#5364, bug#5214).
107
108 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
109
110 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
111
112 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
113
114 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
115 instead of SAFE_ALLOCA.
116
117 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
118
119 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
120 (Bug#6214).
121
122 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
123
124 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
125
126 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
127
128 * doc.c (Fsnarf_documentation): Initialize skip_file before
129 build-files test.
130
131 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
132
133 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
134 New definitions.
135 (HAVE_TERMIO): Remove.
136
137 2010-08-22 Eli Zaretskii <eliz@gnu.org>
138
139 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
140
141 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
142 for w32.
143
144 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
145 it's done in nt/config.nt.
146
147 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
148
149 * unexcoff.c (report_error, make_hdr, write_segment)
150 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
151 Convert argument lists and prototypes to ANSI C.
152 (make_hdr, write_segment): Remove unused variables.
153 (unexec): Remove commented-out line. Initialize `new' to shut up
154 compiler warnings.
155
156 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
157
158 Simplify termio code.
159 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
160 HAVE_TERMIO code is obsolete.
161 Replace HAVE_TERMIOS conditionals with !DOS_NT.
162 * systty.h: Do not define HAVE_TCATTR.
163 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
164 Do not define EMACS_HAVE_TTY_PGRP. Only define
165 EMACS_GET_TTY_PGRP for !DOS_NT.
166 * sysdep.c: Include sysselect.h unconditionally. Do not include
167 sys/ioctl.h and termios.h, systty.h does it. Use
168 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
169 (init_baud_rate): Remove HAVE_TERMIO code.
170 (child_setup_tty): Remove HAVE_TERMIO code.
171 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
172 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
173 (new_ltchars, new_tchars): Remove, unused.
174 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
175 code. Remove special casing for __mips__, it was a no-op. Remove
176 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
177 (init_sys_modes): Remove HPUX special case.
178 * process.c: Include stdlib.h unconditionally. Do not include
179 fcntl.h, systty.h does it. Remove conditional code for
180 HAVE_SERIAL, it is always true.
181 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
182 always true when SIGNALS_VIA_CHARACTERS is true.
183 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
184 !WINDOWSNT means HAVE_TERMIOS.
185 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
186 conditional, which is true for all HAVE_TERMIOS systems.
187 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
188 instead of HAVE_TERMIOS.
189 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
190 EMACS_HAVE_TTY_PGRP.
191 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
192 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
193 anyway.
194
195 2010-08-21 Eli Zaretskii <eliz@gnu.org>
196
197 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
198 mirroring pixel positions.
199
200 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
201
202 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
203 write only.
204 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
205 malloc_sbrk_used, nothing uses them.
206
207 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
208 defined, unconditionally defined in lisp.h.
209
210 * term.c: Do not include <termios.h>, systty.h does it.
211
212 * s/unixware.h (HAVE_TCATTR):
213 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
214 systty.h defines it when HAVE_TERMIOS is defined.
215
216 2010-08-20 Eli Zaretskii <eliz@gnu.org>
217
218 * dispnew.c (buffer_posn_from_coords): Fix last change for text
219 terminals: add one-character offset for R2L lines.
220
221 * emacs.c <emacs_version>: Add a comment regarding
222 msdos/mainmake.v2's dependency on the syntax of this declaration.
223
224 2010-08-20 Eli Zaretskii <eliz@gnu.org>
225
226 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
227 position for R2L lines by mirroring the pixel position wrt the
228 text are box. Improve commentary.
229
230 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
231
232 * image.c (imagemagick_clear_image): Remove debugging output.
233
234 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
235
236 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
237 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
238 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
239 self-insert-face.
240 (syms_of_cmds): Initialize the new vars.
241
242 2010-08-19 Jason Rumney <jasonr@gnu.org>
243
244 * w32menu.c (set_frame_menubar): Remove call to undefined function.
245
246 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
247
248 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
249
250 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
251
252 2010-08-18 Eli Zaretskii <eliz@gnu.org>
253
254 * xterm.c (x_draw_bar_cursor):
255 * w32term.c (x_draw_bar_cursor): If the character under cursor is
256 R2L, draw the bar cursor on its right rather than on its left.
257
258 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
259
260 * eval.c (Fdefmacro): Only obey one declaration.
261
262 * casefiddle.c (casify_region): Setup gl_state.
263
264 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
265
266 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
267
268 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
269
270 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
271
272 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
273
274 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
275 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
276 QPRIMARY => NXPrimaryPboard.
277 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
278 NXPrimaryPboard => QPRIMARY.
279 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
280 NXSecondaryPboard = SecondarySelection.
281 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
282
283 2010-08-18 Joakim Verona <joakim@verona.se>
284
285 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
286 defined:
287 (imagemagick_image_p): New function to test for ImageMagic image.
288 (imagemagick_load): New function to load ImageMagick image.
289 (imagemagick_load_image): New function, helper for imagemagick_load.
290 (imagemagick-types): New function.
291 (Qimagemagick): New Lisp_object.
292 (imagemagick-render-type): New variable, decides which renderer to use.
293
294 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
295
296 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
297 is a string.
298
299 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
300
301 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
302 x_set_tool_bar_position handler.
303
304 2010-08-17 Eli Zaretskii <eliz@gnu.org>
305
306 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
307 x_set_tool_bar_position handler, needed to support changes from
308 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
309
310 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
311
312 * nsselect.m: include keyboard.h for QPRIMARY, remove its
313 declaration (Bug#6863).
314 (syms_of_nsselect): Don't intern QPRIMARY.
315
316 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
317
318 * keyboard.h (QPRIMARY): Declare (Bug#6864).
319
320 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
321
322 * keyboard.c (command_loop_1): Avoid setting selection twice,
323 since it's done in deactivate-mark as well.
324 (Vselect_active_regions): Change default to t. Replace `lazy'
325 with non-default value `only', meaning only set PRIMARY for
326 temporarily active regions.
327
328 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
329 select-active-regions.
330
331 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
332
333 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
334 isn't a string.
335
336 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
337
338 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
339
340 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
341
342 * keyboard.c (parse_tool_bar_item): malloc buf.
343 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
344 new_lbl (Bug#6855).
345
346 2010-08-14 Eli Zaretskii <eliz@gnu.org>
347
348 * xterm.c (x_draw_stretch_glyph_string):
349 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
350 the cursor on the right edge of the stretch glyph.
351
352 * xdisp.c (window_box_right_offset, window_box_right):
353 Fix commentary.
354
355 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
356 direction when point is inside a run of whitespace characters.
357
358 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
359
360 2010-08-14 Jason Rumney <jasonr@gnu.org>
361
362 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
363
364 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
365
366 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
367
368 2010-08-13 Jason Rumney <jasonr@gnu.org>
369
370 * w32menu.c (simple_dialog_show): Use unicode message box if available.
371 (MessageBoxW_Proc): New function typedef.
372 (unicode-message-box): New function pointer.
373 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
374
375 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
376
377 * frame.h (Qtool_bar_position): Declare.
378
379 * xfns.c (Fx_create_frame): Call x_default_parameter for
380 Qtool_bar_position.
381
382 2010-08-13 Eli Zaretskii <eliz@gnu.org>
383
384 * unexcoff.c: Remove the parts used when "emacs" is not defined.
385 (report_error, report_error_1): Ditto.
386 (write_segment): Remove "#if 0" unused code.
387 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
388 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
389 (start_of_text): Remove unused function (was used only if NO_REMAP
390 was NOT defined).
391
392 * msdos.c (IT_set_face): Fix format string to match argument
393 types.
394 (IT_write_glyphs, IT_note_mode_line_highlight)
395 (IT_set_frame_parameters): Remove unused variables.
396 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
397 (IT_set_terminal_modes): Disambiguate expression in if clause.
398 (Fmsdos_remember_default_colors): Return Qnil.
399 (IT_set_frame_parameters): Add parens to disambiguate boolean
400 expression for logging the cursor type to termscript.
401 (keyboard_layout_list, keypad_translate_map)
402 (grey_key_translate_map): Add braces in inner initializers.
403 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
404 (dos_rawgetc): Remove unused label.
405 (XMenuActivate): Add braces to remove ambiguous `else'.
406 (dos_ttraw): Always return a value.
407 (spawnve): Declare.
408 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
409
410 * dosfns.h (x_set_title): Declare.
411
412 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
413 Remove unused variables.
414
415 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
416 variables.
417 (init_dosfns): Declare get_lim_data.
418 (system_process_attributes): Declare Fget_internal_run_time.
419
420 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
421 list to be consistent with menu.h.
422
423 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
424 warnings due to mixing of "char *" and "const char *".
425
426 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
427
428 Introduce a new comment style "c" flag.
429 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
430 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
431 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
432 (syntax_prefix_flag_p): New function.
433 (Fstring_to_syntax): Understand new "c" flag.
434 (Finternal_describe_syntax_value): Recognize new flag; use the
435 SYNTAX_FLAGS_* macros.
436 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
437 comment style to accomodate the new styles.
438 (back_comment, forw_comment, Fforward_comment, scan_lists)
439 (scan_sexps_forward): Update code to obey the new comment style flag.
440
441 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
442
443 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
444
445 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
446
447 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
448 first.
449 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
450
451 * gtkutil.h (xg_check_special_colors): Declare.
452
453 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
454 (xg_create_frame_widgets): Connect theme name changes to
455 style_changed_cb.
456
457 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
458 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
459 (x_term_init): Use char[] display_opt and name_opt instead of
460 string literal. file is const char*.
461
462 * xsmfns.c (NOSPLASH_OPT): Change to char[].
463 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
464 props. Free them at the end.
465
466 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
467
468 * xrdb.c (get_system_app): Make path const and use char *p for
469 non-const char.
470
471 * xmenu.c (Fx_popup_dialog): error_name is const char*.
472 (xmenu_show): error parameter is const char **. pane_string is const
473 char *.
474 (button_names): Is const char *.
475 (xdialog_show): error_name and pane_string is const.
476
477 * process.h (synch_process_death): Is const char*.
478
479 * w32menu.c (w32_menu_show):
480 * nsmenu.m (ns_menu_show): error parameter is const char **.
481
482 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
483 is const char **.
484
485 * menu.c (Fx_popup_menu): error_name is const.
486
487 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
488 with unsigned char and XtPointer with void *.
489
490 * gtkutil.h: Replace widget_value with struct _widget_value.
491 (enum button_type, struct _widget_value): Remove and use the one from
492 keyboard.h.
493
494 * gtkutil.c (get_utf8_string): Always return an allocated string.
495 Parameter is const.
496 (create_dialog, xg_create_one_menuitem, create_menus)
497 (xg_item_label_same_p, xg_update_menu_item): Free result from
498 get_utf8_string.
499 (xg_separator_p, xg_item_label_same_p): label is const.
500
501 * font.h (font_open_by_name): Make name const.
502
503 * font.c (font_open_by_name): Make name const.
504
505 * floatfns.c (matherr): Use a const char* variable for x->name.
506
507 * emacs.c (main): Pass char[] to putenv instead of literal.
508
509 * callproc.c (synch_process_death): Make const.
510 (Fcall_process): Make signame const.
511
512 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
513 (addDisplayItemWithImage): Use const char*.
514
515 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
516 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
517
518 * nsfont.m (ns_descriptor_to_entity): Use const char*.
519
520 * keyboard.h (_widget_value): name, value and key are const char*.
521
522 * unexmacosx.c (unexec_error): Use const char *.
523
524 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
525
526 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
527 (font_parse_name, font_open_by_name):
528 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
529 (font_parse_name, font_open_by_name): Remove const.
530
531 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
532
533 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
534 definition.
535
536 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
537 * m/amdx86-64.h: Likewise.
538 * m/arm.h: Likewise.
539 * m/hp800.h: Likewise.
540 * m/ia64.h: Likewise.
541 * m/ibmrs6000.h: Likewise.
542 * m/ibms390.h: Likewise.
543 * m/intel386.h: Likewise.
544 * m/iris4d.h: Likewise.
545 * m/m68k.h: Likewise.
546 * m/macppc.h: Likewise.
547 * m/mips.h: Likewise.
548 * m/sh3.h: Likewise.
549 * m/sparc.h: Likewise.
550 * m/template.h: Likewise.
551 * m/vax.h: Likewise.
552 * m/xtensa.h: Likewise.
553 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
554 WORDS_BIG_ENDIAN.
555 * lisp.h: Likewise.
556 * md5.c: Likewise.
557 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
558
559 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
560
561 Use const char* instead of char*.
562 Reduce the number of warnings with -Wwrite-strings.
563 * xrdb.c (get_environ_db, get_system_name):
564 * unexelf.c (find_section):
565 * term.c (string_cost, string_cost_one_line, per_line_cost)
566 (get_named_tty, init_tty):
567 * sysdep.c (sys_subshell):
568 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
569 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
570 * search.c (Freplace_match):
571 * process.c (Fmake_network_process, send_process, init_process):
572 * lread.c (Fload, init_lread):
573 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
574 * keyboard.c (parse_tool_bar_item, struct event_head):
575 * gtkutil.h (xg_get_font_name):
576 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
577 (make_widget_for_menu_item, make_menu_item, create_menus)
578 (xg_make_tool_item):
579 * font.c (parse_matrix, font_parse_name):
580 * floatfns.c (rounding_driver, float_error_fn_name):
581 * filelock.c (get_boot_time_1, lock_file_1):
582 * fileio.c (barf_or_query_if_file_exists, check_writable):
583 * editfns.c (get_system_name, get_operating_system_release)
584 (Fencode_time, Fset_time_zone_rule):
585 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
586 * buffer.c (defvar_per_buffer): Use const.
587
588 2010-08-08 Kenichi Handa <handa@m17n.org>
589
590 * charset.c: Include <stdlib.h>.
591 (struct charset_sort_data): New struct.
592 (charset_compare): New function.
593 (Fsort_charsets): New function.
594 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
595
596 * coding.c (decode_coding_iso_2022): Fix checking of dimension
597 number in CTEXT extended segment.
598
599 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
600
601 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
602 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
603
604 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
605
606 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
607 (Fhash_table_size): Fix typos in docstrings.
608 (Fmake_hash_table): Doc fix.
609
610 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
611
612 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
613 Doc fix (bug#5625).
614
615 2010-08-08 Ken Brown <kbrown@cornell.edu>
616
617 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
618 the MSDOS definition.
619
620 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
621
622 Use const char* instead of char*.
623 * xterm.c (x_create_toolkit_scroll_bar):
624 * xfont.c (xfont_list_pattern):
625 * xfns.c (x_default_scroll_bar_color_parameter)
626 (xic_create_fontsetname, x_default_font_parameter)
627 (x_screen_planes):
628 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
629 (store_mode_line_string, decode_mode_spec, display_string):
630 * menu.c (digest_single_submenu):
631 * keymap.h (initial_define_key, initial_define_lispy_key):
632 * keymap.c (initial_define_key, initial_define_lispy_key):
633 * image.c (image_error, image_keyword):
634 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
635 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
636 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
637 (ftfont_list, ftfont_match):
638 * frame.c (frame_parm_table):
639 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
640 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
641 (font_add_log, font_deferred_log):
642 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
643 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
644 (font_add_log, font_deferred_log):
645 * emacs.c (argmatch):
646 * dispextern.h (struct it):
647 * coding.c (ENCODE_DESIGNATION):
648 * charset.c (define_charset_internal): Use const.
649
650 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
651
652 * xrdb.c: Remove include guard.
653 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
654 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
655 realloc->xrealloc instead of using #defines.
656
657 2010-08-08 Eli Zaretskii <eliz@gnu.org>
658
659 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
660 * editfns.c (Fline_beginning_position, Fline_end_position):
661 State in the doc strings that start and end of line are in the
662 logical order.
663
664 * xdisp.c (display_line): Move the handling of overlay arrow after
665 the call to find_row_edges. (Bug#6699)
666
667 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
668
669 * keyboard.c (command_loop_1):
670 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
671
672 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
673
674 * insdel.c (prepare_to_modify_buffer): Save active region text to
675 Vsaved_region_selection.
676
677 * xselect.c (QPRIMARY): Move to keyboard.c.
678
679 * keyboard.c (Vselect_active_regions): Move from simple.el.
680 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
681 (command_loop_1): Set window selection prior to deactivating the mark.
682
683 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
684
685 * alloc.c (lisp_malloc):
686 * buffer.c (set_buffer_internal, set_buffer_internal_1):
687 * charset.h (emacs_mule_charset):
688 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
689 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
690 (bitch_at_user):
691 * lisp.h (Fcheck_coding_system, Fget_text_property)
692 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
693 Remove duplicate declarations.
694
695 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
696
697 * process.c: Simplify include logic.
698
699 * keyboard.h (quit_char): Add declaration.
700 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
701 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
702 Add declarations.
703 * sysdep.c:
704 * w32.c: Remove the above declarations.
705
706 Remove extern declarations in .c files, .h files have them.
707 * xterm.c:
708 * xdisp.c:
709 * msdos.c:
710 * image.c:
711 * gtkutil.c:
712 * fileio.c:
713 * eval.c: Remove declarations.
714
715 * frame.c (frame_params): Make const.
716
717 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
718
719 * emacs.c (emacs_copyright, emacs_version): Make static.
720 (Vinitial_window_system, Vauto_save_list_file_name)
721 (Vinhibit_redisplay): Remove declarations.
722 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
723 for AIX.
724
725 Use const for some arrays and functions.
726 * xterm.h (xg_set_icon_from_xpm_data):
727 * xfns.c (xg_set_icon_from_xpm_data):
728 * term.c (fkeys):
729 * keyboard.c (lispy_accent_keys, lispy_function_keys)
730 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
731 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
732 (frame.c frame_parms):
733 * emacs-icon.h (gnu_xpm_bits):
734 * callint.c (callint_argfuns): Use const.
735
736 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
737
738 * sysdep.c: Move include term.h last of includes (Bug#6812).
739
740 2010-08-06 Eli Zaretskii <eliz@gnu.org>
741
742 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
743
744 * msdos.c (IT_display_cursor): Log cursor position on termscript.
745
746 * .gdbinit (pgx): Display the avoid_cursor_p flag.
747
748 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
749
750 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
751
752 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
753
754 * xterm.h (x_get_focus_frame): Declare.
755
756 * keyboard.h (poll_for_input_1): Unconditionally declare.
757
758 * nsterm.h (x_set_menu_bar_lines): Declare.
759
760 * window.c: Don't include menu.h, it depends on lots of other .h-files.
761
762 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
763
764 * window.c: Include menu.h.
765
766 * unexmacosx.c (print_region_list, print_regions)
767 (build_region_list, find_emacs_zone_regions)
768 (unexec_regions_merge, read_load_commands, dump_it)
769 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
770
771 * term.c: Check HAVE_SYS_IOCTL_H.
772
773 * sysdep.c: Check HAVE_TERM_H.
774
775 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
776
777 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
778 (ns_ring_bell, ns_defined_color, hide_hourglass)
779 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
780 Convert to ANSI C prototypes.
781 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
782 before code.
783
784 * nsterm.h : Include sysselect.h.
785 (x_sync, x_get_focus_frame, x_set_mouse_position)
786 (x_set_mouse_pixel_position, x_make_frame_visible)
787 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
788 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
789 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
790 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
791 Declare.
792
793 * nsmenu.m (popup_activated, name_is_separator)
794 (syms_of_nsmenu): Convert to ANSI C prototypes.
795 (runMenuAt): Prototypes and move declarations before code.
796
797 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
798
799 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
800 prototypes.
801
802 * nsfns.m (have_menus_p, ns_display_info_for_name)
803 (x_set_cursor_type, ns_appkit_version_str)
804 (ns_appkit_version_int, ns_do_applescript)
805 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
806 (syms_of_nsfns): Convert to ANSI C prototypes.
807
808 * menu.h (x_set_menu_bar_line): Declare.
809 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
810
811 * lisp.h (fmod_float): Declare.
812
813 * image.c (xpm_scan, xpm_make_color_table_v)
814 (xpm_put_color_table_v, xpm_get_color_table_v)
815 (xpm_make_color_table_h, xpm_put_color_table_h)
816 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
817 (xpm_load): Convert to ANSI C prototypes.
818
819 * emacs.c: Include nsterm.h if HAVE_NS.
820
821 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
822
823 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
824
825 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
826 subprocesses, only MSDOS does not define HAVE_SOCKETS.
827 (socket_options): Use const char* for name.
828
829 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
830
831 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
832
833 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
834 Don't declare xmalloc_widget_value and digest_single_submenu.
835
836 * w32font.c (Qlatin): Remove declaration.
837
838 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
839
840 * dired.c (compile_pattern): Restore declaration.
841
842 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
843
844 Remove extern declarations in .c files, .h files have them.
845 * data.c:
846 * dired.c:
847 * editfns.c:
848 * filelock.c:
849 * fns.c:
850 * font.c:
851 * fontset.c:
852 * frame.c:
853 * fringe.c:
854 * ftfont.c:
855 * gtkutil.c:
856 * indent.c:
857 * keyboard.c:
858 * keymap.c:
859 * lread.c:
860 * menu.c:
861 * print.c:
862 * search.c:
863 * sound.c:
864 * window.c:
865 * xdisp.c:
866 * xfaces.c:
867 * xfns.c:
868 * xfont.c:
869 * xftfont.c:
870 * xmenu.c:
871 * xterm.c: Remove declarations.
872
873 Cleanup syssignal.h.
874 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
875 (main_thread): Move down to remove #ifdef.
876 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
877 Remove conditional definition following unconditional ones.
878
879 * lisp.h: Remove HAVE_SHM code, unused.
880 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
881 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
882 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
883 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
884 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
885 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
886 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
887 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
888 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
889 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
890 (Qwindow_scroll_functions, Vafter_load_alist)
891 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
892 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
893 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
894 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
895 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
896 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
897 (initial_argv, last_nonmenu_event, load_in_progress)
898 (noninteractive_need_newline, scroll_margin): Add declarations.
899
900 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
901 declarations, menu.h has them.
902 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
903 (Vinput_method_function, Qinput_method_function)
904 (Qevent_symbol_element_mask, last_event_timestamp):
905 * dispextern.h (Voverflow_newline_into_fringe):
906 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
907 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
908 (syms_of_w32font, syms_of_nsfont):
909 * fontset.h (find_font_encoding, Qlatin):
910 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
911 (Vtool_bar_mode, set_frame_menubar):
912 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
913 * xterm.h (Qx_gtk_map_stock):
914 * keymap.h (meta_prefix_char): Add declarations.
915
916 * term.c: Remove dead code.
917
918 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
919 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
920 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
921 which is what was there before BSD_PGRPS was removed.
922
923 2010-08-05 Eli Zaretskii <eliz@gnu.org>
924
925 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
926
927 * unexcoff.c: Renamed from unexec.c.
928
929 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
930
931 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
932
933 2010-08-03 Johan Bockgård <bojohan@gnu.org>
934
935 * data.c (Flocal_variable_p): Handle variable aliases correctly.
936 (Bug#6744)
937
938 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
939
940 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
941 to TRUE if depth of screen is < 16.
942
943 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
944 USE_GTK_TOOLTIP.
945 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
946 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
947 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
948 USE_GTK_TOOLTIP.
949 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
950
951 * xterm.h (USE_GTK_TOOLTIP): New define.
952 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
953
954 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
955 to Control-D (Bug#6771).
956
957 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
958
959 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
960 Wording by Drew Adams <drew.adams@oracle.com>.
961
962 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
963
964 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
965 ttip_lbl.
966
967 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
968 calling gtk_widget_queue_draw.
969 (x_free_frame_resources): Call xg_free_frame_widgets.
970
971 * xfns.c (x_gtk_use_system_tooltips): New variable.
972 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
973 new gtkutil tooltip functions to show the tooltip.
974 (Fx_hide_tip): Call xg_hide_tooltip.
975 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
976
977 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
978 (xg_show_tooltip, xg_hide_tooltip): Declare.
979
980 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
981 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
982 New functions.
983 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
984 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
985 Remove code that is commented out.
986
987 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
988
989 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
990
991 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
992
993 * xselect.c (x_own_selection): Use list4.
994
995 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
996
997 * buffer.c (Qwindow): Do not define, already defined in data.c.
998 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
999
1000 2010-07-29 Chad Brown <yandros@mit.edu>
1001
1002 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1003 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1004 * config.in: Undef HAVE_DIRENT_H.
1005 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
1006 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1007
1008 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1009
1010 Rename s/usg5-4.h -> s/usg5-4-common.h.
1011 * s/usg5-4.h: Rename file to ...
1012 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1013 * s/unixware.h:
1014 * s/sol2-6.h:
1015 * s/irix6-5.h: Update includes accordingly.
1016
1017 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1018
1019 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1020
1021 * xterm.h (struct x_output): Add toolbar_top_height,
1022 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1023 Remove toolbar_height.
1024 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
1025 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1026 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1027 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1028
1029 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1030
1031 * xfns.c (x_set_tool_bar_position): New function.
1032 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1033 (x_frame_parm_handlers): Add x_set_tool_bar_position.
1034 (syms_of_xfns): If USE_GTK, provide move-toolbar.
1035
1036 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1037 and FRAME_TOOLBAR_LEFT_WIDTH.
1038
1039 * gtkutil.h (xg_change_toolbar_position): Declare.
1040
1041 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1042 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1043 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1044 (xg_create_frame_widgets): Create a hobox for placing widgets
1045 vertically. Use gtk_box_pack_start.
1046 (xg_height_or_width_changed): Renamed from xg_height_changed.
1047 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1048 (xg_update_frame_menubar, free_frame_menubar): Change to
1049 xg_height_or_width_changed.
1050 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1051 size correctly. Remove hardcoded 4, instead use handlebox size -
1052 toolbar size.
1053 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
1054 size correctly. Use handlebox size + toolbar size as additional size.
1055 (xg_pack_tool_bar): POS is a new parameter.
1056 Set orientation of tool bar based on pos.
1057 Only make handlebox_widget if NULL.
1058 Check if tool bar goes to vbox or hbox depending on pos.
1059 (xg_update_tool_bar_sizes): New function.
1060 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
1061 height, call xg_update_tool_bar_sizes instead.
1062 (free_frame_tool_bar): Remove from hbox or vbox depending on
1063 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1064 (xg_change_toolbar_position): New function.
1065
1066 * frame.h (struct frame): Add tool_bar_position.
1067 (Qbottom): Declare.
1068
1069 * frame.c (Qtool_bar_position): New variable.
1070 (make_frame): Set tool_bar_position to Qtop.
1071 (frame_parms): Add tool-bar-position.
1072 (x_report_frame_params): Store tool_bar_position.
1073 (x_set_fringe_width): Reset wm size hint after fringe changes.
1074
1075 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1076
1077 Make lisp_time_argument declaration work on all systems.
1078 * lisp.h (lisp_time_argument): Move declaration ...
1079 * systime.h (lisp_time_argument): ... here
1080 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1081
1082 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1083
1084 * vm-limit.c (POINTER): Add typedef for it.
1085 (start_of_data): Change return type from POINTER to char *.
1086
1087 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1088 HAVE_WINDOW_SYSTEM.
1089
1090 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1091
1092 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1093 Remove reference to __osf__, unused.
1094
1095 * mem-limits.h: Remove duplicated includes.
1096 (NULL): Remove definition, unused.
1097 (POINTER): Remove definition.
1098 (start_of_data): Use char* in prototype, as the function
1099 definition does.
1100
1101 Remove extern declarations from .c files, and them to .h files.
1102 * keyboard.h (Qhelp_echo, waiting_for_input)
1103 (input_available_clear_time, ignore_mouse_drag_p)
1104 (Vdouble_click_time, real_this_command, Vthis_original_command):
1105 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1106 (Voverriding_local_map_menu_flag):
1107 * lisp.h (Qinteractive_form, use_file_dialog)
1108 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1109 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1110 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1111 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1112 (Qfunction, debug_on_next_call, Qfield)
1113 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1114 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1115 (Qfile_directory_p, Qinsert_file_contents)
1116 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1117 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1118 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1119 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1120 (Qminibuffer_prompt)
1121 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1122 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1123 (gray_bitmap_bits, xic_create_fontsetname):
1124 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1125
1126 * xsmfns.c (Vuser_login_name):
1127 * xrdb.c (Vdouble_click_time):
1128 * xfaces.c (xic_create_fontsetname):
1129 * w32select.c (waiting_for_input):
1130 * print.c (minibuffer_auto_raise):
1131 * msdos.c (Qhelp_echo):
1132 * macros.c (real_this_command):
1133 * keymap.c (Voverriding_local_map):
1134 * xterm.c (poll_for_input_1, gray_bitmap_width)
1135 (gray_bitmap_height, gray_bitmap_bits;
1136 * xmenu.c ( Voverriding_local_map)
1137 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1138 (use_file_dialog, Xt_app_con):
1139 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1140 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1141 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1142 (Qtool_bar_lines, ignore_mouse_drag_p):
1143 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1144 (Qrear_nonsticky, nconc2):
1145 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1146 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1147 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1148 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1149 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1150 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1151 (gc_in_progress):
1152 * doc.c (Voverriding_local_map, Qremap):
1153 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1154 (Vcompletion_regexp_list):
1155 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1156 (Qcompletion_ignore_case):
1157 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1158 (Vhistory_length, Vthis_original_command, real_this_command)
1159 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1160 * image.c (Qrisky_local_variable):
1161 * fontset.c (QCname):
1162 * fns.c (minibuffer_auto_raise, QCname):
1163 * dispnew.c (char_ins_del_cost):
1164 * composite.c (font_fill_lglyph_metrics):
1165 * cmds.c (Qface, Vtranslation_table_for_input):
1166 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1167 * ccl.c (charset_unicode):
1168 * callproc.c (Vtemporary_file_directory):
1169 * buffer.c (emacs_strerror): Remove extern declarations.
1170
1171 * data.c (Qwindow): Make non-static, used from other files too.
1172 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1173
1174 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1175 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1176 * s/usg5-4.h (COFF):
1177 * s/template.h:
1178 * s/msdos.h (COFF, NO_REMAP):
1179 * s/ms-w32.h (NO_REMAP):
1180 * s/hpux10-20.h (NO_REMAP):
1181 * m/sparc.h (SEGMENT_MASK):
1182 * m/m68k.h (NO_REMAP):
1183 * m/intel386.h (SEGMENT_MASK):
1184 * m/arm.h (NO_REMAP):
1185 * m/alpha.h (COFF):
1186 * m/template.h: Remove references to unused defines.
1187
1188 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1189
1190 * xsettings.c (Ftool_bar_get_system_style): Also check for
1191 Qtext_image_horiz.
1192
1193 * xdisp.c (Qtext_image_horiz): Define.
1194 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
1195 to documentation of tool-bar-style.
1196
1197 * lisp.h (Qtext_image_horiz): Declare.
1198
1199 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1200 style text_image_horiz.
1201
1202 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1203
1204 * emacs.c (Fkill_emacs): Remove return statement.
1205
1206 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1207 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1208 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1209 local extern declarations.
1210
1211 * xmenu.c: Do not included lwlib.h, not needed.
1212
1213 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1214
1215 * process.c: Move definitions earlier to minimize #ifdefs.
1216
1217 * xterm.h (x_get_customization_string, x_load_resources)
1218 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1219 (x_check_errors, x_property_data_to_lisp, defined_color)
1220 (xic_set_xfontset, x_defined_color): Use const.
1221
1222 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1223 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1224
1225 * xselect.c (selection_data_to_lisp_data)
1226 (x_property_data_to_lisp):
1227 * xrdb.c (x_get_string_resource, file_p)
1228 (x_get_customization_string, magic_file_p, search_magic_path)
1229 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1230 (x_get_string_resource): Use const.
1231
1232 * xfns.c: Include xlwmenu.h when USE_LUCID.
1233 (x_defined_color, xic_set_xfontset): Use const.
1234 (Fx_hide_tip): Remove local extern declaration.
1235
1236 * xfaces.c (Qmouse_face): Remove declaration.
1237 (face_color_gray_p, tty_defined_color, defined_color)
1238 (face_color_gray_p, face_color_supported_p): Add const.
1239
1240 * xdisp.c (do_mouse_tracking): Remove declaration.
1241 (add_to_log): Use const.
1242
1243 * minibuf.c (Qmouse_face): Remove declaration.
1244
1245 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1246
1247 * keyboard.h (do_mouse_tracking): Add declaration.
1248
1249 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1250 (QCdata, QCtype, Qcenter): Remove declarations.
1251
1252 * frame.c (x_get_resource_string, x_get_string_resource)
1253 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1254 (x_default_parameter): Use const.
1255
1256 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1257 (QCheight, QCsize, QCname): Remove declarations.
1258
1259 * emacs.c (main): Remove local extern declaration.
1260
1261 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1262 declarations.
1263
1264 * dispnew.c: Remove duplicate #include <unistd.h>.
1265 (update_window, update_frame_1, init_display): Remove local extern
1266 declarations.
1267
1268 * dispextern.h (add_to_log): Remove declaration.
1269 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1270 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1271
1272 * dired.c (scmp): Add const.
1273 (directory_files_internal): Remove local extern declaration.
1274
1275 * data.c (Finteractive_form): Use const.
1276
1277 * composite.c (syms_of_composite): Remove local extern declarations.
1278
1279 * charset.c (add_to_log): Remove declaration.
1280
1281 * character.c (strwidth, parse_str_to_multibyte): Add const.
1282
1283 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1284
1285 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1286
1287 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
1288 (Lisp_Subr): Make doc and intspec constant.
1289 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1290 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1291 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1292 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1293 (display_arg): Add declarations.
1294
1295 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
1296
1297 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1298
1299 * window.c (Fwindow_height): Doc fix (bug#6518).
1300
1301 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
1302
1303 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1304
1305 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1306
1307 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1308 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1309 functions.
1310
1311 * frame.h (Qtty_color_mode): Add declaration.
1312
1313 * lisp.h (Ftop_level, Fexit_recursive_edit)
1314 (Fabort_recursive_edit): Mark as NO_RETURN.
1315
1316 2010-07-26 Kenichi Handa <handa@m17n.org>
1317
1318 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
1319 number of glyphs gets smaller than the original length. (Bug#6621)
1320
1321 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
1322
1323 * lread.c (unreadpure, mapatoms_1): Make static.
1324
1325 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1326
1327 * terminfo.c (tparam): Fix prototype of tparm.
1328
1329 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1330
1331 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1332 find start of text segment.
1333 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1334 is defined.
1335
1336 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1337
1338 2010-07-25 Ken Brown <kbrown@cornell.edu>
1339
1340 * vm-limit.c (check_memory_limits): Fix previous change;
1341 accidentally reverted an earlier change.
1342
1343 2010-07-25 Ken Brown <kbrown@cornell.edu>
1344
1345 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1346 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1347
1348 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1349
1350 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1351 * dired.c (opendir, readdir): Fix prototypes.
1352 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1353 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1354 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1355 (telldir): Remove declaration.
1356 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1357 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1358 * syssignal.h (strsignal): Fix prototype.
1359 * term.c (tparam): Fix prototype.
1360 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1361 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1362 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1363 and __morecore.
1364 * w32gui.h (XParseGeometry): Fix prototype.
1365 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1366 * w32term.c (my_set_focus): Declare inside #if 0.
1367 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1368 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1369 (drain_message_queue, get_next_msg, post_msg, parse_button)
1370 (ClipboardSequence_Proc): Fix prototypes.
1371 (wait_for_sync): Remove declaration.
1372
1373 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
1374
1375 * w32fns.c (w32_to_x_color): Remove, unused.
1376
1377 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1378
1379 * lisp.h: Remove leftover P_.
1380
1381 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1382
1383 * ecrt0.c, unexalpha.c: Remove files, unused.
1384
1385 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1386
1387 * cmds.c (internal_self_insert): Make static.
1388 * lisp.h (internal_self_insert): Remove declaration.
1389
1390 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
1391
1392 * alloc.c (free_float):
1393 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1394 * frame.c (delete_frame_handler):
1395 * ralloc.c (reorder_bloc):
1396 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1397 Remove unused static functions.
1398
1399 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1400 it is called only from NS code.
1401
1402 * w32term.c (my_set_focus): #ifdef away; it is called only from
1403 "#ifdef 0" code.
1404
1405 * w32fns.c (x_edge_detection):
1406 * xfaces.c (may_use_scalable_font_p):
1407 Remove obsolete static declarations.
1408
1409 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
1410
1411 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1412 (emacs_blocked_realloc, uninterrupt_malloc):
1413 * fringe.c (w32_reset_fringes):
1414 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1415 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1416 * sound.c (be2hs, do_play_sound):
1417 * vm-limit.c (get_lim_data, ret_lim_data):
1418 * w32term.c (x_free_frame_resources):
1419 * xfaces.c (x_create_gc, x_free_gc):
1420 Convert definitions to standard C.
1421
1422 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1423
1424 * eval.c (Feval, Ffuncall): Use the new names.
1425
1426 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1427 (DEFUN): Add braces around the union initialisation and use ## to
1428 specify the right union alternative and avoid a cast.
1429
1430 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
1431
1432 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1433
1434 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
1435
1436 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1437
1438 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1439
1440 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1441 is related to the menu bar (Bug#6499).
1442 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
1443
1444 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1445
1446 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1447
1448 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1449
1450 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1451 i.e. don't put back ButtonRelease (Bug#6608).
1452
1453 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1454 instead of Window. Call xg_event_is_for_menubar when
1455 USE_GTK (Bug#6499).
1456
1457 * gtkutil.h (xg_event_is_for_menubar): Declare.
1458
1459 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1460
1461 2010-07-16 Eli Zaretskii <eliz@gnu.org>
1462
1463 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1464 when it's the same as the old foreground. (Bug#6609)
1465
1466 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1467
1468 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1469 widget is non-null (Bug#6645).
1470
1471 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1472
1473 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1474 Convert old-style definition.
1475
1476 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1477 timestamp argument.
1478
1479 2010-07-15 Eli Zaretskii <eliz@gnu.org>
1480
1481 * fringe.c (update_window_fringes): Restore mistakenly reverted
1482 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1483
1484 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1485
1486 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1487 (SET_SAVED_KEY_EVENT): Remove (not used).
1488 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1489 remove size parameter.
1490 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1491 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1492 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1493 ButtonRelease.
1494 (x_set_window_size_1): scroll_bar_actual_width is always
1495 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
1496
1497 * xdisp.c (pending_menu_activation): Remove extern declaration.
1498 (prepare_menu_bars): Remove setting of pending_menu_activation.
1499
1500 * xmenu.c (pending_menu_activation): Remove.
1501 (x_activate_menubar): Set popup_activated_flag for Xt also.
1502 Remove setting of pending_menu_activation.
1503 (set_frame_menubar): Remove check of pending_menu_activation.
1504 Declare menubar_size before code. Correct spelling in comment.
1505
1506 2010-07-14 Kenichi Handa <handa@m17n.org>
1507
1508 * font.c (font_open_entity): Cancel previous change.
1509 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1510
1511 2010-07-13 Eli Zaretskii <eliz@gnu.org>
1512
1513 Remove subprocesses #ifdefs.
1514 * process.c <inhibit_sentinels>: Move to the common part.
1515 (Fwaiting_for_user_input_p): Move to the common part; return nil
1516 if async subprocesses aren't supported.
1517 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1518 MS-DOS. Remove "#ifdef subprocesses".
1519 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1520 (gettimeofday): Remove "#ifdef subprocesses".
1521 (wait_without_blocking): Remove function.
1522 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1523 Remove "#ifdef subprocesses".
1524 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1525 compiled on MS-DOS.
1526 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1527 wait_for_termination on MS-DOS.
1528 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1529 initialization of inhibit_sentinels.
1530 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1531 subprocesses" conditional.
1532 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1533 wait_for_termination, since `buffer' cannot be an integer when
1534 async subprocesses are not supported
1535 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1536 for ifdefing away the call to Fprocess_status.
1537
1538 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1539 away the entire body of the function.
1540
1541 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1542
1543 Remove subprocesses #ifdefs from term.c.
1544 * process.c (add_keyboard_wait_descriptor)
1545 (delete_keyboard_wait_descriptor): Move to common section, do
1546 nothing when subprocesses is not defined.
1547 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1548 Remove subprocesses #ifdefs.
1549
1550 Convert maybe_fatal to standard C.
1551 * lisp.h (verror): Declare.
1552 * eval.c (verror): New function containing the code from ...
1553 (error): ... this. Call verror.
1554 * term.c (vfatal): New function containing the code from ...
1555 (fatal): ... this. Call vfatal.
1556 (maybe_fatal): Convert to standard C, use variable number of
1557 arguments. Declare as non-return.
1558 (init_tty): Fix maybe_fatal call.
1559
1560 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1561
1562 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1563 (_scroll_bar_note_movement): Convert definitions to standard C.
1564 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1565 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1566
1567 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1568
1569 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1570 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1571 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1572 (xaw_jump_callback, xaw_scroll_callback)
1573 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1574 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1575 definitions to standard C.
1576 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1577 (popup_activate_callback, popup_deactivate_callback)
1578 (menu_highlight_callback, menubar_selection_callback)
1579 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1580 (free_frame_menubar, popup_selection_callback, as)
1581 (create_and_show_popup_menu, dialog_selection_callback)
1582 (create_and_show_dialog):
1583 * xfns.c (hack_wm_protocols, x_window):
1584 * xfaces.c (x_update_menu_appearance):
1585 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1586 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1587 (set_frame_size, update_wm_hints, setup_frame_gcs)
1588 (update_various_frame_slots, update_from_various_frame_slots)
1589 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1590 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1591 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1592
1593 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1594
1595 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
1596
1597 2010-07-12 Eli Zaretskii <eliz@gnu.org>
1598
1599 * process.c (setup_process_coding_systems): Move to the part
1600 shared by non-subprocesses systems, and make its body empty when
1601 subprocesses is not defined.
1602 (close_process_descs): Move to the part shared by non-subprocesses
1603 systems.
1604 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1605 ANSI C.
1606
1607 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1608
1609 * editfns.c (transpose_markers): Convert old-style definition.
1610 * emacs.c (abort, shut_down_emacs, fixup_locale)
1611 (synchronize_system_time_locale)
1612 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1613 * floatfns.c (extract_float, matherr, init_floatfns)
1614 (syms_of_floatfns): Likewise.
1615 * fns.c (make_hash_table): Likewise.
1616 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1617 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1618 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1619 (ftfont_variation_glyphs): Likewise.
1620 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1621 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1622 * lread.c (read_filtered_event): Likewise.
1623 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1624 * process.c (wait_reading_process_output): Likewise.
1625 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1626 * search.c (search_buffer, boyer_moore): Likewise.
1627 * syntax.c (scan_sexps_forward): Likewise.
1628 * xdisp.c (try_scrolling): Likewise.
1629 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1630 (face_at_string_position): Likewise.
1631 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1632 * xselect.c (x_get_window_property, receive_incremental_selection)
1633 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1634 Likewise.
1635 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1636
1637 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1638
1639 * callproc.c (child_setup): Remove subprocesses conditional.
1640 Remove code dealing with SET_EMACS_PRIORITY, unused.
1641
1642 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
1643 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1644
1645 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1646 (__do_global_dtors, __main): Use void in definition.
1647 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1648 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1649 the only users from ...
1650 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1651 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1652 (HAVE_VOLATILE): Remove, unused.
1653
1654 Convert more function definitions to standard C.
1655 * xdisp.c (window_box_edges, handle_single_display_spec)
1656 (display_string): Convert definition to standard C.
1657 * scroll.c (do_direct_scrolling, scrolling_1):
1658 * dispnew.c (allocate_matrices_for_frame_redisplay)
1659 (mirrored_line_dance):
1660 * coding.c (code_convert_string):
1661 * charset.c (map_charset_chars):
1662 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1663 (Fregister_ccl_program, Fregister_code_conversion_map):
1664 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1665 (head_table): Make static and const.
1666
1667 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1668
1669 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1670 (PROFILING_LDFLAGS): Set from substitution.
1671 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1672 CFLAGS last.
1673
1674 2010-07-12 Kenichi Handa <handa@m17n.org>
1675
1676 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1677 (shortlisp): Likewise.
1678
1679 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1680
1681 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1682 of FONT_ENTITY_INDEX.
1683 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1684 property, get the property value dynamically.
1685 (Ffont_put): Accept font-entity and font-object too.
1686 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1687 return value changed.
1688 (syms_of_font): Adjusted for the above change.
1689
1690 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1691
1692 * blockinput.h: Remove obsolete comment.
1693
1694 * lisp.h: Include <stddef.h>.
1695 (OFFSETOF): Don't define.
1696 (VECSIZE): Use offsetof instead of OFFSETOF.
1697 (PSEUDOVECSIZE): Likewise.
1698 * process.c (conv_sockaddr_to_lisp): Likewise.
1699 * alloc.c: Don't include <stddef.h>.
1700 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1701
1702 * process.c: Remove obsolete comment.
1703
1704 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
1705
1706 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1707
1708 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1709
1710 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1711 index, rindex.
1712 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1713 * editfns.c (Fuser_full_name, Fformat): Likewise.
1714 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1715 * fileio.c (Ffile_symlink_p): Likewise.
1716 * filelock.c (current_lock_owner): Likewise.
1717 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1718 * fontset.c (fontset_pattern_regexp): Likewise.
1719 * lread.c (read1): Likewise.
1720 * sysdep.c (init_system_name): Likewise.
1721 * xfns.c (select_visual): Likewise.
1722 * s/hpux10-20.h (index, rindex): Don't define.
1723 * s/ms-w32.h (index): Likewise.
1724 * s/usg5-4.h: Likewise.
1725
1726 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1727
1728 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1729 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1730 (egetenv): Likewise.
1731 * doprnt.c (doprnt): Likewise.
1732 * editfns.c (set_time_zone_rule, format2): Likewise.
1733 * emacs.c (decode_env_path): Likewise.
1734 * eval.c (signal_error, error): Likewise.
1735 * insdel.c (replace_range_2): Likewise.
1736 * keyboard.c (cmd_error_internal): Likewise.
1737 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1738 * print.c (write_string, write_string_1, print_error_message):
1739 Likewise.
1740 * vm-limit.c (warn_function, memory_warnings): Likewise.
1741 * xdisp.c (message1, message1_nolog, message_with_string)
1742 (vmessage, message, message_nolog): Likewise.
1743 * emacs.c: Remove duplicate declaration.
1744 * keyboard.h: Likewise.
1745 * lisp.h: Update prototypes.
1746
1747 * eval.c: Fix indentation problem.
1748
1749 * keyboard.c: Include "process.h"
1750
1751 * eval.c: Remove obsolete noinline declaration.
1752 * fns.c: Likewise.
1753
1754 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
1755
1756 * doprnt.c (doprnt): Take a va_list argument instead of count and
1757 pointer.
1758 * eval.c (error): Change to a standard-C variadic function.
1759 * xdisp.c (vmessage): Renamed from message, made static, and
1760 changed to take a va_list argument.
1761 (message): New variadic wrapper.
1762 (message_nolog): Now a variadic function, calling vmessage.
1763 * lisp.h: Include stdarg.h for va_list.
1764 (doprnt, error, message, message_nolog): Decls updated.
1765
1766 2010-07-11 Eli Zaretskii <eliz@gnu.org>
1767
1768 * process.c (syms_of_process) <delete-exited-processes>: Define
1769 even if !subprocesses.
1770 (delete_exited_processes): Ditto.
1771
1772 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1773 (delete_exited_processes): Don't define.
1774
1775 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1776
1777 * frame.c (make_frame): Initialize menu_bar_lines and
1778 tool_bar_lines members.
1779 (make_initial_frame, make_terminal_frame): Initialize
1780 menu_bar_lines using value of menu-bar-mode.
1781
1782 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1783
1784 2010-07-10 Eli Zaretskii <eliz@gnu.org>
1785
1786 * process.c: Reshuffle #include's. Condition some of the global
1787 and static variables on `subprocesses'.
1788 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1789 Leave only one implementation.
1790 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1791 (kill_buffer_processes, Flist_system_processes)
1792 (Fprocess_attributes, init_process, syms_of_process): Unify the
1793 implementations for with subprocesses and without them.
1794
1795 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1796
1797 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1798 correct size for Motif.
1799 (free_frame_menubar): Call x_set_window_size to update frame size.
1800
1801 * xfns.c (x_window): Set borderWidth to 0 for pane and
1802 EmacsFrame. Frame size calculation is wrong otherwise.
1803
1804 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
1805
1806 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1807 allows to suppress errors when polling in Emacs' main loop.
1808 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1809 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1810 (Fdbus_method_error_internal, Fdbus_send_signal)
1811 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1812 (Fdbus_register_method): Use it. (Bug#6579)
1813
1814 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1815
1816 * alloc.c: Convert DEFUNs to standard C.
1817 * buffer.c:
1818 * bytecode.c:
1819 * callint.c:
1820 * callproc.c:
1821 * casefiddle.c:
1822 * casetab.c:
1823 * category.c:
1824 * character.c:
1825 * charset.c:
1826 * chartab.c:
1827 * cmds.c:
1828 * coding.c:
1829 * composite.c:
1830 * data.c:
1831 * dbusbind.c:
1832 * dired.c:
1833 * dispnew.c:
1834 * doc.c:
1835 * dosfns.c:
1836 * editfns.c:
1837 * emacs.c:
1838 * eval.c:
1839 * fileio.c:
1840 * filelock.c:
1841 * floatfns.c:
1842 * fns.c:
1843 * font.c:
1844 * fontset.c:
1845 * frame.c:
1846 * fringe.c:
1847 * image.c:
1848 * indent.c:
1849 * insdel.c:
1850 * keyboard.c:
1851 * keymap.c:
1852 * lread.c:
1853 * macros.c:
1854 * marker.c:
1855 * menu.c:
1856 * minibuf.c:
1857 * msdos.c:
1858 * nsfns.m:
1859 * nsmenu.m:
1860 * nsselect.m:
1861 * print.c:
1862 * process.c:
1863 * search.c:
1864 * sound.c:
1865 * syntax.c:
1866 * term.c:
1867 * terminal.c:
1868 * textprop.c:
1869 * undo.c:
1870 * w16select.c:
1871 * w32console.c:
1872 * w32fns.c:
1873 * w32font.c:
1874 * w32menu.c:
1875 * w32proc.c:
1876 * w32select.c:
1877 * window.c:
1878 * xdisp.c:
1879 * xfaces.c:
1880 * xfns.c:
1881 * xmenu.c:
1882 * xselect.c:
1883 * xsettings.c:
1884 * xsmfns.c: Likewise.
1885
1886 2010-07-08 Eli Zaretskii <eliz@gnu.org>
1887
1888 * process.c (kbd_is_on_hold, hold_keyboard_input)
1889 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1890
1891 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1892
1893 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1894 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1895 unless USE_LUCID.
1896
1897 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1898
1899 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1900 declaration.
1901
1902 Clean up include guards.
1903 * tparam.c: Remove include guards for config.h, string.h and code
1904 that assumes #ifndef emacs.
1905 * termcap.c:
1906 * unexalpha.c:
1907 * sysdep.c:
1908 * filemode.c:
1909 * filelock.c:
1910 * bidi.c: Likewise.
1911
1912 Remove prefix-args.c
1913 * prefix-args.c: Remove file.
1914 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1915 * Makefile.in (temacs${EXEEXT}): Remove references to
1916 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1917 (mostlyclean): Remove reference to prefix-args.
1918 (prefix-args): Remove.
1919
1920 Simplify cstart_of_data, start_of_code and related code.
1921 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1922 (start_of_data): Merge into start_of_data function.
1923 * sysdep.c (start_of_text): Remove. Move simplified versions of
1924 it in the only users: unexaix.c and unexec.c.
1925 (read_input_waiting): Remove local declaration of quit_char.
1926 (start, etext): Remove declarations.
1927 (start_of_data): Merge with the version in mem-limits.h and move
1928 to vm-limits.c.
1929 * vm-limit.c (start_of_data): Merged and simplified version of the
1930 code formerly in mem-limits.h and sysdep.c.
1931 * unexec.c (start): New declaration, moved from sysdep.c.
1932 (start_of_text): Simplified version of the code formerly in sysdep.c.
1933 * unexaix.c (start_of_text): Simplified version of the code
1934 formerly in sysdep.c.
1935 * m/alpha.h (HAVE_TEXT_START): Remove.
1936 (TEXT_START): Move ...
1937 * unexalpha.c (TEXT_START): ... here.
1938 * s/hpux10-20.h (TEXT_START): Remove.
1939 * s/darwin.h (TEXT_START):
1940 * m/mips.h (TEXT_START):
1941 * m/macppc.h (HAVE_TEXT_START):
1942 * m/m68k.h (TEXT_START):
1943 * m/iris4d.h (TEXT_START):
1944 * m/intel386.h (TEXT_START):
1945 * m/ibmrs6000.h (TEXT_START):
1946 * m/ia64.h (HAVE_TEXT_START):
1947 * s/msdos.h (TEXT_START): Likewise.
1948
1949 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1950
1951 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1952 (overrun_check_free, xstrdup, allocate_string)
1953 (allocate_string_data, compact_small_strings, Fmake_string)
1954 (make_unibyte_string, make_multibyte_string)
1955 (make_string_from_bytes, make_specified_string, make_float)
1956 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1957 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1958 memcpy, memmove, memset, memcmp.
1959 * atimer.c (start_atimer, set_alarm): Likewise.
1960 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1961 (mmap_realloc, init_buffer_once): Likewise.
1962 * callint.c (Fcall_interactively): Likewise.
1963 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1964 (getenv_internal_1): Likewise.
1965 * casefiddle.c (casify_object): Likewise.
1966 * ccl.c (ccl_driver): Likewise.
1967 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1968 * charset.c (load_charset_map_from_file)
1969 (load_charset_map_from_file, load_charset_map_from_vector)
1970 (Fdefine_charset_internal): Likewise.
1971 * cm.c (Wcm_clear): Likewise.
1972 * coding.c (decode_eol, decode_coding_object)
1973 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1974 * data.c (Faset): Likewise.
1975 * dired.c (directory_files_internal, file_name_completion_stat):
1976 Likewise.
1977 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1978 (clear_glyph_row, copy_row_except_pointers)
1979 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1980 (save_current_matrix, restore_current_matrix)
1981 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1982 (mirror_line_dance, scrolling_window): Likewise.
1983 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1984 Likewise.
1985 * doprnt.c (doprnt): Likewise.
1986 * editfns.c (Fuser_full_name, make_buffer_string_both)
1987 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1988 * emacs.c (sort_args): Likewise.
1989 * eval.c (Fapply, Ffuncall): Likewise.
1990 * fileio.c (Ffile_name_directory, make_temp_name)
1991 (Fexpand_file_name, search_embedded_absfilename)
1992 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1993 (auto_save_error): Likewise.
1994 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1995 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1996 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1997 (Fmake_hash_table): Likewise.
1998 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1999 * ftfont.c (ftfont_text_extents): Likewise.
2000 * getloadavg.c (getloadavg): Likewise.
2001 * image.c (define_image_type, make_image, make_image_cache)
2002 (x_create_x_image_and_pixmap, xbm_image_p)
2003 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2004 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2005 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2006 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2007 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2008 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2009 Likewise.
2010 * indent.c (scan_for_column, compute_motion): Likewise.
2011 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2012 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2013 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2014 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2015 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2016 (store_user_signal_events, menu_bar_items, tool_bar_items)
2017 (process_tool_bar_item, append_tool_bar_item)
2018 (read_char_minibuf_menu_prompt, read_key_sequence)
2019 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2020 Likewise.
2021 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2022 Likewise.
2023 * lisp.h (STRING_COPYIN): Likewise.
2024 * lread.c (Fload, read1, oblookup): Likewise.
2025 * msdos.c (Frecent_doskeys): Likewise.
2026 * nsfns.m (Fx_create_frame): Likewise.
2027 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2028 Likewise.
2029 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2030 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2031 Likewise.
2032 * nsmenu.m (ns_update_menubar): Likewise.
2033 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2034 * print.c (print_unwind, printchar, strout, print_string)
2035 (print_error_message): Likewise.
2036 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2037 (Fmake_network_process, Fnetwork_interface_list)
2038 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2039 (init_process): Likewise.
2040 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2041 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2042 Likewise.
2043 * scroll.c (do_scrolling, do_direct_scrolling)
2044 (scrolling_max_lines_saved): Likewise.
2045 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2046 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2047 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2048 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2049 (emacs_set_tty): Likewise.
2050 * term.c (encode_terminal_code, calculate_costs)
2051 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2052 Likewise.
2053 * termcap.c (tgetst1, gobble_line): Likewise.
2054 * termhooks.h (EVENT_INIT): Likewise.
2055 * tparam.c (tparam1): Likewise.
2056 * unexalpha.c (unexec): Likewise.
2057 * unexec.c (write_segment): Likewise.
2058 * unexmacosx.c (unexec_write_zero): Likewise.
2059 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2060 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2061 * w32font.c (w32font_list_family, w32font_text_extents)
2062 (w32font_list_internal, w32font_match_internal)
2063 (w32font_open_internal, compute_metrics, Fx_select_font):
2064 Likewise.
2065 * w32menu.c (set_frame_menubar, add_menu_item)
2066 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2067 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2068 * w32uniscribe.c (uniscribe_list_family): Likewise.
2069 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2070 * window.c (make_window, replace_window, set_window_buffer)
2071 (Fsplit_window): Likewise.
2072 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2073 (add_to_log, message3, x_consider_frame_title)
2074 (append_space_for_newline, extend_face_to_end_of_line)
2075 (decode_mode_spec_coding, init_glyph_string): Likewise.
2076 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2077 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2078 (face_attr_equal_p, make_realized_face, make_face_cache)
2079 (free_realized_faces, lookup_named_face, smaller_face)
2080 (face_with_height, lookup_derived_face)
2081 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2082 (Finternal_set_font_selection_order, realize_default_face)
2083 (compute_char_face, face_at_buffer_position)
2084 (face_for_overlay_string, face_at_string_position, merge_faces):
2085 Likewise.
2086 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2087 (Fx_window_property, x_create_tip_frame)
2088 (Fx_backspace_delete_keys_p): Likewise.
2089 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2090 (xfont_text_extents): Likewise.
2091 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2092 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2093 * xselect.c (x_queue_event, x_get_window_property)
2094 (receive_incremental_selection): Likewise.
2095 * xsmfns.c (x_session_check_input): Likewise.
2096 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2097 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2098 Likewise.
2099 * character.h (BCOPY_SHORT): Removed.
2100 * config.in: Regenerate.
2101 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2102 * emacs.c (main) [PROFILING]: Don't declare
2103 dump_opcode_frequencies.
2104 * lisp.h (safe_bcopy): Remove declaration.
2105 (memset) [!HAVE_MEMSET]: Declare.
2106 (memcpy) [!HAVE_MEMCPY]: Likewise.
2107 (memmove) [!HAVE_MEMMOVE]: Likewise.
2108 (memcmp) [!HAVE_MEMCMP]: Likewise.
2109 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2110 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2111 Don't define.
2112 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2113 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2114 (BCOPY_DOWNWARD_SAFE): Don't define.
2115 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2116 (memcpy) [!HAVE_MEMCPY]: Define.
2117 (memmove) [!HAVE_MEMMOVE]: Define.
2118 (memcmp) [!HAVE_MEMCMP]: Define.
2119
2120 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2121
2122 * process.c (kbd_is_on_hold): New variable.
2123 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2124 New functions.
2125 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2126 select on empty input mask.
2127 (init_process): Initialize kbd_is_on_hold to 0.
2128
2129 * process.h (hold_keyboard_input, unhold_keyboard_input)
2130 (kbd_on_hold_p): Declare.
2131
2132 * keyboard.c (input_available_signal): Declare.
2133 (kbd_buffer_nr_stored): New function.
2134 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2135 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2136 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2137 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2138 (tty_read_avail_input): If input is on hold, return.
2139 Don't read more that free slots in kbd_buffer (Bug#6571).
2140
2141 2010-07-07 Eli Zaretskii <eliz@gnu.org>
2142
2143 * msdos.h:
2144 * msdos.c:
2145 * dosfns.c:
2146 * w16select.c: Convert function definitions to ANSI C.
2147
2148 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2149 Remove unused prototypes.
2150
2151 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
2152
2153 * coding.c, sysdep.c: Convert some more functions to standard C.
2154
2155 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
2156
2157 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2158 (encode_coding_object): Use SPECPDL_INDEX.
2159 (syms_of_coding): Use DOS_NT.
2160
2161 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2162
2163 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2164
2165 Make the function member of Lisp_Subr use standard C prototypes.
2166 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2167 (DECL_ALIGN): Add a cast for the function.
2168 * eval.c (Feval, Ffuncall): Use the proper type for each type
2169 function call.
2170
2171 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
2172
2173 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2174 fringe face id, so face-remapping-alist works (Bug#6091).
2175
2176 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
2177
2178 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2179 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2180 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2181
2182 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2183
2184 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2185 * lisp.h: Declare x_get_keysym_name.
2186 * keyboard.c (modify_event_symbol): Don't declare
2187 x_get_keysym_name here.
2188
2189 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2190
2191 * ecrt0.c: Revert conversion to standard C.
2192
2193 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2194
2195 * vm-limit.c (memory_warnings):
2196 * keyboard.c (modify_event_symbol):
2197 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2198 (round2, emacs_rint):
2199 * process.c (send_process, old_sigpipe): Convert function
2200 definitions and declarations to standard C.
2201
2202 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
2203
2204 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2205 * xdisp.c: Convert function definitions to standard C.
2206
2207 * cm.c (cmputc): Arg C is now int, not char.
2208 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2209
2210 2010-07-05 James Cloos <cloos@jhcloos.com>
2211
2212 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2213
2214 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2215 _NET_WM_ICON_NAME atoms.
2216
2217 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2218 and _NET_WM_ICON_NAME properties, too, matching what is
2219 done in the Gtk+ case.
2220
2221 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2222
2223 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2224
2225 * xsmfns.c (SSDATA): New macro.
2226 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2227 passed to strlen/strcpy/strcat.
2228 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2229 7:th arg to XChangeProperty to (unsigned char *)
2230
2231 * xsettings.c (something_changedCB, parse_settings)
2232 (apply_xft_settings): Reformat prototype.
2233 (something_changedCB, init_gconf): Remove unused variable i.
2234 (read_settings): Remove unused variable long_len.
2235
2236 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2237 (xg_get_image_for_pixmap, create_dialog)
2238 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2239 (menuitem_highlight_callback, make_menu_item)
2240 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2241 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2242 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2243 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2244 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2245 (xg_tool_bar_item_expose_callback): Reformat prototype.
2246 (xg_update_menubar): GList *group => GSList *group.
2247 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2248 before use.
2249 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2250 to GTK_IMAGE (wimage).
2251
2252 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2253
2254 * atimer.c: Use "" instead of <> for local includes for
2255 consistency with the rest of the code.
2256
2257 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2258 * xrdb.c (get_system_name):
2259 * window.c (shrink_windows):
2260 * syntax.c (forw_comment):
2261 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2262 (ins_del_costs):
2263 * mem-limits.h (start_of_data):
2264 * lread.c (readevalloop):
2265 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2266 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2267 * frame.c (x_get_focus_frame):
2268 * floatfns.c (fmod_float):
2269 * fileio.c (choose_write_coding_system):
2270 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2271 (malloc_initialize_hook, sort_args, synchronize_locale):
2272 * doprnt.c (doprnt):
2273 * dired.c (compile_pattern):
2274 * data.c (fmod_float):
2275 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2276 (map_char_table_for_charset):
2277 * charset.c (define_charset_internal):
2278 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2279 to standard C.
2280
2281 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2282 Stefan Monnier <monnier@iro.umontreal.ca>
2283
2284 * lread.c (read1): Fix up last change to not mess up `c'.
2285
2286 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2287
2288 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2289
2290 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2291
2292 Fix prototypes.
2293
2294 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
2295 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
2296 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2297 arg, as required by internal_condition_case_1.
2298 * print.c (strout): Use const char* for arg PTR.
2299 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2300 (analyse_first): Fix "const const".
2301 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
2302 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
2303 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
2304
2305 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2306
2307 * alloc.c: Convert function definitions to standard C.
2308 * atimer.c:
2309 * bidi.c:
2310 * bytecode.c:
2311 * callint.c:
2312 * callproc.c:
2313 * casefiddle.c:
2314 * casetab.c:
2315 * category.c:
2316 * ccl.c:
2317 * character.c:
2318 * charset.c:
2319 * chartab.c:
2320 * cmds.c:
2321 * coding.c:
2322 * composite.c:
2323 * data.c:
2324 * dbusbind.c:
2325 * dired.c:
2326 * dispnew.c:
2327 * doc.c:
2328 * doprnt.c:
2329 * ecrt0.c:
2330 * editfns.c:
2331 * fileio.c:
2332 * filelock.c:
2333 * filemode.c:
2334 * fns.c:
2335 * font.c:
2336 * fontset.c:
2337 * frame.c:
2338 * fringe.c:
2339 * ftfont.c:
2340 * ftxfont.c:
2341 * gtkutil.c:
2342 * indent.c:
2343 * insdel.c:
2344 * intervals.c:
2345 * keymap.c:
2346 * lread.c:
2347 * macros.c:
2348 * marker.c:
2349 * md5.c:
2350 * menu.c:
2351 * minibuf.c:
2352 * prefix-args.c:
2353 * print.c:
2354 * ralloc.c:
2355 * regex.c:
2356 * region-cache.c:
2357 * scroll.c:
2358 * search.c:
2359 * sound.c:
2360 * strftime.c:
2361 * syntax.c:
2362 * sysdep.c:
2363 * termcap.c:
2364 * terminal.c:
2365 * terminfo.c:
2366 * textprop.c:
2367 * tparam.c:
2368 * undo.c:
2369 * unexelf.c:
2370 * window.c:
2371 * xfaces.c:
2372 * xfns.c:
2373 * xfont.c:
2374 * xftfont.c:
2375 * xgselect.c:
2376 * xmenu.c:
2377 * xrdb.c:
2378 * xselect.c:
2379 * xsettings.c:
2380 * xsmfns.c:
2381 * xterm.c: Likewise.
2382
2383 2010-07-03 Eli Zaretskii <eliz@gnu.org>
2384
2385 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2386 frames other than the initial one. Fix reversal of colors when
2387 `reverse' is specified in the frame parameters. Call
2388 update_face_from_frame_parameter instead of
2389 internal-set-lisp-face-attribute. Initialize screen colors from
2390 initial_screen_colors[] when f->default_face_done_p is zero,
2391 instead of depending on being called with default-frame-alist as
2392 the alist argument.
2393
2394 * xfaces.c (update_face_from_frame_parameter): Move out of
2395 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2396 with HAVE_WINDOW_SYSTEM.
2397
2398 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2399 to menu-bar-mode, if not set in the frame parameters or in
2400 default-frame-alist.
2401
2402 * w32console.c (sys_tputs): Adjust argument list to prototype in
2403 term.c.
2404
2405 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
2406
2407 * lisp.h (memory_warnings): Fix prototype.
2408
2409 * cm.h (evalcost): Fix prototype.
2410
2411 * cm.c (evalcost): Fix arg type.
2412
2413 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2414
2415 * term.c (term_clear_mouse_face, Fidentity):
2416 * syssignal.h (signal_handler_t):
2417 * lisp.h (memory_warnings):
2418 * coding.h (preferred_coding_system):
2419 * cm.h (evalcost):
2420 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2421
2422 2010-07-02 Eli Zaretskii <eliz@gnu.org>
2423
2424 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2425 from prototypes.
2426
2427 * msdos.h (load_pixmap): Don't define away.
2428
2429 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2430
2431 * lisp.h:
2432 * atimer.h: Remove define for P_.
2433
2434 * alloc.c: Remove __P and P_ from .c and .m files.
2435 * atimer.c:
2436 * buffer.c:
2437 * callint.c:
2438 * category.c:
2439 * charset.c:
2440 * chartab.c:
2441 * cm.c:
2442 * coding.c:
2443 * composite.c:
2444 * data.c:
2445 * dired.c:
2446 * dispnew.c:
2447 * doc.c:
2448 * editfns.c:
2449 * emacs.c:
2450 * eval.c:
2451 * fileio.c:
2452 * filelock.c:
2453 * fns.c:
2454 * font.c:
2455 * fontset.c:
2456 * frame.c:
2457 * ftfont.c:
2458 * ftxfont.c:
2459 * gmalloc.c:
2460 * gtkutil.c:
2461 * image.c:
2462 * indent.c:
2463 * intervals.c:
2464 * keyboard.c:
2465 * keymap.c:
2466 * lread.c:
2467 * marker.c:
2468 * menu.c:
2469 * minibuf.c:
2470 * print.c:
2471 * process.c:
2472 * scroll.c:
2473 * search.c:
2474 * sound.c:
2475 * strftime.c:
2476 * syntax.c:
2477 * sysdep.c:
2478 * term.c:
2479 * terminal.c:
2480 * textprop.c:
2481 * unexalpha.c:
2482 * w32console.c:
2483 * w32fns.c:
2484 * w32font.c:
2485 * w32menu.c:
2486 * w32term.c:
2487 * w32uniscribe.c:
2488 * window.c:
2489 * xdisp.c:
2490 * xfaces.c:
2491 * xfns.c:
2492 * xfont.c:
2493 * xftfont.c:
2494 * xmenu.c:
2495 * xselect.c:
2496 * xterm.c: Likewise.
2497
2498 Remove P_ and __P macros.
2499 * atimer.h: Remove P_ and __P macros.
2500 * buffer.h:
2501 * category.h:
2502 * ccl.h:
2503 * character.h:
2504 * charset.h:
2505 * cm.h:
2506 * coding.h:
2507 * composite.h:
2508 * dispextern.h:
2509 * disptab.h:
2510 * dosfns.h:
2511 * font.h:
2512 * fontset.h:
2513 * frame.h:
2514 * gtkutil.h:
2515 * indent.h:
2516 * intervals.h:
2517 * keyboard.h:
2518 * keymap.h:
2519 * lisp.h:
2520 * macros.h:
2521 * md5.h:
2522 * menu.h:
2523 * msdos.h:
2524 * nsterm.h:
2525 * puresize.h:
2526 * region-cache.h:
2527 * syntax.h:
2528 * syssignal.h:
2529 * systime.h:
2530 * termhooks.h:
2531 * w32font.h:
2532 * w32term.h:
2533 * widget.h:
2534 * window.h:
2535 * xgselect.h:
2536 * xsettings.h:
2537 * xterm.h: Likewise.
2538
2539 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2540
2541 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2542
2543 Cleanup old code.
2544 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2545 * syssignal.h: Remove code for Lynx, not supported anymore.
2546 * vm-limit.c: Remove unused code the depends on emacs not being
2547 defined and NO_LIM_DATA being defined.
2548 * mem-limits.h: Remove dead code.
2549
2550 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2551
2552 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2553
2554 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2555 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2556
2557 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2558 parameters, they are already absolute.
2559
2560 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2561 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
2562
2563 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2564
2565 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2566 Update FRAME_TOOLBAR_HEIGHT.
2567
2568 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2569 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
2570
2571 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
2572
2573 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2574 check default-frame-alist.
2575
2576 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2577
2578 * process.c (create_process): Avoid using invalid file descriptors.
2579
2580 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2581
2582 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2583
2584 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2585 Improve documentation. Return font regardless of use_system_font.
2586 (syms_of_xsettings): Improve documentation for font-use-system-font.
2587
2588 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
2589
2590 * xfaces.c (realize_face): Garbage the frame if a face is removed
2591 (Bug#6593).
2592
2593 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2594
2595 * keyboard.c: Remove duplicate <setjmp.h>.
2596 (read_key_sequence): Remove volatile qualifiers.
2597
2598 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2599
2600 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2601 (struct glyph_row): New members left_fringe_offset and
2602 right_fringe_offset.
2603
2604 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2605 specially.
2606 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2607 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2608
2609 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
2610 Take account of bitmap offset.
2611 (draw_window_fringes): Take account of window vscroll.
2612 (update_window_fringes): Likewise. Extend top-aligned top indicator
2613 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2614 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2615 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2616
2617 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2618
2619 * w32fns.c (Qtooltip): Declare.
2620 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2621
2622 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2623
2624 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2625 grab on just Press (Bug#6499).
2626
2627 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
2628
2629 * frame.c (Qtooltip): New var.
2630 (delete_frame): Use it. Fix faulty if statement. Don't update
2631 mode line for tooltip frames. Suggested by Martin Rudalics.
2632
2633 * xfns.c (x_create_tip_frame):
2634 * w32fns.c (x_create_tip_frame): Use it.
2635
2636 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
2637
2638 * xftfont.c (xftfont_open): Check font width one by one also when
2639 spacing is dual.
2640
2641 * ftfont.c (ftfont_open): Ditto.
2642
2643 2010-06-30 Glenn Morris <rgm@gnu.org>
2644
2645 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2646
2647 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2648
2649 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2650 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2651 * s/darwin.h (SYSTEM_MALLOC):
2652 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2653
2654 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2655
2656 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2657 (ns_get_screen): Don't assign integer to f.
2658 (Fx_display_color_cells): Declarations before statements.
2659
2660 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2661
2662 * xfns.c (x_default_font_parameter): Remove got_from_system
2663 (Bug#6526).
2664
2665 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2666 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2667 defines based on what configure finds.
2668
2669 * xterm.c (XTflash): Use gtk_widget_get_window.
2670 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2671 gtk_adjustment_get_page_size.
2672 (handle_one_xevent): Use gtk_widget_get_mapped.
2673 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2674 messages.
2675
2676 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2677
2678 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2679 HAVE_GTK_FILE_SELECTION_NEW.
2680
2681 * gtkutil.c (xg_display_open, xg_display_close): Remove
2682 HAVE_GTK_MULTIDISPLAY, it is always defined.
2683 (xg_display_open): Return type is void.
2684 (gtk_widget_set_has_window)
2685 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2686 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2687 (gtk_adjustment_set_page_increment)
2688 (gtk_adjustment_get_step_increment): #define these if not found
2689 by configure.
2690 (remove_submenu): New define based on Gtk+ version.
2691 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2692 gtk_widget_get_window.
2693 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2694 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2695 (create_dialog): Use gtk_dialog_get_action_area and
2696 gtk_dialog_get_content_area.
2697 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2698 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2699 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2700 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2701 g_object_ref and g_object_unref.
2702 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2703 gtk_widget_get_sensitive.
2704 (xg_update_submenu): Use remove_submenu.
2705 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2706 properties instead to get old x and y position.
2707 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2708 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2709 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
2710 (xg_get_tool_bar_widgets): New function.
2711 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2712 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2713 (toolbar_set_orientation): New #define based on if configure
2714 finds gtk_orientable_set_orientation.
2715 (xg_create_tool_bar): Call toolbar_set_orientation.
2716 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2717 instead of gtk_box_pack_start_defaults.
2718
2719 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
2720
2721 * cmds.c (Fdelete_backward_char): Move into Lisp.
2722
2723 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2724
2725 * s/freebsd.h (BSD4_2): Remove redundant definition.
2726 bsd-common.h defines it already.
2727
2728 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
2729
2730 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2731 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2732 tool-bar-mode, which are now set using these X resources at
2733 startup, to determine the defaults (Bug#2249).
2734
2735 * w32fns.c (Fx_create_frame):
2736 * nsfns.m (Fx_create_frame): Likewise.
2737
2738 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2739
2740 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
2741
2742 * gtkutil.c (xg_update_scrollbar_pos):
2743 Avoid C99 mid-block variable declaration.
2744
2745 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2746
2747 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2748
2749 * gtkutil.h (xg_show_scroll_bar): Remove.
2750
2751 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2752 if height is less than scroll bar min size.
2753 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2754
2755 * xfns.c (x_default_font_parameter): Try to open font from system
2756 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2757
2758 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
2759
2760 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2761
2762 2010-06-20 Eli Zaretskii <eliz@gnu.org>
2763
2764 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2765 most-positive-fixnum, be extra accurate when scrolling window
2766 start, to avoid missing the cursor line.
2767
2768 2010-06-19 Eli Zaretskii <eliz@gnu.org>
2769
2770 * xdisp.c (try_scrolling): Compute the limit for searching point
2771 in forward scroll from scroll_max, instead of an arbitrary limit
2772 of 10 screen lines. See
2773 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2774 and
2775 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2776 for details.
2777
2778 2010-06-16 Glenn Morris <rgm@gnu.org>
2779
2780 * editfns.c (Fbyte_to_string): Pacify compiler.
2781
2782 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2783
2784 * lread.c (read1): Phase out old-style backquotes a bit more.
2785
2786 2010-06-12 Eli Zaretskii <eliz@gnu.org>
2787
2788 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2789 bidimirror.h.
2790
2791 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2792
2793 * bidi.c (bidi_initialize): Remove explicit initialization of
2794 bidi_type_table; include biditype.h instead. Don't support
2795 entries whose second codepoint is zero. Initialize bidi_mirror_table.
2796 (bidi_mirror_char): Use bidi_mirror_table.
2797
2798 * biditype.h: New file.
2799
2800 * bidimirror.h: New file.
2801
2802 * window.c (syms_of_window): Doc fix (bug#6409).
2803
2804 2010-06-12 Romain Francoise <romain@orebokech.com>
2805
2806 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2807 ediff-hook.
2808
2809 2010-06-10 Glenn Morris <rgm@gnu.org>
2810
2811 * editfns.c (Fbyte_to_string): Pacify compiler.
2812
2813 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2814
2815 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2816
2817 * alloc.c (Fmake_byte_code): Don't access undefined argument
2818 (Bug#6517).
2819
2820 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
2821
2822 * xdisp.c (next_element_from_image): Ensure that after-strings are
2823 read the next time we hit handle_stop (Bug#1336).
2824
2825 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2826
2827 * lread.c (read1): Signal error if #s is not followed by paren.
2828
2829 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
2830
2831 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2832
2833 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2834
2835 2010-06-15 Glenn Morris <rgm@gnu.org>
2836
2837 * editfns.c (Fbyte_to_string): Pacify compiler.
2838
2839 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2840
2841 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2842 Check `object's type before accessing its guts.
2843
2844 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2845
2846 * s/usg5-4.h: Fix previous change.
2847 Suggested by Lawrence Mitchell <wence@gmx.li>
2848
2849 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2850
2851 * minibuf.c (Fall_completions): Add more checks.
2852
2853 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
2854
2855 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2856
2857 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2858
2859 * lread.c (X_OK): Remove, unused.
2860
2861 * dispnew.c: Remove obsolete comment.
2862
2863 Remove INCLUDED_FCNTL.
2864 * xterm.c (INCLUDED_FCNTL):
2865 * callproc.c (INCLUDED_FCNTL):
2866 * alloc.c (INCLUDED_FCNTL):
2867 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2868 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2869
2870 2010-06-07 Martin Rudalics <rudalics@gmx.at>
2871
2872 * window.c (Fselect_window): Move `record_buffer' up to the
2873 beginning of this function, so the buffer gets recorded
2874 even if the selected window does not change.
2875 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2876
2877 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
2878
2879 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2880 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2881
2882 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2883
2884 Remove BSTRING related code, all platforms define it.
2885 * s/usg5-4.h (BSTRING): Remove definition.
2886 * s/template.h (BSTRING):
2887 * s/msdos.h (BSTRING):
2888 * s/ms-w32.h (BSTRING):
2889 * s/hpux10-20.h (BSTRING):
2890 * s/gnu-linux.h (BSTRING):
2891 * s/darwin.h (BSTRING):
2892 * s/cygwin.h (BSTRING):
2893 * s/bsd-common.h (BSTRING):
2894 * s/aix4-2.h (BSTRING): Likewise.
2895 * sysdep.c: Remove code depending on BSTRING not being defined.
2896
2897 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
2898
2899 Remove obsolete macro BASE_LEADING_CODE_P.
2900 * character.h (BASE_LEADING_CODE_P): Remove.
2901 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2902 * buffer.c (Fset_buffer_multibyte):
2903 * indent.c (scan_for_column, compute_motion):
2904 * insdel.c (count_combining_before, count_combining_after):
2905 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2906
2907 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
2908
2909 Turn `directory-sep-char' into a noop.
2910
2911 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2912 (DIRECTORY_SEP): Define unconditionally.
2913
2914 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2915
2916 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2917 call dostounix_filename directly.
2918
2919 * fileio.c (CORRECT_DIR_SEPS): Remove.
2920 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2921 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2922 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2923 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2924
2925 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2926 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2927
2928 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2929
2930 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2931 (Bug#6346)
2932
2933 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2934
2935 * ccl.c (Fccl_program_p): Fix typo in docstring.
2936
2937 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2938
2939 Move UNEXEC definition to autoconf.
2940 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2941 * s/sol2-10.h (UNEXEC):
2942 * s/irix6-5.h (UNEXEC):
2943 * s/hpux10-20.h (UNEXEC):
2944 * s/gnu-linux.h (UNEXEC):
2945 * s/darwin.h (UNEXEC):
2946 * s/cygwin.h (UNEXEC):
2947 * s/bsd-common.h (UNEXEC):
2948 * s/aix4-2.h (UNEXEC):
2949 * m/alpha.h (UNEXEC): Likewise.
2950 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2951
2952 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2953
2954 Remove obsolete pre-unicode2 macros.
2955 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2956 * composite.c (composition_reseat_it):
2957 * data.c (Faset):
2958 * fns.c (Ffillarray):
2959 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2960 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2961
2962 2010-06-03 Juri Linkov <juri@jurta.org>
2963
2964 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2965 (Fswitch_to_buffer): Remove unused variable `err'.
2966
2967 2010-06-03 Glenn Morris <rgm@gnu.org>
2968
2969 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2970
2971 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2972 now that AH_BOTTOM does it.
2973
2974 * m/hp800.h (HAVE_ALLOCA):
2975 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2976
2977 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2978 Remove NOT_C_CODE tests, it is always true now.
2979
2980 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2981
2982 Fix config.h includes.
2983 * xsettings.c:
2984 * xgselect.c:
2985 * nsterm.m:
2986 * nsselect.m:
2987 * nsimage.m:
2988 * nsfont.m:
2989 * nsfns.m:
2990 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2991 other files do.
2992
2993 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2994
2995 * s/sol2-6.h: Remove obsolete comments.
2996
2997 Remove unnecessary alloca.h includes.
2998 * keymap.c: Do not include alloca.h, config.h does that.
2999 * sysdep.c: Likewise. Do not define fwrite, not used.
3000
3001 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3002
3003 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3004 the HAVE_TERMIO where it belongs (bug#6149).
3005
3006 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3007
3008 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3009 of bug#6305).
3010
3011 2010-05-30 Eli Zaretskii <eliz@gnu.org>
3012
3013 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3014 state is always cached (bug#6306).
3015
3016 2010-05-29 Eli Zaretskii <eliz@gnu.org>
3017
3018 Fix cursor motion in bidi-reordered continued lines.
3019 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3020 only after finding point's row. Fix the logic. Rewrite the loop
3021 over continuation lines in bidi-reordered buffers. Return
3022 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3023 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3024
3025 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
3026
3027 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3028
3029 2010-05-28 Kenichi Handa <handa@m17n.org>
3030
3031 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3032 Don't sheck SPEC if it is nil.
3033 (font_list_entities): Call font_delete_unmatched if
3034 Vface_ignored_fonts is non-nil. (Bug#6287)
3035
3036 2010-05-28 Glenn Morris <rgm@gnu.org>
3037
3038 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3039
3040 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
3041
3042 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3043 whether to trash.
3044 (internal_delete_file, Frename_file): Callers changed.
3045 (delete_by_moving_to_trash): Doc fix.
3046 (Fdelete_directory_internal): Don't move to trash.
3047
3048 * callproc.c (delete_temp_file):
3049 * buffer.c (Fkill_buffer): Callers changed.
3050
3051 * lisp.h: Update prototype.
3052
3053 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
3054
3055 * xdisp.c (redisplay_window): After redisplay, check if point is
3056 still valid before setting it (Bug#6177).
3057
3058 2010-05-27 Glenn Morris <rgm@gnu.org>
3059
3060 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3061 Convert comments to Makefile format.
3062
3063 * Makefile.in (bootstrap-clean): No more Makefile.c.
3064
3065 2010-05-26 Glenn Morris <rgm@gnu.org>
3066
3067 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3068 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3069
3070 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3071 Remove.
3072 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3073
3074 2010-05-26 Kenichi Handa <handa@m17n.org>
3075
3076 * composite.c (composition_compute_stop_pos): Fix condition for
3077 backward scanning.
3078
3079 2010-05-25 Glenn Morris <rgm@gnu.org>
3080
3081 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3082 Move before TEMACS_LDFLAGS.
3083 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3084 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3085
3086 * Makefile.in (NOT_C_CODE): No longer define.
3087 (config.h): No longer include.
3088
3089 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3090 variables it may reference.
3091
3092 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3093 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3094
3095 2010-05-25 Kenichi Handa <handa@m17n.org>
3096
3097 * dispextern.h (struct composition_it): New members rule_idx and
3098 charpos.
3099
3100 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3101 that the character positions of IT point the last character of the
3102 current grapheme cluster.
3103 (next_element_from_composition): Don't change character positions
3104 of IT.
3105 (append_composite_glyph): Set glyph->charpos to
3106 it->cmp_it.charpos.
3107
3108 * composite.c (autocmp_chars): Change the first argument to RULE,
3109 and try composition with RULE only.
3110 (composition_compute_stop_pos): Record the index number of the
3111 composition rule in CMP_IT->rule_idx.
3112 (composition_reseat_it): Call autocmp_chars repeatedly until the
3113 correct rule of the composition is found.
3114 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3115 is at the last character of the current grapheme cluster when
3116 CMP_IT->reversed_p is nonzero.
3117
3118 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3119
3120 * editfns.c (Fbyte_to_string): New function.
3121
3122 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3123
3124 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3125 Suggested by Masatake YAMATO <yamato@redhat.com>.
3126
3127 2010-05-23 Eli Zaretskii <eliz@gnu.org>
3128
3129 * dispextern.h (init_iterator): Sync prototype with changed definition.
3130
3131 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3132
3133 * s/netbsd.h: If terminfo is found, use it in preference to
3134 termcap. (Bug#6190) [Backport from trunk]
3135
3136 2010-05-19 Eli Zaretskii <eliz@gnu.org>
3137
3138 Redesign and reimplement bidi-aware edge positions of glyph rows.
3139
3140 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3141 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3142 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3143 and maxpos members instead of start.pos and end.pos, respectively.
3144
3145 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3146 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3147 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
3148 (try_window_reusing_current_matrix, try_window_id):
3149 Use ROW->minpos rather than ROW->start.pos.
3150 (init_from_display_pos, init_iterator): Use EMACS_INT for
3151 character and byte positions.
3152 (find_row_edges): Rename from find_row_end. Accept additional
3153 arguments for minimum and maximum buffer positions seen by
3154 display_line for this row. Don't use iterator to find the
3155 position following the maximum one; instead, increment the
3156 position found by display_line directly. Fix logic; eol_pos
3157 should be tested before the rest. Handle the case of characters
3158 delivered from display vector (bug#6036). Fix tests related to
3159 it->method. Handle the truncated_on_right_p rows.
3160 (RECORD_MAX_MIN_POS): New macro.
3161 (display_line): Use it to record the minimum and maximum buffer
3162 positions for glyphs in the row being assembled. Record the
3163 position of the newline that terminates the line. If word wrap is
3164 in effect, restore minimum and maximum positions seen up to the
3165 wrap point, when iterator returns to it.
3166 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3167 row and cursor not already at point. Restore original pre-bidi
3168 code for unidirectional buffers.
3169
3170 * dispnew.c (increment_row_positions, check_matrix_invariants):
3171 Increment and check row->start.pos and row->end.pos, in addition
3172 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3173
3174 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3175 Display truncated_on_left_p and truncated_on_right_p flags.
3176 Formatting fixes.
3177 (pmtxrows): Display the ordinal number of each row. Don't display
3178 rows beyond the last one.
3179
3180 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3181 it is not copied by bidi_copy_it.
3182
3183 2010-05-22 Eli Zaretskii <eliz@gnu.org>
3184
3185 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3186 (Bug#6237)
3187
3188 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
3189
3190 * image.c (Fimage_flush): Rename from image-refresh.
3191
3192 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
3193
3194 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3195 just one window.
3196
3197 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3198 (clear_image_cache): If the number of cached images is unusually
3199 large, decrease the cache eviction delay (Bug#6230).
3200
3201 2010-05-21 Glenn Morris <rgm@gnu.org>
3202
3203 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3204 Move these rules to ns.mk.
3205 * ns.mk: New file.
3206
3207 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3208
3209 * Makefile.in (CANNOT_DUMP): New, set by configure.
3210 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3211
3212 2010-05-20 Juri Linkov <juri@jurta.org>
3213
3214 * fileio.c (Fdelete_file): Change interative spec to use
3215 `read-file-name' like in `find-file-read-args' where the default
3216 value is `default-directory' instead of `buffer-file-name'.
3217 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3218
3219 2010-05-20 Kevin Ryde <user42@zip.com.au>
3220
3221 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3222 (Voverriding_terminal_local_map, Vsystem_key_alist)
3223 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3224
3225 2010-05-20 Glenn Morris <rgm@gnu.org>
3226
3227 * Makefile.in (DEPDIR): New constant.
3228 (DEPFLAGS): Set with configure, not cpp.
3229 (MKDEPDIR): New, set by configure.
3230 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3231 (clean): Use $DEPDIR.
3232 (deps_frag): Include from configure.
3233 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3234 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3235
3236 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3237 reallocation of the cache. (Bug#6210)
3238
3239 2010-05-19 Glenn Morris <rgm@gnu.org>
3240
3241 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3242
3243 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3244 (GNULIB_VAR): Remove.
3245 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3246
3247 * m/ibms390x.h (LINKER):
3248 * m/macppc.h (LINKER) [GNU_LINUX]:
3249 * s/aix4-2.h (ORDINARY_LINK):
3250 * s/cygwin.h (LINKER):
3251 * s/darwin.h (ORDINARY_LINK):
3252 * s/gnu.h (ORDINARY_LINK):
3253 * s/netbsd.h (LINKER):
3254 * s/usg5-4.h (ORDINARY_LINK):
3255 Move to configure.
3256
3257 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3258
3259 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
3260
3261 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3262 prevent stack overflow if number of arguments is too large
3263 (Bug#6214).
3264
3265 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
3266
3267 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3268
3269 2010-05-18 Glenn Morris <rgm@gnu.org>
3270
3271 * s/gnu-linux.h: Combine two conditionals.
3272
3273 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
3274 $(POST_ALLOC_OBJ).
3275
3276 * Makefile.in (RALLOC_OBJ): New, set by configure.
3277 (rallocobj): Replace with the previous variable.
3278 (otherobj): Use $RALLOC_OBJ.
3279
3280 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3281 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3282
3283 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3284 (gmallocobj, vmlimitobj): Replace with previous two variables.
3285 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3286
3287 2010-05-17 Glenn Morris <rgm@gnu.org>
3288
3289 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3290 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3291
3292 2010-05-16 Glenn Morris <rgm@gnu.org>
3293
3294 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3295
3296 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3297
3298 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3299 trailing "/".
3300
3301 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3302 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3303
3304 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3305 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3306 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3307 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3308 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3309
3310 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3311 Remove ${STARTFLAGS}, nothing ever sets it.
3312
3313 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3314
3315 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3316
3317 2010-05-16 Glenn Morris <rgm@gnu.org>
3318
3319 * Makefile.in (LIBX_BASE): Always define.
3320
3321 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3322
3323 * Makefile.in (LIBXT): Always define.
3324
3325 2010-05-15 Glenn Morris <rgm@gnu.org>
3326
3327 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
3328
3329 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3330 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3331
3332 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
3333
3334 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
3335 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3336
3337 * emacs.c (main): Initialize initial-environment and
3338 process-environment before generating from env, not after.
3339
3340 Handle --version reasonably in CANNOT_DUMP configuration.
3341 * emacs.c (emacs_version, emacs_copyright): New string variables.
3342 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3343 (syms_of_emacs): Defvar them, and initialize them from the C
3344 string variables.
3345 (main): If initialization hasn't been done, print initial version
3346 info from the C strings, instead of starting an interactive session.
3347
3348 2010-05-15 Eli Zaretskii <eliz@gnu.org>
3349
3350 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3351 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
3352 (bidi_paragraph_init): Remove redundant assertion that we are at
3353 the beginning of a line after call to bidi_find_paragraph_start.
3354
3355 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3356 (syms_of_xdisp): Defsubr it.
3357
3358 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3359
3360 * Makefile.in: Fix MSDOS-related comments.
3361
3362 2010-05-15 Glenn Morris <rgm@gnu.org>
3363
3364 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3365 (really-lwlib, really-oldXMenu): Always define.
3366 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3367
3368 * Makefile.in: Simplify cpp conditional.
3369
3370 * Makefile.in (${ns_appdir}): Simplify using umask.
3371
3372 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3373
3374 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3375
3376 * eval.c (specbind): Remove left-over duplicate test.
3377 Disallow let-binding frame-local vars. Add comment.
3378
3379 2010-05-14 Eli Zaretskii <eliz@gnu.org>
3380
3381 Make the cache of bidi iterator states dynamically allocated.
3382 * bidi.c (bidi_cache_shrink): New function.
3383 (bidi_init_it): Call it.
3384 (bidi_cache_iterator_state): Enlarge the cache if needed.
3385
3386 * bidi.c (bidi_move_to_visually_next): Rename from
3387 bidi_get_next_char_visually. All callers changed.
3388
3389 2010-05-14 Kenichi Handa <handa@m17n.org>
3390
3391 * dispextern.h (struct composition_it): New member reversed_p.
3392
3393 * composite.c (composition_compute_stop_pos): Search backward if
3394 ENDPOS < CHARPOS.
3395 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3396 Set CMP_IT->reversed_p.
3397 (composition_update_it): Pay attention to CMP_IT->reversed_p.
3398
3399 * xdisp.c (set_iterator_to_next):
3400 Call composition_compute_stop_pos with negative ENDPOS if we are
3401 scanning backward. Call composition_compute_stop_pos if scan
3402 direction is changed.
3403 (next_element_from_buffer): Call composition_compute_stop_pos with
3404 negative ENDPOS if we are scanning backward.
3405 (next_element_from_composition): Pay attention to
3406 IT->cmp_it.reversed_p.
3407
3408 2010-05-14 Kenichi Handa <handa@m17n.org>
3409
3410 * font.c (font_range): Return the range for the font found at first.
3411
3412 2010-05-14 Glenn Morris <rgm@gnu.org>
3413
3414 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3415
3416 * Makefile.in (mktime, X11, register): Move undefs to configure.
3417
3418 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3419 (MSDOS_X_OBJ): New variable.
3420 (MSDOS_SUPPORT_REAL): New constant.
3421 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3422 (obj): Use MSDOS_X_OBJ.
3423 (lisp): Use MSDOS_SUPPORT as a variable.
3424
3425 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3426 (GPM_MOUSE_SUPPORT): Now it's a constant.
3427 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3428 not cpp.
3429
3430 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
3431 (ns_appresdir): Remove, unused.
3432
3433 * Makefile.in (SHELL): Move outside cpp section.
3434
3435 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3436
3437 2010-05-13 Glenn Morris <rgm@gnu.org>
3438
3439 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3440 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3441
3442 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3443 HAVE_WINDOW_SYSTEM must be too.
3444
3445 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3446 (lisp): Remove WINNT_SUPPORT.
3447
3448 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3449 Let configure set these variables (to empty) in this case as well.
3450
3451 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3452 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3453
3454 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3455 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3456 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3457 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3458 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
3459 the values output by configure.
3460 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3461
3462 2010-05-12 Glenn Morris <rgm@gnu.org>
3463
3464 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3465 (LINKER_WAS_SPECIFIED): Remove.
3466
3467 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3468 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3469 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3470 * s/cygwin.h (LIB_GCC):
3471 * s/freebsd.h (LIB_GCC):
3472 * s/gnu-linux.h (LIB_GCC):
3473 * s/msdos.h (LIB_GCC):
3474 * s/netbsd.h (LIB_GCC):
3475 Move to configure.
3476
3477 2010-05-11 Karel Klic <kklic@redhat.com>
3478
3479 * ftfont.c: Fix incorrect parentheses of #if condition for
3480 definining M17N_FLT_USE_NEW_FEATURE.
3481
3482 2010-05-11 Glenn Morris <rgm@gnu.org>
3483
3484 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3485 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3486
3487 2010-05-10 Eli Zaretskii <eliz@gnu.org>
3488
3489 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3490 unibyte buffers. See
3491 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3492
3493 2010-05-10 Glenn Morris <rgm@gnu.org>
3494
3495 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3496 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3497 (LIBES): Use LIBS_SYSTEM as a variable.
3498 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3499 * s/aix4-2.h (LIBS_SYSTEM):
3500 * s/freebsd.h (LIBS_SYSTEM):
3501 * s/hpux10-20.h (LIBS_SYSTEM):
3502 * s/sol2-6.h (LIBS_SYSTEM):
3503 * s/unixware.h (LIBS_SYSTEM):
3504 Move to configure.
3505
3506 * s/aix4-2.h (MAIL_USE_LOCKF):
3507 * s/bsd-common.h (MAIL_USE_FLOCK):
3508 * s/darwin.h (MAIL_USE_FLOCK):
3509 * s/gnu-linux.h (MAIL_USE_FLOCK):
3510 * s/irix6-5.h (MAIL_USE_FLOCK):
3511 * s/template.h (MAIL_USE_FLOCK):
3512 Move to configure.
3513
3514 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
3515
3516 * Version 23.2 released.
3517
3518 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
3519
3520 * composite.c (autocmp_chars): Save point as marker before calling
3521 auto-composition-function (Bug#5984).
3522
3523 * lisp.h (restore_point_unwind): Add prototype.
3524
3525 * fileio.c (restore_point_unwind): Remove static attribute.
3526
3527 2010-05-08 Kenichi Handa <handa@m17n.org>
3528
3529 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3530 new feature of libotf and m17n-flt.
3531 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3532 Call OTF_check_features even if no specific feature is given.
3533 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3534 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3535 that OUT is NULL. Use OTF_drive_gsub_with_log and
3536 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3537 OTF_drive_gpos.
3538 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
3539 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3540 Setup mflt_enable_new_feature and mflt_try_otf.
3541
3542 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3543
3544 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3545
3546 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3547 box and toolbar (Bug #6139).
3548 (xg_create_tool_bar): Remove comment (Bug #6139).
3549 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3550 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3551
3552 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
3553
3554 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3555 Update dependencies.
3556
3557 2010-05-08 Eli Zaretskii <eliz@gnu.org>
3558
3559 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3560 R2L lines.
3561
3562 2010-05-08 Glenn Morris <rgm@gnu.org>
3563
3564 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3565
3566 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3567 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3568 (termcapobj): Replace with TERMCAP_OBJ.
3569 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3570 (LIBES): Use LIBS_TERMCAP as a variable.
3571
3572 * s/freebsd.h (osreldate.h): No longer include, since this file
3573 does not use __FreeBSD_version any more.
3574
3575 * s/aix4-2.h (TERMINFO):
3576 * s/cygwin.h (TERMINFO):
3577 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3578 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3579 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3580 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3581 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3582 * s/irix6-5.h (TERMINFO):
3583 * s/netbsd.h (LIBS_TERMCAP):
3584 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3585 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3586 * s/usg5-4.h (TERMINFO):
3587 Move to configure.
3588
3589 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3590
3591 * eval.c (unbind_to): Don't unbind a local binding into the global
3592 binding when the local binding disappeared. Inversely, don't unbind
3593 a global binding into a newly created local binding.
3594 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3595 can specify the frame to use, when applicable. Adjust callers.
3596
3597 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
3598 Stefan Monnier <monnier@iro.umontreal.ca>
3599
3600 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3601
3602 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3603
3604 * w32fns.c: Include w32.h.
3605 (Fw32_shell_execute): Decode the error message before passing it
3606 to `error'. (Bug#6126)
3607
3608 * msdos.c (dos_set_window_size):
3609 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3610 instead of `XSYMBOL (foo)->value'.
3611
3612 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3613
3614 Fix the MS-DOS build, broken by autoconfiscation.
3615
3616 * Makefile.in: Don't use Make-style comments past the "start of
3617 cpp stuff" line.
3618 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3619
3620 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3621 edited directly by msdos/sed1v2.inp).
3622
3623 2010-05-07 Glenn Morris <rgm@gnu.org>
3624
3625 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3626 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3627 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3628 move out of cpp section.
3629 * s/freebsd.h (LD_SWITCH_SYSTEM):
3630 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3631 * s/netbsd.h (LD_SWITCH_SYSTEM):
3632 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3633
3634 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3635
3636 Define LIB_STANDARD and START_FILES using autoconf.
3637 * s/usg5-4.h (LIB_STANDARD):
3638 * s/netbsd.h (START_FILES):
3639 * s/irix6-5.h (LIB_STANDARD):
3640 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3641 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3642 * s/freebsd.h (START_FILES):
3643 * s/darwin.h (START_FILES):
3644 * s/cygwin.h (START_FILES):
3645 * s/aix4-2.h (LIB_STANDARD):
3646 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3647 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3648 autoconf, not cpp.
3649
3650 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3651
3652 Remove NEED_BSDTTY and NEED_UNISTD_H.
3653 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3654 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3655 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3656 <sys/ptyio.h> and <unistd.h>.
3657
3658 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3659
3660 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3661 * s/gnu.h (START_FILES): Remove empty definition.
3662
3663 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3664
3665 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3666
3667 2010-05-06 Glenn Morris <rgm@gnu.org>
3668
3669 * Makefile.in (CPP, LN_S): Remove unused variables.
3670
3671 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3672
3673 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3674
3675 2010-05-05 Lawrence Mitchell <wence@gmx.li>
3676
3677 * m/sparc.h: Fix typo in earlier change.
3678
3679 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3680
3681 Misc tweaks.
3682 * eval.c (Fdefvaralias): Remove unintended nested if.
3683 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3684
3685 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
3686
3687 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3688
3689 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3690
3691 Remove BSD_PGRPS.
3692 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3693 * s/gnu-linux.h (BSD_PGRPS): Remove.
3694 * term.c (dissociate_if_controlling_tty):
3695 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3696 (init_sys_modes, reset_sys_modes):
3697 * emacs.c (main):
3698 * callproc.c (Fcall_process, child_setup): Remove code depending
3699 on BSD_PGRPS.
3700
3701 Remove POSIX_SIGNALS.
3702 * s/usg5-4.h (POSIX_SIGNALS):
3703 * s/netbsd.h (POSIX_SIGNALS):
3704 * s/msdos.h (POSIX_SIGNALS):
3705 * s/ms-w32.h (POSIX_SIGNALS):
3706 * s/hpux11.h (POSIX_SIGNALS):
3707 * s/gnu.h (POSIX_SIGNALS):
3708 * s/gnu-linux.h (POSIX_SIGNALS):
3709 * s/freebsd.h (POSIX_SIGNALS):
3710 * s/darwin.h (POSIX_SIGNALS):
3711 * s/cygwin.h (POSIX_SIGNALS):
3712 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3713 * s/unixware.h:
3714 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3715 * process.c (create_process):
3716 * syssignal.h:
3717 * sysdep.c (wait_for_termination, init_signals):
3718 * process.c (create_process):
3719 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3720 remove all code that assumes the contrary.
3721
3722 2010-05-04 Glenn Morris <rgm@gnu.org>
3723
3724 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3725 variable.
3726 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3727 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3728 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3729 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3730 LD_SWITCH_SYSTEM_tmp.
3731 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3732 New variables, set by configure.
3733
3734 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3735 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3736 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3737 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3738 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3739
3740 * s/aix4-2.h (C_SWITCH_SYSTEM):
3741 * m/alpha.h (C_SWITCH_MACHINE):
3742 Move to configure.in.
3743 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3744 New variables, set by configure.
3745 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3746 $c_switch_machine and $c_switch_system.
3747
3748 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3749
3750 * s/hpux10-20.h (LIB_STANDARD): New definition.
3751 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3752 on it, not used anymore.
3753
3754 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
3755
3756 * eval.c (internal_condition_case_n): Rename from
3757 internal_condition_case_2.
3758 (internal_condition_case_2): New function.
3759
3760 * xdisp.c (safe_call): Use internal_condition_case_n.
3761
3762 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3763 (internal_delete_file, Frename_file): Callers changed.
3764
3765 * buffer.c (Fkill_buffer):
3766 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3767
3768 * lisp.h: Update prototypes.
3769
3770 2010-05-03 Glenn Morris <rgm@gnu.org>
3771
3772 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3773 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3774 (LIBXT): Set with configure, not cpp.
3775 (LIBX): Remove.
3776 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3777
3778 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3779
3780 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3781 The FreeBSD is not needed, the default works, Solaris version is
3782 not needed, and the remaining case is not supported by configure.
3783
3784 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3785
3786 * xsmfns.c (CHDIR_OPT): New define.
3787 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3788 restarting emacs.
3789
3790 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3791 shut_down_emacs.
3792
3793 * emacs.c (USAGE1): Mention --chdir.
3794 (main): Handle --chdir.
3795 (standard_args): Add --chdir.
3796 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3797 #5552).
3798
3799 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3800
3801 Remove LD_SWITCH_MACHINE.
3802 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3803 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3804
3805 Clean up IRIX code.
3806 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3807 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3808
3809 Clean up AIX code.
3810 * m/ibmrs6000.inp: Remove file, unused.
3811 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3812 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3813 definition ...
3814 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3815
3816 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3817 unused.
3818
3819 2010-05-01 Eli Zaretskii <eliz@gnu.org>
3820
3821 Emulate POSIX_SIGNALS on MS-Windows.
3822
3823 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3824 (SIG_SETMASK, SIG_UNBLOCK): Define.
3825
3826 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3827 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3828 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3829
3830 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3831 New stubs.
3832
3833 Miscellaneous fixes of bidi display.
3834
3835 * xdisp.c (find_row_end): New function, refactored from display_line.
3836 (display_line): Use it.
3837 (extend_face_to_end_of_line): In almost-filled rows, extend only
3838 if the row is R2L and not continued.
3839 (display_line): Fix prepending of truncation glyphs to R2L rows.
3840 Preserve overlay and string info in row->end.
3841 (insert_left_trunc_glyphs): Support addition of left truncation
3842 glyphs to R2L rows.
3843 (set_cursor_from_row): Don't place cursor on the vertical border
3844 glyph between adjacent windows. Fix a crash when a display string
3845 is continued to the next line. Don't return zero if cursor was
3846 found by `cursor' property of a display string.
3847 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3848 test for that explicitly.
3849
3850 2010-05-01 Glenn Morris <rgm@gnu.org>
3851
3852 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3853 for clarity.
3854 (OTHER_OBJ): Remove.
3855 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3856 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3857
3858 2010-05-01 Karel Klíč <kklic@redhat.com>
3859
3860 * fileio.c (Ffile_selinux_context): Context functions may return null.
3861
3862 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3863
3864 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
3865
3866 2010-04-30 Glenn Morris <rgm@gnu.org>
3867
3868 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3869 (OTHER_OBJ): Define as a separate variable, for clarity.
3870
3871 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3872
3873 * xsettings.c: include limits.h and update file comment.
3874
3875 2010-04-30 Glenn Morris <rgm@gnu.org>
3876
3877 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3878 Set with configure, not cpp.
3879 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3880
3881 * Makefile.in (mallocobj): Remove.
3882 (otherobj): Simplify using @OTHER_OBJ@.
3883
3884 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3885 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3886 Don't bother making nsgui.h dependency platform-specific.
3887
3888 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3889
3890 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3891
3892 * process.c (read_process_output, exec_sentinel): Don't burp if the
3893 sentinel/filter kills the current buffer (bug#6060).
3894
3895 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
3896 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3897 Remove unused var `args'.
3898 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3899 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3900 * doc.c (store_function_docstring): Use XSETCAR.
3901
3902 2010-04-28 Glenn Morris <rgm@gnu.org>
3903
3904 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3905 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3906
3907 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3908
3909 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3910 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3911
3912 * Makefile.in (FONT_OBJ): New, set by configure.
3913 (FONT_DRIVERS): Use $FONT_OBJ.
3914
3915 * Makefile.in (LIBXMU): Set with configure, not cpp.
3916 * s/aix4-2.h (LIBXMU):
3917 * s/hpux10-20.h (LIBXMU):
3918 Remove definition, now set in configure.
3919
3920 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3921
3922 * m/amdx86-64.h [i386]: Move this test to configure.in.
3923
3924 2010-04-27 Glenn Morris <rgm@gnu.org>
3925
3926 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3927 * s/unixware.h (NEED_LIBW): Remove definition.
3928
3929 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3930 (TOOLKIT_LIBW): New, set by configure.
3931 (@X_TOOLKIT_TYPE@): No longer define it.
3932
3933 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3934 (MOTIF_LIBW): Set with configure, not cpp.
3935 * s/aix4-2.h (LIB_MOTIF):
3936 * s/gnu-linux.h (LIB_MOTIF):
3937 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3938
3939 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3940
3941 Reduce CPP usage.
3942 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3943 (obj): Use autoconf for unexec instead of cpp.
3944 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3945 definitions and undefs. Inline definitions in the only user.
3946 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
3947
3948 2010-04-27 Glenn Morris <rgm@gnu.org>
3949
3950 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3951 since the defaults (set by the system file) are fine in most cases.
3952 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3953 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3954 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3955 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3956 Remove definitions, since they are set correctly in s/gnu-linux.h.
3957 * s/freebsd.h (START_FILES, LIB_STANDARD):
3958 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3959 * s/hpux10-20.h (START_FILES):
3960 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3961 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3962
3963 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3964 (MOTIF_LIBW): Use $LIBXP.
3965 (otherobj): Use $WIDGET_OBJ.
3966
3967 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3968
3969 * Makefile.in (LIBS_MACHINE): Remove, unused.
3970
3971 Use autoconf instead of cpp for LIB_MATH.
3972 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3973 * s/cygwin.h (LIB_MATH): Likewise.
3974 * Makefile.in (LIB_MATH): Do not define with cpp.
3975 (LIBES): Use autoconf for LIB_MATH.
3976
3977 2010-04-26 Kenichi Handa <handa@m17n.org>
3978
3979 * composite.c (Ffind_composition_internal): Fix the return value
3980 for an automatic composition.
3981
3982 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3983
3984 Remove all NO_ARG_ARRAY uses.
3985 * fns.c (concat2, concat3, nconc2):
3986 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3987 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3988 * m/xtensa.h (NO_ARG_ARRAY):
3989 * m/template.h (NO_ARG_ARRAY):
3990 * m/sparc.h (NO_ARG_ARRAY):
3991 * m/sh3.h (NO_ARG_ARRAY):
3992 * m/mips.h (NO_ARG_ARRAY):
3993 * m/macppc.h (NO_ARG_ARRAY):
3994 * m/iris4d.h (NO_ARG_ARRAY):
3995 * m/intel386.h (NO_ARG_ARRAY):
3996 * m/ibms390x.h (NO_ARG_ARRAY):
3997 * m/ibms390.h (NO_ARG_ARRAY):
3998 * m/ibmrs6000.h (NO_ARG_ARRAY):
3999 * m/ia64.h (NO_ARG_ARRAY):
4000 * m/hp800.h (NO_ARG_ARRAY):
4001 * m/arm.h (NO_ARG_ARRAY):
4002 * m/amdx86-64.h (NO_ARG_ARRAY):
4003 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4004
4005 2010-04-25 Eli Zaretskii <eliz@gnu.org>
4006
4007 * xdisp.c (display_line): Don't assume 2nd call to
4008 get_next_display_element cannot return zero. (Bug#6030)
4009 (iterate_out_of_display_property): New function, body from pop_it.
4010 (pop_it): Use it.
4011
4012 2010-04-24 Glenn Morris <rgm@gnu.org>
4013
4014 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4015 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4016 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4017 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4018
4019 2010-04-24 Eli Zaretskii <eliz@gnu.org>
4020
4021 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4022 use `get_next_display_element' and `set_iterator_to_next' to
4023 advance to the next character, when looking for the character that
4024 begins the next row.
4025
4026 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
4027 definition of "struct Lisp_Symbol".
4028
4029 2010-04-24 Glenn Morris <rgm@gnu.org>
4030
4031 * Makefile.in (CRT_DIR): New variable, set by configure.
4032 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4033 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4034
4035 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4036
4037 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4038
4039 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4040
4041 Remove redundant flags.
4042 * s/freebsd.h (C_SWITCH_SYSTEM):
4043 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4044 * s/netbsd.h (C_SWITCH_SYSTEM):
4045 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4046 of these.
4047
4048 Simplify m/intel386.h.
4049 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4050 user: ecrt0.c.
4051 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4052 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4053 the only user: s/unixware.h.
4054 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4055 from m/intel386.h.
4056 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4057 moved here from m/intel386.h.
4058
4059 * m/mips.h: Remove #if 0 code.
4060
4061 2010-04-23 Eli Zaretskii <eliz@gnu.org>
4062
4063 Fix display of composed characters from L2R scripts in bidi buffers.
4064 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4065 After advancing IT past the composition, resync the bidi iterator
4066 with IT's position. (Bug#5977)
4067
4068 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4069
4070 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4071 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4072
4073 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4074
4075 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4076
4077 2010-04-23 Eli Zaretskii <eliz@gnu.org>
4078
4079 Support `display' text properties and overlay strings in bidi buffers.
4080 * xdisp.c (pop_it): When the stack is popped after displaying
4081 from a string, bidi-iterate to exit from the text portion covered
4082 by the `display' property or overlay. (Bug#5988, bug#5920)
4083
4084 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4085
4086 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4087 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4088
4089 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4090 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4091
4092 Simplify STARTFILES definition.
4093 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4094 relying on Makefile.in to define it.
4095 * s/cygwin.h (START_FILES): Likewise.
4096 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4097
4098 Clean up Solaris code.
4099 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4100 (LIB_MOTIF): Remove, configure takes care of this.
4101 (NOT_USING_MOTIF): Remove, unused.
4102 * xrdb.c: Remove #if 0-ed #include.
4103 (SYSV): Remove conditional for old SysV.
4104 * sysdep.c (closedir): Remove conditional code for Solaris,
4105 Solaris has closedir.
4106
4107 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4108
4109 * xsettings.c (read_and_apply_settings): Check if current_font is
4110 NULL before strcmp (Bug#6001).
4111
4112 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4113
4114 Clean up HP-UX files.
4115 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4116 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4117 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4118 * s/hpux10-20.h: ... to the only user, here.
4119
4120 2010-04-21 Eli Zaretskii <eliz@gnu.org>
4121
4122 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4123 use buffer-local values of paragraph-start and paragraph-separate.
4124 <paragraph_start_re, paragraph_separate_re>: Rename from
4125 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4126 (Bug#5992)
4127
4128 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4129
4130 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4131 current_tool_bar_style are new.
4132 (store_config_changed_event): Rename from store_font_changed_event.
4133 (XSETTINGS_TOOL_BAR_STYLE): New define.
4134 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4135 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4136 HAVE_XFT.
4137 (something_changedCB): store_font_changed_event is now
4138 store_config_changed_event.
4139 (parse_settings): Rename from parse_xft_settings. Read
4140 non-xft xsettings outside #ifdef HAVE_XFT.
4141 (read_settings): Renamed from read_xft_settings.
4142 (apply_xft_settings): Take current settings as parameter. Do not
4143 call read_(xft)_settings.
4144 (read_and_apply_settings): New function.
4145 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4146 read_and_apply_settings if there are settings to be read.
4147 (init_xsettings): Renamed from init_xfd_settings.
4148 Call read_and_apply_settings unconditionally.
4149 (xsettings_initialize): Call init_xsettings.
4150 (Ftool_bar_get_system_style): New function.
4151 (syms_of_xsettings): Define Qmonospace_font_name and
4152 Qtool_bar_style. Initialize current_tool_bar_style to nil.
4153 defsubr Stool_bar_get_system_style. Fprovide on
4154 dynamic-setting.
4155 Move misplaced HAVE_GCONF
4156
4157 * xsettings.h (Ftool_bar_get_system_style): Declare.
4158
4159 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4160 Qtext, Qboth, Qboth_horiz are new.
4161 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4162 Vtool_bar_style, tool_bar_max_label_size.
4163
4164 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4165
4166 * keyboard.c: QClabel is new.
4167 (parse_tool_bar_item): Take out QClabel from tool bar items.
4168 Try to construct a label if ther is no QClabel.
4169 (syms_of_keyboard): Intern :label as QClabel.
4170
4171 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4172 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4173 New.
4174
4175 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4176 dynamic-setting.el.
4177
4178 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4179 (xg_make_tool_item, xg_show_toolbar_item): New function.
4180 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4181 Call xg_make_tool_item to make a tool bar item.
4182 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4183
4184 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4185 into account for toolbars.
4186
4187 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4188
4189 * data.c (make_blv): Declarations before code (Bug#5993).
4190
4191 2010-04-21 Glenn Morris <rgm@gnu.org>
4192
4193 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4194 Define using autoconf, not cpp.
4195 (LIBXSM): New variable, set by autoconf.
4196 (LIBXT): Use $LIBXSM.
4197
4198 2010-04-21 Dan Nicolaescu <local_user@dannlt>
4199
4200 Remove NOMULTIPLEJOBS, unused.
4201 * s/template.h (NOMULTIPLEJOBS):
4202 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4203
4204 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4205 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4206 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4207 detects -znocombreloc and passes it to the linker
4208 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4209
4210 2010-04-21 Glenn Morris <rgm@gnu.org>
4211
4212 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4213
4214 2010-04-21 Karel Klíč <kklic@redhat.com>
4215
4216 * Makefile.in (LIBSELINUX_LIBS): New.
4217 (LIBES): Add $LIBSELINUX_LIBS.
4218 * eval.c, lisp.h (call7): New function.
4219 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4220 (Ffile_selinux_context, Fset_file_selinux_context):
4221 New functions.
4222 (Fcopy_file): New parameter preserve-selinux-context.
4223 (Frename_file): Preserve selinux context when renaming by copy-file.
4224
4225 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
4226 Eli Zaretskii <eliz@gnu.org>
4227
4228 Don't depend on cm.c or termcap.c on Windows, use stubs.
4229 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4230 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4231 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4232 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4233 (sys_tputs, sys_tgetstr): New stubs.
4234 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4235 (tputs, tgetstr): New; define to sys_*.
4236
4237 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
4238
4239 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4240
4241 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4242
4243 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4244 Just signal a warning rather than an error when inside a let.
4245 (Fmake_variable_frame_local): Add the same test.
4246
4247 * font.c (syms_of_font): Make the style table vars read-only.
4248
4249 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4250 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4251
4252 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4253
4254 2010-04-20 Eli Zaretskii <eliz@gnu.org>
4255
4256 Fix R2L paragraph display on TTY.
4257
4258 * xdisp.c (unproduce_glyphs): New function.
4259 (display_line): Use it when produced glyphs are discarded from R2L
4260 glyph rows.
4261 (append_composite_glyph): In R2L rows, prepend the glyph rather
4262 than appending it.
4263
4264 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4265 rather than append it. Set up the resolved_level and bidi_type
4266 attributes of the appended glyph.
4267 (produce_special_glyphs): Mirror the backslash continuation
4268 character in R2L lines.
4269
4270 Implement display of R2L paragraphs in GUI sessions.
4271
4272 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4273 append_stretch_glyph.
4274 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4275 off-by-one error in computing x at end of text in the row.
4276 (append_stretch_glyph): In reversed row, prepend the glyph rather
4277 than append it. Set resolved_level and bidi_type of the glyph.
4278 (extend_face_to_end_of_line): If the row is reversed, prepend a
4279 stretch glyph whose width is such that the rightmost glyph will be
4280 drawn at the right margin of the window. Fix off-by-one error on
4281 TTY frames in testing whether a line needs face extension. Fix
4282 face extension at ZV. If this is the last glyph row, use
4283 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4284 region face.
4285 (set_cursor_from_row, display_line): Use
4286 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4287 row->continuation_lines_width.
4288 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4289 are at ZV. Fixes a crash when reseated to ZV by
4290 try_window_reusing_current_matrix.
4291 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4292 which happens with R2L glyph rows. Fixes a crash when inserting a
4293 character at end of an R2L line.
4294 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4295 treat them as having zero-width characters. Improve comments.
4296 Don't reverse pos_before and pos_after for reversed glyph rows.
4297 Set cursor.x to negative value when the cursor might be on the
4298 left fringe.
4299 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4300 left fringe, not the right one.
4301 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4302 (erase_phys_cursor): For reversed cursor_row, support cursor on
4303 the left fringe.
4304
4305 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4306 of continuation indicators on the fringes.
4307 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4308 left fringe.
4309
4310 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4311 draw cursor on the left fringe.
4312
4313 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4314 cursor on the left fringe.
4315
4316 * dispnew.c (update_text_area): Handle reversed desired rows when
4317 the cursor is on the left fringe.
4318 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4319 below, not by 0, for when the cursor is on the left fringe.
4320
4321 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4322
4323 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4324 widget is a scrollbar.
4325
4326 2010-04-20 Kenichi Handa <handa@m17n.org>
4327
4328 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4329 only when the arg CHARSET_LIST is nil.
4330
4331 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4332
4333 Make variable forwarding explicit rather the using special values.
4334 Basically, this makes the structure of buffer-local values and object
4335 forwarding explicit in the type of Lisp_Symbols rather than use
4336 special Lisp_Objects for that. This tends to lead to slightly more
4337 verbose code, but is more C-like, simpler, and makes it easier to make
4338 sure we handled all cases, among other things by letting the compiler
4339 help us check it.
4340 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4341 Removing forwarding objects.
4342 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4343 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4344 explicit rather than hiding them inside Lisp_Object "values".
4345 (XFWDTYPE): New macro.
4346 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4347 (XBUFFER_LOCAL_VALUE): Remove.
4348 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4349 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4350 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4351 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4352 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4353 Remove the Lisp_Misc_* header.
4354 (struct Lisp_Buffer_Local_Value): Redefine.
4355 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4356 (struct Lisp_Misc_Any): Add filler to get the right size.
4357 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4358 Lisp_Intfwd.
4359 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4360 (DEFVAR_KBOARD): Allocate a forwarding object.
4361 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4362 (let_shadows_global_binding_p): New function.
4363 (union Lisp_Val_Fwd): New type.
4364 (make_blv): New function.
4365 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4366 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4367 (swap_in_symval_forwarding, find_symbol_value, Fset)
4368 (let_shadows_buffer_binding_p, set_internal, default_value)
4369 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4370 (Fkill_local_variable, Fmake_variable_frame_local)
4371 (Flocal_variable_p, Flocal_variable_if_set_p)
4372 (Fvariable_binding_locus):
4373 * xdisp.c (select_frame_for_redisplay):
4374 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4375 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4376 * frame.c (store_frame_param):
4377 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4378 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4379 value structure.
4380 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4381 (clone_per_buffer_values): Only adjust markers into the current buffer.
4382 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4383 (Fbuffer_local_value, set_buffer_internal_1)
4384 (swap_out_buffer_local_variables):
4385 Adapt to the new symbol value structure.
4386 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4387 (defvar_per_buffer): Take a new arg for the fwd object.
4388 (buffer_lisp_local_variables): Return a proper alist (different fix
4389 for bug#4138).
4390 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4391 (Fgarbage_collect): Don't handle buffer_defaults specially.
4392 (mark_object): Handle new symbol value structure rather than the old
4393 special Lisp_Misc_* objects.
4394 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4395 * term.c (set_tty_color_mode):
4396 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4397 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4398 a buffer_local_flags.
4399 * print.c (print_object): Get rid of impossible forwarding objects.
4400
4401 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4402
4403 * bidi.c (bidi_get_type, bidi_get_category)
4404 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
4405 (bidi_type_of_next_char, bidi_level_of_next_char):
4406 Declare static. Use `INLINE' rather than `inline'.
4407
4408 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
4409
4410 * dired.c (Ffile_attributes): Fix typo in docstring.
4411
4412 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4413
4414 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4415 NSInteger (Bug#5811).
4416
4417 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4418
4419 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4420 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4421
4422 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4423
4424 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4425
4426 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
4427
4428 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4429 terminal frames (Bug#5837).
4430
4431 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4432
4433 * .gdbinit (xsubchartable): New command.
4434
4435 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4436
4437 * xdisp.c (display_line): Don't write beyond the last glyph row in
4438 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
4439 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4440 and
4441 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4442
4443 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4444
4445 * alloc.c (Fpurecopy): Hash-cons if requested.
4446 (syms_of_alloc): Update purify-flag docstring.
4447
4448 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4449
4450 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4451 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4452
4453 2010-04-17 Eli Zaretskii <eliz@gnu.org>
4454
4455 Fix a crash when an NSM character is inserted at BEGV.
4456
4457 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4458 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4459 NEUTRAL_B or UNKNOWN_BT.
4460
4461 2010-04-16 Eli Zaretskii <eliz@gnu.org>
4462
4463 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4464 other rows with cursor unless they are different from this row and
4465 this row is part of a continued line. (Bug#5943)
4466
4467 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4468
4469 * s/freebsd.h: Restore osreldate.h include.
4470 Suggested by Naohiro Aota.
4471
4472 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4473
4474 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4475
4476 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4477
4478 * s/cygwin.h: Avoid linking against static libgcc.
4479
4480 2010-04-15 Juri Linkov <juri@jurta.org>
4481
4482 * window.c: Add Qscroll_command.
4483 Remove Vscroll_preserve_screen_position_commands.
4484 (window_scroll_pixel_based, window_scroll_line_based): Check the
4485 `scroll-command' property on the last command instead of searching
4486 the last command in Vscroll_preserve_screen_position_commands.
4487 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4488 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4489 (scroll-preserve-screen-position): Doc fix.
4490 (Vscroll_preserve_screen_position_commands): Remove variable.
4491
4492 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4493
4494 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4495
4496 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4497
4498 Reduce cpp use in Makefile.in.
4499 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4500 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4501 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4502 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4503 (CRT0_COMPILE): Remove, inline it in the only user.
4504
4505 2010-04-14 Juri Linkov <juri@jurta.org>
4506
4507 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4508 `scroll-up-command' and `M-v' from `scroll-down' to
4509 `scroll-down-command'.
4510
4511 2010-04-14 Juri Linkov <juri@jurta.org>
4512
4513 * window.c (Vscroll_preserve_screen_position_commands): New variable
4514 with the default value as the list of Qscroll_down and Qscroll_up.
4515 (window_scroll_pixel_based, window_scroll_line_based): Search the
4516 last command in the list Vscroll_preserve_screen_position_commands
4517 instead of comparing with Qscroll_up and Qscroll_down.
4518
4519 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4520
4521 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4522 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4523 does that.
4524
4525 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4526 to zero.
4527
4528 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4529
4530 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4531
4532 Try to solve the problem of spurious EOF chars in long lines of text
4533 sent to interactive subprocesses.
4534 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4535 (system_process_attributes): Remove unused var `ttotal'.
4536 * process.c (send_process): Don't bother breaking long line with EOF
4537 chars when talking to ttys any more.
4538 (wait_reading_process_output): Output a warning when called in such
4539 a way that it could block without being interruptible.
4540
4541 Try to detect file modification within the same second.
4542 * buffer.h (struct buffer): New field modtime_size.
4543 * buffer.c (reset_buffer): Initialize it.
4544 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4545 (Fverify_visited_file_modtime): Check it.
4546 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4547 (Fset_visited_file_modtime): Set (or clear) it.
4548
4549 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4550
4551 * process.c (status_notify): Remove unused var `ro'.
4552
4553 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4554
4555 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4556 more than one visual (Bug#5938).
4557
4558 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4559
4560 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4561 Undefine.
4562
4563 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4564
4565 Remove C_SWITCH_SYSTEM_TEMACS.
4566 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4567 (malloc, realloc, free): Use emacs, not temacs for conditional
4568 definition.
4569
4570 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4571 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4572
4573 Use autoconf, not cpp for some variables.
4574 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4575 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4576 (ALL_CFLAGS): Use them as make variables.
4577 (really-lwlib, really-oldXMenu): Do not pass them.
4578
4579 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4580
4581 * xmenu.c (apply_systemfont_to_dialog): New.
4582 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4583
4584 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4585
4586 * process.c (exec_sentinel): Preserve current-buffer.
4587
4588 * process.c (read_process_output): Move the save-current-buffer to
4589 apply to both the filter and the non-filter branches.
4590
4591 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4592
4593 * s/msdos.h (UNEXEC): New definition.
4594
4595 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4596
4597 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4598 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4599
4600 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4601 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4602 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4603 TRY_WINDOW_CHECK_MARGINS.
4604
4605 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
4606 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4607 width only when it is for padding.
4608
4609 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4610
4611 * xfns.c (Fx_show_tip): Call try_window in a loop until
4612 fonts_changed_p is zero (Bug#2423).
4613
4614 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4615
4616 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4617 the end of TEXT_AREA. (Bug#5856)
4618
4619 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4620
4621 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4622 HAVE_GCONF.
4623
4624 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4625
4626 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4627 prev.orig_type, for resolving type of NSM. (Bug#5858)
4628
4629 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4630
4631 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4632 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4633 in current_font.
4634 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
4635 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4636 New functions.
4637 (syms_of_xsettings): Initialize current_font.
4638 defsubr Sfont_get_system_normal_font.
4639
4640 * xsettings.h (Ffont_get_system_normal_font)
4641 (xsettings_get_system_normal_font): Declare.
4642
4643 * xfns.c (extern xlwmenu_default_font): Remove.
4644 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4645 to xlwmenu.c.
4646
4647 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4648 menu items in UTF-8.
4649
4650 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4651 (apply_systemfont_to_menu): New function.
4652 (set_frame_menubar, create_and_show_popup_menu): Call
4653 apply_systemfont_to_menu.
4654
4655 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4656
4657 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4658 FRAME_LINE_TO_PIXEL_Y.
4659
4660 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4661 pixelwidth/height.
4662
4663 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4664
4665 Simplify code for HP machines.
4666 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4667 for GNU_LINUX, not needed.
4668 (UNEXEC, NEED_BSDTTY): Move definitions...
4669 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4670
4671 * m/iris4d.h (UNEXEC): Move definition ...
4672 * s/irix6-5.h (UNEXEC): ... here.
4673
4674 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4675
4676 * xfns.c (set_machine_and_pid_properties): New function.
4677 (Fx_create_frame): Call set_machine_and_pid_properties.
4678
4679 2010-04-03 Eli Zaretskii <eliz@gnu.org>
4680
4681 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4682 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4683 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4684
4685 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4686 in this function. (Bug#5703)
4687
4688 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
4689
4690 * nsterm.h: Fix last change.
4691
4692 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4693
4694 * m/intel386.h (NO_REMAP): Move definition ...
4695 * s/msdos.h (NO_REMAP): ... here.
4696
4697 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4698
4699 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4700 used on those platforms.
4701
4702 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4703
4704 Remove extern errno declarations.
4705 * xterm.c:
4706 * xrdb.c:
4707 * w32term.c:
4708 * unexec.c:
4709 * unexaix.c:
4710 * sysdep.c:
4711 * process.c:
4712 * lread.c:
4713 * keyboard.c:
4714 * floatfns.c:
4715 * filelock.c:
4716 * fileio.c:
4717 * emacs.c (main):
4718 * ecrt0.c:
4719 * dispnew.c:
4720 * callproc.c:
4721 * buffer.c: Remove errno extern declarations.
4722 * s/netbsd.h (NEED_ERRNO): Remove.
4723
4724 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4725
4726 Remove all uses of LIBX11_SYSTEM.
4727 * Makefile.in (LIBX11_SYSTEM): Remove.
4728 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4729 instead.
4730
4731 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4732
4733 Remove support for DJGPP v1.x (bug#5813).
4734
4735 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
4736 * s/msdos.h:
4737 * unexec.c (make_hdr, copy_text_and_data):
4738 * sysdep.c (wait_for_termination, sys_subshell):
4739 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
4740 (IT_set_terminal_modes, __write, _rename, gethostname)
4741 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4742 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4743 the value of __DJGPP__.
4744 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4745 compatibility code.
4746 * lread.c:
4747 * gmalloc.c (memalign):
4748 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4749 * emacs.c (main):
4750 * dosfns.c (init_dosfns):
4751 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4752
4753 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4754
4755 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4756 string with `cursor' property comes from an `after-string'
4757 overlay. (Bug#5816)
4758
4759 2010-04-01 Glenn Morris <rgm@gnu.org>
4760
4761 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4762 Define as Makefile variables.
4763 (LIBX): Use above variables rather than directly using autoconf.
4764
4765 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4766
4767 Clean up BSD_SYSTEM use.
4768 * xterm.c:
4769 * process.c:
4770 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4771 for including <sys/ioctl.h>.
4772 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4773 code is only used for MSDOS.
4774
4775 2010-03-31 Juri Linkov <juri@jurta.org>
4776
4777 * image.c: Add `Qextension_data'.
4778 (syms_of_image): Initialize and staticpro `Qextension_data'.
4779 (Fimage_metadata): Rename from `Fimage_extension_data'.
4780 (gif_load): Put GIF extension data to the property
4781 `Qextension_data'.
4782
4783 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4784
4785 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4786 * nsterm.h: Fix prototype.
4787
4788 2010-03-31 Eli Zaretskii <eliz@gnu.org>
4789
4790 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4791 trailing whitespace in right-to-left rows.
4792
4793 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4794
4795 Get rid of the direct_output optimizations.
4796 * keyboard.c (nonundocount): Remove extern declaration.
4797 (command_loop_1): Remove brittle optimisation for cheap and
4798 common operations.
4799 * xdisp.c (redisplay_internal): Don't bother checking
4800 redisplay_performed_directly_p any more.
4801 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4802 any more.
4803 * dispnew.c (redisplay_performed_directly_p)
4804 (direct_output_for_insert, direct_output_forward_char):
4805 * dispextern.h (redisplay_performed_directly_p)
4806 (direct_output_for_insert, direct_output_forward_char): Remove.
4807 * cmds.c (nonundocount): Make it static.
4808
4809 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
4810
4811 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4812
4813 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
4814
4815 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4816 invisible (Bug#5766).
4817
4818 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
4819
4820 * xdisp.c (x_consider_frame_title, update_window_cursor):
4821 Remove HAVE_NS conditionals.
4822 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
4823
4824 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4825 filename for the title.
4826 (ns_set_doc_edited): Do nothing if the selected window is a
4827 minibuffer window.
4828
4829 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4830 ns_set_doc_edited.
4831
4832 * nsterm.m: Remove unneeded prototype.
4833
4834 2010-03-31 Glenn Morris <rgm@gnu.org>
4835
4836 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4837 in the DOC file. (Bug#5336)
4838
4839 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4840
4841 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4842
4843 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4844
4845 * window.c (keys_of_window): Remove redundant/overridden bindings.
4846
4847 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4848
4849 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4850 Restore original behavior when the iterator is not bidi_p.
4851
4852 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4853
4854 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4855
4856 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4857
4858 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4859 are outside the range of cached character positions.
4860
4861 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
4862
4863 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4864
4865 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4866
4867 Initial support for bidirectional editing.
4868
4869 * Makefile.in (obj): Include bidi.o.
4870 (bidi.o): New target.
4871
4872 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4873 ($(BLD)/bidi.$(O)): New target.
4874
4875 * bidi.c: New file.
4876
4877 * buffer.h (struct buffer): New members bidi_display_reordering
4878 and bidi_paragraph_direction.
4879
4880 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4881 and bidi_paragraph_direction.
4882 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4883 and bidi-paragraph-direction.
4884 (Fbuffer_swap_text): Swap the values of
4885 bidi_display_reordering and bidi_paragraph_direction.
4886
4887 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4888 (bidi_type_t, bidi_dir_t): New types.
4889 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4890 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4891 prev_stop, base_level_stop, and eol_pos.
4892 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4893 (IT_STACK_SIZE): Enlarge to 5.
4894 (struct glyph_row): New member reversed_p.
4895 <string_buffer_position>: Update prototype.
4896 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4897 glyph_row if bidi_it.paragraph_dir == R2L.
4898 (struct glyph): New members resolved_level and bidi_type.
4899
4900 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4901 processing or buffer's direction is right-to-left.
4902 (prepare_desired_row): Preserve the reversed_p flag.
4903 (row_equal_p): Compare the reversed_p attributes as well.
4904
4905 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4906 bidi_init_it and set it->paragraph_embedding from the current
4907 buffer's value of bidi_paragraph_direction.
4908 (reseat_1): Initialize bidi_it.first_elt.
4909 (set_iterator_to_next, next_element_from_buffer): Use the value of
4910 paragraph_embedding to determine the paragraph direction.
4911 (set_iterator_to_next): Under bidi reordering, call
4912 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4913 new_paragraph flag is set in the bidi iterator.
4914 (next_element_from_buffer): If bidi_it.first_elt is set,
4915 initialize paragraph direction and find the first character to
4916 display in the visual order. If reseated to a middle of a line,
4917 prime the bidi iterator starting at the line's beginning. Handle
4918 the situation where we overstepped stop_charpos due to
4919 non-linearity of the bidi iteration. Likewise for when we back up
4920 beyond the previous stop_charpos. When moving across stop_charpos,
4921 record it in prev_stop.
4922 (display_line): Set row->end and it->start for the next row to the
4923 next character in logical order. Always extend reversed_p rows to
4924 the end of line, even if they end at ZV. Copy the reversed_p flag
4925 to the next glyph row. Keep calling set_cursor_from_row for
4926 bidi-reordered rows even if we already have a possible candidate
4927 for cursor position. Set row_end after all the row's glyphs have
4928 been produced, by looping over the glyphs. Record the position
4929 after EOL in it->eol_pos, and use it to set end_pos of the last
4930 row produced for a continued line.
4931 <Qright_to_left, Qleft_to_right>: New variables.
4932 (syms_of_xdisp): Initialize and staticpro them.
4933 (string_buffer_position_lim): New function.
4934 (string_buffer_position): Most of code moved to
4935 string_buffer_position_lim. Last argument and return value are
4936 now EMACS_INT; all callers changed.
4937 (set_cursor_from_row): Rewritten to support bidirectional text and
4938 reversed glyph rows.
4939 (text_outside_line_unchanged_p, try_window_id): Disable
4940 optimizations if we are reordering bidirectional text and the
4941 paragraph direction can be affected by the change.
4942 (append_glyph, append_composite_glyph)
4943 (produce_image_glyph, append_stretch_glyph): Set the
4944 resolved_level and bidi_type members of each glyph.
4945 (append_glyph): If the glyph row is reversed, prepend the glyph
4946 rather than appending it.
4947 (handle_stop_backwards): New function.
4948 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4949 (reseat): call handle_stop_backwards to recompute prev_stop and
4950 base_level_stop for the new position.
4951 (handle_invisible_prop): Under bidi iteration, skip invisible text
4952 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4953 paragraph direction. Update IT->prev_stop after skipping
4954 invisible text.
4955 (move_it_in_display_line_to): New variables prev_method
4956 and prev_pos. Compare for strict equality in
4957 BUFFER_POS_REACHED_P.
4958 (try_cursor_movement): Examine all the candidate rows that occlude
4959 point, to return the best match. If rows are bidi-reordered
4960 and point moved backwards, back up to the row that is not a
4961 continuation line, and start looking for a suitable row from
4962 there.
4963
4964 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4965 rather than appending, if the glyph_row's reversed_p flag is set.
4966 Set the resolved_level and bidi_type members of each glyph.
4967
4968 * .gdbinit (pbiditype): New command.
4969 (pgx): Use it to display bidi level and type of the glyph.
4970 (pitx): Display some bidi information about the iterator.
4971 (prowlims, pmtxrows): New commands.
4972
4973 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4974
4975 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4976 * s/usg5-4.h (LIBS_DEBUG):
4977 * s/irix6-5.h (C_DEBUG_SWITCH):
4978 * s/gnu-linux.h (LIBS_DEBUG):
4979 * s/darwin.h (LIBS_DEBUG):
4980 * s/bsd-common.h (LIBS_DEBUG):
4981 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4982 * m/iris4d.h (LIBS_DEBUG):
4983 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4984
4985 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4986 (LIBS_DEBUG): Remove definition.
4987
4988 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
4989
4990 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4991 Windows.
4992
4993 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4994
4995 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4996 `connect' (Bug#5723).
4997
4998 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
4999
5000 * process.c (Fmake_network_process): Call `select' for interrupted
5001 `connect' rather than creating new socket (Bug#5173).
5002
5003 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
5004
5005 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5006
5007 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5008
5009 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5010
5011 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5012
5013 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5014 XLoadQueryFont.
5015
5016 2010-03-24 Kenichi Handa <handa@m17n.org>
5017
5018 * coding.c (decode_coding_ccl): Fix previous change for the
5019 multibyte case.
5020 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5021 case that the output buffer is fullfilled.
5022 (encode_coding): Setup ccl program here.
5023
5024 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5025
5026 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5027
5028 Simplify LIBS_MACHINE definitions.
5029 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5030 * m/iris4d.h (LIBS_MACHINE): Likewise.
5031 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5032 * s/aix4-2.h (LIBS_SYSTEM): ... here.
5033 * s/netbsd.h: Remove commented out code.
5034
5035 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5036
5037 Remove dead code dealing with POSIX_SIGNALS.
5038 * atimer.c (set_alarm): Remove dead code, all USG systems define
5039 POSIX_SIGNALS.
5040 * data.c (arith_error): Likewise.
5041 * keyboard.c (input_available_signal, handle_user_signal)
5042 (interrupt_signal): Likewise.
5043 * process.c (sigchld_handler): Likewise.
5044 (create_process): Remove if 0 code. Remove HPUX conditional when
5045 !defined (POSIX_SIGNALS), it cannot be true.
5046 * syssignal.h: Remove USG5_4 and USG conditionals when
5047 !POSIX_SIGNALS, they cannot be true.
5048
5049 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5050 NO_SOCK_SIGIO, not used anymore.
5051
5052 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5053
5054 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5055 support vax on BSDs.
5056
5057 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5058 * s/aix4-2.h (ORDINARY_LINK): ... here.
5059
5060 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5061
5062 * Makefile.in (abs_builddir): Define.
5063 (bootstrap_exe): Use it.
5064 (VPATH): Use $(srcdir) instead of @srcdir@.
5065
5066 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5067
5068 * Makefile.in (bootstrap_exe): Use an absolute name.
5069
5070 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5071
5072 Remove support for old GNU/Linux using libc version 5.
5073 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5074 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5075
5076 Consolidate redundant definitions in s/bsd-common.h.
5077 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5078 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5079 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5080 doing it in all files that include this one.
5081 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5082 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5083 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5084 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5085 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5086 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5087 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5088 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5089 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5090
5091 Consolidate redundant definitions.
5092 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5093 it's undefined in all files that include this one.
5094 (POSIX_SIGNALS): Define here instead of doing it in all files that
5095 include this one.
5096 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5097 (POSIX_SIGNALS): Do not define.
5098 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5099 (POSIX_SIGNALS): Do not define.
5100 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5101 (POSIX_SIGNALS): Do not define.
5102
5103 Remove support for old UNIX System V systems.
5104 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5105 * s/usg-5-4-2.h: Remove.
5106
5107 Remove support for Solaris on PPC and for old versions.
5108 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5109 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5110 that cancel each other.
5111 * s/sol2-3.h:
5112 * s/sol2-4.h:
5113 * s/sol2-5.h: Remove.
5114 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5115 (NO_REMAP): Remove, unused.
5116 (UNEXEC): Move definition ...
5117 * s/aix4-2.h (UNEXEC): ... here.
5118
5119 * s/openbsd.h: Remove support for non-ELF and for systems that do
5120 not support shared libraries.
5121 * s/netbsd.h:
5122 * s/freebsd.h: Likewise.
5123
5124 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5125
5126 Remove non-working support for lynxos 3.0.
5127 * s/lynxos.h: Remove file.
5128
5129 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5130 COFF_BSD_SYMBOLS, nothing defines it anymore.
5131
5132 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5133
5134 Remove obsolete uses of HAVE_SHM.
5135 * emacs.c (standard_args):
5136 (Fdump_emacs):
5137 (syms_of_emacs): Remove code depending on HAVE_SHM.
5138
5139 * alloc.c: Remove HAVE_SHM dependent definition.
5140
5141 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5142
5143 2010-03-18 Glenn Morris <rgm@gnu.org>
5144
5145 * emacs.c (USAGE4): Hard-code bug address.
5146 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5147 (bug_reporting_address): Remove.
5148 (main): Don't call bug_reporting_address.
5149
5150 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5151 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5152
5153 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
5154
5155 * xfns.c (Fx_create_frame):
5156 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5157 on left.
5158
5159 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5160
5161 * editfns.c (Fformat): Account for string precision when computing
5162 field width (Bug#5710).
5163
5164 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
5165
5166 * xfns.c (Fx_create_frame): Set default to Qright.
5167
5168 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5169 all window systems.
5170
5171 2010-03-12 Eli Zaretskii <eliz@gnu.org>
5172
5173 These changes remove termcap.c from the build on Posix platforms.
5174 * Makefile.in (termcapobj): Move termcap.o from here...
5175 (MSDOS_OBJ): ...to here.
5176 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5177 now identical to when LIBS_TERMCAP is defined.
5178
5179 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5180
5181 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5182
5183 * config.in: Regenerated. (See top-level ChangeLog.)
5184
5185 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
5186
5187 * Branch for 23.2.
5188
5189 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5190
5191 Cleanup setup of gl_state in various parts of the code.
5192 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5193 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5194 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5195 (skip_chars):
5196 * regex.c (regex_compile): Use it.
5197 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5198 it's now set in regex_compile when/if we need it.
5199
5200 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5201
5202 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5203 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5204 (QUIT): Use it to consolidate code and remove redundancy.
5205 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5206
5207 * regex.c (regex_compile): Setup gl_state as well.
5208
5209 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5210 (in_classes): Use CONSP before XCAR/XCDR.
5211
5212 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
5213
5214 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5215 definitions, so that keyboard macros are correctly handled
5216 (Bug#5481).
5217
5218 2010-03-02 Eli Zaretskii <eliz@gnu.org>
5219
5220 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5221 text that could be relocated inside the call to emacs_mule_char.
5222 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5223 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5224
5225 2010-03-02 Kenichi Handa <handa@m17n.org>
5226
5227 * character.c (parse_str_as_multibyte): Fix handling of the
5228 multibyte form of raw-bytes.
5229 (str_as_multibyte): Likewise.
5230
5231 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5232 form of raw-bytes.
5233
5234 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
5235
5236 * charset.c (load_charset_map_from_file)
5237 (load_charset_map_from_vector): Zero out allocated
5238 charset_map_entries before using them.
5239
5240 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5241
5242 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5243
5244 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
5245
5246 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5247 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
5248
5249 2010-02-26 Kenichi Handa <handa@m17n.org>
5250
5251 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5252
5253 * xdisp.c (reseat_to_string): Fix previous change.
5254
5255 2010-02-26 David Reitter <david.reitter@gmail.com>
5256
5257 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5258 Lisp_Object (Bug#4736).
5259
5260 2010-02-25 Kenichi Handa <handa@m17n.org>
5261
5262 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5263
5264 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5265
5266 * xterm.c (XTflash): Move declarations before statements.
5267
5268 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5269 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5270 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5271 (xg_create_tool_bar): Remove unused variables.
5272 (x_wm_set_size_hint): Move declarations before statements.
5273 (xg_create_frame_widgets): Remove variable grav.
5274
5275 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
5276
5277 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5278
5279 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5280
5281 * term.c (fatal): Add a final \n if needed (bug#5596).
5282
5283 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
5284
5285 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5286
5287 2010-02-18 Glenn Morris <rgm@gnu.org>
5288
5289 * callint.c (Finteractive): Doc fix.
5290
5291 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5292
5293 * coding.c (record_conversion_result):
5294 Handle CODING_RESULT_INSUFFICIENT_DST.
5295 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5296 memory allocation error.
5297
5298 2010-02-17 Kenichi Handa <handa@m17n.org>
5299
5300 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5301 Fix for the case that the output buffer is fullfilled.
5302 (decode_coding): Setup ccl program here. Keep looping when the
5303 decoder stopped because the output buffer is
5304 fullfilled (bug#5534).
5305
5306 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5307
5308 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5309
5310 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
5311 bug #5571.
5312 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
5313 overdrawn.
5314
5315 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5316
5317 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5318 doing_interact here.
5319 (ice_connection_closed): New function.
5320 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5321 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5322 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5323 returns I/O error.
5324 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5325 bug #5512.
5326
5327 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
5328
5329 * nsfont.m (nsfont_open): The system's value for the font descent
5330 is negative, so round it down to avoid clipping.
5331
5332 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
5333
5334 * charset.c (load_charset_map_from_file)
5335 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
5336 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
5337
5338 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
5339
5340 * charset.c (load_charset_map_from_file): Allocate large
5341 charset_map_entries structure on the heap rather than the stack.
5342 (Bug#5526).
5343
5344 2010-01-31 Kenichi Handa <handa@m17n.org>
5345
5346 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
5347 size in NAME is invalid, return -1 (Bug#5396).
5348
5349 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
5350
5351 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5352 <deactivated@gmail.com> (Bug#3605).
5353
5354 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
5355
5356 * fileio.c (Frename_file): Correctly rename symlinks to
5357 directories (Bug#5496).
5358
5359 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5360
5361 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5362
5363 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5364
5365 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5366
5367 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
5368
5369 * frame.c (DEFAULT_ROWS): Change default to 35.
5370
5371 * xfns.c (x_default_font_parameter): Change default XFT font to
5372 monospace-10 (Bug#3643).
5373
5374 2010-01-29 Eli Zaretskii <eliz@gnu.org>
5375
5376 * w32inevt.c (key_event): Remove unnecessary comparison of
5377 event->uChar.AsciiChar with 128.
5378
5379 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
5380
5381 * fileio.c (Frename_file): Fix last change (Bug#5487).
5382
5383 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5384
5385 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5386
5387 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5388
5389 * xfns.c (Fx_create_frame): Remove window size matching code from
5390 2010-01-15.
5391 (x_get_current_desktop, x_get_desktop_workarea): Remove.
5392
5393 2010-01-27 Jason Rumney <jasonr@gnu.org>
5394
5395 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
5396 (key_event): Use unicode for characters 128 and higher (Bug#4567).
5397
5398 2010-01-27 Kenichi Handa <handa@m17n.org>
5399
5400 * regex.c (analyse_first): Fix setting of fastmap for unibyte
5401 pattern string (Bug#4209).
5402
5403 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
5404
5405 * fileio.c (Frename_file): Call copy-directory and
5406 delete-directory for directories, in order to handle cross-device
5407 renaming (Bug#3353).
5408
5409 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5410
5411 * xfns.c (Fx_create_frame): If frame height is too big, try
5412 sizes 24 and 10. Bug #3643.
5413
5414 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5415
5416 Try and fix bug#788, hopefully for real this time.
5417 * keymap.c (shadow_lookup): Add `remap' arg.
5418 (describe_map, describe_vector): Update calls to shadow_lookup.
5419 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5420 `remapped' so this flag is applicable to `sequence'. Be careful to
5421 perform remapping during shadow_lookup check of remapped_sequences.
5422
5423 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5424
5425 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5426 png_check_sig, which has been removed in libpng 1.4.
5427
5428 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5429
5430 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5431 lacks this header file).
5432
5433 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5434
5435 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5436 as in Emacs 22.
5437
5438 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5439
5440 * lisp.h (make_pure_string): String pointer arg now points to const.
5441
5442 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5443 args now point to const.
5444
5445 2010-01-22 Eli Zaretskii <eliz@gnu.org>
5446
5447 * lread.c (Fload): Don't treat files without .elc extension as
5448 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5449 them. (bug#5303)
5450
5451 2010-01-20 Kenichi Handa <handa@m17n.org>
5452
5453 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5454 treat the source as actual byte sequence.
5455
5456 2010-01-19 Alan Mackenzie <acm@muc.de>
5457
5458 Fix spurious before-change-functions invocation from (insert ?\n).
5459 * textprop.c (set_text_properties): Rename parameter
5460 `signal_after_change_p' to `coherent_change_p', and make the
5461 invocation of `modify_region' conditional on it.
5462
5463 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5464
5465 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5466 for debug purpose.
5467 (syms_of_xsettings): Declare xft-settings.
5468
5469 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
5470
5471 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5472
5473 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5474
5475 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5476
5477 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
5478
5479 * emacs.c (standard_args): Adjust arg priorities to reflect how
5480 they are processed in startup.el.
5481
5482 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5483
5484 * Makefile.in (lisp, shortlisp): Update.
5485
5486 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5487
5488 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5489 code, link the new kboard into all_kboard before running Lisp code,
5490 and protect the new terminal with GCPRO (Bug#5365).
5491 (x_term_init): Remove unused var `atom'.
5492 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5493
5494 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5495
5496 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5497 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5498 to find out usable size of the desktop. Don't make frames larger than
5499 this. Bug #3643.
5500
5501 2010-01-15 Kenichi Handa <handa@m17n.org>
5502
5503 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5504
5505 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
5506
5507 * nsterm.m (Qnone): Define.
5508
5509 * nsfns.m (Qnone): Move definition to nsterm.m.
5510
5511 2010-01-14 Kenichi Handa <handa@m17n.org>
5512
5513 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5514 systems.
5515
5516 2010-01-14 Kenichi Handa <handa@m17n.org>
5517
5518 Make auto-composition work on all buffers even if they are
5519 fundamental mode.
5520
5521 * composite.c (Vauto_composition_mode): New variable.
5522 (composition_compute_stop_pos): Check Vauto_composition_mode
5523 instead of Vauto_composition_function.
5524 (composition_adjust_point, Ffind_composition_internal): Likewise.
5525 (syms_of_composite): Declare Lisp variable
5526 "auto-composition-mode" here.
5527
5528 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
5529
5530 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5531 during call to vendor-specific-keysyms (Bug#5365).
5532
5533 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5534
5535 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5536 Call SIGNAL_THREAD_CHECK (Bug#5333).
5537
5538 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5539 Call SIGNAL_THREAD_CHECK.
5540
5541 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5542
5543 Try to fix bug#5314. This is probably not the final word, tho.
5544 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5545 recent-auto-save-p as a side-effect.
5546 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5547 * buffer.c (Fkill_buffer, reset_buffer):
5548 * editfns.c (Fsubst_char_in_region):
5549 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5550 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5551
5552 2010-01-13 Kenichi Handa <handa@m17n.org>
5553
5554 Display buffer name, etc. in mode line by composing correctly.
5555
5556 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5557 STRING is not nil.
5558 (display_mode_element): Adjust for the change of
5559 decode_mode_spec and display_line.
5560 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5561 (display_string): Handle the case that STRING is non-null and
5562 LISP_STRING is not nil.
5563
5564 * xterm.c (x_draw_composite_glyph_string_foreground):
5565 Pay attention to s->face->overstrike.
5566
5567 * composite.c (composition_reseat_it): Don't check PT if STRING is
5568 non nil.
5569
5570 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5571
5572 * keyboard.c (read_char): Don't apply previous change when current
5573 buffer is unchanged by command execution.
5574
5575 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5576
5577 * keyboard.c (read_char): Return after executing from special map.
5578
5579 2010-01-12 Glenn Morris <rgm@gnu.org>
5580
5581 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5582 bug-gnu-emacs rather than emacs-pretest-bug.
5583
5584 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
5585
5586 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5587 initializing the Lisp variables that depend on them.
5588
5589 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5590
5591 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5592 Clear areas that will not be updated after change of menu bar lines.
5593 Clear the menu bar window's current matrix when the window gets empty.
5594
5595 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
5596
5597 * intervals.h, textprop.c (extend_property_ranges): Return value
5598 and args changed. Discard properties that begin at or after the
5599 new end (Bug#5306).
5600
5601 * editfns.c (Fformat): Caller changed.
5602
5603 * nsterm.m (ns_set_default_prefs): Delete function.
5604 (syms_of_nsterm): Initialize ns_command_modifier,
5605 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5606 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5607
5608 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5609 position (Bug#4040).
5610
5611 2010-01-09 Eli Zaretskii <eliz@gnu.org>
5612
5613 * editfns.c (Ffloat_time): Doc fix.
5614
5615 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5616
5617 * xfns.c (Fx_create_frame): Don't create frame larger than display
5618 by default bug#3643.
5619
5620 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5621
5622 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5623 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5624 windows above internal border.
5625
5626 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5627 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5628 windows above internal border.
5629
5630 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5631 tool bar windows specially.
5632
5633 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5634
5635 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5636 specially.
5637 (XTflash): Take account of menu bar height.
5638
5639 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5640 specially.
5641
5642 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5643
5644 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5645 also be true before we can return early (bug #5339).
5646
5647 2010-01-06 David Reitter <david.reitter@gmail.com>
5648
5649 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5650 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5651 (Bug#3233).
5652
5653 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5654
5655 * font.c (font_open_entity): Enable chache and call cached_font_ok
5656 for the driver if defined.
5657 (QCuser_spec): New symbol.
5658 (font_spec_from_name): Save name as user-spec.
5659 (font_load_for_lface): Keep user-spec instead of name.
5660 (font_open_by_name): Save name as user-spec.
5661 (syms_of_font): Initialize QCuser_spec.
5662 (font_clear_prop): Clear name if it exists in font (bug#5157).
5663
5664 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5665 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5666 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5667
5668 * font.h (struct font_driver): Add cached_font_ok.
5669
5670 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5671
5672 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5673
5674 * xterm.c (x_new_font): Move code for setting rows/cols before
5675 resizing ...
5676 (x_set_window_size): ... to here. Bug #2568.
5677
5678 * gtkutil.c (xg_clear_under_internal_border): New function.
5679 (xg_frame_resized, xg_frame_set_char_size):
5680 Call xg_clear_under_internal_border.
5681 (xg_update_scrollbar_pos): Clear under old scroll bar position.
5682
5683 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
5684
5685 * keyboard.c (read_key_sequence): Catch keyboard switch after
5686 making a new tty frame (Bug#5095).
5687
5688 2010-01-05 Kenichi Handa <handa@m17n.org>
5689
5690 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5691
5692 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5693
5694 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5695 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5696 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5697
5698 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
5699
5700 * dbusbind.c (xd_add_watch): Improve debug message.
5701 (xd_remove_watch): Improve debug message. If DATA is the session
5702 bus, unset D-Bus session environment.
5703 (Fdbus_init_bus): Pass the bus as argument to
5704 dbus_connection_set_watch_functions. (Bug#5283)
5705
5706 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
5707
5708 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5709
5710 * lread.c (syms_of_lread): Make it clearer that these are the
5711 names of loaded files (Bug#5068).
5712
5713 * eval.c (run_hook_with_args): Handle the case where the global
5714 value has the obsolete single-function form (Bug#5026).
5715
5716 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
5717
5718 * minibuf.c (Fall_completions): Minor optimization.
5719
5720 2009-12-26 Eli Zaretskii <eliz@gnu.org>
5721
5722 * .gdbinit (pgx): Fix display of composite glyphs.
5723 Display cmp.from and cmp.to as well.
5724 (pitx): Fix last change.
5725
5726 2009-12-25 Kenichi Handa <handa@m17n.org>
5727
5728 * composite.h (composition_adjust_point): Update prototype.
5729
5730 * composite.c (composition_reseat_it): Don't make a composition
5731 spanning over point.
5732 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5733 composable characters.
5734 (composition_adjust_point): New arg NEW_PT. Callers changed.
5735
5736 * keyboard.c (command_loop_1): Force redisplay if the last point
5737 was within a composition.
5738 (adjust_point_for_property): Don't adjust point for automatic
5739 composition when called after buffer modification.
5740
5741 2009-12-19 Eli Zaretskii <eliz@gnu.org>
5742
5743 * .gdbinit (pitx): Don't use enum names, use their values.
5744 Remove reference to non-existing value GET_FROM_COMPOSITION.
5745 (pgx): Don't use enum names, use their values.
5746 (pitmethod): New helper command.
5747 (pitx): Use it to display iteration method.
5748 (pgrowit): New command.
5749
5750 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5751
5752 Update dependencies in Makefile.in.
5753
5754 * Makefile.in (alloc.o): Depend on termhooks.h.
5755 (atimer.o): Depend on blockinput.h.
5756 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5757 and frame.h.
5758 (callint.o): Depend on systime.h, coding.h, and composite.h.
5759 (callproc.o): Depend on buffer.h.
5760 (casefiddle.o): Don't depend on charset.h.
5761 (casetab.o): Depend on character.h.
5762 (ccl.o): Depend on composite.h.
5763 (chartab.o): Depend on ccl.h.
5764 (cm.o): Depend on dispextern.h.
5765 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5766 (coding.o): Don't depend on $(INTERVALS_H).
5767 (composite.o): Don't depend on dispextern.h explicitly (it's in
5768 $(INTERVALS_H)). Depend on ccl.h.
5769 (data.o): Depend on systime.h, coding.h, composite.h,
5770 dispextern.h, font.h, and ccl.h.
5771 (dired.o): Depend on composite.h.
5772 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5773 composite.h (it's in $(INTERVALS_H)).
5774 (doc.o): Depend on systime.h, coding.h, and composite.h.
5775 (editfns.o): Don't depend explicitly on dispextern.h.
5776 (emacs.o): Depend on frame.h and coding.h.
5777 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5778 (fileio.o): Depend on frame.h and commands.h. Don't depend
5779 explicitly on dispextern.h.
5780 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5781 composite.h.
5782 (fns.o): Don't depend on termhooks.h.
5783 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5784 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5785 coding.h, $(INTERVALS_H), window.h, xterm.h.
5786 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5787 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5788 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5789 fontset.h, ccl.h, and ftfont.h.
5790 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5791 (gtkutil.o): Depend on dispextern.h and composite.h.
5792 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5793 termhooks.h, and ccl.h.
5794 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5795 (intervals.o): Depend on systime.h and coding.h.
5796 (keyboard.o): Depend on composite.h and coding.h.
5797 (keymap.o): Depend on coding.h and frame.h.
5798 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5799 (macros.o): Depend on systime.h, coding.h, and composite.h.
5800 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5801 and atimer.h.
5802 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5803 dispextern.h explicitly.
5804 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5805 Don't depend explicitly on dispextern.h and composite.h.
5806 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5807 (regex.o): Don't depend on charset.h.
5808 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5809 (search.o): Don't depend explicitly on composite.h.
5810 (sound.o): Depend on atimer.h and systime.h.
5811 (syntax.o): Don't depend explicitly on composite.h.
5812 (sysdep.o): Depend on coding.h and composite.h.
5813 (term.o): Depend on xterm.h and buffer.h.
5814 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5815 (textprop.o): Don't depend on dispextern.h explicitly.
5816 (undo.o): Depend on dispextern.h.
5817 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5818 dispextern.h and composite.h explicitly.
5819 (xdisp.o): Depend on ccl.h.
5820 (xfaces.o): Depend on coding.h and ccl.h.
5821 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5822 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5823 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5824 ftfont.h.
5825 (xgselect.o): New dependency.
5826 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5827 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5828 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5829 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5830 (xsmfns.o): Depend on frame.h and dispextern.h.
5831 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5832 sysselect.h.
5833
5834 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5835
5836 * font.c (Fclear_font_cache): Pass correct cache argument to
5837 font_clear_cache.
5838
5839 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5840
5841 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5842 twice.
5843
5844 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
5845
5846 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5847 calling file-remote-p. Reported by Jim Meyering.
5848
5849 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
5850
5851 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
5852 avoid compiler warnings. (Bug #5217)
5853
5854 2009-12-14 Kenichi Handa <handa@m17n.org>
5855
5856 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5857 in 8-bit encoding.
5858
5859 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
5860
5861 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5862 tooltip windows.
5863
5864 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5865
5866 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5867 Xatom_net_window_type.
5868
5869 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5870 Xatom_net_window_type.
5871
5872 * xterm.c (my_log_handler): New function.
5873 (x_term_init): Set my_log_handler as log handler during gtk_init
5874 so we can filter out buggy messages. (Bug #5120).
5875
5876 * xterm.c (xg_scroll_callback): Parameter list changed,
5877 use parameter GtkScrollType to determine scroll/line/page.
5878 Only allow dragging if a button < 4 is grabbed (bug #5177).
5879 (xg_end_scroll_callback): New function.
5880 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5881 xg_create_scroll_bar.
5882
5883 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5884 (scroll_end_callback): Remove.
5885 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5886 button-release-event. Replace value-changed event with change-value,
5887 bug #5177.
5888 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5889 bug #5177.
5890
5891 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5892 (xg_create_scroll_bar): Add GCallback end_callback.
5893
5894 * xftfont.c (QClcdfilter): New variable.
5895 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5896 (syms_of_xftfont): Initialize QClcdfilter.
5897
5898 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5899
5900 * xsettings.c (struct xsettings): Add member seen.
5901 (parse_xft_settings): Update member seen with what we have read.
5902 Return non-zero if Xft-settings have been parsed, 0 otherwise.
5903 (apply_xft_settings): Only update Xft settings with what member seen
5904 indicates as new.
5905
5906 2009-12-12 Eli Zaretskii <eliz@gnu.org>
5907
5908 * dispextern.h (struct text_pos): Use EMACS_INT.
5909 (struct glyph): Use EMACS_INT for charpos.
5910 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5911 region_beg_charpos, region_end_charpos,
5912 redisplay_end_trigger_charpos, and also for
5913 iterator_stack_entry.end_charpos and
5914 iterator_stack_entry.stop_charpos.
5915
5916 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5917
5918 * gtkutil.c (scroll_end_callback): New function (bug #5177).
5919 (xg_create_scroll_bar): Call scroll_end_callback on button release
5920 event (bug #5177).
5921 (xg_event_is_for_scrollbar): != replaced with ==.
5922
5923 2009-12-12 Kenichi Handa <handa@m17n.org>
5924
5925 * ftfont.c (struct ftfont_info): New member matrix.
5926 (ftfont_open): Setup xftfont_info->matrix.
5927 (MFLTFontFT): New member matrix.
5928 (FLOOR, CEIL, ROUND): New macros.
5929 (ftfont_get_metrics): Handle matrix transformation.
5930 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5931
5932 * xftfont.c (struct xftfont_info): New member matrix.
5933 (xftfont_open): Setup xftfont_info->matrix.
5934
5935 2009-12-10 Kenichi Handa <handa@m17n.org>
5936
5937 * xdisp.c (append_space_for_newline): Consider face-remapping.
5938
5939 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5940
5941 * xsettings.c: Include "keyboard.h".
5942
5943 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5944
5945 Fix implicit function declarations.
5946 * cmds.c: Include "frame.h".
5947 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5948 * frame.h: Move declaration of delete_frame outside of
5949 HAVE_WINDOW_SYSTEM.
5950
5951 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5952
5953 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5954
5955 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5956 GTK builds.
5957
5958 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5959
5960 * unexelf.c (unexec): Don't search for .data twice.
5961
5962 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
5963
5964 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5965 if push failed.
5966 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5967 of push_display_prop (Bug#5000).
5968
5969 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5970 value of font_list_entities (Bug#5085).
5971
5972 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
5973
5974 Fix `string-to-number' to deal consistently with integers and floats.
5975 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5976 trailing characters, not just whitespace.
5977 (read1): Pass new arg 0 to keep old behavior.
5978 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5979 trailing chars, as it is already done for integers. Doc fixes.
5980 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5981
5982 2009-12-04 Eli Zaretskii <eliz@gnu.org>
5983
5984 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5985 Delete unused enumeration value.
5986
5987 2009-12-03 Eli Zaretskii <eliz@gnu.org>
5988
5989 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5990
5991 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5992
5993 * process.c (Fmake_network_process): Fix up the tests for
5994 "connectionless socket", so they DTRT for seqpacket sockets as well.
5995
5996 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5997
5998 * process.c (Qseqpacket): New symbol.
5999 (HAVE_SEQPACKET): New macro.
6000 (Fmake_network_process): Accept new :type `seqpacket'.
6001 (init_process): Add `seqpacket' feature when applicable.
6002 (syms_of_process): Initialize Qseqpacket.
6003
6004 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6005
6006 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6007 if entity is Qnil.
6008
6009 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6010
6011 * print.c (print_preprocess): Preprocess the key_and_value table of
6012 hashtables, even tho they're "hidden" (bug#5082).
6013
6014 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6015
6016 * frame.c (frame_make_pointer_invisible)
6017 (frame_make_pointer_visible): Declare f before statements.
6018
6019 2009-11-28 Eli Zaretskii <eliz@gnu.org>
6020
6021 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6022 omitted dependencies on lisp.h.
6023
6024 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6025
6026 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6027 is NULL.
6028
6029 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6030
6031 * frame.c (frame_make_pointer_invisible)
6032 (frame_make_pointer_visible): Just return if there isn't any selected
6033 frame.
6034
6035 * search.c (simple_search): Remove warning by making *p const.
6036
6037 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6038
6039 * xdisp.c (power_letter): Remove duplicate const.
6040
6041 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6042
6043 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6044
6045 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
6046 defaults (bug #5025).
6047
6048 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6049
6050 * insdel.c (adjust_markers_for_delete): Move it in the
6051 right direction! (bug#4803)
6052
6053 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6054
6055 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6056
6057 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6058
6059 2009-11-24 Glenn Morris <rgm@gnu.org>
6060
6061 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6062
6063 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6064
6065 * Makefile.in: Must create deps for ecrt0.o in its rule.
6066
6067 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6068 because that is what Gtk+ font dialog understands.
6069
6070 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6071 of Fcopy_sequence.
6072 (font_open_by_name): Put name given into QCname for font-object returned.
6073
6074 * frame.c (x_set_font): Save original font name as frame parameter
6075 font-parameter.
6076
6077 * xsettings.c (set_default_xft_settings): New function.
6078 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6079 is found.
6080
6081 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6082
6083 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6084 searching backwards through multibyte buffer.
6085
6086 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6087
6088 * xterm.c: #include xgselect.h.
6089 (x_initialize): Call xgselect_initialize.
6090
6091 * xsettings.c (something_changedCB): C++ comments => C comments.
6092 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6093 does that now.
6094
6095 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6096 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6097 (scroll_bar_button_cb): Remove.
6098 (create_menus): C++ comments => C comments. Don't bind grab-notify
6099 event.
6100 (xg_create_scroll_bar): Don't bind button-press-event and
6101 button-release-event.
6102
6103 * process.c: Include xgselect.h if defined (USE_GTK) ||
6104 defined (HAVE_GCONF).
6105 (wait_reading_process_output): Call xg_select for the same condition.
6106
6107 * xgselect.c (xg_select): New function to better integrate with
6108 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6109
6110 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6111
6112 * Makefile.in (XOBJ): Add xgselect.o.
6113
6114 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6115
6116 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6117 Remove ignored second argument. All callers changed.
6118 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6119 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6120 * xdisp.c (string_char_and_length): Likewise.
6121
6122 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6123
6124 * xterm.c (x_new_font):
6125 * print.c (print_object):
6126 * cmds.c (Fself_insert_command): Move declarations before statements.
6127
6128 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6129
6130 * s/cygwin.h: Remove unneeded linker flags.
6131
6132 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6133
6134 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6135
6136 * xsettings.h: Declare xsettings_get_system_font.
6137
6138 * xsettings.c (xsettings_get_system_font): New function.
6139 (init_gconf): No use initiating gconf unless we have Xft also.
6140 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6141 HAVE_GCONF.
6142
6143 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6144 add a blank entry so it doesn't collapse into nothing.
6145
6146 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6147
6148 * lread.c (Funintern): Comment out last change.
6149
6150 2009-11-19 Richard Stallman <rms@gnu.org>
6151
6152 * lread.c (Funintern): Error if symbol is t or nil.
6153
6154 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6155
6156 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6157 representation of Lisp integers.
6158 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6159
6160 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6161
6162 * lisp.h: Remove declaration of Ffont_get_system_font.
6163 * xfns.c: Move include of "xsettings.h".
6164 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6165
6166 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6167
6168 * xsettings.c (something_changedCB, Ffont_get_system_font):
6169 Check use_system_font.
6170 (syms_of_xsettings): DEFVAR font-use-system-font.
6171
6172 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6173
6174 * xfns.c (x_default_font_parameter): Remove dead assignment.
6175
6176 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6177
6178 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6179
6180 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
6181 not have FC_LCD_*. #define them if not there.
6182
6183 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
6184
6185 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6186
6187 * xterm.c (handle_one_xevent): Call xft_settings_event for
6188 ClientMessage, PropertyNotify and DestroyNotify.
6189 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6190 Call xsettings_initialize.
6191
6192 * xftfont.c (xftfont_fix_match): New function.
6193 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6194 Call xftfont_fix_match after XftFontMatch.
6195
6196 * xfont.c (xfont_driver): Initialize all members.
6197
6198 * xfns.c (x_default_font_parameter):
6199 Try font from Ffont_get_system_font.
6200 Do not get font from x_default_parameter if we got one from
6201 Ffont_get_system_font.
6202 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
6203
6204 * w32font.c (w32font_driver): Initialize all members.
6205
6206 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6207
6208 * lisp.h: Declare syms_of_xsettings.
6209
6210 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6211 Handle CONFIG_CHANGED_EVENT.
6212
6213 * ftfont.c (ftfont_filter_properties): New function.
6214
6215 * frame.c (x_set_font): Remove unused variable lval.
6216
6217 * font.h (struct font_driver): Add filter_properties.
6218
6219 * font.c (font_put_extra): Don't return if val is nil, it means
6220 boolean option is off.
6221 (font_parse_fcname): Collect all extra properties in extra_props
6222 and call filter_properties for all drivers with extra_props and
6223 font as parameter.
6224 (font_open_entity): Do not use cache, it does not pick up new
6225 fontconfig settings like hinting.
6226 (font_load_for_lface): If spec had a name in it, store it in entity.
6227
6228 * emacs.c (main): Call syms_of_xsettings.
6229
6230 * config.in: HAVE_GCONF is new.
6231
6232 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6233 xsettings.o is new.
6234
6235 2009-11-17 Kenichi Handa <handa@m17n.org>
6236
6237 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6238 back to the default font in case that no suitable font is found.
6239
6240 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6241
6242 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6243 Suggested by Chad Brown <yandros@mit.edu>.
6244 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6245
6246 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6247
6248 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6249
6250 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6251
6252 * Makefile.in: Ignore errors from mkdir when creating deps directory.
6253
6254 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6255
6256 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6257 has a parent.
6258
6259 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
6260 dependency files in deps/. Include those files into Makefile.
6261
6262 * config.in: Generated (AUTO_DEPEND).
6263
6264 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
6265
6266 * dbusbind.c (Vdbus_registered_objects_table): Rename from
6267 Vdbus_registered_functions_table, because it contains also
6268 properties. Fix docstring.
6269 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
6270
6271 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6272
6273 * alloc.c (mark_object): Don't reprocess marked strings.
6274 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6275 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6276
6277 2009-11-13 Kenichi Handa <handa@m17n.org>
6278
6279 * category.c (word_boundary_p): Adjust for the change of the
6280 semantics of Vword_combining_categories.
6281 (Vword_combining_categories): Describe the slight change of the
6282 semantics.
6283
6284 2009-11-13 Eli Zaretskii <eliz@gnu.org>
6285
6286 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6287
6288 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6289
6290 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6291
6292 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6293
6294 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
6295
6296 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6297
6298 2009-11-11 David Reitter <david.reitter@gmail.com>
6299
6300 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6301 variables to fix 2009-11-09 change.
6302
6303 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6304
6305 * process.c (ifflag_def): Make flag_sym constant.
6306 (Fnetwork_interface_info): Use a constant pointer.
6307 (ifflag_table):
6308 * xfns.c (cursor_bits):
6309 * xdisp.c (power_letter):
6310 * termcap.c (speeds, esctab):
6311 * sysdep.c (baud_convert):
6312 * keyboard.c (lispy_accent_codes, modifier_names):
6313 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6314 (jpeg_format, tiff_format, gif_format, svg_format)
6315 (interlace_start, interlace_increment, gs_format):
6316 * gtkutil.c (separator_names):
6317 * fringe.c (swap_nibble):
6318 * fns.c (base64_value_to_char, base64_char_to_value):
6319 * fileio.c (make_temp_name_tbl):
6320 * coding.c (suffixes): Make constant.
6321
6322 * frame.c (make_initial_frame):
6323 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6324 build_string.
6325 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6326
6327 * s/freebsd.h:
6328 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6329
6330 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6331 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6332
6333 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6334 * xterm.c (syms_of_xterm):
6335 * xfaces.c (syms_of_xfaces):
6336 * xdisp.c (syms_of_xdisp):
6337 * lread.c (syms_of_lread):
6338 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6339 build_string.
6340
6341 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6342
6343 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6344
6345 * fns.c (Fplist_get): Merge the active and the commented out code.
6346
6347 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6348
6349 * keyboard.h: Declare timer_check.
6350
6351 * keyboard.c (timer_check_2): New function that does what the old
6352 timer_check did.
6353 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6354 returned, i.e. don't return -1 with timers pending.
6355
6356 * process.c: Remove extern declaration of timer_check.
6357
6358 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6359 even if timer_check returned -1.
6360
6361 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6362 xg_dialog_data.
6363 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6364 the event loop.
6365 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6366 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6367 Destroy the dialog after xg_dialog_run.
6368
6369 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6370
6371 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6372
6373 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6374
6375 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6376
6377 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
6378
6379 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6380
6381 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6382
6383 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6384 w32menu.c, and nsmenu.m.
6385 Simplify the obsolete case where position is nil.
6386 (cleanup_popup_menu): New function, moved from nsmenu.m.
6387 (struct skp): Remove slot `notreal'.
6388 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6389 adjust callers.
6390 (single_menu_item): Adjust call to parse_menu_item.
6391 (syms_of_menu): Defsubr x-popup-menu.
6392 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6393 (keymap_panes): Don't export any more.
6394 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6395 (xmenu_show): Declare.
6396 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6397 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6398 * keyboard.h (parse_menu_item): Update declaration.
6399 * xmenu.c (Fx_popup_menu): Remove.
6400 (syms_of_xmenu): Don't defsubr x-popup-menu.
6401 * w32menu.c (Fx_popup_menu): Remove.
6402 (syms_of_w32menu): Don't defsubr x-popup-menu.
6403 * nsmenu.m (cleanup_popup_menu): Remove.
6404 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6405 moved to menu.c's Fx_popup_menu.
6406 (Fx_popup_menu): Remove.
6407 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6408 menu_items (it's done in menu.c already).
6409
6410 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6411
6412 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6413 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6414
6415 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
6416
6417 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
6418 xmenu_show. Hide any tooltip before opening a menu.
6419 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6420 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6421
6422 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6423
6424 Let integers use up 2 tags to give them one extra bit and thus double
6425 their range.
6426 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6427 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6428 New macros.
6429 (enum Lisp_Type): Use them. Give explicit values.
6430 (Lisp_Type_Limit): Remove.
6431 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6432 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6433 Pay attention to USE_2_TAGS_FOR_INTS.
6434 (INTEGERP): Use LISP_INT_TAG_P.
6435 * fns.c (internal_equal): Simplify the default case.
6436 (sxhash): Use case_Lisp_Int.
6437 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6438 any more.
6439 (Ftype_of): Use case_Lisp_Int.
6440 (store_symval_forwarding): Take into account the fact that Ints can
6441 now have more than one tag.
6442 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
6443 (buffer_slot_type_mismatch):
6444 * xfaces.c (face_attr_equal_p):
6445 * print.c (print_object):
6446 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6447 Use case_Lisp_Int.
6448
6449 2009-11-06 Eli Zaretskii <eliz@gnu.org>
6450
6451 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6452
6453 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6454 warning.
6455
6456 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6457
6458 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6459
6460 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6461
6462 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6463 ButtonPressRelease and MotionNotify (bug#4870).
6464
6465 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6466
6467 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6468
6469 * xterm.c (syms_of_xterm):
6470 * xselect.c (syms_of_xselect):
6471 * xmenu.c (syms_of_xmenu):
6472 * xfns.c (syms_of_xfns):
6473 * xfaces.c (syms_of_xfaces):
6474 * xdisp.c (syms_of_xdisp):
6475 * window.c (syms_of_window):
6476 * w32fns.c (syms_of_w32fns):
6477 * undo.c (syms_of_undo):
6478 * textprop.c (syms_of_textprop):
6479 * terminal.c (syms_of_terminal):
6480 * syntax.c (syms_of_syntax):
6481 * sound.c (syms_of_sound):
6482 * search.c (syms_of_search):
6483 * print.c (syms_of_print):
6484 * minibuf.c (syms_of_minibuf):
6485 * macros.c (syms_of_macros):
6486 * keymap.c (syms_of_keymap, initial_define_key)
6487 (initial_define_lispy_key):
6488 * keyboard.c (syms_of_keyboard):
6489 * insdel.c (syms_of_insdel):
6490 * image.c (syms_of_image):
6491 * fringe.c (syms_of_fringe):
6492 * frame.c (syms_of_frame):
6493 * fontset.c (syms_of_fontset):
6494 * fns.c (syms_of_fns):
6495 * fns.c (syms_of_fns):
6496 * fileio.c (syms_of_fileio):
6497 * fileio.c (syms_of_fileio):
6498 * eval.c (syms_of_eval):
6499 * doc.c (syms_of_doc):
6500 * dispnew.c (syms_of_display):
6501 * dired.c (syms_of_dired):
6502 * dbusbind.c (syms_of_dbusbind):
6503 * data.c (syms_of_data):
6504 * composite.c (syms_of_composite):
6505 * coding.c (syms_of_coding):
6506 * cmds.c (syms_of_cmds):
6507 * charset.c (define_charset_internal, syms_of_character):
6508 * ccl.c (syms_of_ccl):
6509 * category.c (syms_of_category, init_category_once):
6510 * casetab.c (syms_of_casetab):
6511 * casefiddle.c (syms_of_casefiddle):
6512 * callint.c (syms_of_callint):
6513 * bytecode.c (syms_of_bytecode):
6514 * buffer.c (keys_of_buffer, syms_of_buffer):
6515 * alloc.c (syms_of_alloc):
6516 * process.c (syms_of_process, init_process):
6517 * lread.c (syms_of_lread, init_obarray):
6518 * font.c (build_style_table):
6519 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6520 intern_c_string, calls to make_pure_string with
6521 make_pure_c_string. Use pure_cons instead of Fcons.
6522
6523 * process.c (socket_options): Make it const.
6524 (set_socket_option, init_process): Use a const pointer.
6525
6526 * lread.c (intern_c_string): New function.
6527 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6528 (defvar_int): Uset it. Make the name const char*.
6529
6530 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6531 (defvar_int): Update prototypes.
6532 (DEFUN, EXFUN): Support for prototypes is now required.
6533 (intern_c_string): New prototype.
6534 (struct Lisp_Subr): Make symbol_name constant.
6535
6536 * font.c (struct table_entry): Remove unused member. Make NAMES
6537 constant.
6538 (weight_table, slant_table, width_table): Make constant.
6539
6540 * emacs.c (struct standard_args): Make name and longname constant.
6541
6542 * character.h (DEFSYM): Use intern_c_string.
6543
6544 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6545
6546 * alloc.c (make_pure_c_string): New function.
6547
6548 * eval.c (Fautoload): Purecopy all arguments.
6549
6550 2009-11-05 Kenichi Handa <handa@m17n.org>
6551
6552 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6553 the buffer in case of replace.
6554
6555 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6556
6557 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6558
6559 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6560
6561 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6562 when applicable (bug#4851).
6563
6564 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6565 (P_): Support for prototypes is now required.
6566
6567 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
6568
6569 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6570 (Bug#4827).
6571
6572 2009-10-30 Eli Zaretskii <eliz@gnu.org>
6573
6574 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
6575
6576 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6577
6578 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6579
6580 * lread.c (Fload): Purecopy the file name when building
6581 Vpreloaded_file_list.
6582
6583 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6584
6585 * w32fns.c (syms_of_w32fns): Change default value of
6586 w32-scroll-lock-modifier to nil. (Bug#2827)
6587
6588 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6589
6590 * minibuf.c (Fall_completions): Fix typos in docstring.
6591
6592 2009-10-26 Andreas Schwab <schwab@redhat.com>
6593
6594 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6595
6596 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6597
6598 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6599 For delta < 0, skip check that only makes sense when the mini-window
6600 is going to be enlarged. (Bug#4534)
6601
6602 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
6603
6604 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6605 string in menu maps (Bug#4471).
6606
6607 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
6608
6609 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6610 FRAME_NS_VIEW on terminal frames (Bug#4765).
6611
6612 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6613
6614 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6615 DBUS_TYPE_UINTnn separately to get proper sign extension.
6616
6617 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6618 can properly handle unsigned types.
6619 (make_uid, make_gid): Remove.
6620
6621 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6622 types again.
6623
6624 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
6625 (system_process_attributes): Likewise.
6626
6627 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6628
6629 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6630
6631 * eval.c (Fautoload): Purecopy the filename. Simplify.
6632
6633 * category.c (Fdefine_category): Purecopy docstring.
6634
6635 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6636
6637 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6638
6639 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6640
6641 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
6642
6643 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6644 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6645 (Bug#4775).
6646
6647 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6648
6649 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6650 (init_fileio_once):
6651 * lisp.h (init_fileio_once): Remove.
6652 * emacs.c (main): Don't call init_fileio_once.
6653
6654 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6655
6656 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6657
6658 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6659
6660 * doprnt.c (doprnt): Fix overflow check.
6661
6662 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6663
6664 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6665
6666 * xterm.h (x_wait_for_event): Declare it.
6667
6668 * xterm.c (pending_event_wait): New variable.
6669 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6670 see pending_event_wait.eventtype.
6671 (handle_one_xevent): Don't change gravity when parent changes.
6672 (x_new_font): Call change_frame_size with new rows/columns before we
6673 try to resize the frame.
6674 (x_wait_for_event): New function.
6675 (x_set_window_size_1): Don't change gravity unless change_gravity
6676 is set.
6677 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6678 don't change frame size, instead wait for the ConfigureNotify.
6679 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6680 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6681 (x_initialize): Initialize pending_event_wait.
6682
6683 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6684 size.
6685
6686 * widget.c (EmacsFrameSetValues): Add comment.
6687 (EmacsFrameSetCharSize): Just call x_set_window_size.
6688
6689 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6690 x_wait_for_event.
6691 (flush_and_sync): Remove again.
6692 (xg_get_font_name): Suggest monospace if no previous font is known.
6693
6694 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6695
6696 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
6697 8th bit, since that only made sense in the ASCII world (bug#4751).
6698
6699 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6700
6701 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6702 processing pending events when event is filtered for input method.
6703 (Bug#3681)
6704
6705 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
6706
6707 * fns.c: Add #endif accidentally removed in previous change.
6708
6709 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6710
6711 * fns.c: Remove code for unsupported system: MAC_OS.
6712 * image.c: Likewise. Include setjmp.h.
6713
6714 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6715
6716 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6717 pixel -1 (bug #4742).
6718
6719 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6720
6721 * process.c (create_pty): Remove conditionals for no longer
6722 supported systems: UNIPLUS and RTU.
6723
6724 * xterm.c:
6725 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6726
6727 * alloc.c: Do not define struct catchtag.
6728 * eval.c: Move struct catchtag definition ...
6729 * lisp.h: ... here.
6730
6731 * image.c: Move png.h #include earlier to avoid warnings.
6732
6733 * xterm.c:
6734 * xsmfns.c:
6735 * xselect.c:
6736 * xrdb.c:
6737 * xmenu.c:
6738 * xftfont.c:
6739 * xfont.c:
6740 * xfns.c:
6741 * xfaces.c:
6742 * xdisp.c:
6743 * window.c:
6744 * widget.c:
6745 * w32xfns.c:
6746 * w32uniscribe.c:
6747 * w32term.c:
6748 * w32select.c:
6749 * w32reg.c:
6750 * w32proc.c:
6751 * w32menu.c:
6752 * w32inevt.c:
6753 * w32heap.c:
6754 * w32font.c:
6755 * w32fns.c:
6756 * w32console.c:
6757 * w32.c:
6758 * w16select.c:
6759 * vm-limit.c:
6760 * unexsol.c:
6761 * unexec.c:
6762 * unexcw.c:
6763 * unexaix.c:
6764 * undo.c:
6765 * tparam.c:
6766 * textprop.c:
6767 * terminfo.c:
6768 * terminal.c:
6769 * termcap.c:
6770 * term.c:
6771 * syntax.c:
6772 * sound.c:
6773 * sheap.c:
6774 * search.c:
6775 * scroll.c:
6776 * region-cache.c:
6777 * regex.c:
6778 * ralloc.c:
6779 * process.c:
6780 * print.c:
6781 * nsterm.m:
6782 * nsselect.m:
6783 * nsmenu.m:
6784 * nsimage.m:
6785 * nsfont.m:
6786 * nsfns.m:
6787 * msdos.c:
6788 * minibuf.c:
6789 * menu.c:
6790 * marker.c:
6791 * macros.c:
6792 * keymap.c:
6793 * keyboard.c:
6794 * intervals.c:
6795 * insdel.c:
6796 * indent.c:
6797 * gtkutil.c:
6798 * ftxfont.c:
6799 * ftfont.c:
6800 * fringe.c:
6801 * frame.c:
6802 * fontset.c:
6803 * font.c:
6804 * fns.c:
6805 * floatfns.c:
6806 * filelock.c:
6807 * fileio.c:
6808 * emacs.c:
6809 * editfns.c:
6810 * dosfns.c:
6811 * doprnt.c:
6812 * doc.c:
6813 * dispnew.c:
6814 * dired.c:
6815 * dbusbind.c:
6816 * data.c:
6817 * composite.c:
6818 * coding.c:
6819 * cmds.c:
6820 * cm.c:
6821 * chartab.c:
6822 * charset.c:
6823 * character.c:
6824 * ccl.c:
6825 * category.c:
6826 * casetab.c:
6827 * casefiddle.c:
6828 * callproc.c:
6829 * callint.c:
6830 * bytecode.c:
6831 * buffer.c:
6832 * atimer.c: Include setjmp.h. (Bug#4643)
6833
6834 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6835
6836 Remove leftover table unibyte_to_multibyte_table.
6837 * character.c (unibyte_to_multibyte_table): Remove.
6838 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6839 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6840 * character.h (UNIBYTE_TO_CHAR): New macro.
6841 (MAKE_CHAR_MULTIBYTE): Use it.
6842 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6843 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6844 (message_dolog, set_message_1):
6845 * search.c (Freplace_match):
6846 * editfns.c (Fcompare_buffer_substrings):
6847 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6848 (concat):
6849 * insdel.c (copy_text, count_size_as_multibyte):
6850 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6851 * term.c (produce_glyphs):
6852 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6853 * regex.c (RE_CHAR_TO_MULTIBYTE):
6854 * cmds.c (internal_self_insert):
6855 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6856
6857 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6858
6859 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6860
6861 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6862
6863 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
6864
6865 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6866
6867 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6868
6869 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6870 still needed under Tiger.
6871
6872 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6873
6874 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6875 __Apple__.
6876
6877 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6878
6879 2009-10-15 Kenichi Handa <handa@m17n.org>
6880
6881 * print.c (print_object): Escape a symbol like "2E10" too.
6882
6883 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6884
6885 Cleanups and changes for 64-bit compile under Snow Leopard.
6886 Based on suggestions by Erik Charlebois.
6887
6888 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6889
6890 * nsfont.m (ns_char_width): Replace deprecated call.
6891 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6892 cast argument.
6893 (nsfont_open): Use ns_char_width() everywhere.
6894 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
6895
6896 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6897
6898 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6899 where appropriate.
6900
6901 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6902 where appropriate.
6903 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6904 Use stringWithUTF8String.
6905 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6906
6907 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6908 Add formal protocol mention to inheritance.
6909 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6910
6911 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6912 Fix printf format.
6913 (ns_query_color): Use CGFloat where appropriate.
6914 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
6915 (EmacsScroller-mouseDown:): Use long format in printf, and cast
6916 argument.
6917
6918 * config.in (NS_HAVE_NSINTEGER): Drop.
6919
6920 * dbusbind.c (dbus-method-return-internal)
6921 (dbus-method-error-internal): Use long format in printf, and cast
6922 argument.
6923
6924 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6925 in printf, and cast argument.
6926
6927 * process.c (list_processes_1): Use long format in printf, and
6928 cast argument.
6929
6930 2009-10-11 Glenn Morris <rgm@gnu.org>
6931
6932 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6933
6934 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6935
6936 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6937 menu bar with a small width so it doesn't enlarge the frame.
6938
6939 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
6940
6941 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6942
6943 2009-10-06 Glenn Morris <rgm@gnu.org>
6944
6945 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6946 SOME_MACHINE_LISP (this enters indirectly via DOC).
6947
6948 2009-10-05 Eli Zaretskii <eliz@gnu.org>
6949
6950 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6951
6952 2009-10-04 Eli Zaretskii <eliz@gnu.org>
6953
6954 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6955 Doc fix.
6956
6957 2009-10-03 Martin Rudalics <rudalics@gmx.at>
6958
6959 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6960
6961 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
6962
6963 * lisp.h (Qdelete_directory_internal): Remove, because it is not
6964 used anymore outside fileio.c.
6965
6966 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6967
6968 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
6969
6970 * lisp.h (Qdelete_directory_internal):
6971 Declare, instead of Qdelete_directory.
6972
6973 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6974
6975 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6976
6977 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6978
6979 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
6980
6981 * fileio.c (Fdelete_directory_internal): Rename from
6982 Fdelete_directory. It is not a command anymore. It has no file
6983 name handler.
6984
6985 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6986
6987 * xdisp.c (get_next_display_element): Use an enum in last change.
6988
6989 2009-09-28 Kenichi Handa <handa@m17n.org>
6990
6991 * xdisp.c (get_next_display_element): Pay attention to
6992 unibyte_display_via_language_environment in handling
6993 Vnobreak_char_display.
6994
6995 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6996
6997 * nsterm.h (ns_app_name): New extern variable.
6998
6999 * nsterm.m (ns_app_name): New variable.
7000 (ns_term_init): Set and use it.
7001 (ns_term_shutdown): Use it.
7002
7003 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7004 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7005
7006 * nsfns.m (ns_set_name_iconic, ns_set_name)
7007 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7008 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7009
7010 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7011 Remove double-casting in client_data comparison.
7012
7013 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7014
7015 * keyboard.c (make_lispy_event): Remember last wheel direction.
7016 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7017
7018 2009-09-26 Glenn Morris <rgm@gnu.org>
7019
7020 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7021 internal.elc. Add term/pc-win.elc.
7022 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7023 term/x-win.elc.
7024 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7025 term/w32-win.elc.
7026 (NS_SUPPORT): New.
7027 (lisp): Add NS_SUPPORT.
7028 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7029
7030 2009-09-25 David Reitter <david.reitter@gmail.com>
7031
7032 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7033 on Mac OS X 10.6+ (bug#4513).
7034
7035 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
7036
7037 * frame.c (xrdb_get_resource): Return nil for empty string resources;
7038 some parts of Emacs code (like font selection) don't grok them.
7039 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
7040
7041 2009-09-24 Andreas Schwab <schwab@redhat.com>
7042
7043 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7044
7045 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
7046
7047 * dired.c (Fdirectory_files): Fix typo in docstring.
7048
7049 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7050
7051 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7052 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7053 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7054 under GNUstep.
7055 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7056
7057 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7058 glyph advancement.
7059
7060 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7061
7062 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
7063 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
7064
7065 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7066 deleted (bug #4492).
7067
7068 * nsfont.m (Vns_reg_to_script): New lisp variable.
7069 (syms_of_nsfont): Declare it.
7070 (ns_registry_to_script): New function.
7071 (ns_get_req_script): Call it.
7072 (ns_findfonts): Don't give up on non-unicode registry.
7073
7074 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7075
7076 2009-09-20 Tom Tromey <tromey@redhat.com>
7077
7078 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7079 batch mode (bug#4228).
7080
7081 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
7082
7083 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
7084 carefully. (Bug #4339)
7085
7086 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
7087
7088 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
7089
7090 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7091
7092 * emacs.c (inhibit_x_resources): Update doc string for NS.
7093 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
7094 legacy code for -NXHost. Fix error printf in daemon case.
7095
7096 * nsterm.h (ns_no_defaults): Remove.
7097
7098 * nsterm.m (ns_no_defaults): Remove.
7099 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7100 (ns_use_qd_smoothing): Remove legacy variable.
7101 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7102 don't update the NSWindow itself.
7103 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
7104 state detection and store user rect ourselves. (Bug #3581)
7105
7106 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7107 ns_use_qd_smoothing.
7108
7109 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7110 platform versions. Drop support for emacs-20-style face specs.
7111 (x-close-connection): Drop PSFlush() under OS X.
7112 (x-focus-frame): Activate the app first. (Bug #4180)
7113
7114 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
7115
7116 * emacs.c (inhibit_x_resources): New variable.
7117 (main) [HAVE_NS]: Don't process --quick command line option.
7118 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7119
7120 * lisp.h (inhibit_x_resources): Declare it extern.
7121
7122 * w32reg.c (x_get_string_resource):
7123 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7124
7125 2009-09-17 Eli Zaretskii <eliz@gnu.org>
7126
7127 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7128 Add lisp/term/internal.elc.
7129
7130 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7131
7132 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7133 (bug#4461).
7134
7135 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7136
7137 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7138
7139 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7140 (OBJECTS_MACHINE): Remove, unused.
7141
7142 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7143
7144 * frame.c (x_get_resource_string): Remove unused.
7145
7146 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7147
7148 * xterm.c (x_new_font): Call change_frame_size before calling
7149 x_set_window_size, in case frame size won't change.
7150
7151 * frame.c (x_set_font): Remove dead code.
7152
7153 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7154
7155 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7156
7157 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7158
7159 * lread.c (Fload): Don't output a message after loading an obsolete
7160 package any more (done in Lisp now).
7161
7162 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
7163
7164 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7165
7166 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7167
7168 * keymap.c (Fwhere_is_internal): Use nconc2.
7169
7170 2009-09-11 Alan Mackenzie <acm@muc.de>
7171
7172 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7173 batch mode.
7174
7175 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7176
7177 * xdisp.c (display_mode_element): Detect cycles.
7178
7179 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7180
7181 * keymap.c (where_is_internal): Don't erroneously return nil right after
7182 filling the cache.
7183 (where_is_internal_1): Fix up typo.
7184
7185 2009-09-11 Glenn Morris <rgm@gnu.org>
7186
7187 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7188 share a common doc-string.
7189
7190 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7191
7192 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7193 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7194
7195 * keymap.c (QCadvertised_binding): New constant.
7196 (syms_of_keymap): Initialize it.
7197 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7198 if applicable.
7199
7200 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7201
7202 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7203 (parse_menu_item): Streamline since bindings are recomputed all the
7204 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7205 more and don't support lmenu's menu-alias any more either.
7206
7207 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7208 (where_is_internal): Strip it down to only traverse the keymaps.
7209 Move the cache handling from Fwhere_is_internal to here.
7210 (Fwhere_is_internal): Move the handling of remapping and the choice of
7211 the best binding from where_is_internal to here.
7212 Unify the cached/noncached paths, so remapping is also handled
7213 correctly when the cache is used, and so the cache can be used to
7214 speed up remap-handling when applicable.
7215 Give preference to non-remapped bindings.
7216 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7217 non-remapped bindings.
7218 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7219 command remapping.
7220
7221 * xdisp.c (display_mode_element): Move list length limit from 50 to
7222 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7223
7224 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
7225
7226 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7227
7228 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7229
7230 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7231 (Bug#4334)
7232
7233 * keymap.c (where_is_internal): Filter out shadowed remappings.
7234 Assume that where_is_internal returns unshadowed bindings to simplify
7235 the code and get rid of the gotos. Use ASIZE.
7236
7237 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7238
7239 * xterm.c (x_focus_changed): If we get a focusout and pointer
7240 is invisible, make it visible.
7241
7242 * xterm.h: Remove condition for declaration of
7243 x_*_window_to_frame.
7244
7245 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7246
7247 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7248 initial terminal as well.
7249
7250 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7251
7252 * xterm.h: Rename x_non_menubar_window_to_frame to
7253 x_menubar_window_to_frame.
7254
7255 * xterm.c: Remove declarations also in xterm.h.
7256 (XTmouse_position): Do not return valid positions
7257 for clicks in the menubar and the toolbar for Gtk+.
7258
7259 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7260 if the widget for the event has the same top level as a frame,
7261 return the frame.
7262 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7263 internal windows, bug #4122.
7264 (x_non_menubar_window_to_frame): Remove.
7265
7266 2009-09-02 Glenn Morris <rgm@gnu.org>
7267
7268 * buffer.c (default-major-mode): Move most of the doc from here...
7269 (major-mode): ... to here.
7270
7271 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
7272
7273 * process.c (wait_reading_process_output): Keep the descriptor
7274 when pty is used by a non-child process, e.g., in I/O buffer of
7275 GDB this allows inferior to be restarted.
7276
7277 2009-08-29 Eli Zaretskii <eliz@gnu.org>
7278
7279 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7280 both branches into one.
7281
7282 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7283
7284 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7285 (main): Use enable-multibyte-characters rather than
7286 default-enable-multibyte-characters. Output a warning message when
7287 running a unibyte session.
7288
7289 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7290
7291 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7292 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7293 (copy_data_segment): Also copy __program_vars section.
7294 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7295 (dump_it) [LC_DYLD_INFO]: Use it.
7296
7297 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7298
7299 2009-08-28 Eli Zaretskii <eliz@gnu.org>
7300
7301 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7302 $(SRC)/buildobj.h.
7303 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7304 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7305 $(SRC)/buildobj.h.
7306 (clean): Add buildobj.h.
7307
7308 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7309
7310 * print.c (print_object): Set escapeflag to 1 when printing
7311 hashtable keys and values.
7312
7313 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7314
7315 * lread.c (read_integer): Use doubles (and potentially return a float
7316 number) as we do in string-to-number.
7317 (read1): Use strtol to read integers, signal errors on strtol's
7318 overflow and use floats if strtol's output is too large for
7319 Elisp integers.
7320
7321 2009-08-27 Eli Zaretskii <eliz@gnu.org>
7322
7323 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7324 (make-buildobj-SH): Fix last change.
7325 (SRC): Move to before where it's first used.
7326
7327 2009-08-27 Kenichi Handa <handa@m17n.org>
7328
7329 * process.c (send_process): Use encode_coding_object instead of
7330 encode_coding_string to perform eol-conversion even if the string
7331 is unibyte.
7332
7333 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7334 character.
7335
7336 * cmds.c (Fself_insert_command): Avoid unnecessay
7337 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
7338
7339 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7340
7341 * callproc.c (Fcall_process): Remove always true #if.
7342
7343 * lisp.h: Replace #if 0 code for checking with text pointing to
7344 the --enable-checking configure flag.
7345
7346 * emacs.c (main): Mention the --enable-profiling configure flag
7347 instead of using CFLAGS.
7348
7349 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
7350
7351 * Makefile.in (buildobj.h): New target.
7352 (doc.o): Depend on it.
7353 (temacs${EXEEXT}): Don't generate buildobj.lst.
7354 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7355 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7356 ($(BLD)/doc.$(O)): Depend on it.
7357 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7358 provided by Eli Zaretskii.)
7359 ($(TEMACS)): Don't generate buildobj.lst.
7360 * doc.c: Include buildobj.h.
7361 (buildobj): New static variable.
7362 (Fsnarf_documentation): Use it, instead of opening and reading
7363 buildobj.lst.
7364
7365 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
7366
7367 * dbusbind.c (Fdbus_call_method)
7368 (Fdbus_call_method_asynchronously): Use English numeric format for
7369 timeout values in doc string.
7370
7371 2009-08-25 Kenichi Handa <handa@m17n.org>
7372
7373 * alloc.c (mark_char_table): New function.
7374 (mark_object): Use mark_char_table for a char-table.
7375
7376 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7377 (CHAR_TABLE_REF): Use it.
7378
7379 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
7380
7381 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7382 before invoking the newly build emacs to check for load-path
7383 shadowing.
7384
7385 2009-08-22 Glenn Morris <rgm@gnu.org>
7386
7387 * Makefile.in (bootstrap_exe): New variable.
7388 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7389 Use ${bootstrap_exe}.
7390
7391 2009-08-22 Eli Zaretskii <eliz@gnu.org>
7392
7393 * coding.h (encode_coding_string): Don't encode unibyte strings.
7394 (Bug#4047)
7395
7396 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
7397
7398 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7399
7400 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7401 intended as hotfix only.
7402 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7403
7404 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7405
7406 * nsterm.m (ns_get_color): Update documentation properly for last
7407 change, and clean up loose ends in the code left by it. Fix
7408 longstanding bug with 16-bit hex parsing, and add support for
7409 yet another X11 format (rgb:r/g/b) for compatibility.
7410 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7411 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7412
7413 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7414
7415 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7416
7417 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
7418
7419 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7420 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7421 (xd_initialize, xd_pending_messages): Check, whether
7422 $DBUS_SESSION_BUS_ADDRESS is set.
7423
7424 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7425
7426 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7427
7428 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7429
7430 2009-08-20 Glenn Morris <rgm@gnu.org>
7431
7432 * emacs.c (system-type): Doc fix.
7433
7434 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7435
7436 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7437 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7438
7439 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
7440
7441 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7442 New functions.
7443 (xd_initialize): Revert change from 2009-08-16.
7444
7445 2009-08-18 Kenichi Handa <handa@m17n.org>
7446
7447 * fontset.c (Ffontset_font): If a nil element is found in a
7448 font-group vector, return nil.
7449
7450 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
7451
7452 * process.c (status_notify): Don't perform redisplay.
7453 (Fdelete_process, list_processes_1, process_send_signal):
7454 Expliticly perform redisplay.
7455 (wait_reading_process_output): Always check process status, but
7456 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7457
7458 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
7459
7460 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
7461 (XFLOAT_INIT): New macro for storing a float value.
7462 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7463 * fns.c (sxhash): Copy out the value of a float in order to
7464 examine its bytes.
7465 * dbusbind.c (xd_append_arg): Likewise.
7466
7467 * emacs.c (main): Don't call syms_of_data twice.
7468
7469 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
7470
7471 * dbusbind.c (xd_initialize): Add connection file descriptor to
7472 input_wait_mask, in order to let select() detect, whether a new
7473 message has been arrived.
7474 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
7475
7476 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
7477
7478 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7479 New functions.
7480
7481 * lisp.h (xd_pending_messages): Declare.
7482
7483 * keyboard.c (readable_events): Call xd_pending_messages.
7484
7485 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
7486
7487 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
7488
7489 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7490
7491 * buffer.c (set_buffer_internal_1)
7492 (swap_out_buffer_local_variables): Check for unbound local
7493 variables (Bug#4138).
7494
7495 2009-08-14 Eli Zaretskii <eliz@gnu.org>
7496
7497 * process.c (create_pty): Fix last change.
7498
7499 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
7500
7501 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7502 (xbm_load_image): Caller changed.
7503 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
7504
7505 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
7506
7507 * process.c (create_pty): New function.
7508 (Fstart_process): Use it to allow Emacs to just associate a pty
7509 with the buffer. See associated change in gdb-mi.el.
7510 (list_processes_1): Deal with no program name.
7511 (start_process_unwind): Use pid == -2 to mean no process.
7512
7513 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7514
7515 * cmds.c (nonundocount): New global variable.
7516 (keys_of_cmds): Initialize it.
7517 (Fself_insert_command): Use it to combine upto 20 sequential chars
7518 into a single undo entry, just like the Qself_insert_command code in
7519 keyboard.c does.
7520 Call frame_make_pointer_invisible, also like the Qself_insert_command
7521 code in keyboard.c does.
7522 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7523 than its own local replacement for it.
7524
7525 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
7526
7527 * fns.c (concat): Don't re-set string length to its current value.
7528
7529 * coding.h (decode_coding_string, encode_coding_string):
7530 Use SBYTES macro.
7531
7532 * doprnt.c (doprnt_lisp): Delete unused function.
7533 (doprnt): Merge with doprnt1, discarding lispstrings code.
7534 * lisp.h (doprnt_lisp): Don't declare.
7535
7536 2009-08-07 Juri Linkov <juri@jurta.org>
7537
7538 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7539
7540 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7541
7542 * print.c (syms_of_print): Undo previous change.
7543
7544 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7545
7546 * lread.c (read1, syms_of_lread): Read hashtables back from the
7547 readable format.
7548
7549 * print.c (print_preprocess, print_object): Print hashtables fully
7550 and readably.
7551 (syms_of_print): Provide 'hashtable-print-readable.
7552
7553 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7554
7555 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7556 no family set.
7557 (nsfont_open): Handle case when entity has no family.
7558
7559 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7560
7561 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7562 element, not a list, for match case.
7563
7564 2009-07-28 Kenichi Handa <handa@m17n.org>
7565
7566 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7567 rigidly.
7568
7569 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7570 font_parse_xlfd. Check font properties more rigidly.
7571
7572 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7573
7574 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7575 bsd-common.h.
7576
7577 2009-07-27 Kenichi Handa <handa@m17n.org>
7578
7579 * xfaces.c (face_with_height): Call font_clear_prop.
7580
7581 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
7582
7583 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7584
7585 * xterm.c (x_term_init): Use Qx.
7586
7587 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7588
7589 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
7590 (ns_get_color): Revert 2009-07-16 change.
7591
7592 2009-07-25 Eli Zaretskii <eliz@gnu.org>
7593
7594 * lread.c (syms_of_lread) <force_load_messages>: New variable.
7595 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
7596
7597 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
7598
7599 * coding.h (decode_coding_string, encode_coding_string):
7600 Use SCHARS macro.
7601
7602 * lread.c: Rewrite 2009-07-21 changes.
7603 (load_depth): Delete.
7604 (Qload_in_progress): New variable.
7605 (load_unwind): Don't reference load_depth or load_in_progress.
7606 (Fload): Likewise; specbind Qload_in_progress instead.
7607 (init_lread): Don't initialize load_depth.
7608 (syms_of_lread): Initialize and protect Qload_in_progress.
7609
7610 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7611
7612 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7613
7614 2009-07-23 Yavor Doganov <yavor@gnu.org>
7615
7616 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7617
7618 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7619
7620 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7621 Bugs 3792, 3720, 2402.
7622 (ns_lookup_indexed_color): Check for bad index.
7623 (ns_index_color): Init unused slot to 0.
7624 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7625 Bug 3714, possibly 3082.
7626
7627 2009-07-22 Jason Rumney <jasonr@gnu.org>
7628
7629 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7630 Position IME window at cursor (Bug#2570).
7631 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7632 (globals_of_w32fns): Dynamically load functions required above.
7633
7634 * w32term.c (w32_draw_window_cursor): Send message to reposition
7635 any IME window.
7636
7637 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7638
7639 * fileio.c: Revert 2009-07-16 changes.
7640 (Vauto_save_include_big_deletions): New variable.
7641 (Fdo_auto_save): Disable auto-save only if
7642 auto-save-include-big-deletions is nil.
7643
7644 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7645
7646 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7647 the overflowed pixels into account (Bug#3879).
7648
7649 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
7650
7651 * lread.c (load_depth): New variable.
7652 (Fload, load_unwind, init_lread): Set it to the load recursion
7653 depth; set load_in_progress as a simple boolean based on the
7654 current load_depth. (Bug#3892)
7655
7656 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7657
7658 * nsfont.m (ns_has_attribute): Remove.
7659 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7660
7661 2009-07-18 Juri Linkov <juri@jurta.org>
7662
7663 * process.c (Fset_process_query_on_exit_flag): Mention killing
7664 a buffer in docstring.
7665
7666 2009-07-17 Kenichi Handa <handa@m17n.org>
7667
7668 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7669
7670 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7671
7672 * nsfns.m (Fns_set_alpha): Remove function.
7673 (syms_of_nsfns): Don't defsubr it.
7674
7675 * nsterm.m (ns_get_color): Remove incompatible color formats.
7676 (ns_color_to_lisp): Generate #rrggbb color format string.
7677
7678 2009-07-16 Richard Stallman <rms@gnu.org>
7679
7680 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7681 (Fset_buffer_auto_saved): Handle save_length = -2.
7682
7683 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
7684
7685 * xterm.c (Qx_gtk_map_stock): New var.
7686
7687 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7688 of calling intern each time.
7689
7690 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7691
7692 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7693 does tiling.
7694
7695 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7696
7697 2009-07-14 Kenichi Handa <handa@m17n.org>
7698
7699 * font.c (font_vconcat_entity_vectors): New function.
7700 (struct font_sort_data): New member font_driver_preference.
7701 (font_compare): Check font_driver_preference.
7702 (font_sort_entities): The format of the first argument changed.
7703 (font_delete_unmatched): Likewise.
7704 (font_list_entities): The return type changed.
7705 (font_select_entity): The format of the second argument changed.
7706 (font_find_for_lface): Adjuste for the above changes.
7707 Don't suppress the checking of C even if the repertory supports it.
7708 (Flist_fonts): Adjust for the above changes.
7709
7710 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7711 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
7712 Reject a font who has adstyle property that is different from a
7713 langname derived from registry property.
7714 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
7715
7716 2009-07-13 Eli Zaretskii <eliz@gnu.org>
7717
7718 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7719 local copy of dirfilename.
7720
7721 2009-07-13 Kenichi Handa <handa@m17n.org>
7722
7723 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7724 against max_char.
7725
7726 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7727 calling XSYMBOL (sym).
7728
7729 2009-07-11 Eli Zaretskii <eliz@gnu.org>
7730
7731 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7732 New function.
7733 (directory_files_internal) [WINDOWSNT]:
7734 Bind w32-get-true-file-attributes to either t or nil, depending whether
7735 the filesystem of the directory is fast or slow.
7736
7737 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7738 file name.
7739 (is_slow_fs): New function.
7740 (stat): Use it to determine whether to issue more system calls to
7741 get accurate file attributes, when w32-get-true-file-attributes is
7742 `local'.
7743
7744 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7745
7746 * xfns.c (Fx_select_font): Remember last font selected in
7747 x_last_font_name and use that the next time. Also try the frame
7748 parameter font-parameter as default to the font dialog.
7749
7750 2009-07-10 Kenichi Handa <handa@m17n.org>
7751
7752 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7753
7754 2009-07-09 Eli Zaretskii <eliz@gnu.org>
7755
7756 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7757
7758 * w32.c (stat): Treat UNC file names as residing on remote
7759 drives. (Bug#3542)
7760
7761 2009-07-09 Kenichi Handa <handa@m17n.org>
7762
7763 * fontset.c (fontset_find_font): Fix previous change.
7764
7765 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
7766
7767 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7768 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7769 error flag.
7770
7771 2009-07-08 Kenichi Handa <handa@m17n.org>
7772
7773 * fontset.c (fontset_find_font): Fix the logic of handling
7774 charset_matched.
7775 (font_for_char): Delete unused var.
7776 (generate_ascii_font_name): Delete it.
7777
7778 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7779
7780 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7781 (encode_coding_sjis): Fix the code range check.
7782
7783 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
7784
7785 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7786 (Fexpand_file_name): Copy string data properly (Bug#3772).
7787
7788 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7789
7790 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7791 first MapNotify.
7792
7793 2009-07-07 Kenichi Handa <handa@m17n.org>
7794
7795 * character.h (unibyte_has_multibyte_table): Delete extern.
7796 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7797
7798 * charset.c (Fset_charset_priority): Update charset_unibyte.
7799 (syms_of_charset): Initialize charset_unibyte.
7800
7801 * character.c (unibyte_has_multibyte_table): Delete it.
7802 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7803 charset_unibyte.
7804 (multibyte_char_to_unibyte_safe): Likewise.
7805 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7806
7807 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
7808 (x_produce_glyphs): Likewise.
7809
7810 * .gdbinit (xcharset): Fix the treating $arg0.
7811
7812 2009-07-04 Eli Zaretskii <eliz@gnu.org>
7813
7814 Emulation of `getloadavg' on MS-Windows.
7815 * w32.c: Include float.h.
7816 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7817 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7818 (get_native_system_info, get_system_times): New functions.
7819 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7820 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7821 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7822 g_b_init_get_system_times, and num_of_processors.
7823
7824 2009-07-03 Jason Rumney <jasonr@gnu.org>
7825
7826 * w32term.c (w32_initialize): Use standard types.
7827
7828 2009-07-03 Eli Zaretskii <eliz@gnu.org>
7829
7830 * dired.c (Ffile_attributes): Decode user and group names by the
7831 locale's encoding. (Bug#3443)
7832
7833 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7834
7835 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7836 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7837
7838 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7839
7840 * term.c (init_tty): Remove spurious #ifdef.
7841
7842 * m/mips.h: Mention this file is also used for netbsd.
7843 * m/pmax.h: Remove file.
7844
7845 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7846
7847 * xterm.h (struct x_display_info): Add invisible_cursor.
7848 (struct x_output): Add current_cursor.
7849
7850 * xterm.c (XTtoggle_invisible_pointer): New function.
7851 (x_define_frame_cursor): Don't define cursor if invisible or the
7852 same as before. Set current_cursor.
7853 (x_create_terminal): Set toggle_invisible_pointer_hook.
7854
7855 * xfns.c (make_invisible_cursor): New function.
7856 (x_set_mouse_color): Call make_invisible_cursor.
7857 Set current_cursor.
7858 (x_window): Set current_cursor.
7859
7860 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7861
7862 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7863 inserting a character.
7864 (read_avail_input): Call frame_make_pointer_visible.
7865
7866 * frame.c (Vmake_pointer_invisible): New variable.
7867 (frame_make_pointer_invisible, frame_make_pointer_visible):
7868 New functions.
7869 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7870
7871 * frame.h: Declare frame_make_pointer_invisible and
7872 frame_make_pointer_visible.
7873 (struct frame): Add pointer_invisible.
7874
7875 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7876
7877 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7878 frame isn't visible.
7879 (xg_frame_resized): If width/height is -1, get size of window
7880 from X server.
7881
7882 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7883 for MapNotify.
7884
7885 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
7886 here or call change_frame_size. Just call flush_and_sync.
7887 (flush_and_sync): Reintroduce.
7888
7889 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
7890
7891 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
7892
7893 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7894 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7895
7896 * frame.h: Declare Qsticky.
7897
7898 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7899
7900 * nsfns.m (ns_frame_parm_handlers): Ditto.
7901
7902 * frame.c: Declare Qsticky.
7903 (frame_parms): Add sticky.
7904
7905 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7906
7907 * xterm.h: Declare x_set_sticky.
7908
7909 * xterm.c (x_set_sticky): New function.
7910
7911 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7912 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7913 xg_tool_bar_proxy_help_callback.
7914
7915 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7916
7917 * frame.c: Qmaximized is new.
7918 (x_set_frame_parameters): Do not handle fullscreen specially.
7919 Only set width and height if explicitly set.
7920 (x_set_fullscreen): Handle Qmaximized.
7921 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7922 (syms_of_frame): Initialize Qmaximized.
7923
7924 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7925 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
7926
7927 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
7928 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7929 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
7930 set gravity to NorthWestGravity when USE_GTK.
7931 (set_wm_state): New function.
7932 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
7933 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7934 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
7935 or the case when no window manager is running. That means remove calls
7936 to x_real_positions and x_fullscreen_adjust.
7937
7938 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7939 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7940 flush_and_sync.
7941 (xg_height_changed): New function.
7942 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
7943 and gtk_window_set_policy. Set frame gravity after parsing the
7944 geometry string.
7945 (xg_update_frame_menubar, free_frame_menubar)
7946 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7947 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7948 Remove calls to xg_frame_set_char_size.
7949
7950 2009-07-01 Kenichi Handa <handa@m17n.org>
7951
7952 * keyboard.c (decode_keyboard_code): New function.
7953 (tty_read_avail_input): Decode the input bytes if necessary.
7954
7955 * coding.c (setup_coding_system):
7956 Initialize coding->carryover_bytes to 0.
7957 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7958 use Qno_conversion.
7959
7960 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7961
7962 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7963
7964 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
7965
7966 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
7967
7968 2009-06-30 Jason Rumney <jasonr@gnu.org>
7969
7970 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7971 is already loaded.
7972 Set user model ID if supported (bug#1849).
7973
7974 2009-06-29 Jim Meyering <meyering@redhat.com>
7975
7976 Remove useless if-before-xfree test.
7977 * nsfont.m (nsfont_close): Remove useless test.
7978 * term.c (delete_tty): Likewise.
7979 * w32.c (system_process_attributes): Likewise.
7980 * w32font.c (w32font_close): Likewise.
7981 * xfaces.c (x_free_gc): Likewise.
7982 * xselect.c (buffer): Likewise.
7983
7984 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7985
7986 * process.c (send_process): Keep decoded string in a local
7987 variable and protect it from GC. (Bug#3521)
7988
7989 2009-06-28 Eli Zaretskii <eliz@gnu.org>
7990
7991 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7992 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7993
7994 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
7995
7996 * xdisp.c (start_display, handle_face_prop)
7997 (move_it_vertically_backward, cursor_row_fully_visible_p)
7998 (redisplay_window, try_window_id, produce_image_glyph):
7999 Delete some #ifdef-ed out code chunks that are now obsolete.
8000
8001 * xterm.c (x_update_window_begin, x_new_focus_frame)
8002 (x_scroll_bar_handle_click, handle_one_xevent)
8003 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8004 (x_make_frame_visible, x_make_frame_invisible)
8005 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8006 code chunks that are now obsolete.
8007
8008 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
8009
8010 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8011 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8012 for hours, when optimzation is enabled.
8013 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8014 (xd_read_message): Make them static.
8015
8016 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8017
8018 * term.c (turn_on_face): Allow simultaneously bold and dim
8019 terminal faces (Bug#3530).
8020
8021 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
8022
8023 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8024
8025 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8026 truncation glyphs (Bug#3686).
8027
8028 2009-06-27 Glenn Morris <rgm@gnu.org>
8029
8030 * m/pmax.h: Restore file, with only netbsd portions.
8031
8032 2009-06-26 David Reitter <david.reitter@gmail.com>
8033
8034 * nsterm.m (keydown): Avoid infinite loop.
8035
8036 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8037
8038 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8039 the arg FORCE_SYMBOL.
8040
8041 2009-06-25 Kenichi Handa <handa@m17n.org>
8042
8043 * fontset.c (fontset_find_font): When a usable rfont_def is found
8044 in a fallback font-group, make it the first element of the group.
8045
8046 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
8047
8048 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8049
8050 2009-06-24 Kenichi Handa <handa@m17n.org>
8051
8052 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8053 set for C.
8054 (fontset_font): Record the availability of a font for C both in
8055 the realized fontsets of the current one and the default one.
8056
8057 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8058
8059 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8060 conditional, it is always defined on AIX.
8061
8062 2009-06-23 Miles Bader <miles@gnu.org>
8063
8064 * window.c (Vrecenter_redisplay): New variable.
8065 (syms_of_window): Initialize it.
8066 (Qtty): New extern declaration.
8067 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8068
8069 2009-06-23 Jim Meyering <meyering@redhat.com>
8070
8071 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8072 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
8073 pointer dereferences are guaranteed to be valid.
8074
8075 2009-06-23 Kenichi Handa <handa@m17n.org>
8076
8077 * emacs.c (main): Call init_font ().
8078
8079 * font.h (Vfont_log): Extern it.
8080 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8081
8082 * font.c (font_sort_entities, font_list_entities)
8083 (font_matching_entity, font_open_entity)
8084 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8085 (Vfont_log): Delete static.
8086 (font_log_env_checked): Delete this variable.
8087 (font_add_log): Don't check font_log_env_checked.
8088 (font_deferred_log): Check Vfont_log.
8089 (init_font): New function.
8090
8091 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8092
8093 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8094
8095 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8096
8097 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8098
8099 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8100 (face_for_char): Don't call font_deferred_log here.
8101 (font_for_char): Likewise.
8102
8103 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
8104
8105 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8106 rather than its background_width for drawing the overline and
8107 underline (Bug#489).
8108
8109 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8110 rather than its background_width for drawing the overline and
8111 underline (Bug#489).
8112 (xg_default_icon_file): New variable.
8113 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8114 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
8115
8116 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8117 (load_overlay_strings): Remove externs.
8118 (fast_find_position): Function deleted.
8119 (mouse_face_from_buffer_pos): New function, based on
8120 fast_find_position. Correctly handle before-strings,
8121 display-strings, and after-strings (Bug#1220).
8122 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8123
8124 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
8125
8126 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
8127 (move_it_in_display_line_to, move_it_in_display_line_to)
8128 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8129
8130 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
8131
8132 * Branch for 23.1.
8133
8134 2009-06-21 Jason Rumney <jasonr@gnu.org>
8135
8136 * w32term.c (keyboard_codepage): New static variable.
8137 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8138 (w32_read_socket) [WM_CHAR]: Use it to decode character
8139 input (bug#3237).
8140 (w32_initialize): Initialize it.
8141 (codepage_for_locale): New function.
8142
8143 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
8144
8145 * process.c (status_message): Pass Faset index argument as a lisp
8146 object, so as to work with USE_LISP_UNION_TYPE.
8147
8148 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8149
8150 * coding.c (Ffind_coding_systems_region_internal):
8151 Cache checked characters.
8152
8153 2009-06-18 Kenichi Handa <handa@m17n.org>
8154
8155 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
8156
8157 2009-06-18 Andreas Schwab <aschwab@redhat.com>
8158
8159 * xdisp.c (redisplay_internal): Check that the frame is still
8160 live after redisplay of its windows.
8161 (redisplay_windows): Check that the window is still live.
8162
8163 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8164
8165 * coding.c (detect_coding_utf_16): Fix previous change.
8166
8167 2009-06-16 Kenichi Handa <handa@m17n.org>
8168
8169 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8170 UTF-16 by checking the dispersion of Eth and Oth bytes.
8171
8172 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8173
8174 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8175
8176 2009-06-15 Kenichi Handa <handa@m17n.org>
8177
8178 * process.c (status_message): Fix previous change. Be sure to
8179 decode a localized string.
8180
8181 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8182
8183 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8184 add comment explaining why.
8185
8186 2009-06-14 Sidney Markowitz <sidney@sidney.com>
8187
8188 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
8189
8190 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8191
8192 * nsfont.m (ns_attribute_value): Remove.
8193 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8194 (ns_has_attribute): Shrink the normal range.
8195 (ns_findfonts): Don't worry about requested spec in determining
8196 need for synthItal.
8197 (ns_get_covering_families): Retain scriptToFamilies.
8198
8199 2009-06-14 Seiji Zenitani <zenitani@mac.com>
8200
8201 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8202
8203 2009-06-11 Kenichi Handa <handa@m17n.org>
8204
8205 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8206 overhang for the static composition case.
8207
8208 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8209
8210 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8211 overhang for the automatic composition case.
8212
8213 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8214 composition case.
8215
8216 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
8217
8218 * xdisp.c (get_next_display_element): When handling wrap-prefix
8219 and line-prefix, treat \n as a control character (bug#3502).
8220
8221 2009-06-10 Kenichi Handa <handa@m17n.org>
8222
8223 * font.c (font_parse_family_registry): Fix for one-char foundry.
8224 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8225
8226 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8227
8228 * process.c (status_message): Fix handling of multibyte signal
8229 string (Bug#3499).
8230
8231 2009-06-09 Jim Meyering <meyering@redhat.com>
8232
8233 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8234 color name is missing.
8235
8236 2009-06-09 Kenichi Handa <handa@m17n.org>
8237
8238 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8239 FROM-CODE and TO-CODE are codepoints of CHARSET.
8240
8241 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8242
8243 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8244
8245 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8246
8247 Changes to support :script/:lang/:otf in NS font driver.
8248 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8249 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8250 indicate not part of font driver interface, and change callers.
8251 (ns_get_family): Remove pointless null check.
8252 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8253 ns_spec_to_descriptor, ns_descriptor_to_entity.
8254 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8255 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8256 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8257 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8258 (ns_get_req_script, ns_accumulate_script_ranges)
8259 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8260 New functions.
8261 (nsfont_list, nsfont_match): Use ns_findfonts.
8262 (nsfont_open): Use font descriptor instead of traits.
8263 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8264 (dump_glyphstring): Rename to ns_dump_glyphstring.
8265
8266 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8267
8268 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8269
8270 * fontset.c (fontset_from_font): Remove NS-specific code.
8271
8272 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
8273
8274 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8275 nonactive windows.
8276
8277 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
8278
8279 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
8280
8281 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8282
8283 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8284
8285 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
8286
8287 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8288 account for the overflowing of newlines into the last glyph on the
8289 display line (Bug#3482).
8290
8291 2009-06-05 David Reitter <david.reitter@gmail.com>
8292
8293 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8294 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
8295 Fns_selection_exists_p, Fns_selection_owner_p.
8296
8297 2009-06-03 Jason Rumney <jasonr@gnu.org>
8298
8299 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8300 available. (Bug#3379)
8301
8302 2009-05-29 Kenichi Handa <handa@m17n.org>
8303
8304 * coding.c (get_translation_table):
8305 Check Venable_character_translation.
8306
8307 2009-05-26 David Reitter <david.reitter@gmail.com>
8308
8309 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8310 (x_make_frame_visible): Move frame to front rather than calling
8311 ns_raise_frame().
8312 (keyDown:): Do not swallow events that aren't re-sent if frame
8313 isn't key window.
8314 (drawRect:): Do not set visibility/iconified flags because
8315 drawRect may be called by NSView even if the frame is hidden.
8316
8317 * nsfns.m (Fx_create_frame): Follow other ports in
8318 determining visibility; default to t. Ensure async_visible is set.
8319
8320 2009-05-23 Eli Zaretskii <eliz@gnu.org>
8321
8322 * dired.c (Ffile_attributes): Doc fix.
8323
8324 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
8325
8326 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8327
8328 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8329
8330 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8331 and xfont_scratch_props.
8332 (syms_of_xfont): Do it here instead.
8333 (xfont_find_ccl_program): Delete, unused.
8334 (xfont_open): Delete unused var `i'.
8335
8336 2009-05-21 Kenichi Handa <handa@m17n.org>
8337
8338 * fontset.c (Qlatin): Don't make it static.
8339
8340 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8341 New functions.
8342 (xfont_scripts_cache, xfont_scratch_props): New variables.
8343 (Qlatin, Vscalable_fonts_allowed): Extern it.
8344 (xfont_list_pattern): Argument changed. Callers changed.
8345 Check Vscalable_fonts_allowed. Check the support of a script.
8346 (xfont_list): Don't reject a font spec with :script property.
8347 (xfont_has_char): Fix setting of encoding.
8348 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8349 xfont_scratch_props.
8350
8351 2009-05-19 Kenichi Handa <handa@m17n.org>
8352
8353 * font.c (font_sort_entities): Rename from font_sort_entites.
8354 Callers changed.
8355
8356 2009-05-18 Kenichi Handa <handa@m17n.org>
8357
8358 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8359
8360 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8361
8362 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8363 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8364
8365 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8366
8367 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8368 (x_delete_terminal): Dissociate resource database from display and
8369 then call XrmDestroyDatabase before closing display.
8370
8371 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8372
8373 * nsterm.m (ns_read_socket): Remove unused variable.
8374 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8375 whether selected frame is viable before raising it (based on patch
8376 by David Reitter), and improve commentary.
8377 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
8378
8379 2009-05-15 Kenichi Handa <handa@m17n.org>
8380
8381 * font.c (Ffont_spec): Check arguments.
8382
8383 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
8384
8385 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8386 weight when testing attributes (Bug#3282).
8387
8388 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8389
8390 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8391 what we expect to get in the next ConfigureNotify event.
8392
8393 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8394 before Xft one (Bug#1696).
8395
8396 2009-05-07 David Reitter <david.reitter@gmail.com>
8397
8398 * nsfns.m (Fx_display_planes): Compute bitplanes using
8399 NSBitsPerPixelFromDepth (Bug#3207).
8400
8401 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
8402
8403 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8404
8405 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
8406
8407 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8408
8409 2009-05-07 David Reitter <david.reitter@gmail.com>
8410
8411 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8412 Respect mouse face background.
8413
8414 2009-05-07 David Reitter <david.reitter@gmail.com>
8415
8416 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8417 Mouse movement/highlight: bracket drawing operations
8418 in ns_update_begin and ns_update_end.
8419
8420 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8421
8422 * nsfns.m (ns_get_screen): Rewrite.
8423 Don't presume selected-frame is of type `ns'.
8424
8425 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8426 all drivers.
8427
8428 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8429
8430 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8431
8432 * keyboard.h (add_user_signal): Fix typo in extern.
8433
8434 * lisp.h (add_user_signal): Remove extern.
8435
8436 * unexelf.c (unexec): Consider a section to precede the .bss section
8437 if its addresses overlap that of .bss.
8438 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8439 instead of dumping process.
8440
8441 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8442
8443 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8444
8445 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8446
8447 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8448
8449 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8450
8451 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8452 any statements.
8453
8454 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8455
8456 * process.c (read_process_output): Make sure the current buffer is
8457 always restored.
8458
8459 * coding.c (record_conversion_result): Don't modify
8460 Vlast_code_conversion_error for successful result.
8461 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8462
8463 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8464
8465 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
8466 (load_charset_map): Remove unnecessary code.
8467
8468 2009-04-30 David Reitter <david.reitter@gmail.com>
8469
8470 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
8471 through f24.
8472
8473 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
8474
8475 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8476
8477 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8478 face_at_buffer_position.
8479 (face_before_or_after_it_pos, get_next_display_element)
8480 (note_mouse_highlight): Update face_at_buffer_position call.
8481
8482 * term.c (term_mouse_highlight):
8483 * msdos.c (IT_note_mouse_highlight):
8484 * fontset.c (Finternal_char_font):
8485 * font.c (font_at, font_range): Update face_at_buffer_position call.
8486
8487 * dispextern.h (face_at_buffer_position): Update prototype.
8488
8489 2009-04-30 Kenichi Handa <handa@m17n.org>
8490
8491 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
8492
8493 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8494
8495 * callproc.c (Fcall_process): Fix GC protection. Make sure
8496 current buffer is always restored.
8497
8498 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8499
8500 * atimer.c (init_atimer): Also clear stopped_atimers.
8501
8502 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8503
8504 * process.c (create_process): Clean up merger residues of
8505 2008-07-17 change.
8506
8507 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
8508
8509 * lread.c (Vread_circle): New variable.
8510 (read1): Disable recursive read if Vread_circle is nil.
8511
8512 2009-04-29 Kenichi Handa <handa@m17n.org>
8513
8514 * fontset.h (set_default_ascii_font): Delete extern.
8515
8516 * fontset.c (set_default_ascii_font): Delete this unused function.
8517
8518 * frame.c (x_set_font): When ARG is a font-object, check if the
8519 font-object matches with the ASCII font-spec of the frame's
8520 fontset. If not, create a new fontset for the frame. (Bug #3075)
8521
8522 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8523
8524 * fns.c (Flocale_info): Protect vector from GC during decoding.
8525
8526 * process.c (Fstart_process): Protect argv strings from GC during
8527 encoding.
8528
8529 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8530
8531 * sysdep.c: Include <ctype.h>.
8532
8533 2009-04-27 David Reitter <david.reitter@gmail.com>
8534
8535 * nsfont.m (nsfont_open): Remove unused variable shrink.
8536 Remove commented-out code.
8537
8538 2009-04-26 Johan Bockgård <bojohan@gnu.org>
8539
8540 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8541
8542 2009-04-25 Jason Rumney <jasonr@gnu.org>
8543
8544 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8545
8546 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8547
8548 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8549 Swap bytes in short integer if fringe bitmap width > 8.
8550
8551 2009-04-23 Kenichi Handa <handa@m17n.org>
8552
8553 * xfaces.c (Fx_list_fonts): If a font size is specified in
8554 PATTERN, set it in returned scalable fonts.
8555
8556 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
8557
8558 * keyboard.c (Fset_input_meta_mode): Doc fix.
8559
8560 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8561
8562 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
8563
8564 * coding.c (Fterminal_coding_system): Doc fix.
8565
8566 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8567 (Fx_display_pixel_height, Fx_display_planes)
8568 (Fx_display_color_cells, Fx_server_max_request_size)
8569 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8570 (Fx_display_mm_height, Fx_display_mm_width)
8571 (Fx_display_backing_store, Fx_display_visual_class)
8572 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8573 Doc fixes, replacing "terminal id" with "terminal object".
8574 (check_x_display_info): Handle terminal objects instead of
8575 terminal ids.
8576
8577 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8578 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
8579 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8580 Doc fixes, replacing "terminal id" with "terminal object".
8581
8582 2009-04-21 Kenichi Handa <handa@m17n.org>
8583
8584 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
8585 (font_score): Check AVGWIDTH too.
8586
8587 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8588 worst case.
8589 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8590 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
8591
8592 2009-04-19 Jason Rumney <jasonr@gnu.org>
8593
8594 The following changes fix Bug#3005 for wide glyphs on each platform,
8595 without reintroducing Bug#1258 for stretch glyphs.
8596
8597 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8598 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8599 get_phys_cursor_geometry.
8600
8601 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
8602 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8603 using get_phys_cursor_geometry.
8604
8605 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8606 correctly calculated.
8607
8608 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8609
8610 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8611 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
8612 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8613 is deprecated.
8614
8615 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8616
8617 * font.c (font_put_frame_data): Use xfree instead of free.
8618
8619 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
8620
8621 * w32font.c (Qja, Qko): Remove declarations.
8622 (syms_of_w32font): Don't DEFSYM them.
8623
8624 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
8625
8626 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8627
8628 * font.h (Qja, Qko): Extern them.
8629
8630 * ftfont.c (Qja, Qko): Remove declarations.
8631
8632 * xfont.c (Qja, Qko): Remove declarations.
8633
8634 2009-04-17 Kenichi Handa <handa@m17n.org>
8635
8636 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8637 string from a vector to handle Latin-1 characters correctly.
8638
8639 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8640 entity even if the cache hits.
8641
8642 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8643
8644 * search.c (boyer_moore): Use zero as marker value for a possible
8645 match instead of depending on overflow behavior. (Bug#2844)
8646
8647 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8648 * lisp.h: Adjust prototypes.
8649
8650 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
8651
8652 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8653 change (Bug#3003).
8654
8655 2009-04-16 Kenichi Handa <handa@m17n.org>
8656
8657 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
8658
8659 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8660 adstyle.
8661
8662 * ftfont.c (Qja, Qko): Don't make them static.
8663 (enum ftfont_cache_for): New enum.
8664 (fc_charset_table): Undo the previous change.
8665 (ftfont_get_latin1_charset): Delete it.
8666 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8667 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
8668 non-scarable font, try to get AVERAGE_WIDTH.
8669 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8670 Change ft_face_cache from a list of a hash-table. Don't check
8671 `ja' and `ko' adstyle here.
8672 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8673 FTFONT_CACHE_FOR_CHARET.
8674 (ftfont_get_charset): Undo the previous change.
8675 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
8676 (ftfont_close): Likewise.
8677 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8678
8679 * font.c (font_sort_entites): Change the meaning of the arg
8680 BEST-ONLY. Don't optimize for VEC of lenght 1.
8681 (font_select_entity): Just return the value of font_sort_entites.
8682
8683 * xfaces.c (merge_face_vectors): Reflect font properties in
8684 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8685 font_clear_prop if a face attribute doesn't change.
8686
8687 * charset.h (charset_ksc5601): Extern it.
8688
8689 * charset.c (charset_ksc5601): New variable.
8690 (Fdefine_charset_internal): Set charset_ksc5601.
8691 (init_charset_once): Initialize charset_ksc5601 to -1.
8692
8693 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8694
8695 * fileio.c (history_delete_duplicates): Remove unused declaration.
8696
8697 * callint.c (history_delete_duplicates): New declaration.
8698 (Fcall_interactively): Remove command history duplicates when
8699 history_delete_duplicates is true.
8700
8701 2009-04-14 Eli Zaretskii <eliz@gnu.org>
8702
8703 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8704
8705 2009-04-14 Kenichi Handa <handa@m17n.org>
8706
8707 * font.c (Ffont_info): Fix docstring. Fix the second element of
8708 the returned value (bug#2949).
8709
8710 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
8711
8712 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8713
8714 2009-04-14 Kenichi Handa <handa@m17n.org>
8715
8716 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8717 encoding charset is ascii_compatible.
8718
8719 * charset.c (Fdefine_charset_internal): Make charset
8720 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8721 code_offset is 0, and covers all ASCII characters.
8722
8723 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8724
8725 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8726 (ns_string_to_pasteboard_internal):
8727 * nsmenu.m (process_dialog):
8728 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8729 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8730 * lisp.h (Fx_load_color_file): Declare.
8731
8732 2009-04-13 Kenichi Handa <handa@m17n.org>
8733
8734 * font.c (font_delete_unmatched): Preserve the order of list elements.
8735 (font_select_entity): Suppress the code to optimize for the same
8736 kind of fonts.
8737 (font_load_for_lface): Get a font that supports at least ASCII
8738 characters.
8739
8740 * ftfont.c (Qja, Qko): New variables.
8741 (fc_charset_table): Delete uniquifier data for iso8859-1.
8742 (ftfont_get_latin1_charset): New function.
8743 (get_adstyle_property): New function.
8744 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8745 bitmap fonts.
8746 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8747 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8748 `ko' or `ja'.
8749 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
8750 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
8751 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8752 property.
8753 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8754 (syms_of_ftfont): DEFSYM Qja and Qko.
8755
8756 2009-04-09 Kenichi Handa <handa@m17n.org>
8757
8758 * charset.c (map_charset_chars): For a charset of `superset'
8759 method, fix calculation of code range.
8760
8761 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8762 from the list of extra properties.
8763 (font_clear_prop): Be sure to delete `:name' font property.
8764
8765 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8766
8767 * dispnew.c (redraw_overlapping_rows): Fix detection of
8768 overlapping for topmost and bottommost rows.
8769
8770 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
8771
8772 2009-04-06 Jason Rumney <jasonr@gnu.org>
8773
8774 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8775
8776 2009-04-06 Kenichi Handa <handa@m17n.org>
8777
8778 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8779
8780 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8781
8782 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8783
8784 * ftfont.c (ftfont_open): Fix checking of the return value of
8785 FT_Load_Char. Fix setting font->underline_thickness.
8786
8787 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
8788
8789 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8790 (Fterminal_parameters, Fterminal_parameter)
8791 (Fset_terminal_parameter): In doc string, refer to terminal
8792 objects rather than terminal ids.
8793
8794 2009-04-04 Eli Zaretskii <eliz@gnu.org>
8795
8796 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8797 ret_lim_data. (Bug#2867)
8798
8799 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
8800
8801 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8802 so they don't get wider than the window, matching 2006-01-23
8803 change to the partner function in xdisp.c (Bug#2800).
8804
8805 2009-04-03 Kenichi Handa <handa@m17n.org>
8806
8807 * print.c (print_object): Make each lowest sub_char_table start a
8808 new line (Bug#2866).
8809
8810 2009-04-02 Kenichi Handa <handa@m17n.org>
8811
8812 * fontset.c (fontset_font): Record no-font when a fontset
8813 explicitly tells not to try another font-specs.
8814
8815 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8816
8817 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8818
8819 2009-03-30 Kenichi Handa <handa@m17n.org>
8820
8821 * fontset.c (fontset_from_font): Specify only registry in a
8822 font-spec for all characters supported by that registry.
8823
8824 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8825 even if HAVE_M17N_FLT is not defined.
8826
8827 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8828
8829 * ftfont.c: Conditionalize prototyping and use of
8830 ftfont_variation_glyphs.
8831
8832 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8833
8834 * frame.c (delete_frame): Work around compiler bug.
8835
8836 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8837 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8838 Some more EMACS_INT.
8839 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8840
8841 * xdisp.c (dump_glyph): Fix typo.
8842
8843 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8844 (adjust_markers_gap_motion, adjust_markers_for_delete)
8845 (adjust_markers_for_insert, adjust_point)
8846 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8847 (make_gap, copy_text, count_size_as_multibyte, insert)
8848 (insert_and_inherit, insert_before_markers)
8849 (insert_before_markers_and_inherit, insert_1)
8850 (count_combining_before, count_combining_after, insert_1_both)
8851 (insert_from_string, insert_from_string_before_markers)
8852 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8853 (insert_from_buffer_1, adjust_after_replace)
8854 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8855 (replace_range_2, del_range, del_range_1, del_range_byte)
8856 (del_range_both, del_range_2, modify_region)
8857 (prepare_to_modify_buffer, signal_before_change)
8858 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8859 for buffer positions and sizes.
8860 * lisp.h: Adjust prototypes accordingly.
8861
8862 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8863 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8864 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8865
8866 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8867
8868 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8869
8870 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8871 lines and columns so we keep the same pixel height and width.
8872
8873 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8874 the property _NET_WM_STATE has changed.
8875 (x_handle_net_wm_state): New function to update frame parameter
8876 fullscreen.
8877 (x_term_init): Initialize atoms for _NET_WM_STATE.
8878
8879 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8880
8881 2009-03-27 Kevin Ryde <user42@zip.com.au>
8882
8883 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8884 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8885 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8886 (Fgpm_mouse_stop): Pass that new parameter.
8887 * termhooks.h (close_gpm): Adjust prototype.
8888
8889 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8890
8891 * lisp.h (Fx_focus_frame): Declare.
8892
8893 * callint.c (Fcall_interactively): For '^' just delegate the work to
8894 handle-shift-selection.
8895 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8896
8897 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
8898
8899 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8900
8901 * data.c (Qinteractive_form): New variable.
8902 (Finteractive_form): Use it.
8903
8904 * eval.c (Fcommandp): Use Qinteractive_form.
8905
8906 2009-03-24 Jason Rumney <jasonr@gnu.org>
8907
8908 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8909 Calculate total size precisely. Decode environment variables
8910 before substituting. (Bug#38)
8911
8912 2009-03-24 Kenichi Handa <handa@m17n.org>
8913
8914 * font.c (find_font_encoding): Return Qnil for unsupported
8915 encoding (Bug#2722).
8916
8917 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8918
8919 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8920 that gdpy is set.
8921
8922 2009-03-22 Alan Mackenzie <acm@muc.de>
8923
8924 * callint.c (Finteractive): Clarify the doc string - even
8925 promptless elements need \n separators.
8926
8927 2009-03-22 Jason Rumney <jasonr@gnu.org>
8928
8929 * w32term.c (syms_of_w32term): Doc fix for
8930 x-use-underline-position-properties.
8931
8932 2009-03-21 Eli Zaretskii <eliz@gnu.org>
8933
8934 * w32.c (getpwuid): Change argument type to unsigned.
8935 (struct w32_id): Change type of `rid' member to unsigned.
8936 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8937 argument ID to unsigned. All callers changed.
8938 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8939
8940 2009-03-20 Eli Zaretskii <eliz@gnu.org>
8941
8942 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8943 negative, produce a float value.
8944
8945 * dired.c (make_uid, make_gid): New functions.
8946 (Ffile_attributes): Use them to avoid negative UID and GID.
8947
8948 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
8949
8950 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8951 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8952 Fix typos in docstrings.
8953
8954 2009-03-19 Kenichi Handa <handa@m17n.org>
8955
8956 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
8957 changed, use font_load_for_lface to get a new font object.
8958 Call free_realized_fontset after handling ASCII font change.
8959
8960 * frame.c (x_set_font): Handle the case that ARG is a cons.
8961
8962 2009-03-19 Glenn Morris <rgm@gnu.org>
8963
8964 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8965
8966 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
8967
8968 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8969
8970 2009-03-19 Kenichi Handa <handa@m17n.org>
8971
8972 * charset.c (load_charset_map_from_file): When a mapfile can't be
8973 loaded, signal an error.
8974
8975 2009-03-18 Eli Zaretskii <eliz@gnu.org>
8976
8977 * dired.c (Ffile_attributes): Make sure UID and GID are always
8978 positive, even if the value is too large for a positive EMACS_INT.
8979 Doc fix.
8980
8981 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8982
8983 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8984
8985 * xmenu.c (xdialog_show): Move Fredisplay call ...
8986 (Fx_popup_dialog): ... here.
8987
8988 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8989
8990 * dired.c (file_name_completion): Disable the first optimization just
8991 installed, since it is not implemented correctly.
8992
8993 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8994
8995 * dired.c (file_name_completion): Check completion-ignored-extensions
8996 only if the entry can affect bestmatch.
8997 Stop the search early, as Ftry_completion already does.
8998
8999 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
9000
9001 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
9002
9003 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
9004
9005 * keyboard.c (parse_menu_item): Don't display remappings as menu
9006 equivalent bindings (Bug#788).
9007
9008 2009-03-15 Jason Rumney <jasonr@gnu.org>
9009
9010 * w32term.h (WM_EMACS_PAINT): New message.
9011 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9012 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9013 before passing to lisp thread. (Bug#950)
9014
9015 2009-03-14 David Reitter <david.reitter@gmail.com>
9016
9017 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9018 variable as it was never reset.
9019 (ns_term_init): Remove initialization of Lisp-settable defaults
9020 and ns_expand_space.
9021 (-setPanelFromDefaultValues): Remove ns_expand_space.
9022 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9023 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
9024 i.e. no additional spacing, similar to Carbon port.
9025
9026 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9027 * nsfns.m (ns-popup-prefs-panel): Remove.
9028
9029 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9030
9031 * sound.c (alsa_configure): Remove call to deprecated
9032 snd_pcm_sw_params_set_xfer_align.
9033
9034 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
9035
9036 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9037 after clicking in a detached tool bar.
9038 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9039
9040 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9041
9042 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9043 int/Lisp_Object mixup).
9044
9045 2009-03-13 Kenichi Handa <handa@m17n.org>
9046
9047 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
9048 Handle NAME nil and t correctly. Callers changed.
9049 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9050 (set_fontset_font): Change ARG to a vector. Handle range_list in
9051 ARG correctly.
9052 (Fset_fontset_font): Fix the case that TARGET is both a script
9053 name and charset name. Adjust the arg to set_fontset_font for
9054 the above change.
9055 (fontset_from_font): Fix previous change.
9056 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
9057 entry. If FONTSET is the default fontset, don't set the extra
9058 slot of the returning char-table.
9059
9060 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
9061
9062 * nsfns.m (Fx_close_connection): Doc fix.
9063 (Fns_do_applescript): Reflow docstring.
9064 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9065 (Fx_display_pixel_width, Fx_display_pixel_height)
9066 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9067 Fix typos in docstrings.
9068 (Fns_set_alpha): Fix typos in error messages.
9069
9070 2009-03-12 David Reitter <david.reitter@gmail.com>
9071
9072 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
9073 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9074 were used for such events.
9075
9076 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9077 (toggleToolbar, performDragOperation, runHelp): Use it.
9078
9079 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
9080 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9081
9082 2009-03-11 Kenichi Handa <handa@m17n.org>
9083
9084 * font.h (font_open_by_spec): Extern it.
9085
9086 * font.c (font_open_by_spec): New function.
9087 (font_open_by_name): Use font_open_by_spec.
9088
9089 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9090 fontset of the frame.
9091
9092 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9093 modify the default font of frames that use this fontset.
9094 (num_auto_fontsets): New variable.
9095 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9096 name. Be sure to set FONTSET_ASCII to the correct font name.
9097 (update_auto_fontset_alist): New function.
9098
9099 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
9100
9101 * makefile.w32-in: Update dependencies.
9102
9103 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9104
9105 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9106
9107 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9108
9109 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9110
9111 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
9112
9113 * lread.c (Feval_buffer): Doc fix.
9114
9115 2009-03-09 Kenichi Handa <handa@m17n.org>
9116
9117 * charset.c (Qfile_name_handler_alist): Extern it.
9118 (load_charset_map_from_file): Temporarily bind
9119 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9120
9121 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
9122
9123 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9124 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
9125
9126 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9127
9128 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9129 (x_set_window_size): Change back to calculated method of setting
9130 toolbar height under Cocoa. (Bug#2546)
9131 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9132 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9133
9134 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9135
9136 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9137 accelerator in parens under GNUstep.
9138
9139 2009-03-06 Kenichi Handa <handa@m17n.org>
9140
9141 These changes are to detect incorrect composition sequence without
9142 looking ahead the source. (Bug#2370)
9143
9144 * coding.h: Include "composite.h".
9145 (enum compisition_state): New enum.
9146 (struct compisition_status): New struct.
9147 (struct iso_2022_spec): New member cmp_status.
9148 (struct emacs_mule_spec): New struct.
9149 (struct coding_system): New members ctext_extended_segment_len and
9150 embedded_utf_8. Change the union member
9151 spec.emacs_mule_full_support to spec.emacs_mule.
9152
9153 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9154 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
9155 (MAX_ANNOTATION_LENGTH): Define to 5.
9156 (ADD_COMPOSITION_DATA): New arg nbytes.
9157 (emacs_mule_char): New arg cmp_status.
9158 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9159 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9160 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9161 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9162 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9163 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9164 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9165 (EMACS_MULE_COMPOSITION_END): New macro.
9166 (emacs_mule_finish_composition): New function.
9167 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9168 (decode_coding_emacs_mule): Avoid long looking ahead while
9169 handling composition.
9170 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9171 (ENCODE_COMPOSITION_RULE): New macro.
9172 (finish_composition): New function.
9173 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9174 (DECODE_COMPOSITION_START): New implementation.
9175 (DECODE_COMPOSITION_END): Likewise.
9176 (STORE_COMPOSITION_RULE): New macro.
9177 (decode_coding_iso_2022): Avoid long looking ahead while handling
9178 composition, CTEXT extended segment, and embedded UTF-8.
9179 (setup_coding_system): For a coding of type iso-2022, reset
9180 CODING_ISO_EXTSEGMENT_LEN (coding) and
9181 CODING_ISO_EMBEDDED_UTF_8 (coding).
9182 (get_translation): Delete arguments last_block, from_nchars,
9183 to_nchars. Callers changed.
9184 (produce_chars): Don't modify charbuf. Adjusted for the change of
9185 get_translation.
9186 (produce_composition): Adjust for the new annotation sequence.
9187 (handle_composition_annotation): Likewise.
9188 (consume_chars): Adjust for the change of get_translation.
9189
9190 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9191
9192 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
9193
9194 2009-03-05 Kenichi Handa <handa@m17n.org>
9195
9196 * font.c (font_select_entity): New function.
9197 (font_find_for_lface): Use font_select_entity to select a font.
9198
9199 * fontset.c (fontset_find_font): If a font found without
9200 restricting to the characters C doesn't support C, try to find a
9201 font with C restriction.
9202
9203 2009-03-04 Nikolaj Schumacher <me@nschum.de>
9204
9205 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
9206
9207 2009-03-04 Jason Rumney <jasonr@gnu.org>
9208
9209 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
9210 characters that have already been read. (Bug#2569)
9211
9212 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9213 Log an error message if check_image_size failed.
9214 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
9215 (gs_load): Mention max-image-size in size error message. (Bug#2560)
9216
9217 2009-03-02 Eli Zaretskii <eliz@gnu.org>
9218
9219 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9220 when decoding process output.
9221
9222 2009-03-01 Richard M Stallman <rms@gnu.org>
9223
9224 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9225
9226 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9227
9228 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9229
9230 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9231 (decode_coding_emacs_mule, decode_coding_iso_2022)
9232 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9233 (decode_coding_raw_text, decode_coding_charset)
9234 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9235 Honor inhibit-eol-conversion. (Bug #2186)
9236
9237 2009-02-28 Jason Rumney <jasonr@gnu.org>
9238
9239 * coding.c (detect_coding_charset): If not checking latin extra,
9240 fail on characters between 0x80 and 0xA0. (Bug#2354)
9241
9242 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9243
9244 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
9245 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
9246
9247 2009-02-27 Glenn Morris <rgm@gnu.org>
9248
9249 * callint.c (Finteractive): Doc fix.
9250
9251 2009-02-27 Kenichi Handa <handa@m17n.org>
9252
9253 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9254
9255 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
9256
9257 * font.c (font_style_to_value): Set value for unknown symbols to
9258 100 instead of 255.
9259 (weight_table, slant_table, width_table): Treat "unspecified" as
9260 the default value.
9261
9262 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
9263
9264 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9265
9266 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
9267
9268 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9269 error as soon as a recursive load is detected.
9270
9271 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9272
9273 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9274 before caching.
9275
9276 2009-02-24 Kenichi Handa <handa@m17n.org>
9277
9278 * fontset.c (fontset_find_font): Fix the condition for checking
9279 unavailable font.
9280
9281 2009-02-24 Glenn Morris <rgm@gnu.org>
9282
9283 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9284 whitespace that confuses documentation.
9285
9286 2009-02-23 Miles Bader <miles@gnu.org>
9287
9288 * process.c (Flist_system_processes, Fprocess_attributes)
9289 (syms_of_process): Rename `system-process-attributes' to
9290 `process-attributes'.
9291
9292 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9293
9294 * coding.h (struct coding_system): Make safe_charsets a pointer to
9295 unsigned char.
9296 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9297 being 255.
9298 (SAFE_CHARSET_P): Likewise.
9299 (setup_iso_safe_charsets): Properly setup safe_charsets.
9300 (Fdefine_coding_system_internal): Likewise.
9301 (setup_coding_system): Likewise. Remove unneeded casts.
9302 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9303 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9304 unneeded casts.
9305
9306 * insdel.c (del_range_2): Don't modify gap contents when called
9307 from decode_coding_object. (Bug#1809)
9308
9309 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
9310
9311 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9312 Qfont_object.
9313 (Ftype_of): Recognize font objects.
9314
9315 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9316
9317 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9318 moved to data.c.
9319
9320 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9321
9322 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9323 async_iconified. Based on a patch by Christian Lynbech
9324 <christian.lynbech@tieto.com>.
9325 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9326
9327 2009-02-20 Glenn Morris <rgm@gnu.org>
9328
9329 * syntax.c (Fskip_chars_forward): Fix doc typo.
9330
9331 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
9332
9333 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9334
9335 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
9336
9337 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9338
9339 2009-02-19 Kenichi Handa <handa@m17n.org>
9340
9341 * coding.c (detect_coding): Preserve coding->mode.
9342 Don't overflow coding->carryover. (Bug#2370)
9343
9344 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9345
9346 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9347
9348 2009-02-18 Kenichi Handa <handa@m17n.org>
9349
9350 * font.c (font_check_otf_features): Fix handling of `nil' element.
9351 (Ffont_spec): Describe :lang and :otf in the docstring.
9352
9353 2009-02-16 Andreas Schwab <schwab@suse.de>
9354
9355 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9356 string.
9357
9358 2009-02-16 Kenichi Handa <handa@m17n.org>
9359
9360 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
9361 (Bug#1723)
9362
9363 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
9364
9365 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
9366
9367 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9368 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9369
9370 2009-02-14 Eli Zaretskii <eliz@gnu.org>
9371
9372 * msdos.c (MAX_SCREEN_BUF): New macro.
9373 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9374 Encode the entire run of glyphs sharing the same face, instead of
9375 doing that one glyph at a time (fixes a bug with displaying
9376 double-size characters).
9377
9378 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9379
9380 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9381
9382 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9383 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
9384 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
9385
9386 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
9387 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
9388
9389 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9390
9391 * keyboard.c (adjust_point_for_property): Allow stopping between two
9392 invisible areas.
9393
9394 2009-02-12 Jason Rumney <jasonr@gnu.org>
9395
9396 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9397 (add_font_entity_to_list): Call check_face_name even when family
9398 is unspecified.
9399
9400 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9401 Release DC when finished. Use NULL window to refer to desktop.
9402 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
9403
9404 * w32font.c (add_font_entity_to_list): Fix check for substituted
9405 raster fonts. (Bug#2219)
9406
9407 2009-02-12 Kenichi Handa <handa@m17n.org>
9408
9409 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9410 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9411 (autocmp_chars): Use fast_looking_at. Don't compose more
9412 characters than MAX_COMPOSITION_COMPONENTS.
9413 (find_automatic_composition): While looking forward and backward,
9414 check static composition. Fix where to stop looking forward.
9415 (composition_adjust_point): Fix checking of static composition.
9416 (Fcomposition_get_gstring): Pay attention to
9417 MAX_COMPOSITION_COMPONENTS.
9418
9419 * lisp.h (fast_looking_at): Extern it.
9420
9421 * search.c (fast_looking_at): New function.
9422
9423 * term.c (encode_terminal_code): Adjust for the change of
9424 <struct glyph>.u.cmp.to.
9425 (append_composite_glyph): Likewise.
9426
9427 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
9428 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9429 composition.
9430 (append_composite_glyph): Adjust for the change of
9431 <strcut glyph>.u.cmp.to.
9432
9433 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
9434
9435 * casetab.c (init_casetab_once):
9436 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9437 * font.c (font_update_lface):
9438 * fontset.c (Fnew_fontset):
9439 * ftfont.c (ftfont_drive_otf):
9440 * xfont.c (xfont_open):
9441 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9442
9443 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9444
9445 * fileio.c (Fwrite_region): !NILP -> CONSP.
9446
9447 2009-02-10 Andreas Schwab <schwab@suse.de>
9448
9449 * process.c (send_process): Properly relocate pointer into data
9450 when using encoded data. (Bug#2272)
9451
9452 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9453
9454 * coding.c (detect_coding_charset): Fix previous change.
9455
9456 2009-02-08 Jason Rumney <jasonr@gnu.org>
9457
9458 * w32fns.c (w32_hide_hourglass): Handle case where frame
9459 disappeared while hourglass was displayed. (Bug #2193)
9460
9461 2009-02-07 Andreas Schwab <schwab@suse.de>
9462
9463 * unexelf.c (unexec): Fix error message.
9464
9465 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9466
9467 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
9468 when modal window is active. (Bug #2152)
9469 (applicationShouldTerminate:): Remove now-unneeded while loop
9470 around NSRunAlertPanel.
9471
9472 * nsmenu.m (popupSession): New file-global variable.
9473 (pop_down_menu): End the popupSession before closing dialog.
9474 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9475 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9476 don't query NSApp for events (just sleep instead).
9477
9478 2009-02-07 Eli Zaretskii <eliz@gnu.org>
9479
9480 * coding.c (syms_of_coding) <translation-table-for-input>:
9481 Modify doc string to discourage use for character code unification.
9482
9483 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9484
9485 * atimer.c (run_timers): Update pending_atimers.
9486
9487 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
9488
9489 * image.c (svg_load_image): Fix last change.
9490
9491 * xfns.c (Fx_create_frame): Signal an error if no font is
9492 found (Bug#2147).
9493
9494 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
9495
9496 * character.c (syms_of_character) <script-representative-chars>:
9497 Fix typo in docstring.
9498
9499 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9500
9501 * nsmenu.m (pop_down_menu): New function.
9502 (ns_popup_dialog): Call it on unwind.
9503 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9504 call timer_check() (Bug#2154).
9505 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9506 handling_signal is set.
9507 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9508
9509 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
9510
9511 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9512
9513 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9514
9515 * keyboard.c (poll_for_input_1, handle_async_input):
9516 Set handling_signal under HAVE_NS.
9517
9518 2009-02-04 Glenn Morris <rgm@gnu.org>
9519
9520 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9521
9522 2009-02-04 Kenichi Handa <handa@m17n.org>
9523
9524 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9525
9526 * charset.c (Fchar_charset): New optional arg restriction.
9527
9528 * coding.h (coding_system_charset_list): Extern it.
9529
9530 * coding.c (coding_system_charset_list): New function.
9531
9532 * composite.c: Include coding.h and termhooks.h.
9533 (composition_gstring_p): Fix for the terminal case.
9534 (composition_gstring_width): Likewise.
9535 (fill_gstring_body): Likewise.
9536 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9537 the frame.
9538 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9539 is within a composition.
9540 (Fcomposition_get_gstring): Fix the terminal case.
9541
9542 * term.c (encode_terminal_code): Fix handling of composition.
9543 (produce_composite_glyph): For static composition, get pixel_width
9544 from struct composition.
9545
9546 2009-02-02 Andreas Schwab <schwab@suse.de>
9547
9548 * unexelf.c (unexec): Handle unaligned bss offset.
9549
9550 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9551
9552 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9553 XT,w32read_socket changes to ns_read_socket.
9554
9555 * keyboard.c (handle_interrupt): Don't call
9556 quit_throw_to_read_char() under NS.
9557
9558 * blockinput.h: Remove NS-specific code.
9559
9560 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9561
9562 * dispnew.c (window_change_signal): Don't try to get the size of a
9563 suspended tty frame.
9564 * term.c (Fresume_tty): Resize if the size has changed while the
9565 tty was suspended.
9566
9567 * alloc.c (mark_stack): Properly conditionalize previous change.
9568
9569 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9570
9571 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9572 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9573 Remove; this code is not used on Windows.
9574
9575 2009-01-30 Eli Zaretskii <eliz@gnu.org>
9576
9577 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9578 EOLs that also has stray ^M characters.
9579
9580 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9581
9582 * atimer.c (run_timers, alarm_signal_handler):
9583 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9584 * w32inevt.c (w32_console_read_socket):
9585 * w32term.c (w32_read_socket):
9586 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9587
9588 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
9589
9590 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9591 Initialize it as a relative filename pattern.
9592 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9593 (Fcall_process_region): Simplify temp file creation using
9594 temporary-file-directory.
9595
9596 2009-01-29 Eli Zaretskii <eliz@gnu.org>
9597
9598 * msdos.c: Rename pending_signals to msdos_pending_signals.
9599 (sig_suspender, sigprocmask): Adjust.
9600
9601 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
9602
9603 * keyboard.c (pending_signals): New var.
9604 (poll_for_input, input_available_signal, init_keyboard): Set it.
9605 (process_pending_signals): New function.
9606
9607 * lisp.h (QUIT): Check pending_signals instead of
9608 interrupt_input_pending. Use process_pending_signals.
9609
9610 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
9611
9612 * process.c (wait_reading_process_output): Use process_pending_signals.
9613
9614 * sysdep.c (emacs_write): Use process_pending_signals.
9615
9616 * xterm.c (XTread_socket): Update pending_signals.
9617
9618 * w32term.c (w32_read_socket): Update pending_signals.
9619
9620 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9621
9622 2009-01-29 Kenichi Handa <handa@m17n.org>
9623
9624 * xftfont.c (xftfont_has_char): New function.
9625 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9626
9627 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9628
9629 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9630 under GNUstep.
9631 (ns_query_color): New declaration.
9632
9633 * nsterm.m (ns_confirm_quit): New variable.
9634 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9635 (EmacsApp-applicationShouldTerminate:): Use it.
9636 (EmacsPrefsController): Let user set it.
9637 (ns_query_color): New function.
9638 (ns_defined_color): Use it.
9639 (ns_initialize): Drop.
9640 (ns_term_init): Add two lines from ns_initialize(), and set
9641 input_interrupt_mode to nil.
9642
9643 * image.c (svg_load_image): Don't right-shift background RGB when
9644 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
9645
9646 2009-01-28 Kenichi Handa <handa@m17n.org>
9647
9648 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9649 (fontset_get_font_group): Remember that no font-group is specified
9650 for C.
9651
9652 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
9653
9654 * fns.c (concat): Check for string overflow (bug#1787).
9655
9656 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9657 Quadruple undo limits (bug#1501).
9658
9659 2009-01-27 Kenichi Handa <handa@m17n.org>
9660
9661 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9662 directly use GT_Get_Char_index.
9663
9664 * xftfont.c (struct xftfont_info): New member `index'.
9665
9666 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9667 (Ffontset_font): Adjust for the change of fontset entry.
9668
9669 2009-01-26 Kenichi Handa <handa@m17n.org>
9670
9671 * fontset.c (fontset_find_font): Fix handling of non-cons return
9672 value of fontset_get_font_group.
9673 (fontset_font): Revert last change.
9674
9675 2009-01-26 Jason Rumney <jasonr@gnu.org>
9676
9677 * w32font.c (w32font_list_internal): Return quickly if registry is
9678 unknown. Simplify final return.
9679 (add_font_entity_to_list): Break complex logic down into more
9680 manageable chunks. Move unknown registry check to
9681 w32font_list_internal.
9682
9683 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9684
9685 Changes to remove Feval calls from GUI under NS.
9686
9687 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9688 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
9689 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9690
9691 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9692 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9693 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9694 instead of NON_ASCII_KEYSTROKE_EVENT.
9695 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9696 (EmacsApp-applicationShouldTerminate:): Query user.
9697 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9698 instead of Feval.
9699
9700 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9701
9702 * keyboard.c (kbd_buffer_get_event): Check for it.
9703 (keys_of_keyboard): Define lispy keys for
9704 ns-put/unput-working-text.
9705
9706 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9707 versions.
9708 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9709
9710 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
9711
9712 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
9713 setting current_buffer directly. (Bug#2044)
9714
9715 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
9716
9717 * fontset.c (fontset_font): If we know there is no font, don't do
9718 any work. (Bug#1952, bug#1990).
9719
9720 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
9721
9722 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9723
9724 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
9725 (ns_no_defaults): New declaration.
9726 (main): Use it.
9727
9728 * nsterm.h (ns_no_defaults): New declaration.
9729
9730 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
9731
9732 * nsterm.m (ns_no_defaults): New variable.
9733 (ns_initialize): Don't read defaults when ns_no_defaults.
9734 (EmacsView-readSelectionFromPasteboard:)
9735 (writeSelectionToPasteboard:types:): New stubbed-out methods for
9736 NSServicesRequests protocol. (Bug#1435)
9737 (ns_dumpglyphs_stretch): New function.
9738 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
9739 of 2008-11-15 to other terms. (Bug#615)
9740
9741 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9742
9743 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9744
9745 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9746 call for Sparc64.
9747
9748 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9749
9750 * nsfns.m:
9751 * nsgui.h:
9752 * nsmenu.m:
9753 * nsselect.m:
9754 * nsterm.h:
9755 * nsterm.m: Remove '23' comments that indicated code added during
9756 update from emacs-20 -> emacs-23.
9757
9758 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9759
9760 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
9761 ns_alternate_modifier. (Bug#1217)
9762
9763 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9764 Display all shortcuts, including those w/o super modifier.
9765
9766 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9767
9768 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
9769
9770 * fileio.c (Vwrite_region_post_annotation_function)
9771 (Vwrite_region_annotation_buffers): New vars.
9772 (build_annotations_unwind): Just reset
9773 Vwrite_region_annotation_buffers.
9774 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9775 Call write-region-post-annotation-function.
9776 (build_annotations): Add to Vwrite_region_annotation_buffers if
9777 buffer changes.
9778
9779 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9780
9781 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9782 Tiger.
9783 * nsfns.m (ns_do_applescript):
9784 Conditionalize typeUTF16ExternalRepresentation on Tiger.
9785
9786 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9787
9788 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9789
9790 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9791
9792 * nsmenu.m (NSMENUPROFILE): Change #if style.
9793
9794 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9795
9796 * nsterm.m (x_set_frame_alpha): Add prototype.
9797 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9798 handle Ctrl-tab. (Bug#1841)
9799 (ns_get_color): Use unsigned long long for scanned hex string value.
9800 (ns_term_shutdown): Abort on non SIGTERM signals.
9801 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
9802 (EmacsPrefsController-setPanelFromDefaultValues): New function.
9803 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
9804 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
9805 (ns_defined_color): Fix settings of the XColor variable fields:
9806 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
9807
9808 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
9809 DPI. (Bug#1316)
9810 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9811 values in onTiger section.
9812
9813 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
9814
9815 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9816 Check return value of font_spec_from_name.
9817 (Fx_list_fonts): Doc fix. (Bug#1951)
9818
9819 * font.c (font_spec_from_name): Return Qnil if font name could not
9820 be parsed.
9821 (font_parse_name): Treat a `?' character as part of an XLFD.
9822
9823 * fns.c (Fsubstring): Doc fix.
9824
9825 2009-01-19 Kenichi Handa <handa@m17n.org>
9826
9827 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
9828 (ftfont_list): Likewise.
9829
9830 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
9831
9832 * dbusbind.c (Fdbus_register_signal):
9833 * process.c (conv_sockaddr_to_lisp):
9834 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9835
9836 * callproc.c (Fgetenv_internal): Doc fix.
9837
9838 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
9839
9840 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9841 it is not even used.
9842
9843 2009-01-16 Glenn Morris <rgm@gnu.org>
9844
9845 * font.c (Ffont_variation_glyphs): Silence compiler.
9846
9847 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
9848
9849 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9850 Reported by David Robinow <drobinow@gmail.com>.
9851
9852 2009-01-15 Kenichi Handa <handa@m17n.org>
9853
9854 * coding.c (detect_coding_system): Fix handling of null_byte_found.
9855
9856 2009-01-14 Jason Rumney <jasonr@gnu.org>
9857
9858 * frame.c (x_set_font): Always store a font to the font parameter,
9859 never a fontset. (Bug#1562)
9860
9861 2009-01-14 Kenichi Handa <handa@m17n.org>
9862
9863 * coding.c (TWO_MORE_BYTES): New macro.
9864 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
9865
9866 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
9867
9868 * font.c (font_clear_prop): If clearing the family, clear the font
9869 width index too.
9870
9871 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
9872
9873 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
9874
9875 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9876 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9877 functions, use sizeof.
9878
9879 2009-01-12 Martin Rudalics <rudalics@gmx.at>
9880
9881 * keyboard.c (read_char): Fix case where last_nonmenu_event
9882 returned a bad value with submenus. (Bug#447)
9883
9884 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
9885
9886 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9887 family, clear the font width index too.
9888
9889 2009-01-11 Jason Rumney <jasonr@gnu.org>
9890
9891 * keyboard.c (cmd_error_internal): Exit when errors occur before
9892 frame creation and not in daemon mode. (Bug#1836)
9893
9894 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
9895
9896 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9897 of a display vector, backtrack.
9898 (try_window_reusing_current_matrix): Check glyph type before
9899 referencing charpos member.
9900
9901 2009-01-10 Eli Zaretskii <eliz@gnu.org>
9902
9903 Fix Bug #876:
9904
9905 * coding.c (inhibit_null_byte_detection): New variable.
9906 (detect_coding, detect_coding_system): Don't pay attention to null
9907 bytes if inhibit_null_byte_detection is non-zero.
9908 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
9909 <inhibit-iso-escape-detection>: Doc fix.
9910
9911 2009-01-09 Jason Rumney <jasonr@gnu.org>
9912
9913 * w32font.c (add_font_entity_to_list): Don't report unknown
9914 Windows charset as any unrecognized registry. (Bug#1548)
9915 Only report Unicode Plane 2 fonts as unicode-sip.
9916
9917 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
9918
9919 * xfaces.c (Fx_font_family_list): Delete function.
9920 Move compatibility version to faces.el.
9921
9922 * font.c (Ffont_family_list): Return a list of strings, not symbols.
9923
9924 2009-01-09 Martin Rudalics <rudalics@gmx.at>
9925
9926 * frame.c (x_set_frame_parameters): Remember requested value for
9927 fullscreen before it's reset by the parameter handler.
9928
9929 2009-01-09 Glenn Morris <rgm@gnu.org>
9930
9931 * keyboard.c (last_command_char): For clarity, rename to...
9932 (last_command_event): ... and update all users.
9933 (last_input_char): For clarity, rename to...
9934 (last_input_event): ... and update all users.
9935 (last-command-char, last-input-char): Move to subr.el as aliases.
9936 * cmds.c, commands.h: Update for last_command_char rename.
9937
9938 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
9939
9940 * font.c (font_open_for_lface): Handle unspecified height attribute.
9941
9942 2009-01-08 Jason Rumney <jasonr@gnu.org>
9943
9944 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9945 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9946 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9947 Don't declare.
9948 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
9949 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9950
9951 2009-01-07 Kenichi Handa <handa@m17n.org>
9952
9953 * fileio.c (Finsert_file_contents): In the case of replace,
9954 remember the coding system used for decoding in
9955 coding_system (Bug#1039).
9956
9957 * coding.c (decode_coding_utf_8): Check byte_after_cr before
9958 breaking the loop. (Bug#870)
9959 (decode_coding_utf_16, decode_coding_emacs_mule)
9960 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9961 (decode_coding_charset): Likewise.
9962
9963 2009-01-05 Martin Rudalics <rudalics@gmx.at>
9964
9965 * frame.c (x_set_frame_parameters): Make sure height (width) get
9966 applied when fullwidth (fullheight) is set. (Bug#1522)
9967
9968 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
9969
9970 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9971 (utc_base): Declare as ULONGLONG, not long double.
9972 (convert_time_raw): Delete.
9973 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9974 (initialize_utc_base): New function.
9975 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9976 (convert_from_time_t): Use initialize_utc_base; compute result with
9977 64-bit arithmetic.
9978 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9979
9980 2009-01-03 Eli Zaretskii <eliz@gnu.org>
9981
9982 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
9983 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9984 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9985 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9986 [!subprocesses]: Define.
9987 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9988 (Flist_system_processes, Fsystem_process_attributes)
9989 [!subprocesses]: Call list_system_processes and
9990 system_process_attributes instead of returning Qnil.
9991
9992 * dosfns.c (system_process_attributes, list_system_processes):
9993 New functions.
9994
9995 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9996
9997 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9998 Don't use the default (no-op) implementation.
9999
10000 2009-01-03 Jason Rumney <jasonr@gnu.org>
10001
10002 * keyboard.c (parse_modifiers_uncached): Wheel events are
10003 clicks (bug#687).
10004
10005 * w32term.c (x_query_colors, x_query_color): New functions.
10006
10007 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10008 (svg_load_image): Cast returned pointers from dynamically loaded
10009 functions. Eliminate W32 specific code.
10010
10011 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10012
10013 * nsfns.m (x_set_foreground_color, x_set_background_color)
10014 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10015 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10016 x_ prefix instead of ns_. Update references.
10017 (syms_of_nsfns): Add a FIXME comment.
10018
10019 * nsterm.m (x_set_cursor_type): New prototype.
10020 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10021
10022 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10023 for Solaris instead of incorrectly providing Qutime and Qcutime.
10024
10025 2009-01-02 Eli Zaretskii <eliz@gnu.org>
10026
10027 * w32.c (process_times): Compute sum of utime and stime.
10028 (system_process_attributes): Add Qtime to the alist.
10029
10030 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10031 and add them to the alist.
10032
10033 * process.c (top level) <Qtime, Qctime>: New variables.
10034 (syms_of_process): staticpro them.
10035 (Fsystem_process_attributes): Add their documentation to the doc
10036 string.
10037
10038 * process.h: Declare Qtime and Qctime.
10039
10040 2009-01-02 Jason Rumney <jasonr@gnu.org>
10041
10042 * image.c (Qgobject): New symbol.
10043 (syms_of_image): Initialize it.
10044 (init_svg_functions): Load some functions from gobject library.
10045
10046 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10047
10048 * frame.c (make_terminal_frame): Remove redundant code and useless
10049 block.
10050
10051 2009-01-01 Andreas Schwab <schwab@suse.de>
10052
10053 * process.c (conv_sockaddr_to_lisp): Add workaround for
10054 getsockname bug on BSD.
10055
10056 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
10057
10058 * xfns.c (x_create_tip_frame): Set border width of the X window.
10059
10060 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
10061
10062 2009-01-01 Jason Rumney <jasonr@gnu.org>
10063
10064 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
10065 Don't block input, as per earlier xterm.c changes.
10066
10067 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10068
10069 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10070 (ns_appkit_version_int): New function.
10071 (x-server-version): Use ns_appkit_version_int and follow 21+
10072 convention of returning 3 integers.
10073
10074 2008-12-30 Kenichi Handa <handa@m17n.org>
10075
10076 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10077 (CHAR_SURROGATE_PAIR_P): New macro.
10078
10079 * font.h (struct font_driver): New member get_variation_glyphs.
10080
10081 * font.c (font_range): Don't require a font for a variation selector.
10082 (Ffont_variation_glyphs): New function.
10083 (syms_of_font): Defsubr it.
10084
10085 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10086 ftfont_variation_glyphs.
10087 (setup_otf_gstring): New function.
10088 (ftfont_drive_otf): Use it.
10089 (ftfont_shape_by_flt): Handle variation selector.
10090 (ftfont_variation_glyphs): New function.
10091
10092 2008-12-30 Martin Rudalics <rudalics@gmx.at>
10093
10094 * frame.c (Vemacs_iconified): Remove.
10095
10096 2008-12-30 Jason Rumney <jasonr@gnu.org>
10097
10098 * frame.c (store_frame_param, x_get_arg): Enable newer code on
10099 WINDOWSNT too, as related changes have already been synced. (Bug#117)
10100
10101 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
10102
10103 * indent.c (Fvertical_motion): Don't advance iterator if we have
10104 reseated to the desired position.
10105
10106 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10107 checking for pos match.
10108
10109 2008-12-30 Kenichi Handa <handa@m17n.org>
10110
10111 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10112 just get the low 8-bit of the code.
10113
10114 * font.c (font_intern_prop): Validate str as multibyte.
10115
10116 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10117
10118 * dispextern.h (struct face): Move lface and hash from the middle
10119 of bitfields.
10120
10121 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10122
10123 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10124
10125 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10126 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10127 instead of intervals.h.
10128
10129 2008-12-26 Andreas Schwab <schwab@suse.de>
10130
10131 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10132 cons.
10133
10134 2008-12-26 Martin Rudalics <rudalics@gmx.at>
10135
10136 * textprop.c (Qminibuffer_prompt): New variable.
10137 (syms_of_textprop): Initialize it.
10138 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10139 in minibuffer-prompt face. (Bug#1662)
10140
10141 2008-12-25 Jason Rumney <jasonr@gnu.org>
10142
10143 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10144
10145 2008-12-24 Jason Rumney <jasonr@gnu.org>
10146
10147 * ralloc.c (r_alloc_reset_variable): New function.
10148
10149 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
10150 record of what points where. (Bug#716)
10151
10152 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10153
10154 * minibuf.c (read_minibuf): Follow the non-interactive case when
10155 running as a daemon, before detaching.
10156
10157 2008-12-22 Andreas Schwab <schwab@suse.de>
10158
10159 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10160 * gtkutil.c (free_widget_value): Use xfree instead of free.
10161
10162 2008-12-22 Martin Rudalics <rudalics@gmx.at>
10163
10164 * frame.c (delete_frame): New function derived from
10165 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10166 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10167 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10168 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10169 * frame.h: Extern delete_frame.
10170 * window.c (window_loop):
10171 * terminal.c (delete_terminal):
10172 * xterm.c (x_connection_closed):
10173 * xfns.c (Fx_hide_tip):
10174 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
10175
10176 2008-12-21 Jason Rumney <jasonr@gnu.org>
10177
10178 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10179 when character maps to .notdef character.
10180
10181 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10182
10183 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10184
10185 2008-12-20 Jason Rumney <jasonr@gnu.org>
10186
10187 * frame.c (Fmake_terminal_frame): Raise an error when called from
10188 a graphical frame on Windows. (Bug#1325)
10189
10190 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10191
10192 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10193
10194 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
10195
10196 * minibuf.c (Fread_buffer): Doc fix.
10197
10198 2008-12-20 Jason Rumney <jasonr@gnu.org>
10199
10200 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
10201 server name in UNC paths. (Bug#719)
10202
10203 * coding.c (decode_coding): Clear chars_at_source flag when using
10204 charbuf. (Bug#1035)
10205
10206 2008-12-19 Daniel Engeler <engeler@gmail.com>
10207
10208 * sysdep.c (serial_configure): Fix typo.
10209
10210 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10211
10212 * sysdep.c: Include alloca.h.
10213 (system_process_attributes): Add implementation for Solaris.
10214
10215 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
10216
10217 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10218
10219 Reorganize implementation of Flist_system_processes and
10220 Fsystem_process_attributes. No functional changes.
10221 * process.c: Don't #include pwd.h, grp.h and limits.h.
10222 (Flist_system_processes): Just call list_system_processes.
10223 (Fsystem_process_attributes): Just call system_process_attributes.
10224 (procfs_list_system_processes, time_from_jiffies)
10225 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10226 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10227
10228 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10229 (list_system_processes): Rename from
10230 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10231 Provide a do nothing implementation.
10232 (system_process_attributes): Rename from
10233 procfs_list_system_processes.
10234 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10235 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
10236
10237 * w32.c (list_system_processes): Rename from
10238 w32_list_system_processes.
10239 (system_process_attributes): Rename from
10240 w32_system_process_attributes.
10241
10242 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10243
10244 * process.h (w32_list_system_processes)
10245 (w32_system_process_attributes): Remove.
10246 (list_system_processes, system_process_attributes):
10247 New prototypes.
10248
10249 2008-12-19 Kenichi Handa <handa@m17n.org>
10250
10251 * xfont.c (xfont_decode_coding_xlfd): New function.
10252 (xfont_encode_coding_xlfd): New function.
10253 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10254 (xfont_list): Decode and encode XLFD by iso-8859-1.
10255 (xfont_match): Likewise.
10256 (xfont_list_family): Likewise.
10257 (xfont_open): Likewise.
10258
10259 * ftfont.c (ftfont_open): Generate a multibyte string if given
10260 names are utf-8.
10261
10262 * xftfont.c (xftfont_open): Generate a multibyte string if given
10263 names are utf-8.
10264
10265 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10266
10267 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10268 changed.
10269 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10270 clicked on a detached tool bar button.
10271
10272 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10273
10274 * emacs.c (main): Print and error and exit when no data is read
10275 from the pipe.
10276
10277 2008-12-17 Jason Rumney <jasonr@gnu.org>
10278
10279 * w32font.c (w32font_has_char): Always return -1.
10280
10281 2008-12-16 Kenichi Handa <handa@m17n.org>
10282
10283 * font.c (font_open_entity): Fix previous change.
10284
10285 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10286
10287 * process.c: Include <limits.h>.
10288
10289 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
10290
10291 * font.c (font_update_drivers): Fix mistake in reconstructing the
10292 driver list.
10293
10294 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
10295
10296 * font.c (font_clear_cache): Fix format of font cache data.
10297
10298 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
10299
10300 * xftfont.c (xftfont_open): Free Xft font pattern if
10301 XftFontOpenPattern fails.
10302
10303 * xterm.c (x_free_frame_resources): Remove extraneous call to
10304 free_frame_faces.
10305
10306 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10307
10308 * xterm.c (x_delete_display): Move xim_close_dpy call to
10309 x_delete_terminal.
10310 (x_delete_terminal): Call xim_close_dpy.
10311
10312 2008-12-13 Jason Rumney <jasonr@gnu.org>
10313
10314 * w32font.c (intern_font_name): New function.
10315 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10316 (w32font_open_internal, Fx_select_font): Decode font name.
10317 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10318
10319 * w32font.h (intern_font_name): Declare new function.
10320
10321 * w32uniscribe.c (add_opentype_font_name_to_list):
10322 Use intern_font_name.
10323
10324 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10325
10326 * frame.c (Fdelete_frame): Call free_font_driver_list.
10327
10328 * font.c (free_font_driver_list): Implement missing function.
10329
10330 * w32term.c (w32_term_init): Don't initialize the image cache
10331 here; it will be done in init_frame_faces.
10332
10333 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10334 (struct x_display_info): Remove unused member null_pixel. New
10335 member xim_callback_data.
10336
10337 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10338 (xim_initialize): Save pointer to callback function data.
10339 (xim_close_dpy): Free callback function data. Call XCloseIM,
10340 reverting 2008-11-04 change by David Smith.
10341 (x_term_init): Don't initialize the image cache here; it will be
10342 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10343 (x_delete_display): Free x_dnd_atoms member.
10344
10345 2008-12-13 Kenichi Handa <handa@m17n.org>
10346
10347 * font.c (font_rescale_ratio): Moved from xfaces.c.
10348 Argument type changed. Handle a font-spec too.
10349 (font_score): Check Vface_font_rescale_alist.
10350 (font_open_entity): Likewise. (Bug#1547)
10351
10352 * xfaces.c (font_rescale_ratio): Moved to font.c.
10353
10354 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10355
10356 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10357
10358 2008-12-12 Jason Rumney <jasonr@gnu.org>
10359
10360 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10361 Vwindow_system_version to the real w32 major version.
10362
10363 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10364
10365 * term.c (init_tty): Move setting the terminal name before the
10366 potential user: maybe_fatal.
10367
10368 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
10369
10370 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10371 all callers changed. Call free_frame_faces to free the face cache.
10372
10373 2008-12-11 Jason Rumney <jasonr@gnu.org>
10374
10375 * w32font.c (fill_in_logfont): Don't assume symbol script means
10376 SYMBOL_CHARSET. (Bug#547)
10377
10378 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
10379 size for surrogates. (Bug#1096, bug#872)
10380
10381 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10382
10383 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10384
10385 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10386
10387 * process.c (Fsystem_process_attributes, syms_of_process):
10388 Fix typo in name of Ssystem_process_attributes.
10389 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10390
10391 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10392
10393 * syntax.c (Fmodify_syntax_entry): Doc fix.
10394
10395 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10396
10397 * font.c (Ffont_spec): Move usage to end of docstring.
10398
10399 2008-12-10 Jason Rumney <jasonr@gnu.org>
10400
10401 * w32font.c (Qcham): New symbol.
10402 (font_supported_scripts): Add cham, and comments for other new
10403 scripts in bitfield from OpenType spec.
10404 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10405 contain characters beyond the bmp.
10406
10407 2008-12-10 Kenichi Handa <handa@m17n.org>
10408
10409 * ftfont.c (fc_charset_table): Add "unicode-sip".
10410 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
10411 Qunicode_sip.
10412
10413 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10414
10415 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10416 (Fcoding_system_put): Use QCdefault_char.
10417 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10418
10419 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
10420
10421 * xftfont.c (syms_of_xftfont): Fix typo.
10422
10423 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
10424
10425 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10426
10427 * emacs.c (main): Close daemon_pipe on exec.
10428
10429 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
10430
10431 * termchar.h (struct tty): New members termcap_term_buffer and
10432 termcap_strings_buffer.
10433
10434 * term.c (encode_terminal_code): Free any previous memory blocks
10435 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
10436 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10437 All callers changed.
10438 (init_tty): Store termcap data and string buffers in new struct
10439 tty members termcap_term_buffer and termcap_strings_buffer.
10440 (delete_tty): Free them.
10441 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
10442
10443 2008-12-07 Seiji Zenitani <zenitani@mac.com>
10444
10445 * nsfns.m (ns_set_background_color): Remove code duplication.
10446 It was a substitute for face-transparency on OS X 10.3.
10447
10448 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
10449
10450 * coding.c (make_conversion_work_buffer): Disable buffer
10451 modification hooks in the work buffer.
10452
10453 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10454
10455 * process.c (procfs_system_process_attributes): If `nread' has a
10456 negative value, assign zero to it.
10457
10458 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
10459
10460 * eval.c (Vdebug_on_error): Doc fix.
10461
10462 2008-12-05 Kenichi Handa <handa@m17n.org>
10463
10464 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10465 second character is a combining character.
10466
10467 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10468
10469 * process.c (procfs_system_process_attributes): Don't use cmd,
10470 cmdsize, and q without initializing them first.
10471
10472 2008-12-04 Jason Rumney <jasonr@gnu.org>
10473
10474 * w32font.c (w32font_draw): Initialize orig_clip before getting
10475 it, and delete it when finished.
10476
10477 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10478
10479 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10480 case when running as a daemon before detaching.
10481
10482 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
10483
10484 * w32.c (init_environment): Don't unload library shell32.dll.
10485
10486 2008-12-03 Kenichi Handa <handa@m17n.org>
10487
10488 * font.c (font_at): Set `multibyte' at first.
10489
10490 * coding.c (decode_coding_charset): Check type of an element of
10491 vector VALIDS.
10492 (encode_coding_emacs_mule): Be sure to set `code'.
10493
10494 * fontset.c (face_for_char): Handle invalid charset property correctly.
10495 (font_for_char): Likewise.
10496
10497 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
10498
10499 * font.c (Fopen_font): Compute pixel size correctly.
10500 (font_update_lface): Handle fonts with corrupted size specs,
10501 i.e. non-int and non-float.
10502
10503 * ftfont.c (ftfont_match): Initialize entity variable.
10504 (ftfont_resolve_generic_family): Avoid using uninitialized var.
10505 (ftfont_list_family): Initialize list var earlier.
10506
10507 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10508
10509 * xterm.c (x_draw_glyph_string): Fall back on
10510 underline_minimum_offset for underline position.
10511
10512 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10513
10514 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10515
10516 * character.c (c_string_width): Specify the type for LEN.
10517
10518 2008-12-03 Kenichi Handa <handa@m17n.org>
10519
10520 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
10521 (decode_coding_utf_8): Likewise.
10522 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
10523 (produce_chars): Initialize consumed_chars to 0.
10524
10525 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10526
10527 * keyboard.c (make_lispy_position): Only use PT if the selected
10528 window is current.
10529
10530 2008-12-02 Andreas Schwab <schwab@suse.de>
10531
10532 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10533
10534 * doprnt.c (doprnt1): Fix size of charbuf.
10535
10536 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10537
10538 * keyboard.c (timer_check): Revert last change.
10539
10540 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
10541
10542 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10543
10544 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
10545
10546 * makefile.w32-in: Update dependencies.
10547 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10548
10549 2008-12-01 Andreas Schwab <schwab@suse.de>
10550
10551 * font.c (register_font_driver): Use xmalloc.
10552 (font_put_frame_data): Likewise.
10553
10554 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
10555
10556 * xfaces.c (realize_x_face): Make abort condition clearer.
10557
10558 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10559
10560 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
10561
10562 * keyboard.c (timer_check): After a timer runs, ensure that the
10563 selected window's buffer is current.
10564
10565 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
10566
10567 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10568 It was accidentally restored by the Unicode merge.
10569
10570 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10571
10572 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
10573
10574 * w32proc.c: Include "coding.h".
10575 (Fw32_short_file_name): Encode filename passed to Windows API.
10576 (Fw32_long_file_name): Encode filename passed to Windows API and
10577 decode back the result. (Bug#1433)
10578
10579 2008-11-29 Kenichi Handa <handa@m17n.org>
10580
10581 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10582 not before accessing it.
10583
10584 * charset.c (Fdefine_charset_internal): After calculating
10585 min_char, max_char, and fastmap, copy the charset structure again.
10586 (encode_char): Fix the previous change.
10587
10588 2008-11-28 Seiji Zenitani <zenitani@mac.com>
10589
10590 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10591
10592 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10593
10594 * nsterm.m (x_set_frame_alpha): New function.
10595
10596 2008-11-27 Eli Zaretskii <eliz@gnu.org>
10597
10598 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10599
10600 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
10601
10602 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10603 pointer to check_face_name.
10604
10605 2008-11-27 Kenichi Handa <handa@m17n.org>
10606
10607 * category.h (SET_CATEGORY_SET): Call set_category_set.
10608 (set_category_set): Extern it.
10609
10610 * category.c (hash_get_category_set): New function.
10611 (Fmodify_category_entry): Adjusted for the change of
10612 char_table_ref_and_range. Call hash_get_category_set to get a
10613 category set to store in the table.
10614
10615 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10616 Funify_charset.
10617
10618 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
10619 (DECODE_CHAR): Check if the decoder vector is ready.
10620 (ENCODE_CHAR): Check if the encoder char-table is ready.
10621 (maybe_unify_char): Extern it.
10622
10623 * charset.c (Vchar_unified_charset_table): Delete it.
10624 (inhibit_load_charset_map): New variable.
10625 (temp_charset_work): New variable.
10626 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10627 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10628 New macros.
10629 (load_charset_map): Meaning of control_flag changed. If
10630 inhibit_load_charset_map is nonzero, setup a table in
10631 temp_charset_work.
10632 (load_charset): New argument control_flag.
10633 (map_charset_for_dump): New function.
10634 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10635 map_charset_for_dump.
10636 (Fdefine_charset_internal): If the charset method is MAP, load
10637 mapping tables by calling load_charset.
10638 (Funify_charset): Don't load a mapping table but directly set
10639 Vchar_unify_table.
10640 (maybe_unify_char): New function.
10641 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10642 Handle the case of inhibit_load_charset_map being nonzero.
10643 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10644 Handle the case of inhibit_load_charset_map being nonzero.
10645 (Fclear_charset_maps): Just free temp_charset_work.
10646 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10647 variable.
10648
10649 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10650 change of char_table_ref_and_range.
10651 (char_table_ref_and_range): Change the meaning of argument FROM
10652 and TO. Now the caller must provide initial values for *FROM
10653 and *TO.
10654
10655 * fontset.c (fontset_add): Adjusted for the change of
10656 char_table_ref_and_range.
10657 (fontset_get_font_group): Likewise.
10658 (Ffontset_info): Likewise.
10659
10660 * keymap.c (describe_vector): Adjusted for the change of
10661 char_table_ref_and_range. For char-table, put boundary between
10662 non-ASCII and 8-bit characters.
10663
10664 * print.c (print_object): For bool-vector, delete unnecessary
10665 check of ASCII_BYTE_P.
10666
10667 2008-11-26 Jason Rumney <jasonr@gnu.org>
10668
10669 * w32font.c (w32font_open_internal): Don't include external
10670 leading in font height. (Bug#879)
10671
10672 2008-11-26 Glenn Morris <rgm@gnu.org>
10673
10674 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10675 redefinition with ifdef. (Bug#1383)
10676
10677 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10678
10679 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10680
10681 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10682
10683 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10684 New EmacsView methods.
10685 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10686 Fixes bug #1048,1357,1414.
10687
10688 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10689
10690 Fix bug #1362.
10691 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10692 is not an indexed color.
10693 * nsterm.m (free_indexed_color): Add argument checking.
10694 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10695
10696 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
10697
10698 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10699 Document confirm-after-completion value for
10700 minibuffer-completion-confirm.
10701
10702 2008-11-24 Jason Rumney <jasonr@gnu.org>
10703
10704 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10705 warning.
10706
10707 2008-11-23 Jason Rumney <jasonr@gnu.org>
10708
10709 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10710 restored before returning.
10711
10712 * w32font.c (check_face_name): New function.
10713 (add_font_entity_to_list): Use it to filter out common substituted
10714 fonts. (Bug#642)
10715
10716 2008-11-22 Martin Rudalics <rudalics@gmx.at>
10717
10718 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10719 confirm-nonexistent-file-or-buffer in doc-string.
10720
10721 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10722
10723 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10724 Fix copy/paste typo. Add checks.
10725
10726 2008-11-21 Kenichi Handa <handa@m17n.org>
10727
10728 * coding.c (detect_coding_iso_2022): Reject invalid composition
10729 sequence.
10730 (DECODE_COMPOSITION_START): If the current source is the last
10731 block, and the current composition doesn't end, regard this
10732 sequence as invalid.
10733 (decode_coding_iso_2022): Handle invalid composition sequence.
10734
10735 2008-11-20 Martin Rudalics <rudalics@gmx.at>
10736
10737 * window.c (coordinates_in_window): Don't return
10738 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10739 line when the window is not the rightmost one. (Bug#1372)
10740
10741 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10742
10743 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10744
10745 2008-11-15 Eli Zaretskii <eliz@gnu.org>
10746
10747 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10748 and bright_bg if noninteractive is non-zero.
10749
10750 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10751
10752 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10753 x_draw_glyph_string_background.
10754
10755 * w32term.c (x_draw_glyph_string): Likewise.
10756
10757 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
10758
10759 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10760 the next glyph string once past the overhang width.
10761
10762 * nsterm.m (ns_draw_glyph_string): Likewise.
10763
10764 * w32term.c (x_draw_glyph_string): Likewise.
10765
10766 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10767
10768 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10769 double file close.
10770
10771 2008-11-14 Martin Rudalics <rudalics@gmx.at>
10772
10773 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10774 dedicated status of window before attempting to display another
10775 buffer in it.
10776
10777 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
10778
10779 * msdos.c (Fmsdos_long_file_names):
10780 (syms_of_msdos) <dos-unsupported-char-glyph>:
10781 * dosfns.c (Fint86): Fix typos in docstrings.
10782
10783 2008-11-14 Eli Zaretskii <eliz@gnu.org>
10784
10785 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10786
10787 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10788
10789 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10790
10791 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10792
10793 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10794
10795 * frame.h: Negative alpha means "don't touch".
10796
10797 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10798
10799 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10800
10801 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10802
10803 * hftctl.c:
10804 * chpdef.h:
10805 * acldef.h: Remove files used only for systems no longer supported.
10806
10807 * Makefile.in: Fix .o alphabetical ordering.
10808 (hftctl.o): Remove dependency, file removed.
10809 (keymap.o, print.o): Depend on charset.h.
10810
10811 2008-11-10 Kenichi Handa <handa@m17n.org>
10812
10813 * character.c (Fget_byte): Fix and make it faster for unibyte target.
10814
10815 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
10816
10817 * dired.c (file_name_completion): If completion_ignore_case is
10818 enabled, ignore case when checking completion-regexp-list.
10819
10820 2008-11-08 Eli Zaretskii <eliz@gnu.org>
10821
10822 * vm-limit.c (get_lim_data): Fix last change.
10823
10824 2008-11-08 Kenichi Handa <handa@m17n.org>
10825
10826 * character.c (Fget_byte): New function.
10827 (syms_of_character): Defsubr Fget_byte.
10828
10829 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
10830
10831 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10832 cursor position is valid after scrolling.
10833
10834 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
10835
10836 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10837
10838 2008-11-06 Glenn Morris <rgm@gnu.org>
10839
10840 * xterm.c (handle_one_xevent): Don't let popup menus cause
10841 mouse-autoselect-window related window switching. (Bug#1261)
10842
10843 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10844
10845 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10846
10847 2008-11-04 Andreas Schwab <schwab@suse.de>
10848
10849 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10850
10851 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
10852
10853 * xfns.c (Fx_wm_set_size_hint): New function.
10854
10855 2008-11-03 Martin Rudalics <rudalics@gmx.at>
10856
10857 * textprop.c (Fprevious_single_char_property_change): Return 0
10858 when there's no change in a string. (Bug#1301)
10859
10860 2008-11-02 Martin Rudalics <rudalics@gmx.at>
10861
10862 * frame.c (do_switch_frame): New argument NORECORD passed to
10863 Fselect_window.
10864 (Fselect_frame): New argument NORECORD passed to
10865 do_switch_frame.
10866 (Fset_frame_selected_window): New argument NORECORD passed to
10867 Fselect_frame.
10868 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10869 in call of do_switch_frame.
10870 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10871 Handle NORECORD argument in call of Fselect_frame.
10872 * lisp.h (do_switch_frame, Fselect_frame)
10873 (Fset_frame_selected_window): Adjust declarations.
10874 * window.c (select_frame_norecord): New function.
10875 (run_window_configuration_change_hook): Use it and call
10876 Fselect_frame with NORECORD set.
10877 (Fselect_window): Pass NORECORD to Fselect_frame.
10878 (Fset_window_configuration): Handle NORECORD argument in call of
10879 do_switch_frame.
10880 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10881 Fset_frame_selected_window.
10882 * keyboard.c (command_loop_1): Handle NORECORD in call of
10883 Fselect_frame (currently ifdefd).
10884
10885 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10886
10887 * emacs.c (USAGE2): Untabify.
10888
10889 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10890
10891 * composite.c (fill_gstring_header): Fix copy/paste typo.
10892
10893 2008-10-31 Martin Rudalics <rudalics@gmx.at>
10894
10895 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10896 (Fother_window): Rename argument and rewrite doc-string.
10897 (select_window_norecord): Fix return value. (Bug#1276)
10898
10899 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
10900
10901 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10902 new frames overriding foreground for tooltips. Based on similar patch
10903 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10904
10905 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
10906
10907 * emacs.c (Fdaemon_initialized): Initialize nfd.
10908
10909 2008-10-29 Martin Rudalics <rudalics@gmx.at>
10910
10911 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10912 (Fwindow_text_height): Clarify doc-strings.
10913 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10914 doc-string of window-scroll-functions.
10915
10916 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10917
10918 * category.c (syms_of_category): Fix typo in docstring.
10919
10920 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
10921
10922 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10923 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10924 Fix typos in docstrings.
10925
10926 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10927
10928 * emacs.c (daemon_pipe): Make non-static.
10929 (IS_DAEMON): Move definition ...
10930 * lisp.h (IS_DAEMON): ... here.
10931 (daemon_pipe): Declare.
10932 (is_daemon): Remove.
10933 * dispnew.c (init_display): Use IS_DAEMON.
10934
10935 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10936
10937 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10938 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10939
10940 * emacs.c (is_daemon): Remove.
10941 (main): Don't set is_daemon.
10942 (IS_DAEMON): New macro.
10943 (Fdaemonp, Fdaemon_initialized): Use it.
10944 (Fdaemon_initialized): Write a char into the pipe to make sure the
10945 parent exits.
10946 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10947
10948 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
10949
10950 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10951 over-sized glyph, draw it with the default glyph width.
10952
10953 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10954 glyph, draw it with the default glyph width.
10955
10956 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10957 glyph, draw it with the default glyph width.
10958
10959 * xdisp.c (try_scrolling): When computing the distance from the
10960 scroll margin to PT, try moving some distance past the window
10961 bottom before giving up.
10962
10963 2008-10-27 Martin Rudalics <rudalics@gmx.at>
10964
10965 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10966 (Fset_window_buffer): Explain in doc-string that a window can be
10967 "strongly" dedicated to its buffer.
10968
10969 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10970
10971 * emacs.c (daemon_name): New variable.
10972 (main): Deal with --daemon=SERVER_NAME.
10973 (Fdaemonp): Return a name if one was passed to --daemon.
10974
10975 2008-10-26 Romain Francoise <romain@orebokech.com>
10976
10977 * emacs.c (daemon_pipe): New variable.
10978 (main): Create a pipe before forking, make the parent exit only after
10979 the child has closed its end of the pipe. Move closing the
10980 descriptors ...
10981 (Fdaemon_initialized): ... here. New function.
10982
10983 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10984
10985 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10986 the previous unoptimized table.
10987
10988 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10989 the distinction between non-nil and non-t value of `dedicated'.
10990
10991 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
10992
10993 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
10994 read_char_minibuf_menu_text is large enough to hold the menu string.
10995
10996 2008-10-25 Martin Rudalics <rudalics@gmx.at>
10997
10998 * window.c (Fget_buffer_window, Fdelete_windows_on)
10999 (Freplace_buffer_in_windows): Make buffer argument optional and
11000 rename to buffer_or_name.
11001
11002 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
11003
11004 * xdisp.c (handle_single_display_spec, handle_display_prop):
11005 Undo 2005-05-16 change.
11006 (handle_stop): Pop iterator if it's loaded with an empty string.
11007 (get_overlay_strings_1): Don't save iterator if it's loaded with
11008 an empty string (bug#1201).
11009
11010 2008-10-24 Kenichi Handa <handa@m17n.org>
11011
11012 * ftfont.c (ftfont_otf_features): Fix previous change.
11013 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11014 calling ftfont_otf_features.
11015
11016 2008-10-24 Kenichi Handa <handa@m17n.org>
11017
11018 * font.c (font_match_p): Fix for the case that a vector of
11019 characters is in script-representative-chars.
11020
11021 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
11022
11023 * dbusbind.c (xd_in_read_queued_messages): New variable.
11024 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
11025 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11026 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
11027 macro. (Bug#1186)
11028
11029 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
11030
11031 * s/sol2-10.h: New file.
11032
11033 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
11034
11035 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11036 poor beast has survived 9+ years and the jump from xterm.c!).
11037
11038 2008-10-23 Martin Rudalics <rudalics@gmx.at>
11039
11040 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11041 Reword doc-string.
11042 (Fbury_buffer): In doc-string say what happens to the buffer's window.
11043
11044 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
11045
11046 * character.c (syms_of_character) <script-representative-chars>:
11047 <unicode-category-table>: Doc fixes.
11048
11049 2008-10-23 Noah Friedman <friedman@splode.com>
11050
11051 * coding.c (make_conversion_work_buffer): Check that
11052 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11053 Fget_buffer_create.
11054
11055 2008-10-23 Kenichi Handa <handa@m17n.org>
11056
11057 * font.c (font_add_log): Check the values of extra properties.
11058
11059 2008-10-22 Martin Rudalics <rudalics@gmx.at>
11060
11061 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11062 Reword doc-string.
11063 (Fset_window_parameter): Use NILP.
11064 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
11065 (Frecenter): Use "selected" instead of "current" window in doc-strings.
11066
11067 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
11068
11069 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11070
11071 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11072
11073 * nsfns.m (ns_appkit_version): New function.
11074 (x-server-version): Use it.
11075 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11076 (x-server-vendor): Don't check_ns().
11077
11078 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11079
11080 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
11081
11082 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11083 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11084
11085 2008-10-22 Kenichi Handa <handa@m17n.org>
11086
11087 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11088 scripts.
11089
11090 * category.c (word_boundary_p): Check scripts instead of charset.
11091 Handle nil value in word-separating-categories and
11092 word-combining-categories.
11093 (syms_of_category): Fix docstrings of word-separating-categories
11094 and word-combining-categories.
11095
11096 2008-10-21 Eli Zaretskii <eliz@gnu.org>
11097
11098 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11099 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11100
11101 2008-10-21 Martin Rudalics <rudalics@gmx.at>
11102
11103 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11104 Rename arg "buffer" to "buffer_or_name".
11105 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11106 it optional.
11107 (no_switch_window): Remove since the return value is not used.
11108 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
11109 Consider window as dedicated when Fwindow_dedicated_p returns a
11110 non-nil value.
11111 * lisp.h: Remove prototype for no_switch_window.
11112
11113 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11114
11115 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
11116 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
11117
11118 2008-10-21 Kenichi Handa <handa@m17n.org>
11119
11120 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11121 check Vlatin_extra_code_table.
11122
11123 2008-10-20 Eli Zaretskii <eliz@gnu.org>
11124
11125 * fileio.c (Fset_file_modes): Doc fix.
11126
11127 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
11128
11129 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11130 in arrays.
11131
11132 2008-10-19 Martin Rudalics <rudalics@gmx.at>
11133
11134 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11135 Mention kill-buffer in doc-string.
11136 (Fset_window_buffer): Reinsert tem check removed in last commit.
11137 (Fenlarge_window, Fshrink_window): Have argument names and
11138 doc-string follow Elisp manual more closely.
11139
11140 2008-10-18 Eli Zaretskii <eliz@gnu.org>
11141
11142 * fileio.c (Fset_file_modes): Doc fix.
11143
11144 2008-10-18 Martin Rudalics <rudalics@gmx.at>
11145
11146 * window.c (Fwindow_width, Fset_window_start)
11147 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
11148 (Fdelete_windows_on, Freplace_buffer_in_windows):
11149 Make doc-strings follow code and Elisp manual more closely.
11150 (Fwindow_dedicated_p): Make window argument optional.
11151 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11152 (Fset_window_buffer): Respect any non-nil dedicated value for
11153 window. Rename "buffer" argument to "buffer_or_name".
11154
11155 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
11156
11157 * m/sh3.h: New file, machine description for SuperH.
11158
11159 2008-10-17 Martin Rudalics <rudalics@gmx.at>
11160
11161 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11162
11163 2008-10-17 Kenichi Handa <handa@m17n.org>
11164
11165 * ftfont.c (ftfont_otf_features): Fix indexing
11166 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11167
11168 2008-10-16 Magnus Henoch <mange@freemail.hu>
11169
11170 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11171 (Fdbus_call_method_asynchronously): Ditto.
11172 This change makes C-h f display the argument list.
11173
11174 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
11175
11176 * fileio.c (Fexpand_file_name): Doc fix.
11177
11178 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11179 of :foreground and :background equivalent to unspecified (20.x
11180 compatibility).
11181
11182 2008-10-15 Eli Zaretskii <eliz@gnu.org>
11183
11184 * buffer.c (syms_of_buffer): Doc fix.
11185
11186 2008-10-14 Kenichi Handa <handa@m17n.org>
11187
11188 * font.c (font_clear_prop): When clearing font width, clear the
11189 average width field too.
11190
11191 2008-10-12 Andreas Schwab <schwab@suse.de>
11192
11193 * ftfont.c (ftfont_shape_by_flt): Make static.
11194 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11195
11196 * font.c: Don't include <m17n-flt.h>.
11197
11198 2008-10-10 Eli Zaretskii <eliz@gnu.org>
11199
11200 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11201
11202 2008-10-09 Eli Zaretskii <eliz@gnu.org>
11203
11204 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11205 away code.
11206
11207 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
11208
11209 * dispnew.c (update_text_area): Avoid looping due to large glyph
11210 overhangs (bug#1070).
11211
11212 2008-10-09 Kenichi Handa <handa@m17n.org>
11213
11214 * fontset.c (face_for_char): If face->fontset is negative, just
11215 return ascii_face.
11216
11217 * font.c (font_delete_unmatched): Fix previous change.
11218 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
11219
11220 2008-10-09 Martin Rudalics <rudalics@gmx.at>
11221
11222 * frame.c (Fraise_frame): On text-only terminals select frame in
11223 order to make it visible. (Bug#1061)
11224
11225 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
11226
11227 * fontset.c (fontset_find_font): Check frame validity.
11228
11229 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
11230
11231 * gtkutil.c (xg_display_open): Reset default display if none exists.
11232 (xg_display_close): Allow Emacs to close all displays (bug#985).
11233
11234 2008-10-06 Andreas Schwab <schwab@suse.de>
11235
11236 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
11237
11238 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
11239
11240 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
11241
11242 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
11243
11244 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11245 during initialization.
11246
11247 2008-10-04 Eli Zaretskii <eliz@gnu.org>
11248
11249 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11250 whole thing on MSDOS frames as well as on a TTY.
11251
11252 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11253 well as for TTY.
11254 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11255 well as on a TTY.
11256
11257 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11258 as well as for TTY.
11259
11260 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11261
11262 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11263 MSDOS frames as well.
11264
11265 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11266
11267 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11268 correct arguments.
11269 * menu.c (find_and_return_menu_selection): Add cast.
11270
11271 2008-10-03 Glenn Morris <rgm@gnu.org>
11272
11273 * emacs.c (USAGE1): Add --daemon.
11274
11275 2008-10-02 Eli Zaretskii <eliz@gnu.org>
11276
11277 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11278 100, so it's in percents as advertised.
11279
11280 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11281
11282 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11283 (ns_output.current_cursor, ns_output.desired_cursor)
11284 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11285 (FRAME_NEW_CURSOR_COLOR): Remove.
11286
11287 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
11288 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
11289 enumeration (HOLLOW_BOX_CURSOR, etc.).
11290
11291 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11292 (draw_window_cursor): Simplify code.
11293 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11294 Don't change cursor type. In latter, call rehighlight instead of doing
11295 updates manually.
11296 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11297 Use core Emacs cursor types.
11298
11299 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
11300
11301 2008-10-02 Martin Rudalics <rudalics@gmx.at>
11302
11303 * process.c (Faccept_process_output): Fix doc-string.
11304
11305 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11306
11307 * gmalloc.c (__sbrk): Also define for uClibc.
11308
11309 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11310 for uClibc.
11311
11312 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11313
11314 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11315 styles.
11316 (nsfont_open): Reenable the cache.
11317
11318 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11319
11320 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11321 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11322
11323 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11324
11325 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11326 a suspended terminal.
11327
11328 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
11329
11330 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11331
11332 2008-09-30 Eli Zaretskii <eliz@gnu.org>
11333
11334 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11335
11336 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
11337
11338 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11339 in a continued line coincides with a line beginning.
11340
11341 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11342
11343 * nsfont.m (nsfont_trait_distance): Fix bug.
11344 (nsfont_list): Return a list rather than a vector (syncs with Handa
11345 changes of 2008-05-14).
11346 (nsfont_open): Improve logging.
11347
11348 2008-09-29 Andreas Schwab <schwab@suse.de>
11349
11350 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11351
11352 2008-09-28 Martin Rudalics <rudalics@gmx.at>
11353
11354 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11355 name as char-resolve-modifiers.
11356 Reported by: Markus Triska <markus.triska@gmx.at>
11357
11358 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11359
11360 * dispnew.c (init_display): Return earlier when running as a daemon.
11361
11362 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11363
11364 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11365
11366 2008-09-27 Eli Zaretskii <eliz@gnu.org>
11367
11368 * composite.c (Fcomposition_get_gstring)
11369 (Fcompose_region_internal, Fcompose_string_internal)
11370 (Ffind_composition_internal): Doc fix.
11371 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11372 (syms_of_composite) <auto-composition-function>: Doc fix.
11373 (syms_of_composite) <composition-function-table>: Doc fix.
11374
11375 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
11376
11377 * search.c (wordify): New argument for lax word-ends.
11378 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11379
11380 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11381
11382 * lisp.h (is_daemon): Declare.
11383 * dispnew.c (init_display): Do not try to initialize the terminal
11384 when running as a daemon.
11385
11386 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
11387
11388 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11389 x_display_pixel_height.
11390
11391 2008-09-22 Martin Rudalics <rudalics@gmx.at>
11392
11393 * undo.c (record_point): Don't call Fundo_boundary for first
11394 change. (Bug#731)
11395
11396 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
11397
11398 * emacs.c (Fdaemonp): Doc fix.
11399
11400 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11401
11402 * emacs.c (main): Place #ifdef in the proper place.
11403
11404 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11405
11406 * emacs.c (standard_args): Add --daemon.
11407 (main): Disconnect from the terminal when --daemon is passed.
11408 (is_daemon): New variable.
11409 (Fdaemonp): New function.
11410 (syms_of_emacs): Defsubr it.
11411
11412 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
11413
11414 * xdisp.c (get_next_display_element): Handle string display
11415 correctly when checking for the end of a box run.
11416
11417 2008-09-20 Glenn Morris <rgm@gnu.org>
11418
11419 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11420 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11421 (Frename_file): Avoid copying to trash if a rename involves
11422 a delete. (Bug#964).
11423
11424 2008-09-20 Eli Zaretskii <eliz@gnu.org>
11425
11426 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11427 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11428 frames as well as termcap frames.
11429 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11430 get_named_tty.
11431
11432 2008-09-19 Eli Zaretskii <eliz@gnu.org>
11433
11434 * process.c (procfs_system_process_attributes): Fix cmdline in
11435 case /proc/PID/cmdline is empty.
11436
11437 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11438 x_display_pixel_height.
11439
11440 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
11441
11442 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11443
11444 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11445 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11446
11447 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11448
11449 * dispextern.h (struct it): Move line_wrap away from the middle of
11450 bitfields. Move voffset in struct iterator_stack_entry after the
11451 bitfields. Move tab_width near after another short.
11452
11453 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11454
11455 * frame.h (struct frame): Move alpha from the middle of bitfields.
11456
11457 * window.h (struct window): Move frozen_window_start_p after the
11458 rest of the bitfields to reduce padding.
11459
11460 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
11461
11462 * xterm.h (x_display_info): Remove `height' and `width' members.
11463
11464 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11465
11466 * w32term.h (w32_display_info): Remove `height', `width',
11467 `height_in', and `width_in' members.
11468
11469 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11470 New functions.
11471 (x_calc_absolute_position): Use them.
11472 (x_term_init): Omit removed `height' and `width' members.
11473
11474 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11475 New functions.
11476 (w32_read_socket, x_calc_absolute_position): Use them.
11477 (w32_initialize_display_info, w32_term_init): Omit removed members
11478 of w32_display_info.
11479
11480 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11481 New functions.
11482 (ns_initialize_display_info): Omit removed members of ns_display_info.
11483
11484 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11485 New functions.
11486 (x_calc_absolute_position): Use them.
11487 (x_term_init): Omit removed `height' and `width' members.
11488
11489 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11490 (compute_tip_xy):
11491 * frame.c (x_fullscreen_adjust):
11492 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11493 x_display_pixel_width.
11494
11495 2008-09-18 Kenichi Handa <handa@m17n.org>
11496
11497 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11498 (composition_compute_stop_pos): Fix handling of static composition.
11499 (Fcomposition_get_gstring): Check FROM and TO at first.
11500
11501 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11502
11503 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
11504 mixup (YAILOM).
11505
11506 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
11507
11508 * indent.c (Fvertical_motion): Use position reported by iterator
11509 instead of PT for determining screen motion (bug#943).
11510
11511 2008-09-17 Romain Francoise <romain@orebokech.com>
11512
11513 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11514
11515 2008-09-17 Kenichi Handa <handa@m17n.org>
11516
11517 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11518
11519 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11520 if necessary.
11521
11522 2008-09-16 Kenichi Handa <handa@m17n.org>
11523
11524 * coding.c (make_conversion_work_buffer): Avoid calling
11525 Fget_buffer_create if it is not necessary.
11526
11527 2008-09-15 Martin Rudalics <rudalics@gmx.at>
11528
11529 * window.c (Fselect_window): Don't update window_select_count and
11530 use_time when norecord is not nil.
11531
11532 2008-09-14 Kenichi Handa <handa@m17n.org>
11533
11534 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11535 specpdl_ptr.
11536
11537 2008-09-12 Kenichi Handa <handa@m17n.org>
11538
11539 * indent.c (scan_for_column): Don't handle automatic composition
11540 if the current buffer is not associated with a window.
11541
11542 * composite.c (composition_reseat_it): If the current buffer is
11543 not associated with a window, ignore the automatic composition.
11544 (find_automatic_composition): Likewise.
11545
11546 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11547
11548 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11549 (Fgpm_mouse_stop): Use it.
11550 * termhooks.h (close_gpm): Declare.
11551 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11552 connection if Gpm_GetEvent fails.
11553
11554 * window.c (set_window_buffer): Always preserve current-buffer.
11555
11556 2008-09-12 Glenn Morris <rgm@gnu.org>
11557
11558 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11559
11560 2008-09-11 Glenn Morris <rgm@gnu.org>
11561
11562 * charset.c (charset-map-path): Doc fix.
11563
11564 2008-09-10 Kenichi Handa <handa@m17n.org>
11565
11566 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11567
11568 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11569 compose a grapheme cluster with the preceding base glyph.
11570
11571 * composite.c (composition_compute_stop_pos): Fix previous change.
11572 Reset cmp_it->id to -1 at first.
11573
11574 2008-09-10 Glenn Morris <rgm@gnu.org>
11575
11576 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11577
11578 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
11579
11580 * keyboard.c (read_key_sequence): Reapply translation maps when
11581 switching keyboards.
11582
11583 2008-09-09 Kenichi Handa <handa@m17n.org>
11584
11585 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11586 characters.
11587
11588 * composite.c (FORWARD_CHAR): Fix calculation
11589 of (POSITION).pos_byte.
11590 (composition_compute_stop_pos): Limit the search of composition to
11591 at most 500 characters ahead. If we reach the limit or find a
11592 newline, set cmp_it->ch to -2 and return 0.
11593 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11594
11595 2008-09-08 Kenichi Handa <handa@m17n.org>
11596
11597 * indent.c (Fvertical_motion): Be sure to set
11598 it_overshoot_expected if it.cmp_it.id is non-negative.
11599
11600 2008-09-07 Andreas Schwab <schwab@suse.de>
11601
11602 * callproc.c (Fcall_process): Don't hold references to string data
11603 across garbage collection. Move initialisation of new_argv down
11604 to avoid compiler bug.
11605
11606 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11607
11608 * process.c (Fsystem_process_attributes): Doc fix.
11609
11610 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
11611
11612 * callproc.c (Fcall_process): Canonicalize current directory name.
11613
11614 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11615 iterator advances to the next line if the current line ends in a
11616 continued tab.
11617
11618 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11619
11620 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11621 member to point to cmp_from.
11622
11623 * xdisp.c: Doc fix for references to gidx data member.
11624
11625 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11626
11627 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11628
11629 2008-09-07 Kenichi Handa <handa@m17n.org>
11630
11631 * composite.c (FORWARD_CHAR): Check STOP after
11632 incrementing (POSITION).pos.
11633
11634 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11635
11636 * process.c (Fsystem_process_attributes): Doc fix.
11637
11638 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
11639
11640 * keyboard.c (Ftop_level): Doc fix.
11641
11642 2008-09-06 Eli Zaretskii <eliz@gnu.org>
11643
11644 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11645 minibuffer, don't let lower part of menu invade the echo area.
11646
11647 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11648 "char *q" to access menu text and advance through it. Revert the
11649 change that displayed ">" instead of ASCII character 0x10.
11650
11651 2008-09-05 Eli Zaretskii <eliz@gnu.org>
11652
11653 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11654 toggle boxes and radio buttons on MS-DOS as well.
11655
11656 2008-09-05 Kenichi Handa <handa@m17n.org>
11657
11658 * composite.c (autocmp_chars): Check lookback count.
11659 (composition_compute_stop_pos): Set cmp_it->lookback.
11660 (composition_reseat_it): Check lookback count.
11661 (struct position_record): New struct.
11662 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11663 (find_automatic_composition): New function.
11664 (composition_adjust_point): Use find_automatic_composition.
11665
11666 * dispextern.h (struct composition_it): New member lookback.
11667
11668 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
11669
11670 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11671 if moving by a single line.
11672
11673 2008-09-02 Andreas Schwab <schwab@suse.de>
11674
11675 * xterm.c (x_delete_display): Fix merge error.
11676
11677 * fileio.c (Fexpand_file_name): Remove unused variables.
11678
11679 2008-09-02 Eli Zaretskii <eliz@gnu.org>
11680
11681 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11682 storage on all platforms, not just on DOS_NT.
11683
11684 2008-09-02 Jason Rumney <jasonr@gnu.org>
11685
11686 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11687 Ensure mouse is not grabbed after menu is finished.
11688
11689 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
11690
11691 * xfaces.c (Finternal_set_alternative_font_family_alist)
11692 (Finternal_set_alternative_font_registry_alist): Properly copy
11693 entire alist structure.
11694
11695 2008-09-01 Kenichi Handa <handa@m17n.org>
11696
11697 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
11698 representative chars of the script is a vector.
11699 (ftfont_list): Handle the case where the representative chars of
11700 the script is a vector.
11701
11702 * character.c (syms_of_character): Docstring of
11703 script-representative-chars fixed.
11704
11705 2008-08-31 Eli Zaretskii <eliz@gnu.org>
11706
11707 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11708 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11709 the menu. Allocate larger buffer for `text', to account for
11710 possible ^C characters.
11711
11712 2008-08-31 Martin Rudalics <rudalics@gmx.at>
11713
11714 * xdisp.c (prepare_menu_bars): Don't call
11715 Vwindow_size_change_functions with arg Qt.
11716
11717 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11718
11719 * font.h (font_range):
11720 * fileio.c (report_file_error):
11721 * composite.c (composition_update_it): Yet another int/Lisp_Object
11722 mixup (YAILOM).
11723
11724 2008-08-30 Glenn Morris <rgm@gnu.org>
11725
11726 * data.c (Fmake_variable_frame_local): Doc fix.
11727
11728 * frame.c (Fmodify_frame_parameters): Doc fix.
11729
11730 2008-08-30 Eli Zaretskii <eliz@gnu.org>
11731
11732 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11733 needed by GetTokenInformation.
11734 (w32_system_process_attributes): Check return values of all system
11735 APIs.
11736
11737 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11738 only when the state changes.
11739 (IT_update_begin, IT_update_end): Add termscript trace.
11740
11741 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11742 clipboard is unavailable. Set dst to NULL if it doesn't point to
11743 malloc'ed data.
11744 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11745 passing random values to xfree.
11746
11747 * dispnew.c (init_display): Set `tty's association in frame's
11748 parameters alist to the name of the terminal device, if that is known.
11749
11750 2008-08-29 Jason Rumney <jasonr@gnu.org>
11751
11752 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11753
11754 2008-08-29 Eli Zaretskii <eliz@gnu.org>
11755
11756 * composite.c (fill_gstring_body): Avoid compiler warnings.
11757
11758 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11759 LGLYPH_SET_CODE to avoid compiler warnings.
11760
11761 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
11762
11763 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11764
11765 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11766 LGLYPH_SET_CODE.
11767
11768 2008-08-29 Kenichi Handa <handa@m17n.org>
11769
11770 * fileio.c (report_file_error): Don't downcase the first character
11771 of errstring if it is still unibyte.
11772
11773 2008-08-29 Kenichi Handa <handa@m17n.org>
11774
11775 These changes are to re-implement the automatic composition so
11776 that it doesn't use text properties.
11777
11778 * Makefile.in (ftfont.o): Depend on composite.h.
11779 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11780
11781 * character.h (Vunicode_category_table): Extern it.
11782
11783 * character.c (Vunicode_category_table): New variable.
11784 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11785
11786 * chartab.c (optimize_sub_char_table): Perform more greedy
11787 optimization.
11788
11789 * composite.h (enum composition_method):
11790 Delete COMPOSITION_WITH_GLYPH_STRING.
11791 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11792 (Vcomposition_function_table): Extern it.
11793 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11794 (composition_gstring_put_cache, composition_gstring_from_id)
11795 (composition_gstring_p, composition_gstring_width)
11796 (composition_compute_stop_pos, composition_reseat_it)
11797 (composition_update_it, composition_adjust_point): Extern them.
11798 (Fcomposition_get_gstring): EXFUN it.
11799
11800 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
11801 (Vcomposition_function_table)
11802 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
11803 (gstring_hash_table, gstring_work, gstring_work_headers):
11804 New variables.
11805 (gstring_lookup_cache, composition_gstring_put_cache)
11806 (composition_gstring_from_id, composition_gstring_p)
11807 (composition_gstring_width, fill_gstring_header)
11808 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11809 (composition_reseat_it, composition_update_it)
11810 (composition_adjust_point, Fcomposition_get_gstring): New functions.
11811 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11812 and gstring_work_headers. DEFVAR_LISP composition-function-table.
11813 Defsubr composition_get_gstring.
11814
11815 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11816 cmp_id.
11817 (struct glyph_string): Delete the member gidx. New members
11818 cmp_id, cmp_from, and cmp_to.
11819 (enum it_method): Delete GET_FROM_COMPOSITION.
11820 (struct composition_it): New struct.
11821 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11822 Delete c, len, cmp_id, cmp_len in u.comp.
11823
11824 * font.h (enum lgstring_indices): Delete it.
11825 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
11826 (enum lglyph_indices): Likewise.
11827 (font_range): Adjust extern.
11828 (font_fill_lglyph_metrics): Extern it.
11829
11830 * font.c (QCf): New variable.
11831 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11832 (font_prepare_composition): Delete this function.
11833 (font_range): Type and arguments changed.
11834 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11835 (font_fill_lglyph_metrics): New function.
11836 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
11837 (syms_of_font): DEFSYM QCf. Delete defsubr for
11838 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11839 Defsubr Sfont_shape_gstring.
11840
11841 * fontset.h (font_for_char): Extern it.
11842
11843 * fontset.c (font_for_char): New function.
11844
11845 * ftfont.c: Include composite.h.
11846 (ftfont_resolve_generic_family): Add langset "en" to pattern.
11847 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11848
11849 * indent.c: Include composite.h and dispextern.h.
11850 (check_composition): Delete this function.
11851 (scan_for_column): Handle composition by
11852 composition_compute_stop_pos, composition_reseat_it, and
11853 composition_update_it.
11854 (compute_motion): Likewise.
11855 (Fvertical_motion): Fix checking of composition.
11856
11857 * keyboard.c (adjust_point_for_property): Check composition by
11858 composition_adjust_point.
11859
11860 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
11861 struct glyph_string.
11862
11863 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11864 (append_composite_glyph): Adjust for the change of struct it and
11865 struct glyph.
11866 (produce_composite_glyph): Likewise.
11867
11868 * w32term.c (x_draw_composite_glyph_string_foreground):
11869 Adjust for the change of struct glyph_string.
11870 (x_draw_glyph_string): Likewise.
11871
11872 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11873 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11874
11875 * xdisp.c: Include font.h.
11876 (it_props): Delete the entry for Qauto_composed.
11877 (init_iterator): Initialize it->cmp_it.id to -1.
11878 (compute_stop_pos): Call composition_compute_stop_pos.
11879 (face_before_or_after_it_pos): Adjust for the change of struct it.
11880 (handle_auto_composed_prop): Delete it.
11881 (handle_composition_prop): Handle only static composition.
11882 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11883 from xassert. Initialize it->cmp_it.stop_pos.
11884 (push_it): Adjust for the change of struct it.
11885 (pop_it): Likewise.
11886 (get_next_element): Delete next_element_from_composition.
11887 (CHAR_COMPOSED_P): New macro.
11888 (get_next_display_element): For automatic composition, get a face
11889 from the font in the glyph-string.
11890 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
11891 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
11892 (next_element_from_string): Check if the character at the current
11893 position is composed by CHAR_COMPOSED_P.
11894 (next_element_from_buffer): Likewise.
11895 (next_element_from_composition): Adjust for the change of struct it.
11896 Update it->cmp_it.
11897 (dump_glyph): Adjust for the change of struct glyph.
11898 (fill_composite_glyph_string): Adjust for the change of struct
11899 it and struct glyph. Don't handle automatic composition here.
11900 (fill_gstring_glyph_string): New function.
11901 (x_get_glyph_overhangs): Handle automatic composition.
11902 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
11903 (BUILD_GSTRING_GLYPH_STRING): New macro.
11904 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11905 automatic composition.
11906 (append_composite_glyph): Adjust for the change of struct it and
11907 struct glyph.
11908 (x_produce_glyphs): Adjust for the change of struct it.
11909
11910 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11911 the change of struct glyph_string.
11912 (x_draw_glyph_string): Likewise.
11913
11914 2008-08-29 Glenn Morris <rgm@gnu.org>
11915
11916 * buffer.c (word-wrap): Doc fix.
11917 * xdisp.c (truncate-partial-width-windows): Doc fix.
11918 Increase default to 50.
11919
11920 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
11921
11922 * xdisp.c (update_tool_bar_unwind): New function.
11923 (update_tool_bar): Temporarily set selected frame before building
11924 tool-bar items.
11925
11926 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
11927
11928 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11929 snprintf, respectively.
11930 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11931
11932 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
11933
11934 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11935 LDFLAGS to GNUstep CC invocation.
11936
11937 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
11938
11939 * indent.c (Fvertical_motion): Revert last change. Handle the
11940 general case where we are moving forward, and PT spans multiple
11941 screen lines.
11942
11943 * eval.c (find_handler_clause): Temporarily increase
11944 max-lisp-eval-depth while printing the backtrace buffer, to
11945 guarantee that help-mode code can run.
11946
11947 2008-08-27 Eli Zaretskii <eliz@gnu.org>
11948
11949 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11950 colors under -rv.
11951 (IT_set_frame_parameters): Don't swap foreground and background
11952 colors if `(reverse . t)' is present in the frame properties.
11953 (internal_terminal_init): Call init_frame_faces only for the
11954 initial frame.
11955
11956 2008-08-27 Andreas Schwab <schwab@suse.de>
11957
11958 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11959
11960 2008-08-27 Andreas Schwab <schwab@suse.de>
11961
11962 * search.c (search_buffer): Set char_base to zero only at the end.
11963
11964 2008-08-27 Kenichi Handa <handa@m17n.org>
11965
11966 * fileio.c (report_file_error): Fix handling of multibyte error string.
11967
11968 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11969
11970 * xterm.c (x_term_init): Temporarily hide the partially
11971 initialized terminal while calling vendor-specific-keysyms.
11972
11973 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11974
11975 * msdos.c (internal_terminal_init): Most initializations done only
11976 once, especially initial_screen_colors[] and termscript open.
11977
11978 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11979
11980 * eval.c (Fcondition_case): Doc fix.
11981
11982 * widgetprv.h (EmacsFramePart): Change font member to the new font
11983 struct.
11984
11985 * widget.c: Include character.h and font.h for XSETFONT.
11986 (setup_frame_gcs): Compute X font id from font struct, just once.
11987
11988 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11989
11990 * term.c (get_named_tty): Fix last change.
11991
11992 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11993
11994 * indent.c (Fvertical_motion): If moving forward starting from a
11995 multi-line string, move the iterator to the last line of that string.
11996
11997 2008-08-25 Eli Zaretskii <eliz@gnu.org>
11998
11999 * frame.c (do_switch_frame): Mark previously displayed frame as
12000 obscured for FRAME_MSDOS_P frames as well.
12001
12002 2008-08-24 Eli Zaretskii <eliz@gnu.org>
12003
12004 * frame.c (make_terminal_frame): Initialize f->terminal,
12005 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12006 Set the top frame to newly created frame.
12007 (Fmake_terminal_frame): Reuse the_only_display_info.
12008
12009 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12010 estimating available memory.
12011
12012 2008-08-23 David Reitter <david.reitter@gmail.com>
12013
12014 * nsterm.m (ns_draw_window_cursor): Don't call
12015 NSDisableScreenUpdates and NSEnableScreenUpdates on
12016 non-NS_IMPL_COCOA systems.
12017
12018 2008-08-23 Andreas Schwab <schwab@suse.de>
12019
12020 * process.c (procfs_system_process_attributes): Fix use of
12021 uninitialized variables.
12022
12023 2008-08-23 Eli Zaretskii <eliz@gnu.org>
12024
12025 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12026
12027 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12028 calling tty-set-up-initial-frame-faces.
12029
12030 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12031 Allow MSDOS frames along with X frames.
12032
12033 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12034 addition to output_termcap.
12035
12036 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12037
12038 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12039 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12040 highlight.
12041
12042 * process.c [!subprocesses]: Define QCname.
12043 (syms_of_process): Intern and staticpro it.
12044
12045 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
12046 Adjust for changes in encoding/decoding routines.
12047 Use encode_coding_object and decode_coding_object instead of
12048 encode_coding and decode_coding.
12049
12050 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
12051
12052 * dosfns.c: Include frame.h before termhooks.h.
12053 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12054 variable termscript.
12055
12056 * s/msdos.h (USER_FULL_NAME): Define.
12057 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12058
12059 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12060 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12061 pw->pw_gecos.
12062
12063 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12064 SELECTED_FRAME as additional (1st) argument.
12065 (tty_read_avail_input): Handle output_msdos_raw in
12066 addition to output_termcap.
12067
12068 * msdos.c: Include frame.h before termhooks.h.
12069 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12070 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12071 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12072 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12073 (IT_set_terminal_modes, IT_reset_terminal_modes)
12074 (IT_set_frame_parameters): Use tty->termscript instead of a global
12075 variable termscript.
12076 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12077 global variable terminal_coding. Don't refer to
12078 Vnonascii_translation_table.
12079 (internal_terminal_init): Set Vwindow_system in current_kboard.
12080 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12081 Announce date and time of session start, if termscript is open.
12082 Don't zero out the_only_display_info (it is done in
12083 term.c:init_tty). Open termscript only of not already open.
12084 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
12085 here instead of dos_ttraw. Don't initialize display if this is an
12086 initial tty. Don't set FRAME_FONT.
12087 (Vwindow_system_version): Bump to 23.
12088 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12089 is available, set up mouse_position_hook.
12090 (dos_ttraw, IT_set_terminal_modes): If called with initial
12091 terminal, do nothing.
12092 (IT_set_frame_parameters): Handle the Qtty_type frame
12093 parameter by calling internal_terminal_init.
12094 (dos_set_window_size, show_mouse_face)
12095 (clear_mouse_face, IT_note_mode_line_highlight)
12096 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12097 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12098 (initialize_msdos_display): New function.
12099 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12100 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12101 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12102 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
12103 Accept additional argument: a pointer to a frame. Update all callers.
12104 (request_sigio, unrequest_sigio): Don't define, now defined on
12105 sysdep.c.
12106 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12107
12108 * term.c [MSDOS]: Include msdos.h.
12109 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12110 conditional to DOS_NT. Allow only one call to this function in a
12111 session. Don't allocate a new struct tty_display_info; instead,
12112 reuse the_only_display_info. Call get_tty_size to get screen
12113 dimensions. Call init_baud_rate to set bad_rate.
12114 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12115 (Fsuspend_tty) [MSDOS]: Don't close input and output.
12116 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
12117 (get_tty_terminal, get_named_tty, Ftty_type)
12118 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12119 output_termcap.
12120 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12121 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
12122 only when subprocesses are supported.
12123
12124 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12125 f->output_data.x.
12126 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12127 terminal devices.
12128
12129 * msdos.h: Remove definition of struct x_display_info and struct
12130 x_output.
12131 (FRAME_FONT): Use output_data.tty.
12132 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
12133 (struct x_display_info): Rename from display_info. Update all users in
12134 msdos.c.
12135 (struct x_output): Remove background_pixel and foreground_pixel.
12136 (the_only_display_info): Rename from the_only_x_display.
12137 (dos_ttraw): Update prototype.
12138
12139 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12140 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12141
12142 2008-08-23 Jason Rumney <jasonr@gnu.org>
12143
12144 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12145 (fn_TIFFSetDirectory): New library function used.
12146 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12147 (tiff_load): Use :index to select among multiple images. Set count
12148 property when multiple images exist.
12149 (gif_format): Use :index, not :image.
12150
12151 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
12152
12153 * xdisp.c (try_scrolling): Check INT_MAX instead of
12154 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12155 to obtain INT_MAX.
12156
12157 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12158
12159 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12160
12161 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12162
12163 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12164 GNUstep library location.
12165
12166 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
12167
12168 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12169 before using it.
12170
12171 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12172
12173 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12174
12175 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12176 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12177 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12178 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12179 (EmacsApp-cursor_blink_handler): Remove declaration.
12180 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12181 match 01 Feb 2008 changes in xterm.c.
12182 (ns_read_socket): Add cast to avoid warning.
12183 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12184 GNUstep.
12185
12186 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
12187
12188 * xselect.c (x_get_foreign_selection): Return nil if desired
12189 selection could not be obtained, instead of signalling an error.
12190
12191 2008-08-20 David Reitter <david.reitter@gmail.com>
12192
12193 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12194 * nsterm.m: Remove ns-specific code for cursor blinking.
12195 (ns_draw_window_cursor): Clear cursor properly rather than
12196 redrawing the area. Respect width of bar cursors.
12197 These changes enable the use of generic blink-cursor-mode and
12198 generic cursor types in NS and support smooth cursor movements (do
12199 not blink off after command).
12200 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12201 Nextstep, too.
12202
12203 2008-08-19 Kenichi Handa <handa@m17n.org>
12204
12205 * font.c (Vfont_log_deferred): New variable.
12206 (font_add_log): Check Vfont_log_deferred.
12207 (font_deferred_log): New function.
12208
12209 * font.h (font_deferred_log): Extern it.
12210
12211 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12212 for sorting.
12213 (face_for_char): Use deferred log.
12214
12215 2008-08-18 Kenichi Handa <handa@m17n.org>
12216
12217 * fontset.c (face_for_char): Add font log.
12218
12219 * font.c (font_add_log): Add the font properties :script, :lang,
12220 and :otf in the log.
12221
12222 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
12223
12224 * xdisp.c: Remove dead code.
12225 (handle_invisible_prop, next_overlay_string): Defer call to
12226 setup_for_ellipsis.
12227 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12228
12229 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
12230
12231 * xfaces.c (lookup_derived_face): Properly handle possible zero
12232 return value of get_lface_attributes.
12233 (merge_faces): Don't tell lookup_derived_face to signal an error
12234 if face is not found.
12235
12236 * dired.c (Fdirectory_files): Doc fix.
12237
12238 * process.c (make_process): Initialize kill_without_query struct
12239 member.
12240
12241 2008-08-15 Eli Zaretskii <eliz@gnu.org>
12242
12243 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12244 Alternative calculation of totphys for Visual Studio 6.
12245
12246 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12247
12248 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12249 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12250 All users changed.
12251 (stat): Only root directory passed to GetDriveType. Allow RAM
12252 disk as well as local fixed disk when w32-get-true-file-attributes
12253 is set to `local'.
12254 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12255 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12256 (w32_cached_id, w32_add_to_cache): New functions.
12257 (get_name_and_id): Look account names in the cache before calling
12258 lookup_account_sid.
12259 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12260 New initialization flags.
12261 (globals_of_w32): Initialize them to zero.
12262 (w32_system_process_attributes): Use w32_cached_id and
12263 w32_add_to_cache.
12264
12265 2008-08-14 Lawrence Mitchell <wence@gmx.li>
12266
12267 * lread.c (Fread_char, Fread_char_exclusive): If no character
12268 event is read before timeout is reached, return nil, rather than
12269 converting to a number.
12270
12271 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
12272
12273 * fns.c (use_dialog_box): Doc fix.
12274
12275 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12276 on OS X.
12277
12278 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
12279
12280 * frame.c (Qns_parse_geometry): New var.
12281 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12282
12283 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
12284
12285 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12286 space character in calculating tabs.
12287
12288 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12289
12290 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12291
12292 2008-08-10 Glenn Morris <rgm@gnu.org>
12293
12294 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12295 silence gcc "limited range of data type" warnings in some
12296 make_fixnum_or_float calls.
12297
12298 2008-08-09 Eli Zaretskii <eliz@gnu.org>
12299
12300 * w32.c (w32_system_process_attributes): If the process does not
12301 exist, return nil.
12302
12303 * w32.c: Include thelp32.h, psapi.h and coding.h.
12304 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12305 declarations.
12306 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12307 (Process32Next_Proc): New typedefs.
12308 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12309 (g_b_init_process32_next, g_b_init_open_thread_token)
12310 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12311 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12312 (g_b_init_get_process_working_set_size)
12313 (g_b_init_global_memory_status_ex): New static variables.
12314 (globals_of_w32): Initialize them.
12315 (create_toolhelp32_snapshot, process32_first, process32_next)
12316 (open_thread_token, impersonate_self, revert_to_self)
12317 (get_process_memory_info, get_process_working_set_size)
12318 (global_memory_status, global_memory_status_ex): New wrapper
12319 functions.
12320 (w32_list_system_processes, w32_system_process_attributes)
12321 (enable_privilege, restore_privilege, ltime, process_times):
12322 New functions.
12323 (convert_time_raw): New function.
12324 (convert_time): Remove conversion of FILETIME into time in 100
12325 nsec units, call convert_time_raw instead.
12326
12327 * process.h (w32_list_system_processes, w32_system_process_attributes):
12328 Add prototypes.
12329 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12330 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12331 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12332 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12333
12334 * process.c (Fsystem_process_attributes): Doc fix.
12335
12336 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
12337
12338 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12339 a continued multi-char glyph; if so, advance to the actual glyph.
12340
12341 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12342
12343 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12344
12345 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12346 (.m.o): Use it.
12347 * config.in: Regenerate.
12348
12349 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
12350
12351 * xdisp.c (redisplay_window): Revert last change.
12352 (try_window): Check bottom scroll margin too.
12353
12354 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12355
12356 * config.in: Regenerate.
12357
12358 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12359 -list-load-path-shadows'.
12360 (nsgui.h): Reduce number of things depending on it.
12361
12362 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
12363
12364 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12365 instead of window-end which does the wrong thing at eob.
12366 (try_cursor_movement): Minor optimization.
12367 (redisplay_window): If scroll margin is defined, don't assume
12368 window doesn't need scrolling.
12369
12370 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12371
12372 * config.in: Regenerate.
12373
12374 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12375 (mostlyclean): Don't delete *.d under NS.
12376
12377 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12378
12379 2008-08-06 Kenichi Handa <handa@m17n.org>
12380
12381 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12382
12383 2008-08-06 Andreas Schwab <schwab@suse.de>
12384
12385 * config.in: Regenerate.
12386
12387 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
12388
12389 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12390 forcing a window start.
12391
12392 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12393 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12394
12395 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12396
12397 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12398 argument.
12399
12400 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
12401
12402 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12403 <scroll-down-aggressively, before-change-functions>:
12404 <after-change-functions>: Reflow docstrings.
12405
12406 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12407 Ken Raeburn <raeburn@gnu.org>
12408
12409 Dock menu customization, based on a patch by Ken Raeburn, plus some
12410 other fixes.
12411 * nsmenu.m (dockMenu): New variable.
12412 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12413
12414 * nsterm.h (dockMenu): Declare.
12415
12416 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12417 (ns_term_init): Initialize dockMenu.
12418 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12419 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12420 left.
12421
12422 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12423
12424 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12425
12426 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12427
12428 * config.in: Regenerate.
12429
12430 2008-08-04 Seiji Zenitani <zenitani@mac.com>
12431
12432 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12433
12434 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12435
12436 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12437
12438 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12439
12440 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12441
12442 * keyboard.h: Comment an #endif.
12443
12444 * lisp.h (have_menus_p): Adjust comment.
12445
12446 * menu.c (find_and_return_menu_selection): Fix comparison with
12447 client_data.
12448
12449 * nsmenu.m (popup_activated_flag): New variable.
12450 (popup_activated): New function.
12451 (menu-or-popup-active-p): New exported lisp definition.
12452 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12453 when popup done.
12454 (ns_popup_dialog): Set popup_activated_flag.
12455
12456 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12457 version for GNUstep (handled by conditional typedef in nsterm.m).
12458 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12459 in rgb.txt).
12460
12461 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12462
12463 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12464
12465 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12466
12467 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12468 shortcircuit if popup_activated like GTK and X toolkit.
12469
12470 * m/inter386.h: Change DARWIN to DARWIN_OS.
12471
12472 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12473 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12474 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12475 comment on NO_SOCK_SIGIO.
12476
12477 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
12478
12479 * nsterm.m (windowDidResize): Remove stopModal call.
12480
12481 2008-08-03 Andreas Schwab <schwab@suse.de>
12482
12483 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12484 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12485
12486 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
12487
12488 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12489 Don't use uninitialized pointer variable when using getrlimit.
12490
12491 2008-08-02 Jason Rumney <jasonr@gnu.org>
12492
12493 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12494
12495 2008-08-02 Eli Zaretskii <eliz@gnu.org>
12496
12497 * alloc.c (NSTATICS): Bump to 0x640.
12498
12499 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12500
12501 * lisp.h: Add prototype for directory_files_internal.
12502
12503 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12504 New functions.
12505 (syms_of_process): Defsubr them. Add initializations for various
12506 Q* symbols used in procfs_system_process_attributes.
12507 (procfs_list_system_processes, procfs_system_process_attributes)
12508 [HAVE_PROCFS]: New functions.
12509 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12510 (procfs_get_total_memory): New functions.
12511
12512 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12513
12514 * xfaces.c (Fx_load_color_file): Fix previous change;
12515 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12516
12517 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
12518
12519 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12520
12521 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12522
12523 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12524
12525 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
12526
12527 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12528
12529 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12530 define NSApplicationDelegateReplySuccess.
12531 (EmacsView -converstationIdentifier): Use long instead of
12532 NSInteger for GNUstep, since it doesn't have NSInteger.
12533
12534 * xmenu.c: Revert last change.
12535
12536 * keyboard.h: Fix last change.
12537
12538 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12539
12540 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12541 on Windows.
12542
12543 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12544
12545 Warning clearing and clean-up in NS port.
12546 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12547 Add prototypes.
12548 * nsgui.h (FACE_DEFAULT): Remove, unused.
12549 (XGCValues): Change colors to unsigned long.
12550 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12551 nsterm.m.
12552 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12553 (ns_list_fonts): Remove, unused.
12554 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12555 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12556 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12557 (nsfont_draw): Compare face colors to 0, not nil.
12558 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12559 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12560 (-addSubmenuWithTitle:): Use NSMenuItem class.
12561 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12562 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12563 (ns_clip_to_row): Make gc arg a BOOL.
12564 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12565 ns_clip_to_row() call.
12566 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12567 used). Cast FRAME_FONT assignments.
12568 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12569 (ns_string_to_lispmod): Change arg to const char.
12570 (ns_term_init): Use NSMenuItem class.
12571 (EmacsApp -openFile:): Move to different section of file.
12572 (EmacsApp -application:openFiles:): Don't return a value, call
12573 -replyToOpenOrPrint:.
12574 (EmacsView -keyDown:): Fix up cast.
12575 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12576 (EmacsView -menuDown:): Cast tag in call to
12577 find_and_call_menu_selection().
12578 (ns_list_fonts): Remove, unused.
12579 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12580 (ns_fontname_to_xlfd): Make static.
12581 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12582 Remove prototypes (now in keyboard.h).
12583 (next_menubar_widget_id): Remove, unused.
12584 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12585 Remove prototypes (now in keyboard.h).
12586 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12587
12588 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12589
12590 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12591 (floatfns.o): Depend on syssignal.h.
12592 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12593
12594 * systty.h: Fix previous change that removed BSD_TERMIOS.
12595 Add comments to #ifdefs.
12596
12597 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12598
12599 * w32fns.c (w32-load-color-file): Remove.
12600 (x-open-connection): Use renamed Fx_load_color_file.
12601 * xfaces.c (x-load-color-file): Add.
12602 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12603 Emacs.clr.
12604 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12605
12606 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
12607
12608 * dbusbind.c (Fdbus_call_method_asynchronously)
12609 (Fdbus_method_error_internal): New defuns.
12610 (xd_read_message): Handle also reply messages.
12611 (Vdbus_registered_functions_table): Extend docstring.
12612
12613 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
12614
12615 * keyboard.c (gobble_input): Fix previous change.
12616
12617 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12618
12619 * bitmaps/README:
12620 * xfns.c:
12621 * termcap.c:
12622 * term.c:
12623 * syswait.h:
12624 * systty.h:
12625 * systime.h:
12626 * syssignal.h:
12627 * sysdep.c:
12628 * process.h:
12629 * process.c:
12630 * print.c:
12631 * ndir.h:
12632 * lread.c:
12633 * keyboard.c:
12634 * getpagesize.h:
12635 * floatfns.c:
12636 * fileio.c:
12637 * emacs.c:
12638 * doc.c:
12639 * dispnew.c:
12640 * dired.c:
12641 * data.c:
12642 * callproc.c:
12643 * buffer.c:
12644 * README:
12645 * Makefile.in:
12646 * s/template.h:
12647 * s/msdos.h:
12648 * m/vax.h: Remove VMS support.
12649 * s/vms.h:
12650 * vlimit.h:
12651 * uaf.h:
12652 * temacs.opt:
12653 * param.h:
12654 * ioctl.h: Remove file.
12655
12656 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12657
12658 * s/ms-w32.h (MULTI_KBOARD): Remove.
12659 * xterm.c:
12660 * xselect.c:
12661 * xfns.c:
12662 * window.c:
12663 * w32term.c:
12664 * w32fns.c:
12665 * terminal.c:
12666 * termhooks.h:
12667 * term.c:
12668 * sysdep.c:
12669 * keyboard.h:
12670 * keyboard.c:
12671 * frame.h:
12672 * frame.c:
12673 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12674 * config.in: Regenerate.
12675
12676 2008-07-30 Jason Rumney <jasonr@gnu.org>
12677
12678 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12679
12680 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12681 (w32font_open_internal): Get unicode version of textmetrics.
12682 Don't enable or disable glyph indices here.
12683 (w32font_open): Disable use of glyph indices.
12684
12685 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12686
12687 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
12688
12689 * minibuf.c (Vread_buffer_function): Doc fix.
12690
12691 2008-07-30 John Paul Wallington <jpw@pobox.com>
12692
12693 * minibuf.c (read_buffer_completion_ignore_case): New var.
12694 (Fread_buffer): Use it.
12695
12696 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12697
12698 * systty.h (sensemode): Remove empty #if. Remove reference to
12699 BSD_TERMIOS, unused.
12700
12701 * sysdep.c: Remove reference to DGUX.
12702 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12703
12704 * config.in: Regenerate.
12705
12706 2008-07-30 Jason Rumney <jasonr@gnu.org>
12707
12708 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12709
12710 2008-07-29 Jason Rumney <jasonr@gnu.org>
12711
12712 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12713 is populated.
12714 (uniscribe_encode_char): Always use uniscribe.
12715 Avoid using context if cache is populated.
12716
12717 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12718
12719 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12720 open menu.
12721
12722 * gtkutil.c (menu_nav_ended): Remove.
12723 (create_menus): Remove signal connect for menu_nav_ended.
12724
12725 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
12726
12727 * xdisp.c (redisplay_window): Check return value of
12728 compute_window_start_on_continuation_line before forcing a window
12729 start.
12730
12731 2008-07-28 Jason Rumney <jasonr@gnu.org>
12732
12733 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12734
12735 * w32term.c (w32_enable_unicode_output, cleartype_active):
12736 Remove obsolete display options.
12737 (x_draw_glyph_string_background): Don't use old cleartype_active
12738 workaround.
12739 (w32_initialize): Remove cleartype_active initialization.
12740 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12741
12742 2008-07-28 Andreas Schwab <schwab@suse.de>
12743
12744 * lisp.h (init_weak_hash_tables, syms_of_font)
12745 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12746 (remove_hash_entry): Don't declare.
12747 * eval.c (maybe_call_debugger): Make static and move before use.
12748 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12749 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12750 * xterm.h (x_set_frame_alpha): Declare.
12751
12752 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12753
12754 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12755 (create_menus): Connect selection-done to menu_nav_ended.
12756
12757 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12758
12759 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12760 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12761 parameter with read of 'alpha' one.
12762 (Qns_frame_parameter): Remove.
12763 * nsselect.m (selection-coding-system)
12764 (next-selection-coding-system, Vselection_coding_system)
12765 (Vnext_selection_coding_system): Drop.
12766
12767 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12768
12769 * nsfns.m (do-applescript, do_applescript): Rename to
12770 ns-do-applescript, ns_do_applescript, and move within file.
12771
12772 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12773
12774 Remove support for Mac Carbon.
12775 * mactoolbox.c:
12776 * macterm.h:
12777 * macterm.c:
12778 * macselect.c:
12779 * macmenu.c:
12780 * macgui.h:
12781 * macfns.c:
12782 * mac.c: Remove file.
12783 * s/darwin.h:
12784 * m/intel386.h:
12785 * xfaces.c:
12786 * xdisp.c:
12787 * window.c:
12788 * tparam.c:
12789 * termhooks.h:
12790 * termcap.c:
12791 * term.c:
12792 * syssignal.h:
12793 * sysselect.h:
12794 * sysdep.c:
12795 * process.c:
12796 * lread.c:
12797 * lisp.h:
12798 * keyboard.c:
12799 * image.c:
12800 * fringe.c:
12801 * frame.h:
12802 * frame.c:
12803 * fontset.c:
12804 * font.h:
12805 * font.c:
12806 * fns.c:
12807 * fileio.c:
12808 * emacs.c:
12809 * dispnew.c:
12810 * dispextern.h:
12811 * config.in:
12812 * atimer.c:
12813 * Makefile.in: Remove code for Carbon.
12814
12815 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12816
12817 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12818
12819 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12820
12821 * macterm.h (kCGBitmapByteOrder32Host): New define for
12822 non-universal SDKs.
12823
12824 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12825 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12826
12827 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12828 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12829
12830 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12831
12832 * w32inevt.c: Include dispextern.h.
12833
12834 2008-07-26 Andreas Schwab <schwab@suse.de>
12835
12836 * print.c (print_object): Fix off-by-one in last change.
12837
12838 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
12839
12840 * term.c (syms_of_term): Don't initialize default_orig_pair,
12841 default_set_foreground and default_set_background on Windows.
12842
12843 2008-07-25 Jason Rumney <jasonr@gnu.org>
12844
12845 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12846 ScriptItemize. Clean up return value checking. Remove unused
12847 variables.
12848 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12849 shaping engine.
12850
12851 * w32font.c (w32font_has_char): Handle the case where we can't
12852 determine the script for a character.
12853
12854 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12855
12856 * term.c (syms_of_term): Initialize default_orig_pair,
12857 default_set_foreground, and default_set_background.
12858
12859 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12860 clash (bug#86).
12861 (getloadavg): Callers changed.
12862
12863 * image.c (svg_load_image): Fix last change.
12864 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12865 image size is valid. Use g_object_unref instead of deprecated
12866 rsvg_handle_free to free rsvg handle.
12867 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12868
12869 2008-07-25 Jason Rumney <jasonr@gnu.org>
12870
12871 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12872 surrogates before looking up glyph index.
12873 (w32font_text_extents): Encode as surrogates if falling back to
12874 functions that need UTF-16 wide chars.
12875
12876 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12877 BMP as surrogates before looking up glyph index.
12878
12879 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12880
12881 * image.c (svg_load_image): Check for failure in return value of
12882 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12883
12884 2008-07-25 Jason Rumney <jasonr@gnu.org>
12885
12886 * w32font.c (Fx_select_font): Reverse sense of second arg.
12887
12888 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12889
12890 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12891 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12892
12893 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12894 (PURESIZE): Use it.
12895
12896 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12897
12898 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12899 * m/alpha.h (TEXT_END):
12900 * m/ibmrs6000.h (TEXT_END):
12901 * m/macppc.h (TEXT_END):
12902 * s/darwin.h (TEXT_END):
12903 * s/msdos.h (TEXT_END): Remove, unused.
12904 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12905 * s/cygwin.h: Remove comment.
12906
12907 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12908 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12909 * m/intel386.h (DOT_GLOBAL_START):
12910 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12911 (USG): Remove, file not used on USG platforms.
12912
12913 * Makefile.in (HAVE_X11): Remove empty #else.
12914
12915 2008-07-24 Andreas Schwab <schwab@suse.de>
12916
12917 * fileio.c (Finsert_file_contents): Properly adjust undo list
12918 after format conversion.
12919
12920 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12921
12922 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12923 (menu_nav_ended): Remove.
12924 (create_menus): Remove signal connect for menu_nav_ended.
12925 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12926 create_menus.
12927 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12928
12929 2008-07-23 Jason Rumney <jasonr@gnu.org>
12930
12931 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12932 with opened font.
12933 (w32font_open): Set font type to gdi.
12934
12935 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12936
12937 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12938
12939 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12940 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12941 defines it.
12942 * unexec.c (ADDR_CORRECT): Define unconditionally.
12943
12944 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12945
12946 * unexec.c: Remove code depending on !COFF and USG, the file is
12947 not used for such systems.
12948
12949 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12950 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12951 (LD_SWITCH_SYSTEM_1): Remove, update users.
12952
12953 * s/darwin.h (DATA_END):
12954 * m/intel386.h (DATA_END):
12955 * m/ibmrs6000.h (DATA_END):
12956 * m/alpha.h (DATA_END): Remove, unused.
12957
12958 * config.in: Regenerate.
12959 * s/ms-w32.h (subprocesses): Define unconditionally.
12960 * s/template.h (subprocesses): Update comment.
12961 * s/vms.h (subprocesses):
12962 * s/usg5-4.h (subprocesses):
12963 * s/hpux10-20.h (subprocesses):
12964 * s/gnu-linux.h (subprocesses):
12965 * s/cygwin.h (subprocesses):
12966 * s/bsd-common.h (subprocesses):
12967 * s/aix4-2.h (subprocesses):
12968 * s/darwin.h (subprocesses): Do not define, defined by default now.
12969
12970 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12971 Remove all references.
12972 (temacs): Add GNUstep specific ld flags.
12973
12974 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12975 similarly to what X does.
12976
12977 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12978
12979 * nsfns.m (x-list-fonts): Remove.
12980 (syms_of_nsfns): Drop the x-list-fonts declaration.
12981 * nsterm.m: Get rid of remaining "//" comments.
12982
12983 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
12984
12985 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12986
12987 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12988 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12989 (Fns_own_selection_internal, Fx_disown_selection_internal)
12990 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12991
12992 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12993 ... */' style of docstrings. Doc fixes.
12994
12995 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12996
12997 * terminfo.c (UP, BC, PC): Undo previous change.
12998
12999 * nsfns.m: Rename ns prefixed functions/variables to the
13000 corresponding x versions. Update references.
13001
13002 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13003
13004 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13005
13006 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13007
13008 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13009 Remove forwarding functions.
13010 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13011 non-static.
13012 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13013 non-static.
13014 (ns_frame_parm_handlers): Use the new names.
13015 (syms_of_nsfns): Move to the end of file.
13016
13017 * nsterm.m (syms_of_nsterm): Move to the end of file.
13018
13019 * dispnew.c (init_display): Remove code for X10.
13020
13021 2008-07-22 Jason Rumney <jasonr@gnu.org>
13022
13023 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13024 bare drive.
13025
13026 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13027
13028 * nsterm.m (syms_of_nsterm): Remove debugging println.
13029
13030 2008-07-22 David Reitter <david.reitter@gmail.com>
13031
13032 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13033 Carbon implementation of the same functionality: execute arbitrary
13034 AppleScript code.
13035
13036 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13037
13038 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13039 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13040 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13041 (Fx_display_mm_height, Fx_display_mm_width)
13042 (Fx_display_backing_store, Fx_display_visual_class)
13043 (Fx_display_save_under, Fx_open_connection)
13044 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13045 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13046 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13047 (Fx_display_pixel_width, Fx_display_pixel_height)
13048 (Fx_display_usable_bounds, Fx_display_planes)
13049 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13050 ... */' style of docstrings.
13051
13052 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13053
13054 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13055 on this platform.
13056 (mips):
13057 * m/iris4d.h (mips): Do not define.
13058 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13059
13060 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13061
13062 * image.c:
13063 * nsfns.m:
13064 * nsselect.m:
13065 * nsterm.h:
13066 * nsterm.m: Rename ns prefixed functions/variables to the
13067 corresponding x versions. Update references.
13068
13069 * m/ibms390x.h (NO_REMAP): Do not undefine.
13070
13071 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13072
13073 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
13074
13075 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13076 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13077 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13078 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13079 (Fns_display_mm_height, Fns_display_mm_width)
13080 (Fns_display_backing_store, Fns_display_visual_class)
13081 (Fns_display_save_under, Fns_open_connection)
13082 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13083 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13084 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13085 (Fns_display_pixel_width, Fns_display_pixel_height)
13086 (Fns_display_usable_bounds, Fx_display_planes)
13087 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13088
13089 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13090
13091 * print.c (print_object): Check print_depth before searching for
13092 circularities.
13093
13094 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
13095
13096 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13097 only sprintf.
13098
13099 2008-07-21 Kenichi Handa <handa@m17n.org>
13100
13101 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13102
13103 2008-07-20 Andreas Schwab <schwab@suse.de>
13104
13105 * syntax.c (find_start_pos, find_start_value)
13106 (find_start_value_byte, find_start_begv, find_defun_start)
13107 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13108
13109 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13110
13111 * s/sol2-3.h: Insert contents of s/sol2.h.
13112 (LD_SWITCH_SYSTEM): Remove redundant definition.
13113 * s/sol2.h: Remove, unused.
13114
13115 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13116
13117 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13118
13119 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13120
13121 * Makefile.in (ns_appdir): Fix typo in find command.
13122
13123 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13124
13125 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13126
13127 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13128 added not supported anymore.
13129
13130 * s/usg5-4-2.h (LIBS_SYSTEM):
13131 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13132
13133 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13134 * s/lynxos.h (GETPGRP_NO_ARG):
13135 * s/hpux10-20.h (NO_SIOCTL_H):
13136 * s/gnu.h (GETPGRP_NO_ARG):
13137 * s/gnu-linux.h (NO_SIOCTL_H):
13138 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13139 * s/cygwin.h (GETPGRP_NO_ARG):
13140 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13141 (C_DEBUG_SWITCH): Remove duplicate definition.
13142
13143 * m/ibms390.h: Remove boilerplate comments.
13144
13145 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13146
13147 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13148 (wait_reading_process_output): Remove code for SunOS, platform not
13149 supported anymore. Use SOLARIS2 instead of sun.
13150
13151 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13152
13153 * font.c (font_open_by_name): Under NS, default lface height to zero.
13154 (font_open_for_lface): Under NS, set size based on frame fontsize.
13155 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13156 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13157
13158 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13159
13160 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13161 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13162 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13163 YES/NO.
13164 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13165 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13166 * Makefile.in (clean): Clear out build destination dir.
13167
13168 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13169
13170 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13171 xterm, xselect.
13172 * lisp.h: Remove declaration of hash_remove.
13173 * nsgui.h: Remove redefinitions of hash_remove.
13174 * fns.c (hash_remove): Rename to hash_remove_from_table.
13175
13176 2008-07-19 Seiji Zenitani <zenitani@mac.com>
13177
13178 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13179 strdup() the family UTF8String before modifying it.
13180
13181 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13182
13183 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13184 NS_FACE_BACKGROUND with 0 instead of nil.
13185 * nsfont.m (nsfont_draw): Same.
13186
13187 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
13188
13189 * nsfns.m (ns_set_background_color): Fix crash.
13190
13191 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
13192
13193 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13194
13195 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13196
13197 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13198
13199 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13200
13201 * gtkutil.c: Include <config.h> instead of "config.h".
13202
13203 * lisp.h (Foverlay_buffer): Add EXFUN.
13204
13205 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13206 child process to complete child_setup. Undo 2005-09-21 change.
13207
13208 * s/darwin.h: Mention setsid after vfork.
13209
13210 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13211
13212 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13213 Depend on macgui.h.
13214
13215 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13216 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13217
13218 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13219 and f19.
13220 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13221
13222 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13223 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13224 Remove enumerators.
13225
13226 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13227 Check if FACE_FROM_ID returns NULL.
13228
13229 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13230
13231 * w32inevt.c (change_frame_size): Remove extern declaration.
13232 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13233 change_frame_size.
13234
13235 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13236
13237 * getloadavg.c: Revert last change (2008-07-15).
13238
13239 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13240
13241 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
13242 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
13243 from configure.
13244
13245 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13246
13247 * s/sol2.h:
13248 * s/sol2-4.h: Reorganize conditionals.
13249
13250 * ecrt0.c: Remove code depending on m68000, not used anymore.
13251
13252 * fns.c (hash_remove): Make static.
13253 * lisp.h (hash_remove): Don't prototype.
13254
13255 * m/ibmrs6000.h:
13256 * m/ibms390x.h:
13257 * m/macppc.h: Remove boilerplate comments.
13258
13259 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13260 Solaris, which does not need them.
13261
13262 * m/vax.h: Remove comments about unsupported systems.
13263
13264 * s/darwin.h: Reorganize ifdefs.
13265
13266 2008-07-17 Andreas Schwab <schwab@suse.de>
13267
13268 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13269
13270 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13271
13272 Use SDATA. Follow coding convention of placing operators at
13273 beginning of next line rather than end of previous line, and placing
13274 spaces around infix operators.
13275
13276 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13277 in case it was defined already.
13278 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13279 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13280 ns_default.
13281 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13282 Lisp_Objects.
13283 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13284 (ns_defined_color, ns_color_to_lisp): Declare.
13285 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13286 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13287 it's accepted even with USE_LISP_UNION_TYPE.
13288 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13289 (update_frame_tool_bar): Remove apparently obsolete tests for
13290 non-integerness of f->tool_bar_lines.
13291 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13292 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13293 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13294 (nsfont_open): Don't confuse NULL for Qnil.
13295 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13296 * menu.h (find_and_call_menu_selection):
13297 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13298 (find_and_return_menu_selection): Always return something.
13299 * frame.h: Include dispextern.h for Display_Info.
13300 (display_x_get_resource): Declare.
13301
13302 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13303
13304 * syntax.c: Remove stdio.h include accidentally introduced in
13305 Emacs.app commit.
13306 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13307 NS_IMPL_COCOA.
13308 * keyboard.c (handle_async_input, input_available_signal): Remove
13309 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13310
13311 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13312
13313 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13314 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13315 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13316 Use SDATA.
13317
13318 * keymap.c: Remove all NS-specific code.
13319 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13320 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13321 where_is_preferred_modifier, return a different value depending on how
13322 preferred is the binding.
13323 (where_is_internal): Adjust accordingly.
13324 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13325 Adjust to new preferred_sequence_p.
13326 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13327 * keyboard.c (parse_solitary_modifier): Not static any more.
13328 * keyboard.h (parse_solitary_modifier): Declare.
13329
13330 2008-07-16 Andreas Schwab <schwab@suse.de>
13331
13332 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13333 of easymenu.
13334
13335 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
13336
13337 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13338 that we don't move off the line.
13339
13340 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13341
13342 * keyboard.c (Qsuper): Remove.
13343 (parse_menu_item): Don't call where_is_internal specially for NS.
13344
13345 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13346
13347 * s/gnu-linux.h: Remove boilerplate comments.
13348
13349 * m/alpha.h (__ELF__): Consolidate conditions.
13350
13351 * m/m68k.h (linux): Use GNU_LINUX instead.
13352 Remove boilerplate comments.
13353
13354 * m/intel386.h: Undo refactoring from previous change.
13355 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13356 too, remove dead code.
13357 (linux): Use GNU_LINUX instead.
13358
13359 2008-07-16 Jason Rumney <jasonr@gnu.org>
13360
13361 * w32gui.h: Repeat 26 June changes lost by last change.
13362
13363 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13364
13365 * systty.h: Remove code for Aix on 386, unsupported platform.
13366
13367 * s/ms-w32.h: Remove boilerplate comments.
13368 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13369
13370 * s/gnu-linux.h (TERM): Remove support.
13371 (HAVE_SYSVIPC): Remove, unused.
13372 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13373 for this system.
13374
13375 * process.c: Remove support for IRIS, unused.
13376 Remove support for TERM, not relevant anymore.
13377
13378 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13379 used with the definition.
13380
13381 * s/aix4-2.h (static): Do not undef.
13382
13383 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13384 only used on Aix.
13385 (HAVE_SYSVIPC): Remove, unused.
13386
13387 * m/hp800.h (CANNOT_DUMP): Do not undef.
13388
13389 * m/alpha.h: Fix comment.
13390
13391 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13392 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13393 used by this configuration.
13394 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13395 * unexec.c: Remove code depending on HPUX and
13396 USG_SHARED_LIBRARIES, not used with this file. Remove code
13397 depending on IRIS, unused. Remove if 0-ed code.
13398
13399 * s/template.h: Remove comments about static.
13400
13401 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13402 Remove if 0-ed code.
13403 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13404 were the same as the default.
13405 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13406 Remove boilerplate comments.
13407 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13408 (HAVE_SYSVIPC): Remove, unused.
13409 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13410
13411 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13412 Remove boilerplate comments.
13413 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13414 Remove boilerplate comments.
13415 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13416 Remove boilerplate comments.
13417 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13418
13419 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13420 USG systems which do not use DATA_SEG_BITS.
13421 Refactor code. Remove boilerplate comments.
13422
13423 * m/ibms390.h:
13424 * m/m68k.h:
13425 * s/bsd-common.h:
13426 * s/cygwin.h:
13427 * s/darwin.h:
13428 * s/freebsd.h:
13429 * s/gnu.h:
13430 * s/msdos.h: Remove boilerplate comments.
13431
13432 * m/iris4d.h: Remove boilerplate comments and code for systems that
13433 do not use this file.
13434 (IRIS_4D): Remove, unused.
13435
13436 * m/mips.h: Remove boilerplate comments and code for systems that
13437 do not use this file.
13438 (SIGN_EXTEND_CHAR):
13439 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13440 * unexmips.c: Remove file, unused.
13441
13442 * editfns.c (Fuser_full_name): Replace the only use of
13443 USER_FULL_NAME with its value.
13444 * config.in: Regenerate.
13445
13446 2008-07-16 David Reitter <david.reitter@gmail.com>
13447
13448 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13449 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13450
13451 2008-07-16 Glenn Morris <rgm@gnu.org>
13452
13453 * emacs.c (system-type): Doc fix.
13454
13455 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13456
13457 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13458 If the cache doesn't work, let's fix it, rather than work around it.
13459
13460 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13461
13462 * Makefile.in: Correct additions for nsfont.o in last commit.
13463 * nsfont.m: New file (forgot last commit).
13464
13465 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13466
13467 * callproc.c (set_initial_environment): Initialize
13468 Vprocess_environment under CANNOT_DUMP (fixes crash when
13469 batch-compiling for bootstrap).
13470
13471 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13472 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13473
13474 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13475 CANNOT_DUMP case -- fix crash due to different init order.
13476
13477 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13478
13479 Changes and additions for NeXTstep windowing system (Cocoa and
13480 GNUstep) support.
13481
13482 * Makefile.in:
13483 * config.in: Support defines and build commands for NS port.
13484 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13485 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13486 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13487 windowing.
13488 (struct face): Add synth_ital field.
13489 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13490 (init_display): Initialize Vinitial_window_system to "ns" when so
13491 compiled.
13492 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13493 (display_arg): Use under NS.
13494 (main): Under NS, allocate autorelease pool and handle command line
13495 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13496 (standard_args): Add NS-specific args.
13497 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13498 * font.c (DEFAULT_ENCODING): New variable.
13499 (font_find_for_lface): Use it.
13500 (syms_of_font): Load syms_of_nsfont under NS.
13501 * font.h: Declare nsfont_driver when compiled under NS.
13502 * fontset.c: When compiling under NS, include nsterm.h.
13503 (fontset_from_font): Autoconstruct fontset under NS.
13504 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13505 symbol, document and use it.
13506 (do_switch_frame): When for_deletion under Cocoa, add
13507 Fraise_frame(Qnil).
13508 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13509 (x_get_arg): Allow "yes" and "no" as boolean values.
13510 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13511 Qright under Cocoa.
13512 (focus-follows-mouse): Default to 0 under NS.
13513 * frame.h (enum output_method): Add output_ns.
13514 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13515 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13516 (FRAME_WINDOW_P): NS-specific definition.
13517 * fringe.c (max_used_fringe_bitmap): Make public.
13518 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13519 (getloadavg): Use NeXT code under descendant OS's.
13520 * image.c (includes and header section, x_create_bitmap_from_data)
13521 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13522 (image_background_transparent, x_clear_image_1)
13523 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13524 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13525 (x_to_xcolors, x_from_xcolors, x_disable_image)
13526 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13527 other GUIs, including XPM support using code originally written for
13528 Carbon GUI.
13529 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13530 using NS API.
13531 (image_ascent): Use font metrics macros instead of direct struct field
13532 access.
13533 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13534 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13535 Also, handle NS as GTK for menu bar purposes.
13536 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13537 toolkit where they differ.
13538 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13539 use cachelist, still needed under NS.
13540 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13541 (struct widget_value): Define it here for menu.c.
13542 * keymap.c (includes): Include modifier internals.
13543 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13544 NS.
13545 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13546 support for preferring sequences using certain modifiers, specified by
13547 the FIRSTONLY argument.
13548 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13549 under NS GNUstep implementation.
13550 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13551 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13552 * menu.c: Include nsterm.h under NS.
13553 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13554 (free_menubar_widget_tree_value, update_submenu_strings)
13555 (find_and_call_menu_selection): Treat NS as X and NT.
13556 (find_and_return_menu_selection): New function, used for popup menus.
13557 * nsgui.h:
13558 * nsterm.h:
13559 * nsfns.m:
13560 * nsimage.m:
13561 * nsmenu.m:
13562 * nsselect.m:
13563 * nsterm.m: New files.
13564 * process.c (wait_reading_process_output): Under NS, call ns_select()
13565 instead of plain select().
13566 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13567 beginning of buffer.
13568 * sysselect.h (init_process): Rename when compiling under Cocoa to
13569 avoid name conflict.
13570 * termhooks.h (display_info): Add ns_display_info to union.
13571 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13572 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13573 COCOA environment.
13574 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13575 unexec() signature. (Note, this will dump, but the resulting file
13576 crashes; unexosx is used instead; keeping around for reference and
13577 possible aid in getting dump working under GNUstep.)
13578 * w32gui.h (button_type, widget_value): Remove definitions (now in
13579 keyboard.h).
13580 * window.c: Include nsterm.h when compiling under NS.
13581 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13582 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13583 other GUI windowing systems.
13584 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13585 GTK.
13586 (x_consider_frame_title): Under NS, set icon type and frame
13587 modified-state indicator; use ns_set_name_as_filename() when using
13588 formatted title.
13589 (update_window_cursor): Make public when compiling under NS.
13590 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13591 (hourglass_atimer, Vhourglass_delay
13592 * xfaces.c (header section, init_frame_faces, clear_font_table)
13593 (defined_color, unload_color, x_face_list_fonts)
13594 (prepare_face_for_display): Add NS support parallel to other GUIs.
13595 Emulate GCs like other non-X GUIs.
13596 (split_font_name): Don't lowercase font name under NS.
13597 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13598 under NS.
13599 * s/darwin.h: Add support for compilation under NS.
13600
13601 2008-07-15 Jason Rumney <jasonr@gnu.org>
13602
13603 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13604 (w32_show_hourglass): Rename from show_hourglass.
13605 (w32_hide_hourglass): Rename from hide_hourglass.
13606 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13607 (Vhourglass_delay): Declare extern.
13608 (hourglass_started): Remove.
13609
13610 * xdisp.c (Vhourglass_delay): Remove static.
13611 (hourglass_started, start_hourglass, cancel_hourglass):
13612 Don't include these versions on WINDOWSNT.
13613
13614 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13615
13616 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13617 variables (formerly in xfns.c).
13618 (show_hourglass, hide_hourglass): New prototypes (same).
13619 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13620 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13621 in xfns.c).
13622 (syms_of_xdisp): Declare/initialize display-hourglass,
13623 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13624 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13625 formerly in xfns.c.
13626 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13627 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13628 (start_hourglass, cancel_hourglass): Remove.
13629 (show_hourglass, hide_hourglass): Remove prototypes and static
13630 modifiers.
13631 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13632 hourglass_atimer, hourglass_shown_p declaration/initialization.
13633 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13634 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13635 (start_hourglass, cancel_hourglass): Remove.
13636 (show_hourglass, hide_hourglass): Remove prototypes and static
13637 modifiers.
13638 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13639 hourglass_atimer, hourglass_shown_p declaration/initialization.
13640 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13641 (DEFAULT_HOURGLASS_DELAY): Remove.
13642 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13643 hourglass_shown_p declaration/initialization.
13644
13645 2008-07-14 Jason Rumney <jasonr@gnu.org>
13646
13647 * w32fns.c (w32_get_arg): Remove wrapper function.
13648 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13649 directly.
13650 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13651
13652 2008-07-14 Kenichi Handa <handa@m17n.org>
13653
13654 * xfont.c (xfont_open): Add workaround for X's bug.
13655
13656 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13657
13658 * fontset.c: Include <stdio.h> unconditionally.
13659
13660 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
13661
13662 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13663 for filtering.
13664
13665 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13666
13667 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13668
13669 * m/macppc.h:
13670 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13671
13672 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
13673 (SPECIAL_EMACS_INT):
13674 * m/ia64.h (SPECIAL_EMACS_INT):
13675 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13676 * s/gnu.h (NLIST_STRUCT):
13677 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13678 * s/gnu-linux.h (LINUX):
13679 * s/msdos.h (HAVE_FACES):
13680 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13681
13682 * systty.h:
13683 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13684 anymore.
13685
13686 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13687
13688 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13689 always defined as int.
13690
13691 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13692 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13693 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13694 * s/freebsd.h (HAVE_WAIT_HEADER):
13695 * s/bsd-common.h (HAVE_UNION_WAIT):
13696 * s/aix4-2.h (HAVE_WAIT_HEADER):
13697 * m/mips.h (HAVE_UNION_WAIT):
13698 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13699 (COFF, static): Do not define, they are undefined later in the file.
13700
13701 * process.c (update_status): Don't use a union.
13702 (status_convert):
13703 (sigchld_handler): Use int instead of WAITTYPE.
13704
13705 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
13706
13707 * indent.c (Fvertical_motion): Restore hscroll before moving to
13708 goal column.
13709
13710 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13711
13712 * lisp.h: Remove left over code.
13713
13714 2008-07-11 Andreas Schwab <schwab@suse.de>
13715
13716 * lisp.h: Fix logic in last change.
13717
13718 * menu.h: New file.
13719 * menu.c: Include it.
13720 * xmenu.c: Likewise.
13721 * Makefile.in: Update dependencies.
13722
13723 2008-07-11 Kenichi Handa <handa@m17n.org>
13724
13725 * fontset.c (fontset_from_font): Cancel the previous change.
13726
13727 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13728
13729 * lisp.h:
13730 * w32heap.c:
13731 * emacs.c:
13732 * alloc.c: Replace all references of NO_UNION_TYPE with
13733 USE_LISP_UNION_TYPE.
13734
13735 * m/xtensa.h (NO_UNION_TYPE):
13736 * m/vax.h (NO_UNION_TYPE):
13737 * m/template.h (NO_UNION_TYPE):
13738 * m/sparc.h (NO_UNION_TYPE):
13739 * m/mips.h (NO_UNION_TYPE):
13740 * m/macppc.h (NO_UNION_TYPE):
13741 * m/m68k.h (NO_UNION_TYPE):
13742 * m/iris4d.h (NO_UNION_TYPE):
13743 * m/intel386.h (NO_UNION_TYPE):
13744 * m/ibms390x.h (NO_UNION_TYPE):
13745 * m/ibms390.h (NO_UNION_TYPE):
13746 * m/ibmrs6000.h (NO_UNION_TYPE):
13747 * m/ia64.h (NO_UNION_TYPE):
13748 * m/hp800.h (NO_UNION_TYPE):
13749 * m/arm.h (NO_UNION_TYPE):
13750 * m/amdx86-64.h (NO_UNION_TYPE):
13751 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13752 defining it the same.
13753
13754 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
13755
13756 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13757
13758 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13759
13760 * fileio.c:
13761 * sysdep.c:
13762 * systty.h:
13763 * m/ibmrs6000.h:
13764 * m/iris4d.h:
13765 * s/aix4-2.h:
13766 * s/freebsd.h:
13767 * s/gnu-linux.h:
13768 * s/hpux10-20.h:
13769 * s/hpux11.h:
13770 * s/netbsd.h:
13771 * s/sol2-3.h:
13772 * s/sol2-4.h:
13773 * s/sol2.h:
13774 * s/usg5-4.h:
13775 * s/vms.h: Remove references to unused variables.
13776
13777 2008-07-10 Andreas Schwab <schwab@suse.de>
13778
13779 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13780 pattern before matching the generic family.
13781
13782 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13783
13784 * unexec.c:
13785 * s/vms.h:
13786 * s/usg5-4-2.h:
13787 * s/sol2-5.h:
13788 * s/freebsd.h:
13789 * s/darwin.h: Remove dead code.
13790
13791 * m/template.h:
13792 * m/sparc.h:
13793 * m/mips.h:
13794 * m/m68k.h:
13795 * m/iris4d.h:
13796 * m/intel386.h:
13797 * m/ibms390x.h:
13798 * m/ibms390.h:
13799 * m/ia64.h:
13800 * m/hp800.h:
13801 * m/arm.h:
13802 * m/amdx86-64.h: Remove dead code and references to unused
13803 and compiler defined symbols.
13804
13805 * unexmips.c:
13806 * unexelf.c: Remove references to desupported systems.
13807
13808 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13809
13810 * m/powermac.h: Remove boilerplate comments.
13811 (NO_REMAP): Remove unused definition.
13812
13813 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13814 define them.
13815
13816 2008-07-10 Kenichi Handa <handa@m17n.org>
13817
13818 * xfont.c (xfont_open): Log the reason of failure.
13819
13820 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13821
13822 * fontset.c (fontset_get_font_group):
13823 * font.c (font_check_otf): Specify argument types.
13824
13825 2008-07-09 Kenichi Handa <handa@m17n.org>
13826
13827 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13828 non-ASCII char is found.
13829
13830 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13831 (reorder_font_vector): Change the arg preferred_family to font.
13832 Prefer the spec matching with font.
13833 (fontset_get_font_group): New function.
13834 (fontset_find_font): Change the format of an element of a realized
13835 fontset. Use fontset_get_font_group.
13836 (fontset_font): Try the current fontset, the default fontset, the
13837 fallbacks of the current fontset, and the fallbacks of the default
13838 fontset in this order.
13839 (face_for_char): Delete the shortcut to use the current font.
13840 (fontset_from_font): Don't set fonts for Latin in the fontset.
13841
13842 * font.h (font_make_object, font_match_p): Adjust prototypes.
13843
13844 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13845
13846 * font.c (font_make_object): New arg entity and pixelsize.
13847 (font_check_otf_features, font_check_otf): New functions.
13848 (font_match_p): Check :lang, :script, and :otf properties.
13849
13850 * xfont.c (xfont_open): Adjust it for the change of
13851 font_make_object.
13852 (xfont_text_extents): Fix initial setting of metrics.
13853
13854 * ftfont.c (struct ftfont_info): New member index, delete member
13855 fc_charset_idx. Make the member order compatible with struct
13856 xftfont_info.
13857 (fc_charset_table): Change charset names to registry names.
13858 (ftfont_pattern_entity): Delete the args registry and
13859 fc_charset_idx. Change the value of :font-entity property
13860 to (FONTNAME . INDEX). Always set :registry property to
13861 `iso10646-1'.
13862 (struct ftfont_cache_data): New struct.
13863 (ftfont_lookup_cache): New arg for_face.
13864 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13865 (ftfont_driver): Set the member otf_capability.
13866 (ftfont_get_charset): Adjust it for the change of
13867 fc_charset_table.
13868 (OTF_TAG_SYM): New macro.
13869 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13870 for the change of fc_charset_table.
13871 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13872 ftfont_pattern_entity. Add FC_INDEX to objset.
13873 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13874 and ftfont_pattern_entity.
13875 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13876 font_make_object, struct ftfont_info.
13877 (ftfont_has_char): Use ftfont_get_fc_charset.
13878 (ftfont_otf_features, ftfont_otf_capability): New functions.
13879 (ftfont_shape): Use ftfont_get_otf.
13880 (ftfont_text_extents): Fix initial setting of metrics.
13881
13882 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13883 member order compatible with struct ftfont_info.
13884 (xftfont_open): Add FC_CHARSET to the pattern. Set
13885 xftfont_info->ft_size. Don't unlock the face. Check BDF
13886 properties if appropriate.
13887 (xftfont_close): Unlock the face.
13888 (xftfont_anchor_point, xftfont_shape): Deleted.
13889 (syms_of_xftfont): Don't set members anchor_point and shape of
13890 xftfont_driver.
13891
13892 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13893 font_make_object.
13894
13895 * w32font.c (w32font_open): Adjust it for the change of
13896 font_make_object.
13897 (w32font_open_internal): Don't set properties of font_object here.
13898
13899 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
13900
13901 * macfns.c (x_create_tip_frame):
13902 * w32fns.c (x_create_tip_frame):
13903 * xfns.c (x_create_tip_frame): Pass parameter argument to
13904 face-set-after-frame-default.
13905
13906 * xfaces.c (Finternal_merge_in_global_face): Save merged
13907 attributes for the default face back into the face vector.
13908
13909 2008-07-08 Andreas Schwab <schwab@suse.de>
13910
13911 * fontset.h: Declare fontset_from_font. Don't declare
13912 new_fontset_from_font and fontset_from_font_name.
13913 * xterm.c: Include "fontset.h".
13914 * Makefile.in (xterm.o): Update dependencies.
13915
13916 2008-07-08 Glenn Morris <rgm@gnu.org>
13917
13918 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13919 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13920
13921 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
13922
13923 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13924 (x_set_frame_parameters): Don't bind it.
13925
13926 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
13927
13928 * w32fns.c (map_w32_filename): Declare extern.
13929
13930 2008-07-07 Jason Rumney <jasonr@gnu.org>
13931
13932 * w32term.c (WS_EX_LAYERED): Define if not already.
13933
13934 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
13935
13936 * xfaces.c (set_font_frame_param): Don't try to set the font
13937 parameter if it is still unspecified in the lface.
13938
13939 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13940
13941 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13942 face if it didn't already exist.
13943
13944 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13945
13946 2008-07-05 Andreas Schwab <schwab@suse.de>
13947
13948 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13949
13950 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13951
13952 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13953 word-wrapping.
13954 (IT_DISPLAYING_WHITESPACE): New macro.
13955 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13956 when word-wrapping. Simplify word-wrapping logic. Use correct
13957 pixel positions when saving copies of the iterator.
13958 (display_line): Use proper wrap point if the last character on a
13959 line was preceded by whitespace.
13960
13961 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13962
13963 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13964
13965 2008-07-04 Kenichi Handa <handa@m17n.org>
13966
13967 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13968
13969 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13970
13971 2008-07-02 Jason Rumney <jasonr@gnu.org>
13972
13973 * xfns.c (syms_of_xfns): Only define x-select-font when both
13974 HAVE_FREETYPE and USE_GTK.
13975
13976 * xdisp.c (next_element_from_display_vector): Move assignment out
13977 of if statement.
13978
13979 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13980
13981 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13982
13983 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13984 (syms_of_fileio): Initialize and export them.
13985 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13986
13987 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13988 (Fsystem_move_file_to_trash): New function.
13989 (syms_of_w32fns): Export it to lisp.
13990
13991 2008-07-01 Jason Rumney <jasonr@gnu.org>
13992
13993 * w32font.c (w32font_text_extents): Don't count overhang as part
13994 of width.
13995
13996 2008-06-30 Miles Bader <miles@gnu.org>
13997
13998 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13999 Add `avoid_cursor_p' field.
14000
14001 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14002 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14003 (append_glyph, append_composite_glyph, produce_image_glyph)
14004 (append_stretch_glyph): Initialize avoid_cursor_p.
14005 (get_it_property): Rename from `get_line_height_property'.
14006 (x_produce_glyphs): Use get_it_property.
14007 (handle_line_prefix, push_display_prop): New functions.
14008 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14009 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14010 New variables.
14011 (syms_of_xdisp): Initialize them.
14012
14013 2008-06-30 Kenichi Handa <handa@m17n.org>
14014
14015 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14016 XftDefaultSubstitute (they are called in XftFontMatch).
14017 (xftfont_open): Fix args to ftfont_font_format.
14018
14019 * ftfont.c (fc_charset_table): New member lang.
14020 (ftfont_resolve_generic_family): New arg pattern.
14021 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
14022 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14023 (ftfont_open): Fix args to ftfont_font_format.
14024 (ftfont_font_format): New arg filename.
14025
14026 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
14027
14028 * xfaces.c (Finternal_merge_in_global_face): If default face was
14029 modified, realize it again. Update the font face attribute.
14030
14031 2008-06-29 Jason Rumney <jasonr@gnu.org>
14032
14033 * w32term.c (x_set_frame_alpha): Fix logic.
14034
14035 2008-06-29 Kenichi Handa <handa@m17n.org>
14036
14037 * fontset.c (Finternal_char_font): Return font-object instead of
14038 font-name.
14039
14040 * composite.c (get_composition_id): Fix the width calculation for TAB.
14041
14042 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14043
14044 * indent.c (Fvertical_motion): Properly handle float column arg.
14045
14046 2008-06-28 Jason Rumney <jasonr@gnu.org>
14047
14048 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14049 (pfnSetLayeredWindowAttributes): New function pointer.
14050 (w32_initialize): Initialize it when supported.
14051 (x_set_frame_alpha): New function.
14052
14053 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14054 (w32_frame_parm_handlers): Set alpha handler.
14055
14056 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14057
14058 2008-06-27 Jason Rumney <jasonr@gnu.org>
14059
14060 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14061 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14062 (w32_to_x_charset, x_to_w32_charset)
14063 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14064 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14065 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14066 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14067 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14068 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14069 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14070 (Qw32_charset_unicode): Remove.
14071 (syms_of_w32fns): Update for above changes.
14072
14073 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14074 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14075 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14076 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14077 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14078 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14079 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14080 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14081 (syms_of_w32font): Update for above changes.
14082
14083 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14084
14085 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14086 removed #if.
14087 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14088
14089 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
14090 Eli Zaretskii <eliz@gnu.org>
14091
14092 * makefile.w32-in (LOCAL_FLAGS):
14093 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14094
14095 * sysdep.c (_spawnlp, _getpid):
14096 Declare with explicit _cdecl instead of _CRTAPI1.
14097
14098 * editfns.c (Fget_internal_run_time):
14099 Check for WINDOWSNT with #ifdef, not #if.
14100
14101 2008-06-26 Jason Rumney <jasonr@gnu.org>
14102
14103 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14104
14105 * w32term.c (x_draw_glyph_string_foreground)
14106 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14107 Use FONT_HANDLE macro.
14108 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14109
14110 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14111 (uniscribe_encode_char): Use FONT_HANDLE macro.
14112
14113 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14114 (w32font_text_extents): Use precast w32_font.
14115 (w32font_close): Free cached metrics.
14116 (w32font_open_internal): Allocate space for name on stack.
14117
14118 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
14119
14120 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14121
14122 2008-06-26 Jason Rumney <jasonr@gnu.org>
14123
14124 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14125 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14126
14127 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
14128
14129 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14130
14131 2008-06-26 Jason Rumney <jasonr@gnu.org>
14132
14133 * w32bdf.c, w32bdf.h: Remove obsolete files.
14134
14135 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14136
14137 * w32gui.h: Don't include w32bdf.h.
14138 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14139 Remove obsolete font support.
14140
14141 * w32font.h (struct w32font_info): Remove compat_w32_font.
14142 Add hfont member.
14143 (FONT_COMPAT): Remove obsolete macro.
14144
14145 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14146 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14147 (w32font_open_internal): Remove compat code. Set new hfont member.
14148 (Fx_select_font): Use new hfont member.
14149
14150 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14151 (uniscribe_encode_char): Use new hfont member.
14152
14153 * w32term.c (x_draw_glyph_string_foreground)
14154 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14155 (x_draw_glyph_string): Use metrics in w32font_info.
14156
14157 2008-06-26 Kenichi Handa <handa@m17n.org>
14158
14159 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14160
14161 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14162
14163 * unexnext.c:
14164 * m/ews4800.h:
14165 * m/hp9000s300.h:
14166 * m/ibm370aix.h:
14167 * m/mips-siemens.h:
14168 * m/ncr386.h:
14169 * m/next.h:
14170 * m/pmax.h:
14171 * m/powerpcle.h:
14172 * m/tandem-s2.h:
14173 * s/386bsd.h:
14174 * s/bsd386.h:
14175 * s/bsd4-1.h:
14176 * s/bsd4-2.h:
14177 * s/bsdos2-1.h:
14178 * s/bsdos2.h:
14179 * s/bsdos3.h:
14180 * s/bsdos4.h:
14181 * s/nextstep.h:
14182 * s/ultrix4-3.h:
14183 * s/usg5-0.h:
14184 * s/usg5-2-2.h:
14185 * s/usg5-2.h:
14186 * s/usg5-4-3.h:
14187 * s/ux4800.h:
14188 * s/uxpds.h:
14189 * s/uxpv.h: Remove support for obsolete systems.
14190 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
14191 Remove, insert contents in s/hpux10-20.h.
14192 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14193 Remove, insert contents in s/aix4-2.h.
14194 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14195 * s/bsd4-3.h: Rename to ...
14196 * s/bsd-common.h: ... this.
14197 * data.c:
14198 * doc.c:
14199 * ecrt0.c:
14200 * emacs.c:
14201 * fileio.c:
14202 * floatfns.c:
14203 * keyboard.c:
14204 * mem-limits.h:
14205 * print.c:
14206 * process.c:
14207 * sysdep.c:
14208 * syssignal.h:
14209 * systty.h:
14210 * syswait.h:
14211 * term.c:
14212 * unexec.c:
14213 * unexelf.c:
14214 * unexhp9k800.c:
14215 * m/hp800.h:
14216 * m/ibmrs6000.h:
14217 * m/mips.h:
14218 * m/vax.h:
14219 * s/darwin.h:
14220 * s/freebsd.h:
14221 * s/gnu.h:
14222 * s/ms-w32.h:
14223 * s/msdos.h:
14224 * s/netbsd.h:
14225 * s/template.h: Remove references to obsolete variables.
14226
14227 * Makefile.in: Add dependencies for all unexec files.
14228 (admindir): Remove unused variable.
14229 (UNEXEC_SRC): Remove references.
14230
14231 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
14232
14233 * xfns.c (x_default_font_parameter): If Xft is available, first
14234 try Monospace-12 for the default font.
14235
14236 2008-06-25 Jason Rumney <jasonr@gnu.org>
14237
14238 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14239
14240 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14241
14242 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14243
14244 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14245
14246 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
14247
14248 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14249 <scroll-conservatively>: Fix typo in docstring.
14250
14251 * xselect.c (Fx_send_client_event): Doc fix.
14252
14253 2008-06-25 Kenichi Handa <handa@m17n.org>
14254
14255 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14256
14257 * font.c (font_parse_fcname): Remove unused variables.
14258 (font_sort_entites): Delete the arg SPEC. Caller changed.
14259 Fix for the case of ! best_only.
14260 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14261
14262 * lisp.h (Fstring_to_unibyte): EXFUN it.
14263
14264 * character.h (str_to_unibyte): Extern it.
14265
14266 * character.c (str_to_unibyte): New function.
14267
14268 * fns.c (Fstring_to_unibyte): New function.
14269 (syms_of_fns): Defsubr it.
14270
14271 2008-06-24 Kenichi Handa <handa@m17n.org>
14272
14273 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14274 DPI too.
14275 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14276
14277 2008-06-24 Andreas Schwab <schwab@suse.de>
14278
14279 * Makefile.in (${lispsource}loaddefs.el): Rename from
14280 ../lisp/loaddefs.el.
14281 (bootstrap-clean): Do what distclean does but don't remove
14282 Makefile.
14283 (distclean): Depend on bootstrap-clean and remove Makefile.
14284
14285 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
14286
14287 * buffer.h (struct buffer): New member word_wrap.
14288
14289 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14290 word-wrap.
14291 (init_buffer_once): Initialize them.
14292
14293 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14294 line_wrap enum possessing three possible values.
14295
14296 * termopts.h: Replace truncate_partial_width_windows with
14297 Vtruncate_partial_width_windows.
14298
14299 * dispnew.c (direct_output_for_insert): Avoid direct output when
14300 inserting a space with word wrap on.
14301
14302 * indent.c (compute_motion): Obey integer values of
14303 truncate-partial-width-windows.
14304
14305 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14306 replacing truncate_partial_width_windows.
14307 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14308 truncate only if the window width is below that integer.
14309 (start_display, resize_mini_window, produce_stretch_glyph)
14310 (display_string, move_it_in_display_line_to): Use line_wrap.
14311 (back_to_previous_visible_line_start, reseat_1): Reset
14312 string_from_display_prop_p.
14313 (display_line): Extend default face to end of line when wrapping.
14314
14315 2008-06-24 Kim F. Storm <storm@cua.dk>
14316
14317 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14318 to wrap continued lines at word boundaries.
14319
14320 2008-06-24 Jason Rumney <jasonr@gnu.org>
14321
14322 * font.c (Ffont_face_attributes): Multiply pixel size before point
14323 conversion to avoid multiplying rounding error.
14324
14325 2008-06-23 Jason Rumney <jasonr@gnu.org>
14326
14327 * w32term.c (x_draw_glyph_string_background)
14328 (x_draw_glyph_string): Remove old bdf font code.
14329
14330 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14331
14332 2008-06-22 Kenichi Handa <handa@m17n.org>
14333
14334 * font.c (font_find_for_lface): Try the adstyle specified in
14335 the property of LFACE_FONT of LFACE (if any).
14336
14337 2008-06-21 Seiji Zenitani <zenitani@mac.com>
14338 Ryo Yoshitake <ryo@shiftmode.net>
14339
14340 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14341
14342 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14343
14344 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14345 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14346 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14347 (witness-emacs): Remove.
14348 (lisp, shortlisp): Move loaddefs.el earlier.
14349 (mostlyclean): Forget about witness-emacs.
14350
14351 2008-06-22 Glenn Morris <rgm@gnu.org>
14352
14353 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14354 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14355
14356 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14357
14358 * Makefile.in (PRECOMP): Remove.
14359 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14360 (witness-emacs): Run `compile-first'.
14361 (.el.elc): Use the new compile-onefile target.
14362
14363 2008-06-21 Kenichi Handa <handa@m17n.org>
14364
14365 * xftfont.c (xftfont_open): Handle QCembolden only when
14366 FC_EMBOLDEN is defined.
14367
14368 2008-06-21 Andreas Schwab <schwab@suse.de>
14369
14370 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14371 (.el.elc): Likewise.
14372
14373 2008-06-21 Miles Bader <miles@gnu.org>
14374
14375 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14376 build dir, not the lisp source dir.
14377
14378 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14379
14380 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14381 (bootstrapclean): Remove.
14382 (.el.elc): New rule.
14383 (PRECOMP): New var.
14384 (../lisp/subdirs.el): Remove.
14385 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14386 (witness-emacs): New target.
14387 (mostlyclean): Remove witness-emacs as well.
14388 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14389 Add witness-emacs dependency.
14390
14391 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
14392
14393 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14394 defined by the font.
14395
14396 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14397
14398 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14399 (bootstrap-clean): New target that keeps TAGS around.
14400 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14401 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14402
14403 2008-06-20 Jason Rumney <jasonr@gnu.org>
14404
14405 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14406 Remove obsolete font code.
14407
14408 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14409 to determine language support.
14410
14411 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14412
14413 * sysdep.c (cfsetspeed): New fun extracted from the code.
14414 (cfmakeraw): Move before first use.
14415
14416 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14417
14418 * sysdep.c (cfmakeraw): Provide fallback implementation.
14419 (serial_configure): Provide fallback implementation of cfsetspeed.
14420
14421 2008-06-20 Kenichi Handa <handa@m17n.org>
14422
14423 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14424 the pattern.
14425
14426 * fontset.c (fontset_from_font): Copy font_spec before changing
14427 the elements.
14428
14429 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14430
14431 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14432
14433 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14434 for explicit `font' parameters.
14435
14436 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14437
14438 2008-06-19 Kenichi Handa <handa@m17n.org>
14439
14440 * frame.c: Include <ctype.h>.
14441 (x_set_font_backend): Allow spacing characters in the X resource
14442 for FontBackend.
14443
14444 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14445
14446 * w32fns.c, xfns.c (Qfont_param): New var.
14447 (syms_of_w32fns): Initialize it.
14448 (x_default_font_parameter): Record explicit `font' into
14449 `font-parameter'.
14450
14451 2008-06-18 Kenichi Handa <handa@m17n.org>
14452
14453 * font.c (font_parse_xlfd): Fix previous change.
14454 (font_parse_fcname): Don't use :fc-unknown-spec.
14455 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14456 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14457 (font_add_log): Prepend the driver name to the resulting fonts.
14458
14459 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14460 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14461 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14462
14463 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14464 (QCembolden): New variables.
14465 (syms_of_xftfont): DEFSYM them.
14466 (xftfont_open): Call XftFontMatch. Don't trust the result of
14467 XftTextExtents8 if the pixel_size is less than 5.
14468
14469 2008-06-18 Andreas Schwab <schwab@suse.de>
14470
14471 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14472 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14473
14474 2008-06-18 Jason Rumney <jasonr@gnu.org>
14475
14476 * w32font.c (w32font_list, w32font_match): Add logging.
14477
14478 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14479
14480 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
14481
14482 * font.c (font_parse_fcname): Store divider characters for
14483 unknown-spec list. For known key symbols, intern using correct
14484 symbol name.
14485
14486 2008-06-17 Kenichi Handa <handa@m17n.org>
14487
14488 * xfaces.c (realize_default_face): If the frame is not on window
14489 system, set the fontset of face to nil.
14490
14491 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14492
14493 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14494
14495 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14496
14497 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14498 (build_font_name_from_vector): Delete externs.
14499
14500 * xfaces.c (struct font_name): Don't declare.
14501
14502 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14503
14504 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14505
14506 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14507
14508 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14509
14510 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14511
14512 * font.c (Ffont_spec): Fix usage in docstring.
14513 (Ffont_face_attributes): Doc fix.
14514
14515 2008-06-16 Andreas Schwab <schwab@suse.de>
14516
14517 * font.c (Ffont_face_attributes): Fix definition.
14518
14519 2008-06-16 Jason Rumney <jasonr@gnu.org>
14520
14521 * font.h (font_style_symbolic_from_value): Remove.
14522
14523 * font.c (font_style_symbolic_from_value): Remove.
14524 (font_style_symbolic): Revert to pre 2008-06-13 version.
14525
14526 * w32font.c (w32_to_fc_weight): New function.
14527 (w32font_full_name, logfont_to_fcname): Use it.
14528
14529 2008-06-16 Kenichi Handa <handa@m17n.org>
14530
14531 * font.c (font_check_object): Delete it.
14532 (font_clear_cache): Check if a font-object is alive.
14533 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14534 font-object to nil.
14535 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14536 (font_at): Don't call font_check_object.
14537 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14538
14539 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14540
14541 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14542
14543 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14544
14545 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14546
14547 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
14548
14549 * font.c (font_parse_fcname): Only one decimal point.
14550 (font_unparse_fcname): Handle data in family and foundry indices
14551 as symbols, not strings.
14552 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14553
14554 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14555
14556 * font.h (font_unparse_gtkname): Add prototype.
14557
14558 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14559
14560 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14561
14562 2008-06-15 Andreas Schwab <schwab@suse.de>
14563
14564 * font.c (font_update_drivers): Fix crash when no drivers match.
14565
14566 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14567
14568 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14569 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14570
14571 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14572
14573 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14574
14575 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14576
14577 * process.c (Fserial_process_configure, Fprocess_send_eof):
14578 Use EQ to compare Lisp_Objects.
14579
14580 2008-06-13 Jason Rumney <jasonr@gnu.org>
14581
14582 * w32fns.c (Fw32_select_font): Remove old font API function.
14583
14584 * w32font.c (logfont_to_fcname): New function.
14585 (Fx_select_font): New font dialog function compatible with
14586 GTK/fontconfig version.
14587
14588 * font.c (font_style_symbolic_from_value): New function.
14589 (font_style_symbolic): Use it.
14590
14591 * font.h (font_style_symbolic_from_value): Declare new function.
14592
14593 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
14594
14595 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14596 <font-width-table>: Fix typos in docstrings.
14597
14598 2008-06-13 Daniel Engeler <engeler@gmail.com>
14599
14600 These changes add serial port access.
14601 * process.c: Add HAVE_SERIAL.
14602 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14603 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14604 (list_processes_1, select_wrapper, Fstop_process)
14605 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14606 (status_notify): Modify to handle serial processes.
14607 [HAVE_SERIAL] (Fserial_process_configure)
14608 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14609 New functions.
14610 * process.h (struct Lisp_Process): Add `type'.
14611 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14612 New functions.
14613 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14614 serial ports.
14615 (serial_open, serial_configure): New functions.
14616 * w32.h: Add FILE_SERIAL.
14617 (struct _child_process): Add ovl_read, ovl_write.
14618
14619 2008-06-13 Kenichi Handa <handa@m17n.org>
14620
14621 * dispextern.h (enum lface_attribute_index): New member
14622 LFACE_FOUNDRY_INDEX.
14623
14624 * font.c (font_score): Delete arg alternate_families. Check only
14625 weight, slant, width, and size. Ignore the difference of alias
14626 style symbols.
14627 (font_sort_entites): Adjust for the above change. Reflect the
14628 order of font-driver to scores.
14629 (font_list_entities): Don't check alternate_familes here.
14630 (font_clear_prop): Handle foundry.
14631 (font_update_lface): Don't parse "foundry-family" form here.
14632 Handle FONT_FOUNDRY_INDEX.
14633 (font_find_for_lface): Likewise. Handle alternate families here.
14634 If registry is nil, try iso8859-1 and ascii-0.
14635 (font_open_for_lface): Pay attention to size in ENTITY.
14636 (font_open_by_name): Simplify by calling font_load_for_lface.
14637 (free_font_driver_list): Delete it.
14638 (font_update_drivers): Preserve the order of backends.
14639 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14640 of font_score and font_sort_entites.
14641 (font_update_sort_order): Likewise.
14642
14643 * xfaces.c (LFACE_FOUNDRY): New macro.
14644 (check_lface_attrs): Check foundry.
14645 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14646 (merge_face_vectors): Check foundry.
14647 (merge_face_ref): Likewise.
14648 (Finternal_set_lisp_face_attribute): Likewise.
14649 (x_update_menu_appearance): Likewise.
14650 (Finternal_get_lisp_face_attribute): Likewise.
14651 (lface_hash): Likewise.
14652 (lface_same_font_attributes_p): Likewise.
14653 (x_supports_face_attributes_p): Likewise.
14654 (tty_supports_face_attributes_p): Likewise.
14655 (Finternal_set_alternative_font_family_alist): Intern strings.
14656 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14657 (realize_default_face): Set LFACE_FOUNDRY (lface).
14658
14659 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14660 font-driver at first.
14661
14662 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14663
14664 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14665
14666 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14667
14668 2008-06-12 Jim Meyering <meyering@redhat.com>
14669
14670 Make unexec_free handle NULL the same way free does.
14671 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14672
14673 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14674
14675 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14676 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14677 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14678 (WEAK_ALIAS): Simplify.
14679 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14680 when searching a unibyte buffer.
14681
14682 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
14683
14684 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14685
14686 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
14687
14688 * w32font.c: Include ctype.h.
14689
14690 2008-06-11 Jason Rumney <jasonr@gnu.org>
14691
14692 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14693 misreported as space.
14694 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14695 as aliases for registry iso10646-1.
14696
14697 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14698
14699 * buffer.c (clone_per_buffer_values): Skip `name'.
14700
14701 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
14702
14703 * font.c (font_parse_fcname): Fix last change; accept decimal
14704 points in font size.
14705
14706 2008-06-10 Jason Rumney <jasonr@gnu.org>
14707
14708 * w32uniscribe.c (add_opentype_font_name_to_list):
14709 Skip non unicode fonts.
14710
14711 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14712
14713 * xfns.c (Fx_font_dialog): New function.
14714
14715 * gtkutil.c (xg_dialog_response_cb): Rename from
14716 xg_file_response_callback.
14717 (pop_down_dialog): Rename from pop_down_file_dialog.
14718 (xg_get_file_name): Callers changed.
14719 (xg_get_font_name): New function.
14720
14721 * gtkutil.h (xg_get_font_name): Insert prototype.
14722
14723 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14724
14725 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14726 x_underline_minimum_display_offset.
14727 (syms_of_xdisp): Declare it here rather than in xterm.c.
14728 * dispextern.h (underline_minimum_offset): Declare it.
14729 * w32term.c (x_draw_glyph_string): Use it.
14730 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14731 (syms_of_xterm): Don't declare it any more.
14732 (x_draw_glyph_string): Adjust to the new name.
14733
14734 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
14735
14736 * xterm.c (x_underline_minimum_display_offset): New var.
14737 (x_draw_glyph_string): Use it.
14738 (syms_of_xterm): Declare it.
14739
14740 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14741
14742 * font.c (font_parse_fcname): Accept GTK-style font names too.
14743
14744 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14745
14746 * dired.c (file_name_completion): Don't return t if the match is exact
14747 but with different capitalization.
14748 * minibuf.c (Ftry_completion): Simplify.
14749
14750 * window.c (Vwindow_point_insertion_type): New var.
14751 (set_window_buffer): Use it.
14752 (syms_of_window): Init and export it to Lisp.
14753
14754 2008-06-10 Kenichi Handa <handa@m17n.org>
14755
14756 * font.h (font_intern_prop): Prototype adjusted.
14757
14758 * font.c (font_intern_prop): New arg force_symbol.
14759 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14760 Adjust for the change of font_intern_prop.
14761
14762 * ftfont.c (ftfont_pattern_entity):
14763 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14764 (w32_registry):
14765 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14766 the change of font_intern_prop.
14767
14768 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
14769
14770 * w32menu.c (digest_single_submenu): Declare extern.
14771
14772 2008-06-09 Jason Rumney <jasonr@gnu.org>
14773
14774 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14775
14776 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14777 (parse_single_submenu): Remove.
14778 (digest_single_submenu): Remove.
14779 (syms_of_w32menu): Don't initialise variables that have moved
14780 to menu.c.
14781 (set_frame_menubar): Sync with version in xmenu.c.
14782 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14783
14784 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14785 Make static again.
14786
14787 2008-06-09 Jason Rumney <jasonr@gnu.org>
14788
14789 Changes to w32 files related to the move of common menu code
14790 to menu.c on 2008-06-08 by Chong Yidong.
14791
14792 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14793 defs to w32gui.h.
14794 (single_keymap_panes, push_menu_item, push_menu_pane):
14795 Make globally visible.
14796
14797 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14798 (local_free, malloc_widget_value, free_widget_value)
14799 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14800 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14801 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14802 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14803 (menu_items, menu_items_allocated, menu_items_used)
14804 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14805 (init_menu_items, finish_menu_items, discard_menu_items)
14806 (grow_menu_items, push_submenu_start, push_submenu_end)
14807 (push_left_right_boundary, push_menu_pane, push_menu_item)
14808 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14809 (free_menubar_widget_tree_value, parse_single_submenu)
14810 (update_submenu_strings): Remove functions.
14811 (xmalloc_widget_value): Remove and declare extern.
14812
14813 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14814 (OBJ1): Build it.
14815
14816 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14817 (local_heap, local_alloc, local_free, malloc_widget_value)
14818 (free_widget_value): Define here.
14819
14820 2008-06-09 Kenichi Handa <handa@m17n.org>
14821
14822 * font.h (Qascii_0): Extern it.
14823
14824 * font.c (Qascii_0): New variable.
14825 (syms_of_font): DEFSYM it.
14826 (font_open_by_name): If the registry "iso8859-1" fails, try also
14827 "ascii-0".
14828
14829 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14830
14831 2008-06-08 Kenichi Handa <handa@m17n.org>
14832
14833 * .gdbinit (xfont): New command.
14834
14835 2008-06-08 Andreas Schwab <schwab@suse.de>
14836
14837 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14838 * Makefile.in (menu.o): Update dependencies.
14839
14840 * Makefile.in (obj): Always add menu.o.
14841 * emacs.c (main): Always call syms_of_menu.
14842 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14843
14844 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
14845
14846 * Makefile.in: Compile menu.c.
14847
14848 * lisp.h: Declare syms_of_menu.
14849
14850 * emacs.c (main): Call syms_of_menu.
14851
14852 * keyboard.h: Relocate platform-independent menu definitions from
14853 xmenu.c.
14854
14855 * menu.c: New file. Relocate platform-independent menu
14856 definitions from xmenu.c. Suggested by Adrian Robert.
14857
14858 * xmenu.c: Remove platform-independent menu definitions.
14859 (menu_items, menu_items_inuse, menu_items_allocated)
14860 (menu_items_used, menu_items_n_panes)
14861 (menu_items_submenu_depth): Move to keyboard.h.
14862 (init_menu_items, finish_menu_items, unuse_menu_items)
14863 (discard_menu_items, restore_menu_items, save_menu_items)
14864 (grow_menu_items, push_submenu_start, push_submenu_end)
14865 (push_left_right_boundary, push_menu_pane, push_menu_item)
14866 (keymap_panes, single_keymap_panes, single_menu_item)
14867 (list_of_panes, list_of_items, find_and_call_menu_selection)
14868 (xmalloc_widget_value, free_menubar_widget_value_tree)
14869 (parse_single_submenu, digest_single_submenu)
14870 (update_submenu_strings): Move to menu.c.
14871
14872 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14873
14874 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14875
14876 2008-06-06 Miles Bader <miles@gnu.org>
14877
14878 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14879 face, not frame default.
14880
14881 2008-06-05 Martin Rudalics <rudalics@gmx.at>
14882
14883 * window.c (pop_up_windows, pop_up_frames)
14884 (display_buffer_reuse_frames, Vpop_up_frame_function)
14885 (Vdisplay_buffer_function, Veven_window_heights)
14886 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14887 (Vspecial_display_function, Vsame_window_buffer_names)
14888 (Vsame_window_regexps, split_height_threshold)
14889 (Vsplit_window_preferred_function): Move those vars to window.el.
14890 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14891 (Fdisplay_buffer): Move those functions to window.el.
14892 (syms_of_window): Remove corresponding declarations.
14893 (display_buffer): New function.
14894 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14895 * dispnew.c (Flast_nonminibuf_frame): New function.
14896 * buffer.c (Fpop_to_buffer): Move to window.el.
14897
14898 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14899
14900 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14901
14902 2008-06-05 Kenichi Handa <handa@m17n.org>
14903
14904 * coding.c (detect_coding): Fix previous change.
14905 (detect_coding_system): Likewise.
14906
14907 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14908
14909 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14910
14911 * keymap.c (Vminibuffer_local_filename_must_match_map):
14912 Rename from Vminibuffer_local_must_match_filename_map.
14913 (syms_of_keymap):
14914 * minibuf.c (Fcompleting_read): Adjust accordingly.
14915 * commands.h: Rename declaration as well.
14916
14917 2008-06-05 Kenichi Handa <handa@m17n.org>
14918
14919 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14920 family name.
14921 (Ffont_put): Likewise.
14922
14923 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14924 current font-spec.
14925
14926 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14927 is unspecified.
14928
14929 * xfaces.c (realize_x_face): If the font-related face attributes
14930 are the same as those of default face, realize a new fontset from
14931 default->fontset.
14932 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14933
14934 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14935
14936 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14937 (move_it_in_display_line): New wrapper.
14938
14939 * window.c (window_scroll_pixel_based_preserve_x)
14940 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14941 (window_scroll_pixel_based, window_scroll_line_based):
14942 Use them to preserve column positions.
14943 (syms_of_window): Initialize them.
14944
14945 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14946 (HPOS . VPOS) pair.
14947
14948 * dispextern.h (move_it_in_display_line): Declare.
14949
14950 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
14951
14952 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14953 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14954 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14955
14956 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
14957
14958 * window.c (Fset_window_parameter): Doc fix.
14959 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14960
14961 2008-06-04 Joakim Verona <joakim@verona.se>
14962
14963 * window.h (struct window): Add new member window_parameters.
14964
14965 * window.c (Fwindow_parameters, Fwindow_parameter)
14966 (Fset_window_parameter): New defuns.
14967 (syms_of_window): Defsubr the new defuns.
14968 (make_window): Initialize window_parameters to nil.
14969
14970 2008-06-04 John Paul Wallington <jpw@pobox.com>
14971
14972 * eval.c (Fdefmacro): Doc fix.
14973
14974 2008-06-04 Kenichi Handa <handa@m17n.org>
14975
14976 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14977 Be sure to call setup_coding_system when we find a proper coding system.
14978 (detect_coding_system): Fix handling of coding->head_ascii.
14979
14980 2008-06-03 Andreas Schwab <schwab@suse.de>
14981
14982 * font.c (font_prop_validate_spacing): Fix last change.
14983
14984 2008-06-03 Kenichi Handa <handa@m17n.org>
14985
14986 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14987 (font_parse_fcname): Fix handling of unknown key.
14988
14989 * xfont.c (xfont_list): Try an alias.
14990
14991 * charset.c (char_charset): Return NULL if the arg charset_list is
14992 specified and C doesn't belong to any of them.
14993
14994 2008-06-02 Chip Coldwell <coldwell@redhat.com>
14995
14996 * font.c (font_pixel_size): Don't take cdr of an integer.
14997
14998 2008-06-02 Jim Meyering <meyering@redhat.com>
14999
15000 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15001 * alloc.c (xfree): Return right away for a NULL arg.
15002 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15003 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15004 * mac.c (create_apple_event_from_event_ref): Likewise.
15005 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15006 Likewise.
15007 * doprnt.c (doprnt1): Likewise.
15008 * frame.c (frame): Likewise.
15009 * keyboard.c (wipe_kboard): Likewise.
15010 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15011 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15012 * term.c (tty_default_color_capabilities, maybe_fatal)
15013 (delete_tty): Likewise.
15014 * w16select.c (string): Likewise.
15015 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15016 * w32bdf.c (w32_free_bdf_font): Likewise.
15017 * w32fns.c (w32_unload_font): Likewise.
15018 * w32font.c (w32font_close): Likewise.
15019 * window.c (size_window): Likewise.
15020 * xselect.c (receive_incremental_selection): Likewise.
15021 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15022 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15023 * w32.c (stat): Likewise.
15024
15025 Remove useless if-before-free tests.
15026 * editfns.c (Fset_time_zone_rule): Likewise.
15027 * lread.c (nosuffix): Likewise.
15028 * ralloc.c (get_bloc): Likewise.
15029 * regex.c (reg_free): Likewise.
15030 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15031 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15032 * xsmfns.c (smc_save_yourself_CB): Likewise.
15033
15034 2008-06-02 Kenichi Handa <handa@m17n.org>
15035
15036 * font.c (font_find_for_lface): Handle float font size.
15037 (font_open_for_lface): Likewise.
15038
15039 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15040 comparing the properties.
15041
15042 2008-06-01 Jason Rumney <jasonr@gnu.org>
15043
15044 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15045 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15046 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15047 Don't add empty script list.
15048 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15049
15050 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15051
15052 * Makefile.in (dot, dotdot): Remove, update users.
15053 ".." has been used elsewhere in the file for a long time.
15054 (LIBXT_STATIC): Remove conditional based on unused variable.
15055
15056 2008-06-01 Miles Bader <miles@gnu.org>
15057
15058 * xfaces.c (Vface_remapping_alist): New variable.
15059 (syms_of_xfaces): Initialize it.
15060 (enum named_merge_point_kind): New type.
15061 (struct named_merge_point): Add `named_merge_point_kind' field.
15062 (push_named_merge_point): Make cycle detection respect different
15063 named-merge-point kinds.
15064 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15065 Remove face-name alias resolution.
15066 (lface_from_face_name): New definition using
15067 `lface_from_face_name_no_resolve'.
15068 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15069 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15070 (get_lface_attributes): New definition that layers face-remapping on
15071 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15072 (lookup_basic_face): New function.
15073 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15074 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15075 `get_lface_attributes'.
15076 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15077 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15078 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15079
15080 * xdisp.c (init_iterator): Pass base_face_id through
15081 `lookup_basic_face' when we actually use it as a face-id.
15082 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15083 DEFAULT_FACE_ID.
15084
15085 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15086 lookup the initial face-id.
15087
15088 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15089
15090 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
15091
15092 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15093 (Fremove_text_properties): Fix typos in docstrings.
15094
15095 2008-05-31 Kenichi Handa <handa@m17n.org>
15096
15097 * font.c (font_list_entities): Fix the car part of data to be
15098 stored in the cache.
15099
15100 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15101
15102 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15103
15104 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15105 Add a `test' argument so another predicate than `equal' can be used.
15106 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15107 (map_char_table): Remove unused vars `c' and `i'.
15108 * lisp.h (Foptimize_char_table): Adjust declaration.
15109 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15110
15111 2008-05-30 Kenichi Handa <handa@m17n.org>
15112
15113 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15114 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15115 defined.
15116
15117 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15118
15119 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15120 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15121 frame-local settings for the same variable.
15122
15123 2008-05-30 Kenichi Handa <handa@m17n.org>
15124
15125 * fontset.c (Ffont_info): Move to font.c.
15126 (syms_of_fontset): Delete defsubr of Sfont_info.
15127
15128 * font.c (font_style_to_value, font_score): Delete casting of the
15129 args to xstcasecmp.
15130 (register_font_driver): Increment num_font_drivers only when
15131 registering the driver globally.
15132 (Ffont_info): Move from fontset.c. Handle a font object too.
15133 (syms_of_font): Defsubr Sfont_info.
15134
15135 2008-05-29 Kenichi Handa <handa@m17n.org>
15136
15137 * coding.h (enum define_coding_utf8_arg_index): New enum.
15138 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15139 coding_attr_utf_bom.
15140 (enum utf_bom_type): Rename from utf_16_bom_type.
15141 (struct utf_16_spec): Adjust for the above change.
15142 (struct coding_system): Add utf_8_bom in `spec' union.
15143
15144 * coding.c (CODING_UTF_8_BOM): New macro.
15145 (enum coding_category): Delete coding_category_utf_8, add
15146 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15147 coding_category_utf_8_sig.
15148 (CATEGORY_MASK_UTF_8): Delete it.
15149 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15150 (CATEGORY_MASK_UTF_8_SIG): New macros.
15151 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15152 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15153 CATEGORY_MASK_UTF_8_SIG.
15154 (CATEGORY_MASK_UTF_8): New macro.
15155 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15156 (detect_coding_utf_8): Check BOM.
15157 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15158 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15159 (encode_coding_utf_16): Likewise.
15160 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15161 (detect_coding, detect_coding_system): Handle utf-8-auto.
15162 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15163 (syms_of_coding): Fix setting up of Vcoding_category_table.
15164
15165 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15166
15167 * process.c (Faccept_process_output): If `millisec' is non-nil,
15168 `seconds' default to 0.
15169 (wait_reading_process_output): Also return non-nil if we read output
15170 from a non-running process.
15171
15172 2008-05-29 Jason Rumney <jasonr@gnu.org>
15173
15174 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15175 `raster' specified.
15176 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15177 in the uniscribe backend, but disallow any font that has no
15178 unicode subrange support.
15179
15180 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
15181
15182 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15183 Fix typos in docstrings.
15184
15185 2008-05-29 Kenichi Handa <handa@m17n.org>
15186
15187 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15188 (Fx_family_fonts): Set frame correctly.
15189
15190 2008-05-28 Jason Rumney <jasonr@gnu.org>
15191
15192 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15193
15194 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15195
15196 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15197 calling build_annotations.
15198
15199 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
15200
15201 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15202 (Fencode_coding_string):
15203 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15204 <latin-extra-code-table>: Fix typos in docstrings.
15205 (syms_of_coding) <coding-system-alist>: Doc fix.
15206 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15207
15208 2008-05-28 Kenichi Handa <handa@m17n.org>
15209
15210 * fontset.c (Ffont_info): Don't call font_close_object.
15211
15212 * font.c (font_parse_family_registry): Use Ffont_put to validate
15213 foundry and family.
15214 (font_delete_unmatched): Don't check spacing.
15215 (font_list_entities): Add spacing to the spec to list fonts.
15216
15217 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15218 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15219
15220 * coding.c (encode_coding_raw_text): Fix previous change.
15221 (encode_coding_object): When the dst_object is a buffer and is
15222 different from src_object, move gap to PT.
15223
15224 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15225
15226 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15227
15228 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15229
15230 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15231 all branches. Compute it differently.
15232
15233 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15234
15235 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
15236
15237 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15238 into "else if () ... else ...".
15239
15240 2008-05-27 Jason Rumney <jasonr@gnu.org>
15241
15242 * w32font.c (w32font_open_internal): Determine if glyph indices
15243 are likely to work here.
15244
15245 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15246
15247 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15248 draw overlap glyphs with appropriate highlighting.
15249
15250 2008-05-27 Kenichi Handa <handa@m17n.org>
15251
15252 * xfont.c (xfont_open): Fix calculation of font->average_width.
15253
15254 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15255
15256 * casefiddle.c (casify_object): Try to guess better whether the
15257 argument is a byte or a char.
15258
15259 2008-05-26 Andreas Schwab <schwab@suse.de>
15260
15261 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15262 Always send multiples of format size.
15263
15264 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15265
15266 2008-05-26 Jason Rumney <jasonr@gnu.org>
15267
15268 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15269 (compute_metrics): Don't set failure if we just cleared the cache.
15270 (w32_weight_table): Remove unused variable.
15271 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15272 backwards compatibility.
15273
15274 2008-05-25 Kenichi Handa <handa@m17n.org>
15275
15276 * w32term.c (x_draw_glyph_string):
15277 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15278
15279 * xfaces.c: Delete unused function prototypes.
15280 (xstrlwr, font_frame): Delete them.
15281 (clear_face_cache): Delete unused variable.
15282
15283 * xftfont.c (xftfont_open): Delete unused variable.
15284 If underline_thickness is not 1, adjust underline_position.
15285
15286 * ftxfont.c (ftxfont_open): Delete unused variable.
15287
15288 * fontset.c (face_for_char): Optimize for the case of no charset
15289 property.
15290
15291 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15292 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15293 (otf_open, font_otf_capability, generate_otf_features)
15294 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15295 Comment out by surrounding "#if 0" and "#endif" for the moment.
15296 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15297 (syms_of_font): Codes for accessing above commented out.
15298
15299 2008-05-24 Eli Zaretskii <eliz@gnu.org>
15300
15301 * w32proc.c: Include dispextern.h.
15302
15303 * w32.c: Include dispextern.h.
15304
15305 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
15306
15307 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15308 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15309 Fix typos in docstrings.
15310
15311 2008-05-23 Jason Rumney <jasonr@gnu.org>
15312
15313 * xsmfns.c: Remove includes that are already included by config.h.
15314
15315 2008-05-23 Kenichi Handa <handa@m17n.org>
15316
15317 * charset.c (Qemacs, charset_emacs): New variables.
15318 (char_charset): Fix for non-Unicode characters.
15319 (syms_of_charset): Define charset_emacs.
15320
15321 * w32term.c (x_draw_glyph_string): Be sure to update
15322 s->underline_thickness and s->underline_position. Be sure to draw
15323 underline within the current line area.
15324
15325 * xterm.c (x_draw_glyph_string): Be sure to update
15326 s->underline_thickness and s->underline_position. Be sure to draw
15327 underline within the current line area.
15328
15329 * fontset.c: Delete unused variables and add casting for char *
15330 throughout the file.
15331 (fontset_font): Try the fallback fonts of the current fontset
15332 before consulting the default fontset.
15333
15334 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15335
15336 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15337
15338 2008-05-22 Jason Rumney <jasonr@gnu.org>
15339
15340 * font.c: Don't include strings.h.
15341
15342 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15343
15344 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15345 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15346 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15347 to call xstrcasecmp.
15348
15349 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15350
15351 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15352
15353 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15354
15355 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15356
15357 2008-05-22 Kenichi Handa <handa@m17n.org>
15358
15359 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15360
15361 * font.c (font_prop_validate_style): Adjust for the format
15362 change of font_style_table.
15363
15364 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15365 two args.
15366
15367 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15368 two args.
15369
15370 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15371
15372 * minibuf.c (keys_of_minibuf): Delete.
15373 * lisp.h (keys_of_minibuf): Delete.
15374 * emacs.c (main): Don't call keys_of_minibuf.
15375
15376 2008-05-22 Kenichi Handa <handa@m17n.org>
15377
15378 * ftfont.c (ftfont_resolve_generic_family): Rename from
15379 ftfont_list_generic_family. Return a single family for each
15380 generic family.
15381 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15382 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15383 Call font_add_log.
15384 (ftfont_match): Call font_add_log.
15385
15386 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15387 (FONT_DEBUG): Define it.
15388 (font_add_log): Extern it.
15389 (font_assert): Rename from xassert.
15390
15391 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15392 (xfont_list_family): Call font_add_log.
15393 (xfont_match): Likewise.
15394 (memq_no_quit): Delete.
15395
15396 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15397 call of Ffont_xlfd_name.
15398
15399 * xfaces.c (struct table_entry, slant_table, weight_table)
15400 (swidth_table): Move to font.c.
15401
15402 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15403 xassert are changed to font_assert. Delete many unused variables.
15404 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15405 New variables.
15406 (struct table_entry): Move from xfaces.c and modified.
15407 (weight_table, slant_table, width_table): Move from xfaces.c and
15408 contents adjusted for the change of struct table_entry.
15409 (font_style_to_value, font_style_symbolic): Adjust for the
15410 format change of font_style_table.
15411 (font_parse_family_registry): Don't overwrite existing foundry and
15412 family of font_spec.
15413 (font_score): Fix calculation of diff for sizes.
15414 (font_sort_entites): Call font_add_log.
15415 (font_delete_unmatched): Return a newly created list.
15416 (font_list_entities): Fix previous change. Call font_add_log.
15417 (font_matching_entity, font_open_entity, font_close_entity):
15418 Call font_add_log.
15419 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15420 (Finternal_set_font_style_table): Delete.
15421 (BUILD_STYLE_TABLE): New macro.
15422 (build_style_table): New function.
15423 (Vfont_log, font_log_env_checked): New variables.
15424 (font_add_log): New function.
15425 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15426 Declare Lisp variables "font-weight-table", "font-slant-table",
15427 "font-width-table", and "font-log". Initialize font_style_table.
15428
15429 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15430
15431 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15432
15433 2008-05-21 Seiji Zenitani <zenitani@mac.com>
15434 Ryo Yoshitake <ryo@shiftmode.net>
15435
15436 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15437 (Vframe_alpha_lower_limit): New variable.
15438 (x_set_alpha): New function.
15439
15440 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15441
15442 * xfns.c (x-create-frame, Qalpha):
15443 Initialize the frame parameter `alpha'.
15444 * xterm.c (OPAQUE, OPACITY): New.
15445 (x_set_frame_alpha): New function.
15446 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15447
15448 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15449 * w32fns.c (w32_frame_parm_handlers): Likewise.
15450
15451 2008-05-20 Jason Rumney <jasonr@gnu.org>
15452
15453 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15454 truetype fonts to opentype list.
15455
15456 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
15457
15458 * fontset.c (Ffontset_info): Doc fix.
15459 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15460 <ignore-relative-composition>: Fix typos in docstrings.
15461
15462 * font.c (syms-of-font) <font-encoding-alist>:
15463 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15464 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15465 (Ffont_otf_alternates): Doc fixes.
15466
15467 2008-05-20 Kenichi Handa <handa@m17n.org>
15468
15469 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15470 font.h through out the file.
15471 (FONT_DRIVERS): Rename from FONTOBJ.
15472 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15473 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15474
15475 * emacs.c (main): Call syms_of_font unconditionally.
15476
15477 * font.h (find_font_encoding): Extern it.
15478
15479 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15480 fontset.c.
15481 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
15482 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15483 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15484 only when HAVE_WINDOW_SYSTEM is defined.
15485 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15486 when HAVE_WINDOW_SYSTEM is defined.
15487
15488 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15489 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15490
15491 * xfaces.c: Include font.h unconditionally.
15492 (merge_face_ref, merge_face_vectors)
15493 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15494
15495 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15496
15497 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15498 indirect_variable.
15499 * eval.c (lisp_indirect_variable): New fun.
15500 (Fuser_variable_p): Use it.
15501
15502 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15503
15504 * lisp.h (indirect_variable):
15505 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15506 Use Lisp_Symbol pointers rather than Lisp_Object.
15507 Adjust callers.
15508 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15509 To this end, change calling-convention.
15510
15511 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15512 if some non-hidden buffers are selected by string&pred.
15513
15514 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
15515
15516 * process.c (wait_reading_process_output): Always check status
15517 when in batch mode.
15518
15519 2008-05-19 Kenichi Handa <handa@m17n.org>
15520
15521 * font.c (font_list_entities): Fix handling of cache.
15522 (font_matching_entity): Likewise.
15523
15524 * ftfont.c (cs_iso8859_1): Delete.
15525 (ft_face_cache): New variable.
15526 (struct ftfont_info): New member fc_charset_idx.
15527 (ftfont_build_basic_charsets): Delete.
15528 (fc_charset_table): New variable.
15529 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15530 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15531 Callers changed.
15532 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15533 (ftfont_spec_pattern): New argument fc_charset_idx.
15534 Check registry more rigidly. Change callers.
15535 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15536 change of :font-entity property of the font.
15537
15538 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15539 property of the font.
15540
15541 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
15542
15543 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15544 (Funencodable_char_position, Fcheck_coding_systems_region)
15545 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15546 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15547 (Ffind_operation_coding_system, Fset_coding_system_priority)
15548 (Fcoding_system_eol_type): Doc fixes.
15549
15550 2008-05-17 Glenn Morris <rgm@gnu.org>
15551
15552 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15553
15554 2008-05-16 Eli Zaretskii <eliz@gnu.org>
15555
15556 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15557 and st_gid.
15558
15559 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15560 HAVE_WINDOW_SYSTEM is not defined.
15561
15562 * xfaces.c (merge_face_ref, merge_face_vectors)
15563 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15564 HAVE_WINDOW_SYSTEM is defined.
15565 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15566
15567 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15568
15569 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15570
15571 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15572
15573 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15574
15575 2008-05-15 Kenichi Handa <handa@m17n.org>
15576
15577 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15578 preference.
15579
15580 2008-05-15 Glenn Morris <rgm@gnu.org>
15581
15582 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15583
15584 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
15585
15586 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15587 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15588
15589 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15590
15591 2008-05-15 Kenichi Handa <handa@m17n.org>
15592
15593 * ftfont.c (ftfont_list): Downcase family name to check generic
15594 families.
15595
15596 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15597 font-spec for QCfont value.
15598
15599 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15600 buffer. Check the return value of it.
15601
15602 2008-05-14 Jason Rumney <jasonr@gnu.org>
15603
15604 * w32term.c (w32_get_glyph_overhangs): Remove.
15605 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15606
15607 2008-05-14 Kenichi Handa <handa@m17n.org>
15608
15609 * font.c (font_prop_validate): Make nil a valid value.
15610 (font_clear_cache): Check if the cached vector of entities is nil
15611 or not.
15612
15613 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15614
15615 * emacs.c (main_thread): Conditionalize on
15616 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15617 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15618
15619 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15620 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15621 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15622
15623 2008-05-14 Kenichi Handa <handa@m17n.org>
15624
15625 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15626 has no corresponding coding system.
15627
15628 2008-05-14 Jason Rumney <jasonr@gnu.org>
15629
15630 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15631
15632 * w32font.h (w32font_open_internal): Update declaration.
15633
15634 * w32font.c (w32font_open_internal): Change last argument from
15635 w32font_info struct to font object. Fill in font object from
15636 font_entity. Get Outline metrics if possible. Use them to
15637 calculate underline position and thickness. Use xlfd name as name
15638 property. Don't set codepage.
15639 (w32font_open): Pass font_object to w32font_open_internal. Don't
15640 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15641 (w32font_draw): Use s->font.
15642 (clear_cached_metrics): Don't clear non-existent blocks.
15643
15644 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15645 font was not found.
15646 (x_draw_glyph_string): Use underline position and thickness from font.
15647
15648 * w32uniscribe.c (uniscribe_open): Pass font_object to
15649 w32font_open_internal.
15650
15651 2008-05-14 Kenichi Handa <handa@m17n.org>
15652
15653 These changes are to delete all legacy font-handling codes, and
15654 make Emacs use only font-backends.
15655
15656 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15657 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15658
15659 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15660
15661 * charset.h (Vcharset_non_preferred_head)
15662 (Vcurrent_iso639_language): Extern them.
15663
15664 * charset.c (Vcharset_non_preferred_head): New variable.
15665 (Vcurrent_iso639_language): New variable.
15666 (syms_of_charset): Declare it as a Lisp variable.
15667 (char_charset): Don't check non preferred charsets. As a last
15668 resort, return charset_unicode.
15669 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15670
15671 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15672 conditionals. Don't check enable_font_backend. Delete all codes
15673 used only when USE_FONT_BACKEND is not defined.
15674
15675 * dispextern.h (struct glyph_string): Change type of `font' to
15676 `struct font *'.
15677 (struct glyph_string): New member underline_position and
15678 underline_thickness.
15679 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15680 (struct face): Change type of `font' to `struct font *'. Remove
15681 members `font_name', `font_info_id'.
15682 (per_char_metric, encode_char): Delete externs.
15683 (calc_pixel_width_or_height): Adjust the prototype.
15684
15685 * emacs.c (enable_font_backend): Delete extern.
15686 (main): Don't set enable_font_backend. Don't check the command
15687 line argument "-disable-font-backend".
15688
15689 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15690 (enum font_property_index): New members FONT_DPI_INDEX,
15691 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15692 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15693 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15694 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15695 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15696 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15697 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15698 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15699 (struct font_spec, struct font_entity): New structs.
15700 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15701 (struct font): Many members from old "struct font_info" moved to
15702 here. Members font and entity deleted.
15703 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15704 the new font-related objects.
15705 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15706 (CHECK_FONT_GET_OBJECT): Likewise.
15707 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15708 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15709 (struct font_driver): New members case_sensitive anc check. Type
15710 of the member list and open changed.
15711 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15712 (font_symbolic_width, font_find_object, font_get_spec)
15713 (font_set_lface_from_name): Delete extern.
15714 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15715
15716 * font.c: Include <strings.h>.
15717 (enable_font_backend): Delete it.
15718 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15719 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15720 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15721 (null_string): Delete it.
15722 (null_vector): Make it static.
15723 (font_family_alist): Delete it.
15724 (Qnormal): Extern it.
15725 (QCextra, QClanguage): Delete it.
15726 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15727 (font_make_spec, font_make_entity, font_make_object)
15728 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15729 the string. Callers changed.
15730 (font_pixel_size): Adjusted for the format change of font-related
15731 objects.
15732 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15733 (font_style_to_value, font_style_symbolic): New function.
15734 (build_font_family_alist): Delete it.
15735 (font_registry_charsets): Use Fassoc_string instead of
15736 assq_no_quit.
15737 (font_prop_validate_symbol): Don't return null_string.
15738 (font_prop_validate_style): Adjusted for the change of
15739 style-related values in a font vector.
15740 (font_property_table): Delete entries for QClanguage and
15741 QCantialias, add entries for QCavgwidth.
15742 (get_font_prop_index): Delete the 2nd argument FROM.
15743 (font_prop_validate): Arguments changed.
15744 (font_put_extra): Adjusted for the change of font-related objects.
15745 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15746 (font_parse_fcname, font_unparse_fcname)
15747 (font_prepare_composition): Likewise.
15748 (font_parse_family_registry): Renamed from font_merge_old_spec.
15749 (otf_open): Delete the 1st arg entity.
15750 (font_otf_capability): Adjusted for the above change.
15751 (font_score): New arg alternate_families. Adjusted for the change
15752 of font-related objects.
15753 (font_sort_entites): New arg best_only.
15754 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15755 Delete them.
15756 (font_match_p): Check alternate families.
15757 (font_find_object): Delete it.
15758 (font_check_object): New function.
15759 (font_clear_cache): Adjusted for the change of font-related objects.
15760 (font_delete_unmatched): New arg.
15761 (font_list_entities): Call font_driver->list with a spec that
15762 doesn't specify style-related properties.
15763 (font_matching_entity): Arguments changed. Caller changed.
15764 (font_open_entity): Adjusted for the change of font-related objects.
15765 (font_close_object, font_has_char, font_encode_char)
15766 (font_get_name, font_get_spec): Likewise.
15767 (font_spec_from_name, font_clear_prop, font_update_lface):
15768 New functions.
15769 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15770 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15771 (font_at): Adjusted for the change of font-related objects.
15772 (font_range): New function.
15773 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15774 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15775 (Fcopy_font_spec, Fmerge_font_spec): New function.
15776 (Ffont_family_list): Renamed from list-families.
15777 (Finternal_set_font_style_table): Arguments changed.
15778 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15779 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15780 change of font-related objects.
15781 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15782
15783 * fontset.h (struct font_info): Delete it. Most members go to
15784 struct font.
15785 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15786 (enum FONT_SPEC_INDEX): Delete it.
15787 (font_info, list_fonts_func, load_font_func, query_font_func)
15788 (set_frame_fontset_func, find_ccl_program_func)
15789 (get_font_repertory_func, new_fontset_from_font_name): Delete
15790 externs.
15791 (fontset_from_font_name): Extern it.
15792 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15793 (FONT_INFO_FROM_FACE): Deleted.
15794 (face_for_font): Adjust prototype.
15795
15796 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15797 conditionals. Don't check enable_font_backend. Delete all codes
15798 used only when USE_FONT_BACKEND is not defined.
15799 (get_font_info_func, list_font_func, load_font_func)
15800 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15801 (get_font_repertory_func): Delete them.
15802 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15803 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15804 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15805 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15806 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15807 (fontset_compare_rfontdef): New function.
15808 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15809 rfont-defs by qsort. Adjusted for the change of font-group vector.
15810 (load_font_get_repertory): Deleted.
15811 (fontset_find_font): Use new macros to ref/set elements of
15812 font-def and rfont-def.
15813 (fontset_font): Fix the timing of remembering that no font for C.
15814 (free_face_fontset): Do nothing if the face has no fontset.
15815 (face_suitable_for_char_p): Use new macros to ref/set elements of
15816 rfont-def.
15817 (face_for_char): Likewise. Call face_for_char with font_object.
15818 (fs_load_font): Delete. Delete #pragma surrounding it.
15819 (fs_query_fontset): Use strcasecmp instead of strcmp.
15820 (generate_ascii_font_name): Adjusted for the format change of
15821 font-spec.
15822 (Fset_fontset_font): Likewise. Use new macros to set elements of
15823 font-def.
15824 (Fnew_fontset): Use font_unparse_xlfd to generate
15825 FONTSET_ASCII (fontset).
15826 (new_fontset_from_font_name): Deleted.
15827 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15828 a fontset is already created for the font. FIx updating of
15829 Vfontset_alias_alist.
15830 (fontset_ascii_font): Deleted.
15831 (Ffont_info): Adjusted for the format change of font-spec.
15832 (Finternal_char_font): Likewise.
15833 (Ffontset_info): Likewise.
15834 (syms_of_fontset): Don't check load_font_func.
15835
15836 * fns.c (internal_equal): Handle PREV_FONT.
15837
15838 * frame.h: Delete USE_FONT_BACKEND conditional.
15839
15840 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15841 conditionals. Don't check enable_font_backend. Delete all codes
15842 used only when USE_FONT_BACKEND is not defined.
15843 (x_set_font): Call x_new_font, not x_new_fontset2.
15844 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15845 already set for the frame.
15846
15847 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15848 a font-entity by font_make_entity. Use font_intern_prop instead
15849 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15850 font property. If a font is scalable, set avgwidth property to 0.
15851 Set font-entity property by font_put_extra.
15852 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15853 (ffont_driver): Adjusted for the change of struct font_driver.
15854 (ftfont_spec_pattern): New function.
15855 (ftfont_list): Return a list, not vector.
15856 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15857 (ftfont_list_family): Don't downcase names.
15858 (ftfont_free_entity): Deleted.
15859 (ftfont_open): Return a font-object. Adjusted for the change of
15860 struct font. Get underline_thickness and underline_position from
15861 font property. Don't update dpyinfo->smallest_font_height and
15862 dpyinfo->smallest_char_width.
15863 (ftfont_close): Don't free `struct font'.
15864 (ftfont_has_char): Adjusted for the format change of font-entity.
15865 (ftfont_encode_char, ftfont_text_extents): Likewise.
15866
15867 * ftxfont.c (ftxfont_list): Return a list, not vector.
15868 (ftxfont_open): Return a font-object. Adjusted for the change of
15869 struct font. Get underline_thickness and underline_position from
15870 font property. Don't update dpyinfo->smallest_font_height and
15871 dpyinfo->smallest_char_width.
15872 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15873 (ftxfont_draw): Adjusted for the change of struct font.
15874
15875 * image.c (image_ascent): Don't include "charset.h". Include
15876 "character.h" and "font.h".
15877
15878 * lisp.h (enum pvec_type): New member PREV_FONT.
15879 (Fassoc_string): EXFUN it.
15880
15881 * print.c: Include font.h.
15882 (print_object): Handle font-related objects.
15883
15884 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15885 conditionals. Don't check enable_font_backend. Delete all codes
15886 used only when USE_FONT_BACKEND is not defined.
15887 (handle_auto_composed_prop): Do nothing if it->f is not on a
15888 window system. Check how many following characters can be
15889 displayed by the same font.
15890 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15891 'struct font *'.
15892 (get_char_face_and_encoding): Assign the whole encoding task to
15893 the `encode-char' method of a font driver.
15894 (fill_composite_glyph_string): Adjusted for the change of `struct
15895 face' and `struct glyph_string'.
15896 (fill_glyph_string): Likewise.
15897 (get_per_char_metric): Arguments changed.
15898 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15899 and `struct glyph_string'.
15900 (produce_stretch_glyph, calc_line_height_property)
15901 (x_produce_glyphs): Likewise.
15902
15903 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15904 conditionals. Don't check enable_font_backend. Delete all codes
15905 used only when USE_FONT_BACKEND is not defined. Use
15906 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15907 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15908 (Qp): Extern them.
15909 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15910 Deleted.
15911 (struct font_name): Deleted.
15912 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15913 (compare_fonts_by_sort_order): New function.
15914 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15915 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15916 Deleted.
15917 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15918 compare_fonts_by_sort_order.
15919 (Fx_font_family_list): Call Ffont_family_list.
15920 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15921 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15922 (face_symbolic_slant, face_symbolic_swidth)
15923 (split_font_name_into_vector, build_font_name_from_vector)
15924 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15925 (font_rescale_ratio, split_font_name, build_font_name)
15926 (free_font_names, sort_fonts, x_face_list_fonts)
15927 (face_font_available_p, sorted_font_list, cmp_font_names)
15928 (font_list_1, concat_font_list, font_list, remove_duplicates):
15929 Deleted.
15930 (Fx_list_fonts): Use Ffont_list.
15931 (LFACE_AVGWIDTH): Deleted.
15932 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15933 by FONTP.
15934 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15935 (set_lface_from_font_name): Delete it.
15936 (set_lface_from_font): Renamed from
15937 set_lface_from_font_and_fontset. Caller changed. Don't set
15938 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15939 for face.
15940 (merge_face_vectors): Copy font-spec if necessary.
15941 Clear properties of the font-spec if necessary.
15942 (merge_face_ref): Clear properties of the font-spec if necessary.
15943 (Finternal_set_lisp_face_attribute): Likewise.
15944 (set_font_frame_param): Use font_load_for_lface to load a
15945 font-object, and call Fmodify_frame_parameters with it.
15946 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15947 font name by Ffont_xlfd_name.
15948 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15949 QCslant, and QCwidth.
15950 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15951 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15952 Compare fonts by EQ.
15953 (lookup_non_ascii_face): Deleted.
15954 (face_for_font): The 2nd argument changed.
15955 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15956 Check atomic font properties by case insensitive.
15957 (realize_non_ascii_face): Set face->overstrike correctly.
15958 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15959 (dump_realized_face): Get font name from
15960 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15961
15962 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15963 conditionals. Don't check enable_font_backend. Delete all codes
15964 used only when USE_FONT_BACKEND is not defined.
15965 (xic_create_xfontset): Original code deleted and renamed from
15966 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15967 (x_make_gc): Don't set GCFont in GCs.
15968 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15969 opened by "fixed".
15970 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15971 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15972 get_font_repertory_func.
15973
15974 * xfont.c: Include <stdlib.h> and "ccl.h".
15975 (struct xfont_info): New structure.
15976 (xfont_query_font): Deleted.
15977 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15978 moved from xterm.c.
15979 (xfont_driver): Adjusted for the change of struct font_driver.
15980 (compare_font_names): New function.
15981 (xfont_list_pattern): Sort font names case insensitively. Make
15982 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15983 (xfont_list): Return a list, not vector.
15984 (xfont_match): If the font doesn't have QCname property, generate
15985 a name from the other font properties.
15986 (xfont_open): Return a font-object. Adjusted for the change of
15987 struct font. Get underline_thickness and underline_position from
15988 font property. Don't update dpyinfo->smallest_font_height and
15989 dpyinfo->smallest_char_width.
15990 (xfont_close): Don't free struct font.
15991 (xfont_prepare_face): Adjusted for the change of struct font.
15992 (xfont_done_face): Deleted.
15993 (xfont_has_char): Adjusted for the change of struct font.
15994 (xfont_encode_char, xfont_draw): Likewise.
15995 (xfont_check): New function.
15996
15997 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15998 callback function.
15999 (xftfont_match): Adjusted for the format change of font-entity.
16000 (xftfont_open): Adjusted for the format change of font-entity and
16001 font-object. Adjusted for the change of struct font. Return a
16002 font-object. Don't update dpyinfo->smallest_font_height and
16003 dpyinfo->smallest_char_width.
16004 (xftfont_close): Block input while calling XftFontClose.
16005 (xftfont_prepare_face): Don't block input while calling
16006 xftfont_get_colors. Adjusted for the change of struct font.
16007 (xftfont_shape): Return value of error case fixed.
16008
16009 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16010
16011 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16012 conditionals.
16013 (FONT_WIDTH): Return (f)->max_width.
16014 (struct x_display_info): Delete member `font'.
16015 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16016 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16017 (struct x_output): Change type of `font' to `struct font *'.
16018
16019 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16020 conditionals. Don't check enable_font_backend. Delete all codes
16021 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16022 (x_per_char_metric, x_encode_char): Deleted.
16023 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16024 (x_compute_glyph_string_overhangs): Adjusted for the change of
16025 `struct face'.
16026 (x_draw_glyph_string_foreground)
16027 (x_draw_composite_glyph_string_foreground): Likewise.
16028 (x_draw_glyph_string): Likewise. Use font->underline_position and
16029 font->underline_thickness.
16030 (x_new_font): Renamed from x_new_fontset2.
16031 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16032 (x_check_font): Call `check' method of a font driver.
16033 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16034 (x_query_font, x_get_font_repertory): Deleted.
16035 (x_find_ccl_program): Renamed and moved to xfont.c.
16036 (x_redisplay_interface): Adjusted for the change of `struct
16037 redisplay_interface'.
16038
16039 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16040 conditionals. Don't check enable_font_backend. Delete all codes
16041 used only when USE_FONT_BACKEND is not defined. Surround non-used
16042 code by "#ifdef OLD_FONT" and "endif".
16043 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16044
16045 * w32font.h (struct w32font_info): New member.
16046 (FONT_COMPAT): New macro.
16047 (w32font_open_internal): Prototype adjusted.
16048
16049 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16050 OLD_FONT" and "endif".
16051
16052 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16053 conditionals. Don't check enable_font_backend. Delete all codes
16054 used only when USE_FONT_BACKEND is not defined.
16055 (w32font_open): Return a font-object. Make a font-object by
16056 font_make_object. Adjusted for the change of struct w32font_info.
16057 (w32font_close): Don't free struct font. Adjusted for the change
16058 of struct w32font_info.
16059 (w32font_encode_char, w32font_text_extents, w32font_draw):
16060 Adjusted for the change of struct w32font_info.
16061 (w32font_draw): Likewise.
16062 (w32font_list_internal): Return a list, not vector.
16063 (w32font_open_internal): Change the 4th arg to font-object.
16064 Adjusted for the change of struct w32font_info and font-object format.
16065 (add_font_name_to_list): Don't downcase names.
16066 (w32_enumfont_pattern_entity): Make a font-entity by
16067 font_make_entity. Adjusted for the format change of font-entity.
16068 Use FONT_SET_STYLE to set a style-related font property. If a
16069 font is scalable, set avgwidth property to 0. Set font-entity
16070 property by font_put_extra.
16071 (font_matches_spec): Adjusted for the format change of font-entity.
16072 (w32_weight_table, w32_decode_weight): New variables.
16073 (w32_encode_weight): New function.
16074 (fill_in_logfont): Adjusted for the format change of font-spec.
16075 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16076 weight value.
16077 (w32font_driver): Adjusted for the change of struct font_driver.
16078
16079 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16080 conditionals. Don't check enable_font_backend. Surround non-used
16081 code by "#ifdef OLD_FONT" and "endif".
16082 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16083 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16084
16085 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16086 conditionals. Don't check enable_font_backend. Delete all codes
16087 used only when USE_FONT_BACKEND is not defined. Surround non-used
16088 code by "#ifdef OLD_FONT" and "endif".
16089
16090 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16091 (uniscribe_open): Return value changed to font-object.
16092 Adjusted for the format change of font-object.
16093 (uniscribe_otf_capability): Adjusted for the change of struct font.
16094 (add_opentype_font_name_to_list): Don't downcase names.
16095 (uniscribe_font_driver): Adjusted for the change of struct
16096 font_driver.
16097
16098 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
16099
16100 * dispnew.c (update_frame_1): Check if tty output is still valid
16101 before flushing it.
16102
16103 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16104
16105 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16106 to Gtk+ menus.
16107
16108 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16109
16110 * dired.c (file_name_completion): Tweak the code so as to always do it
16111 in a single pass. Tighten the scope of some variables.
16112
16113 * dired.c (Qdefault_directory): New var.
16114 (file_name_completion): Use it instead of Fexpand_file_name.
16115 (syms_of_dired): Initialize it.
16116
16117 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16118
16119 * fileio.c (double_dollars): Remove dead code.
16120
16121 2008-05-10 Eli Zaretskii <eliz@gnu.org>
16122
16123 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16124 Mention w32-get-true-file-attributes in doc string.
16125
16126 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16127
16128 2008-05-09 Glenn Morris <rgm@gnu.org>
16129
16130 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16131 2008-04-23.
16132
16133 2008-05-09 Eli Zaretskii <eliz@gnu.org>
16134
16135 Support for reporting owner and group of each file on MS-Windows:
16136 * dired.c (stat_uname, stat_gname): New functions, with special
16137 implementation for w32.
16138 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16139
16140 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16141 (dflt_group_name): New static variable.
16142 (dflt_group): Rename from the_group.
16143 (init_user_info): Init dflt_group fields. Get user's group name
16144 from LookupAccountSid.
16145 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16146 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16147 New initialization states.
16148 (globals_of_w32): Initialize them to zero. Initialize the default
16149 group name to "None".
16150 (GetFileSecurity_Name): New global var, the name of the function
16151 to call for GetFileSecurity.
16152 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16153 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16154 (get_file_security, get_security_descriptor_owner)
16155 (get_security_descriptor_group, is_valid_sid)
16156 (get_file_security_desc, get_rid, get_name_and_id)
16157 (get_file_owner_and_group): New functions.
16158 (stat): Use get_file_security_desc and get_file_owner_and_group to
16159 report the owner and primary group of each file. Don't ignore the
16160 high 32 bits of file's size, now that st_size is 64-bit wide.
16161 Fix test when to get true file attributes.
16162 (init_user_info): Use get_rid instead of equivalent inline code.
16163 (fstat): Don't ignore the high 32 bits of file's size.
16164
16165 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
16166
16167 * image.c (png_load): Use correct bit-depth for setting background
16168 color.
16169
16170 2008-05-08 Eli Zaretskii <eliz@gnu.org>
16171
16172 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16173 epa-hook.elc.
16174
16175 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
16176
16177 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16178
16179 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16180
16181 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16182 because the original parameters are in pure storage now.
16183 (mac_window): Remove unused params. Update callers.
16184
16185 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16186
16187 * lread.c (substitute_object_recurse): Use lower-level primitives.
16188 Don't signal errors when traversing sub-char-tables.
16189 Don't loop over all the possible characters when traversing char-tables.
16190
16191 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16192 just like we do in print.c.
16193
16194 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16195
16196 * minibuf.c (Ftry_completion): Remove code left over from when we used
16197 scmp instead of Fcompare_strings.
16198
16199 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
16200
16201 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16202
16203 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16204
16205 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16206 Create bitmap context in native byte order.
16207
16208 * macterm.c (XDrawLine)
16209 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16210 context in native byte order.
16211
16212 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16213
16214 * config.in: Regenerate.
16215
16216 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16217 New definitions for Image I/O support.
16218 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16219 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16220 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16221 (mac_data_provider_release_data, image_load_image_io)
16222 [USE_MAC_IMAGE_IO]: New functions.
16223 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16224 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16225 (init_image_func_pointer) [MAC_OSX]: Remove function.
16226 (image_load_quartz2d) [MAC_OSX]: Check availability of
16227 CGImageCreateWithPNGDataProvider at compile time.
16228 Use lowercase `false' for boolean constant.
16229 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16230 Use image_load_image_io.
16231 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16232 Don't check MyCGImageCreateWithPNGDataProvider.
16233 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16234 Don't call init_image_func_pointer.
16235
16236 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16237
16238 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16239 Make variable non-static.
16240 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16241 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16242
16243 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16244 (RED_FROM_ULONG): Mask off higher bits.
16245 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16246
16247 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16248 Include AvailabilityMacros.h.
16249 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16250 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16251
16252 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16253
16254 * chartab.c (Fset_char_table_range): If range is t, really set all
16255 chars to that value.
16256
16257 2008-05-03 Eli Zaretskii <eliz@gnu.org>
16258
16259 * dired.c (Ffile_attributes): Don't allow the device number become
16260 negative.
16261
16262 2008-05-02 Daiki Ueno <ueno@unixuser.org>
16263
16264 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16265
16266 2008-05-02 Juri Linkov <juri@jurta.org>
16267
16268 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16269 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16270 DEFAULT argument as a list of default values in docstrings.
16271
16272 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
16273
16274 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16275
16276 2008-05-01 Martin Rudalics <rudalics@gmx.at>
16277
16278 * dispnew.c (change_frame_size_1): Preserve small windows when
16279 shrinking frames by calling set_window_height|width with third
16280 arg 2.
16281
16282 * window.h (struct window): Replace field too_small_ok by field
16283 resize_proportionally.
16284
16285 * window.c (make_window): Initialize resize_proportionally.
16286 (enlarge_window): Temporarily set resize_proportionally to make
16287 sure that shrink_windows does scale the window proportionally.
16288 (shrink_windows): When window has resize_proportionally set try
16289 to shrink it proportionally by stealing from other windows.
16290 (struct saved_window, Fset_window_configuration)
16291 (compare_window_configurations): Handle resize_proportionally.
16292 (WINDOW_TOTAL_SIZE): New macro.
16293 (window_min_size, shrink_windows, size_window): Use it.
16294 (check_min_window_sizes): Remove. Invalid values of
16295 window-min-height|width are handled by window_min_size_2 now.
16296 (size_window, Fsplit_window, enlarge_window)
16297 (adjust_window_trailing_edge, grow_mini_window): Don't call
16298 check_min_window_sizes.
16299 (window_min_size_2, window_min_size_1, window_min_size):
16300 New argument safe_p for retrieving "safe" minimum sizes.
16301 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16302 (adjust_window_trailing_edge, grow_mini_window):
16303 Adjust arguments of window_min_size... functions.
16304 (shrink_windows): Argument min_size removed. New argument
16305 safe_p allows shrinking windows to their safe minimum sizes.
16306 Calculate minimum size and decide whether a window shall be
16307 deleted for each window individually.
16308 (size_window): When nodelete_p equals 2, tell shrink_windows to
16309 delete windows only if their new minimum size is no more safe.
16310 (shrink_window_lowest_first): Call window_min_size_1 to make
16311 sure to preserve modeline of bottom-most window when resizing
16312 the minibuffer.
16313 (Fset_window_configuration, Fcurrent_window_configuration)
16314 (compare_window_configurations): Do not handle
16315 window-min-height|width any more.
16316 (syms_of_window): Clarify window-min-height|width doc-strings.
16317
16318 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16319
16320 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16321 some more. Copy some of the code from Ftry_completions.
16322 Remove special case code that dates back to initial revision when the
16323 slash was only added when necessary and that can't trigger nowadays.
16324
16325 2008-04-27 Kenichi Handa <handa@m17n.org>
16326
16327 * font.c (font_prop_validate): Signal `error' instead of `font'.
16328
16329 2008-04-29 Jason Rumney <jasonr@gnu.org>
16330
16331 * w32fns.c (Fw32_battery_status): New defun.
16332 (syms_of_w32fns): Defsubr it.
16333
16334 2008-04-28 Andreas Schwab <schwab@suse.de>
16335
16336 * dired.c (file_name_completion): Fix another mixing of encoded
16337 and decoded names.
16338
16339 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
16340
16341 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16342
16343 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
16344
16345 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16346
16347 2008-04-27 Andreas Schwab <schwab@suse.de>
16348
16349 * dired.c (file_name_completion): Fix inappropriate mixing of
16350 encoded and decoded names.
16351
16352 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16353
16354 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16355
16356 2008-04-26 Eli Zaretskii <eliz@gnu.org>
16357
16358 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16359 2008-03-31, it's not needed anymore with `struct stat' definition
16360 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16361 for the same reasons.
16362
16363 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16364
16365 * m/sparc.h: Additional redefinitions for GNU/Linux.
16366
16367 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16368
16369 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16370 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16371 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16372 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16373 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16374 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16375 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16376 Likewise.
16377
16378 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16379 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16380 (mac_ax_number_of_characters): Add externs.
16381 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16382 [USE_MAC_TSM]: Likewise.
16383 (mac_handle_text_input_event) [MAC_OSX]:
16384 Handle kEventTextInputOffsetToPos for no active input area case.
16385 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16386 (mac_handle_document_access_event)
16387 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16388 (install_application_handler) [MAC_OSX]: Register handlers for
16389 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16390 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16391 Register mac_handle_document_access_event.
16392
16393 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16394 Make functions non-static.
16395
16396 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16397
16398 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16399 (read_file_name_completion_ignore_case, insert_default_directory)
16400 (Qdefault_directory): Move to minibuffer.el.
16401 (Fread_file_name): Call the new `read-file-name' instead.
16402
16403 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16404
16405 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16406 Make function non-static.
16407 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16408 Remove function.
16409 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16410 Move to mactoolbox.c.
16411 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16412
16413 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16414 (mac_rect_make): New macro.
16415
16416 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16417 instead of float.
16418 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16419 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16420 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16421 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16422 CGRectMake.
16423 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16424 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16425 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16426 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16427 instead of WindowRef in argument type.
16428 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16429 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16430 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16431 instead of DISPLAY. All uses changed.
16432 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16433 (x_calc_absolute_position): Simplify so as not to use
16434 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16435
16436 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16437 instead of WindowRef in argument type.
16438 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16439 [TARGET_API_MAC_CARBON]: Remove externs.
16440 (create_apple_event, mac_event_parameters_to_lisp)
16441 [TARGET_API_MAC_CARBON]: Add externs.
16442
16443 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16444 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16445 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16446 is clicked.
16447 (x_activate_menubar): Remove extern for saved_menu_event_location.
16448 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16449 Move from mac.c.
16450
16451 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16452
16453 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16454 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16455
16456 2008-04-23 Jason Rumney <jasonr@gnu.org>
16457
16458 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16459 attributes only for local files.
16460
16461 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16462 default to Qlocal.
16463
16464 2008-04-22 Juri Linkov <juri@jurta.org>
16465
16466 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16467 read-buffer-to-switch instead of using the letter "B".
16468
16469 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16470
16471 * fileio.c (Qdefault_directory): New variable.
16472 (Fread_file_name): Use it to pass `dir' to the completion functions.
16473
16474 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
16475
16476 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16477
16478 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16479
16480 * keyboard.c (Vpre_help_message): Remove.
16481 (show_help_echo): Remove default C code.
16482
16483 * dired.c (directory_files_internal, file_name_completion):
16484 Only call ENCODE_FILE if the string is indeed decoded.
16485
16486 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16487
16488 * Makefile.in (TOOLKIT_DEFINES): Remove.
16489 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16490
16491 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16492
16493 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16494 (mactoolbox.o): New target.
16495
16496 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16497 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16498
16499 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16500 Use mac_set_frame_window_background instead of XSetWindowBackground.
16501 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16502 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16503 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16504 instead of SetWindowTitleWithCFString.
16505 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16506 Move function to mactoolbox.c.
16507 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16508 Use mac_set_window_modified instead of SetWindowModified.
16509 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16510 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16511 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16512 FrontNonFloatingWindow. Use mac_activate_window instead of
16513 ActivateWindow. Use mac_active_non_floating_window instead of
16514 ActiveNonFloatingWindow.
16515 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16516 Use mac_show_hourglass and mac_hide_hourglass.
16517 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16518 instead of GetGlobalMouse.
16519 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16520 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16521 Use mac_bring_window_to_front instead of BringToFront.
16522 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16523 mactoolbox.c.
16524 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16525 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16526 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16527 mactoolbox.c.
16528
16529 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16530 (XtPointer): Move typedef from macmenu.c.
16531 (enum button_type): Move enum from macmenu.c.
16532 (widget_value): Move typedef from macmenu.c.
16533 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16534 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16535 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16536 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16537 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16538 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16539 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16540 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16541 (Selection): Move typedef from macselect.c.
16542 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16543 macterm.c.
16544 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16545 (mac_is_window_collapsed, mac_bring_window_to_front)
16546 (mac_send_window_behind, mac_hide_window, mac_show_window)
16547 (mac_collapse_window, mac_front_non_floating_window)
16548 (mac_active_non_floating_window, mac_activate_window)
16549 (mac_move_window_structure, mac_move_window, mac_size_window)
16550 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16551
16552 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16553 (enum mac_menu_kind): Move enum to mactoolbox.c.
16554 (min_menu_id): Move variable to mactoolbox.c.
16555 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16556 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16557 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16558 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16559 [TARGET_API_MAC_CARBON]: Likewise.
16560 (XtPointer): Move typedef to macgui.h.
16561 (enum button_type): Move enum to macgui.h.
16562 (widget_value): Move typedef to macgui.h.
16563 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16564 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16565 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16566 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16567 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16568 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16569 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16570 (popup_activated_flag): Make variable non-static.
16571 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16572 (add_menu_item, fill_menu, dispose_menus):
16573 Move functions to mactoolbox.c.
16574 (restore_show_help_function, menu_target_item_handler)
16575 (install_menu_target_item_handler, mac_handle_dialog_event)
16576 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16577 [TARGET_API_MAC_CARBON]: Likewise.
16578 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16579 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16580 (find_and_call_menu_selection, name_is_separator): Make function
16581 non-static.
16582 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16583 to mactoolbox.c.
16584 (set_frame_menubar): Don't call install_menu_quit_handler.
16585 (menu_item_selection): New variable.
16586 (mac_menu_show): Use create_and_show_popup_menu.
16587 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16588 selection but set variable menu_item_selection. All uses changed.
16589 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16590 Call install_menu_quit_handler. Move to mactoolbox.c.
16591
16592 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16593 (Selection): Move typedef to macgui.h.
16594 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16595 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16596 Make variables non-static.
16597 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16598 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16599 Make functions non-static.
16600 (Vmac_service_selection) [MAC_OSX]: Likewise.
16601 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16602 (mac_valid_selection_target_p, mac_clear_selection)
16603 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16604 (mac_put_selection_value, mac_selection_has_target_p)
16605 (mac_get_selection_value, mac_get_selection_target_list)
16606 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16607 Move functions to mactoolbox.c.
16608 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16609 Likewise.
16610 (copy_scrap_flavor_data, mac_handle_service_event)
16611 (install_service_handler) [MAC_OSX]: Likewise.
16612 (syms_of_macselect) <Vmac_dnd_known_types>:
16613 Use mac_dnd_default_known_types.
16614
16615 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16616 Move to mactoolbox.c.
16617 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16618 (Fx_selection_owner_p): Add EXFUN.
16619 (install_window_handler, remove_window_handler, XSetWindowBackground):
16620 Remove externs.
16621 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16622 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16623 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16624 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16625 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16626 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16627 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16628 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16629 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16630 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16631 (mac_valid_selection_target_p, mac_clear_selection)
16632 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16633 (mac_put_selection_value, mac_selection_has_target_p)
16634 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16635 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16636 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16637 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16638 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16639 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16640 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16641 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16642 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16643
16644 * mactoolbox.c: New file.
16645
16646 2008-04-18 Jason Rumney <jasonr@gnu.org>
16647
16648 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16649
16650 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16651
16652 * character.c (Fmultibyte_char_to_unibyte):
16653 Return latin1 chars unchanged.
16654
16655 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16656 relocated if it points to `name'.
16657
16658 2008-04-17 Kenichi Handa <handa@m17n.org>
16659
16660 * data.c (Faset): Allow setting a multibyte character in an
16661 ASCII-only unibyte string.
16662
16663 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16664
16665 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16666
16667 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16668 done in config.h.
16669
16670 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
16671
16672 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16673 (Fchar_direction): Add usage in the docstring.
16674
16675 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
16676
16677 * keyboard.c (read_key_sequence): Remove always-true checks.
16678
16679 2008-04-14 Jason Rumney <jasonr@gnu.org>
16680
16681 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16682 compatibility struct, for better underline positioning.
16683
16684 2008-04-13 David Hansen <david.hansen@gmx.net>
16685
16686 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16687 string.
16688
16689 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16690
16691 * m/hp800.h (XUINT, XSET): Remove.
16692
16693 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
16694
16695 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16696 previous change.
16697
16698 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16699
16700 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16701 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16702
16703 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16704
16705 * keymap.h (map_keymap_canonical): Declare.
16706 * xmenu.c (single_keymap_panes): Use it.
16707
16708 2008-04-11 Glenn Morris <rgm@gnu.org>
16709
16710 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16711 set the target's value to that of the alias.
16712
16713 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16714
16715 * term.c (set_tty_color_mode): Left over typo.
16716
16717 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
16718
16719 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16720 only after check for file name handler functions. Signal, when
16721 native functionality is not supported.
16722 (syms_of_fileio): Declare it unconditionally.
16723
16724 2008-04-10 Jason Rumney <jasonr@gnu.org>
16725
16726 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16727 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16728
16729 * w32.c (logon_network_drive): Also logon to remote drives that
16730 are mapped to drive letters.
16731
16732 2008-04-10 Glenn Morris <rgm@gnu.org>
16733
16734 * xdisp.c (truncate-partial-width-windows): Doc fix.
16735
16736 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16737
16738 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16739 Move functions to minibuffer.el.
16740 (syms_of_fileio): Don't declare them.
16741
16742 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16743
16744 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16745 (syms_of_minibuf): Remove its initialization.
16746
16747 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16748
16749 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
16750
16751 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16752
16753 2008-04-09 Jason Rumney <jasonr@gnu.org>
16754
16755 * makefile.w32-in (distclean): Delete makefile too.
16756 (maintainer-clean): New target.
16757
16758 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16759
16760 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16761 for new font backend and composite cases.
16762
16763 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16764
16765 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16766 Most of the code moved to run_timers.
16767 (do_pending_atimers): Call run_timers.
16768 (run_timers): New function.
16769
16770 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16771 run atimers.
16772
16773 * process.c (wait_reading_process_output): The same as above.
16774
16775 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16776
16777 * minibuf.c (last_exact_completion): Remove variable.
16778 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16779 (complete_and_exit_1, complete_and_exit_2)
16780 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16781 (Fdisplay_completion_list, display_completion_list_1)
16782 (Fminibuffer_completion_help, Fself_insert_and_exit)
16783 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16784 minibuffer.el.
16785 (syms_of_minibuf): Remove corresponding initializations.
16786
16787 * keyboard.c (Qdeactivate_mark): New var.
16788 (command_loop_1): Use it to call `deactivate-mark'.
16789 (syms_of_keyboard): Initialize it.
16790
16791 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16792 to another frame.
16793 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16794 Don't call set_tty_color_mode.
16795 (store_frame_param): Reset previous_frame rather than call
16796 set_tty_color_mode.
16797 * term.c (set_tty_color_mode): Rewrite.
16798 * dispextern.h (set_tty_color_mode): New type.
16799 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16800
16801 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16802
16803 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16804 for generic chars, which do not exist any more in emacs-unicode.
16805
16806 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
16807
16808 * coding.c (detect_coding_emacs_mule)
16809 (Ffind_operation_coding_system): Fix typo.
16810
16811 2008-04-08 Jason Rumney <jasonr@gnu.org>
16812
16813 * w32uniscribe.c (SNAME): Extract only symbol name.
16814
16815 * w32font.h (struct w32_metric_cache): New struct.
16816 (w32font_info): Use it.
16817 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16818 (CACHE_BLOCKSIZE): New constants.
16819
16820 * w32font.c (Qja, Qko, Qzh): New symbols.
16821 (syms_of_w32font): Initialise them.
16822 (font_matches_spec): Use them to filter by language.
16823 (recompute_cached_metrics): Remove function.
16824 (compute_metrics, clear_cached_metrics): New functions.
16825 (w32font_encode_char): Use them to manage metric cache.
16826 (w32font_text_extents): Cache metrics for all glyphs on demand.
16827 Delay converting glyph indices to WORD until needed.
16828 (w32font_open_internal): Initialize metric cache to empty.
16829 (registry_to_w32_charset): Charset should always be a symbol.
16830 (fill_in_logfont, list_all_matching_fonts): Family should
16831 always be a symbol.
16832
16833 2008-04-06 Jason Rumney <jasonr@gnu.org>
16834
16835 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16836 Give up if glyph indices not supported. Use uniscribe obtained
16837 ABC widths for individual metrics. Map glyph clusters back to
16838 characters using fClusterStart flag. Return number of glyphs
16839 produced, not chars processed.
16840 (uniscribe_shape): Map char at FROM to current glyph.
16841
16842 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16843
16844 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16845 Use SetMenuItemHierarchicalMenu.
16846
16847 2008-04-05 Jason Rumney <jasonr@gnu.org>
16848
16849 * image.c (pbm_load): Allow color values up to 65535.
16850 Throw an error if max_color_idx is outside the supported range.
16851 Report an error when image size is invalid.
16852 Read two bytes at a time when raw images have max_color_idx above 255.
16853
16854 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16855
16856 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16857 append "CCL: Quitted" when the CCL program is quitted.
16858 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16859
16860 * ccl.h (struct ccl_program): New member quit_silently.
16861
16862 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
16863
16864 * search.c (compile_pattern_1): Treat non-nil and non-string of
16865 search-spaces-regexp as nil.
16866
16867 * minibuf.c (Fassoc_string): Tweak docstring.
16868
16869 2008-04-05 Eli Zaretskii <eliz@gnu.org>
16870
16871 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16872 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16873 2008-03-14 to force inode be positive.
16874
16875 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16876 _S_* ones, since we now use our own sys/stat.h.
16877 (stat, fstat): Don't mangle the inode number.
16878 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16879
16880 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16881
16882 * frame.h (struct frame): Give one more bit to `visible' since we use
16883 values larger than 1 to indicate obscured frames on ttys.
16884
16885 * keymap.c (Qkeymap_canonicalize): New var.
16886 (Fmap_keymap_internal): New fun.
16887 (describe_map): Use keymap-canonicalize.
16888
16889 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16890 (Fundo_boundary): Set them.
16891 (syms_of_undo): Initialize them.
16892 (record_point): Use them instead of last_point_position*.
16893 (last_undo_buffer): Change type.
16894
16895 2008-04-04 Jason Rumney <jasonr@gnu.org>
16896
16897 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16898 (recompute_cached_metrics): Don't set ascent and descent per char.
16899
16900 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16901 (uniscribe_check_otf): Add GC protection before consing.
16902 Rearrange loop for counting features.
16903
16904 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16905
16906 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16907 buffer with byte-size of source buffer.
16908
16909 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
16910
16911 * callint.c (Fcall_interactively): Handle temporary region even
16912 when shift-select-mode is off.
16913
16914 2008-04-03 Jason Rumney <jasonr@gnu.org>
16915
16916 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16917
16918 2008-04-03 Kenichi Handa <handa@m17n.org>
16919
16920 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16921 (CATEGORY_MASK_UTF_16): Likewise.
16922 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16923 binary file.
16924 (detect_coding): Add null-byte detection for a binary file.
16925 (detect_coding_system): Likewise.
16926
16927 2008-04-03 Jason Rumney <jasonr@gnu.org>
16928
16929 * w32uniscribe.c: New file.
16930
16931 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16932
16933 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16934
16935 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16936 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16937 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16938 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16939 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16940 (Qphonetic): New symbols.
16941 (syms_of_w32font): Initialize them.
16942 (font_supported_scripts): Use them.
16943 (w32font_list_family): List all charsets.
16944 (w32font_text_extents, recompute_cached_metrics): Fix metric
16945 calculations.
16946 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16947 Give opentype fonts their own format.
16948 (font_matches_spec): New arguments backend and logfont.
16949 Handle :otf spec for uniscribe backend.
16950 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16951 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16952
16953 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16954 font backend.
16955 (globals_of_w32fns): Initialize uniscribe font backend.
16956
16957 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16958 dependencies.
16959 (w32uniscribe.$(O)): New file to build.
16960 (FONT_OBJ): Include w32uniscribe.$(O).
16961 (LIBS): Add uniscribe libraries.
16962
16963 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16964
16965 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
16966
16967 * callint.c (Vshift_select_mode): New var.
16968 (Finteractive): Document new ^ spec.
16969 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16970 is present.
16971
16972 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16973 (command_loop_1): Avoid running the direct display versions of
16974 forward-char and backward-char if shift-selection may occur.
16975 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16976 shift-translation takes place.
16977
16978 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16979 avoid clobbering by define-minor-mode.
16980
16981 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16982 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16983
16984 * syntax.c (Fforward_word): Add ^ interactive spec.
16985
16986 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16987 (Fscroll_right): Add ^ interactive spec.
16988
16989 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16990
16991 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16992
16993 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16994
16995 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16996
16997 2008-03-31 Juri Linkov <juri@jurta.org>
16998
16999 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17000
17001 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17002
17003 * gtkutil.c (xg_set_geometry): Fix indentation.
17004 (xg_resize_outer_widget): Remove.
17005 (x_wm_size_hint_off): Fix indentation.
17006 (xg_frame_set_char_size): Call flush_and_sync after
17007 gtk_window_resize.
17008 (x_wm_set_size_hint): Pass NULL as geometry window to
17009 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17010 Add menu bar and tool bar height to base height.
17011 (xg_update_frame_menubar, free_frame_menubar)
17012 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17013 (update_frame_tool_bar, free_frame_tool_bar):
17014 Change xg_resize_outer_widget to xg_frame_set_char_size.
17015
17016 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
17017
17018 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17019 (Fdbus_call_method): New parameter TIMEOUT.
17020 (dbus-send-signal): Optimize UNGCPRO call.
17021
17022 2008-03-29 Juri Linkov <juri@jurta.org>
17023
17024 * window.c (Fdisplay_buffer): Move call to
17025 Vsplit_window_preferred_function out of conditions that check
17026 if window is eligible for vertical splitting.
17027 When Vsplit_window_preferred_function is non-nil, call it and use
17028 its non-nil return value as window. Otherwise, continue doing
17029 vertical splitting using Fsplit_window with arg horflag=nil.
17030 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17031 default value from `split-window' to nil.
17032
17033 2008-03-29 Juri Linkov <juri@jurta.org>
17034
17035 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17036 for interactive code letters 'b' and 'B'.
17037
17038 2008-03-29 Eli Zaretskii <eliz@gnu.org>
17039
17040 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17041 multibyte string.
17042
17043 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17044
17045 * keyboard.c (pending_funcalls): New var.
17046 (timer_check): Run it.
17047 (syms_of_keyboard): Initialize it.
17048 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17049 (Vdelete_terminal_functions): New vars.
17050 (syms_of_terminal): Initialize them.
17051 (Fdelete_terminal): Run delete-terminal-functions.
17052 * xdisp.c (safe_eval): Rewrite.
17053 (safe_call2): New fun.
17054 * frame.c (Qdelete_frame_functions): New var.
17055 (syms_of_frame): Initialize it.
17056 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17057 * lisp.h (safe_call2, pending_funcalls): Declare.
17058
17059 2008-03-28 Andreas Schwab <schwab@suse.de>
17060
17061 * indent.c (Fmove_to_column): Move declaration before statements.
17062
17063 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17064
17065 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17066 (struct frame): Use bit fields for boolean vars.
17067
17068 * process.c (server_accept_connection): Simplify naming.
17069 (emacs_get_tty_pgrp): Use SDATA.
17070
17071 * coding.c (decode_coding_object): Fix last change.
17072
17073 2008-03-27 Jason Rumney <jasonr@gnu.org>
17074
17075 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17076
17077 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17078
17079 * charset.c (Fdefine_charset_internal): Change the way of
17080 registering charsets in Vcharset_order_list.
17081 (syms_of_charset): Make the charset `eight-bit' supplementary.
17082
17083 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17084
17085 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17086 operations, to avoid having the difference between pointers
17087 overflow.
17088
17089 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17090
17091 * indent.c (check_display_width): New fun.
17092 (scan_for_column): Use it.
17093
17094 * data.c (syms_of_data): Mark most-positive-fixnum and
17095 most-negative-fixnum as constants.
17096
17097 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17098
17099 * indent.c (scan_for_column): Extract from current_column_1.
17100 Merge with the same code from Fmove_to_column.
17101 (current_column_1, Fmove_to_column): Use it.
17102
17103 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17104
17105 * keymap.c (map_keymap_internal): New fun.
17106 (map_keymap): Use it.
17107 (Fmap_keymap_internal): New fun.
17108 (Fmap_keymap): Remove left-out test from before make_save_value.
17109
17110 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17111
17112 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17113 Use XCAR/XCDR.
17114
17115 * process.h (struct Lisp_Process): Remove filter_multibyte.
17116 * process.c (QCfilter_multibyte): Remove.
17117 (setup_process_coding_systems): Don't use filter_multibyte.
17118 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17119 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17120 (Fset_process_filter_multibyte): Change the coding-system to
17121 approximate the previous behavior.
17122 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17123 coding-system.
17124
17125 * coding.c (decode_coding_object): When not decoding into a buffer,
17126 obey the coding system's preference of (uni|multi)byte.
17127
17128 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17129
17130 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17131 every char is changed and has a different byte-length.
17132 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17133 Fix int -> EMACS_INT.
17134
17135 2008-03-23 David Hansen <david.hansen@gmx.net>
17136
17137 * dbusbind.c (xd_read_message): Remove extra copying of message
17138 strings. Check for NULL `interface' or `member'.
17139
17140 2008-03-22 Eli Zaretskii <eliz@gnu.org>
17141
17142 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17143 cFileName a file name that includes `?' characters, use the 8+3
17144 alias in cAlternateFileName instead.
17145
17146 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17147
17148 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17149
17150 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17151
17152 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17153 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17154 work on current_buffer only instead (that was already the case
17155 for some of the code anyway).
17156 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17157 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17158 (SET_PT, SET_PT_BOTH): Adjust.
17159 * intervals.h (set_point, temp_set_point, set_point_both)
17160 (temp_set_point_both): Remove redundant declarations.
17161
17162 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17163
17164 * fileio.c (Finsert_file_contents):
17165 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17166 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17167 when buffer != current_buffer anyway.
17168
17169 2008-03-20 Andreas Schwab <schwab@suse.de>
17170
17171 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17172 as default.
17173
17174 2008-03-19 Jason Rumney <jasonr@gnu.org>
17175
17176 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17177 (syms_of_w32fns): Initialize them.
17178 (HOURGLASS_ID): New constant.
17179 (x_window_to_frame): Don't check hourglass_window.
17180 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17181 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17182 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17183 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17184 Only change the cursor if hourglass is not active.
17185 (Fx_create_frame): Initialize frame's current_cursor.
17186 (hourglass_atimer): Remove.
17187 (hourglass_started): New function.
17188 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17189 (show_hourglass): Adapt to w32, changing argument to frame.
17190
17191 * w32term.h (struct w32_output): Remove hourglass_window.
17192 Add current_cursor.
17193
17194 * eval.c (call_debugger, Fsignal):
17195 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17196 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17197 (Fexecute_extended_command, cancel_hourglass_unwind):
17198 * minibuf.c (read_minibuf):
17199 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17200
17201 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17202
17203 * window.c (run_funs): New fun.
17204 (run_window_configuration_change_hook): Use it to run the buffer-local
17205 and the global part of the hook.
17206
17207 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17208 (unwind_format_mode_line): Restore selected window.
17209 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17210
17211 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17212
17213 * editfns.c (Fchar_equal): Check they are valid characters.
17214
17215 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17216
17217 2008-03-17 Andreas Schwab <schwab@suse.de>
17218
17219 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17220 against a charset.
17221
17222 * lisp.h (Fbuffer_list): Declare.
17223
17224 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
17225
17226 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17227 handlebox_widget is != 0.
17228
17229 2008-03-16 Juri Linkov <juri@jurta.org>
17230
17231 * callint.c (Fcall_interactively): For interactive code letters
17232 'b' and 'B' put the buffer list into the list of default "future"
17233 values of the minibuffer.
17234
17235 2008-03-16 Andreas Schwab <schwab@suse.de>
17236
17237 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17238 modifiers.
17239
17240 * regex.c (re_match_2_internal): Correct matching of a charset
17241 against latin-1 characters.
17242
17243 2008-03-16 Kenichi Handa <handa@m17n.org>
17244
17245 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17246 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17247 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17248 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17249 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17250 CHAR_STRING_ADVANCE.
17251 (produce_chars): Fix for the case that the source and the
17252 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17253 instead of CHAR_STRING_ADVANCE.
17254 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17255 STRING_CHAR_ADVANCE.
17256
17257 2008-03-15 Andreas Schwab <schwab@suse.de>
17258
17259 * regex.c (re_match_2_internal): Correct matching of eight bit
17260 characters in unibyte strings.
17261
17262 2008-03-15 Martin Rudalics <rudalics@gmx.at>
17263
17264 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17265 at end of range when it coincides with the end of the buffer.
17266
17267 2008-03-14 Eli Zaretskii <eliz@gnu.org>
17268
17269 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17270
17271 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17272
17273 2008-03-14 Jason Rumney <jasonr@gnu.org>
17274
17275 * editfns.c (initial_tz): New variable.
17276 (syms_of_editfns): Initialize it.
17277 (Fset_time_zone_rule): Set it when first called.
17278 Use it when TZSTRING is nil.
17279
17280 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17281 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17282 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17283 (globals_of_w32fns): Initialize them.
17284 (compute_tip_xy): Use them to position tooltips.
17285
17286 2008-03-14 Glenn Morris <rgm@gnu.org>
17287
17288 * emacs.c (main): Revert previous change.
17289 (standard_args): Revert -internal-script back to -scriptload,
17290 and remove the long-option form.
17291
17292 2008-03-13 Glenn Morris <rgm@gnu.org>
17293
17294 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17295 Remove option -enable-font-backend.
17296
17297 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17298
17299 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17300
17301 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17302
17303 * xterm.c (x_connection_closed): For GTK: If this is the last
17304 terminal just exit without closing the display.
17305
17306 2008-03-11 Jason Rumney <jasonr@gnu.org>
17307
17308 * w32font.c (w32font_full_name): Use floor to round.
17309
17310 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17311
17312 * sound.c (alsa_configure): Declare vol at beginning of block.
17313
17314 * fontset.c (Ffontset_info): Remove extra semicolon.
17315
17316 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17317
17318 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17319 size of resulting string.
17320
17321 2008-03-10 Jason Rumney <jasonr@gnu.org>
17322
17323 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17324
17325 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17326
17327 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17328 Don't pretend as if characters with display property haven't been
17329 consumed for string-replacing-string case.
17330
17331 2008-03-08 Kim F. Storm <storm@cua.dk>
17332
17333 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17334 (get_next_display_element, next_element_from_string)
17335 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17336
17337 2008-03-08 Andreas Schwab <schwab@suse.de>
17338
17339 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17340
17341 2008-03-06 Jason Rumney <jasonr@gnu.org>
17342
17343 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17344 when charset not specified. Only translate ANSI to unicode when
17345 font_type is truetype.
17346 (w32font_coverage_ok): New function.
17347 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17348
17349 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17350
17351 * lread.c (Fread_char): Resolve modifiers.
17352 (Fread_char_exclusive): Likewise.
17353
17354 * character.c (char_resolve_modifier_mask): New function.
17355 (char_string): Use char_resolve_modifier_mask.
17356 (Fchar_resolve_modifiers): New function.
17357 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17358 function.
17359
17360 2008-03-04 Jason Rumney <jasonr@gnu.org>
17361
17362 * makefile.w32-in: Always include w32font.c in the build.
17363 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17364
17365 2008-03-04 Andreas Schwab <schwab@suse.de>
17366
17367 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17368 (versionclean): Likewise.
17369
17370 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
17371
17372 * .cvsignore: Add oo.
17373
17374 2008-03-03 Andreas Schwab <schwab@suse.de>
17375
17376 * coding.c (decode_coding_object): Inhibit gap shrinking while
17377 decoding in place.
17378
17379 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17380
17381 * w32term.c: Remove unused include "gnu.h".
17382 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17383
17384 * gnu.h: Rename to ...
17385 * emacs-icon.h: ... this.
17386 * xterm.c: Use emacs-icon.h instead of gnu.h.
17387 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17388
17389 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
17390
17391 * w32font.c: Include math.h.
17392
17393 2008-03-03 Jason Rumney <jasonr@gnu.org>
17394
17395 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17396 Compute options separately.
17397 (w32font_open_internal): Set glyph_idx before caching metrics.
17398
17399 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17400 Define if system headers don't.
17401 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17402 (w32font_encode_char): Don't declare here.
17403
17404 * w32font.c (Quniscribe, QCformat): New symbols.
17405 (syms_of_w32font): Define them.
17406 (w32font_has_char): Indicate uncertainty.
17407 (w32font_encode_char): Encode as glyph point. Make static.
17408 (recompute_cached_metrics): New function.
17409 (w32font_open_internal): Use it. Set font to use glyph points
17410 initially. Set format based on type of font.
17411 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17412 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17413 on it. Set format based on information available here.
17414 (add_font_entity_to_list): Identify backend based on opentype_only.
17415
17416 2008-03-02 Andreas Schwab <schwab@suse.de>
17417
17418 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17419
17420 * coding.c (decode_coding_big5, produce_chars):
17421 Fix typos in last change.
17422
17423 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17424
17425 * gnu.h: New icon.
17426
17427 2008-03-02 Kenichi Handa <handa@m17n.org>
17428
17429 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17430 `dos', don't decode '\r' if that is the last in the source.
17431 (decode_coding_utf_16, decode_coding_emacs_mule)
17432 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17433 (decode_coding_raw_text, decode_coding_charset): Likewise.
17434 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17435
17436 2008-03-01 Jason Rumney <jasonr@gnu.org>
17437
17438 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17439
17440 2008-03-01 Kim F. Storm <storm@cua.dk>
17441
17442 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17443
17444 2008-03-01 Jason Rumney <jasonr@gnu.org>
17445
17446 * w32font.c (w32font_full_name): New function.
17447 (w32font_open_internal): Use it.
17448
17449 2008-03-01 Kim F. Storm <storm@cua.dk>
17450
17451 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17452
17453 2008-03-01 Jason Rumney <jasonr@gnu.org>
17454
17455 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17456
17457 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17458
17459 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17460 xg_frame_resized when the event is for the edit widget.
17461
17462 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17463
17464 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17465 set_char_size.
17466 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17467 operations on widgets here. Just set frame size if needed.
17468 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17469 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17470 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17471 the whole frame.
17472 (xg_create_tool_bar): Move attachment of the tool bar to
17473 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17474 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17475
17476 2008-03-01 Jason Rumney <jasonr@gnu.org>
17477
17478 * w32fns.c (w32_msg_pump): Disable debug code.
17479
17480 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17481
17482 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17483
17484 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17485
17486 * xdisp.c (next_overlay_string): Don't set
17487 overlay_strings_at_end_processed_p if we're currently reading from
17488 a display string.
17489
17490 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17491
17492 * xdisp.c (get_overlay_strings_1): Fix typo.
17493
17494 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17495
17496 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17497
17498 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17499
17500 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17501
17502 * xdisp.c (display_mode_element): Cancel the previous change.
17503 (decode_mode_spec): Likewise.
17504 (handle_auto_composed_prop): Don't make composition if it->string
17505 is a string.
17506
17507 2008-02-27 Kim F. Storm <storm@cua.dk>
17508
17509 * lisp.h (GLYPH): Change type from int to struct with separate char
17510 and face_id members.
17511 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17512 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17513 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17514 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17515 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17516 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17517 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17518 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17519 handle new Lisp glyph code encoding, either an integer or a cons.
17520
17521 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17522 (GLYPH_ALIAS): Delete.
17523 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17524 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17525 (GLYPH_FROM_CHAR): Replace macro by ...
17526 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17527
17528 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17529 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17530 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17531 (GLYPH_INVALID_P): New macro.
17532 (spec_glyph_lookup_face): Update prototype.
17533
17534 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17535 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17536 new glyph code encoding.
17537 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17538 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17539
17540 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17541 Adapt to new glyph type and new glyph code encoding.
17542
17543 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17544
17545 * indent.c (current_column, current_column_1, Fmove_to_column)
17546 (compute_motion): Adapt to new glyph code encoding.
17547
17548 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17549
17550 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
17551
17552 * process.c (wait_reading_process_output): Check for window
17553 changes caused by timers.
17554 Suggested by Johan Bockgård.
17555
17556 2008-02-27 Glenn Morris <rgm@gnu.org>
17557
17558 * emacs.c (USAGE1): Add `--disable-font-backend'.
17559
17560 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17561
17562 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17563 is made to the buffer.
17564
17565 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17566
17567 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17568 (face_at_string_position):
17569 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17570 (face_at_string_position):
17571 * xdisp.c (display_string, next_overlay_change):
17572 * buffer.h (overlays_at):
17573 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17574 Update callers.
17575
17576 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
17577
17578 * editfns.c (Fformat): Doc fix.
17579
17580 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
17581
17582 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17583 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17584 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17585
17586 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17587
17588 * buffer.c (Fbuffer_swap_text): New function.
17589 (syms_of_buffer): Defsubr it.
17590
17591 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
17592
17593 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17594
17595 2008-02-25 Jason Rumney <jasonr@gnu.org>
17596
17597 * w32font.c (w32font_draw): Draw one character at a time when padding.
17598
17599 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17600
17601 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17602 Handle a nil arg. Use run_window_configuration_change_hook.
17603 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17604 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17605 Use run_window_configuration_change_hook.
17606
17607 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17608
17609 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17610 1-pixel width.
17611
17612 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17613
17614 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17615 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17616 if the glyph in the font is zero pixel with.
17617
17618 * dispextern.h (struct glyph_string): New member padding_p.
17619
17620 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17621
17622 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17623
17624 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17625
17626 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17627
17628 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17629
17630 2008-02-25 Jason Rumney <jasonr@gnu.org>
17631
17632 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17633
17634 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17635
17636 Allow fine-grained image-cache flushing.
17637 * dispextern.h (struct image): Add `dependencies' field.
17638 (clear_image_caches): Change arg to Lisp_Object.
17639 * image.c (make_image): Initialize `dependencies' field.
17640 (clear_image_cache): Change arg to allow fine-grained flushing.
17641 Perform the flush even if image-cache-eviction-delay is nil.
17642 (clear_image_caches): Change arg to Lisp_Object.
17643 (Fclear_image_cache): Expand meaning of the argument.
17644 (mark_image): Mark `dependencies' field.
17645 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17646 (lface_hash): Use XHASH rather than XFASTINT.
17647 (face_at_buffer_position): Fix int -> EMACS_INT position.
17648 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17649 (select_frame_for_redisplay): Remove code duplication.
17650 (redisplay_internal): Adapt arg to call to clear_image_caches.
17651
17652 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17653
17654 * s/vms4-0.h:
17655 * s/vms4-2.h:
17656 * s/vms4-4.h:
17657 * s/vms5-5.h: Remove, unused.
17658
17659 * s/irix5-2.h:
17660 * s/irix6-0.h:
17661 * s/riscos5.h:
17662 * s/mach-bsd4-3.h:
17663 * m/mips4.h: Remove files for obsolete systems.
17664
17665 * Makefile.in:
17666 * filelock.c:
17667 * unexmips.c:
17668 * m/hp9000s300.h:
17669 * m/iris4d.h:
17670 * s/aix3-1.h:
17671 * s/hpux.h:
17672 * s/msdos.h:
17673 * s/usg5-0.h:
17674 * s/usg5-2-2.h:
17675 * s/usg5-2.h:
17676 * s/usg5-3.h: Remove references to obsolete variables.
17677
17678 * s/irix5-0.h: Remove, move all the contents ...
17679 * s/irix6-5.h: ... here. Simplify.
17680 * config.in: Regenerate.
17681
17682 2008-02-24 Jason Rumney <jasonr@gnu.org>
17683
17684 * w32term.c (x_draw_glyph_string_background): Clear the background
17685 manually when cleartype is in use.
17686 (x_draw_glyph_string_foreground): Draw text transparently when
17687 cleartype is in use.
17688
17689 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17690 a font into it unless we have to.
17691
17692 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17693
17694 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17695 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
17696
17697 2008-02-18 Jason Rumney <jasonr@gnu.org>
17698
17699 * w32fns.c (Fw32_shell_execute): Encode parameters.
17700
17701 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17702
17703 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17704
17705 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
17706
17707 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17708
17709 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17710
17711 * xterm.c (x_set_offset): Don't change the gravity if
17712 CHANGE_GRAVITY is -1.
17713
17714 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
17715
17716 * fileio.c (auto_save_error_occurred): New var.
17717 (auto_save_error): Set it.
17718 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17719 error occurred.
17720
17721 2008-02-23 Eli Zaretskii <eliz@gnu.org>
17722
17723 * w32.c (globals_of_w32): Add initializations for
17724 g_b_init_get_sid_sub_authority and
17725 g_b_init_get_sid_sub_authority_count.
17726
17727 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17728
17729 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17730 (font_parse_xlfd): Use them for sanity check.
17731 (Finternal_set_font_style_table): Make sure the table is bijective.
17732
17733 Consolidate the image_cache to the terminal struct.
17734 * termhooks.h (P_): Remove redundant def.
17735 (struct terminal): New field `image_cache'.
17736 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17737 of FRAME_X_IMAGE_CACHE.
17738 * xterm.h (struct x_display_info): Remove image_cache field.
17739 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17740 * w32term.h (struct w32_display_info): Remove image_cache field.
17741 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17742 * macterm.h (struct mac_display_info): Remove image_cache field.
17743 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17744 * xterm.c (x_term_init):
17745 * w32term.c (w32_term_init):
17746 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17747 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17748 Remove declarations.
17749 (clear_image_caches, mark_image_cache): New declarations.
17750 * xfaces.c (clear_face_cache):
17751 * xdisp.c (redisplay_internal): Use clear_image_caches.
17752 * image.c (clear_image_cache): Don't check that a frame is on
17753 a window-system before checking if it shares the same cache.
17754 (clear_image_caches): New function.
17755 (Fclear_image_cache): Use it.
17756 (mark_image): Move from allo.c.
17757 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17758 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17759 (mark_object): Don't call mark_image_cache for frames.
17760 (mark_terminals): Call mark_image_cache.
17761
17762 * lisp.h (Fdelete_terminal): Declare.
17763
17764 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17765 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17766 wrong_type_argument.
17767
17768 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17769
17770 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17771 malayalam.el, and tamil.el. Add sinhala.el.
17772
17773 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17774
17775 * xterm.c (x_connection_closed): Consolidate identical tests.
17776 (x_delete_terminal): Don't crash if called via x_connection_closed.
17777
17778 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17779
17780 * xdisp.c (decode_mode_spec): New arg string.
17781 (display_mode_element): Adjust for the above change.
17782
17783 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17784
17785 * callint.c (Fcall_interactively): Use AREF.
17786
17787 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17788
17789 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17790
17791 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17792
17793 * xfns.c (Fx_show_tip): Set string to " " if empty.
17794
17795 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17796
17797 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17798 with Qt.
17799
17800 2008-02-17 Kenichi Handa <handa@m17n.org>
17801
17802 * ftfont.c (ftfont_shape): Return Lispy number.
17803
17804 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17805 for GCs.
17806 (Finternal_set_font_selection_order): Call font_update_sort_order
17807 only when enable_font_backend is set.
17808 (realize_x_face): Set face->font_info to that of default face only
17809 when enable_font_backend is set.
17810
17811 * xdisp.c (handle_composition_prop): Set it->c to the fist
17812 character of the composed region.
17813 (fill_composite_glyph_string): Set base_face->font_info to
17814 s->font_info. Get a face for ascii from base_face->ascii_face.
17815 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17816 with a face already decided.
17817 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17818 non-negative.
17819 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17820 call font_prepare_composition unconditionally.
17821
17822 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17823
17824 * xterm.h (struct x_display_info): New member font.
17825
17826 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17827 (x_set_mouse_face_gc, x_new_font): Likewise.
17828 (x_term_init): Setup display_info->font.
17829 (x_delete_terminal): Free display_info->font.
17830
17831 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17832
17833 * ftxfont.c (ftxfont_default_fid): Delete it.
17834 (ftxfont_open): Set xfont->fid to 0.
17835 (ftxfont_end_for_frame): Clear data specific to the frame and the
17836 font-driver.
17837
17838 * xftfont.c (xftfont_default_fid): Delete it.
17839 (xftfont_open): Set xfont->fid to 0.
17840
17841 * fontset.c (FONTSET_OBJLIST): New macro.
17842 (fontset_find_font): Update font-object list of the fontset.
17843 (free_realized_fontset): New function.
17844 (free_face_fontset): Call free_realized_fontset.
17845 (Ffont_info): Call font_close_object only when enable_font_backend
17846 is set.
17847
17848 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17849 [HAVE_NTGUI]: Include w32term.h.
17850 [MAC_OS]: Include macterm.ch.
17851 (font_otf_ValueRecord): Use make_number.
17852 (font_finish_cache): Fix handling of reference count.
17853 (font_clear_cache): Update num_fonts.
17854 (font_open_entity): Update smallest_char_width and
17855 smallest_font_height of the frame.
17856 (font_close_object): Update num_fonts.
17857 (Fclear_font_cache): Fix finding the target cache data.
17858
17859 2008-02-16 Glenn Morris <rgm@gnu.org>
17860
17861 * fontset.c (Finternal_char_font): Fix compilation warning.
17862
17863 2008-02-16 Eli Zaretskii <eliz@gnu.org>
17864
17865 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17866 instead of char arrays. Enlarge the size of array passed to
17867 get_token_information.
17868
17869 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17870 warnings.
17871
17872 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17873
17874 * .gdbinit: Don't set `args', it breaks gdb --args.
17875
17876 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17877
17878 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17879 within a narrowed buffer.
17880
17881 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17882
17883 * coding.c (decode_coding_object, encode_coding_object):
17884 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17885
17886 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17887
17888 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17889 hardcoding 1.
17890 (detect_coding_system):
17891 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17892 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17893 * insdel.c (insert_from_gap):
17894 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17895 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17896 (string_to_multibyte):
17897 * character.c (chars_in_text, multibyte_chars_in_text):
17898 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17899
17900 * character.h (FETCH_STRING_CHAR_ADVANCE)
17901 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17902 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17903 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17904
17905 * casefiddle.c (casify_region): Only call after-change and composition
17906 functions on the part of the region that was changed.
17907
17908 * keyboard.c (read_avail_input):
17909 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17910
17911 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17912
17913 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17914 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17915
17916 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
17917
17918 * w32menu.c (push_submenu_start, push_submenu_end)
17919 (push_left_right_boundary, push_menu_pane, push_menu_item):
17920 * keyboard.c (read_key_sequence): Don't pass args with side effects
17921 to AREF, it fails when compiling with -DENABLE_CHECKING.
17922
17923 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17924
17925 * Makefile.in (${lispsource}international/charprop.el):
17926 Delete this target.
17927
17928 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17929 emacs-unicode-2.
17930
17931 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17932
17933 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17934
17935 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17936
17937 * frame.c (Qnoelisp): New symbol.
17938 (syms_of_frame): Initialize it.
17939 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17940 harmless Elisp code, from a strong `force' from x_connection_closed.
17941 * frame.h (Qnoelisp): Declare.
17942 * xterm.c (x_connection_closed): Pass `noelisp'.
17943
17944 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17945 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17946 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17947 rather than `int' for the type of `type'.
17948
17949 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17950
17951 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17952
17953 * Makefile.in (GNUC): Remove support for gcc-1.x.
17954
17955 2008-02-10 Richard Stallman <rms@gnu.org>
17956
17957 * lisp.h (ASET): Use AREF, not ASLOT.
17958
17959 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17960
17961 * lisp.h (ASET): Check bounds.
17962
17963 2008-02-10 Glenn Morris <rgm@gnu.org>
17964
17965 * buffer.c (mode-name): Doc fix.
17966
17967 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17968
17969 * Makefile.in:
17970 * emacs.c:
17971 * gmalloc.c:
17972 * keyboard.c:
17973 * lisp.h:
17974 * m/ibm370aix.h:
17975 * process.c:
17976 * regex.c:
17977 * s/hpux.h:
17978 * sysdep.c:
17979 * sysselect.h:
17980 * systty.h:
17981 * unexec.c:
17982 * w32term.c:
17983 * xsmfns.c:
17984 * xterm.c: Remove code that deals with obsolete variables.
17985
17986 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17987
17988 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17989 nothing else needs it anymore.
17990
17991 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17992
17993 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17994 instead of unibyte_char_to_multibyte.
17995
17996 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17997
17998 * s/gnu-linux.h: Remove commented out code.
17999
18000 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18001
18002 * Makefile.in: Update what RMS says about using autoconf.
18003 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18004 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18005 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18006 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18007
18008 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18009
18010 * keymap.c (Fkey_description): Move side effect outside of macro call.
18011
18012 * xfaces.c (Finternal_make_lisp_face):
18013 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18014
18015 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18016 (syms_of_fontset): Use ASET.
18017
18018 * fns.c (concat): Move side effect outside of macro call.
18019 (hash_clear): Use ASET.
18020
18021 2008-02-08 Richard Stallman <rms@gnu.org>
18022
18023 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18024 If FORCE, and frame has a surrogate minibuffer for another frame,
18025 delete the other frame first.
18026
18027 2008-02-07 Timo Savola <timo.savola@iki.fi>
18028
18029 * xterm.c (x_detect_focus_change): Handle embed client message.
18030 (handle_one_xevent): Ditto.
18031 (handle_one_xevent): If embedded and we get a button press/release,
18032 request focus.
18033 (xembed_set_info, xembed_send_message): New functions.
18034 (x_make_frame_visible): Call xembed_set_info if embedded.
18035 (x_make_frame_invisible): Call xembed_set_info if embedded.
18036 (x_term_init): Initialize Xatom_XEMBED.
18037 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18038 (x_iconify_frame): Ditto.
18039
18040 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18041 (enum xembed_info, enum xembed_message, enum xembed_focus)
18042 (enum xembed_modifier, enum xembed_accelerator): New.
18043 (xembed_set_info, xembed_send_message): Declare.
18044 (FRAME_X_EMBEDDED_P): New.
18045
18046 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18047 gtk_plug_new.
18048
18049 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18050 window ID of a frame.
18051 (x_window): Reparent frame if embedded.
18052 (Fx_create_frame): Don't set border width if embedded.
18053
18054 * emacs.c (USAGE3): Add --parent-id.
18055 (standard_args): Ditto.
18056
18057 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18058
18059 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18060
18061 2008-02-07 Jim Meyering <meyering@redhat.com>
18062
18063 Use "do...while (0)", not "if (1)...else" in macro definitions.
18064 The latter provokes a warning from gcc about the empty else, when
18065 followed by ";". Also, without that trailing semicolon, it would
18066 silently swallow up any following statement.
18067 * syntax.h (SETUP_SYNTAX_TABLE)
18068 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18069 * buffer.h (DECODE_POSITION): Likewise.
18070 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18071 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18072 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18073 (FETCH_CHAR_ADVANCE): Likewise.
18074 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18075
18076 2008-02-07 Jim Meyering <meyering@redhat.com>
18077
18078 * lread.c [lint]: Don't include <sys/inode.h>.
18079
18080 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18081
18082 * xselect.c (x_handle_dnd_message):
18083 * xmenu.c (digest_single_submenu, xmenu_show):
18084 * xdisp.c (with_echo_area_buffer_unwind_data)
18085 (format_mode_line_unwind_data, unwind_format_mode_line)
18086 (display_menu_bar):
18087 * eval.c (Ffetch_bytecode):
18088 * doc.c (store_function_docstring):
18089 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18090 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18091 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18092
18093 2008-02-07 Kenichi Handa <handa@m17n.org>
18094
18095 * ftxfont.c (ftxfont_open): Don't set
18096 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18097
18098 * ftfont.c (ftfont_open): Fix previous change.
18099
18100 2008-02-06 Jason Rumney <jasonr@gnu.org>
18101
18102 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18103 Use cached metrics for ASCII characters.
18104 (w32font_open_internal): Don't set font's owning_frame.
18105 Cache metrics for ASCII characters.
18106
18107 * w32font.h (struct w32font_info): Add ascii_metrics.
18108 Remove owning_frame.
18109
18110 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18111
18112 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18113 to negative value.
18114
18115 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18116
18117 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18118
18119 * charset.c (syms_of_charset): Set QCtest and Qeq.
18120
18121 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18122
18123 * process.c (Fstart_process):
18124 * callproc.c (Fcall_process): Handle the case where
18125 Funhandled_file_name_directory returns nil.
18126
18127 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18128 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18129 * font.c (check_gstring): Use them and AREF to access the vector before
18130 we know it's really a gstring.
18131 (Ffont_shape_text): Fix typo.
18132 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
18133
18134 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18135 Declare.
18136
18137 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18138
18139 2008-02-05 Jason Rumney <jasonr@gnu.org>
18140
18141 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18142 Set smallest_font_height and smallest_char_width in display info.
18143
18144 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18145
18146 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18147
18148 2008-02-05 Miles Bader <miles@gnu.org>
18149
18150 * xfaces.c (get_lface_attributes, merge_named_face)
18151 (lookup_named_face, lookup_derived_face, realize_named_face):
18152 Revert 2008-02-01 change by cyd@stupidchicken.com.
18153
18154 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18155
18156 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18157 fallback fonts.
18158 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18159
18160 2008-02-04 Jason Rumney <jasonr@gnu.org>
18161
18162 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18163 set full_name.
18164 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18165
18166 2008-02-03 Jason Rumney <jasonr@gnu.org>
18167
18168 * makefile.w32-in (OBJ1): Include font.o here.
18169 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18170
18171 2008-02-02 Jason Rumney <jasonr@gnu.org>
18172
18173 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18174
18175 2008-02-01 Jason Rumney <jasonr@gnu.org>
18176
18177 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18178
18179 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18180
18181 2008-02-01 Andreas Schwab <schwab@suse.de>
18182
18183 * Makefile.in (shortlisp, lisp): Update for rename of
18184 ../lisp/language/myanmar.el.
18185
18186 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
18187
18188 * xfaces.c (get_lface_attributes): Delete function.
18189 (merge_named_face, lookup_named_face, lookup_derived_face)
18190 (realize_named_face): Call lface_from_face_name directly, and use
18191 the fact that merge_face_vectors does not alter its FROM argument.
18192
18193 2008-02-01 Jason Rumney <jasonr@gnu.org>
18194
18195 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18196 input in the default locale. Handle non-Unicode multibyte input.
18197
18198 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18199
18200 * fontset.c (reorder_font_vector): Exclude nil elements from the
18201 font group. Don't try multiple fonts.
18202 (fontset_font): Adjust for the above change.
18203 (Finternal_char_font): Return nil if the found font doesn't
18204 contain the character ch.
18205
18206 * Makefile.in (lisp, shortlisp): Add cham.el.
18207
18208 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18209
18210 * font.h (FONTP): Make it return 1 also for a font-object.
18211
18212 * .gdbinit (xfontset): New function.
18213
18214 * font.c (font_find_for_lface): Check if the character C is
18215 supported or not only for the first font.
18216
18217 * fontset.c (reorder_font_vector): Fix typo.
18218 (fontset_find_font): Don't add a font-spec specifying a script.
18219 Use 0 (not Qt) for the indication of empty font-group. Change the
18220 format of RFONT-DEF. Return Qt if no font in the font-group
18221 support the character.
18222 (fontset_font): Adjust for the above change. If no font was
18223 found the character, remember that.
18224 (face_for_char): Adjust for the change of RFONT-DEF.
18225 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18226 no font for the target.
18227 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18228
18229 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18230
18231 * font.c (font_load_for_face): Handle the case that the font in
18232 face->lface is a string.
18233
18234 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18235
18236 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18237
18238 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18239
18240 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18241 Fix previous change. If the frame is not on a window system,
18242 signal an error.
18243
18244 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18245
18246 * coding.c (decode_coding_object, encode_coding_object): Adjust
18247 marker positions after conversion.
18248
18249 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18250
18251 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18252
18253 * font.c (font_find_for_lface): Fix the handling of the return
18254 value of font_has_char.
18255 (Ffont_shape_text): Fix previous change.
18256
18257 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18258 (fontset_ref_and_range): Delete it.
18259 (fontset_find_font): Call char_table_ref_and_range instead of
18260 FONTSET_REF_AND_RANGE.
18261 (make_fontset): Don't setup font groups of Latin here.
18262 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18263 (new_fontset_from_font): Make the specified font the default for
18264 all Latin characters.
18265
18266 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18267
18268 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18269 is on a window system before accessing the fontset of the frame.
18270
18271 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18272
18273 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18274
18275 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18276 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18277
18278 * font.c (Ffont_shape_text): If the font driver doesn't have a
18279 shaper function, make zero-width glyphs to have at least one-pixel
18280 width. Fix setting of `to' field of glyphs.
18281
18282 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18283
18284 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18285 glyphs.
18286
18287 * font.h (struct font_driver): Improve docstring of member `shape'.
18288
18289 2008-02-01 Kenichi Handa <handa@m17n.org>
18290
18291 * composite.c (syms_of_composite): Fix docstring of
18292 auto-composition-function.
18293
18294 * font.h (LGLYPH_SIZE): New macro.
18295
18296 * font.c (Ffont_fill_gstring): Stop filling when a character not
18297 supported by the font is found.
18298 (Ffont_shape_text): When a shape callback function returns nil,
18299 try at most two more times with larger gstring.
18300 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18301
18302 * xdisp.c (handle_auto_composed_prop): Change the argument to
18303 auto-composition-function.
18304
18305 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18306 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18307 Lispy glyph and store it in the lgstring.
18308
18309 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18310
18311 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18312
18313 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18314
18315 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18316
18317 * fontset.c (Vfont_encoding_charset_alist): New variable.
18318 (syms_of_fontset): DEFVAR it.
18319 (reorder_font_vector, fontset_find_font): Optimize for the case of
18320 no need of reordering.
18321 (face_for_char): Map the charset property by
18322 Vfont_encoding_charset_alist.
18323
18324 2008-02-01 Jason Rumney <jasonr@gnu.org>
18325
18326 * w32font.c (logfonts_match): Don't check adstyle here.
18327 (font_matches_spec): Check here against physical font instead.
18328 (add_font_entity_to_list): Avoid some substitutions.
18329
18330 * font.c (font_parse_fcname): Default weight and slant to normal.
18331 (font_score): Prefer normal fonts if weight or slant unspecified.
18332 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18333 match freetype scores.
18334
18335 2008-02-01 Jason Rumney <jasonr@gnu.org>
18336
18337 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18338 font, as it may have been deleted.
18339 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18340 most common hyphenless variation.
18341 (logfonts_match): Check generic family.
18342 (font_matches_spec): Don't check generic family here.
18343 (fill_in_logfont): Set generic family based on adstyle.
18344
18345 * w32font.h (w32font_get_cache): Update declaration.
18346
18347 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18348
18349 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18350
18351 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18352 If none of the new drivers are available, call font_update_drivers
18353 with the old drivers.
18354
18355 * w32font.c (w32font_get_cache): Adjust the argument type.
18356
18357 * xfont.c (xfont_get_cache): Adjust the argument type.
18358
18359 * font.h (struct font_driver): Change argument type of get_cache.
18360
18361 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18362
18363 * font.c (Ffont_get): Fix arguments to Fassoc.
18364 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18365 (font_clear_cache): New function.
18366 (font_list_entities, font_matching_entity): Use font_get_cache.
18367 (font_update_drivers): Call font_clear_cache when finishing a driver.
18368
18369 * fontset.c (fontset_find_font): Fix previous change.
18370
18371 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18372
18373 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18374 dpyinfo->font_table.
18375 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18376 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18377
18378 * font.c (font_at): Handle the case that the arg C is negative.
18379 Handle the unibyte case.
18380 (Ffont_at): Call font_at with the arg C -1.
18381
18382 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18383 the position here, and call font_at with the arg C -1.
18384 Don't check the range of the existing composition at the point.
18385
18386 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18387
18388 * fontset.c (fontset_add): New args charset_id and family.
18389 Change caller.
18390 (load_font_get_repertory, fontset_find_font): Assume that
18391 font_spec is always a font-spec object.
18392 (Fset_fontset_font): Always store a font-spec object in a fontset.
18393
18394 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18395 instead of get_property_and_range.
18396
18397 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18398
18399 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18400 (xftfont_open): Don't keep locking face.
18401 (xftfont_close): Don't unlock face.
18402 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18403
18404 * fontset.c (fontset_find_font): Don't prefer a font of
18405 supplementary charset.
18406
18407 2008-02-01 Kenichi Handa <handa@m17n.org>
18408
18409 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18410 script, langsys_tag to langsys, new member script.
18411 (OTF_TAG_STR): Terminate by '\0'.
18412 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
18413 listing to the script specified in that property. Fix arg to
18414 OTF_check_features.
18415
18416 2008-02-01 Jason Rumney <jasonr@gnu.org>
18417
18418 * w32font.h: New file.
18419
18420 * w32font.c: Include it.
18421 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18422 (w32font_open): Set owning_frame.
18423 (w32font_text_extents): Use owning_frame.
18424 (struct font_callback_data): Add opentype_only field.
18425 (add_font_entity_to_list): Use it to filter fonts.
18426 Don't check against full name.
18427 (w32font_list_internal): New function.
18428 (w32font_list): Use it.
18429 (w32font_match_internal): New function.
18430 (w32font_match): Use it.
18431 (w32font_open_internal): New function.
18432 (w32font_open): Use it.
18433 (w32font_get_cache, w32font_close, w32font_has_char)
18434 (w32font_encode_char, w32font_text_extents, w32font_draw):
18435 Make non-static.
18436
18437 * makefile.w32-in (w32font.o): Depend on w32font.h.
18438
18439 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18440
18441 * charset.c (Fdefine_charset_internal): Record a supplementary
18442 charset at the tail of Vcharset_order_list.
18443
18444 * font.c (Ffont_shape_text): Fix the return value.
18445
18446 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18447
18448 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18449
18450 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18451
18452 * ftfont.c (struct OpenTypeSpec): New struct.
18453 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18454 (ftfont_get_open_type_spec): New function.
18455 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18456
18457 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18458
18459 2008-02-01 Jason Rumney <jasonr@gnu.org>
18460
18461 * w32font.c (add_font_entity_to_list): Compare only the beginning
18462 of full name.
18463
18464 2008-02-01 Kenichi Handa <handa@m17n.org>
18465
18466 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18467 Never return HANDLED_RECOMPUTE_PROPS.
18468
18469 2008-02-01 Kenichi Handa <handa@m17n.org>
18470
18471 * font.c (font_gstring_produce): Delete it.
18472
18473 * composite.h (COMPOSITION_METHOD):
18474 Handle COMPOSITION_WITH_GLYPH_STRING.
18475
18476 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18477
18478 * xfont.c (Qx): Delete.
18479 (syms_of_xfont): Don't initialize Qx.
18480
18481 * composite.h (enum composition_method):
18482 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18483
18484 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18485
18486 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18487 (choose_face_font): Accept new form of font-spec.
18488
18489 * frame.h (font_driver_list): Declare it unconditionally.
18490 (struct frame): Define members font_driver_list and font_data_list
18491 unconditionally.
18492
18493 * fontset.c: Include "font.h" unconditionally.
18494 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18495 (Fset_fontset_font): Accept a font-spec object.
18496
18497 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18498 PIXEL_SIZE part a wild card.
18499
18500 * dispextern.h (struct glyph_string): Define members clip and
18501 num_clips unconditionally.
18502 (struct face): Define members font_info and extra unconditionally.
18503
18504 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18505 ftfont_info only when HAVE_LIBOTF is defined.
18506
18507 2008-02-01 Andreas Schwab <schwab@suse.de>
18508
18509 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18510 and end.
18511
18512 2008-02-01 Jason Rumney <jasonr@gnu.org>
18513
18514 * w32font.c (w32font_driver): Add new fields.
18515
18516 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18517
18518 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18519 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18520 (LIBES): Add @M17N_FLT_CFLAGS@.
18521
18522 * composite.c (compose_text): Don't treat the new style
18523 composition specially.
18524
18525 * emacs.c (main): Call syms_of_font unconditionally.
18526
18527 * font.h (FONT_ENTITY_NOT_LOADABLE)
18528 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18529 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18530 (struct font_driver): New member shape.
18531 (font_registry_charsets): Extern it.
18532 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18533 (font_otf_capability, font_drive_otf): Delete their externs.
18534
18535 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18536 (font_charset_alist, font_registry_charsets): Move from xfont.c
18537 and rename.
18538 (font_prop_validate_otf): New function.
18539 (font_property_table): Register it for QCotf.
18540 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18541 (font_drive_otf): Delete.
18542 (font_prepare_composition): New arg F. Adjust for the change of
18543 lispy gstring.
18544 (font_find_for_lface): New arg C.
18545 (font_load_for_face): Adjust for the change of font_find_for_lface.
18546 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18547 lispy gstring.
18548 (Ffont_shape_text): New function.
18549 (Fopen_font): If the font size is not given, use 12-pixel.
18550 (Ffont_at): New arg STRING.
18551 (syms_of_font): Initalize font_charset_alist.
18552 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18553 conditionally.
18554
18555 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18556 fonts of the same font-spec. Change the format of RFONT-DEF.
18557 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18558 Adjust for the change of RFONT-DEF.
18559 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18560
18561 * ftfont.h: New file.
18562
18563 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18564 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18565 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18566 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18567 font_otf_capability and font_drive_otf, set ftfont_shape.
18568 (ftfont_list): Adjust for the change of :otf property value.
18569 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18570 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18571 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18572 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18573 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18574 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18575
18576 * w32term.c (x_draw_composite_glyph_string_foreground):
18577 Adjust for the change of lispy gstring.
18578
18579 * xdisp.c (handle_composition_prop): Adjust for the change of
18580 lispy gstring. Call a function for auto-composition with the
18581 third arg it->window.
18582 (fill_composite_glyph_string): Adjust for the change of lispy string.
18583 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18584
18585 * xfaces.c (set_font_frame_param): Adjust for the change of
18586 font_find_for_lface.
18587
18588 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18589 (xfont_registry_charsets): Likewise. Change caller.
18590 (syms_of_xfont): Don't handle x_font_charset_alist.
18591
18592 * xftfont.c: Include "ftfont.h".
18593 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18594 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18595 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18596 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18597 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18598 Set xftfont_driver.shape to xftfont_shape.
18599
18600 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18601 the change of lispy gstring.
18602
18603 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18604
18605 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18606
18607 2008-02-01 Jason Rumney <jasonr@gnu.org>
18608
18609 * w32font.c (w32font_draw): Fill background manually.
18610
18611 2008-02-01 Jason Rumney <jasonr@gnu.org>
18612
18613 * font.c (Qfontp): Remove unused symbol.
18614 (QCantialias): New symbol.
18615 (syms_of_font): Define it.
18616 (font_property_table): Set a validator for QCantialias.
18617
18618 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18619 Define if not already.
18620 (QCfamily): Share with xfaces.c.
18621 (Qstandard, Qsubpixel, Qnatural): New symbols.
18622 (syms_of_w32font): Define them. Don't define QCfamily here.
18623 (w32_antialias_type, lispy_antialias_type): New functions.
18624 (w32_enumfont_pattern_entity): New arg requested_font.
18625 Set antialias parameter if non-default was requested.
18626 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18627
18628 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18629
18630 * lread.c (read1): Undo the previous change.
18631
18632 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18633
18634 * frame.c (Fdelete_frame): Call font_update_drivers only when
18635 USE_FONT_BACKEND is defined.
18636
18637 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18638
18639 * font.h (struct font_bitmap): New member bits_per_pixel.
18640 (struct font_driver): New members start_for_frame and end_for_frame.
18641 (struct font_data_list): New struct.
18642 (font_put_frame_data, font_get_frame_data): Extern them.
18643
18644 * frame.h (struct frame): New member font_data_list.
18645
18646 * font.c (font_update_drivers): Call driver->start_for_frame and
18647 driver->end_for_frame at proper timings.
18648 (font_put_frame_data, font_get_frame_data): New functions.
18649 (Ffont_spec): Add usage in the docstring.
18650
18651 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18652 (Fdelete_frame): Call font_update_drivers.
18653
18654 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18655 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18656 (xftfont_get_xft_draw): New function.
18657 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18658 (xftfont_end_for_frame): New function.
18659 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18660
18661 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18662 Change argument. Cache GCs in the per-frame data.
18663 (struct ftxfont_frame_data): New struct.
18664 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18665 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18666 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18667 (ftxfont_end_for_frame): New function.
18668 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18669
18670 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18671
18672 2008-02-01 Kenichi Handa <handa@m17n.org>
18673
18674 * xselect.c (Vselection_coding_system)
18675 (Vnext_selection_coding_system): Delete them.
18676 (syms_of_xselect): Don't declare selection-coding-system and
18677 next-selection-coding-system. They are declared in select.el.
18678
18679 2008-02-01 Jason Rumney <jasonr@gnu.org>
18680
18681 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18682
18683 * w32fns.c: Include imm.h.
18684 (get_composition_string_fn, get_ime_context_fn): New optional
18685 system functions.
18686 (globals_of_w32fns): Load them from imm32.dll.
18687 (ignore_ime_char): New flag.
18688 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18689 WM_IME_ENDCOMPOSITION messages.
18690
18691 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18692 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18693
18694 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18695
18696 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18697 (READCHAR_REPORT_MULTIBYTE): New macro.
18698 (readchar): New 2nd arg MULTIBYTE.
18699 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18700 Make symbol's name multibyte according to the multibyteness of the
18701 source.
18702
18703 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18704
18705 * xfaces.c (face_for_overlay_string): Call lookup_face with
18706 correct arguments (fix of synching with the trunk).
18707
18708 2008-02-01 Kenichi Handa <handa@m17n.org>
18709
18710 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18711 (font_prop_validate_non_neg, font_prop_validate_spacing):
18712 Delete argument prop_index.
18713 (font_property_table): Change arguments to validater. Change Callers.
18714 (font_lispy_object): Delete.
18715 (font_at): Use font_find_object instead fo font_lispy_object.
18716
18717 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18718
18719 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18720 and file names.
18721
18722 2008-02-01 Jason Rumney <jasonr@gnu.org>
18723
18724 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18725 (font_matches_spec): Remove debug output.
18726 (add_font_entity_to_list): Avoid using substituted fonts.
18727
18728 2008-02-01 Jason Rumney <jasonr@gnu.org>
18729
18730 * doc.c (Fsnarf_documentation):
18731 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18732
18733 2008-02-01 Miles Bader <miles@gnu.org>
18734
18735 * dispextern.h (struct glyph_row): Only define "clip" field if
18736 HAVE_WINDOW_SYSTEM is defined.
18737
18738 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18739
18740 Fix up multi-tty merge.
18741
18742 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18743 and indentation.
18744
18745 * xfaces.c (free_realized_face, clear_face_gcs):
18746 Include font_done_for_face in the input_blocked section, just in case.
18747
18748 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18749 (get_char_face_and_encoding): Undo last change and remove the *other*
18750 duplicate definition (i.e. keep the one that's better scoped and that
18751 includes code for the font-backend).
18752
18753 * terminal.c (create_terminal): Default keyboard_coding to
18754 `no-conversion' and terminal_coding to `undecided'.
18755
18756 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18757
18758 * fontset.c (free_realized_fontsets): Check that the table entry does
18759 contain a fontset before trying to compare it to `base'.
18760
18761 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18762 syms_of_charset, and syms_of_coding earlier because init_window_once
18763 now needs Vcoding_system_hash_table to be setup.
18764
18765 * coding.h (default_buffer_file_coding): Remove.
18766
18767 * coding.c (default_buffer_file_coding): Remove.
18768 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18769 than ->symbol, and use the terminal-local coding system.
18770 (syms_of_coding): Don't setup the coding-systems that are not
18771 terminal-local.
18772 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18773
18774 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18775 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18776
18777 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18778 in chartab.c and were re-added here by mistake.
18779 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18780
18781 * doc.c (Fsnarf_documentation):
18782 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18783 src to etc.
18784
18785 * ChangeLog.10: Add mistakenly removed entry.
18786
18787 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18788
18789 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18790
18791 2008-02-01 Miles Bader <miles@gnu.org>
18792
18793 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18794 Add extra args to FACE_FOR_CHAR.
18795
18796 2008-02-01 Kenichi Handa <handa@m17n.org>
18797
18798 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18799 in sequence.
18800
18801 * chartab.c (map_sub_char_table, map_char_table): If the range
18802 contains just one character, call the function with that character
18803 even if the depth is not 3.
18804
18805 2008-02-01 Jason Rumney <jasonr@gnu.org>
18806
18807 * w32font.c (w32font_text_extents): Calculate metrics for the
18808 whole string.
18809
18810 2008-02-01 Jason Rumney <jasonr@gnu.org>
18811
18812 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18813
18814 2008-02-01 Jason Rumney <jasonr@gnu.org>
18815
18816 * w32term.c (x_set_glyph_string_clipping): Use
18817 get_glyph_string_clip_rects.
18818 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18819 Adjust for the change of struct glyph_string.
18820
18821 * w32font.c (w32font_draw): Do clipping here.
18822
18823 2008-02-01 Kenichi Handa <handa@m17n.org>
18824
18825 * xftfont.c (xftfont_draw): Adjust for the change of struct
18826 glyph_string.
18827
18828 * xterm.c (x_set_glyph_string_clipping): Use
18829 get_glyph_string_clip_rects.
18830 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18831 Adjust for the change of struct glyph_string.
18832
18833 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18834 the resulting clip(s}.
18835 (expose_overlaps): Add arg r. Change callers. Set it to
18836 row->clip temporarily.
18837 (expose_window): Redraw rows overlapping the exposed area.
18838
18839 * dispextern.h (struct glyph_row): New member clip.
18840 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18841 clip_height, new member clip, and num_clips.
18842
18843 2008-02-01 Kenichi Handa <handa@m17n.org>
18844
18845 * data.c (Fchar_or_string_p): Fix docstring.
18846
18847 2008-02-01 Kenichi Handa <handa@m17n.org>
18848
18849 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18850 create a temporary XftDraw object.
18851
18852 2008-02-01 Kenichi Handa <handa@m17n.org>
18853
18854 * font.c (Ffontp): Fix docstring.
18855
18856 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18857 strong evidence of ISO-2022.
18858
18859 2008-02-01 Kenichi Handa <handa@m17n.org>
18860
18861 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18862 SYNTAX_ENTRY_FOLLOW_PARENT.
18863
18864 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18865
18866 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18867 its type.
18868 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18869 Update to the new type of weak_hash_tables and next_weak.
18870
18871 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18872 a plain C pointer to Lisp_Hash_Table.
18873
18874 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18875 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18876 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18877 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18878 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18879 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18880 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18881 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18882 (GC_EQ): Remove since they've been identical to their non-GC_
18883 alter-egos ever since the markbit was eradicated.
18884
18885 * alloc.c:
18886 * buffer.c:
18887 * buffer.h:
18888 * data.c:
18889 * fileio.c:
18890 * filelock.c:
18891 * fns.c:
18892 * frame.h:
18893 * lisp.h:
18894 * macterm.c:
18895 * print.c:
18896 * process.c:
18897 * w32fns.c:
18898 * w32menu.c:
18899 * w32term.c:
18900 * xfns.c:
18901 * xmenu.c:
18902 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18903
18904 2008-02-01 Kenichi Handa <handa@m17n.org>
18905
18906 * chartab.c (map_sub_char_table): Make it work for the top-level
18907 char-table. Fix handling of parent char-table.
18908 (map_char_table): Adjust for the above change.
18909
18910 2008-02-01 Jason Rumney <jasonr@gnu.org>
18911
18912 * w32font.c (Qgdi): Rename from Qw32.
18913
18914 2008-02-01 Jason Rumney <jasonr@gnu.org>
18915
18916 * w32bdf.c (get_quoted_string): Make function static.
18917
18918 2008-02-01 Kenichi Handa <handa@m17n.org>
18919
18920 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18921 bigger ascent and descent than those of the font, use them as
18922 font's ascent and descent.
18923
18924 2008-02-01 Kenichi Handa <handa@m17n.org>
18925
18926 * Makefile.in (${lispsource}international/charprop.el): Move this
18927 target within "#ifdef HAVE_UNIDATA" and "#endif".
18928
18929 2008-02-01 Kenichi Handa <handa@m17n.org>
18930
18931 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18932 (shortlisp): Add ../lisp/language/tai-viet.el.
18933
18934 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
18935
18936 * Makefile.in (${lispsource}international/charprop.el): Depend on
18937 temacs${EXEEXT}.
18938
18939 2008-02-01 Jason Rumney <jasonr@gnu.org>
18940
18941 * w32font.c (w32font_close): Delete the GDI font object.
18942
18943 * w32menu.c: Include character.h.
18944
18945 * w32proc.c: Likewise.
18946
18947 * w32select.c: Likewise.
18948
18949 * makefile.w32-in (w32proc.o): Depend on character.h.
18950
18951 2008-02-01 Jason Rumney <jasonr@gnu.org>
18952
18953 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18954
18955 * w32menu.c (syms_of_w32menu): Likewise.
18956
18957 * w32proc.c (syms_of_ntproc): Likewise.
18958
18959 * w32select.c (syms_of_w32select): Likewise.
18960
18961 * w32term.c (syms_of_w32term): Likewise.
18962
18963 2008-02-01 Jason Rumney <jasonr@gnu.org>
18964
18965 * w32font.c (w32font_draw): Delete brush after using it.
18966
18967 2008-02-01 Jason Rumney <jasonr@gnu.org>
18968
18969 * w32font.c (w32font_open): Don't set font_idx.
18970 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18971 to font settings.
18972 (w32font_draw): Fill background explicitly.
18973
18974 2008-02-01 Jason Rumney <jasonr@gnu.org>
18975
18976 * w32term.c (w32_initialize): Don't call w32font_initialize.
18977
18978 * w32font.c (w32font_info): Remove subranges.
18979 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18980 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18981 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18982 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18983 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18984 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18985 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18986 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18987 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18988 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18989 New symbols.
18990 (font_callback_data): New struct.
18991 (w32font_list, w32font_match): Use it.
18992 (w32font_open): Don't populate subranges.
18993 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18994 (w32font_encode_char): Always return unicode code-point as-is.
18995 (w32font_text_extents): Supply a transformation matrix to
18996 GetGlyphOutline. Never look up by glyph index. Avoid looping
18997 twice. Use unicode version of GetTexExtentPoint32 instead of
18998 glyph index version.
18999 (set_fonts_frame): Remove.
19000 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19001 set frame parameter. Use backward compatible fake foundries.
19002 Save generic family in extra slot under QCfamily. Make width slot
19003 constant. Save QCspacing value. Save list of scripts instead of
19004 binary subranges.
19005 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19006 (add_font_entity_to_list): Use font_callback_data struct. Filter
19007 unwanted fonts.
19008 (add_one_font_entity_to_list): Use font_callback_data struct.
19009 (w32_registry): Default to iso10646_1.
19010 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19011 string font registries. Don't fill in font name if it is a generic
19012 family name, fill family instead. Use spacing, family and script
19013 extra info to fill pitch, family and charset fields.
19014 (list_all_matching_fonts): Use font_callback_data struct.
19015 (unicode_range_for_char): Remove.
19016 (font_supported_scripts): New function.
19017 (w32font_initialize): Remove.
19018 (syms_of_w32font): Update which symbols are defined.
19019
19020 2008-02-01 Jason Rumney <jasonr@gnu.org>
19021
19022 * font.c (font_pixel_size): Reverse assq_no_quit args.
19023
19024 * w32term.h (FONT_WIDTH): Report max width, not average.
19025 (FONT_MAX_WIDTH): Remove.
19026 (FONT_AVG_WIDTH): New macro.
19027
19028 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19029 redefinition of FONT_WIDTH.
19030
19031 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19032 (w32_cache_char_metrics): Use FONT_WIDTH.
19033
19034 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19035
19036 2008-02-01 Jason Rumney <jasonr@gnu.org>
19037
19038 * w32font.c (w32font_open): Make lfHeight negative.
19039
19040 * w32fns.c (x_default_font_parameter): Use new style font name.
19041 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19042
19043 2008-02-01 Jason Rumney <jasonr@gnu.org>
19044
19045 * w32font.c (QCsubranges): New symbol.
19046 (w32font_open, w32font_has_char): Get subranges from subproperty
19047 of extra.
19048 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19049 (syms_of_w32font): Define :subranges symbol.
19050
19051 * font.c (font_put_extra): Expose externally.
19052
19053 * font.h (font_put_extra): Move declaration from font.c.
19054
19055 * font.c (Ffont_get): Use font driver to determine otf capability.
19056 (adjust_anchor): Check if driver defines anchor_point before using.
19057
19058 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19059 (w32font_draw): Use options.
19060 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19061 Fix detection of truetype fonts.
19062 (registry_to_w32_charset): Handle charsets other than iso8859-1
19063 expressed as lisp symbols.
19064 (w32_registry): Express charset as lisp symbol.
19065 (fill_in_logfont): Reverse pixel and point height logic.
19066 Don't set width here. Set quality to default.
19067
19068 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19069 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19070
19071 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19072 Remove redundant loop and allocation.
19073
19074 * makefile.w32-in (font.o, w32font.o): New objects.
19075 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19076 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19077
19078 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19079 STORE_XCHARB a valid l-value.
19080
19081 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19082 calculations for non-Truetype fonts.
19083 (x_draw_glyph_string): Sync with xterm.c.
19084 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19085 Remove redundant code.
19086 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19087
19088 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19089 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19090
19091 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19092 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19093
19094 * w32font.c: New file for w32 font backend.
19095
19096 2008-02-01 Kenichi Handa <handa@m17n.org>
19097
19098 * term.c: Don't include "buffer.h" twice.
19099
19100 2008-02-01 Kenichi Handa <handa@m17n.org>
19101
19102 * character.c (Funibyte_string): New function.
19103 (syms_of_character): Defsubr it.
19104
19105 2008-02-01 Jason Rumney <jasonr@gnu.org>
19106
19107 * w32term.c [USE_FONT_BACKEND]:
19108 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19109 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19110 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19111 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19112 (x_free_frame_resources): Sync with xterm.c.
19113
19114 2008-02-01 Andreas Schwab <schwab@suse.de>
19115
19116 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19117 char-table size.
19118
19119 2008-02-01 Kenichi Handa <handa@m17n.org>
19120
19121 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19122
19123 2008-02-01 Kenichi Handa <handa@m17n.org>
19124
19125 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19126 font_otf_gpos, add font_drive_otf.
19127
19128 * fontset.c (fontset_find_font): Pay attention to font size
19129 specified for a font.
19130 (reorder_font_vector): Check contents of font_def.
19131
19132 * font.c (struct otf_list): Delete it.
19133 (otf_list): Make it a lisp variable.
19134 (otf_open): Use lispy otf_list.
19135 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19136 (check_otf_features): New function.
19137 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19138 New functions.
19139 (font_drive_otf): New function merging font_otf_gsub and
19140 font_otf_gpos.
19141 (font_open_for_lface): New arg spec. Change argument order.
19142 (font_load_for_face): Adjust for the change of font_open_for_lface.
19143 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19144 Ffont_otf_gpos.
19145 (syms_of_font): Staticpro otf_list. Delete defsubr of
19146 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19147
19148 * xfaces.c (set_font_frame_param): Adjust for the change of
19149 font_open_for_lface.
19150
19151 * font.h (font_open_for_lface): Adjust prototype.
19152 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19153 member otf_drive.
19154 (font_otf_gsub, font_otf_gpos): Delete externs.
19155 (font_drive_otf): Extern it.
19156
19157 2008-02-01 Kenichi Handa <handa@m17n.org>
19158
19159 * font.c (font_at): If the window W is not on a window system,
19160 return Qnil.
19161
19162 * coding.c (produce_chars, encode_coding): Don't call
19163 insert_from_gap if no characters to produce.
19164
19165 2008-02-01 Kenichi Handa <handa@m17n.org>
19166
19167 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19168 Fclear_face_cache.
19169
19170 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19171
19172 2008-02-01 Miles Bader <miles@gnu.org>
19173
19174 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19175 Parse "--disable-font-backend" option.
19176 (standard_args): Add "--disable-font-backend" option.
19177
19178 2008-02-01 Kenichi Handa <handa@m17n.org>
19179
19180 * fontset.c (fontset_find_font): New function.
19181 (fontset_font): Use fontset_find_font.
19182 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19183 Register the specified font for all Latin characters.
19184 (new_fontset_from_font): Register the specified font for all Latin
19185 characters.
19186 (dump_fontset): For a realized fontset, include the base fontset
19187 name in the returned vector.
19188
19189 2008-02-01 Kenichi Handa <handa@m17n.org>
19190
19191 * character.h (CHAR_STRING): Cast C to unsigned on calling
19192 char_string.
19193
19194 * character.c (char_string): Type of arg C changed to unsigned.
19195 Signal an error if C is an invalid character code.
19196
19197 * editfns.c (general_insert_function, Fchar_to_string):
19198 Use CHARACTERP, not INTEGERP.
19199
19200 2008-02-01 Kenichi Handa <handa@m17n.org>
19201
19202 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19203 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19204
19205 * regex.c (analyse_first): Fix for multibyte characters in "case
19206 charset:" and "case categoryspec:".
19207
19208 2008-02-01 Andreas Schwab <schwab@suse.de>
19209
19210 * Makefile.in (LIBES): Move standard libraries to the end.
19211
19212 2008-02-01 Kenichi Handa <handa@m17n.org>
19213
19214 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19215 nonzero, don't shrink the buffer nextb.
19216
19217 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19218
19219 * coding.c (coding_alloc_by_making_gap): New arg offset.
19220 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19221 offset.
19222 (decode_coding_iso_2022): Update coding->safe_charsets.
19223 (decode_coding_gap): Temporarily set
19224 current_buffer->text->inhibit_shrinking to 1.
19225
19226 2008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19229 indexing into elements of s->cmp and s->char2b.
19230
19231 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
19232
19233 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19234
19235 2008-02-01 Kenichi Handa <handa@m17n.org>
19236
19237 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19238 target_multibyte instead of multibyte.
19239 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19240 (bcmp_translate): Change the argument name from multibyte to
19241 target_multibyte.
19242
19243 2008-02-01 Kenichi Handa <handa@m17n.org>
19244
19245 These changes are to compile a regexp into a pattern that can be
19246 used both for multibyte and unibyte targets.
19247
19248 * Makefile.in (search.o): Depend on charset.h.
19249
19250 * character.c (multibyte_char_to_unibyte_safe): New function.
19251
19252 * search.c: Include "charset.h".
19253 (compile_pattern_1): Delete argument multibyte. Don't set
19254 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19255 (compile_pattern): Don't compare cp->buf.target_multibyte.
19256 Compare cp->buf.charset_unibyte.
19257 (compile_pattern): Set cp->buf.target_multibyte.
19258
19259 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19260
19261 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19262
19263 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19264 multibyte. Change callers.
19265 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19266 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19267 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19268 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19269 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19270 (regex_compile): Make the compiled pattern usable both for
19271 multibyte and unibyte targets.
19272 (analyse_first): Make the fastmap usable both for multibyte and
19273 unibyte targets.
19274 (TRANSLATE_VIA_MULTIBYTE): Delete.
19275 (re_match_2_internal): Pay attention to the case that the
19276 multibyteness of bufp and target may be different.
19277
19278 2008-02-01 Kenichi Handa <handa@m17n.org>
19279
19280 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19281 empty box occupy at least one column width.
19282
19283 2008-02-01 Miles Bader <miles@gnu.org>
19284
19285 * Makefile.in: Remove redundant HAVE_XFT clause.
19286
19287 2008-02-01 Kenichi Handa <handa@m17n.org>
19288
19289 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19290
19291 2008-02-01 Kenichi Handa <handa@m17n.org>
19292
19293 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19294 being nil.
19295
19296 2008-02-01 Kenichi Handa <handa@m17n.org>
19297
19298 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19299
19300 2008-02-01 Kenichi Handa <handa@m17n.org>
19301
19302 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19303
19304 2008-02-01 Kenichi Handa <handa@m17n.org>
19305
19306 * search.c (simple_search): Fix previous change.
19307
19308 2008-02-01 Kenichi Handa <handa@m17n.org>
19309
19310 * xftfont.c (ftfont_font_format): Extern declaration.
19311
19312 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19313
19314 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19315 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19316
19317 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19318 (ftfont_font_format): Fix previous change.
19319
19320 * font.h (Ffont_xlfd_name): EXFUN it.
19321
19322 * font.c (font_parse_xlfd): Fix the array size of `f'.
19323 (register_font_driver): Use EQ to compare driver->type.
19324
19325 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19326 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19327 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19328
19329 2008-02-01 Kenichi Handa <handa@m17n.org>
19330
19331 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19332 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19333
19334 2008-02-01 Kenichi Handa <handa@m17n.org>
19335
19336 * xfont.c (xfont_open): Set font->format.
19337
19338 * xftfont.c (xftfont_open): Set font->format.
19339
19340 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19341 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19342 (ftfont_open): Set font->format.
19343 (ftfont_font_format): New function.
19344
19345 * font.h (struct font): New member format.
19346
19347 * font.c (Qopentype): New variable.
19348 (syms_of_font): Defsym it.
19349 (Fquery_font): Change the format of the last element of the return
19350 value.
19351
19352 2008-02-01 Kenichi Handa <handa@m17n.org>
19353
19354 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19355 last resort.
19356
19357 2008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * coding.c (detect_coding_charset): Fix detection of multi-byte
19360 charset.
19361
19362 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19363
19364 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19365
19366 2008-02-01 Kenichi Handa <handa@m17n.org>
19367
19368 * xdisp.c (get_next_display_element): Set it->face_id for the
19369 first component of a composition.
19370 (x_produce_glyphs): Check if the font is changed or not for composition.
19371
19372 2008-02-01 Kenichi Handa <handa@m17n.org>
19373
19374 * fontset.c (Qlatin): New variable.
19375 (syms_of_fontset): Define it as a lisp symbol.
19376 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19377
19378 2008-02-01 Kenichi Handa <handa@m17n.org>
19379
19380 * font.c (font_unparse_fcname): Pay attention to the case that
19381 some of font property is a null string.
19382
19383 2008-02-01 Kenichi Handa <handa@m17n.org>
19384
19385 * term.c: Include "composite.h".
19386 (encode_terminal_code): Output all components of composition.
19387 Check the size of encode_terminal_src.
19388 (produce_glyphs): For composition, call produce_composite_glyph.
19389 (append_composite_glyph, produce_composite_glyph): New functions.
19390
19391 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19392 is not found, get font_info from the current ascii face.
19393
19394 2008-02-01 Kenichi Handa <handa@m17n.org>
19395
19396 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19397 buffer-file-name to Qnil before calling insert_from_buffer.
19398
19399 * font.c (font_unparse_fcname): Pay attention to the case that
19400 foundry is a null string.
19401
19402 2008-02-01 Kenichi Handa <handa@m17n.org>
19403
19404 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19405
19406 * font.c (Qunicode_sip): New variable.
19407 (syms_of_font): Declare it as a Lisp symbol.
19408
19409 * font.h (Qunicode_sip): Extern it.
19410
19411 2008-02-01 Kenichi Handa <handa@m17n.org>
19412
19413 * composite.c (get_composition_id): Pay attention to TAB component.
19414
19415 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19416 TAB. Adjust for the change of s->char2b which always points to
19417 the first element of allocated memory.
19418
19419 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19420
19421 * xdisp.c (handle_composition_prop): Set it->c to the first
19422 non-TAB component.
19423 (fill_composite_glyph_string): Change argument.
19424 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19425 (x_produce_glyphs): Fix handling of left/right padding.
19426
19427 2008-02-01 Kenichi Handa <handa@m17n.org>
19428
19429 * coding.c (detect_coding_system): Fix for handling off
19430 inhibit_iso_escape_detection. Fix for the case that no coding
19431 system is defined for a specific coding category.
19432
19433 2008-02-01 Kenichi Handa <handa@m17n.org>
19434
19435 * font.c (font_matching_entity): Delete unused local var.
19436
19437 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19438 opening a font.
19439
19440 * fileio.c (Finsert_file_contents): On recovering a file, assume
19441 Unix-like eol.
19442 (choose_write_coding_system): On auto-saving a file, force
19443 Unix-like eol.
19444
19445 * coding.c (setup_coding_system): Fix setting of
19446 coding->common_flags based on eol_type.
19447 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19448 inherit from it.
19449
19450 2008-02-01 Kenichi Handa <handa@m17n.org>
19451
19452 * alloc.c (NSTATICS): Increas to 0x600.
19453
19454 2008-02-01 Kenichi Handa <handa@m17n.org>
19455
19456 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19457 (ftfont_list): Don't check :name property.
19458 (ftfont_match): New function.
19459 (ftfont_pattern_entity): If the pattern doesn't contain
19460 FC_SPACING, don't assume FC_MONO.
19461
19462 * font.h (struct font_driver): New member `match'.
19463 (font_update_drivers): Adjust prototype.
19464
19465 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19466 property of FONT.
19467 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19468 them unconditionally.
19469 (font_matching_entity): New function.
19470 (font_open_by_name): Try font_matching_entity if exact match is
19471 not found.
19472 (font_update_drivers): Delete the arg FONT. Return a list of
19473 actually used backends. Don't free faces, font caches here.
19474 Don't store data in frame parameters. Don't call x_set_font.
19475 (Ffont_spec): Store :name property as is.
19476 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19477 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19478 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19479 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19480 Call font->driver->otf_gsub instead of font_otf_gsub.
19481
19482 * frame.c (x_set_font_backend): Do more works that were done in
19483 font_update_drivers before.
19484
19485 * xfont.c (xfont_match): New function.
19486 (xfont_driver): Set xfont_driver.match to xfont_match.
19487 (xfont_draw): Set font in GC if necessary.
19488
19489 * ftxfont.c (ftxfont_match): New function.
19490 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19491
19492 * xftfont.c (xftfont_match): New function.
19493 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19494
19495 2008-02-01 Kenichi Handa <handa@m17n.org>
19496
19497 * font.h (struct font): New member scalable.
19498 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19499 (font_otf_gsub): Adjust prototype.
19500
19501 * font.c (font_otf_capability): Fix handling of the default langsys.
19502 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19503 Check the contents of SPEC.
19504 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19505 (check_gstring): New function.
19506 (REPLACEMENT_CHARACTER): New macro.
19507 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19508 glyph codes of GSTRING.
19509 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19510 (font_prepare_composition): Set cmp->glyph_len.
19511 (font_open_entity): Set font->scalable.
19512 (Ffont_get): Handle :otf property.
19513 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19514 functions.
19515 (Fquery_font): Use font->font.full_name.
19516 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19517 Sfont_otf_alternates.
19518
19519 * ftfont.c (ftfont_open): Set font->font.full_name and
19520 font->font.name properly. Fix calculation of font->font.height
19521 and font->min_width.
19522
19523 * ftxfont.c (ftxfont_create_gcs): New function.
19524 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19525 (ftxfont_draw_backgrond): Fix filling region.
19526 (ftxfont_default_fid): New function.
19527 (ftxfont_open): Set xfont->fid to the return value of
19528 ftxfont_default_fid.
19529 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19530 (ftxfont_done_face): Free only GCs that are created by
19531 ftxfont_create_gcs.
19532 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19533
19534 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19535 Clip to src->width, etc (not src->clip_XXX).
19536
19537 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19538 FontBackend frame parameter.
19539
19540 2008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * font.h (struct font_driver_list): New member `on'.
19543 (Fclear_font_cache): EXFUN it.
19544 (font_update_drivers): Extern it.
19545
19546 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19547 (font_list_entities): Check driver_list->on.
19548 (register_font_driver): Initalize `on' member to 0.
19549 (font_update_drivers): New function.
19550 (Fclear_font_cache): Check driver_list->on.
19551
19552 * frame.h (Qfont_backend): Extern it.
19553 (x_set_font_backend): Extern it.
19554
19555 * frame.c (Qfont_backend): New variable.
19556 (frame_parms): New element for font-backend.
19557 (x_set_font_backend): New function.
19558
19559 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19560 FontBackend frame parameter.
19561 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19562 x_set_font_backend.
19563
19564 * xfont.c (xfont_list): Don't try listing by :name property if the
19565 name is not for XLFD.
19566
19567 2008-02-01 Kenichi Handa <handa@m17n.org>
19568
19569 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19570 (LGLYPH_SET_TO): New macros.
19571 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19572 element of G is vector or not.
19573 (font_at): Extern it.
19574
19575 * font.c: Include window.h.
19576 (font_lispy_object): New function.
19577 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19578 end of valid glyph.
19579 (font_close_object): Fix getting (struct font *).
19580 (font_at): New function.
19581 (Ffont_get): If FONT is a font-object, get entity from it.
19582 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19583 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19584 range check.
19585 (Ffont_at): New function.
19586 (syms_of_font): Defsubr Sfont_at.
19587
19588 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19589 before the entry for Qcomposition.
19590 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19591 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19592 the font in gstring.
19593 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19594 LGLYPH_FORM (g) to detect the end of valid glyph.
19595 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19596 we are composing with gstring.
19597
19598 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19599 Check if adjustment is vector or not.
19600
19601 * Makefile.in (font.o): Make it depends on window.h.
19602
19603 2008-02-01 Kenichi Handa <handa@m17n.org>
19604
19605 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19606 adjustment is vector or not.
19607
19608 2008-02-01 Miles Bader <miles@gnu.org>
19609
19610 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19611
19612 2008-02-01 Kenichi Handa <handa@m17n.org>
19613
19614 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19615 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19616 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19617
19618 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19619 (DEVICE_DELTA): Fix typo.
19620 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19621 LGLYPH format.
19622
19623 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19624 the change of LGLYPH format.
19625
19626 2008-02-01 Kenichi Handa <handa@m17n.org>
19627
19628 * ftfont.c (ftfont_list): Fix typo.
19629 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19630
19631 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19632
19633 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19634
19635 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19636 xftface_info is non-NULL.
19637
19638 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19639
19640 * ftfont.c (ftfont_list): Move misplaced #endif.
19641
19642 2008-02-01 Kenichi Handa <handa@m17n.org>
19643
19644 * ftfont.c (ftfont_list): Pay attention to the case that
19645 FC_CAPABILITY is not defined.
19646
19647 2008-02-01 Kenichi Handa <handa@m17n.org>
19648
19649 * xftfont.c (xftfont_open): Set charset related members to -1.
19650
19651 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19652 QCname.
19653 (ftfont_open): Set charset related members to -1.
19654
19655 * fontset.c (Votf_script_alist): New variable.
19656 (syms_of_fontset): Initialize it.
19657 (fontset_font): Delete unused variable.
19658
19659 * fontset.h (Votf_script_alist): Extern it.
19660
19661 * font.c (font_find_for_lface): Optimize code.
19662
19663 * font.h (font_close_object, font_merge_old_spec): Extern them.
19664
19665 2008-02-01 Kenichi Handa <handa@m17n.org>
19666
19667 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19668 (syms_of_font): Initialize them.
19669 (font_pixel_size): Allow float value in dpi.
19670 (font_prop_validate_type): Delete.
19671 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19672 Change caller.
19673 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19674 (font_prop_validate_extra): Delete.
19675 (font_prop_validate_spacing): New function.
19676 (font_property_table): Add elements for all known properties.
19677 (get_font_prop_index): Rename from check_font_prop_name. New
19678 argument FROM. Change caller.
19679 (font_prop_validate): Validate all known properties.
19680 (font_put_extra): Delete argument force. Change caller.
19681 (font_expand_wildcards): Make it static. Fix the way of shrinking
19682 the possible range.
19683 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19684 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19685 Change caller.
19686 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19687 (font_parse_fcname): Delete argument merge. Fix parsing of point
19688 size. Don't validate properties values here. Change caller.
19689 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19690 (font_open_by_name): Delete unused variable.
19691 (Ffont_spec): Likewise. Validate property values.
19692 (Ffont_match_p): New function.
19693
19694 * font.h (QCscalable): Extern it.
19695 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19696
19697 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19698
19699 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19700 (xfont_list_pattern): New function.
19701 (xfont_list): Use xfont_list_pattern.
19702
19703 2008-02-01 Kenichi Handa <handa@m17n.org>
19704
19705 * font.h (Flist_fonts): EXFUN it.
19706
19707 2008-02-01 Jason Rumney <jasonr@gnu.org>
19708
19709 * w32term.c (w32_initialize): Add back smoothing_type and
19710 smoothing_enabled definitions.
19711
19712 2008-02-01 Kenichi Handa <handa@m17n.org>
19713
19714 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19715 s->face->font on determining underline position.
19716
19717 2008-02-01 Kenichi Handa <handa@m17n.org>
19718
19719 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19720 (font_has_char): Accept font-object too.
19721 (font_find_for_lface): Try at first with a size specified in face.
19722
19723 2008-02-01 Kenichi Handa <handa@m17n.org>
19724
19725 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19726 font_open_by_name.
19727
19728 2008-02-01 Kenichi Handa <handa@m17n.org>
19729
19730 * font.h (QCspacing, QCdpi): Extern them.
19731 (enum font_spacing): New enum.
19732 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19733
19734 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19735 (QCspacing, QCdpi): New variables.
19736 (syms_of_font): Initialize them.
19737 (font_pixel_size): New function.
19738 (font_put_extra): New function.
19739 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19740 in FONT_EXTRA.
19741 (font_parse_fcname): Handle enumerated values (e.g. bold).
19742 Fix handling font size. Add QCname property that contains only
19743 unknown properties.
19744 (font_score): Change argument. Change caller. Pay attention to
19745 FONT_PIXEL_SIZE_QUANTUM.
19746 (font_sort_entites, font_list_entities, font_find_for_lface)
19747 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19748 (Ffont_spec): Add QCname property that contains only unknown properties.
19749
19750 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19751 include weight in listing pattern, instead check weight of each
19752 listed font. Don't include scalable in pattern. Pay attention to
19753 FONT_PIXEL_SIZE_QUANTUM.
19754
19755 2008-02-01 Kenichi Handa <handa@m17n.org>
19756
19757 * font.c (font_parse_fcname): Fix parsing of point-size.
19758 (font_unparse_fcname): Produce symbolic names for style properties.
19759 (font_list_entities): Handle float size correctly.
19760 (font_open_by_name): Prefer `normal' property values if the name
19761 doesn't specify them.
19762
19763 * fontset.c (Finternal_char_font): Use font_get_name, not
19764 Ffont_xlfd_name.
19765
19766 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19767 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19768 pattern. Don't force scalable.
19769
19770 * xftfont.c (xftfont_open): For generating a name, start from
19771 96-byte buffer.
19772
19773 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19774
19775 * frame.h (x_new_fontset2): Fix prototype.
19776
19777 2008-02-01 Kenichi Handa <handa@m17n.org>
19778
19779 * font.h (struct font_driver): Delete member parse_name.
19780 (font_match_p, font_get_spec, font_parse_fcname)
19781 (font_unparse_fcname): Extern them.
19782 (font_get_name): Adjust prototype.
19783
19784 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19785 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19786 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19787 unnecessary checks for weight, slant, and swidth.
19788 (font_parse_fcname): New function.
19789 (font_unparse_fcname): New function.
19790 (font_parse_name): New function.
19791 (font_match_p): New function.
19792 (font_get_name): Change return value to Lisp string.
19793 (font_get_spec): New function.
19794 (Qunspecified, Qignore_defface): Don't extern them.
19795 (font_find_for_lface): Assume that LFACE is fully specified.
19796 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19797 object, use it for FACE.
19798 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19799 driver->parse_name.
19800 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19801
19802 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19803 prototype.
19804
19805 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19806 argument F. Don't call Fnew_fontset. Instead, directly call
19807 make_fontset.
19808
19809 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19810
19811 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19812 of x_new_fontset2.
19813
19814 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19815 (Qsans__serif): New variables.
19816 (ftfont_generic_family_list): New variable.
19817 (syms_of_ftfont): Initialize the above variables.
19818 (ftfont_pattern_entity): Delete argument NAME.
19819 (ftfont_list_generic_family): New function.
19820 (ftfont_parse_name): Delete this function.
19821 (ftfont_list): Try generic family only when FcFontList found no font.
19822 (ftfont_list_family): Fix args to FcObjectSetBuild.
19823
19824 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19825 object in attrs[LFACE_FONT_INDEX].
19826 (set_lface_from_font_name): Cancel all changes for font-backend.
19827 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19828 function.
19829 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19830 font object in QCfont attribute.
19831 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19832 (realize_default_face) [USE_FONT_BACKEND]: Call
19833 set_lface_from_font_and_fontset.
19834
19835 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19836 "fixed", and signal error here if no suitable font was found.
19837
19838 * xfont.c (xfont_parse_name): Delete this function.
19839
19840 * xftfont.c (xftfont_open): Change coding style of error
19841 handling. Generate fontconfig's fontname pattern.
19842
19843 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19844 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19845
19846 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19847 Both args FONTSET and FONT_OBJECT must be existing ones.
19848
19849 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19850
19851 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19852
19853 2008-02-01 Kenichi Handa <handa@m17n.org>
19854
19855 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19856
19857 * font.h (struct font): Fix typo.
19858
19859 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19860 XLFD_XXX_INDEX.
19861 (enum xlfd_field_mask): New enum.
19862 (intern_font_field): Changed argument. Change caller. If digits
19863 are followed by non-digits, return a symbol.
19864 (font_expand_wildcards): New function.
19865 (font_parse_xlfd): Fix wildcard handling.
19866 (Ffont_spec): If :name is specified, reflect the info in the other
19867 properties.
19868
19869 * ftfont.c (ftfont_pattern_entity): Fix typo.
19870 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19871 locale.
19872
19873 2008-02-01 Kenichi Handa <handa@m17n.org>
19874
19875 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19876
19877 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19878 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19879 registry doesn't specify encoding part.
19880 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19881 (font_open_by_name): At first try parsing the name.
19882 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19883 as Lisp symbols.
19884
19885 * fontset.c (reorder_font_vector): Pay attention to the case that
19886 the 3rd element of font_def is nil.
19887 (fontset_font): For the default fontset, append one more fontset
19888 elements for a script-based font specification. Don't add script
19889 attribute on finding a font.
19890 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19891 font name.
19892 (fontset_ascii_font): If a font can't be opened, return nil.
19893
19894 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19895 (ftfont_pattern_entity): New function.
19896 (ftfont_get_cache): Assume that freetype_font_cache is already
19897 initialized.
19898 (ftfont_list): Handle the case that a file is specified in font
19899 name. Use ftfont_pattern_entity to generate entities.
19900 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19901 (syms_of_ftfont): Initialize freetype_font_cache.
19902
19903 * xftfont.c (xftfont_open): Make the font name fontconfig's
19904 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19905 (xftfont_close): Free font->font.name if not NULL.
19906
19907 * xfont.c (xfont_list): If script is specified for a font, return
19908 null_vector.
19909 (xfont_list_family): Declare argument type.
19910
19911 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19912 name, set LFACE_FONT (lface) to nil.
19913
19914 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19915 return Qnil.
19916
19917 2008-02-01 Kenichi Handa <handa@m17n.org>
19918
19919 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19920 (standard_args): Add "-enable-font-backend".
19921
19922 2008-02-01 Kenichi Handa <handa@m17n.org>
19923
19924 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19925 (struct xftdraw_list, xftdraw_list): Delete them.
19926 (register_xftdraw, check_xftdraw): Delete them.
19927 (xftfont_prepare_face): Don't call register_xftdraw.
19928 (xftfont_done_face): Don't call check_xftdraw.
19929 (xftfont_draw): Get background color only when with_background is
19930 nonzero.
19931
19932 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19933
19934 2008-02-01 Kenichi Handa <handa@m17n.org>
19935
19936 These changes are for the new font handling codes.
19937
19938 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19939 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19940 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19941 (FONTSRC, FONTOBJ): New variables.
19942 (obj): Add $(FONTOBJ).
19943 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19944 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19945 @LIBOTF_LIBS@.
19946 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19947 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19948
19949 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19950
19951 * character.h (Vscript_representative_chars): Extern it.
19952
19953 * character.c (Vscript_representative_chars): New variable.
19954 (syms_of_character): Declare it as a Lisp variable.
19955
19956 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19957 enable_font_backend is nonzero, accept the composition method
19958 COMPOSITION_WITH_GLYPH_STRING.
19959
19960 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19961 enumeration COMPOSITION_WITH_GLYPH_STRING.
19962
19963 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19964 members clip_x, clip_y, clip_width, and clip_height.
19965 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19966
19967 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19968 --enable-font-backend. Call syms_of_font.
19969
19970 * fns.c (assoc_no_quit): New function.
19971
19972 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19973 (face_for_font, new_fontset_from_font)
19974 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19975
19976 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19977 (fontset_font, fontset_ascii, face_for_char)
19978 (make_fontset_for_ascii_face, Ffont_info)
19979 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19980 is nonzero, use font-backend mechanism.
19981 (find_font_encoding): Make it non-static.
19982 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19983 New functions.
19984
19985 * frame.h (struct frame): New members resx and resy.
19986 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19987 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19988
19989 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19990 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19991
19992 * lisp.h (assoc_no_quit): Extern it.
19993
19994 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19995 Through out the file, use FONT_INFO_FROM_FACE instead of
19996 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19997 rif->per_char_metric.
19998 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19999 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20000 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20001 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20002 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20003 nonzero, use font-backend mechanism.
20004 (get_per_char_metric): New function.
20005
20006 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20007 (set_lface_from_font_name)
20008 (set_font_frame_param, free_realized_face)
20009 (prepare_face_for_display, clear_face_gcs)
20010 (Finternal_set_font_selection_order, realize_x_face)
20011 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20012 font-backend mechanism.
20013 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20014 (load_face_font) [USE_FONT_BACKEND]: Abort.
20015 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20016 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20017
20018 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20019 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20020 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20021 nonzero, register all available font drivers. Call
20022 x_default_font_parameter for deciding a font.
20023 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20024
20025 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20026 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20027 (x_set_glyph_string_clipping_exactly)
20028 (x_compute_glyph_string_overhangs)
20029 (x_draw_glyph_string_foreground)
20030 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20031 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20032 enable_font_backend is nonzero, use font-backend mechanism.
20033 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20034
20035 2008-02-01 Kenichi Handa <handa@m17n.org>
20036
20037 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20038 system_eol_type.
20039 (syms_of_coding): Initialize system_eol_type.
20040
20041 * process.c (Fset_process_coding_system): Inherit system's eol
20042 format if necessary.
20043
20044 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20045
20046 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20047
20048 2008-02-01 Kenichi Handa <handa@m17n.org>
20049
20050 * coding.c (decode_eol): Pay attention to buffer relocation in
20051 del_range_2.
20052 (decode_coding): Call decode_eol before restoring undo_list.
20053
20054 2008-02-01 Kenichi Handa <handa@m17n.org>
20055
20056 * charset.c (Fdefine_charset_internal): Fix setting of
20057 emacs_mule_bytes.
20058
20059 2008-02-01 Kenichi Handa <handa@m17n.org>
20060
20061 * keyboard.c (read_char): Check if C is a character or not before
20062 looking up Vkeyboard_translate_table.
20063
20064 2008-02-01 Kenichi Handa <handa@m17n.org>
20065
20066 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20067 condition to terminate the loop.
20068
20069 2008-02-01 Kenichi Handa <handa@m17n.org>
20070
20071 * coding.c (produce_composition): Compare charbuf[i] instead of
20072 args[i] against 0.
20073 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20074
20075 2008-02-01 Kenichi Handa <handa@m17n.org>
20076
20077 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20078 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20079 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20080 detect_coding.
20081 (emacs_mule_char): Handle old style (Emacs 20) component character
20082 of a composition.
20083 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20084 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20085 composition rule.
20086 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20087
20088 2008-02-01 Kenichi Handa <handa@m17n.org>
20089
20090 * coding.c (encode_coding_ccl): Allocate destination dynamically
20091 when necessary.
20092
20093 2008-02-01 Kenichi Handa <handa@m17n.org>
20094
20095 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20096 the loop. When quitted, show a proper error message.
20097
20098 2008-02-01 Kenichi Handa <handa@m17n.org>
20099
20100 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20101 src->clip_head and src->clip_tail temporarily instead of src->hl.
20102
20103 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20104 character sequence.
20105 (Fccl_execute_on_string): Use ASET, not XSET.
20106
20107 2008-02-01 Kenichi Handa <handa@m17n.org>
20108
20109 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20110
20111 2008-02-01 Kenichi Handa <handa@m17n.org>
20112
20113 * coding.c (decode_coding): Fix the condition of terminating the
20114 decoding loop.
20115
20116 2008-02-01 Kenichi Handa <handa@m17n.org>
20117
20118 * data.c (Faset): On setting a character bigger than 255 in a
20119 unibyte string, signal an error instead of make the string multibyte.
20120
20121 2008-02-01 Kenichi Handa <handa@m17n.org>
20122
20123 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20124 made by a mapping table.
20125
20126 2008-02-01 Kenichi Handa <handa@m17n.org>
20127
20128 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20129 not.
20130 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20131 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20132
20133 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20134 s->face is NULL or not.
20135
20136 2008-02-01 Kenichi Handa <handa@m17n.org>
20137
20138 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20139 (x_draw_glyph_string): Fix drawing of right_overhang and
20140 left_overhang around/on cursor.
20141
20142 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20143
20144 2008-02-01 Kenichi Handa <handa@m17n.org>
20145
20146 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20147
20148 2008-02-01 Kenichi Handa <handa@m17n.org>
20149
20150 * coding.c (Fdefine_coding_system_internal)
20151 (Fdefine_coding_system_alias): Avoid a duplicated element in
20152 Vcoding_system_alist.
20153
20154 2008-02-01 Kenichi Handa <handa@m17n.org>
20155
20156 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20157
20158 * coding.c (Qcoding_system_define_form): New variable.
20159 (syms_of_coding): Intern and staticpro it.
20160 (Fcoding_system_p): Check Qcoding_system_define_form.
20161 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20162
20163 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20164 Fcoding_system_p.
20165 (CHECK_CODING_SYSTEM): If ID is not available, call
20166 Fcheck_coding_system.
20167 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20168 Try also Fcheck_coding_system.
20169
20170 2008-02-01 Kenichi Handa <handa@m17n.org>
20171
20172 * coding.c (code_conversion_restore): GCPRO arg.
20173
20174 2008-02-01 Kenichi Handa <handa@m17n.org>
20175
20176 * character.c (lisp_string_width): Check multibyteness of STRING.
20177
20178 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20179
20180 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20181 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20182 (decode_mac_font_name): Use decode_coding_c_string instead of
20183 decode_coding.
20184 (x_load_font): Initialize fontp->fontset to -1. Set
20185 fontp->encoding_type.
20186
20187 2008-02-01 Kenichi Handa <handa@m17n.org>
20188
20189 * search.c (search_buffer): Give up BM search on case-fold-search
20190 if one of a target character has a case-equivalence of different
20191 byte length even if that target charcter is an ASCII.
20192 (simple_search): Fix calculation of byte length of matched text.
20193 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20194
20195 2008-02-01 Kenichi Handa <handa@m17n.org>
20196
20197 * coding.c (decode_coding): Fix handling of invalid bytes.
20198
20199 2008-02-01 Kenichi Handa <handa@m17n.org>
20200
20201 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20202 Unicode characters.
20203
20204 2008-02-01 Kenichi Handa <handa@m17n.org>
20205
20206 * coding.c (encode_coding_object): If a pre-write-conversion
20207 function makes a new buffer, kill it.
20208
20209 2008-02-01 Kenichi Handa <handa@m17n.org>
20210
20211 * coding.c (QCascii_compatible_p): New variable.
20212 (syms_of_coding): Initialize it.
20213 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20214 calling string_char.
20215 (record_conversion_result): Add `default:' case.
20216 (coding_charset_list): Delete unused variable `coding_type'.
20217 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20218 property in the plist of the coding system.
20219 (Fcoding_system_put): Check QCascii_compatible_p.
20220
20221 2008-02-01 Miles Bader <miles@gnu.org>
20222
20223 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20224 removed calculation of frame `f', as it's now used.
20225
20226 2008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20229 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20230 (UNIDATA): New variable.
20231 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20232 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20233 $(RUN_TEMACS) unconditionally.
20234
20235 2008-02-01 Kenichi Handa <handa@m17n.org>
20236
20237 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20238 (admindir): New variable.
20239 ($(lispsource)international/charprop.el): New target.
20240
20241 2008-02-01 Miles Bader <miles@gnu.org>
20242
20243 * character.c (chars-in-region): Remove obsolete function.
20244 (syms_of_character): Remove its initialization.
20245
20246 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20247
20248 * w32select.c (validate_coding_system)
20249 (setup_windows_coding_system): New functions.
20250 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20251 setup_windows_coding_system.
20252 (setup_config, Fw32_get_clipboard_data): Use
20253 validate_coding_system.
20254 (Fx_selection_exists): Move call to setup_config to a place
20255 where signals are allowed.
20256
20257 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20258 (Fcheck_coding_system): Add declarations.
20259
20260 2008-02-01 Kenichi Handa <handa@m17n.org>
20261
20262 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20263
20264 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20265
20266 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20267 string as the second argument for x_new_fontset.
20268
20269 2008-02-01 Kenichi Handa <handa@m17n.org>
20270
20271 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20272 (encode_coding_object): Use safe_call instead of call2.
20273
20274 2008-02-01 Kenichi Handa <handa@m17n.org>
20275
20276 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20277
20278 * Makefile.in (lisp): Include charprop.el.
20279
20280 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20281
20282 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20283 Not sure if it's unnecessary.
20284
20285 2008-02-01 Steven Tamm <steventamm@mac.com>
20286
20287 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20288 some possibly unnecessary fontset checking code that crashed
20289 when creating a new frame.
20290
20291 2008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20294 lookup_face.
20295
20296 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20297
20298 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20299
20300 2008-02-01 Kenichi Handa <handa@m17n.org>
20301
20302 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20303 (coding_charset_list): New function.
20304
20305 * coding.h (coding_charset_list): Extern it.
20306
20307 2008-02-01 Kenichi Handa <handa@m17n.org>
20308
20309 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20310 concatenation of family and registry.
20311
20312 2008-02-01 Kenichi Handa <handa@m17n.org>
20313
20314 * character.h (BYTE8_STRING): Fix typo.
20315
20316 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20317 string to multibyte (sync to HEAD).
20318
20319 * casefiddle.c (casify_region): Handle changes in byte-length
20320 using replace_range_2 (sync to HEAD).
20321
20322 2008-02-01 Andreas Schwab <schwab@suse.de>
20323
20324 * chartab.c (map_char_table): GCPRO table and arg.
20325
20326 2008-02-01 Kenichi Handa <handa@m17n.org>
20327
20328 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20329 already at limit.
20330
20331 2008-02-01 Kenichi Handa <handa@m17n.org>
20332
20333 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20334 instead of fast_c_string_match_ignore_case.
20335 (find_font_encoding): Change argument to Lisp_Object. Use
20336 fast_string_match_ignore_case instead of
20337 fast_c_string_match_ignore_case. Change caller.
20338
20339 2008-02-01 Kenichi Handa <handa@m17n.org>
20340
20341 * xdisp.c (get_next_display_element): In unibyte case, decide to
20342 display in octal form by checking a character by
20343 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20344
20345 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20346
20347 * character.c (unibyte_has_multibyte_table): New variable.
20348
20349 * character.h (unibyte_has_multibyte_table): Extern it.
20350 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20351
20352 2008-02-01 Kenichi Handa <handa@m17n.org>
20353
20354 * coding.c (encode_coding_iso_2022): Fix handling of charset
20355 annotation.
20356
20357 2008-02-01 Kenichi Handa <handa@m17n.org>
20358
20359 * coding.c (setup_coding_system): If coding_system is nil, use
20360 Qundecided.
20361 (Fterminal_coding_system): Return nil if terminal coding system is
20362 `undecided'.
20363 (syms_of_coding): Define coding-system `undecided' here. Setup
20364 terminal_coding as `undecided'.
20365
20366 2008-02-01 Kenichi Handa <handa@m17n.org>
20367
20368 * xdisp.c (message_dolog, set_message_1): Call
20369 unibyte_char_to_multibyte with arg type int.
20370
20371 * lread.c (read1): Fix reading of a char-table.
20372
20373 * print.c (print_object): Include sub char-table in circularities
20374 detection.
20375
20376 2008-02-01 Kenichi Handa <handa@m17n.org>
20377
20378 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20379 Append the found sequences in car of ARGS instead of prepending.
20380
20381 2008-02-01 Kenichi Handa <handa@m17n.org>
20382
20383 * fileio.c (report_file_error): Make a unibyte string from
20384 strerror (errorno).
20385 (Fsubstitute_in_file_name): Fix the arg to
20386 unibyte_char_to_multibyte. It is evaluated twice.
20387
20388 2008-02-01 Kenichi Handa <handa@m17n.org>
20389
20390 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20391
20392 2008-02-01 Kenichi Handa <handa@m17n.org>
20393
20394 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20395 BOM is not found.
20396 (detect_coding, detect_coding_system): Optimization for ISO-2022
20397 when no 8-bit data is found.
20398
20399 2008-02-01 Jason Rumney <jasonr@gnu.org>
20400
20401 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20402
20403 2008-02-01 Kenichi Handa <handa@m17n.org>
20404
20405 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20406 CHARS.
20407
20408 2008-02-01 Steven Tamm <steventamm@mac.com>
20409
20410 * macterm.c (mac_encode_char): Add charset argument and update
20411 to use encoding_type.
20412 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20413 switch to pure fontset.
20414 (decode_mac_font_name): Temporarily remove decoding.
20415 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20416 (x_load_font): Temporarily remove encoding.
20417
20418 2008-02-01 Kenichi Handa <handa@m17n.org>
20419
20420 * xfaces.c (Fface_font): If frame is not on a window system,
20421 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20422 refer to face->font.
20423 (split_font_name_into_vector, build_font_name_from_vector)
20424 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20425 when HAVE_WINDOW_SYSTEM is defined.
20426
20427 2008-02-01 Kenichi Handa <handa@m17n.org>
20428
20429 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20430 (x_produce_glyphs): Fix setting of members of cmp in case
20431 cmp->glyph_len is zero.
20432
20433 * fontset.c (Fset_fontset_font): Fix docstring.
20434 (Ffontset_info): Make it backward compatible. New arg ALL.
20435
20436 2008-02-01 Kim F. Storm <storm@cua.dk>
20437
20438 * process.c (read_process_output): Grow decoding_buf when needed;
20439 this could cause a crash in allocate_string and compact_small_strings.
20440
20441 2008-02-01 Kenichi Handa <handa@m17n.org>
20442
20443 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20444
20445 2008-02-01 Kenichi Handa <handa@m17n.org>
20446
20447 * coding.c (setup_coding_system): Set coding->common_flags
20448 correctly for raw-text.
20449 (consume_chars): On encoding unibyte text by raw-text, don't check
20450 multibyte form.
20451 (encode_coding): On encoding by raw-text, never use translation tables.
20452
20453 * fileio.c (e_write): Short cut for the case of no encoding.
20454
20455 2008-02-01 Kenichi Handa <handa@m17n.org>
20456
20457 * coding.c (detect_coding, detect_coding_system): Delete unused
20458 variables.
20459
20460 2008-02-01 Kenichi Handa <handa@m17n.org>
20461
20462 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20463 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20464
20465 2008-02-01 Kenichi Handa <handa@m17n.org>
20466
20467 * coding.c (Ffind_coding_systems_region_internal): Include
20468 raw-text and no-conversion in the result.
20469
20470 2008-02-01 Kenichi Handa <handa@m17n.org>
20471
20472 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20473 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20474 FONT_DEF.
20475 (font_def_arg, add_arg, from_arg, to_arg): New args.
20476 (set_fontset_font): Change argument.
20477 (Fset_fontset_font): Fix for the case that TARGET is a script
20478 name and charset name.
20479 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20480
20481 2008-02-01 Kenichi Handa <handa@m17n.org>
20482
20483 * fontset.c (fontset_font): Rename from fontset_face. Change return
20484 value.
20485 (face_suitable_for_char_p, face_for_char): Adjust for the change
20486 of fontset_font.
20487 (make_fontset_for_ascii_face): Fix setting of the fontset element
20488 for ASCII.
20489 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20490 to get a font name.
20491 (Ffontset_info): Adjust for the change of fontset_font.
20492
20493 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20494
20495 * character.h (LEADING_CODE_LATIN_1_MIN)
20496 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20497
20498 2008-02-01 Kenichi Handa <handa@m17n.org>
20499
20500 * editfns.c (check_translation): New function.
20501 (Ftranslate_region_internal): Handle M:N mapping.
20502
20503 2008-02-01 Kenichi Handa <handa@m17n.org>
20504
20505 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20506
20507 2008-02-01 Kenichi Handa <handa@m17n.org>
20508
20509 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20510 goto invalid_code.
20511 (decode_coding_iso_2022): Fix handling of invalid designation.
20512
20513 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20514 after calling code_conversion_save.
20515
20516 2008-02-01 Kenichi Handa <handa@m17n.org>
20517
20518 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20519
20520 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20521
20522 * fontset.c: Include "intervals.h".
20523 (fontset_face): Fix comparing of Lisp_Objects.
20524 (free_face_fontset, new_fontset_from_font_name): Fix
20525 Lisp_Object/int mixup.
20526
20527 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20528
20529 * coding.c: Add many prototypes for static functions.
20530 (get_translation_table): Allow max_lookup to be NULL.
20531 (decode_coding, Ffind_coding_systems_region_internal)
20532 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20533 get_translation_table with max_lookup NULL.
20534
20535 2008-02-01 Kenichi Handa <handa@m17n.org>
20536
20537 * coding.c (get_translation_table): Declare it as Lisp_Object.
20538 (LOOKUP_TRANSLATION_TABLE): New macro.
20539 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20540 instead of CHAR_TABLE_REF.
20541
20542 2008-02-01 Kenichi Handa <handa@m17n.org>
20543
20544 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20545 annotation data format.
20546 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20547 Change arguments FROM and TO to single argument NCHARS. Change caller.
20548 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20549 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20550 (decode_coding_ccl, decode_coding_charset): Pay attention to
20551 coding->charbuf_used.
20552 (get_translation): New function.
20553 (produce_chars): New arguments translation_table and last_block.
20554 Translate characters here. Return number of carryover chars.
20555 Change caller.
20556 (produce_composition): New argument pos. Change caller.
20557 Adjust for the change of annotation data format.
20558 (produce_charset, produce_annotation): Likewise.
20559 (decode_coding, encode_coding): Don't call translate_chars.
20560 (consume_chars): New arg translation_table. Change caller.
20561 (translate_chars): Delete.
20562 (syms_of_coding): Make translation-table's number of extra slots 2.
20563
20564 2008-02-01 Kenichi Handa <handa@m17n.org>
20565
20566 * search.c (simple_search): Fix setting this_pos_byte in backward
20567 search.
20568
20569 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20570 byte sequence.
20571 (detect_coding_ccl): Fix setting of the variable valids.
20572
20573 2008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20576
20577 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20578
20579 * editfns.c (Ftranslate_region_internal): Rename from
20580 Ftranslate_region. Accept a char-table in TABLE.
20581 (syms_of_editfns): Defsubr Stranslate_region_internal.
20582
20583 * xfaces.c (set_lface_from_font_name): If a font is specified for
20584 a frame, generate a fontset from the font.
20585 (build_scalable_font_name): If the scalable font is requested for
20586 a specific size, don't change that size.
20587 (try_font_list): Try a scalable font also in the case that a
20588 pattern string is specified.
20589
20590 2008-02-01 Kenichi Handa <handa@m17n.org>
20591
20592 * xfaces.c (Fface_font): New optional arg CHARACTER.
20593
20594 2008-02-01 Kenichi Handa <handa@m17n.org>
20595
20596 * charset.h (CHARSET_OFFSET): New macro.
20597
20598 2008-02-01 Kenichi Handa <handa@m17n.org>
20599
20600 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20601
20602 * fontset.c (fontset_face): Handle the case that repertory is a
20603 char-table.
20604 (find_font_encoding): Return nil for unknown encoding.
20605 (Fset_fontset_font): Ignore a font of unknown encoding.
20606
20607 2008-02-01 Kenichi Handa <handa@m17n.org>
20608
20609 * keymap.c (describe_vector): Handle default value of a char table.
20610
20611 * fontset.c (fontset_face): Handle fallback fonts correctly.
20612 (Ffontset_info): Return infomation about fallback fonts.
20613
20614 2008-02-01 Kenichi Handa <handa@m17n.org>
20615
20616 * fontset.c (FONTSET_DEFAULT): New macro.
20617 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20618 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20619 the case that it is nil.
20620 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20621 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20622
20623 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20624 subset or superset.
20625
20626 2008-02-01 Kenichi Handa <handa@m17n.org>
20627
20628 * emacs.c (main): Call init_charset after syms_of_XXX.
20629
20630 * charset.c (Vcharset_map_directory): Delete.
20631 (Vcharset_map_path): New variable.
20632 (load_charset_map_from_file): Use Vcharset_map_path instead.
20633 (init_charset): Initialize Vcharset_map_path.
20634 (syms_of_charset): Delete declaration of "charset-map-directory",
20635 add declaration of "charset-map-path".
20636
20637 2008-02-01 Kenichi Handa <handa@m17n.org>
20638
20639 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20640 ASCII only string.
20641
20642 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20643
20644 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20645 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20646
20647 2008-02-01 Kenichi Handa <handa@m17n.org>
20648
20649 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20650
20651 * coding.c (QCmnemonic, QCdefalut_char)
20652 (QCdecode_translation_table, QCencode_translation_table)
20653 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20654 (get_translation_table): Return a list of translation tables if
20655 necessary.
20656 (decode_coding): Call get_translation_table with ENCODEP 0.
20657 (char_encodable_p): If translation_table is non-nil, always call
20658 translate_char.
20659 (Fdefine_coding_system_internal): Accept list of translation
20660 tables as :encode-translation-table and :decode-translation-table.
20661 (Fcoding_system_put): New function.
20662 (syms_of_coding): Declare new symbols. Defsubr
20663 Scoding_system_put.
20664 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20665 typically JISX0212.
20666
20667 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20668 when the charset is superset type.
20669
20670 * character.c (translate_char): Accept list of translation tables.
20671
20672 2008-02-01 Kenichi Handa <handa@m17n.org>
20673
20674 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20675 (CODING_ATTR_TRANS_TBL): New macro.
20676
20677 * coding.c (get_translation_table): New function.
20678 (translate_chars): Fix the bug of skipping annotation data.
20679 (decode_coding, encode_coding): Utilize get_translation_table.
20680 (char_encodable_p, Funencodable_char_position): Translate char if
20681 necessary.
20682 (Ffind_coding_systems_region_internal)
20683 (Fcheck_coding_systems_region): Setup translation table for encode
20684 in a coding system attribute vector in advance.
20685 (Fdefine_coding_system_internal): Allow a symbol as translation
20686 table. For shift-jis type coding system, allow 4th charset.
20687
20688 2008-02-01 Kenichi Handa <handa@m17n.org>
20689
20690 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20691
20692 * xdisp.c (get_next_display_element): Pass -1 as POS to
20693 FACE_FOR_CHAR if displaying a C-string.
20694
20695 2008-02-01 Kenichi Handa <handa@m17n.org>
20696
20697 * composite.c (get_composition_id): Handle xoff and yoff in a
20698 composition rule.
20699
20700 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20701 (struct composition): New member lbearing and rbearing.
20702
20703 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20704 (x_get_glyph_overhangs): Handle a composition glyph.
20705 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20706
20707 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20708 composition glyph.
20709
20710 2008-02-01 Kenichi Handa <handa@m17n.org>
20711
20712 * print.c: Include charset.h.
20713 (Vprint_charset_text_property): New variable.
20714 (Qdefault): Extern it.
20715 (PRINT_STRING_NON_CHARSET_FOUND)
20716 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20717 (print_check_string_result): New variable.
20718 (print_check_string_charset_prop): New function.
20719 (print_prune_charset_plist): New variable.
20720 (print_prune_string_charset): New function.
20721 (print_object): Call print_prune_string_charset if
20722 Vprint_charset_text_property is not t.
20723 (print_interval): Print nothing if interval->plist is nil.
20724 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20725 variable. Init and staticpro print_prune_charset_plist.
20726
20727 2008-02-01 Kenichi Handa <handa@m17n.org>
20728
20729 * fontset.c (new_fontset_from_font_name): Use the specified font
20730 for all characters in the new fontset.
20731
20732 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20733 OBJECT args.
20734
20735 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20736 OBJECT args for composition too.
20737
20738 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20739 OBJECT args.
20740
20741 2008-02-01 Kenichi Handa <handa@m17n.org>
20742
20743 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20744
20745 * fontset.c (reorder_font_vector): Adjust for the change of
20746 FONT_DEF format.
20747 (fontset_face): New arg id. Change caller.
20748 (face_for_char): New args pos and object.
20749 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20750 (fs_query_fontset): Check NAME by Fassoc too.
20751 (Fset_fontset_font): Allow non-XLFD font name.
20752 (Ffontset_info): Adjust for the change of FONT_DEF format.
20753
20754 * fontset.h (face_for_char): Adjust prototype.
20755
20756 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20757 (append_space, extend_face_to_end_of_line)
20758 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20759 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20760
20761 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20762 POS and OBJECT args.
20763
20764 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20765 POS and OBJECT args.
20766
20767 2008-02-01 Jason Rumney <jasonr@gnu.org>
20768
20769 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20770 of GlobalAlloc'ed memory.
20771
20772 2008-02-01 Kenichi Handa <handa@m17n.org>
20773
20774 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20775
20776 * charset.h (charset_table_used): Delete extern.
20777
20778 * charset.c (charset_table_used): Make it static.
20779 (map_charset_chars): Fix args to c_function with.
20780
20781 * chartab.c (map_sub_char_table_for_charset): Fix args to
20782 c_function with.
20783
20784 * coding.h (enum coding_result_code): Delete
20785 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20786
20787 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20788 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20789 (Vlast_code_conversion_error): New variables.
20790 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20791 (ONE_MORE_BYTE): Record error if any instead of signaling an
20792 error. If non-ASCII multibyte char is found, return the negative
20793 value of the code. All callers changed to check it.
20794 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20795 (record_conversion_result): New function. Change all codes setting
20796 coding->result to call this function.
20797 (detect_coding_utf_8, decode_coding_utf_8)
20798 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20799 Don't use the local variable incomplete.
20800 (emacs_mule_char): Change the second arg to `const'.
20801 (decode_coding): Fix of flushing out unprocessed data.
20802 (make_conversion_work_buffer): Fix making of a work buffer.
20803 (decode_coding_object): Return coding->dst_object.
20804
20805 * fontset.c (set_fontset_font): Fix args.
20806
20807 * lisp.h (CHARACTERBITS): Define as 22.
20808
20809 * process.c (send_process): Be sure to set coding->src_multibyte.
20810
20811 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20812
20813 2008-02-01 Kenichi Handa <handa@m17n.org>
20814
20815 * xdisp.c (handle_auto_composed_prop): Give limit to
20816 Fnext_single_char_property_change.
20817
20818 2008-02-01 Kenichi Handa <handa@m17n.org>
20819
20820 * composite.c (syms_of_composite): Don't make the composition hash
20821 table weak.
20822
20823 * fontset.c (Fset_fontset_font): Fix docstring.
20824
20825 * lisp.h (detect_coding_system): Adjust prototype.
20826
20827 * fileio.c (kill_workbuf_unwind): Delete this function.
20828 (Finsert_file_contents): Adjust the call of detect_coding_system.
20829 Get conversion_buffer by code_conversion_save. Use the macro
20830 CODING_MAY_REQUIRE_DECODING. After decoding, update
20831 coding_system.
20832
20833 * coding.h (make_conversion_work_buffer): Delete extern.
20834 (code_conversion_save): Extern it.
20835
20836 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20837 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20838 (decode_coding_utf_8): Don't do eol converion.
20839 (detect_coding_utf_16): Check coding->src_chars, not
20840 coding->src_bytes. Add heuristics for those that have no signature.
20841 (decode_coding_emacs_mule, decode_coding_iso_2022)
20842 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20843 Don't do eol converion.
20844 (adjust_coding_eol_type): Return a new coding system.
20845 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20846 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20847 each change.
20848 (decode_coding): Pay attention to undo_list. Do eol conversion for
20849 all types of coding-systems (if necessary).
20850 (Vcode_conversion_work_buf_list): Delete it.
20851 (Vcode_conversion_reused_workbuf): Rename from
20852 Vcode_conversion_reused_work_buf.
20853 (Vcode_conversion_workbuf_name): New variable.
20854 (reused_workbuf_in_use): New variable.
20855 (make_conversion_work_buffer): Delete the arg DEPTH.
20856 (code_conversion_restore): Change argument to cons.
20857 (code_conversion_save): Delete the argument BUFFER. Change callers.
20858 (detect_coding_system): New argument src_chars. Change callers.
20859 Fix for utf-16 detection.
20860 (init_coding_once): Don't use ISO_carriage_return.
20861 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20862 reused_workbuf_in_use.
20863
20864 2008-02-01 Kenichi Handa <handa@m17n.org>
20865
20866 * keymap.c (store_in_keymap): Pay attention to the case that idx
20867 is a cons specifying a character range.
20868
20869 2008-02-01 Kenichi Handa <handa@m17n.org>
20870
20871 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20872 HANDLED_RECOMPUTE_PROPS.
20873
20874 * coding.c (Fdefine_coding_system_internal): Fix checking of
20875 ascii compatibility.
20876
20877 2008-02-01 Kenichi Handa <handa@m17n.org>
20878
20879 * charset.c (find_charsets_in_text): Delete unused locale variable.
20880 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20881
20882 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20883 Resync charset_list to Vemacs_mule_charset_list.
20884
20885 * keymap.c (store_in_keymap): Pay attention to the case that idx
20886 is a cons specifying a character range.
20887
20888 2008-02-01 Kenichi Handa <handa@m17n.org>
20889
20890 * composite.c (update_compositions): Bind inhibit-read-only, etc
20891 to t before calling remove-list-of-text-properties.
20892
20893 * print.c (print_object): Always print ASCII chars as is.
20894
20895 2008-02-01 Kenichi Handa <handa@m17n.org>
20896
20897 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20898
20899 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20900 is a char table.
20901
20902 2008-02-01 Kenichi Handa <handa@m17n.org>
20903
20904 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20905
20906 2008-02-01 Kenichi Handa <handa@m17n.org>
20907
20908 * xfaces.c (set_lface_from_font_name): Fix for the case that
20909 FONTNAME is not fontset name.
20910
20911 2008-02-01 Kenichi Handa <handa@m17n.org>
20912
20913 * fns.c (base64_encode_1): Fix previous change.
20914
20915 2008-02-01 Kenichi Handa <handa@m17n.org>
20916
20917 * fontset.c (set_fontset_font): New function.
20918 (Fset_fontset_font): If a font is specified for a charset, use
20919 map_charset_chars to store the font spec in a fontset.
20920
20921 2008-02-01 Kenichi Handa <handa@m17n.org>
20922
20923 * fontset.c (fontset_face): Create a fallback fontset on demand.
20924 (make_fontset): Don't create a fallback fontset here.
20925 (free_face_fontset): Free a fallback fontset (if any) too.
20926 (n_auto_fontsets): Delete this variable.
20927 (auto_fontset_alist): New variable.
20928 (new_fontset_from_font_name): Check auto_fontset_alist.
20929 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20930 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20931 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20932 Defsubr Sfontset_list_all.
20933
20934 2008-02-01 Kenichi Handa <handa@m17n.org>
20935
20936 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20937
20938 2008-02-01 Kenichi Handa <handa@m17n.org>
20939
20940 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20941
20942 2008-02-01 Kenichi Handa <handa@m17n.org>
20943
20944 * editfns.c (Fgoto_char): Fix docstring.
20945
20946 2008-02-01 Kenichi Handa <handa@m17n.org>
20947
20948 * insdel.c (insert_from_gap): Adjust intervals correctly.
20949
20950 2008-02-01 Jason Rumney <jasonr@gnu.org>
20951
20952 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20953 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20954 (w32_initialize): Try to load it.
20955 (x_get_font_repertory): Use it if available.
20956 (w32_encode_char): Add shortcut for unicode output.
20957
20958 * w32fns.c (w32_load_system_font): Default charset to -1.
20959 (x_to_w32_charset): Match all fonts for unicode.
20960 (w32_to_x_charset): New parameter matching. Don't return partial
20961 or wildcard charsets.
20962 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20963 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20964 (w32_to_x_font): Match charset to real charset.
20965 (enum_font_cb2): Always list unicode versions.
20966
20967 * makefile.w32-in (temacs): Increase EMHEAP.
20968
20969 2008-02-01 Jason Rumney <jasonr@gnu.org>
20970
20971 * w32term.c (w32_encode_char): New charset parameter.
20972 font_info.encoding becomes encoding_type.
20973 (x_get_font_repertory): New function. Warning: stub only!
20974 (x_new_font): Return quickly if font already set.
20975 (x_new_fontset): fontsetname parameter is Lisp_Object.
20976 Use new fs_query_fontset. Try new_fontset_from_font_name.
20977 Use fontset_name for return value.
20978
20979 * w32term.h: Declare x_get_font_repertory.
20980
20981 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20982 place of find_charset_in_text. Use encode_coding_object in place
20983 of encode_coding.
20984 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20985 decode_coding.
20986
20987 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20988 of x_new_fontset.
20989 (w32_load_system_font): Initialize charset as unicode.
20990 font_info.encoding becomes encoding_type.
20991 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20992 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20993 (syms_of_w32fns): Set get_font_repertory_func.
20994
20995 * w32console.c: Include character.h. Use terminal_encode_buffer
20996 from term.c.
20997 (write_glyphs): Use new version of encode_terminal_code. Use
20998 encode_coding_object in place of encode_coding.
20999
21000 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21001 encoding becomes encoding_type.
21002
21003 * term.c (terminal_encode_buffer): Make externally visible.
21004
21005 * makefile.w32-in: Add character.h dependancies.
21006 (character.o, chartab.o): New targets.
21007
21008 2008-02-01 Kenichi Handa <handa@m17n.org>
21009
21010 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21011 CODING_ID_EOL_TYPE.
21012
21013 2008-02-01 Andreas Schwab <schwab@suse.de>
21014
21015 * coding.c (produce_chars): Revert last change.
21016
21017 2008-02-01 Kenichi Handa <handa@m17n.org>
21018
21019 * charset.h (charset_unicode): Extern it.
21020
21021 * charset.c (string_xstring_p): Check by (C >= 0x100).
21022 (find_charsets_in_text): Change format of the arc CHARSETS. New
21023 arg MULTIBYTE.
21024 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21025 change of find_charsets_in_text.
21026 (Fsplit_char): Fix doc. Never return unknown.
21027
21028 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21029
21030 * coding.c (Fdefine_coding_system_alias): Update
21031 Vcoding_system_list.
21032
21033 * fontset.c (load_font_get_repertory): Pay attention to the case
21034 that ENCODING of a font is specified by a char-table.
21035
21036 * xterm.c (x_get_font_repertory): Handle the case that the
21037 encoding of font is other than Unicode.
21038
21039 2008-02-01 Kenichi Handa <handa@m17n.org>
21040
21041 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21042 if a character is encodable by the terminal coding system. If
21043 not, produces proper number of `?'s. Update
21044 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21045 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21046
21047 2008-02-01 Kenichi Handa <handa@m17n.org>
21048
21049 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21050 variables.
21051 (encode_terminal_code): Change argument. Encode multiple
21052 characters at once. Store the result of encoding in
21053 terminal_encode_buffer.
21054 (write_glyphs, insert_glyphs): Adjust for the change of
21055 encode_terminal_code.
21056 (term_init): Initialize terminal_encode_buffer and
21057 terminal_encode_buf_size.
21058
21059 * coding.c (consume_chars): If coding->src_object is nil, don't
21060 check annotation.
21061
21062 2008-02-01 Kenichi Handa <handa@m17n.org>
21063
21064 * character.c (char_string): Use ASCII_CHAR_P instead of
21065 SINGLE_BYTE_CHAR_P.
21066
21067 2008-02-01 Kenichi Handa <handa@m17n.org>
21068
21069 * xdisp.c (handle_auto_composed_prop): Check if the last
21070 characters of auto-composed region is newly composed with the
21071 following characters.
21072 (handle_composition_prop): Fix checking of point being inside
21073 composition.
21074
21075 2008-02-01 Kenichi Handa <handa@m17n.org>
21076
21077 * fns.c (concat): Don't change multibyteness of the result by
21078 concatenating an 8-bit character.
21079
21080 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21081 multibyteness of the result when newelt is an 8-bit character.
21082
21083 2008-02-01 Dave Love <fx@gnu.org>
21084
21085 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21086 EMACS_INT.
21087
21088 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21089
21090 * xfaces.c (face_numeric_value): Declare dim size_t.
21091 (Finternal_lisp_face_equal_p): Remove unused f.
21092
21093 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21094 (MATRIX_ROW): Remove unused vars.
21095 (draw_glyphs, x_insert_glyphs, fast_find_position)
21096 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21097 byte/char counts.
21098
21099 * regex.c (regex_compile): Remove unused var.
21100
21101 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21102
21103 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21104 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21105
21106 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21107
21108 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21109
21110 * fileio.c (Fwrite_region): Remove unused var.
21111
21112 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21113 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21114
21115 * composite.c (Fremove_list_of_text_properties): Declare.
21116
21117 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21118 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21119 (coding_inherit_eol_type): Remove unused attrs.
21120 (detect_coding): Cast arg of detect_eol.
21121
21122 * charset.c (syms_of_charset): Remove unused var p.
21123 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21124 byte/char counts.
21125
21126 * casetab.c (set_case_table): Remove unused var.
21127
21128 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21129 unused vars.
21130
21131 2008-02-01 Dave Love <fx@gnu.org>
21132
21133 * xterm.c (x_bitmap_mask): Declare.
21134
21135 2008-02-01 Dave Love <fx@gnu.org>
21136
21137 * xterm.c (x_term_init): Fix type error.
21138
21139 * lisp.h: Add Funibyte_char_to_multibyte.
21140
21141 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21142 (Fset_coding_system_priority): Doc fix.
21143
21144 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21145
21146 * indent.c (check_composition): Make start and end EMACS_INT.
21147
21148 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21149
21150 * xdisp.c (handle_composition_prop, check_point_in_composition):
21151 Make buffer positions EMACS_INT.
21152
21153 * composite.c (find_composition, run_composition_function)
21154 (update_compositions, Ffind_composition_internal): Make buffer
21155 positions EMACS_INT.
21156
21157 * composite.h (find_composition, update_compositions): Make
21158 position args EMACS_INT.
21159
21160 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21161
21162 * intervals.c (get_property_and_range):
21163 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21164
21165 * unexalpha.c: Don't include varargs.h.
21166
21167 2008-02-01 Dave Love <fx@gnu.org>
21168
21169 * coding.h (ENCODE_UTF_8): New.
21170
21171 * Makefile.in (gtkutil.o): Depend on coding.h.
21172
21173 * coding.c (Fset_coding_system_priority): Doc fix.
21174
21175 2008-02-01 Kenichi Handa <handa@m17n.org>
21176
21177 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21178 the case of auto saving.
21179
21180 2008-02-01 Andreas Schwab <schwab@suse.de>
21181
21182 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21183 `range' from GC.
21184
21185 2008-02-01 Kenichi Handa <handa@m17n.org>
21186
21187 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21188
21189 2008-02-01 Kenichi Handa <handa@m17n.org>
21190
21191 * fileio.c (choose_write_coding_system): Return a decided coding system.
21192 (Fwrite_region): Set Vlast_coding_system_used to the return value
21193 of choose_write_coding_system.
21194
21195 2008-02-01 Kenichi Handa <handa@m17n.org>
21196
21197 * charset.c (Fset_charset_priority): Pay attention to duplicated
21198 arguments.
21199
21200 * coding.c (QCcategory): New variable.
21201 (syms_of_coding): Defsym it. Set all elements of
21202 Vcoding_category_table and their symbol values.
21203 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21204 coding-category-XXX, and coding-category-list.
21205 (Fdefine_coding_system_internal): Add category in the plist.
21206
21207 2008-02-01 Kenichi Handa <handa@m17n.org>
21208
21209 * callproc.c (Fcall_process): Handle carryover correctly.
21210
21211 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21212 (raw_text_coding_system): Check NILP (coding_system).
21213 (coding_inherit_eol_type): Check NILP (coding_system) and
21214 NILP (parent).
21215 (consume_chars): Fix for the case of raw-text.
21216
21217 * process.c (read_process_output): Handle carryover correctly.
21218
21219 2008-02-01 Dave Love <fx@gnu.org>
21220
21221 * regex.c (re_search_2): Fix last change.
21222
21223 2008-02-01 Kenichi Handa <handa@m17n.org>
21224
21225 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21226 target_multibyte. Even in a unibyte case, return a converted
21227 multibyte char.
21228 (GET_CHAR_AFTER): New macro.
21229 (PATFETCH): Translate via multibyte char.
21230 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21231 (SETUP_MULTIBYTE_RANGE): New macro.
21232 (regex_compile): Setup compiled code so that its multibyteness
21233 matches that of a target. Fix the handling of "[X-YZ]" using
21234 SETUP_MULTIBYTE_RANGE.
21235 (analyse_first) <charset>: For filling fastmap for all multibyte
21236 characters, don't check by BASE_LEADING_CODE_P.
21237 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21238 the same as RE_MULTIBYTE_P (bufp) now.
21239 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21240 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21241 (TRANSLATE_VIA_MULTIBYTE): New macro.
21242 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21243 It is the same as RE_MULTIBYTE_P (bufp) now.
21244 <exactn>: Translate via multibyte.
21245 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21246 translate it.
21247 <charset, charset_not>: Fetch a character by
21248 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21249 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21250 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21251 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21252 by GET_CHAR_AFTER.
21253 (bcmp_translate): Likewise.
21254
21255 * search.c (compile_pattern): Check the member target_multibyte,
21256 not the member multibyte of buf.
21257
21258 * lread.c (read1): While reading a string, set force_singlebyte
21259 and force_multibyte correctly.
21260
21261 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21262 up of unibyte_to_multibyte_table.
21263
21264 2008-02-01 Kenichi Handa <handa@m17n.org>
21265
21266 * coding.c (setup_coding_system): If coding has
21267 post-read-conversion or pre-write-conversion, set
21268 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21269 respectively.
21270 (decode_coding_gap): Run post-read-conversion if any.
21271
21272 * fileio.c (Finsert_file_contents): Even if we read into a
21273 unibyte buffer, check if we must decode the result or not.
21274
21275 2008-02-01 Kenichi Handa <handa@m17n.org>
21276
21277 * coding.c (make_conversion_work_buffer): Change the work buffer
21278 name to the same one as that of Emacs 21.
21279
21280 2008-02-01 Kenichi Handa <handa@m17n.org>
21281
21282 * coding.h (make_conversion_work_buffer): Adjust prototype.
21283 (code_conversion_restore): Don't extern it.
21284
21285 * coding.c (detected_mask): Delete unused variable.
21286 (decode_coding_iso_2022): Pay attention to the byte sequence of
21287 CTEXT extended segment, and retain those bytes as is.
21288 (decode_coding_ccl): Delete unused variable `valids'.
21289 (setup_coding_system): Delete unused variable `category'.
21290 (consume_chars): Delete unused variable `category'. Make it work
21291 for non-multibyte case.
21292 (make_conversion_work_buffer): Change argument.
21293 (saved_coding): Delete unused variable.
21294 (code_conversion_restore): Don't check saved_coding->destination.
21295 (code_conversion_save): New function.
21296 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21297 instead of record_unwind_protect.
21298 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21299 (detect_coding_system): Delete unused variable `mask'.
21300 (Fdefine_coding_system_internal): Delete unused variable id.
21301
21302 * fileio.c (kill_workbuf_unwind): New function.
21303 (Finsert_file_contents): On replacing, call
21304 make_conversion_work_buffer with correct args, and call
21305 record_unwind_protect with the first arg kill_workbuf_unwind.
21306
21307 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21308
21309 2008-02-01 Kenichi Handa <handa@m17n.org>
21310
21311 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21312 (fontset_add): Fix for the case that TO is less than TO1.
21313 (Ffontset_info): Don't use fallback fontset on checking the
21314 default fontset.
21315 (dump_fontset): New function for debugging.
21316
21317 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21318 coding_type is Qcharset.
21319
21320 2008-02-01 Kenichi Handa <handa@m17n.org>
21321
21322 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21323 (map_char_table): Don't inherit the value from the parent on
21324 initializing VAL. Adjust for the above change.
21325
21326 2008-02-01 Kenichi Handa <handa@m17n.org>
21327
21328 * coding.c (Qsignature, Qendian): Delete these variables.
21329 (syms_of_coding): Don't initialize them.
21330 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21331 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21332 detect_info->found.
21333 (decode_coding_utf_16): Don't detect BOM here.
21334 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21335 is NOT utf_16_without_bom.
21336 (setup_coding_system): For a coding system of type utf-16, check
21337 if the attribute :endian is Qbig or not (not nil or not), and set
21338 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21339 (detect_coding): If coding type is utf-16 and BOM detection is
21340 required, detect it.
21341 (Fdefine_coding_system_internal): For a coding system of type
21342 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21343
21344 2008-02-01 Kenichi Handa <handa@m17n.org>
21345
21346 * coding.c (coding_set_source): Fix for the case that the current
21347 buffer is different from coding->src_object.
21348 (decode_coding_object): Don't use the conversion work buffer if
21349 DST_OBJECT is a buffer.
21350
21351 2008-02-01 Dave Love <fx@gnu.org>
21352
21353 * lread.c (read_emacs_mule_char) [len==2]: Index
21354 emacs_mule_charset correctly.
21355
21356 2008-02-01 Dave Love <fx@gnu.org>
21357
21358 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21359 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21360 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21361 treated specially.)
21362 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21363 (detected_mask): Remove Big5 bits.
21364
21365 2008-02-01 Kenichi Handa <handa@m17n.org>
21366
21367 The following changes are to make the font rescaling facility
21368 compatible with Emacs 21.
21369
21370 * xfaces.c (Vface_font_rescale_alist): Rename from
21371 Vface_resizing_fonts.
21372 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21373 (font_rescale_ratio): Rename from font_resizing_ratio.
21374 (split_font_name): Set font->rescale_ratio.
21375 (better_font_p): Pay attention to font->rescale_ratio.
21376 (build_scalable_font_name): Likewise. Change RESX, and RESY
21377 fields.
21378 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21379
21380 2008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21383 (Qutf_16_le): Remove these variables.
21384 (syms_of_coding): Don't DEFSYM them.
21385 (decode_coding_utf_16): Fix handling of BOM.
21386 (encode_coding_utf_16): Fix handling of BOM.
21387
21388 2008-02-01 Kenichi Handa <handa@m17n.org>
21389
21390 * fileio.c (Finsert_file_contents): On replacing, before decoding
21391 the file into the work buffer, set point of the work buffer to the end.
21392
21393 2008-02-01 Dave Love <fx@gnu.org>
21394
21395 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21396
21397 2008-02-01 Dave Love <fx@gnu.org>
21398
21399 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21400 and fix C types.
21401
21402 2008-02-01 Kenichi Handa <handa@m17n.org>
21403
21404 * xdisp.c (SKIP_GLYPHS): New macro.
21405 (set_cursor_from_row): Pay attention to string display properties.
21406
21407 * category.c (copy_category_entry): Fix for the case that RANGE
21408 is an integer.
21409
21410 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21411
21412 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21413
21414 2008-02-01 Kenichi Handa <handa@m17n.org>
21415
21416 * charset.c (Fcharset_id_internal): New function.
21417 (syms_of_charset): Defsubr it.
21418
21419 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21420 with the last arg charset_list acquired from coding.
21421 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21422 the attribute coding_attr_ccl_valids.
21423
21424 * coding.h (enum define_coding_ccl_arg_index): Set the first
21425 member coding_arg_ccl_decoder to coding_arg_max.
21426
21427 * ccl.h (ccl_driver): Adjust prototype.
21428
21429 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21430 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
21431 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
21432 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21433 last arg Qnil.
21434
21435 2008-02-01 Kenichi Handa <handa@m17n.org>
21436
21437 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21438 call encode_char.
21439
21440 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21441
21442 2008-02-01 Dave Love <fx@gnu.org>
21443
21444 * composite.c (syms_of_composite): Make composition_hash_table weak.
21445
21446 2008-02-01 Kenichi Handa <handa@m17n.org>
21447
21448 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21449 (font_name_registry): Don't extern them.
21450 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21451
21452 * fontset.h (Qfontset): Don't extern it.
21453 (new_fontset_from_font_name): Extern it.
21454
21455 * fontset.c: Give 8 extra slots to fontset objects.
21456 (Qfontset_info): New variable.
21457 (syms_of_fontset): Defsym it.
21458 (FONTSET_FALLBACK): New macro.
21459 (fontset_face): Try also the default fontset.
21460 (make_fontset): Realize a fallback fontset from the default fontset.
21461 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21462 using split_font_name_into_vector and build_font_name_from_vector.
21463 (Fset_fontset_font): Access the elements of font_spec by enum
21464 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21465 name by using split_font_name_into_vector.
21466 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21467 generate a proper font name from the fontset name. Update
21468 Vfontset_alias_alist.
21469 (n_auto_fontsets): New variable.
21470 (new_fontset_from_font_name): New function.
21471 (Ffont_info): Store the information about fonts generated from the
21472 default fontset in the first extra slot of the returned char-table.
21473
21474 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21475 (font_name_registry): Delete function.
21476 (split_font_name_into_vector): New function.
21477 (build_font_name_from_vector): New function.
21478 (font_list): The argument REGISTRY is now a list of registry names.
21479 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21480 specifies an explicit font name, return the name as is. Make a
21481 list of registy names.
21482
21483 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21484 of x_new_fontset.
21485 (Fx_create_frame): Don't call x_new_fontset here. Just use
21486 x_list_fonts to check the existence of fonts.
21487
21488 * xterm.h (x_new_fontset): Adjust prototype.
21489
21490 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21491 string. Use new_fontset_from_font_name to create a fontset from a
21492 font name.
21493
21494 2008-02-01 Kenichi Handa <handa@m17n.org>
21495
21496 * syntax.c (Vfind_word_boundary_function_table): New name for
21497 Vnext_word_boundary_function_table.
21498 (find-word-boundary-function-table): New name for
21499 next-word-boundary-function-table.
21500
21501 2008-02-01 Dave Love <fx@gnu.org>
21502
21503 * Makefile.in: Fix some dependencies.
21504
21505 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21506 set it to nil before returning.
21507
21508 * composite.c (update_compositions): Fix type error.
21509
21510 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21511
21512 2008-02-01 Kenichi Handa <handa@m17n.org>
21513
21514 * xterm.c (x_new_font): Optimize for the case that the font is
21515 already set for the frame.
21516
21517 2008-02-01 Kenichi Handa <handa@m17n.org>
21518
21519 * chartab.c (char_table_ascii): Check if the char table contents
21520 is sub-char-table or not.
21521 (char_table_set, char_table_set_range): Fix argument to
21522 char_table_ascii.
21523
21524 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21525 (detect_coding_utf_8, detect_coding_utf_16)
21526 (detect_coding_emacs_mule, detect_coding_iso_2022)
21527 (detect_coding_sjis, detect_coding_big5)
21528 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21529 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21530 sequence is valid in this coding system. Change callers.
21531 (MAX_ANNOTATION_LENGTH): New macro.
21532 (ADD_ANNOTATION_DATA): New macro.
21533 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21534 ADD_ANNOTATION_DATA. Change the format of annotation data.
21535 (ADD_CHARSET_DATA): New macro.
21536 (emacs_mule_char): New argument ID. Change callers.
21537 (decode_coding_emacs_mule, decode_coding_iso_2022)
21538 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21539 Produce charset annotation data in coding->charbuf.
21540 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21541 to charset annotation data in coding->charbuf.
21542 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21543 coding->common_flags if the coding system is iso-2022 based and
21544 uses designation.
21545 (produce_composition): Adjust for the new annotation data format.
21546 (produce_charset): New function.
21547 (produce_annotation): Handle charset annotation.
21548 (handle_composition_annotation, handle_charset_annotation): New
21549 functions.
21550 (consume_chars): Handle charset annotation. Utilize the above two
21551 functions.
21552 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21553 buffer, get the deleted text as a string and set
21554 coding->src_object to that string.
21555 (detect_coding, detect_coding_system): Use the new struct
21556 coding_detection_info.
21557
21558 * coding.h (struct coding_detection_info): New structure.
21559 (struct coding_system): Adjust prototype of the member `detector'.
21560 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21561
21562 2008-02-01 Kenichi Handa <handa@m17n.org>
21563
21564 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21565
21566 2008-02-01 Dave Love <fx@gnu.org>
21567
21568 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21569 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21570 to new local and nullify apropos_accumulate before returning.
21571 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21572
21573 2008-02-01 Kenichi Handa <handa@m17n.org>
21574
21575 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21576 correctly.
21577
21578 2008-02-01 Dave Love <fx@gnu.org>
21579
21580 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21581
21582 2008-02-01 Kenichi Handa <handa@m17n.org>
21583
21584 The following changes are to make character composition happen
21585 automatically on displaying.
21586
21587 * Makefile.in (lisp, shortlisp): Add composite.elc.
21588
21589 * composite.h (Qauto_composed, Vauto_composition_function)
21590 (Qauto_composition_function): Extern them.
21591
21592 * composite.c (Vcomposition_function_table)
21593 (Qcomposition_function_table): Delete variables.
21594 (Qauto_composed, Vauto_composition_function)
21595 (Qauto_composition_function): New variables.
21596 (run_composition_function): Don't call
21597 compose-chars-after-function.
21598 (update_compositions): Clear `auto-composed' text property.
21599 (compose_chars_in_text): Delete this function.
21600 (syms_of_composite): Staticpro Qauto_composed and
21601 Qauto_composition_function. Declare Vauto_composition_function as
21602 a Lisp variable.
21603
21604 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21605
21606 * xdisp.c (it_props): Add an entry for Qauto_composed.
21607 (handle_auto_composed_prop): New function.
21608
21609 * xselect.c (selection_data_to_lisp_data): Don't call
21610 compose_chars_in_text.
21611
21612 2008-02-01 Dave Love <fx@gnu.org>
21613
21614 * keyboard.c (read_char): Modify checking around use of
21615 Vkeyboard_translate_table.
21616
21617 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21618 and fix C types.
21619
21620 2008-02-01 Kenichi Handa <handa@m17n.org>
21621
21622 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21623 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21624 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21625 the case that the last byte is '\r' correctly.
21626 (decode_coding): Flush out the unprocessed data correctly.
21627 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21628
21629 2008-02-01 Dave Love <fx@gnu.org>
21630
21631 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21632 Add XK_ISO... case.
21633 (xaw_scroll_callback): Revert last change.
21634
21635 2008-02-01 Kenichi Handa <handa@m17n.org>
21636
21637 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21638
21639 2008-02-01 Kenichi Handa <handa@m17n.org>
21640
21641 * xfaces.c (Vface_resizing_fonts): New variable.
21642 (struct font_name): New member `resizing_ratio'.
21643 (font_resizing_ratio): New function.
21644 (split_font_name): Set font->resizing_ratio.
21645 (better_font_p): Pay attention to font->resizing_ratio.
21646 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21647 RESX, and RESY fields.
21648 (try_alternative_families): Try scalable fonts if
21649 Vscalable_fonts_allowed is not Qt.
21650 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21651
21652 2008-02-01 Dave Love <fx@gnu.org>
21653
21654 * xterm.c (xaw_scroll_callback): Cast correctly.
21655
21656 2008-02-01 Dave Love <fx@gnu.org>
21657
21658 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21659 (lispy_kana_keys): Comment out.
21660 (make_lispy_event) [XK_kana_A]: Comment out.
21661
21662 * xterm.c (xaw_scroll_callback): Cast call_data.
21663 (XTread_socket): Deal with ASCII keysyms.
21664 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21665
21666 2008-02-01 Dave Love <fx@gnu.org>
21667
21668 * xterm.c (Vx_keysym_table): New.
21669 (syms_of_xterm): Initialize it.
21670 (XTread_socket): Use it.
21671 From head: Eliminate incorrect optimization that tried to avoid
21672 decoding the output of X*LookupString.
21673 (x_get_font_repertory): Delete charset declaration.
21674
21675 2008-02-01 Kenichi Handa <handa@m17n.org>
21676
21677 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21678 return 0.
21679 (Fdefine_coding_system_internal): Setup
21680 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21681
21682 2008-02-01 Dave Love <fx@gnu.org>
21683
21684 * coding.c (Fcheck_coding_system): Doc fix.
21685
21686 * editfns.c (Finsert_byte): Return a proper value.
21687
21688 2008-02-01 Kenichi Handa <handa@m17n.org>
21689
21690 * coding.c (decode_coding): Fix args to translate_chars. Pay
21691 attention to Vstandard_translation_table_for_decode.
21692 (encode_coding): Fix args to translate_chars. Pay attention to
21693 Vstandard_translation_table_for_encode.
21694
21695 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21696 SINGLE_BYTE_CHAR_P.
21697
21698 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21699 not by SINGLE_BYTE_CHAR_P.
21700
21701 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21702 SINGLE_BYTE_CHAR_P.
21703
21704 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21705 SINGLE_BYTE_CHAR_P.
21706
21707 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21708 by SINGLE_BYTE_CHAR_P.
21709
21710 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21711 SINGLE_BYTE_CHAR_P.
21712
21713 2008-02-01 Dave Love <fx@gnu.org>
21714
21715 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21716
21717 2008-02-01 Dave Love <fx@gnu.org>
21718
21719 * fns.c (Flanginfo): Fix typo.
21720
21721 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21722
21723 2008-02-01 Kenichi Handa <handa@m17n.org>
21724
21725 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21726 (detect_coding_emacs_mule, detect_coding_iso_2022)
21727 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21728 incomplete byte sequence. Don't update *mask when correctly detected.
21729 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21730 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21731 (detect_coding, detect_coding_system): Adjust for the changes above.
21732
21733 2008-02-01 Kenichi Handa <handa@m17n.org>
21734
21735 * character.c (char_string): Rename from
21736 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21737 (string_char): Rename from string_char.
21738
21739 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21740 if C is greater than MAX_3_BYTE_CHAR.
21741 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21742 string_char instead of string_char_with_unification.
21743
21744 2008-02-01 Dave Love <fx@gnu.org>
21745
21746 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21747
21748 2008-02-01 Kenichi Handa <handa@m17n.org>
21749
21750 * keymap.c (push_key_description): Pay attention to force_multibyte.
21751
21752 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21753
21754 2008-02-01 Dave Love <fx@gnu.org>
21755
21756 * charset.c (define_charset_internal): Rename `supprementary'.
21757
21758 * Makefile.in (lisp, shortlisp): Remove latin-N.
21759
21760 2008-02-01 Dave Love <fx@gnu.org>
21761
21762 * xfns.c (x_window, x_window): Use use_xim.
21763
21764 * xterm.c (use_xim): Initialize.
21765 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21766 (x_term_init): Maybe set use_xim.
21767
21768 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21769
21770 2008-02-01 Kenichi Handa <handa@m17n.org>
21771
21772 * search.c (search_buffer): Fix case-fold-search of multibyte
21773 characters.
21774 (boyer_moore): Rename the last argument to char_high_bits.
21775
21776 2008-02-01 Kenichi Handa <handa@m17n.org>
21777
21778 * xdisp.c (display_string): Fix for the case of zero width glyph.
21779
21780 * xfns.c (x_set_font): Change the error message of the case that
21781 x_new_fontset returns Qt.
21782
21783 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21784 (Finternal_set_lisp_face_attribute): Use signal_error for the
21785 error of invalid fontset.
21786
21787 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21788 fontset, return Qt.
21789
21790 2008-02-01 Dave Love <fx@gnu.org>
21791
21792 * unexelf.c (unexec): Make .got handling not SGI-specific.
21793
21794 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21795
21796 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21797
21798 * keyboard.c (read_key_sequence): Fix type error.
21799
21800 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21801 type error.
21802
21803 * fontset.c (fontset_add): Return Lisp_Object.
21804
21805 2008-02-01 Dave Love <fx@gnu.org>
21806
21807 * charset.h (charset_ordered_list_tick): Declare extern.
21808
21809 2008-02-01 Kenichi Handa <handa@m17n.org>
21810
21811 The following changes (and some of 2008-02-01 changes of mine) are
21812 for handling syntax, category, and case conversion for unibyte
21813 characters by converting them to multibyte on the fly. With these
21814 changes, we don't have to setup syntax and case tables for unibyte
21815 characters in each language environment.
21816
21817 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21818 multibyte if necessary.
21819
21820 * bytecode.c (Fbyte_code): Likewise.
21821
21822 * character.h (LEADING_CODE_LATIN_1_MIN)
21823 (LEADING_CODE_LATIN_1_MAX): New macros.
21824 (unibyte_to_multibyte_table): Extern it.
21825 (unibyte_char_to_multibyte): New macro.
21826 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21827 (CHAR_LEADING_CODE): New macro.
21828 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21829
21830 * character.c (unibyte_to_multibyte_table): New variable.
21831 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21832 (multibyte_char_to_unibyte): If C is an eight-bit character,
21833 convert it to the corresponding byte value.
21834
21835 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21836 not 1, signals an error. Update the elements of
21837 unibyte_to_multibyte_table.
21838 (init_charset_once): Initialize unibyte_to_multibyte_table.
21839 (syms_of_charset): Define the charset `iso-8859-1'.
21840
21841 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21842 as is without converting it to unibyte. In a unibyte buffer,
21843 convert C to multibyte before checking the syntax.
21844
21845 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21846
21847 * minibuf.c (Fminibuffer_complete_word): Use the macro
21848 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21849
21850 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21851
21852 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21853 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21854 that is zero, convert an eight-bit char to multibyte.
21855 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21856 non-emacs case.
21857 (PATFETCH): Convert an eight-bit char to multibyte.
21858 (HANDLE_UNIBYTE_RANGE): New macro.
21859 (regex_compile): Setup the compiled pattern for multibyte chars
21860 even if the given regex string is unibyte. Use PATFETCH_RAW
21861 instead of PATFETCH in many places. To handle `charset'
21862 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21863 only for ASCII chars.
21864 (analyse_first) <exactn>: Simplify because the compiled pattern
21865 is multibyte.
21866 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21867 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21868 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21869 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21870 multibyte always 1.
21871 (re_search_2): In emacs, set the locale variable multibyte to 1,
21872 otherwise to 0. New local variable target_multibyte. Check it
21873 to decide the multibyteness of STR1 and STR2. If
21874 target_multibyte is zero, convert unibyte chars to multibyte
21875 before translating and checking fastmap.
21876 (TARGET_CHAR_AND_LENGTH): New macro.
21877 (re_match_2_internal): In emacs, set the locale variable multibyte
21878 to 1, otherwise to 0. New local variable target_multibyte. Check
21879 it to decide the multibyteness of STR1 and STR2. Use
21880 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21881 <charset, charset_not>: If multibyte is nonzero, check fastmap
21882 only for ASCII chars. Call bcmp_translate with
21883 target_multibyte, not with multibyte.
21884 <begline>: Declare the local variable C as `unsigned'.
21885 (bcmp_translate): Change the last arg name to target_multibyte.
21886
21887 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21888 the regexp pattern and the matching target. Set cp->buf.multibyte
21889 to the multibyteness of the regexp pattern. Set
21890 cp->but.target_multibyte to the multibyteness of the matching target.
21891 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21892 FETCH_STRING_CHAR_ADVANCE.
21893 (Freplace_match): Convert unibyte chars to multibyte.
21894
21895 * syntax.c (char_quoted, back_comment, scan_words)
21896 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21897 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21898 unibyte chars to multibyte.
21899 (skip_chars): Delete the arg syntaxp, and move the code for
21900 handling syntaxes to skip_syntaxes. Change callers.
21901 Fix the case that the multibyteness of STRING and the current
21902 buffer doesn't match.
21903 (skip_syntaxes): New function.
21904 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21905 SINGLE_BYTE_CHAR_P.
21906
21907 2008-02-01 Kenichi Handa <handa@m17n.org>
21908
21909 * xfaces.c (QCfontset): New variable.
21910 (LFACE_FONTSET): New macro.
21911 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21912 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21913 (Finternal_set_lisp_face_attribute)
21914 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21915 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21916 check also LFACE_FONTSET_INDEX.
21917 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21918 attrs[LFACE_FONT_INDEX].
21919 (syms_of_xfaces): Intern and staticpro QCfontset.
21920
21921 * dispextern.h (enum lface_attribute_index): New member
21922 LFACE_FONTSET_INDEX.
21923
21924 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21925
21926 2008-02-01 Kenichi Handa <handa@m17n.org>
21927
21928 * coding.c (coding_set_destination): Fix coding->destination for
21929 the case converting a region.
21930 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21931 (encode_coding_object): Fix coding->dst_pos and
21932 coding->dst_pos_byte for the case converting a region.
21933
21934 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21935
21936 * character.h (BYTE8_STRING): New macro.
21937
21938 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21939
21940 2008-02-01 Kenichi Handa <handa@m17n.org>
21941
21942 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21943 characters by octal form.
21944
21945 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21946
21947 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21948 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21949 _fetch_multibyte_char_len.
21950 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21951
21952 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21953
21954 * casefiddle.c (casify_object): Simplify. Handle the case that
21955 the case conversion change the byte length.
21956 (casify_region): Likewise.
21957
21958 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21959
21960 * character.c (_fetch_multibyte_char_len): Delete this variable.
21961 (syms_of_character): Setup Vprintable_chars.
21962
21963 * editfns.c (Fchar_equal): Fix for the unibyte case.
21964 (Finsert_byte): New function.
21965 (syms_of_editfns): Defsubr it.
21966
21967 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21968 of direct code 0x3ffff.
21969
21970 * search.c (Freplace_match): Fix for the unibyte case.
21971
21972 2008-02-01 Kenichi Handa <handa@m17n.org>
21973
21974 * lread.c (safe_to_load_p): Fix the logic.
21975
21976 * syntax.c (scan_words): Don't treat characters belonging to
21977 different scripts as constituting a word.
21978
21979 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21980
21981 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21982
21983 * emacs.c (main): In the case of --unibyte, instead of aborting on
21984 finding non-empty buffer, make it unibyte.
21985
21986 2008-02-01 Kenichi Handa <handa@m17n.org>
21987
21988 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21989 to create a fontset.
21990
21991 2008-02-01 Dave Love <fx@gnu.org>
21992
21993 * character.c (Funibyte_char_to_multibyte): Doc fix.
21994
21995 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21996
21997 2008-02-01 Kenichi Handa <handa@m17n.org>
21998
21999 * fontset.c (fontset_add): Make the type `int'.
22000 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22001
22002 * character.c (unibyte_char_to_multibyte)
22003 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22004 charset_unibyte, not charset_primary.
22005
22006 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22007
22008 * charset.c (charset_unibyte): Rename from charset_primary.
22009 (Funibyte_charset): Rename from Fprimary_charset.
22010 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22011 (syms_of_charset): Adjust for the above changes.
22012
22013 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22014 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22015 it->multibyte_p is zero.
22016
22017 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22018 Delete extern.
22019
22020 2008-02-01 Kenichi Handa <handa@m17n.org>
22021
22022 * coding.c (Fdefine_coding_system_internal): Fix category setting
22023 for a coding system of type iso-2022.
22024
22025 2008-02-01 Kenichi Handa <handa@m17n.org>
22026
22027 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22028
22029 2008-02-01 Kenichi Handa <handa@m17n.org>
22030
22031 * syntax.c (Vnext_word_boundary_function_table): New variable.
22032 (next-word-boundary-function-table): Declare it as a Lisp variable
22033 in syms_of_syntax.
22034 (scan_words): Call functions in Vnext_word_boundary_function_table
22035 if any.
22036
22037 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22038
22039 * fontset.c (fs_load_font): If fontp->charset is not negative,
22040 return fontp without setting its members.
22041
22042 2008-02-01 Dave Love <fx@gnu.org>
22043
22044 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22045
22046 * m/sparc.h (HAVE_ALLOCA): Delete.
22047
22048 * s/irix6-5.h: Don't include strings.h.
22049 (bcopy, bzero, bcmp): Don't undef.
22050
22051 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22052
22053 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22054 (TIOCSIGSEND): Don't test IRIX6.
22055 (bcopy, bzero, bcmp): Define conditionally.
22056
22057 2008-02-01 Kenichi Handa <handa@m17n.org>
22058
22059 * buffer.c (Qas, Qmake, Qto): New variables.
22060 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22061 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22062
22063 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22064 we are inserting a process output into a multibyte buffer.
22065
22066 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22067 multibyte_char_to_unibyte.
22068
22069 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22070 by the primary charset, make it eight-bit char.
22071 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22072
22073 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22074 (charset_8_bit__control, charset_8_bit_graphic)
22075 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22076 (define_charset_internal): New function.
22077 (syms_of_charset): Call define_charset_internal for pre-defined
22078 charsets.
22079
22080 * charset.h (charset_8_bit): Extern it.
22081
22082 * coding.c (make_conversion_work_buffer): Adjust for the change
22083 of Fset_buffer_multibyte.
22084 (encode_coding_raw_text): Increment p0 in the loop.
22085
22086 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22087
22088 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22089 for the change of Fset_buffer_multibyte.
22090
22091 * fns.c (Fstring_to_multibyte): New function.
22092 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22093
22094 2008-02-01 Dave Love <fx@gnu.org>
22095
22096 * xfns.c (x_put_x_image): Declare args.
22097
22098 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22099 (try_font_list): Declare an arg.
22100
22101 * xdisp.c (message2_nolog, set_message): Declare an arg.
22102
22103 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22104
22105 * syntax.c (scan_sexps_forward): Declare an arg.
22106
22107 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22108 Declare an arg.
22109
22110 * lisp.h (Fnew_fontset): Declare.
22111
22112 * keymap.c (push_key_description): Call CHARACTERP correctly.
22113
22114 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22115 (face_for_char): Delete unused vars.
22116 (Fset_fontset_font): Doc fix. Delete unused vars.
22117
22118 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22119
22120 * composite.c (update_compositions): Declare arg.
22121
22122 * cm.c (calccost, cmgoto): Declare args.
22123
22124 * charset.c: Remove `emacs' conditional. Doc fixes.
22125 (map_char_table_for_charset): Declare.
22126
22127 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22128
22129 * ccl.c: Remove `emacs' conditional.
22130
22131 2008-02-01 Kenichi Handa <handa@m17n.org>
22132
22133 The following changes are to allow specifying multiple font
22134 patterns for a character range (specified by script or charset).
22135
22136 * Makefile.in (abbrev.o): Depend on syntax.h.
22137 (xfaces.o): Depend on charset.h.
22138
22139 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22140 SINGLE_BYTE_CHAR_P.
22141
22142 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22143
22144 * character.h (Vchar_script_table): Extern it.
22145
22146 * character.c (Vscript_alist): Delete.
22147 (Vchar_script_table, Qchar_script_table): New variable.
22148 (syms_of_character): Declare Vchar_script_table as a lisp variable
22149 and initialize it.
22150
22151 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22152 have property char-table-extra-slots, make no extra slot.
22153
22154 * dispextern.h (struct face): Delete member `charset'.
22155 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22156 SINGLE_BYTE_CHAR_P.
22157 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22158 Add prototypes.
22159 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22160 (generate_ascii_font_name): Rename from generate_ascii_font.
22161
22162 * fontset.h (get_font_repertory_func): New prototype.
22163 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22164 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22165
22166 * fontset.c (Qprepend, Qappend): New variables.
22167 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22168 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22169 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22170 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22171 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22172 (load_font_get_repertory): New functions.
22173 (fontset_set): Delete.
22174 (fontset_face): New arg FACE. Return face ID, not face.
22175 Complete re-write to handle new fontset structure. Change caller.
22176 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22177 (face_for_char): Don't call lookup_face.
22178 (make_fontset_for_ascii_face): New arg FACE.
22179 (fs_load_font): New arg CHARSET_ID. Don't check
22180 Vfont_encoding_alist here.
22181 (find_font_encoding): New function.
22182 (list_fontsets): Use STRINGP, not ! NILP.
22183 (accumulate_script_ranges): New function.
22184 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22185 re-written to handle new fontset structure.
22186 (Ffontset_font): Return a copy of element.
22187 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22188 docstring of font-encoding-alist.
22189
22190 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22191 (Fset_fotset_font): Fix arguments to 5.
22192
22193 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22194
22195 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22196 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22197 (highlight_trailing_whitespace): Adjust for the change of
22198 lookup_named_face.
22199
22200 * xfaces.c: Include charset.h.
22201 (load_face_font): Delete argument C. Change caller.
22202 (generate_ascii_font_name): Rename from generate_ascii_font.
22203 (font_name_registry): New function.
22204 (cache_face): Store ascii faces before non-ascii faces in buckets.
22205 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22206 Lookup only ascii faces.
22207 (lookup_non_ascii_face): New function.
22208 (lookup_named_face): Delete argument C. Change caller.
22209 (lookup_derived_face): Delete argument C. Change caller.
22210 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22211 a string, just call font_list with it.
22212 (choose_face_font): Delete arguments FACE and C. New arg
22213 FONT_SPEC. Change caller.
22214 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22215 Change caller.
22216 (realize_non_ascii_face): New function.
22217 (realize_x_face): Call load_face_font here.
22218 (realize_tty_face): Delete argument C. Change caller.
22219 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22220 get a face ID.
22221 (dump_realized_face): Don't print charset of FACE.
22222
22223 * xfns.c (x_set_font): Always call x_new_fontset and
22224 store_frame_parameter.
22225 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22226 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22227
22228 * xterm.h (x_get_font_repertory): Extern it.
22229
22230 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22231 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22232 it->multibyte_p is zero.
22233 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22234 (x_new_fontset): If FONTSETNAME doesn't match any existing
22235 fontsets, create a new one.
22236 (x_get_font_repertory): New function.
22237
22238 2008-02-01 Kenichi Handa <handa@m17n.org>
22239
22240 * coding.c (Ffind_coding_systems_region_internal): Detect an
22241 ASCII only string correctly.
22242
22243 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22244 version is 0.
22245
22246 2008-02-01 Kenichi Handa <handa@m17n.org>
22247
22248 * lread.c: Include "coding.h".
22249 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22250 (load_each_byte, unread_char): New variables.
22251 (readchar_backlog): Delete.
22252 (readchar): Return a character unless load_each_byte is nonzero.
22253 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22254 cons. If unread_char is not -1, simply return it.
22255 (unreadchar): Handle the case that readcharfun is
22256 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22257 (read_multibyte): Delete.
22258 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22259 (read_emacs_mule_char): New functions.
22260 (Fload): Even if the file doesn't have the extension ".elc", if
22261 safe_to_load_p returns a positive version number, assume that the
22262 file contains bytecompiled code. If the version is less than 22,
22263 load the file while decoding multibyte sequences by emacs-mule.
22264 (readevalloop): Don't use readchar_backlog.
22265 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22266 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22267 (read_escape): Delete the arg BYTEREP.
22268 (read1): Set load_each_byte to 1 temporarily while handling
22269 #@NUMBER. Don't call read_multibyte.
22270 (read_vector): Call Fread with a cons. If readcharfun is
22271 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22272 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22273 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22274 and Qload_force_doc_strings.
22275
22276 2008-02-01 Kenichi Handa <handa@m17n.org>
22277
22278 * xdisp.c (face_before_or_after_it_pos): Call
22279 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22280
22281 2008-02-01 Kenichi Handa <handa@m17n.org>
22282
22283 * character.h (TRAILING_CODE_P): New macro.
22284 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22285 (string_char_with_unification): Fix prototype.
22286 (Vscript_alist): Extern it.
22287
22288 * character.c (Vscript_alist): New variable.
22289 (string_char_with_unification, str_as_unibyte)
22290 (string_escape_byte8): Add `const' to local variables.
22291 (syms_of_character): Declare script-alist as a Lisp variable.
22292
22293 * charset.h (Vcharset_ordered_list): Extern it.
22294 (charset_ordered_list_tick): Extern it.
22295 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22296 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22297 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22298 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22299 (Funify_charset): Adjust for the change of Funify_charset.
22300
22301 * charset.c (charset_ordered_list_tick): New variable.
22302 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22303 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
22304 deunify instead of unify a charset.
22305 (string_xstring_p): Add `const' to local variables.
22306 (find_charsets_in_text): Add `const' to arguments and local variables.
22307 (encode_char): Adjust for the change of Funify_charset. Fix
22308 detecting of invalid code.
22309 (Fset_charset_priority): Increment charset_ordered_list_tick.
22310 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22311 and TO_CODE.
22312
22313 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22314 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22315 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22316 (decode_coding_ccl, consume_chars)
22317 (Ffind_coding_systems_region_internal)
22318 (Fcheck_coding_systems_region): Add `const' to local variables.
22319
22320 * print.c (print_object): Use octal form for printing the
22321 contents of a bool vector.
22322
22323 2008-02-01 Dave Love <fx@gnu.org>
22324
22325 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22326 <version == 20>: Refuse to load.
22327
22328 2008-02-01 Dave Love <fx@gnu.org>
22329
22330 * fns.c: Move coding.h.
22331 (Qcodeset, Qdays, Qmonths): New.
22332 (concat): Use CHARACTERP instead of INTEGERP.
22333 (Flocale_codeset): Delete.
22334 (Flanginfo): New function.
22335 (syms_of_fns): Change accordingly.
22336
22337 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22338
22339 2008-02-01 Dave Love <fx@gnu.org>
22340
22341 * casetab.c (init_casetab_once, init_casetab_once): Fix
22342 CHAR_TABLE_SET call.
22343
22344 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22345
22346 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22347
22348 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22349 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22350 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22351
22352 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22353
22354 * coding.c (ENCODE_DESIGNATION, decode_eol)
22355 (make_conversion_work_buffer, code_conversion_restore)
22356 (Fdefine_coding_system_internal): Convert Lisp types.
22357 (code_conversion_restore): Use EQ, not ==.
22358 (Fencode_coding_string): Fix code_convert_string call.
22359
22360 * coding.h (code_convert_region): Fix prototype.
22361
22362 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22363
22364 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22365 (Ffontset_info): Convert Lisp types.
22366
22367 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22368
22369 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22370
22371 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22372
22373 * chartab.c: Include "...h", not <...h> in some cases.
22374
22375 * callproc.c (Fcall_process): Remove unused variables.
22376
22377 2008-02-01 Dave Love <fx@gnu.org>
22378
22379 * coding.c (Fset_coding_system_priority): Allow null arg list.
22380
22381 2008-02-01 Dave Love <fx@gnu.org>
22382
22383 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22384 (Fself_insert_and_exit): Use CHARACTERP.
22385
22386 * callproc.c (Fcall_process): Remove unused vars.
22387
22388 * xterm.c (XTread_socket): Add extra dead keysyms.
22389
22390 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22391
22392 * dispextern.h: Remove prototypes for redraw_frame,
22393 redraw_garbaged_frames.
22394
22395 * cmds.c (Fself_insert_command): Use CHARACTERP.
22396
22397 * chartab.c (make_sub_char_table): Remove unused var.
22398 (Fset_char_table_default, Fmap_char_table): Doc fix.
22399
22400 * keymap.c (access_keymap): Remove generic char code.
22401 (push_key_description): Use CHARACTERP.
22402
22403 2008-02-01 Dave Love <fx@gnu.org>
22404
22405 * charset.c: Doc fixes.
22406 (Funify_charset): Extra checking.
22407
22408 2008-02-01 Dave Love <fx@gnu.org>
22409
22410 * lread.c: Remove some unused variables.
22411 (safe_to_load_p): If safe, return the magic number version byte.
22412 (Fload): Maybe use load-with-code-conversion.
22413
22414 2008-02-01 Kenichi Handa <handa@m17n.org>
22415
22416 * category.c (Fmodify_category_entry): Don't modify the contents
22417 of category_set for characters out of the range. Avoid
22418 unnecessary modification.
22419
22420 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22421 Vchar_unify_table. The default value of the table is now nil.
22422
22423 * character.c (syms_of_character): Setup Vchar_width_table for
22424 eight-bit-control and raw-byte chars.
22425
22426 * charset.h (enum define_charset_arg_index): Delete
22427 charset_arg_parents and add charset_arg_subset and
22428 charset_arg_superset.
22429 (enum charset_attr_index): Delete charset_parents and add
22430 charset_subset and charset_superset.
22431 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22432 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22433 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22434 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22435 (CHARSET_SUPERSET): New macros.
22436 (charset_work): Extern it.
22437 (ENCODE_CHAR): Use charset_work.
22438 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22439 (map_charset_chars): Extern it.
22440
22441 * charset.c (load_charset_map): Set the default value of encoder
22442 and deunifier char-tables to nil.
22443 (map_charset_chars): Change argument. Change callers. Use
22444 map_char_table_for_charset instead of map_char_table.
22445 (Fmap_charset_chars): New optional args from_code and to_code.
22446 (Fdefine_charset_internal): Adjust for the change of
22447 `define-charset' (:parents -> :subset or :superset).
22448 (charset_work): New variable.
22449 (encode_char, syms_of_charset): Adjust for the change of
22450 Fdefine_charset_internal.
22451 (Ffind_charset_string): Setup the vector `charsets' correctly.
22452
22453 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22454 the previous change.
22455 (char_table_ref_and_range): Adjust for the above change.
22456 (map_sub_char_table_for_charset): New function.
22457 (map_char_table_for_charset): New function.
22458
22459 * keymap.c (describe_vector): Handle a char-table directly here.
22460 (describe_char_table): Delete.
22461
22462 * lisp.h (map_charset_chars): Delete.
22463
22464 2008-02-01 Dave Love <fx@gnu.org>
22465
22466 * fns.c (count_combining): Comment out (unused).
22467 (Flocale_codeset): New.
22468 (syms_of_fns): Defsubr it.
22469
22470 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22471 (size_t): Remove.
22472
22473 2008-02-01 Dave Love <fx@gnu.org>
22474
22475 * Makefile.in (chartab.o): Depend on charset.h.
22476
22477 2008-02-01 Kenichi Handa <handa@m17n.org>
22478
22479 * character.c (syms_of_character): Set the default value of
22480 Vprintable_chars to Qnil.
22481
22482 2008-02-01 Dave Love <fx@gnu.org>
22483
22484 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22485
22486 2008-02-01 Kenichi Handa <handa@m17n.org>
22487
22488 * charset.c (load_charset_map): Handle the case that from < to
22489 correctly.
22490
22491 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22492 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22493 Pay attention to raw-8-bit chars.
22494
22495 2008-02-01 Kenichi Handa <handa@m17n.org>
22496
22497 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22498 It is not bytecompiled now.
22499
22500 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22501 (charset_jisx0208): New variables.
22502 (Fdefine_charset_internal): Setup them if appropriate.
22503 (init_charset_once): Initialize them to -1.
22504
22505 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22506 (charset_jisx0208): Extern them.
22507
22508 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22509 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22510 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22511 (setup_iso_safe_charsets): Fix arguments to Fassq.
22512 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22513 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22514 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22515 (encode_coding_iso_2022): Change the 1st arg to
22516 ENCODE_ISO_CHARACTER to a variable.
22517
22518 2008-02-01 Kenichi Handa <handa@m17n.org>
22519
22520 * charset.h (enum define_charset_arg_index): New enums
22521 charset_arg_min_code and charset_arg_max_code.
22522 (struct charset): New member char_index_offset.
22523
22524 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22525 Take charset->char_index_offset into account.
22526 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22527 args[charset_arg_max_code]. Setup charset.char_index_offset.
22528 (syms_of_charset): Fix args to Fdefine_charset_internal.
22529
22530 2008-02-01 Dave Love <fx@gnu.org>
22531
22532 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22533
22534 2008-02-01 Dave Love <fx@gnu.org>
22535
22536 * coding.c: Doc fixes.
22537 (Fcoding_system_aliases): Fix return value.
22538 (Qmac): Remove (duplicated) definition.
22539
22540 2008-02-01 Dave Love <fx@gnu.org>
22541
22542 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22543 New functions.
22544
22545 * character.c (Fstring): Doc fix.
22546
22547 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22548
22549 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
22550 (font-encoding-alist): Doc fix.
22551
22552 2008-02-01 Dave Love <fx@gnu.org>
22553
22554 * term.c (costs_set): Declare static, non-initialized for pcc.
22555 (encode_terminal_code): Remove unused var.
22556
22557 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22558 for K&R.
22559
22560 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22561
22562 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22563 (suffixes): Move out of make_subsidiaries for K&R.
22564
22565 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22566
22567 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22568
22569 2008-02-01 Dave Love <fx@gnu.org>
22570
22571 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22572
22573 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22574
22575 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22576
22577 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22578
22579 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22580
22581 2008-02-01 Kenichi Handa <handa@m17n.org>
22582
22583 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22584 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22585
22586 2008-02-01 Kenichi Handa <handa@m17n.org>
22587
22588 * coding.c (decode_coding_charset): Adjust for the change of
22589 Fdefine_coding_system_internal.
22590 (Fdefine_coding_system_internal): For a coding system of
22591 `charset' type, store a list of charset IDs in
22592 `charset_attr_charset_valids' element of coding attributes.
22593
22594 2008-02-01 Kenichi Handa <handa@m17n.org>
22595
22596 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22597 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22598 caller. Handle 2-byte and 3-byte charsets correctly.
22599 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22600 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22601 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22602 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22603 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22604 sequence.
22605 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22606 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22607 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22608 and alt&rule composition.
22609 (decode_coding_iso_2022): Handle composition correctly.
22610 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22611
22612 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22613 re-defining a charset. If the charset has :emacs-mule-id, setup
22614 emacs_mule_bytes.
22615 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22616
22617 2008-02-01 Kenichi Handa <handa@m17n.org>
22618
22619 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22620 (encode_coding_big5, encode_coding_charset): If coding requires safe
22621 encoding, produce a character specified by
22622 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22623
22624 2008-02-01 Dave Love <fx@gnu.org>
22625
22626 * xterm.c (XSetIMValues): Declare.
22627
22628 * process.c: Conditionally include sys/wait.h, pty.h.
22629
22630 * print.c (print_object): Fix print format for 64-bit systems.
22631
22632 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22633
22634 * buffer.c (emacs_strerror): Declare.
22635
22636 * fontset.c (Fclear_face_cache): Declare.
22637 (accumulate_font_info): Comment-out (unused).
22638 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22639 variables.
22640
22641 * character.h (string_escape_byte8): Declare.
22642
22643 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22644 unused vars.
22645 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22646 (Fmap_charset_chars): Doc fix.
22647
22648 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22649 (Fset_coding_system_priority, Fset_coding_system_priority)
22650 (Fdefine_coding_system_internal): Doc fix.
22651
22652 2008-02-01 Dave Love <fx@gnu.org>
22653
22654 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22655
22656 2008-02-01 Kenichi Handa <handa@m17n.org>
22657
22658 * character.c (string_escape_byte8): Make multibyte string with
22659 correct size.
22660
22661 * charset.c (Fmake_char): Delete unnecessary code.
22662
22663 2008-02-01 Kenichi Handa <handa@m17n.org>
22664
22665 * xfns.c (x_encode_text): Allocate coding.destination here, and
22666 call encode_coding_object with dst_object Qnil.
22667
22668 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22669 multibyte form correctly.
22670
22671 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22672 against Vfont_encoding_alist.
22673
22674 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22675 handling of charset list.
22676 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22677 (decode_coding_object): Move point to coding->dst_pos before
22678 calling post-read-conversion function.
22679 (encode_coding_object): Give correct arguments to
22680 pre-write-conversion. Ignore the return value of
22681 pre-write-conversion function. Pay attention to the case that
22682 pre-write-conversion changes the current buffer. If dst_object is
22683 Qt, even if coding->src_bytes is zero, allocate at least one byte
22684 to coding->destination.
22685
22686 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22687
22688 * charset.c (Fmake_char): Make it more backward compatible.
22689 (Fmap_charset_chars): Fix docstring.
22690
22691 2008-02-01 Dave Love <fx@gnu.org>
22692
22693 * coding.c: Doc fixes.
22694 (Fdefine_coding_system_alias): Use names, not symbols, in
22695 coding-system-alist.
22696
22697 2008-02-01 Kenichi Handa <handa@m17n.org>
22698
22699 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22700 of calling free_realized_face.
22701
22702 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22703
22704 * charset.c (read_hex): Don't treat SPC as a comment starter.
22705 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22706 (Fdecode_char): Fix typo.
22707
22708 2008-02-01 Kenichi Handa <handa@m17n.org>
22709
22710 * charset.h (struct charset): New member `code_space_mask'.
22711
22712 * coding.c (coding_set_source): Delete the local variable beg_byte.
22713 (encode_coding_charset, Fdefine_coding_system_internal):
22714 Delete the local variable charset.
22715 (Fdefine_coding_system_internal): Setup
22716 attrs[coding_attr_charset_valids] correctly.
22717
22718 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22719 member to check if CODE is valid or not.
22720 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22721 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22722 is within the range of charset->min_code and carset->max_code.
22723
22724 2008-02-01 Dave Love <fx@gnu.org>
22725
22726 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22727
22728 * dispextern.h (generate_ascii_font): Fix return type.
22729
22730 * xfaces.c (generate_ascii_font): Fix arg declaration.
22731
22732 * coding.c (coding_inherit_eol_type)
22733 (Fset_terminal_coding_system_internal)
22734 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22735
22736 2008-02-01 Kenichi Handa <handa@m17n.org>
22737
22738 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22739 multiple charsets correctly.
22740
22741 2008-02-01 Kenichi Handa <handa@m17n.org>
22742
22743 * search.c (boyer_moore): Fix handling of multibyte character
22744 translation.
22745
22746 * xdisp.c (display_mode_element): When the variable `elt' is
22747 changed, update `this' and `lisp_string'.
22748
22749 2008-02-01 Kenichi Handa <handa@m17n.org>
22750
22751 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22752
22753 * callproc.c (Fcall_process): Be sure to give the current buffer
22754 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22755
22756 * charset.c (struct charset_map_entries): New struct.
22757 (load_charset_map): Rename from parse_charset_map. New args
22758 entries and n_entries. Change caller.
22759 (load_charset_map_from_file): Rename from load_charset_map.
22760 Change caller. New arg control_flag. Call load_charset_map at
22761 the tail.
22762 (load_charset_map_from_vector): New function.
22763 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22764 (encode_char): If the charset is compact, change a character index
22765 to a code point.
22766
22767 * coding.c (coding_alloc_by_making_gap): Check the case that the
22768 source and destination are the same correctly.
22769 (decode_coding_raw_text): Set coding->consumed_char and
22770 coding->consumed to 0.
22771 (produce_chars): If coding->chars_at_source is nonzero, update
22772 coding->consumed_char and coding->consumed before calling
22773 alloc_destination.
22774 (Fdefine_coding_system_alias): Register ALIAS in
22775 Vcoding_system_alist.
22776 (syms_of_coding): Define `no-conversion' coding system at the tail.
22777
22778 * fileio.c (Finsert_file_contents): Set coding_system instead of
22779 val. If the current buffer is multibyte, always call
22780 decode_coding_gap.
22781
22782 * xfaces.c (try_font_list): Give higher priority to fontset's
22783 family than face's family.
22784
22785 2008-02-01 Kenichi Handa <handa@m17n.org>
22786
22787 * callproc.c (Fcall_process): Be sure to give the current buffer
22788 to decode_coding_c_string.
22789
22790 * xfaces.c (try_font_list): Give a family specified in a fontset
22791 higher priority than a family specified in a face.
22792
22793 2008-02-01 Kenichi Handa <handa@m17n.org>
22794
22795 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22796 Fix arguments to insert_from_buffer.
22797
22798 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22799
22800 2008-02-01 Kenichi Handa <handa@m17n.org>
22801
22802 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22803 (decode_coding_gap): Set coding->dst_multibyte correctly.
22804
22805 2008-02-01 Kenichi Handa <handa@m17n.org>
22806
22807 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22808 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22809 (encode_coding_utf_16): Substitute coding->default_char for
22810 non-Unicode characters.
22811 (decode_coding): Don't call record_insert here.
22812 (setup_coding_system): Initialize `surrogate' of
22813 coding->spec.utf_16 to 0.
22814 (EMIT_ONE_BYTE): Fix for multibyte case.
22815
22816 * insdel.c (insert_from_gap): Call record_insert.
22817
22818 2008-02-01 Kenichi Handa <handa@m17n.org>
22819
22820 * casefiddle.c (casify_region): Fix multibyte case.
22821
22822 * character.c (c_string_width): Add return type `int'.
22823 (char_string_with_unification): Delete arg ADVANCED.
22824
22825 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22826 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22827 (CHAR_STRING_ADVANCE): Make it do-while statement.
22828
22829 * chartab.c (sub_char_table_set_range): Optimize for the case
22830 DEPTH == 3. Add workaround code for a GCC optimization bug.
22831
22832 * charset.c (parse_charset_map): Remove an unused variable.
22833
22834 * coding.c: Delete unused variables.
22835
22836 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22837 earlier. If inserted is zero and the coding system doesn't
22838 require flushing, don't call decode_coding_gap.
22839
22840 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22841
22842 2008-02-01 Kenichi Handa <handa@m17n.org>
22843
22844 The following changes are for using Unicode as an internal
22845 character model, and use UTF-8 format for buffer/string
22846 representation.
22847
22848 * .gdbinit (xchartable): Adjust for the change of char table structure.
22849 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22850
22851 * Makefile.in (obj): Add character.o and chartab.o.
22852 (lisp, shortlisp): Remove utf-8.elc.
22853 (*.o): For many files, change dependency on charset.h to
22854 character.h, and add dependency on character.h.
22855 (character.o, chartab.o): New targets.
22856
22857 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22858 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22859 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22860 of "charset.h".
22861
22862 * dired.c, filelock.c: Include "character.h".
22863
22864 * alloc.c: Include "character.h" instead of "charset.h".
22865 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22866 (syms_of_alloc): Remove defsubr for Smake_char_table.
22867
22868 * buffer.c: Include "character.h" instead of "charset.h", don't
22869 include "coding.h".
22870 (Fset_buffer_multibyte): Adjust for UTF-8.
22871
22872 * buffer.h: EXFUN Fbuffer_live_p.
22873
22874 * callproc.c: Include "character.h" instead of "charset.h".
22875 (Fcall_process): Big change for the new code-conversion APIs.
22876
22877 * casetab.c: Include "character.h" instead of "charset.h".
22878 (set_canon, set_identity, shuffle): Adjust for the new
22879 map_char_table spec.
22880 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22881 accessing the char table structure.
22882
22883 * chartab.c: New file that implements char table.
22884
22885 * category.c: Include "character.h".
22886 (copy_category_entry): New function.
22887 (copy_category_table): Call map_char_table and copy_category_entry.
22888 (Fmake_category_table): Initialize all top-level slots.
22889 (char_category_set): New function.
22890 (modify_lower_category_set): Delete.
22891 (Fmodify_category_entry): Call char_table_ref_and_range.
22892
22893 * category.h (CATEGORY_SET): Just call char_category_set.
22894
22895 * ccl.c: Include "character.h".
22896 (Qccl, Qcclp): New variables.
22897 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22898 it's less than 256.
22899 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22900 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22901 and DST type.
22902 (ccl_driver): Change types of argument, adjust code accordingly.
22903 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22904 ccl_driver.
22905 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22906
22907 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22908 New members src_multibyte, dst_multibyte, consumed, and produced.
22909 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22910 (CODING_SPEC_CCL_PROGRAM): New macro.
22911 (ccl_driver): Update prototype.
22912 (Qccl, Qcclp, Fccl_program_p): Extern them.
22913 (CHECK_CCL_PROGRAM): New macro.
22914
22915 * character.c, character.h, chartab.c: New files.
22916
22917 * charset.c: Mostly re-written. Move character and multibyte sequence
22918 handling codes to character.c.
22919
22920 * charset.h: Mostly re-written. Move character and multibyte sequence
22921 handling codes to character.h.
22922
22923 * coding.c, coding.h: Mostly re-written.
22924
22925 * composite.c: Include "character.h" instead of "charset.h".
22926 (CHAR_WIDTH): Move to character.h.
22927 (HASH_KEY, HASH_VALUE): Delete.
22928
22929 * composite.h (enum composition_method): Change order of enumeration
22930 symbols.
22931
22932 * data.c: Include "character.h" instead of "charset.h".
22933 (Faref): Call CHAR_TABLE_REF for a char table.
22934 (Faset): Call CHAR_TABLE_SET for a char table.
22935
22936 * dispextern.h (free_realized_face, check_face_attribytes)
22937 (generate_ascii_font): Extern them.
22938 (free_realized_multibyte_face): Delete extern.
22939
22940 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22941 table structure.
22942
22943 * editfns.c: Include "character.h" instead of "charset.h".
22944 (Fchar_to_string): Always call CHAR_STRING.
22945
22946 * emacs.c (main): Call init_charset_once, init_charset,
22947 syms_of_chartab, and syms_of_character.
22948
22949 * fileio.c: Include "character.h" instead of "charset.h".
22950 (Finsert_file_contents): Big change for the new code-conversion API.
22951 (choose_write_coding_system, Fwrite_region): Likewise.
22952 (build_annotations_2): Delete.
22953 (e_write): Big change for the new code-conversion API.
22954
22955 * fns.c: Include "character.h" instead of "charset.h".
22956 (copy_sub_char_table): Move to chartab.c.
22957 (Fcopy_sequence): Call copy_char_table for a char table.
22958 (concat): Delete codes calling count_multibyte.
22959 (string_char_to_byte, string_byte_to_char): Adjust for the new
22960 multibyte form.
22961 (internal_equal): Adjust for the change of char table structure.
22962 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22963 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22964 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22965 (char_table_translate, optimize_sub_char_table)
22966 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22967 chartab.c.
22968 (char_table_ref_and_index): Delete.
22969 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22970 (Fmd5): Call preferred_coding_system instead of accessing
22971 Vcoding_category_list. Adjust for the new code-conversion API.
22972 (syms_of_fns): Move defsubr for char table related functions to
22973 chartab.c.
22974
22975 * fontset.c: Mostly re-written.
22976
22977 * fontset.h (struct font_info): Change type of the member encoding_type.
22978 (enum FONT_SPEC_INDEX): New enum.
22979 (fontset_font_pattern, fs_load_font): Update prototype.
22980 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22981
22982 * indent.c: Include "character.h" instead of "charset.h".
22983 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22984
22985 * insdel.c: Include "character.h" instead of "charset.h".
22986 (copy_text): Don't refer to Vnonascii_translation_table.
22987 (insert_from_gap): New function.
22988
22989 * keyboard.c: Include "character.h" instead of "charset.h".
22990 (command_loop_1): Never call direct_output_forward_char before
22991 a non-ASCII character.
22992 (read_char): If Vkeyboard_translate_table is a char table, always
22993 translate a character.
22994
22995 * keymap.c: Include "character.h".
22996 (store_in_keymap): Handle the case that IDX is a cons.
22997 (Fdefine_key): Handle the case that KEY is a cons and the car part
22998 is also a cons (range).
22999 (push_key_description): Adjust for the new character code.
23000 (describe_vector): Call describe_char_table for a char table.
23001 (describe_char_table): New function.
23002
23003 * keymap.h (describe_char_table): Extern it.
23004
23005 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23006 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23007 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23008 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23009 Delete.
23010 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23011 structure.
23012 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23013 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23014 (CHARTAB_SIZE_BITS_3): New macros.
23015 (chartab_size): Extern it.
23016 (struct Lisp_Char_Table): Re-design.
23017 (struct Lisp_Sub_Char_Table): New structure.
23018 (HASH_KEY, HASH_VALUE): Move from fns.c.
23019 (CHARACTERBITS): Define as 22.
23020 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23021 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23022 (GC_SUB_CHAR_TABLE_P): New macro.
23023 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23024 (code_convert_string_norecord): Deleted extern.
23025 (init_character_once, syms_of_character, init_charset)
23026 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23027
23028 * lread.c: Include "character.h".
23029 (read_multibyte): New arg NBYTES.
23030 (read_escape): Change the meaning of returned *BYTEREP.
23031 (to_multibyte): Delete.
23032 (read1): Adjust the handling of char table and string.
23033
23034 * print.c: Include "character.h" instead of "charset.h".
23035 (print_string): Convert 8-bit raw bytes to octal form by
23036 string_escape_byte8.
23037 (print_object): Adjust for the new multibyte form. Print 8-bit
23038 raw bytes always in octal form. Handle sub char table correctly.
23039
23040 * process.c: Include "character.h" instead of "charset.h".
23041 (read_process_output, send_process): Adjust for the new
23042 code-conversion API.
23043
23044 * puresize.h (BASE_PURESIZE): Increase.
23045
23046 * regex.c: Include "character.h" instead of "charset.h".
23047 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23048 (regex_compile): Accept a range whose starting and ending
23049 character have different leading bytes.
23050 (analyse_first): Adjust for the above change.
23051
23052 * search.c: Include "character.h" instead of "charset.h".
23053 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23054 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23055
23056 * syntax.c: Include "character.h" instead of "charset.h".
23057 (syntax_parent_lookup): Delete.
23058 (Fmodify_syntax_entry): Accept a cons as CHAR.
23059 (skip_chars): Adjust for the new multibyte form.
23060 (init_syntax_once): Call char_table_set_range instead of directly
23061 accessing the structure of a char table.
23062
23063 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23064 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23065 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23066 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23067
23068 * term.c: Include "buffer.h" and "character.h".
23069 (encode_terminal_code, write_glyphs): Adjust for the new
23070 code-conversion API.
23071 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23072
23073 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23074
23075 * xdisp.c: Include "character.h".
23076 (get_next_display_element): Adjust for the new multibyte form.
23077 (disp_char_vector): Adjust for the new char table structure.
23078 (decode_mode_spec_coding): Adjust for the new structure of
23079 coding system.
23080 (decode_mode_spec): Adjust for the new code-conversion API.
23081
23082 * xfaces.c: Include "character.h" instead of "charset.h".
23083 (load_face_font): Adjust for the change of choose_face_font and
23084 FS_LOAD_FONT.
23085 (generate_ascii_font): New function.
23086 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23087 (set_font_frame_param): Adjust for the change of choose_face_font.
23088 (free_realized_face): Make it public.
23089 (free_realized_faces_for_fontset): Rename from
23090 free_realized_multibyte_face. Free also faces realized for ASCII.
23091 (choose_face_font): Change arguments. Adjust for the change of
23092 fontset_font_pattern and FS_LOAD_FONT.
23093
23094 * xfns.c: Include "character.h".
23095 (x_encode_text): Adjust for the new code-conversion API.
23096
23097 * xselect.c: Don't include "charset.h".
23098 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23099
23100 * xterm.c: Include "character.h".
23101 (x_encode_char): New argument CHARSET. Change caller.
23102 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23103 Call ENCODE_CHAR instead of SPLIT_CHAR.
23104 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23105 CHAR_WIDTH instead of CHARSET_WIDTH.
23106 (XTread_socket): Adjust for the new code-conversion API.
23107 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23108 (x_load_font): Adjust for the change of struct font.
23109
23110 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23111
23112 * xfaces.c (face_at_buffer_position): Remove unused vars.
23113
23114 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23115
23116 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23117 Fix overflow checking.
23118
23119 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23120
23121 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23122 Cancel previous change.
23123
23124 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23125
23126 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23127 ccl->eight_bit_control. Fix check for buffer overflow.
23128 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23129 (ccl_driver): Initialize extra_bytes to 0.
23130
23131 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23132
23133 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23134 return it ORed with ctrl_modifier.
23135
23136 2008-01-29 Miles Bader <miles@gnu.org>
23137
23138 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23139
23140 2008-01-28 Jason Rumney <jasonr@gnu.org>
23141
23142 * w32.c (stat): Don't double check for networked drive.
23143
23144 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23145
23146 * window.c (run_window_configuration_change_hook): New function.
23147 Code extracted from set_window_buffer. Set the selected frame.
23148 (set_window_buffer): Use it.
23149 * window.h (run_window_configuration_change_hook): Declare.
23150 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23151
23152 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23153
23154 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23155
23156 * Makefile.in: Remove references to unused macros.
23157
23158 2008-01-26 Eli Zaretskii <eliz@gnu.org>
23159
23160 * w32.c (g_b_init_get_sid_sub_authority)
23161 (g_b_init_get_sid_sub_authority_count): New static variables.
23162 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23163 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23164 (init_user_info): Use them to retrieve uid and gid.
23165 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23166 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23167 st_uid and st_gid of the file.
23168
23169 2008-01-26 Jason Rumney <jasonr@gnu.org>
23170
23171 * w32.c (logon_network_drive): New function.
23172 (stat): Use it.
23173
23174 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
23175
23176 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23177 invisible text covered with an ellipsis.
23178
23179 2008-01-25 Richard Stallman <rms@gnu.org>
23180
23181 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23182 jump back to beginning. Move some other initializations after that.
23183 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23184 New variables.
23185 (syms_of_xdisp): Init them.
23186
23187 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23188
23189 * buffer.c (reset_buffer_local_variables):
23190 Implement `permanent-local-hook'.
23191 (Qpermanent_local_hook): New variable.
23192 (syms_of_buffer): Init and staticpro it.
23193
23194 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
23195
23196 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23197
23198 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23199
23200 * fns.c (Fclrhash): Return TABLE.
23201
23202 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23203
23204 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23205 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23206 is set even without positional changes.
23207 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23208
23209 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23210
23211 2008-01-23 Jason Rumney <jasonr@gnu.org>
23212
23213 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23214
23215 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23216 the unicode range available in MULE by locale-coding-system.
23217 Improve dbcs lead byte detection. Set event timestamp and modifiers
23218 earlier.
23219
23220 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23221
23222 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23223 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23224 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23225 when used on child processes.
23226
23227 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
23228
23229 * dbusbind.c (Fdbus_method_return_internal): Rename from
23230 Fdbus_method_return.
23231 (Fdbus_unregister_object): Move to dbus.el.
23232 (Fdbus_call_method, Fdbus_method_return_internal)
23233 (Fdbus_send_signal): Improve debug messages.
23234
23235 2008-01-20 Martin Rudalics <rudalics@gmx.at>
23236
23237 * undo.c (undo_inhibit_record_point): New variable.
23238 (syms_of_undo): Initialize it.
23239 (record_point): Don't record point when undo_inhibit_record_point
23240 is set.
23241
23242 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23243
23244 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23245
23246 * xdisp.c (Qauto_hscroll_mode): New var.
23247 (syms_of_xdisp): Initialize it.
23248 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23249 window's buffer.
23250 (hscroll_windows): Don't check automatic_hscrolling_p here.
23251
23252 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23253 vscroll if we're setting window-buffer to the value it already has.
23254
23255 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23256
23257 * m/intel386.h: Remove references to XENIX.
23258
23259 2008-01-17 Andreas Schwab <schwab@suse.de>
23260
23261 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23262 instead of HAVE_X86_64_LIB64_DIR.
23263 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23264
23265 2008-01-17 Glenn Morris <rgm@gnu.org>
23266
23267 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23268 to HAVE_X86_64_LIB64_DIR.
23269
23270 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23271
23272 * s/irix3-3.h:
23273 * s/irix4-0.h:
23274 * s/386-ix.h:
23275 * s/domain.h:
23276 * s/hpux9-x11r4.h:
23277 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23278
23279 * sysdep.c: Remove code containing references to symbols defined
23280 by unsupported systems.
23281
23282 2008-01-16 Glenn Morris <rgm@gnu.org>
23283
23284 * coding.c (select-safe-coding-system-function): Doc fix.
23285
23286 2008-01-15 Glenn Morris <rgm@gnu.org>
23287
23288 * config.in: Revert 2008-01-13 change: this is a generated file.
23289
23290 2008-01-13 Tom Tromey <tromey@redhat.com>
23291
23292 * lisp.h: Fix typo.
23293
23294 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23295
23296 * m/sequent-ptx.h:
23297 * m/sequent.h:
23298 * s/ptx.h:
23299 * s/ptx4-2.h:
23300 * s/ptx4.h: Remove files for systems no longer supported.
23301
23302 * callproc.c (Fcall_process): Fix previous change.
23303
23304 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23305
23306 * unexsunos4.c: Remove file, system not supported anymore.
23307
23308 * m/mips.h:
23309 * m/intel386.h:
23310 * callproc.c:
23311 * config.in:
23312 * ecrt0.c:
23313 * emacs.c:
23314 * fileio.c:
23315 * frame.c:
23316 * getpagesize.h:
23317 * keyboard.c:
23318 * lread.c:
23319 * process.c:
23320 * puresize.h:
23321 * sysdep.c:
23322 * systty.h:
23323 * syswait.h:
23324 * unexec.c:
23325 * xdisp.c:
23326 * alloc.c: Remove code containing references to symbols defined by
23327 unsupported systems.
23328
23329 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23330
23331 * coding.c (detect_coding_mask): Fix previous change.
23332
23333 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23334
23335 * coding.c (detect_coding_iso2022): New arg
23336 latin_extra_code_state. Allow Latin extra codes only
23337 when *latin_extra_code_state is nonzero.
23338 (detect_coding_mask): If there is a NULL byte, detect the encoding
23339 as UTF-16 or binary. If Latin extra codes exist, detect the
23340 encoding as ISO-2022 only when there's no other proper encoding is
23341 found.
23342
23343 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23344
23345 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23346 #ifdef MAC_OS.
23347
23348 2008-01-08 Richard Stallman <rms@gnu.org>
23349
23350 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23351
23352 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
23353
23354 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23355 menu bar in parentheses.
23356
23357 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23358
23359 * m/7300.h:
23360 * m/acorn.h:
23361 * m/alliant-2800.h:
23362 * m/alliant.h:
23363 * m/alliant1.h:
23364 * m/alliant4.h:
23365 * m/altos.h:
23366 * m/amdahl.h:
23367 * m/apollo.h:
23368 * m/att3b.h:
23369 * m/aviion-intel.h:
23370 * m/aviion.h:
23371 * m/celerity.h:
23372 * m/clipper.h:
23373 * m/cnvrgnt.h:
23374 * m/convex.h:
23375 * m/cydra5.h:
23376 * m/delta88k.h:
23377 * m/dpx2.h:
23378 * m/dual.h:
23379 * m/elxsi.h:
23380 * m/f301.h:
23381 * m/gould-np1.h:
23382 * m/gould.h:
23383 * m/i860.h:
23384 * m/ibmps2-aix.h:
23385 * m/ibmrt-aix.h:
23386 * m/ibmrt.h:
23387 * m/irist.h:
23388 * m/is386.h:
23389 * m/isi-ov.h:
23390 * m/mega68.h:
23391 * m/mg1.h:
23392 * m/news-r6.h:
23393 * m/news-risc.h:
23394 * m/news.h:
23395 * m/nh3000.h:
23396 * m/nh4000.h:
23397 * m/ns16000.h:
23398 * m/ns32000.h:
23399 * m/nu.h:
23400 * m/orion.h:
23401 * m/orion105.h:
23402 * m/paragon.h:
23403 * m/pfa50.h:
23404 * m/plexus.h:
23405 * m/pyramid.h:
23406 * m/pyrmips.h:
23407 * m/sh3el.h:
23408 * m/sps7.h:
23409 * m/sr2k.h:
23410 * m/stride.h:
23411 * m/sun1.h:
23412 * m/sun2.h:
23413 * m/sun3-68881.h:
23414 * m/sun3-fpa.h:
23415 * m/sun3-soft.h:
23416 * m/sun3.h:
23417 * m/sun386.h:
23418 * m/symmetry.h:
23419 * m/tad68k.h:
23420 * m/tahoe.h:
23421 * m/targon31.h:
23422 * m/tek4300.h:
23423 * m/tekxd88.h:
23424 * m/tower32.h:
23425 * m/tower32v3.h:
23426 * m/ustation.h:
23427 * m/wicat.h:
23428 * m/xps100.h:
23429 * s/cxux.h:
23430 * s/cxux7.h:
23431 * s/dgux.h:
23432 * s/dgux4.h:
23433 * s/dgux5-4-3.h:
23434 * s/dgux5-4r2.h:
23435 * s/esix.h:
23436 * s/esix5r4.h:
23437 * s/hiuxmpp.h:
23438 * s/hiuxwe2.h:
23439 * s/iris3-5.h:
23440 * s/iris3-6.h:
23441 * s/isc2-2.h:
23442 * s/isc3-0.h:
23443 * s/isc4-0.h:
23444 * s/isc4-1.h:
23445 * s/newsos5.h:
23446 * s/newsos6.h:
23447 * s/osf1.h:
23448 * s/osf5-0.h:
23449 * s/riscix1-1.h:
23450 * s/riscix12.h:
23451 * s/sco4.h:
23452 * s/sco5.h:
23453 * s/sunos4-0.h:
23454 * s/sunos4-1.h:
23455 * s/sunos413.h:
23456 * s/sunos4shr.h:
23457 * s/umax.h:
23458 * s/unipl5-2.h:
23459 * s/xenix.h:
23460 * cxux-crt0.s:
23461 * unexapollo.c:
23462 * unexconvex.c:
23463 * unexenix.c:
23464 * unexsni.c: Remove files for systems no longer supported.
23465
23466 * m/intel386.h: Remove references to unsupported systems.
23467
23468 * w32.c (get_emacs_configuration): Remove reference to i860.
23469
23470 * sysdep.c: Remove dead code.
23471
23472 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23473
23474 * s/rtu.h:
23475 * m/masscomp.h: Remove files. Platform is obsolete.
23476
23477 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
23478
23479 * dbusbind.c (Fdbus_method_return): New function.
23480 (xd_read_message): Add the serial number to the event.
23481 (Fdbus_register_method): Activate the function.
23482
23483 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23484
23485 * keyboard.c (read_key_sequence): Fix typo.
23486
23487 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
23488
23489 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23490 (xd_signature, xd_append_arg): Handle element type detection for
23491 empty arrays.
23492 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23493 SDATA () calls; this must be solved more general.
23494 (Fdbus_register_signal): Use SBYTES instead of strlen.
23495
23496 2008-01-03 Magnus Henoch <magnus@zemdatav>
23497
23498 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23499 unsigned int for byte values (necessary for big-endian platform).
23500 (Fdbus_call_method): Handle the case of no returned arguments.
23501
23502 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23503
23504 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23505
23506 2007-12-31 Magnus Henoch <mange@freemail.hu>
23507
23508 * dbusbind.c (xd_signature): Signature of variant is just "v".
23509
23510 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
23511
23512 * dbusbind.c: Fix several errors and compiler warnings.
23513 Reported by Tom Tromey <tromey@redhat.com>.
23514 (XD_ERROR, XD_DEBUG_MESSAGE)
23515 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23516 (xd_append_arg): Part for basic D-Bus types rewritten.
23517 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23518 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23519 appropriate.
23520 (xd_read_message): Return Qnil. Don't signal an error; it is not
23521 useful during event reading.
23522 (Fdbus_register_signal): Signal an error if the check for
23523 FUNCTIONP fails.
23524 (Fdbus_register_method): New function. The implementation is not
23525 complete, the call of the function signals an error therefore.
23526 (Fdbus_unregister_object): New function, renamed from
23527 Fdbus_unregister_signal. The initial check signals an error, if
23528 the object is not well formed.
23529
23530 2007-12-30 Richard Stallman <rms@gnu.org>
23531
23532 * textprop.c (get_char_property_and_overlay):
23533 Signal error if POSITION is out of range in a buffer.
23534
23535 2007-12-29 Martin Rudalics <rudalics@gmx.at>
23536
23537 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23538 because the original parameters are in pure storage now.
23539
23540 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23541
23542 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23543
23544 2007-12-22 Eli Zaretskii <eliz@gnu.org>
23545
23546 * callint.c (syms_of_callint) <command-history>: Add reference to
23547 history-length in the doc string.
23548
23549 2007-12-17 Jason Rumney <jasonr@gnu.org>
23550
23551 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23552 before passing as wParam.
23553
23554 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
23555
23556 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23557 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23558 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23559 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23560 as number.
23561 (Fdbus_call_method): Fix docstring.
23562
23563 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
23564
23565 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23566 New macros.
23567 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23568 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23569 Simplify.
23570 (xd_signature): New function.
23571 (xd_append_arg): Compute also signatures. Major rewrite.
23572 (xd_retrieve_arg): Make debug messages friendly.
23573 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23574 Check for signatures of arguments.
23575
23576 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
23577
23578 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23579 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23580 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23581 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23582 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23583 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23584 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23585 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23586 (xd_retrieve_value): Remove. Functionality included in ...
23587 (xd_append_arg): New function.
23588 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23589
23590 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
23591
23592 * dbusbind.c (top): Include <stdio.h>.
23593 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23594 dbus_message_new_method_call and dbus_message_new_signal.
23595 (Fdbus_register_signal): Rename unique_name to uname.
23596 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23597 non-existing unique name. Fix typos in matching rule. Return an
23598 object which is useful in Fdbus_unregister_signal.
23599 (Fdbus_unregister_signal): Reimplementation, in order to remove
23600 only the corresponding entry.
23601 (Vdbus_registered_functions_table): Change the order of entries.
23602 Apply these changes in xd_read_message and Fdbus_register_signal.
23603
23604 2007-12-16 Andreas Schwab <schwab@suse.de>
23605
23606 * fileio.c (Finsert_file_contents): Fix overflow check to not
23607 depend on undefined integer overflow.
23608
23609 2007-12-14 Jason Rumney <jasonr@gnu.org>
23610
23611 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23612 for characters above 127.
23613
23614 2007-12-13 Jason Rumney <jasonr@gnu.org>
23615
23616 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23617 before dereferencing array.
23618 (lookup_vk_code): Remove zero comparison.
23619
23620 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
23621
23622 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23623 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23624 Use `unsigned int' instead of `uint'.
23625 (xd_read_message, Fdbus_register_signal): Split expressions into
23626 multiple lines before operators "&&" and "||", according to the
23627 GNU Coding Standards.
23628
23629 2007-12-14 Eli Zaretskii <eliz@gnu.org>
23630
23631 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23632
23633 2007-12-12 Juri Linkov <juri@jurta.org>
23634
23635 * buffer.c (Frename_buffer): In interactive spec replace
23636 `read-buffer' with `read-string' that uses `buffer-name-history'
23637 as history, and the current buffer's name as default.
23638
23639 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23640
23641 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23642 manipulating the backtrace manually.
23643 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23644 (struct backtrace, backtrace_list): Remove.
23645 (command_loop_1): Remove dead var `no_direct'.
23646
23647 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23648 preserve non-built-in buffer-local variables.
23649 (Fkill_all_local_variables): Don't re-create&re-set permanent
23650 buffer-local variables.
23651
23652 2007-12-09 Juri Linkov <juri@jurta.org>
23653
23654 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23655 Lisp code that uses `read-buffer' with current buffer as default.
23656
23657 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
23658
23659 * dbusbind.c (xd_read_message): Generate an event for every
23660 registered handler. There might be several handlers registered
23661 for the same signal.
23662 (Fdbus_register_signal): Don't overwrite a registration for the
23663 same signal. Add a new registration if handlers are different.
23664 (Vdbus_registered_functions_table): Rework doc string.
23665
23666 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
23667
23668 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23669 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23670 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23671 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23672 Unify argument lists.
23673 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23674 arguments and hash table keys. Use unique name for service.
23675 (Fdbus_unregister_signal): Remove checks.
23676 (Vdbus_registered_functions_table): Fix doc string.
23677
23678 2007-12-05 Magnus Henoch <mange@freemail.hu>
23679
23680 * process.c (make_process): Initialize pty_flag to 0.
23681
23682 2007-12-05 Jason Rumney <jasonr@gnu.org>
23683
23684 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23685 specified XBMs.
23686
23687 2007-12-05 Richard Stallman <rms@gnu.org>
23688
23689 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23690
23691 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23692
23693 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23694 New variable.
23695 (mac_try_close_socket) [MAC_OSX]: New function.
23696 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23697 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23698
23699 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23700 Use mac_try_close_socket.
23701
23702 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23703
23704 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23705 reloc_base.
23706 (copy_dysymtab): Compute relocation base here.
23707 (rebase_reloc_address) [__ppc64__]: New function.
23708 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23709 changed.
23710
23711 2007-12-05 Jason Rumney <jasonr@gnu.org>
23712
23713 * w32proc.c (sys_spawnve): Quote args with wildcards.
23714
23715 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23716
23717 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23718 __objc_* sections.
23719 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23720
23721 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
23722
23723 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23724 Move check for Vdbus_registered_functions_table to
23725 xd_read_queued_messages.
23726 (xd_read_queued_messages): Protect xd_read_message calls by
23727 internal_condition_case_1.
23728
23729 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
23730
23731 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23732 Qdbus_system_bus and Qdbus_session_bus, respectively.
23733 (Vdbus_intern_symbols): Remove.
23734 (Vdbus_registered_functions_table): New hash table.
23735 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23736 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23737 Rewrite in order to manage registered functions by hash table
23738 Vdbus_registered_functions_table.
23739
23740 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23741
23742 * xterm.c: Update URL to Window Manager Specification in comment.
23743
23744 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
23745
23746 * config.in (HAVE_DBUS): Add.
23747
23748 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23749 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23750 (obj): Add $(DBUS_OBJ).
23751 (LIBES): Add $(DBUS_LIBS).
23752 (dbusbind.o): New target.
23753
23754 * dbusbind.c: New file.
23755
23756 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23757
23758 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23759 (Qdbus_event): New Lisp symbol.
23760 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23761 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
23762 (keys_of_keyboard): Define dbus-event.
23763
23764 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23765
23766 2007-12-01 Richard Stallman <rms@gnu.org>
23767
23768 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23769
23770 2007-11-30 Jason Rumney <jasonr@gnu.org>
23771
23772 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23773 (w32con_reset_terminal_modes): Clear screen buffer.
23774 (w32_face_attributes): Don't use color indexes that are out of range.
23775 Only reverse the default colors.
23776
23777 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23778 WINDOWSNT.
23779
23780 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23781
23782 2007-11-29 Jason Rumney <jasonr@gnu.org>
23783
23784 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23785 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23786 if the terminal colors are initialized.
23787 (unspecified_fg, unspecified_bg): Remove unused declarations.
23788
23789 2007-11-29 Andreas Schwab <schwab@suse.de>
23790
23791 * keyboard.c (apply_modifiers): Fix typo.
23792
23793 2007-11-29 Richard Stallman <rms@gnu.org>
23794
23795 * keymap.c (Fcurrent_local_map): Doc fix.
23796
23797 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23798
23799 * s/gnu-kfreebsd.h: New file.
23800
23801 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23802
23803 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23804 Don't cast redundantly.
23805
23806 * keyboard.c (KEY_TO_CHAR): New macro.
23807 (parse_modifiers, apply_modifiers): Accept integer arguments.
23808 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23809 for chars and symbol keys.
23810 After doing such remapping, apply function-key-map again.
23811
23812 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23813
23814 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23815 compiled anymore.
23816
23817 2007-11-26 Andreas Schwab <schwab@suse.de>
23818
23819 * process.c (list_processes_1): Fix indentation level of the
23820 command column.
23821
23822 2007-11-23 Andreas Schwab <schwab@suse.de>
23823
23824 * editfns.c (Fformat): Handle %c specially since it requires the
23825 argument to be of type int.
23826
23827 2007-11-23 Markus Triska <markus.triska@gmx.at>
23828
23829 * emacs.c (main): Call init_editfns before init_process, since
23830 init_process sets Vprocess_connection_type depending on OS release.
23831
23832 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23833
23834 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23835 (find_symbol_value): Use do_symval_forwarding.
23836
23837 * data.c (set_internal): Set the value in the `cons-cell' (for
23838 Buffer_Local_values) not only for frame-local variables.
23839
23840 2007-11-22 Andreas Schwab <schwab@suse.de>
23841
23842 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23843 values to sprintf.
23844 * keymap.c (Fsingle_key_description): Likewise.
23845 * print.c (print_object): Likewise.
23846
23847 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23848
23849 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23850 file for image is nil.
23851
23852 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23853
23854 * term.c: Include stdarg.h.
23855 (fatal): Implement using varargs.
23856 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23857
23858 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23859
23860 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23861 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23862 Update call to buffer_slot_type_mismatch.
23863 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23864 (buffer_slot_type_mismatch): Update.
23865 * buffer.c (buffer_local_types): Remove.
23866 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23867 (defvar_per_buffer): Set the type in the buffer_objfwd.
23868
23869 2007-11-21 Jason Rumney <jasonr@gnu.org>
23870
23871 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23872 CreateFileMapping returns NULL on failure.
23873
23874 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23875
23876 * search.c (Fset_match_data): Remove the `evaporate' feature.
23877 (unwind_set_match_data): Don't use the `evaporate' feature.
23878
23879 2007-11-21 Jason Rumney <jasonr@gnu.org>
23880
23881 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23882
23883 * w32console.c (w32con_write_glyphs): Remove unused variables.
23884
23885 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23886
23887 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23888
23889 * s/darwin.h (MULTI_KBOARD): Remove.
23890
23891 * macfns.c (x_create_tip_frame, Fx_create_frame)
23892 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23893
23894 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23895
23896 * buffer.c (Fbuffer_local_value): Remove redundant test.
23897 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23898 than in `current-buffer' to match the comment.
23899 Do the swap using swap_in_global_binding.
23900
23901 * data.c (store_symval_forwarding, set_internal):
23902 * eval.c (specbind): Remove dead code.
23903
23904 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23905 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23906 Since we do not want to see internal Lisp_*fwd objects here.
23907
23908 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23909
23910 * sysdep.c (init_system_name): Use getaddrinfo if available.
23911
23912 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23913 (x_scroll_bar_note_movement): start, end, with, height in struct
23914 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23915
23916 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23917
23918 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23919
23920 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23921
23922 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23923 This undoes Richard's change of 14-Oct-2002.
23924
23925 * alloc.c (allocate_other_vector):
23926 * lisp.h (allocate_other_vector): Remove.
23927
23928 * window.c (struct save_window_data): Move non-lisp data to the end
23929 and make it `int' rather than Lisp_Object.
23930 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23931 Done wrap/unwrap integer values.
23932 (Fset_window_configuration, compare_window_configurations):
23933 Update use of fields to their new types.
23934
23935 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23936 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23937 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23938 (SET_SCROLL_BAR_X_WINDOW): Remove.
23939 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23940 Access the new x_window field directly.
23941 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23942 Don't wrap/unwrap integers into Lisp_Objects.
23943 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23944 (x_scroll_bar_report_motion):
23945 Don't wrap/unwrap integers into Lisp_Objects.
23946 (x_term_init): Use SDATA.
23947 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23948 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23949 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23950 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23951 * xfns.c (x_set_background_color):
23952 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23953 Access the new x_window field directly.
23954
23955 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23956 (allocate_pseudovector): Make non-static.
23957
23958 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23959 (allocate_pseudovector): Declare.
23960 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23961
23962 2007-11-15 Andreas Schwab <schwab@suse.de>
23963
23964 * editfns.c (Fformat): Correctly format EMACS_INT values.
23965 Also take precision into account when formatting an integer.
23966
23967 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23968
23969 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23970
23971 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23972 (syms_of_keyboard): Defsubr it.
23973
23974 * data.c (swap_in_global_binding): Fix longstanding bug where
23975 store_symval_forwarding was not called with the right second argument,
23976 thus causing objfwd-ing from being dropped.
23977
23978 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23979
23980 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23981 (Fx_display_pixel_height, Fx_display_planes)
23982 (Fx_display_color_cells, Fx_server_max_request_size)
23983 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23984 (Fx_display_visual_class, Fx_display_save_under):
23985 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23986 (Fx_display_pixel_height, Fx_display_planes)
23987 (Fx_display_color_cells, Fx_server_max_request_size)
23988 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23989 (Fx_display_mm_height, Fx_display_mm_width)
23990 (Fx_display_backing_store, Fx_display_visual_class)
23991 (Fw32_select_font, Fx_display_save_under):
23992 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23993 (Fx_display_pixel_height, Fx_display_planes)
23994 (Fx_display_color_cells, Fx_server_max_request_size)
23995 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23996 (Fx_display_save_under): Fix typos in docstrings.
23997
23998 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23999
24000 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24001 corresponding to deleted entries; they are an implementation detail.
24002 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24003 Remove variables.
24004 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24005 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24006 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24007 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24008 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24009 (Fw32_define_rgb_color, Fw32_load_color_file)
24010 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24011 Fix typos in docstrings.
24012 (Fx_server_version): Reflow docstring.
24013 (Fw32_shell_execute): Doc fixes.
24014
24015 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
24016
24017 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24018 if w32_parse_hot_key returned nil.
24019
24020 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24021
24022 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24023
24024 2007-11-09 Jason Rumney <jasonr@gnu.org>
24025
24026 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24027
24028 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24029
24030 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24031 Remove W32_SCROLL_BAR_CLICK_EVENT.
24032
24033 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24034 Add MULTIMEDIA_KEY_EVENT.
24035
24036 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24037 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24038 (make_lispy_event) [WINDOWSNT]: Use it to translate
24039 MULTIMEDIA_KEY_EVENT.
24040
24041 * w32term.h (WM_APPCOMMAND): Define if not already.
24042 (GET_APPCOMMAND_LPARAM): Likewise.
24043
24044 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24045 WM_APPCOMMAND.
24046
24047 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24048 (syms_of_w32fns): Export and initialize it.
24049 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24050
24051 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
24052
24053 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24054 twice.
24055
24056 * xdisp.c (handle_face_prop): Fix last change.
24057
24058 2007-11-09 Richard Stallman <rms@gnu.org>
24059
24060 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24061 not just for after-strings and before-strings.
24062 Call face_for_overlay_string and pass the overlay to it.
24063 (handle_display_prop): Determine whether property came from an overlay.
24064 Pass OVERLAY arg to handle_single_display_spec.
24065 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24066 (load_overlay_strings): Fill in it->string_overlays.
24067 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24068
24069 * xfaces.c (face_for_overlay_string): Function renamed from
24070 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24071
24072 * dispextern.h (struct it): New elt string_overlays.
24073 New elt from_overlay, also in stack.
24074 Rearrange a few elements.
24075 (face_for_overlay_string): Decl renamed from
24076 face_at_buffer_position_no_overlays, and add argument.
24077
24078 2007-11-09 Richard Stallman <rms@gnu.org>
24079
24080 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24081 to get the base face for an overlay string.
24082
24083 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24084
24085 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24086
24087 * xdisp.c (handle_stop): Move some code out of loop.
24088
24089 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24090
24091 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24092 Fix conversion from Lisp object to ATSUFontID.
24093
24094 2007-11-09 Jason Rumney <jasonr@gnu.org>
24095
24096 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24097
24098 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24099
24100 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24101 Don't assume regions are aligned to page boundary.
24102 (print_load_command_name): Add LC_UUID if defined.
24103
24104 2007-11-09 Richard Stallman <rms@gnu.org>
24105
24106 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24107
24108 2007-11-07 Jason Rumney <jasonr@gnu.org>
24109
24110 * s/windows95.h: Remove.
24111
24112 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24113
24114 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24115 abort with a message on unhandled store_type values.
24116
24117 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24118
24119 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24120 Remove HAVE_X11R5 and HAVE_X11R4.
24121
24122 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24123
24124 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24125
24126 2007-11-01 Johan Bockgård <bojohan@gnu.org>
24127
24128 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24129 Don't set s->stippled_p here, since it has already been set by
24130 x_set_glyph_string_gc from x_draw_glyph_string.
24131
24132 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24133
24134 * sunfns.c: Remove file.
24135
24136 * m/sun386.h:
24137 * m/sun2.h:
24138 * m/sparc.h: Remove Sun windows code.
24139
24140 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24141
24142 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24143 (init_keyboard): Set current_kboard's window-system to nil.
24144 (tty_read_avail_input): Typo.
24145 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24146
24147 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24148
24149 * s/usg5-4.h:
24150 * s/usg5-3.h:
24151 * s/ptx.h:
24152 * m/is386.h:
24153 * m/ibmps2-aix.h:
24154 * Makefile.in: Remove all mentions of X10.
24155
24156 * dispnew.c (syms_of_display): Don't mention version 10.
24157
24158 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
24159
24160 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24161 ($(BLD)/abbrev.$(O)): Remove.
24162
24163 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24164
24165 Rewrite abbrev.c in Elisp.
24166 * image.c (Qcount): Don't declare as extern.
24167 (syms_of_image): Initialize and staticpro `Qcount'.
24168 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24169 * emacs.c (main): Don't call syms_of_abbrev.
24170 * Makefile.in (obj): Remove abbrev.o.
24171 (abbrev.o): Remove.
24172 * abbrev.c: Remove.
24173
24174 2007-10-26 Martin Rudalics <rudalics@gmx.at>
24175
24176 * window.c (window_min_size_2): Don't count header-line.
24177
24178 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24179
24180 * frame.h (struct frame): Move all bit fields after the first bit
24181 field to take advantage of the available space. Group all the
24182 chars together to reduce wasted space due to padding.
24183
24184 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
24185
24186 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24187
24188 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24189 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24190 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24191 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24192 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24193 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24194 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24195 (last_marked, mark_object_loop_halt): Make static.
24196
24197 * frame.c (syms_of_frame) <delete-frame-functions>:
24198 Fix typo in docstring.
24199
24200 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
24201
24202 * w32.c (init_environment): Fix tiny memory leak.
24203 (w32_get_resource): Remove unused variable `ok'.
24204
24205 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24206
24207 Make `window-system' into a keyboard-local variable (rather than
24208 frame-local as done originally by multi-tty).
24209
24210 * keyboard.h (struct kboard): Add Vwindow_system.
24211 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24212 (mark_kboards): Mark Vwindow_system.
24213
24214 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24215 (init_display): Don't set the obsolete `window-system' frame-param.
24216
24217 * xterm.c (x_term_init):
24218 * w32term.c (w32_create_terminal):
24219 * term.c (init_tty): Set Vwindow_system.
24220 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24221 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24222
24223 * xfns.c (Fx_create_frame, x_create_tip_frame):
24224 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24225 * macfns.c (Fx_create_frame):
24226 Don't set the obsolete `window-system' frame-param.
24227
24228 * frame.h (Qwindow_system): Remove.
24229 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24230 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24231
24232 2007-10-24 Richard Stallman <rms@gnu.org>
24233
24234 * frame.c (x_figure_window_size): For fullscreen case,
24235 set USPosition | PPosition without clobbering rest of window_prompting.
24236
24237 * keyboard.c (Fcurrent_idle_time): Doc fix.
24238
24239 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24240
24241 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24242
24243 * process.c (unwind_request_sigio): Only define if __ultrix__.
24244
24245 * callproc.c (child_setup): Remove spurious *.
24246
24247 * lisp.h (Fget_text_property): Declare.
24248 (have_menus_p): Declare it here rather than in sys-dep header files.
24249 * macterm.h (have_menus_p):
24250 * msdos.h (have_menus_p):
24251 * xterm.h (have_menus_p): Remove.
24252
24253 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24254 (Fmake_variable_frame_local): Just check the variable's const-ness
24255 rather than checking nil or t.
24256
24257 2007-10-22 Jason Rumney <jasonr@gnu.org>
24258
24259 * w32fns.c: Include math.h.
24260 (w32_abort): Declaration moved to nt/config.nt.
24261
24262 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24263 (abort): Redefinition moved to nt/config.nt.
24264
24265 * m/windowsnt.h: Remove.
24266
24267 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
24268
24269 * emacs.c (Fdump_emacs): Fix typo in message.
24270 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24271 <installation-directory>: Reflow docstring.
24272
24273 2007-10-22 Juri Linkov <juri@jurta.org>
24274
24275 * minibuf.c: Allow minibuffer default to be a list of default values.
24276 With empty input use the first element of this list as returned default.
24277 (string_to_object)
24278 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24279 (read_minibuf): If defalt is cons, set histstring to its car.
24280 (Fread_string): If default_value is cons, set val to its car.
24281 (Fread_buffer): If def is cons, use its car.
24282 (Fcompleting_read): If defalt is cons, set val to its car.
24283
24284 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
24285
24286 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24287
24288 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
24289
24290 * doc.c (Fdocumentation): Check for advice in all cases.
24291
24292 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
24293
24294 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24295
24296 2007-10-19 Richard Stallman <rms@gnu.org>
24297
24298 * doc.c (Fdocumentation): Check for and handle an advised function.
24299
24300 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
24301
24302 * process.c (Fset_process_filter): Doc fix.
24303
24304 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24305
24306 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24307 which caused key-translation-map to applied repeatedly (thus breaking
24308 double-mode).
24309
24310 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24311
24312 * xselect.c (x_own_selection, x_handle_selection_clear)
24313 (x_clear_frame_selections):
24314 * w32menu.c (list_of_panes, list_of_items):
24315 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24316 * textprop.c (validate_plist, interval_has_all_properties)
24317 (interval_has_some_properties, interval_has_some_properties_list)
24318 (add_properties, text_property_list):
24319 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24320 * minibuf.c (Fassoc_string):
24321 * macselect.c (x_own_selection, x_clear_frame_selections)
24322 (Fx_disown_selection_internal):
24323 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24324 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24325
24326 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
24327
24328 * process.c: Link to libs for calling res_init() if available.
24329 (Fmake_network_process): Call res_init() before getaddrinfo or
24330 gethostbyname, if possible.
24331
24332 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24333
24334 * lread.c (read1): Set pvectype for char_tables.
24335
24336 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24337 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24338 Add type checks.
24339 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24340
24341 * alloc.c (free_misc): Use XMISCTYPE.
24342 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24343
24344 2007-10-17 Glenn Morris <rgm@gnu.org>
24345
24346 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24347 (syms_of_minibuf): Add Qcompletion_ignore_case.
24348 * dired.c (Qcompletion_ignore_case): Change to external.
24349 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24350 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24351 (Fread_file_name): Use it rather than intern'ing.
24352
24353 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24354 (Fread_coding_system): Ignore case of user input.
24355
24356 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24357
24358 * xdisp.c (handle_display_prop): Ignore display specs after
24359 replacing one when string text is being replaced.
24360 (handle_single_display_spec): Pretend as if characters with display
24361 property haven't been consumed only when buffer text is being replaced.
24362
24363 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24364
24365 * xfns.c (Fx_create_frame, Fx_display_list):
24366 * window.c (window_fixed_size_p, enlarge_window)
24367 (shrink_window_lowest_first):
24368 * macterm.c (init_font_name_table):
24369 * macfns.c (Fx_create_frame, Fx_display_list):
24370 * lread.c (close_load_descs):
24371 * keyboard.c (read_char_x_menu_prompt):
24372 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24373 * coding.c (code_convert_region_unwind): Test the type of an object
24374 rather than just !NILP before extracting data from it.
24375
24376 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24377
24378 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24379 (XMISCANY): New macro.
24380 (XMISCTYPE): Use it.
24381 (struct Lisp_Misc_Any): New type.
24382 (union Lisp_Misc): Use it.
24383 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24384 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24385 (find_symbol_value, set_internal, default_value, Fset_default)
24386 (Fmake_variable_buffer_local, Fmake_local_variable)
24387 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24388 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24389 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24390 * alloc.c (allocate_buffer): Set the size and tag.
24391 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24392 Use XMISCANY.
24393 (die): Follow the GNU convention for error messages.
24394 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24395 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24396 tag any more.
24397 (set_buffer_internal_1):
24398 * frame.c (store_frame_param):
24399 * eval.c (specbind):
24400 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24401
24402 * doc.c (Fsnarf_documentation): Simplify.
24403
24404 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24405
24406 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24407 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24408
24409 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24410
24411 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24412
24413 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24414
24415 * eval.c (do_autoload): Don't save autoloads.
24416
24417 * data.c (Ffset): Save autoload of the function being set.
24418
24419 2007-10-07 John Paul Wallington <jpw@pobox.com>
24420
24421 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24422 parameter before setting up faces.
24423
24424 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24425
24426 * ccl.c (Fregister_code_conversion_map):
24427 * keyboard.c (append_tool_bar_item): Reformat last change.
24428
24429 * lisp.h (eabs): Rename from `abs'. All callers changed.
24430
24431 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24432
24433 * buffer.c (add_overlay_mod_hooklist):
24434 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24435 * fontset.c (make_fontset):
24436 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24437 (append_tool_bar_item):
24438 * macmenu.c (grow_menu_items):
24439 * w32menu.c (grow_menu_items):
24440 * xmenu.c (grow_menu_items): Use larger_vector.
24441
24442 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24443
24444 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24445 selected frame'' on MSDOS).
24446
24447 2007-10-12 Martin Rudalics <rudalics@gmx.at>
24448
24449 * frame.c (Qexplicit_name): New variable.
24450 (x_report_frame_params): Report it in parameter alist.
24451 (syms_of_frame): Intern and staticpro it.
24452
24453 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24454
24455 * macfns.c (x_create_tip_frame): Set terminal for frame.
24456
24457 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24458
24459 * frame.c (Qenvironment): Remove.
24460 (syms_of_frame) <Qenvironment>: Don't initialize.
24461 (Fdelete_frame): Don't treat the `environment' param specially.
24462 * frame.h (Qenvironment): Don't declare.
24463 * callproc.c (set_initial_environment): Don't set unused frame param.
24464
24465 * frame.c (Fframe_with_environment): Remove.
24466 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24467
24468 * lisp.h (Fframe_with_environment): Don't declare.
24469
24470 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
24471
24472 * indent.c (indent_tabs_mode, last_known_column)
24473 (last_known_column_modified): Make static.
24474 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24475
24476 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24477
24478 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24479
24480 2007-10-09 Jason Rumney <jasonr@gnu.org>
24481
24482 * w32term.c (x_set_window_size): Disable code that attempts to tell
24483 Lisp code about a size change before it actually happens.
24484
24485 2007-10-09 Richard Stallman <rms@gnu.org>
24486
24487 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24488 return HANDLED_RETURN.
24489
24490 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24491
24492 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24493 when there's an unread command event.
24494
24495 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24496 window autoselection act appropriately when leaving selected frame.
24497 (syms_of_frame): Initialize focus_follows_mouse.
24498 * frame.h (focus_follows_mouse): Extern it.
24499 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24500 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24501 * msdos.c (dos_rawgetc): Likewise.
24502 * w32term.c (w32_read_socket): Likewise.
24503 * xterm.c (handle_one_xevent): Likewise.
24504 * xdisp.c (syms_of_xdisp): In doc-string of
24505 mouse-autoselect-window mention focus-follows-mouse.
24506
24507 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24508
24509 * macterm.c (mac_load_query_font): Fix missing return value.
24510 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24511 Add BLOCK_INPUT.
24512
24513 2007-10-08 Richard Stallman <rms@gnu.org>
24514
24515 * xdisp.c (get_window_cursor_type): Implement documented behavior
24516 for cursor-in-non-selected-windows = t.
24517
24518 2007-10-08 Jason Rumney <jasonr@gnu.org>
24519
24520 * w32.c (w32_get_resource): Always close registry keys.
24521
24522 2007-10-08 Jason Rumney <jasonr@gnu.org>
24523
24524 * makefile.w32-in (LIBS): Add COMCTL32.
24525
24526 * w32fns.c (globals_of_w32fns): Init common controls.
24527
24528 2007-10-08 Richard Stallman <rms@gnu.org>
24529
24530 * image.c (our_memory_buffer): Rename from omfib_buffer.
24531
24532 2007-10-08 Richard Stallman <rms@gnu.org>
24533
24534 * buffer.c (Foverlays_at): Doc fix.
24535
24536 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24537
24538 * fns.c (Fplist_put): Preserve uneven tail data.
24539
24540 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24541
24542 * termhooks.h (enum event_kind): Remove trailing comma.
24543
24544 * frame.h (enum): Remove trailing comma.
24545
24546 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24547
24548 * w32proc.c (delete_child): Don't terminate threads of zombies.
24549
24550 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24551
24552 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24553
24554 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24555 last-repeatable-command.
24556 (init_kboard): Initialize Vlast_repeatable_command.
24557 (command_loop_1): Set it to real_this_command unless that was
24558 bound to an input event.
24559 (mark_kboards): Mark it.
24560
24561 2007-10-08 Richard Stallman <rms@gnu.org>
24562
24563 * eval.c (condition-case): Doc fix.
24564
24565 2007-10-08 Masatake YAMATO <jet@gyve.org>
24566
24567 * xfaces.c (tty_supports_face_attributes_p): Fix code
24568 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24569 was copied and not edited.
24570
24571 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24572
24573 Add new `input-decode-map' keymap and use it for terminal
24574 escape sequences.
24575 * keyboard.h (struct kboard): Add Vinput_decode_map.
24576 Remove Vlocal_key_translation_map.
24577 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24578 (init_kboard): Init input-decode-map.
24579 Replace local-key-translation-map back with key-translation-map.
24580 (syms_of_keyboard): Declare input-decode-map.
24581 Remove local-key-translation-map. Update docstrings.
24582 (mark_kboards): Mark Vinput_decode_map.
24583 Don't mark Vlocal_key_translation_map.
24584 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24585 Replace local-key-translation-map back with key-translation-map.
24586 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24587 Bind in input-decode-map rather than function-key-map.
24588
24589 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24590 This was made redundant by the previous introduction of XSETPVECTYPE.
24591
24592 2007-10-09 Richard Stallman <rms@gnu.org>
24593
24594 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24595
24596 2007-09-29 Richard Stallman <rms@gnu.org>
24597
24598 * eval.c (internal_condition_case_2, internal_condition_case_1)
24599 (internal_condition_case): Reenable abort if x_catching_errors ()
24600 to see if that really happens and why.
24601
24602 2007-10-06 Andreas Schwab <schwab@suse.de>
24603
24604 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24605
24606 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
24607
24608 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24609
24610 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24611
24612 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24613
24614 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24615
24616 * window.h (struct window):
24617 * window.c (struct save_window_data, struct saved_window):
24618 * termhooks.h (struct terminal):
24619 * process.h (struct Lisp_Process):
24620 * frame.h (struct frame):
24621 * buffer.h (struct buffer):
24622 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24623 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24624 The size field of (pseudo)vectors is now unsigned.
24625 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24626
24627 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24628 Turn `count' into an integer.
24629
24630 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24631 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24632 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24633 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24634 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24635
24636 * alloc.c (allocate_pseudovector): New fun.
24637 (ALLOCATE_PSEUDOVECTOR): New macro.
24638 (allocate_window, allocate_terminal, allocate_frame)
24639 (allocate_process): Use it.
24640 (mark_vectorlike): New function.
24641 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24642 (mark_terminals): Use it.
24643 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24644 (Fmake_byte_code): Use XSETPVECTYPE.
24645
24646 * frame.c (Fframe_parameters): Minor simplification.
24647
24648 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24649
24650 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24651
24652 * buffer.c (Fget_buffer_create, init_buffer_once):
24653 * lread.c (defsubr):
24654 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24655
24656 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24657 defined differently in the m/*.h files.
24658 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24659 (XSETPVECTYPE): New macro.
24660 (XSETPSEUDOVECTOR): Use it.
24661
24662 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24663 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24664
24665 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24666 * lread.c (defvar_per_buffer):
24667 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24668
24669 * window.c (candidate_window_p): Only consider as visible frames that
24670 are on the same terminal.
24671
24672 * m/ibms390x.h (MARKBIT): Remove unused macro.
24673
24674 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
24675
24676 * lread.c (Fload): Fix typo in docstring.
24677
24678 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24679
24680 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24681 of a non-zero value can't yield zero.
24682
24683 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24684
24685 * term.c (term_clear_mouse_face, term_mouse_highlight)
24686 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24687
24688 * print.c (safe_debug_print): Use XHASH.
24689
24690 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24691 Lisp elements such as tags.
24692 (XHASH): New macro.
24693 (EQ): Use it.
24694 (SREF, SSET, STRING_COPYIN): Use SDATA.
24695 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24696
24697 * alloc.c (mark_terminal): Remove left-over declaration.
24698 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24699 (allocate_vectorlike): Remove type argument. Adjust callers.
24700 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24701 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24702
24703 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24704 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24705 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24706 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24707 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24708 Use them.
24709
24710 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24711 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24712 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24713
24714 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24715
24716 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24717 loaded by default.
24718
24719 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24720
24721 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24722 on this tty.
24723 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24724
24725 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24726 Update all users.
24727 (handle_one_term_event): Use Gpm_DrawPointer.
24728 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24729 Signal errors instead of returning nil. Always return nil.
24730 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24731 Make it a noop if gpm-mouse was not activated.
24732 (syms_of_term): Update names.
24733
24734 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24735
24736 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24737 (init_sys_modes): Check that gpm_tty is the current tty.
24738
24739 * alloc.c (allocate_terminal): Set the vector size to only count the
24740 lisp fields. Initialize those to nil.
24741 (mark_object): Don't treat terminals specially.
24742 (mark_terminal): Remove.
24743 (mark_terminals): Use mark_object instead.
24744
24745 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24746 the GC to the beginning.
24747
24748 * indent.h:
24749 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24750
24751 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24752
24753 2007-09-25 Jason Rumney <jasonr@gnu.org>
24754
24755 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24756
24757 * w32console.c (create_w32cons_output): Remove.
24758
24759 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24760
24761 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24762 (reset_sys_modes): Use reset_terminal_modes_hook.
24763
24764 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24765
24766 * eval.c (do_autoload): Don't output any message.
24767
24768 2007-09-24 Juri Linkov <juri@jurta.org>
24769
24770 * emacs.c (standard_args): Change priority of "--no-splash"
24771 from 40 to 3. Add "--no-desktop" with the same priority.
24772
24773 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24774
24775 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24776 and optimize the case where they are all 1.
24777
24778 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
24779
24780 * lisp.h (abs): Define if not defined.
24781 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24782 Don't define `abs', since it's defined in lisp.h.
24783
24784 2007-09-22 Eli Zaretskii <eliz@gnu.org>
24785
24786 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24787 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24788 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24789 (init_tty): Use DEV_TTY instead of "/dev/tty".
24790 [WINDOWSNT]: No need to protect from NAME arg being null.
24791
24792 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24793
24794 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24795 up the tty state.
24796
24797 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24798
24799 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24800 (gpm_tty): Change its type.
24801 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24802 (gpm_tty): Change its type and initialize it.
24803 (Fterm_open_connection): Check the frame is indeed a tty.
24804 Use the new gpm_tty.
24805 (Fterm_close_connection): Use the new gpm_tty.
24806 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24807 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24808
24809 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
24810
24811 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24812 underline_color, to draw strike-through.
24813
24814 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24815
24816 * lisp.h (allocate_terminal): Declare.
24817
24818 * window.c (candidate_window_p): Consider frames that are being placed
24819 by the user as somewhere between visible and iconified.
24820 (window_loop): Prefer windows on the current frame.
24821 (Fselect_window): Move the use of select-frame to the beginning so we
24822 can just delegate all the work (it'll call us back anyway).
24823
24824 * frame.c (Qdisplay_environment_variable):
24825 * frame.h (Qdisplay_environment_variable): Delete.
24826
24827 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24828 of the first arg, since that value may be a union.
24829
24830 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24831 parameter rather than Qdisplay_environment_variable. If all else
24832 fails, look for DISPLAY in initial-environment.
24833
24834 2007-09-21 Glenn Morris <rgm@gnu.org>
24835
24836 * Makefile.in (emacstool): Remove target.
24837 (lisp, shortlisp): Remove termdev.elc.
24838
24839 2007-09-21 Markus Triska <markus.triska@gmx.at>
24840
24841 * xterm.c (x_delete_display): Compile session management conditionally.
24842
24843 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24844
24845 * callproc.c (getenv_internal_1): New function.
24846 (getenv_internal): Use it.
24847 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24848
24849 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24850 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24851 (Fset_terminal_parameter): Work with dead terminals as well.
24852 (Fmodify_terminal_parameters): Remove.
24853
24854 * terminal.c (get_terminal): Handle terminals.
24855 Make sure the terminal returned is live.
24856 (create_terminal): Use allocate_terminal.
24857 (mark_terminals): Move to alloc.c.
24858 (delete_terminal): Use terminal->name as liveness status.
24859 NULL out fields after freeing their contents.
24860 Don't deallocate the object.
24861 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24862 rather than an int.
24863 (Fterminal_live_p): Accept non-integer arguments.
24864 (Fterminal_list): Return terminal objects rather than an ints.
24865
24866 * alloc.c (enum mem_type): New member for `terminal' objects.
24867 (allocate_terminal): New function.
24868 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24869 Handle terminals.
24870 (mark_terminal): New fun.
24871 (mark_terminals): Move from terminal.c.
24872
24873 * term.c (get_tty_terminal): Don't treat output_initial specially.
24874 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24875 (delete_tty): Use terminal->name as liveness status.
24876
24877 * termhooks.h (struct terminal): Make it into a pseudovector.
24878 Remove `deleted' replaced by checking `name's nullness.
24879
24880 * print.c (print_object): Handle terminals.
24881
24882 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24883 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24884
24885 * frame.c (make_terminal_frame):
24886 * keyboard.c (tty_read_avail_input):
24887 * w32term.c (x_delete_terminal):
24888 * xfns.c (Fx_create_frame, x_create_tip_frame):
24889 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24890
24891 2007-09-20 Glenn Morris <rgm@gnu.org>
24892
24893 * process.c (Fmake_network_process): Doc fix.
24894
24895 2007-09-19 Jason Rumney <jasonr@gnu.org>
24896
24897 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24898
24899 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24900
24901 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24902 Fix a C warning regarding variable constness.
24903
24904 * xterm.c (handle_one_xevent): Fix a C warning.
24905
24906 2007-09-18 Jason Rumney <jasonr@gnu.org>
24907
24908 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24909
24910 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24911
24912 * gtkutil.c (gdpy_def): New variable.
24913 (xg_initialize): Initialize gdpy_def.
24914 (xg_display_close): If no other display exists, set gdpy_def to a
24915 new connection.
24916
24917 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24918
24919 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24920 when we have no file name for the icon.
24921 (xg_tool_bar_expose_callback): Remove.
24922 (xg_create_tool_bar): Don't connect expose signal to
24923 xg_tool_bar_expose_callback.
24924 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24925
24926 2007-09-16 Andreas Schwab <schwab@suse.de>
24927
24928 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24929 values instead of zapping them.
24930
24931 2007-09-14 Glenn Morris <rgm@gnu.org>
24932
24933 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24934 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24935 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24936 scope and rename to omfib_buffer for clarity.
24937 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24938
24939 2007-09-14 Kenichi Handa <handa@m17n.org>
24940
24941 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24942
24943 2007-09-13 Jason Rumney <jasonr@gnu.org>
24944
24945 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24946
24947 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24948
24949 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24950 (mac_term_init): Call here instead, passing rif.
24951
24952 2007-09-13 Glenn Morris <rgm@gnu.org>
24953
24954 * s/hpux.h: No longer define `static' as nothing.
24955
24956 2007-09-13 Johan Bockgård <bojohan@gnu.org>
24957
24958 * callint.c (Fcall_interactively): Remove unused var `fun'.
24959
24960 2007-09-12 Romain Francoise <romain@orebokech.com>
24961
24962 * window.c (prefer_window_split_horizontally, display_buffer):
24963 Revert 2007-09-08 change.
24964
24965 2007-09-12 Glenn Morris <rgm@gnu.org>
24966
24967 * alloca.c: Remove file.
24968 * Makefile.in (alloca): Do not undef.
24969 (allocaobj, alloca.o): Remove.
24970 (otherobj): Remove allocaobj.
24971 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24972 * regex.c (C_ALLOCA): Remove all references and code that was only
24973 used when this was defined.
24974 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24975 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24976 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24977
24978 * Makefile.in (SOURCES, unlock, relock): Delete.
24979
24980 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24981 (menu_grab_callback): All uses changed.
24982
24983 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24984 (x_reply_selection_request): All uses changed.
24985
24986 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24987
24988 * lread.c (load_warn_old_style_backquotes): Change message to look
24989 better when it appears in the middle of byte-compiler messages.
24990
24991 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24992
24993 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24994
24995 * xterm.c (x_create_terminal): Add comment.
24996
24997 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24998
24999 2007-09-10 Richard Stallman <rms@gnu.org>
25000
25001 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25002
25003 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25004
25005 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25006 (DEFUN): Document `intspec', use it instead of `prompt'.
25007
25008 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25009
25010 * data.c (Finteractive_form): If the interactive specification starts
25011 with a `(', use it as a Lisp form.
25012
25013 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25014 name and file modes.
25015
25016 * callint.c (Fcall_interactively): Comment fixes.
25017
25018 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25019
25020 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25021 and compiled functions.
25022
25023 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25024
25025 * window.c (prefer_window_split_horizontally): New variable.
25026 (display_buffer): Consider splitting window horizontally depending
25027 on prefer_window_split_horizontally.
25028
25029 2007-09-08 Eli Zaretskii <eliz@gnu.org>
25030
25031 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25032
25033 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25034
25035 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25036
25037 * frame.c (x_set_frame_parameters): Check number is positive before
25038 using XFASTINT.
25039
25040 * window.c (freeze_window_start): Don't presume selected_window holds
25041 a window object.
25042 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25043
25044 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25045
25046 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25047
25048 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25049
25050 * window.c (Vsplit_window_preferred_function): New var.
25051 (Fdisplay_buffer): Use it.
25052 (syms_of_window): Export, and initialize it.
25053
25054 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25055
25056 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25057
25058 2007-09-06 Glenn Morris <rgm@gnu.org>
25059
25060 * gtkutil.c (menu_grab_callback) <cnt>:
25061 * xselect.c (x_reply_selection_request) <cnt>: Move static
25062 variable to file scope.
25063
25064 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25065
25066 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25067 consistent values of selected_frame and selected_window.
25068
25069 2007-09-04 Jason Rumney <jasonr@gnu.org>
25070
25071 * w32console.c (initialize_w32_display): Zero unused hooks.
25072
25073 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25074
25075 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25076 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25077
25078 2007-09-04 Jason Rumney <jasonr@gnu.org>
25079
25080 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25081 in w32console.c. Set up input. Remove XXX comments that have been
25082 confirmed as correct.
25083
25084 * s/ms-w32.h (MULTI_KBOARD): Define.
25085
25086 * w32console.c (one_and_only_w32cons): Remove.
25087 (initialize_w32_display): Take terminal argument.
25088
25089 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25090 initialize_w32_display.
25091 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25092
25093 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25094
25095 * keyboard.c (discard_mouse_events): Discard it.
25096 (make_lispy_event): Translate it to a lisp event.
25097 (lispy_wheel_names): Add wheel-left and right events.
25098 (syms_of_keyboard): Enlarge wheel_syms.
25099
25100 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25101 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25102
25103 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25104
25105 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25106 from WM_MOUSEHWHEEL.
25107 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25108
25109 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25110 terminal.
25111
25112 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25113 keyboard for the terminal.
25114
25115 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25116
25117 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25118 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25119 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25120 and resume-tty-function to resume-tty-hook.
25121 (Fsuspend_tty, Fresume_tty): Use new names.
25122
25123 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25124
25125 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25126 if it starts with "n:".
25127
25128 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25129
25130 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25131
25132 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25133
25134 * frame.h:
25135 * frame.c (Qterm_environment_variable): Remove.
25136 (syms_of_frame): Don't init and staticpro it.
25137
25138 * callproc.c (getenv_internal): Remove special case for $TERM.
25139
25140 * callproc.c (Vinitial_environment): New variable.
25141 (set_initial_environment): Initialize it.
25142 (syms_of_callproc): Declare it.
25143 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25144 TERM under which a process runs is never related to the TERM in which
25145 Emacs is running.
25146
25147 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25148
25149 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25150 * s/darwin.h: ... do it here.
25151
25152 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25153
25154 * lisp.h (set_initial_environment): Rename from set_global_environment.
25155
25156 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25157 removed by mistake on the multi-tty branch.
25158
25159 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25160 (Fmodify_frame_parameters): Return a value.
25161
25162 * image.c (png_load): Comment-out var only used in commented-out code.
25163
25164 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25165 before passing it to mark_object.
25166
25167 * xfaces.c (internal_resolve_face_name): Return a value.
25168 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25169
25170 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25171 (x_icon): Comment-out var only used in commented-out code.
25172
25173 2007-08-29 Romain Francoise <romain@orebokech.com>
25174
25175 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25176 QUIT hasn't been provided.
25177
25178 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25179
25180 * callproc.c (child_setup, getenv_internal): Use the
25181 display-environment-variable and term-environment-variable frame params.
25182 (set_initial_environment): Initialise Vprocess_environment.
25183
25184 * config.in: Disable multi-keyboard support on a mac.
25185
25186 * frame.c (Qterm_environment_variable)
25187 (Qdisplay_environment_variable): New variables.
25188 (syms_of_frame): Intern and staticpro them.
25189 (Fmake_terminal_frame): Disable output method test.
25190
25191 * frame.h: Declare them here.
25192
25193 * macfns.c (x_set_mouse_color): Get rif from the frame.
25194 (x_set_tool_bar_lines): Don't use updating_frame.
25195 (mac_window): Add 2 new parameters for consistency with other systems.
25196 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25197 frame parameters following what is done in X11 and w32. Don't use
25198 FRAME_MAC_DISPLAY_INFO.
25199 (Fx_open_connection, start_hourglass): Remove window-system check.
25200 (x_create_tip_frame): Get the keyboard from the terminal.
25201
25202 * macmenu.c: Reorder includes.
25203 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25204
25205 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25206 terminal parameter.
25207 (x_clear_frame): Add a frame parameter.
25208 (note_mouse_movement): Get rif from the frame.
25209 (mac_term_init): Initialize the terminal.
25210 (mac_initialize): Make static and move terminal initialization ...
25211 (mac_create_terminal): ... to this new function.
25212
25213 * macterm.h (struct mac_display_info): Add terminal.
25214 (mac_initialize): Delete declaration.
25215
25216 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25217
25218 * sysdep.c: Comment out text after #endif.
25219
25220 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25221 is defined. Better initialize ttys in windows. Use terminal
25222 specific mouse_position_hook.
25223
25224 * termhooks.h (union display_info): Add mac_display_info.
25225
25226 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25227 Set the default minibuffer frame, window_system and the rest of the
25228 frame parameters following what is done in X11.
25229
25230 * w32term.c (w32_initialize): Make static.
25231
25232 * xselect.c (x_handle_selection_clear): Only access
25233 terminal->kboard when MULTI_KBOARD is defined.
25234
25235 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25236 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25237
25238 2007-08-29 Jason Rumney <jasonr@gnu.org>
25239
25240 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25241 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25242
25243 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25244 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25245
25246 * keyboard.c (restore_kboard_configuration): Only define when
25247 MULTI_KBOARD defined.
25248
25249 * makefile.w32-in: Update dependancies from Makefile.in.
25250 (OBJ1): Add terminal.$(O)
25251
25252 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25253 Don't define function body.
25254 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25255
25256 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25257
25258 * w32.c (request_sigio, unrequest_sigio): Remove.
25259
25260 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25261 (w32con_clear_frame, w32con_clear_end_of_line)
25262 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25263 (w32con_delete_glyphs, w32con_set_terminal_window)
25264 (scroll_line, w32_sys_ring_bell): Add frame arg.
25265 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25266 Add terminal arg.
25267 (PICK_FRAME): Remove.
25268 (w32con_write_glyphs): Use frame specific terminal coding.
25269 (one_and_only_w32cons): New global variable.
25270 (initialize_w32_display): Use it for storing hooks.
25271 (create_w32cons_output): New function.
25272
25273 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25274 arg a frame.
25275
25276 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25277 Set window_system.
25278 (x_set_tool_bar_lines): Don't use updating_frame.
25279 (Fx_create_frame): Set terminal and ref count.
25280 (Fx_open_connection): Remove window-system check.
25281
25282 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25283
25284 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25285 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25286 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25287 Add frame arg.
25288 (x_delete_terminal, w32_create_terminal): New functions.
25289 (w32_term_init): Create a terminal.
25290 (w32_initialize): Move terminal specific initialization to
25291 w32_create_terminal.
25292
25293 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25294 (w32_clear_rect, w32_clear_area): Use background from frame.
25295 (w32_display_info): Add terminal.
25296 (w32_sys_ring_bell, x_delete_display): Declare here.
25297
25298 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25299
25300 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25301
25302 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25303
25304 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25305 Fix get_named_tty calls for the controlling tty.
25306
25307 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25308
25309 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
25310
25311 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25312
25313 * term.c (tty_insert_glyphs): Add missing first parameter.
25314
25315 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25316
25317 * buffer.c (Fbuffer_list, Fbury_buffer):
25318 Take frame->buried_buffer_list into account.
25319
25320 * cm.c (current_tty): New variable, for cmputc().
25321 (cmputc): Use it.
25322 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25323 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25324 (cmgoto): Add tty parameter. Pass it on to calccost().
25325 Use emacs_tputs() instead of tputs().
25326
25327 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25328 tputs().
25329 (current_tty): New variable, for cmputc().
25330 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25331
25332 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25333 (internal_condition_case, internal_condition_case_1)
25334 (internal_condition_case_2): Don't abort when x_catching_errors.
25335
25336 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25337 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25338 prevent crashes caused by bogus longjmps in read_char.
25339
25340 * keymap.h (Fset_keymap_parent): Add EXFUN.
25341
25342 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25343 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25344 Remove redundant definition.
25345
25346 * macfns.c (x_set_mouse_color, x_make_gc):
25347 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25348
25349 * w32term.c (x_free_frame_resources):
25350 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25351 (w32_initialize): Use the accessor macros for terminal characteristics.
25352
25353 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25354 Use the accessor macros for terminal characteristics.
25355 * msdos.c (internal_terminal_init): Use the accessor macros for
25356 terminal characteristics.
25357 (ScreenVisualBell, internal_terminal_init):
25358 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25359
25360 * termopts.h (no_redraw_on_reenter): Declare.
25361
25362 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25363 (mark_terminals, mark_ttys): Declare.
25364 (Fgarbage_collect): Call them.
25365 (mark_object): Mark buried_buffer_list.
25366
25367 * prefix-args.c: Include stdlib.h for exit.
25368
25369 * syssignal.h: Add comment.
25370
25371 * indent.c: Include stdio.h.
25372
25373 * window.h (Vinitial_window_system): Declare.
25374 (Vwindow_system): Delete declaration.
25375
25376 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25377
25378 * image.c (lookup_image): Don't initialize `c' until the xasserts
25379 have been run.
25380
25381 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25382 FRAME_FOREGROUND_PIXEL.
25383
25384 * print.c (print_preprocess): Don't lose print_depth levels while
25385 iterating.
25386
25387 * widget.c (update_from_various_frame_slots):
25388 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25389
25390 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25391 frames.
25392 (window_internal_height): Remove bogus make_number call.
25393 (init_window_once): Call make_terminal_frame with two zero parameters.
25394
25395 * fileio.c (Fread_file_name): Update comment.
25396
25397 * callint.c (Fcall_interactively):
25398 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25399 Make sure it is correctly unwound.
25400
25401 * xsmfns.c (x_session_close): New function.
25402
25403 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25404 Delete declarations.
25405
25406 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25407 (x_output): Remove background_pixel and foreground_pixel fields.
25408 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25409 (x_delete_device, x_session_close): Declare.
25410
25411 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25412 (read_filtered_event): Call `read_char' with a local
25413 `wrong_kboard_jmpbuf'.
25414
25415 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25416 Don't call single_kboard_state. Use FRAME_RIF.
25417
25418 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25419 systems.
25420
25421 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25422 (Fframe_with_environment, Fset_input_meta_mode)
25423 (Fset_quit_char): EXFUN.
25424 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25425 (init_sys_modes, reset_sys_modes): Update prototypes.
25426 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25427
25428 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25429 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25430 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25431 Delete declarations.
25432 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25433 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25434 New declarations.
25435
25436 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25437 already does that during init_display(). Call syms_of_keymap
25438 before syms_of_keyboard. Call `syms_of_terminal'.
25439 Call set_initial_environment, not set_process_environment.
25440 (shut_down_emacs): Call reset_all_sys_modes() instead of
25441 reset_sys_modes().
25442
25443 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25444 (internal_resolve_face_name, resolve_face_name_error): New functions.
25445 (resolve_face_name): Protect against loops and errors thrown by Fget.
25446 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25447 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25448
25449 * scroll.c: Replace CURTTY() with local variables throughout the
25450 file (where applicable).
25451 (calculate_scrolling, calculate_direct_scrolling)
25452 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25453 characteristics.
25454
25455 * keymap.c (Vfunction_key_map): Remove.
25456 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25457 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25458 (Vkey_translation_map): Remove.
25459 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25460 (Fdescribe_buffer_bindings)
25461 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25462 Update for terminal-local key-translation-map.
25463
25464 * Makefile.in (callproc.o): Update dependencies.
25465 (lisp, shortlisp): Add termdev.elc.
25466 (obj): Add terminal.o.
25467 (terminal.o): Add dependencies.
25468 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25469 (data.o, fns.o): Add termhooks.h dependency.
25470 (SOME_MACHINE_LISP): Add dnd.elc.
25471 (minibuf.o): Fix typo.
25472 Update dependencies.
25473
25474 * data.c (do_symval_forwarding, store_symval_forwarding)
25475 (find_symbol_value): Use the selected frame's keyboard, not
25476 current_kboard.
25477
25478 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25479 Vwindow_system.
25480
25481 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25482 Fmenu_bar_open.
25483 (syms_of_xmenu): Update defsubr.
25484 (mouse_position_for_popup, Fx_popup_menu)
25485 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25486 (set_frame_menubar, free_frame_menubar)
25487 (create_and_show_popup_menu, xmenu_show)
25488 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25489 an X frame.
25490
25491 * xselect.c (x_own_selection): Abort if not an X frame.
25492 (some_frame_on_display): Check if it is an X frame.
25493 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25494
25495 * coding.c: Include frame.h and termhooks.h.
25496 (terminal_coding, keyboard_coding): Delete.
25497 (Fset_terminal_coding_system_internal)
25498 (Fset_keyboard_coding_system_internal)
25499 (Fkeyboard_coding_system)
25500 (Fterminal_coding_system): Add a terminal parameter.
25501 Get terminal_coding from the terminal.
25502 (init_coding_once): Don't call setup_coding_system here.
25503
25504 * dispextern.h (set_scroll_region, turn_off_insert)
25505 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25506 (tty_clear_end_of_line, tty_setup_colors)
25507 (delete_tty, updating_frame)
25508 (produce_special_glyphs, produce_glyphs, write_glyphs)
25509 (insert_glyphs): Remove.
25510 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25511 (tty_turn_off_highlight, get_tty_size): Add declaration.
25512 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25513
25514 * frame.h (enum output_method): Add output_initial.
25515 (struct x_output): Delete.
25516 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25517 Access foreground_pixel and background_pixel directly from the frame.
25518 (tty_display): Delete.
25519 (struct frame): Add buried_buffer_list, foreground_pixel,
25520 background_pixel and terminal. Delete kboard.
25521 (union output_data): Add tty.
25522 (FRAME_KBOARD): Get the kboard from the terminal.
25523 (FRAME_INITIAL_P): New macro.
25524 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25525 (Qterm_environment_variable, Qdisplay_environment_variable)
25526 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25527 New declarations.
25528
25529 * termchar.h (tty_output, tty_display_info): New structures.
25530 (tty_list): Declare.
25531 (FRAME_TTY, CURTTY): New macros.
25532 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25533 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25534 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25535 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25536
25537 * callproc.c: Include frame.h and termhooks.h, for terminal
25538 parameters.
25539 (add_env): New function.
25540 (child_setup): Use it.
25541 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25542 (getenv_internal): Fix get_terminal_param call.
25543 (Fgetenv_internal, egetenv): Update doc.
25544 (syms_of_callproc): Initialize Vprocess_environment to nil.
25545 Register and initialize them. Remove obsolete defvars. Update doc
25546 strings.
25547 (child_setup): Handle Vlocal_environment_variables.
25548 (getenv_internal): Add terminal parameter.
25549 Handle Vlocal_environment_variables.
25550 (Fgetenv_internal): Add terminal parameter.
25551 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25552 environment in a frame (not terminal) parameter. Update doc strings.
25553 (set_initial_environment): Rename from set_global_environment.
25554 Store Emacs environment in initial frame parameter.
25555
25556 * xdisp.c (redisplay_internal): Update references to
25557 `previous_terminal_frame'.
25558 (display_mode_line, Fformat_mode_line): Replace calls to
25559 `push_frame_kboard' with `push_kboard'.
25560 (get_glyph_string_clip_rects): Add extra parentheses and
25561 braces to prevent compiler warnings.
25562 (calc_pixel_width_or_height): Add xassert to check that the
25563 frame is alive. Don't call `lookup_image' on a termcap frame.
25564 (message2_nolog, message3_nolog, redisplay_internal)
25565 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25566 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25567 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25568 (Fx_display_pixel_width, Fx_display_pixel_height)
25569 (Fx_display_planes, Fx_display_color_cells)
25570 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25571 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25572 (Fx_display_backing_store, Fx_display_visual_class)
25573 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25574 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25575
25576 * xfns.c (x_set_foreground_color x_set_background_color)
25577 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25578 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25579 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25580 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25581 terminal that is being deleted.
25582 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25583 frame parameter, and make sure it overrides any user-supplied setting.
25584 (Fx_close_connection, Fx_synchronize): Unify argument names with
25585 the rest of the DEFUNs.
25586
25587 * dispnew.c (Fsend_string_to_terminal): Update call to
25588 `get_tty_terminal'.
25589 (Fredraw_frame, Fsend_string_to_terminal)
25590 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25591 FRAME_TERMCAP_P and FRAME_TTY.
25592 (window_change_signal): Don't believe width/height values that are
25593 impossibly small.
25594 (Vinitial_window_system): Rename from Vwindow_system.
25595 (termscript, Wcm, rif): Delete.
25596
25597 * termhooks.h (struct terminal): New struct containing the
25598 previously global text display hooks and new members NAME,
25599 DELETED and PARAM_ALIST.
25600 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25601 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25602 (FRAME_RIF): New macros.
25603 (get_terminal_param, get_device): New declarations.
25604 (termscript): Delete declaration.
25605
25606 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25607 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25608 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25609 FRAME_FOREGROUND_PIXEL.
25610 (x_fully_uncatch_errors): Disable definition.
25611 (x_scroll_bar_expose): Fix reference to foreground pixel.
25612 (XTread_socket): Disable loop on all X displays.
25613 (x_delete_terminal): Don't set terminal->deleted and let
25614 delete_terminal delete the frames on the terminal.
25615 (x_delete_display): Doc update to reflect changes in
25616 delete_terminal.
25617 (x_display_info) <terminal>: Move member earlier in the struct.
25618 (deleting_tty): Remove old variable.
25619 (Fsuspend_tty): Call clear_tty_hooks.
25620 (Fresume_tty, init_tty): Call set_tty_hooks.
25621 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25622 errors on X frames.
25623 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25624 (handle_one_xevent): Initialize `f' to NULL.
25625 (x_delete_terminal, x_create_terminal): New functions.
25626 (XTset_terminal_modes, XTreset_terminal_modes)
25627 (XTread_socket, x_connection_closed, x_term_init)
25628 (x_term_init, x_delete_display): Add terminal parameter.
25629 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25630 X connections.
25631
25632 * frame.c: Include termchar.h.
25633 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25634 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25635 (Qdisplay_environment_variable): New vars.
25636 (Fframep): Deal with output_initial.
25637 (Fframe-live-p): Doc fix.
25638 (Fwindow-system): New function.
25639 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25640 (make_terminal_frame): Don't create frames on a terminal that is
25641 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25642 (store_frame_param): Check for found_for_frame before calling XFRAME.
25643 (Fmake_terminal_frame): Handle NULL tty names correctly.
25644 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25645 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25646 frames to refer to a deleted frame in their 'environment parameter.
25647 (Fframe_with_environment): New function.
25648 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25649 (get_future_frame_param): New function.
25650 (Fmake_terminal_frame): Use it.
25651 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25652
25653 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25654 * sysdep.c (reset_sys_modes): Update for renames.
25655
25656 * keyboard.c (tty_read_avail_input): New function.
25657 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25658 (syms_of_keyboard): Defsubr them.
25659 (Fset_input_meta_mode, Fset_quit_char): New functions.
25660 (Fset_input_mode): Split to above functions.
25661 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25662 parameter. Use it in call to `read_char'.
25663 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25664 Set wrong_kboard_jmpbuf correctly in recursive calls.
25665 Use current_kboard to access Vkeyboard_translate_table.
25666 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25667 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25668 Update longjmp invocations. Remember the original current_kboard,
25669 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25670 changes it. Comment out unnecessary calls to
25671 `record_single_kboard_state' and `any_kboard_state'.
25672 Update recursive calls.
25673 (wrong_kboard_jmpbuf): Remove global variable.
25674 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25675 Handle deleted interrupted_kboards correctly; that is a legal
25676 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25677 and read_char calls. Abort if interrupted_kboard died in read_char.
25678 (any_kboard_state, single_kboard_state)
25679 (push_frame_kboard): Remove function.
25680 (pop_kboard): Switch out of single_kboard mode if the kboard has
25681 been deleted. Remove unused variable. Help debugging by not
25682 changing current_kboard unnecessarily. Set current_kboard to the
25683 kboard of the selected frame when the stored kboard object has
25684 been deleted before pop_kboard.
25685 (temporarily_switch_to_single_kboard): Change first parameter to a
25686 frame pointer. Throw an error when caller wants to change kboards
25687 while in single_kboard mode. Don't push_kboard if we weren't in
25688 single kboard state. Don't pop_kboard if we popped into any
25689 kboard state.
25690 (restore_kboard_configuration): Abort if pop_kboard changed the
25691 kboard in single_kboard mode. Call pop_kboard only after setting
25692 up single_kboard mode.
25693 (Frecursive_edit): Switch to single_kboard mode only in nested
25694 command loops.
25695 (cmd_error, command_loop, command_loop_1, timer_check):
25696 Comment out unnecessary call to `any_kboard_state' and
25697 `record_single_kboard_state'.
25698 (delete_kboard): Exit single_kboard mode if we have just deleted
25699 that kboard. Use FRAME_KBOARD.
25700 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25701 `fatal_error_signal'.
25702 (record_single_kboard_state): Don't push_kboard if we weren't in
25703 single kboard state. Don't pop_kboard if we popped into any
25704 kboard state.
25705 (push_frame_kboard): Rename to push_kboard.
25706 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25707 (read_avail_input): Read input from all terminals.
25708 (mark_kboards): Also mark Vkeyboard_translate_table.
25709 (kbd_buffer_store_event_hold): Simplify condition.
25710 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25711 (Vkeyboard_translate_table): Move to struct kboard.
25712 (init_kboard): Initialize Vkeyboard_translate_table.
25713 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25714 Vkeyboard_translate_table. Update doc strings. Update docs of
25715 local-function-key-map and function-key-map.
25716
25717 * terminal.c: New file.
25718
25719 * term.c: Include errno.h.
25720 (Vring_bell_function, device_list, initial_device)
25721 (next_device_id, ring_bell, update_begin, update_end)
25722 (set_terminal_window, cursor_to, raw_cursor_to)
25723 (clear_to_end, clear_frame, clear_end_of_line)
25724 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25725 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25726 (syms_of_term): Move their initialization to terminal.c.
25727 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25728 (Ftty_display_color_cells)
25729 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25730 (clear_tty_hooks, set_tty_hooks)
25731 (init_tty, maybe_fatal): New functions.
25732 (Ftty_type): Return nil if terminal is not on a tty instead of
25733 throwing an error. Doc update.
25734 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25735 Doc update. Initialize new subrs and variables.
25736 (delete_tty): Use terminal->deleted.
25737 (tty_set_terminal_modes): Rename from set_terminal_modes.
25738 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25739 (set_scroll_region): Rename to `tty_set_scroll_region'.
25740 (turn_on_insert): Rename to `tty_turn_on_insert'.
25741 (turn_off_insert): Rename to `tty_turn_off_insert'.
25742 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25743 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25744 (toggle_highligh): Rename to `tty_toggle_highlight'.
25745 (background_highlight): Rename to `tty_background_highlight'.
25746 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25747 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25748 (tty_set_scroll_region, tty_background_highlight)
25749 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25750 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25751 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25752 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25753 Add static modifier.
25754 (tty_reset_terminal_modes, tty_set_terminal_window)
25755 (tty_set_scroll_region, tty_background_highlight)
25756 (tty_highlight_if_desired, tty_cursor_to)
25757 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25758 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25759 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25760 renames.
25761
25762 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25763
25764 * keyboard.c: Qrtl is new.
25765 (parse_tool_bar_item): Handle :rtl keyword.
25766 (syms_of_keyboard): Intern :rtl keyword.
25767
25768 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25769
25770 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25771 so no Lisp code is executed.
25772 (file_for_image, find_rtl_image): New functions.
25773 (xg_get_image_for_pixmap): Use file_for_image.
25774 (update_frame_tool_bar): If direction is RTL, use RTL image if
25775 defined. Use Gtk stock images if defined.
25776
25777 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25778
25779 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25780 for nonexistent or zero-width glyph in composition glyph.
25781
25782 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25783
25784 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25785
25786 * xdisp.c (Finvisible_p): New function.
25787 (syms_of_xdisp): defsubr it.
25788
25789 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
25790
25791 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25792 Doc fixes.
25793
25794 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25795
25796 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25797
25798 2007-08-24 Martin Rudalics <rudalics@gmx.at>
25799
25800 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25801 whether decoding has modified buffer contents.
25802
25803 2007-08-24 Jason Rumney <jasonr@gnu.org>
25804
25805 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25806 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25807 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25808 (init_svg_functions) [HAVE_NTGUI]: New function.
25809 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25810 (svg_load_image): Use them.
25811 (svg_load_image) [HAVE_NTGUI]: Implement background.
25812
25813 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25814
25815 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25816 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25817 (LIBX): Remove @RSVG_LIBS@.
25818 (LIBES): Add $(RSVG_LIBS).
25819
25820 * image.c (svg_load_image): Blend with specified background if exists.
25821 Use IMAGE_BACKGROUND. Add Mac OS Support.
25822
25823 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25824 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25825 Remove macros.
25826 [MAC_OSX] (socket_callback): Do nothing.
25827 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25828 ReceiveNextEvent.
25829 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25830 socket_callback.
25831 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25832
25833 2007-08-22 Glenn Morris <rgm@gnu.org>
25834
25835 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25836
25837 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25838
25839 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25840
25841 * image.c: Add support for SVG images. Some additional comments
25842 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25843 (svg_image_p): New function to test for SVG image.
25844 (svg_load): New function to load SVG image.
25845 (svg_load_image): New function, helper for svg_load.
25846 (Qsvg): New Lisp_object.
25847 (svg_keyword_index): New enum.
25848 (svg_format): New static `image_keyword' struct.
25849 (svg_type): New static `image_type' struct.
25850 (librsvg/rsvg.h): Include it.
25851
25852 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25853
25854 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25855
25856 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25857
25858 * lread.c (Qold_style_backquotes): New var.
25859 (syms_of_lread): Init and staticpro it.
25860 (load_warn_old_style_backquotes): New fun.
25861 (Fload): Use them to warn about old style backquotes.
25862 (end_of_file_error, Fload): Remove unused vars.
25863
25864 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25865
25866 * lread.c (Vold_style_backquotes): New var.
25867 (syms_of_lread): Init and export it to Elisp.
25868 (read1): Set it when we find an old-style (back)quote.
25869
25870 2007-08-22 Jason Rumney <jasonr@gnu.org>
25871
25872 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25873
25874 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25875
25876 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25877
25878 2007-08-19 Richard Stallman <rms@gnu.org>
25879
25880 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25881
25882 2007-08-19 Andreas Schwab <schwab@suse.de>
25883
25884 * alloc.c (pure): Round PURESIZE up.
25885
25886 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25887
25888 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25889 active frame.
25890
25891 2007-08-16 Richard Stallman <rms@gnu.org>
25892
25893 * eval.c (Fcommandp): Add parens to clarify.
25894
25895 * minibuf.c (Fall_completions): Use enum for type of table.
25896
25897 * emacs.c (USAGE2): Improve text.
25898
25899 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25900
25901 * term.c (tty_default_color_capabilities): Declare static
25902 variables in file scope, to avoid HPUX compiler problem.
25903
25904 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25905
25906 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25907 to gtk_toolbar_insert.
25908
25909 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25910
25911 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25912
25913 * insdel.c (reset_var_on_error): New fun.
25914 (signal_before_change, signal_after_change):
25915 Use it to reset (after|before)-change-functions to nil in case of error.
25916 Bind inhibit-modification-hooks to t.
25917 Don't bind (after|before)-change-functions to nil while they run.
25918
25919 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25920
25921 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25922 filling pixmap with stippled background.
25923
25924 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25925
25926 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25927 Don't use invisible frame as parent window for repositioning.
25928
25929 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25930
25931 * print.c (new_backquote_output): Rename from old_backquote_output.
25932 (print): Inverse its logic (according to its name) so as to match the
25933 behavior of new_backquote_flag in lread.c.
25934
25935 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25936
25937 * gmalloc.c (posix_memalign): New function.
25938
25939 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25940 ActivateControl/DeactivateControl here.
25941 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25942 frame-notice-user-settings is non-nil.
25943 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25944 for kEventParamFMFontStyle.
25945 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25946 mac_pass_command_to_system and mac_pass_control_to_system here.
25947 (XTread_socket): Call ActivateControl/DeactivateControl here.
25948 (XTread_socket) [TARGET_API_MAC_CARBON]:
25949 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25950 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25951 for window repositioning.
25952
25953 2007-08-08 Glenn Morris <rgm@gnu.org>
25954
25955 * Replace `iff' in doc-strings and comments.
25956
25957 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
25958
25959 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25960
25961 2007-08-07 Martin Rudalics <rudalics@gmx.at>
25962
25963 * fileio.c (Finsert_file_contents): Run format-decode and
25964 after_insert_file_functions on entire buffer when REPLACE is
25965 non-nil and inhibit modification_hooks and point_motion_hooks.
25966 For consistency, run after_insert_file_functions iff something
25967 got inserted. Move signal_after_change and update_compositions
25968 after code running after_insert_file_functions. Make sure that
25969 undo_list doesn't record intermediate steps of the decoding process.
25970
25971 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25972
25973 * emacs.c (main)
25974 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25975 Call malloc_enable_thread on interactive startup.
25976
25977 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25978 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25979 [USE_PTHREAD]: Conditionalize with it.
25980 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25981 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25982 New functions.
25983
25984 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
25985
25986 * xdisp.c (redisplay_window): When restoring original buffer
25987 position, make sure it is still valid.
25988
25989 * image.c (png_load): Ignore png-supplied background color.
25990
25991 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25992
25993 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25994 Use kCFAbsoluteTimeIntervalSince1970.
25995
25996 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25997 New variable.
25998 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25999 event loop should be quit.
26000 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26001 Quit dialog event loop if quit_dialog_event_loop is set.
26002
26003 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26004 (Selection): New typedef. Use instead of ScrapRef.
26005 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26006 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26007 (mac_clear_selection): Rename from clear_scrap.
26008 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26009 scrap_has_target_type. All uses changed.
26010 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26011 (mac_selection_has_target_p): New functions.
26012 (mac_put_selection_value): Rename from put_scrap_string.
26013 (mac_get_selection_value): Rename from get_scrap_string.
26014 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26015 (put_scrap_private_timestamp, scrap_has_target_type)
26016 (get_scrap_private_timestamp): Remove functions.
26017 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26018 (x_own_selection, x_get_local_selection):
26019 Use mac_valid_selection_value_p.
26020 (x_own_selection): Don't use put_scrap_private_timestamp.
26021 Record OWNERSHIP-INFO into Vselection_alist instead.
26022 (x_get_local_selection): Don't check type if request is local.
26023 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26024 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26025
26026 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26027
26028 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26029 add comment explaining why.
26030
26031 2007-08-03 Richard Stallman <rms@gnu.org>
26032
26033 * fileio.c (Fvisited_file_modtime): Use make_time.
26034
26035 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26036
26037 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26038 build.
26039
26040 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26041
26042 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26043
26044 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26045
26046 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26047
26048 2007-07-30 Richard Stallman <rms@gnu.org>
26049
26050 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26051
26052 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26053
26054 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26055
26056 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
26057
26058 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26059 remote default-directory.
26060
26061 * buffer.c (mode-line-format): Update doc string.
26062
26063 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26064
26065 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26066 scroll bar gap.
26067 (x_scroll_bar_create): Set bar->fringe_extended_p.
26068 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26069 on frame edge. Check fringe background extension. Don't clear
26070 extended fringe background area.
26071
26072 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26073 (w32_fill_area): Enclose multiple statements with do ... while (0).
26074
26075 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26076 Extend fringe background to scroll bar gap.
26077 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26078 Set bar->fringe_extended_p.
26079 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26080 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26081 background extension. Don't clear extended fringe background area.
26082
26083 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26084 New member fringe_extended_p.
26085
26086 2007-07-25 Glenn Morris <rgm@gnu.org>
26087
26088 * Relicense all FSF files to GPLv3 or later.
26089
26090 * COPYING: Switch to GPLv3.
26091
26092 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26093
26094 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26095
26096 * data.c (Finteractive_form): Check for the presence of an
26097 `interactive-form' symbol property more thoroughly.
26098
26099 * data.c (Finteractive_form): Use an `interactive-form' property if
26100 present, analogous to the function-documentation property.
26101
26102 2007-07-24 Jason Rumney <jasonr@gnu.org>
26103
26104 * w32fns.c (x_real_positions): Get real position from OS instead of
26105 calculating it.
26106
26107 2007-07-23 Jason Rumney <jasonr@gnu.org>
26108
26109 * filelock.c (current_lock_owner): Allow for @ sign in username.
26110
26111 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
26112
26113 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26114 remote default-directory.
26115
26116 * buffer.c (mode-line-format): Describe above case in doc string.
26117
26118 2007-07-20 Eli Zaretskii <eliz@gnu.org>
26119
26120 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26121 Define if not defined.
26122
26123 2007-07-18 Jason Rumney <jasonr@gnu.org>
26124
26125 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26126
26127 2007-07-18 Richard Stallman <rms@gnu.org>
26128
26129 * data.c (Fsetq_default): Doc fix.
26130
26131 * eval.c (Fsetq): Doc fix.
26132
26133 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
26134
26135 * coding.c (Ffind_operation_coding_system):
26136 * eval.c (For, Fand): Doc fixes.
26137 Reported by Johan Bockgård.
26138
26139 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26140
26141 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26142
26143 * xterm.h: Declare x_ewmh_activate_frame.
26144
26145 * xterm.c (x_ewmh_activate_frame): New function.
26146 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26147
26148 2007-07-17 Martin Rudalics <rudalics@gmx.at>
26149
26150 * window.c (Fdisplay_buffer): If largest or LRU window is the
26151 only window, split it even if it is not eligible for splitting.
26152 This restores the original behavior broken by the 2007-07-15
26153 change.
26154
26155 2007-07-17 Glenn Morris <rgm@gnu.org>
26156
26157 * abbrev.c (abbrev_check_chars): New function.
26158 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26159 Call abbrev_check_chars to check abbrev characters are word
26160 constituents. Doc fix.
26161
26162 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26163
26164 * process.c (Fstart_process, Fmake_network_process)
26165 (read_process_output): Fix up last changes.
26166
26167 2007-07-16 Eli Zaretskii <eliz@gnu.org>
26168
26169 * makefile.w32-in (clean): Don't delete *~.
26170
26171 2007-07-16 Andreas Schwab <schwab@suse.de>
26172
26173 * window.c (Fdisplay_buffer): Use NILP.
26174 (Fset_window_scroll_bars): Likewise.
26175
26176 2007-07-15 Martin Rudalics <rudalics@gmx.at>
26177
26178 * window.c (window_min_size_2): New function.
26179 (window_min_size_1, size_window, Fdisplay_buffer)
26180 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26181 windows without mode- or header-lines when window-min-height is
26182 too small.
26183 (size_window): Reset nodelete_p after testing it, following an
26184 earlier note by Kim F. Storm.
26185 (display_buffer): Do not set split_height_threshold to twice the
26186 value of window_min_height to avoid changing the value of a
26187 customizable variable. Rather explicitly check whether the
26188 height of the window that shall be splitted is at least as large
26189 as split_height_threshold.
26190 (Fwindow_full_width_p): New defun.
26191 (syms_of_window): Defsubr it.
26192
26193 * window.h: Add EXFUN for Fwindow_full_width_p.
26194
26195 2007-07-14 Jason Rumney <jasonr@gnu.org>
26196
26197 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26198
26199 2007-07-14 Richard Stallman <rms@gnu.org>
26200
26201 * eval.c (maybe_call_debugger): New function.
26202 (find_handler_clause): Use maybe_call_debugger.
26203 Call it when the handler says `debug'.
26204 Eliminate DEBUGGER_VALUE_PTR.
26205 (Fsignal): Eliminate debugger_value.
26206 (Qdebug): New variable.
26207 (syms_of_eval): Initialize it.
26208
26209 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
26210
26211 * eval.c (Fprogn):
26212 * keyboard.c (Ftrack_mouse):
26213 * print.c (Fwith_output_to_temp_buffer):
26214 * window.c (Fsave_window_excursion): Doc fix.
26215
26216 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26217
26218 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26219
26220 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26221
26222 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26223 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26224 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26225 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26226 Remove unused encoding_carryover.
26227 * process.c: Adjust all functions accordingly.
26228
26229 2007-07-12 Richard Stallman <rms@gnu.org>
26230
26231 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26232
26233 2007-07-11 Jason Rumney <jasonr@gnu.org>
26234
26235 * makefile.w32-in (LIBS): Include OLE32.
26236
26237 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26238 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26239
26240 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26241
26242 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26243 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26244 from a Lisp_Object into a bare pointer.
26245 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26246 Adjust the code correspondingly.
26247
26248 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26249
26250 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26251 (term_show_mouse_face): Remove unused var `j'.
26252 (handle_one_term_event): Remove unused vars `i' and `j'.
26253 Don't cast return value of ttyname since it's not necessary.
26254
26255 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26256
26257 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26258 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26259
26260 * fns.c (map_char_table): Use an array of int for `indices' rather than
26261 an array of Lisp_Objects (which are only ever integers anyway).
26262 (Fmap_char_table): Update caller.
26263 * lisp.h: Update prototype.
26264 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26265 * fontset.c (Ffontset_info):
26266 * casetab.c (set_case_table): Update callers.
26267
26268 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26269
26270 * keymap.c (struct accessible_keymaps_data)
26271 (struct where_is_internal_data): New structures.
26272 (accessible_keymaps_1, where_is_internal_1): Use them to change
26273 interface to adhere to the one used by map_keymap.
26274 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26275 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26276
26277 * keymap.h (map_keymap_function_t): More informative prototype.
26278
26279 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26280
26281 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26282 (looking_at_1): Don't change search_regs and last_thing_searched
26283 if `inhibit-changing-match-data' is non-nil.
26284 (string_match_1, search_buffer, set_search_regs): Likewise.
26285 (syms_of_search): Add Lisp level definition for
26286 `inhibit-changing-match-data' and set it to nil.
26287 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26288 start and end of the match, instead of using values in search_regs.
26289
26290 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26291
26292 * minibuf.c (Fcompleting_read): New value `confirm-only'
26293 for `require-match'.
26294
26295 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26296
26297 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26298 part of the 2007-06-27 change to syms_of_fileio.
26299
26300 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26301
26302 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26303 Check WINDOWP before using XWINDOW. Consolidate return statements.
26304
26305 2007-06-27 Richard Stallman <rms@gnu.org>
26306
26307 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26308
26309 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
26310
26311 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26312
26313 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26314
26315 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26316 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26317 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26318 (_free_internal, memalign): Use them.
26319 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26320 Initialize to PTHREAD_MUTEX_INITIALIZER.
26321 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26322 (morecore_nolock): Rename from morecore. All uses changed.
26323 Use only nolock versions of internal allocation functions.
26324 (_malloc_internal_nolock, _realloc_internal_nolock)
26325 (_free_internal_nolock): New functions created from
26326 _malloc_internal, _realloc_internal, and _free_internal.
26327 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26328 Copy hook value to automatic variable before its use.
26329 (memalign): Copy hook value to automatic variable before its use.
26330
26331 2007-06-26 Kenichi Handa <handa@m17n.org>
26332
26333 * coding.c (Ffind_operation_coding_system): Docstring improved.
26334 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26335
26336 2007-06-25 David Kastrup <dak@gnu.org>
26337
26338 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26339 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26340 cater for additional parameter.
26341
26342 * keymap.h: Adjust number of parameters to `current-active-maps'.
26343
26344 * doc.c (Fsubstitute_command_keys): Adjust call of
26345 `current-active-maps'.
26346
26347 2007-06-25 David Kastrup <dak@gnu.org>
26348
26349 * callint.c (Fcall_interactively): Make the parsing of interactive
26350 specs somewhat more readable.
26351
26352 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26353
26354 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26355 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26356 if extended background has already been filled.
26357
26358 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26359
26360 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26361 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26362
26363 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26364 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26365 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26366 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26367 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26368 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26369 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26370 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26371 Run timers during dialog popup.
26372 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26373
26374 2007-06-21 Jason Rumney <jasonr@gnu.org>
26375
26376 * image.c (convert_mono_to_color_image): Swap fore and background.
26377
26378 2007-06-20 Jason Rumney <jasonr@gnu.org>
26379
26380 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26381 (w32_free_bdf_font): Unmap memory not handle.
26382
26383 2007-06-20 Sam Steingold <sds@gnu.org>
26384
26385 * gmalloc.c (__morecore): Fix the declaration to comply with the
26386 definition.
26387
26388 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
26389
26390 * w32term.c (w32_delete_display): Remove leftover declaration.
26391 (w32_define_cursor, w32_initialize): Make static.
26392
26393 * w32.c (_wsa_errlist): Fix typo in error message.
26394 (init_environment): Ignore any environment variable from the
26395 registry having a null value.
26396
26397 2007-06-20 Glenn Morris <rgm@gnu.org>
26398
26399 * Makefile.in (LIBGIF): Default to -lgif.
26400
26401 2007-06-17 Jason Rumney <jasonr@gnu.org>
26402
26403 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26404 unicode strings.
26405
26406 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
26407
26408 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26409 Fix typo in docstring.
26410
26411 2007-06-16 Eli Zaretskii <eliz@gnu.org>
26412
26413 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26414 and their keybindings.
26415
26416 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
26417
26418 * composite.c (update_compositions): Fix last fix.
26419
26420 2007-06-14 Jason Rumney <jasonr@gnu.org>
26421
26422 * w32.c (get_process_times_fn): New function pointer.
26423 (globals_of_w32): Intialize it if present in kernel32.dll.
26424 (w32_get_internal_run_time): New function.
26425
26426 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26427
26428 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26429
26430 * composite.c (update_compositions): Check the validness of
26431 compositions.
26432
26433 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26434
26435 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26436 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26437
26438 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26439 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26440
26441 * macgui.h (USE_MAC_TOOLBAR): New define.
26442
26443 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26444 Return immediately unless popup is activated.
26445
26446 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26447 background to scroll bar gap.
26448 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26449 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26450 scroll bars on frame edge. Check fringe background extension.
26451 Don't clear extended fringe background area.
26452 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26453 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26454 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26455 [USE_MAC_TOOLBAR]: New macros.
26456 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26457 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26458 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26459 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26460 [USE_MAC_TOOLBAR]: New functions.
26461 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26462 manually if previous repositioning has failed.
26463 (mac_handle_keyboard_event): Use precomputed event kind.
26464 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26465 as tool bar item click. Handle mouse movement over tool bar items.
26466
26467 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26468 toolbar_win_gravity.
26469 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26470 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26471 Add externs.
26472
26473 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26474 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26475
26476 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
26477
26478 * image.c (search_image_cache): Remove unused variable.
26479
26480 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
26481
26482 * xfns.c, xmenu.c: Link to xaw3d if available.
26483
26484 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26485
26486 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26487 frame_foreground and frame_background.
26488
26489 * image.c (lookup_image): Save frame foreground and background colors.
26490 (search_image_cache): Check if saved and current frame colors match.
26491
26492 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26493
26494 * regex.c (regex_compile): Remove the `regnum' counter.
26495 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26496
26497 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26498
26499 * term.c: Include intervals.h to declare Fget_text_property.
26500
26501 2007-06-10 Jason Rumney <jasonr@gnu.org>
26502
26503 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26504
26505 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
26506
26507 * callint.c (Fcall_interactively):
26508 * editfns.c (Fdelete_and_extract_region):
26509 * fileio.c (Fread_file_name):
26510 * fns.c (Fmapconcat):
26511 * keyboard.c (cmd_error_internal):
26512 * keymap.c (Fkey_description):
26513 * lread.c (openp):
26514 * minibuf.c (read_minibuf):
26515 * search.c (wordify):
26516 * sunfns.c (sel_read):
26517 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26518 * xfns.c (x_default_scroll_bar_color_parameter):
26519 * xmenu.c (menu_help_callback):
26520 * xselect.c (Fx_get_atom_name):
26521 * xterm.c (x_term_init): Use empty_unibyte_string.
26522
26523 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26524
26525 * alloc.c (init_strings): Initialize canonical empty strings.
26526 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26527 canonical empty string when the requested size is 0.
26528
26529 * emacs.c (empty_unibyte_string): Rename from empty_string.
26530 (empty_multibyte_string): New canonical empty string.
26531 (syms_of_emacs): Don't initialize empty_string.
26532
26533 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26534 string, if appropriate.
26535 (empty_unibyte_string, empty_multibyte_string): New externs.
26536 (empty_string): Remove extern.
26537
26538 * lread.c (syms_of_lread): Use empty_unibyte_string.
26539
26540 2007-06-07 Jason Rumney <jasonr@gnu.org>
26541
26542 * s/ms-w32.h: Don't define HAVE_TZNAME.
26543
26544 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26545
26546 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26547
26548 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26549
26550 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26551 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26552
26553 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26554 Don't call next handler.
26555 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26556 Remove argument. Install handler to application.
26557 (set_frame_menubar): Don't change deep_p.
26558 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26559 FRAME_OUTER_TO_INNER_DIFF_Y.
26560 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26561 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26562 [HAVE_DIALOGS]: New macros.
26563 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26564 Use them.
26565 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26566
26567 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26568 init_service_handler. All callers changed. Return OSStatus value.
26569
26570 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26571 All callers changed so as not to call SetPortWindowPort.
26572 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26573 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26574 mac_draw_string_common.
26575 (mac_draw_image_string_qd): Likewise.
26576 (mac_draw_string_common): Use them. Add INLINE.
26577 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26578 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26579 GetGlobalMouse.
26580 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26581 and FRAME_OUTER_TO_INNER_DIFF_Y.
26582 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26583 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26584 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26585 repositioning window to mac_handle_window_event.
26586 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26587 saving window location to mac_handle_window_event
26588 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26589 (install_menu_target_item_handler): Remove argument in extern.
26590 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26591 Also accept command events.
26592 (do_keystroke): New function created from XTread_socket.
26593 (init_command_handler): Remove functions.
26594 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26595 and save window location by kEventWindowShowing and kEventWindowHiding
26596 handlers here. Don't call next handler for window state change and
26597 focus events.
26598 (mac_handle_application_event, mac_handle_keyboard_event)
26599 [TARGET_API_MAC_CARBON]: New functions.
26600 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26601 kEventWindowShowing and kEventWindowHiding events. Move installation
26602 of mouse, font, text input and menu target item handlers to
26603 install_application_handler.
26604 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26605 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26606 New function.
26607 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26608 Register it.
26609 (XTread_socket) [TARGET_API_MAC_CARBON]:
26610 Consolidate SendEventToEventTarget calls.
26611 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26612 Move application activation handler to mac_handle_application_event.
26613 Move keyboard handler to mac_handle_keyboard_event.
26614 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26615 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26616 init_command_handler. Call install_application_handler.
26617
26618 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26619 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26620
26621 2007-06-07 Glenn Morris <rgm@gnu.org>
26622
26623 * emacs.c (main): Use `emacs-copyright' in --version output.
26624
26625 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
26626
26627 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26628
26629 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26630
26631 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26632
26633 * macgui.h: Replace WindowPtr with WindowRef.
26634
26635 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26636 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26637 Replace ControlHandle with ControlRef.
26638 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26639
26640 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26641 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26642 Replace ControlHandle with ControlRef.
26643 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26644 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26645
26646 * macterm.h (struct scroll_bar): Rename member control_handle_low
26647 and control_handle_high to control_ref_low and control_ref_high.
26648 All uses changed.
26649 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26650 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26651 respectively. All uses changed.
26652 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26653 (install_window_handler, remove_window_handler): Replace WindowPtr
26654 with WindowRef in externs.
26655
26656 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
26657
26658 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26659
26660 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
26661
26662 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26663
26664 * frame.c (Fmouse_position, Fmouse_pixel_position):
26665 Condition on HAVE_GPM too.
26666
26667 * term.c (term_mouse_highlight): Remove unused variables.
26668 (Fterm_open_connection): Set gpm_zerobased to 1.
26669 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26670 Use zero based co-ordinates.
26671 (handle_one_term_event): Report a drag as mouse movement too.
26672
26673 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26674
26675 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
26676
26677 * image.c (search_image_cache): New function. Require background
26678 color match if background color is unspecified in the image spec.
26679 (uncache_image, lookup_image): Use it.
26680
26681 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
26682
26683 * window.c (Fshrink_window): Reflow docstring.
26684
26685 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
26686
26687 * Version 22.1 released.
26688
26689 2007-06-01 Richard Stallman <rms@gnu.org>
26690
26691 * xfns.c (x_encode_text): Add GCPRO.
26692
26693 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26694
26695 * xfns.c (x_set_name_internal): Save encoded name before
26696 x_encode_text in case string data is relocated.
26697
26698 2007-05-31 Richard Stallman <rms@gnu.org>
26699
26700 * buffer.c (syms_of_buffer): Doc fix.
26701
26702 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
26703
26704 * sysdep.c (init_sys_modes): Add rather than replace with
26705 O_NONBLOCK.
26706
26707 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26708 term_mouse_moveto.
26709
26710 * termhooks.h (term_mouse_moveto): New extern.
26711
26712 * term.c (mouse_face_window): Rename...
26713 (Qmouse_face_window): ...to this.
26714 (term_show_mouse_face, term_clear_mouse_face)
26715 (term_mouse_highlight): Use Qmouse_face_window.
26716 (term_mouse_moveto): New function.
26717 (term_mouse_position): Make it work.
26718 (syms_of_term): Uncomment assignment to mouse_position_hook.
26719 Staticpro Qmouse_face_window.
26720
26721 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26722
26723 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26724 around current_column call.
26725
26726 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26727
26728 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26729 * xdisp.c (next_element_from_buffer):
26730 * window.c (delete_window):
26731 * term.c (term_mouse_highlight):
26732 * msdos.c (getdefdir):
26733 * macterm.c (mac_create_bitmap_from_bitmap_data)
26734 (init_font_name_table):
26735 * fns.c (Fsxhash):
26736 * data.c (Fmake_local_variable):
26737 * ccl.c (ccl_driver): Likewise.
26738
26739 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26740
26741 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26742 Call mac_wakeup_from_rne on window size change.
26743
26744 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
26745
26746 * image.c (uncache_image): Fix typo.
26747
26748 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26749
26750 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26751
26752 2007-05-22 Richard Stallman <rms@gnu.org>
26753
26754 * xterm.c (x_connection_closed): Remove NO_RETURN.
26755
26756 2007-05-22 Martin Rudalics <rudalics@gmx.at>
26757
26758 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26759
26760 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
26761
26762 * image.c (uncache_image): New function.
26763 (Fimage_refresh): New function.
26764
26765 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26766
26767 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26768
26769 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26770
26771 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26772 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26773
26774 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26775
26776 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26777 conditional on [HAVE_GPM_H].
26778
26779 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26780
26781 * syntax.c (skip_chars): Update syntax-table only after we checked that
26782 the new location is valid.
26783
26784 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26785
26786 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26787 mac_get_window_bounds.
26788
26789 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26790
26791 * Makefile.in (LIBGPM): Allow it to be set from configure.
26792 If set then link Emacs with it.
26793
26794 * config.in: Regenerate.
26795
26796 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26797 New externs.
26798
26799 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26800 Include gpm.h.
26801 (handle_one_term_event, term_gpm): New externs.
26802
26803 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26804 and allow it to be interrupted by SIGIO.
26805
26806 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26807 (wait_reading_process_output): Wait on gpm_fd too.
26808 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26809 (add_gpm_wait_descriptor_called_flag): New variable.
26810 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26811
26812 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26813 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26814 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26815 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26816 (make_lispy_event): Add case GPM_CLICK_EVENT.
26817 (read_avail_input): Handle mouse input.
26818
26819 * term.c (write_glyphs_with_face): New function.
26820 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26821 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26822 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26823 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26824 (last_mouse_x, last_mouse_y): New variables.
26825 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26826 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26827 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26828 (Fterm_close_connection): New functions.
26829 (term_init): Initialise mouse_face_window.
26830
26831 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
26832
26833 * xdisp.c (redisplay_window): If first window line is a
26834 continuation line, recompute the new window start instead of
26835 recentering.
26836
26837 2007-05-18 Glenn Morris <rgm@gnu.org>
26838
26839 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26840 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26841
26842 2007-05-17 Glenn Morris <rgm@gnu.org>
26843
26844 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26845
26846 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26847
26848 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26849 dead key repeat and up events.
26850
26851 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
26852
26853 * image.c (pbm_load): Check image size for monochrome pbm.
26854
26855 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
26856
26857 * xterm.c (XTread_socket): Revert last change.
26858
26859 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
26860
26861 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26862
26863 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26864
26865 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26866
26867 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26868 mixup (YAILOM).
26869
26870 2007-05-07 Andreas Schwab <schwab@suse.de>
26871
26872 * keymap.c (Flookup_key): Fix typo in last change.
26873
26874 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26875
26876 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26877 mapping for unibyte strings.
26878
26879 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26880
26881 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26882 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26883
26884 2007-04-29 Richard Stallman <rms@gnu.org>
26885
26886 * insdel.c (replace_range): For undo, record insertion first.
26887
26888 2007-04-29 Andreas Schwab <schwab@suse.de>
26889
26890 * lisp.h (VECSIZE): Use OFFSETOF.
26891
26892 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26893
26894 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26895 disabled lines.
26896
26897 2007-04-28 Richard Stallman <rms@gnu.org>
26898
26899 * lread.c (read_escape): In a string, \s is always space.
26900
26901 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26902
26903 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26904
26905 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26906 submenu for menu bar items.
26907
26908 See ChangeLog.10 for earlier changes.
26909
26910 ;; Local Variables:
26911 ;; coding: utf-8
26912 ;; add-log-time-zone-rule: t
26913 ;; End:
26914
26915 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
26916
26917 This file is part of GNU Emacs.
26918
26919 GNU Emacs is free software: you can redistribute it and/or modify
26920 it under the terms of the GNU General Public License as published by
26921 the Free Software Foundation, either version 3 of the License, or
26922 (at your option) any later version.
26923
26924 GNU Emacs is distributed in the hope that it will be useful,
26925 but WITHOUT ANY WARRANTY; without even the implied warranty of
26926 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26927 GNU General Public License for more details.
26928
26929 You should have received a copy of the GNU General Public License
26930 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26931
26932 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40